~ubuntu-branches/ubuntu/maverick/libmemcached/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2009-05-11 16:39:21 UTC
  • Revision ID: james.westby@ubuntu.com-20090511163921-bqudlxmfpmknrgox
Tags: upstream-0.28
ImportĀ upstreamĀ versionĀ 0.28

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.63.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
as_nl='
 
41
'
 
42
export as_nl
 
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
# Support unset when possible.
 
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
83
  as_unset=unset
 
84
else
 
85
  as_unset=false
 
86
fi
 
87
 
 
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
case $0 in
 
98
  *[\\/]* ) as_myself=$0 ;;
 
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
100
for as_dir in $PATH
 
101
do
 
102
  IFS=$as_save_IFS
 
103
  test -z "$as_dir" && as_dir=.
 
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
105
done
 
106
IFS=$as_save_IFS
 
107
 
 
108
     ;;
 
109
esac
 
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
111
# in which case we are not to be found in the path.
 
112
if test "x$as_myself" = x; then
 
113
  as_myself=$0
 
114
fi
 
115
if test ! -f "$as_myself"; then
 
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
117
  { (exit 1); exit 1; }
 
118
fi
 
119
 
 
120
# Work around bugs in pre-3.0 UWIN ksh.
 
121
for as_var in ENV MAIL MAILPATH
 
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# Required to use basename.
 
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
137
  as_expr=expr
 
138
else
 
139
  as_expr=false
 
140
fi
 
141
 
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
143
  as_basename=basename
 
144
else
 
145
  as_basename=false
 
146
fi
 
147
 
 
148
 
 
149
# Name of the executable.
 
150
as_me=`$as_basename -- "$0" ||
 
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
152
         X"$0" : 'X\(//\)$' \| \
 
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
154
$as_echo X/"$0" |
 
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
156
            s//\1/
 
157
            q
 
158
          }
 
159
          /^X\/\(\/\/\)$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\).*/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          s/.*/./; q'`
 
168
 
 
169
# CDPATH.
 
170
$as_unset CDPATH
 
171
 
 
172
 
 
173
if test "x$CONFIG_SHELL" = x; then
 
174
  if (eval ":") 2>/dev/null; then
 
175
  as_have_required=yes
 
176
else
 
177
  as_have_required=no
 
178
fi
 
179
 
 
180
  if test $as_have_required = yes &&     (eval ":
 
181
(as_func_return () {
 
182
  (exit \$1)
 
183
}
 
184
as_func_success () {
 
185
  as_func_return 0
 
186
}
 
187
as_func_failure () {
 
188
  as_func_return 1
 
189
}
 
190
as_func_ret_success () {
 
191
  return 0
 
192
}
 
193
as_func_ret_failure () {
 
194
  return 1
 
195
}
 
196
 
 
197
exitcode=0
 
198
if as_func_success; then
 
199
  :
 
200
else
 
201
  exitcode=1
 
202
  echo as_func_success failed.
 
203
fi
 
204
 
 
205
if as_func_failure; then
 
206
  exitcode=1
 
207
  echo as_func_failure succeeded.
 
208
fi
 
209
 
 
210
if as_func_ret_success; then
 
211
  :
 
212
else
 
213
  exitcode=1
 
214
  echo as_func_ret_success failed.
 
215
fi
 
216
 
 
217
if as_func_ret_failure; then
 
218
  exitcode=1
 
219
  echo as_func_ret_failure succeeded.
 
220
fi
 
221
 
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
223
  :
 
224
else
 
225
  exitcode=1
 
226
  echo positional parameters were not saved.
 
227
fi
 
228
 
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
 
230
 
 
231
(
 
232
  as_lineno_1=\$LINENO
 
233
  as_lineno_2=\$LINENO
 
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
236
") 2> /dev/null; then
 
237
  :
 
238
else
 
239
  as_candidate_shells=
 
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
242
do
 
243
  IFS=$as_save_IFS
 
244
  test -z "$as_dir" && as_dir=.
 
245
  case $as_dir in
 
246
         /*)
 
247
           for as_base in sh bash ksh sh5; do
 
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
249
           done;;
 
250
       esac
 
251
done
 
252
IFS=$as_save_IFS
 
253
 
 
254
 
 
255
      for as_shell in $as_candidate_shells $SHELL; do
 
256
         # Try only shells that exist, to save several forks.
 
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in
 
268
  *posix*) set -o posix ;;
 
269
esac
 
270
 
 
271
fi
 
272
 
 
273
 
 
274
:
 
275
_ASEOF
 
276
}; then
 
277
  CONFIG_SHELL=$as_shell
 
278
               as_have_required=yes
 
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
281
  emulate sh
 
282
  NULLCMD=:
 
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
284
  # is contrary to our usage.  Disable this feature.
 
285
  alias -g '${1+"$@"}'='"$@"'
 
286
  setopt NO_GLOB_SUBST
 
287
else
 
288
  case `(set -o) 2>/dev/null` in
 
289
  *posix*) set -o posix ;;
 
290
esac
 
291
 
 
292
fi
 
293
 
 
294
 
 
295
:
 
296
(as_func_return () {
 
297
  (exit $1)
 
298
}
 
299
as_func_success () {
 
300
  as_func_return 0
 
301
}
 
302
as_func_failure () {
 
303
  as_func_return 1
 
304
}
 
305
as_func_ret_success () {
 
306
  return 0
 
307
}
 
308
as_func_ret_failure () {
 
309
  return 1
 
310
}
 
311
 
 
312
exitcode=0
 
313
if as_func_success; then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo as_func_success failed.
 
318
fi
 
319
 
 
320
if as_func_failure; then
 
321
  exitcode=1
 
322
  echo as_func_failure succeeded.
 
323
fi
 
324
 
 
325
if as_func_ret_success; then
 
326
  :
 
327
else
 
328
  exitcode=1
 
329
  echo as_func_ret_success failed.
 
330
fi
 
331
 
 
332
if as_func_ret_failure; then
 
333
  exitcode=1
 
334
  echo as_func_ret_failure succeeded.
 
335
fi
 
336
 
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
338
  :
 
339
else
 
340
  exitcode=1
 
341
  echo positional parameters were not saved.
 
342
fi
 
343
 
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
 
345
 
 
346
(
 
347
  as_lineno_1=$LINENO
 
348
  as_lineno_2=$LINENO
 
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
351
 
 
352
_ASEOF
 
353
}; then
 
354
  break
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
      done
 
360
 
 
361
      if test "x$CONFIG_SHELL" != x; then
 
362
  for as_var in BASH_ENV ENV
 
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
364
        done
 
365
        export CONFIG_SHELL
 
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
367
fi
 
368
 
 
369
 
 
370
    if test $as_have_required = no; then
 
371
  echo This script requires a shell more modern than all the
 
372
      echo shells that I found on your system.  Please install a
 
373
      echo modern shell, or manually run the script under such a
 
374
      echo shell if you do have one.
 
375
      { (exit 1); exit 1; }
 
376
fi
 
377
 
 
378
 
 
379
fi
 
380
 
 
381
fi
 
382
 
 
383
 
 
384
 
 
385
(eval "as_func_return () {
 
386
  (exit \$1)
 
387
}
 
388
as_func_success () {
 
389
  as_func_return 0
 
390
}
 
391
as_func_failure () {
 
392
  as_func_return 1
 
393
}
 
394
as_func_ret_success () {
 
395
  return 0
 
396
}
 
397
as_func_ret_failure () {
 
398
  return 1
 
399
}
 
400
 
 
401
exitcode=0
 
402
if as_func_success; then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo as_func_success failed.
 
407
fi
 
408
 
 
409
if as_func_failure; then
 
410
  exitcode=1
 
411
  echo as_func_failure succeeded.
 
412
fi
 
413
 
 
414
if as_func_ret_success; then
 
415
  :
 
416
else
 
417
  exitcode=1
 
418
  echo as_func_ret_success failed.
 
419
fi
 
420
 
 
421
if as_func_ret_failure; then
 
422
  exitcode=1
 
423
  echo as_func_ret_failure succeeded.
 
424
fi
 
425
 
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
427
  :
 
428
else
 
429
  exitcode=1
 
430
  echo positional parameters were not saved.
 
431
fi
 
432
 
 
433
test \$exitcode = 0") || {
 
434
  echo No shell found that supports shell functions.
 
435
  echo Please tell bug-autoconf@gnu.org about your system,
 
436
  echo including any error possibly output before this message.
 
437
  echo This can help us improve future autoconf versions.
 
438
  echo Configuration will now proceed without shell functions.
 
439
}
 
440
 
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO
 
444
  as_lineno_2=$LINENO
 
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
447
 
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
450
  # line-number line after each line using $LINENO; the second 'sed'
 
451
  # does the real work.  The second script uses 'N' to pair each
 
452
  # line-number line with the line containing $LINENO, and appends
 
453
  # trailing '-' during substitution so that $LINENO is not a special
 
454
  # case at line end.
 
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
458
  sed -n '
 
459
    p
 
460
    /[$]LINENO/=
 
461
  ' <$as_myself |
 
462
    sed '
 
463
      s/[$]LINENO.*/&-/
 
464
      t lineno
 
465
      b
 
466
      :lineno
 
467
      N
 
468
      :loop
 
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
470
      t loop
 
471
      s/-\n.*//
 
472
    ' >$as_me.lineno &&
 
473
  chmod +x "$as_me.lineno" ||
 
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
475
   { (exit 1); exit 1; }; }
 
476
 
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
 
478
  # (the dirname of $[0] is not the place where we might find the
 
479
  # original and so on.  Autoconf is especially sensitive to this).
 
480
  . "./$as_me.lineno"
 
481
  # Exit status is that of the last command.
 
482
  exit
 
483
}
 
484
 
 
485
 
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
487
  as_dirname=dirname
 
488
else
 
489
  as_dirname=false
 
490
fi
 
491
 
 
492
ECHO_C= ECHO_N= ECHO_T=
 
493
case `echo -n x` in
 
494
-n*)
 
495
  case `echo 'x\c'` in
 
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
497
  *)   ECHO_C='\c';;
 
498
  esac;;
 
499
*)
 
500
  ECHO_N='-n';;
 
501
esac
 
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
504
  as_expr=expr
 
505
else
 
506
  as_expr=false
 
507
fi
 
508
 
 
509
rm -f conf$$ conf$$.exe conf$$.file
 
510
if test -d conf$$.dir; then
 
511
  rm -f conf$$.dir/conf$$.file
 
512
else
 
513
  rm -f conf$$.dir
 
514
  mkdir conf$$.dir 2>/dev/null
 
515
fi
 
516
if (echo >conf$$.file) 2>/dev/null; then
 
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
518
    as_ln_s='ln -s'
 
519
    # ... but there are two gotchas:
 
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
522
    # In both cases, we have to default to `cp -p'.
 
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
524
      as_ln_s='cp -p'
 
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
526
    as_ln_s=ln
 
527
  else
 
528
    as_ln_s='cp -p'
 
529
  fi
 
530
else
 
531
  as_ln_s='cp -p'
 
532
fi
 
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
534
rmdir conf$$.dir 2>/dev/null
 
535
 
 
536
if mkdir -p . 2>/dev/null; then
 
537
  as_mkdir_p=:
 
538
else
 
539
  test -d ./-p && rmdir ./-p
 
540
  as_mkdir_p=false
 
541
fi
 
542
 
 
543
if test -x / >/dev/null 2>&1; then
 
544
  as_test_x='test -x'
 
545
else
 
546
  if ls -dL / >/dev/null 2>&1; then
 
547
    as_ls_L_option=L
 
548
  else
 
549
    as_ls_L_option=
 
550
  fi
 
551
  as_test_x='
 
552
    eval sh -c '\''
 
553
      if test -d "$1"; then
 
554
        test -d "$1/.";
 
555
      else
 
556
        case $1 in
 
557
        -*)set "./$1";;
 
558
        esac;
 
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
560
        ???[sx]*):;;*)false;;esac;fi
 
561
    '\'' sh
 
562
  '
 
563
fi
 
564
as_executable_p=$as_test_x
 
565
 
 
566
# Sed expression to map a string onto a valid CPP name.
 
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
568
 
 
569
# Sed expression to map a string onto a valid variable name.
 
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
571
 
 
572
 
 
573
 
 
574
 
 
575
# Check that we are running under the correct shell.
 
576
SHELL=${CONFIG_SHELL-/bin/sh}
 
577
 
 
578
case X$ECHO in
 
579
X*--fallback-echo)
 
580
  # Remove one level of quotation (which was required for Make).
 
581
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
582
  ;;
 
583
esac
 
584
 
 
585
echo=${ECHO-echo}
 
586
if test "X$1" = X--no-reexec; then
 
587
  # Discard the --no-reexec flag, and continue.
 
588
  shift
 
589
elif test "X$1" = X--fallback-echo; then
 
590
  # Avoid inline document here, it may be left over
 
591
  :
 
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
593
  # Yippee, $echo works!
 
594
  :
 
595
else
 
596
  # Restart under the correct shell.
 
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
598
fi
 
599
 
 
600
if test "X$1" = X--fallback-echo; then
 
601
  # used as fallback echo
 
602
  shift
 
603
  cat <<EOF
 
604
$*
 
605
EOF
 
606
  exit 0
 
607
fi
 
608
 
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
610
# if CDPATH is set.
 
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
612
 
 
613
if test -z "$ECHO"; then
 
614
if test "X${echo_test_string+set}" != Xset; then
 
615
# find a string as large as possible, as long as the shell can cope with it
 
616
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
617
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
618
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
619
       echo_test_string=`eval $cmd` &&
 
620
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
621
    then
 
622
      break
 
623
    fi
 
624
  done
 
625
fi
 
626
 
 
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
628
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
629
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
630
  :
 
631
else
 
632
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
633
  # backslashes.  This makes it impossible to quote backslashes using
 
634
  #   echo "$something" | sed 's/\\/\\\\/g'
 
635
  #
 
636
  # So, first we look for a working echo in the user's PATH.
 
637
 
 
638
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
639
  for dir in $PATH /usr/ucb; do
 
640
    IFS="$lt_save_ifs"
 
641
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
642
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
643
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
644
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
645
      echo="$dir/echo"
 
646
      break
 
647
    fi
 
648
  done
 
649
  IFS="$lt_save_ifs"
 
650
 
 
651
  if test "X$echo" = Xecho; then
 
652
    # We didn't find a better echo, so look for alternatives.
 
653
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
654
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
655
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
      # This shell has a builtin print -r that does the trick.
 
657
      echo='print -r'
 
658
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
659
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
660
      # If we have ksh, try running configure again with it.
 
661
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
662
      export ORIGINAL_CONFIG_SHELL
 
663
      CONFIG_SHELL=/bin/ksh
 
664
      export CONFIG_SHELL
 
665
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
666
    else
 
667
      # Try using printf.
 
668
      echo='printf %s\n'
 
669
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
670
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
671
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
672
        # Cool, printf works
 
673
        :
 
674
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
675
           test "X$echo_testing_string" = 'X\t' &&
 
676
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
678
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
679
        export CONFIG_SHELL
 
680
        SHELL="$CONFIG_SHELL"
 
681
        export SHELL
 
682
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
683
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
684
           test "X$echo_testing_string" = 'X\t' &&
 
685
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
687
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
688
      else
 
689
        # maybe with a smaller string...
 
690
        prev=:
 
691
 
 
692
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
693
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
694
          then
 
695
            break
 
696
          fi
 
697
          prev="$cmd"
 
698
        done
 
699
 
 
700
        if test "$prev" != 'sed 50q "$0"'; then
 
701
          echo_test_string=`eval $prev`
 
702
          export echo_test_string
 
703
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
704
        else
 
705
          # Oops.  We lost completely, so just stick with echo.
 
706
          echo=echo
 
707
        fi
 
708
      fi
 
709
    fi
 
710
  fi
 
711
fi
 
712
fi
 
713
 
 
714
# Copy echo and quote the copy suitably for passing to libtool from
 
715
# the Makefile, instead of quoting the original, which is used later.
 
716
ECHO=$echo
 
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
718
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
719
fi
 
720
 
 
721
 
 
722
 
 
723
 
 
724
tagnames=${tagnames+${tagnames},}CXX
 
725
 
 
726
tagnames=${tagnames+${tagnames},}F77
 
727
 
 
728
exec 7<&0 </dev/null 6>&1
 
729
 
 
730
# Name of the host.
 
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
732
# so uname gets run too.
 
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
734
 
 
735
#
 
736
# Initializations.
 
737
#
 
738
ac_default_prefix=/usr/local
 
739
ac_clean_files=
 
740
ac_config_libobj_dir=.
 
741
LIBOBJS=
 
742
cross_compiling=no
 
743
subdirs=
 
744
MFLAGS=
 
745
MAKEFLAGS=
 
746
SHELL=${CONFIG_SHELL-/bin/sh}
 
747
 
 
748
# Identity of this package.
 
749
PACKAGE_NAME=
 
750
PACKAGE_TARNAME=
 
751
PACKAGE_VERSION=
 
752
PACKAGE_STRING=
 
753
PACKAGE_BUGREPORT=
 
754
 
 
755
ac_unique_file="clients/memcat.c"
 
756
# Factoring default headers for most tests.
 
757
ac_includes_default="\
 
758
#include <stdio.h>
 
759
#ifdef HAVE_SYS_TYPES_H
 
760
# include <sys/types.h>
 
761
#endif
 
762
#ifdef HAVE_SYS_STAT_H
 
763
# include <sys/stat.h>
 
764
#endif
 
765
#ifdef STDC_HEADERS
 
766
# include <stdlib.h>
 
767
# include <stddef.h>
 
768
#else
 
769
# ifdef HAVE_STDLIB_H
 
770
#  include <stdlib.h>
 
771
# endif
 
772
#endif
 
773
#ifdef HAVE_STRING_H
 
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
775
#  include <memory.h>
 
776
# endif
 
777
# include <string.h>
 
778
#endif
 
779
#ifdef HAVE_STRINGS_H
 
780
# include <strings.h>
 
781
#endif
 
782
#ifdef HAVE_INTTYPES_H
 
783
# include <inttypes.h>
 
784
#endif
 
785
#ifdef HAVE_STDINT_H
 
786
# include <stdint.h>
 
787
#endif
 
788
#ifdef HAVE_UNISTD_H
 
789
# include <unistd.h>
 
790
#endif"
 
791
 
 
792
ac_subst_vars='LTLIBOBJS
 
793
LIBOBJS
 
794
MEMC_BINARY
 
795
BUILD_BYTEORDER_FALSE
 
796
BUILD_BYTEORDER_TRUE
 
797
HAVE_DTRACE_FALSE
 
798
HAVE_DTRACE_TRUE
 
799
DTRACE_OBJ
 
800
DTRACE_HEADER
 
801
DTRACEFLAGS
 
802
HAVE_DTRACE
 
803
DTRACE
 
804
HAVE_DEBUG_FALSE
 
805
HAVE_DEBUG_TRUE
 
806
HAVE_DEBUG
 
807
DEBUGFLAGS
 
808
DEBUG
 
809
POD2MAN
 
810
LIBTOOL
 
811
ac_ct_F77
 
812
FFLAGS
 
813
F77
 
814
CXXCPP
 
815
CPP
 
816
NMEDIT
 
817
DSYMUTIL
 
818
RANLIB
 
819
AR
 
820
ECHO
 
821
LN_S
 
822
EGREP
 
823
GREP
 
824
SED
 
825
am__fastdepCXX_FALSE
 
826
am__fastdepCXX_TRUE
 
827
CXXDEPMODE
 
828
ac_ct_CXX
 
829
CXXFLAGS
 
830
CXX
 
831
am__fastdepCC_FALSE
 
832
am__fastdepCC_TRUE
 
833
CCDEPMODE
 
834
AMDEPBACKSLASH
 
835
AMDEP_FALSE
 
836
AMDEP_TRUE
 
837
am__quote
 
838
am__include
 
839
DEPDIR
 
840
OBJEXT
 
841
EXEEXT
 
842
ac_ct_CC
 
843
CPPFLAGS
 
844
LDFLAGS
 
845
CFLAGS
 
846
CC
 
847
am__untar
 
848
am__tar
 
849
AMTAR
 
850
am__leading_dot
 
851
SET_MAKE
 
852
AWK
 
853
mkdir_p
 
854
MKDIR_P
 
855
INSTALL_STRIP_PROGRAM
 
856
STRIP
 
857
install_sh
 
858
MAKEINFO
 
859
AUTOHEADER
 
860
AUTOMAKE
 
861
AUTOCONF
 
862
ACLOCAL
 
863
VERSION
 
864
PACKAGE
 
865
CYGPATH_W
 
866
am__isrc
 
867
INSTALL_DATA
 
868
INSTALL_SCRIPT
 
869
INSTALL_PROGRAM
 
870
MEMCACHED_VERSION
 
871
MEMCACHED_RELEASE
 
872
MEMCACHED_LIBRARY_NAME
 
873
MEMCACHED_LIBRARY_VERSION
 
874
MEMCACHED_API_VERSION
 
875
target_os
 
876
target_vendor
 
877
target_cpu
 
878
target
 
879
host_os
 
880
host_vendor
 
881
host_cpu
 
882
host
 
883
build_os
 
884
build_vendor
 
885
build_cpu
 
886
build
 
887
target_alias
 
888
host_alias
 
889
build_alias
 
890
LIBS
 
891
ECHO_T
 
892
ECHO_N
 
893
ECHO_C
 
894
DEFS
 
895
mandir
 
896
localedir
 
897
libdir
 
898
psdir
 
899
pdfdir
 
900
dvidir
 
901
htmldir
 
902
infodir
 
903
docdir
 
904
oldincludedir
 
905
includedir
 
906
localstatedir
 
907
sharedstatedir
 
908
sysconfdir
 
909
datadir
 
910
datarootdir
 
911
libexecdir
 
912
sbindir
 
913
bindir
 
914
program_transform_name
 
915
prefix
 
916
exec_prefix
 
917
PACKAGE_BUGREPORT
 
918
PACKAGE_STRING
 
919
PACKAGE_VERSION
 
920
PACKAGE_TARNAME
 
921
PACKAGE_NAME
 
922
PATH_SEPARATOR
 
923
SHELL'
 
924
ac_subst_files=''
 
925
ac_user_opts='
 
926
enable_option_checking
 
927
enable_dependency_tracking
 
928
enable_shared
 
929
enable_static
 
930
enable_fast_install
 
931
with_gnu_ld
 
932
enable_libtool_lock
 
933
with_pic
 
934
with_tags
 
935
enable_debug
 
936
enable_dtrace
 
937
enable_64bit
 
938
with_memcached
 
939
'
 
940
      ac_precious_vars='build_alias
 
941
host_alias
 
942
target_alias
 
943
CC
 
944
CFLAGS
 
945
LDFLAGS
 
946
LIBS
 
947
CPPFLAGS
 
948
CXX
 
949
CXXFLAGS
 
950
CCC
 
951
CPP
 
952
CXXCPP
 
953
F77
 
954
FFLAGS'
 
955
 
 
956
 
 
957
# Initialize some variables set by options.
 
958
ac_init_help=
 
959
ac_init_version=false
 
960
ac_unrecognized_opts=
 
961
ac_unrecognized_sep=
 
962
# The variables have the same names as the options, with
 
963
# dashes changed to underlines.
 
964
cache_file=/dev/null
 
965
exec_prefix=NONE
 
966
no_create=
 
967
no_recursion=
 
968
prefix=NONE
 
969
program_prefix=NONE
 
970
program_suffix=NONE
 
971
program_transform_name=s,x,x,
 
972
silent=
 
973
site=
 
974
srcdir=
 
975
verbose=
 
976
x_includes=NONE
 
977
x_libraries=NONE
 
978
 
 
979
# Installation directory options.
 
980
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
981
# and all the variables that are supposed to be based on exec_prefix
 
982
# by default will actually change.
 
983
# Use braces instead of parens because sh, perl, etc. also accept them.
 
984
# (The list follows the same order as the GNU Coding Standards.)
 
985
bindir='${exec_prefix}/bin'
 
986
sbindir='${exec_prefix}/sbin'
 
987
libexecdir='${exec_prefix}/libexec'
 
988
datarootdir='${prefix}/share'
 
989
datadir='${datarootdir}'
 
990
sysconfdir='${prefix}/etc'
 
991
sharedstatedir='${prefix}/com'
 
992
localstatedir='${prefix}/var'
 
993
includedir='${prefix}/include'
 
994
oldincludedir='/usr/include'
 
995
docdir='${datarootdir}/doc/${PACKAGE}'
 
996
infodir='${datarootdir}/info'
 
997
htmldir='${docdir}'
 
998
dvidir='${docdir}'
 
999
pdfdir='${docdir}'
 
1000
psdir='${docdir}'
 
1001
libdir='${exec_prefix}/lib'
 
1002
localedir='${datarootdir}/locale'
 
1003
mandir='${datarootdir}/man'
 
1004
 
 
1005
ac_prev=
 
1006
ac_dashdash=
 
1007
for ac_option
 
1008
do
 
1009
  # If the previous option needs an argument, assign it.
 
1010
  if test -n "$ac_prev"; then
 
1011
    eval $ac_prev=\$ac_option
 
1012
    ac_prev=
 
1013
    continue
 
1014
  fi
 
1015
 
 
1016
  case $ac_option in
 
1017
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1018
  *)    ac_optarg=yes ;;
 
1019
  esac
 
1020
 
 
1021
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1022
 
 
1023
  case $ac_dashdash$ac_option in
 
1024
  --)
 
1025
    ac_dashdash=yes ;;
 
1026
 
 
1027
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1028
    ac_prev=bindir ;;
 
1029
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1030
    bindir=$ac_optarg ;;
 
1031
 
 
1032
  -build | --build | --buil | --bui | --bu)
 
1033
    ac_prev=build_alias ;;
 
1034
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1035
    build_alias=$ac_optarg ;;
 
1036
 
 
1037
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1038
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1039
    ac_prev=cache_file ;;
 
1040
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1041
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1042
    cache_file=$ac_optarg ;;
 
1043
 
 
1044
  --config-cache | -C)
 
1045
    cache_file=config.cache ;;
 
1046
 
 
1047
  -datadir | --datadir | --datadi | --datad)
 
1048
    ac_prev=datadir ;;
 
1049
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1050
    datadir=$ac_optarg ;;
 
1051
 
 
1052
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1053
  | --dataroo | --dataro | --datar)
 
1054
    ac_prev=datarootdir ;;
 
1055
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1056
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1057
    datarootdir=$ac_optarg ;;
 
1058
 
 
1059
  -disable-* | --disable-*)
 
1060
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1061
    # Reject names that are not valid shell variable names.
 
1062
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1063
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1064
   { (exit 1); exit 1; }; }
 
1065
    ac_useropt_orig=$ac_useropt
 
1066
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1067
    case $ac_user_opts in
 
1068
      *"
 
1069
"enable_$ac_useropt"
 
1070
"*) ;;
 
1071
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1072
         ac_unrecognized_sep=', ';;
 
1073
    esac
 
1074
    eval enable_$ac_useropt=no ;;
 
1075
 
 
1076
  -docdir | --docdir | --docdi | --doc | --do)
 
1077
    ac_prev=docdir ;;
 
1078
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1079
    docdir=$ac_optarg ;;
 
1080
 
 
1081
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1082
    ac_prev=dvidir ;;
 
1083
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1084
    dvidir=$ac_optarg ;;
 
1085
 
 
1086
  -enable-* | --enable-*)
 
1087
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1088
    # Reject names that are not valid shell variable names.
 
1089
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1090
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1091
   { (exit 1); exit 1; }; }
 
1092
    ac_useropt_orig=$ac_useropt
 
1093
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1094
    case $ac_user_opts in
 
1095
      *"
 
1096
"enable_$ac_useropt"
 
1097
"*) ;;
 
1098
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1099
         ac_unrecognized_sep=', ';;
 
1100
    esac
 
1101
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1102
 
 
1103
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1104
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1105
  | --exec | --exe | --ex)
 
1106
    ac_prev=exec_prefix ;;
 
1107
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1108
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1109
  | --exec=* | --exe=* | --ex=*)
 
1110
    exec_prefix=$ac_optarg ;;
 
1111
 
 
1112
  -gas | --gas | --ga | --g)
 
1113
    # Obsolete; use --with-gas.
 
1114
    with_gas=yes ;;
 
1115
 
 
1116
  -help | --help | --hel | --he | -h)
 
1117
    ac_init_help=long ;;
 
1118
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1119
    ac_init_help=recursive ;;
 
1120
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1121
    ac_init_help=short ;;
 
1122
 
 
1123
  -host | --host | --hos | --ho)
 
1124
    ac_prev=host_alias ;;
 
1125
  -host=* | --host=* | --hos=* | --ho=*)
 
1126
    host_alias=$ac_optarg ;;
 
1127
 
 
1128
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1129
    ac_prev=htmldir ;;
 
1130
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1131
  | --ht=*)
 
1132
    htmldir=$ac_optarg ;;
 
1133
 
 
1134
  -includedir | --includedir | --includedi | --included | --include \
 
1135
  | --includ | --inclu | --incl | --inc)
 
1136
    ac_prev=includedir ;;
 
1137
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1138
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1139
    includedir=$ac_optarg ;;
 
1140
 
 
1141
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1142
    ac_prev=infodir ;;
 
1143
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1144
    infodir=$ac_optarg ;;
 
1145
 
 
1146
  -libdir | --libdir | --libdi | --libd)
 
1147
    ac_prev=libdir ;;
 
1148
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1149
    libdir=$ac_optarg ;;
 
1150
 
 
1151
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1152
  | --libexe | --libex | --libe)
 
1153
    ac_prev=libexecdir ;;
 
1154
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1155
  | --libexe=* | --libex=* | --libe=*)
 
1156
    libexecdir=$ac_optarg ;;
 
1157
 
 
1158
  -localedir | --localedir | --localedi | --localed | --locale)
 
1159
    ac_prev=localedir ;;
 
1160
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1161
    localedir=$ac_optarg ;;
 
1162
 
 
1163
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1164
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1165
    ac_prev=localstatedir ;;
 
1166
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1167
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1168
    localstatedir=$ac_optarg ;;
 
1169
 
 
1170
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1171
    ac_prev=mandir ;;
 
1172
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1173
    mandir=$ac_optarg ;;
 
1174
 
 
1175
  -nfp | --nfp | --nf)
 
1176
    # Obsolete; use --without-fp.
 
1177
    with_fp=no ;;
 
1178
 
 
1179
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1180
  | --no-cr | --no-c | -n)
 
1181
    no_create=yes ;;
 
1182
 
 
1183
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1184
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1185
    no_recursion=yes ;;
 
1186
 
 
1187
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1188
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1189
  | --oldin | --oldi | --old | --ol | --o)
 
1190
    ac_prev=oldincludedir ;;
 
1191
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1192
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1193
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1194
    oldincludedir=$ac_optarg ;;
 
1195
 
 
1196
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1197
    ac_prev=prefix ;;
 
1198
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1199
    prefix=$ac_optarg ;;
 
1200
 
 
1201
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1202
  | --program-pre | --program-pr | --program-p)
 
1203
    ac_prev=program_prefix ;;
 
1204
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1205
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1206
    program_prefix=$ac_optarg ;;
 
1207
 
 
1208
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1209
  | --program-suf | --program-su | --program-s)
 
1210
    ac_prev=program_suffix ;;
 
1211
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1212
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1213
    program_suffix=$ac_optarg ;;
 
1214
 
 
1215
  -program-transform-name | --program-transform-name \
 
1216
  | --program-transform-nam | --program-transform-na \
 
1217
  | --program-transform-n | --program-transform- \
 
1218
  | --program-transform | --program-transfor \
 
1219
  | --program-transfo | --program-transf \
 
1220
  | --program-trans | --program-tran \
 
1221
  | --progr-tra | --program-tr | --program-t)
 
1222
    ac_prev=program_transform_name ;;
 
1223
  -program-transform-name=* | --program-transform-name=* \
 
1224
  | --program-transform-nam=* | --program-transform-na=* \
 
1225
  | --program-transform-n=* | --program-transform-=* \
 
1226
  | --program-transform=* | --program-transfor=* \
 
1227
  | --program-transfo=* | --program-transf=* \
 
1228
  | --program-trans=* | --program-tran=* \
 
1229
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1230
    program_transform_name=$ac_optarg ;;
 
1231
 
 
1232
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1233
    ac_prev=pdfdir ;;
 
1234
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1235
    pdfdir=$ac_optarg ;;
 
1236
 
 
1237
  -psdir | --psdir | --psdi | --psd | --ps)
 
1238
    ac_prev=psdir ;;
 
1239
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1240
    psdir=$ac_optarg ;;
 
1241
 
 
1242
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1243
  | -silent | --silent | --silen | --sile | --sil)
 
1244
    silent=yes ;;
 
1245
 
 
1246
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1247
    ac_prev=sbindir ;;
 
1248
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1249
  | --sbi=* | --sb=*)
 
1250
    sbindir=$ac_optarg ;;
 
1251
 
 
1252
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1253
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1254
  | --sharedst | --shareds | --shared | --share | --shar \
 
1255
  | --sha | --sh)
 
1256
    ac_prev=sharedstatedir ;;
 
1257
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1258
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1259
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1260
  | --sha=* | --sh=*)
 
1261
    sharedstatedir=$ac_optarg ;;
 
1262
 
 
1263
  -site | --site | --sit)
 
1264
    ac_prev=site ;;
 
1265
  -site=* | --site=* | --sit=*)
 
1266
    site=$ac_optarg ;;
 
1267
 
 
1268
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1269
    ac_prev=srcdir ;;
 
1270
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1271
    srcdir=$ac_optarg ;;
 
1272
 
 
1273
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1274
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1275
    ac_prev=sysconfdir ;;
 
1276
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1277
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1278
    sysconfdir=$ac_optarg ;;
 
1279
 
 
1280
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1281
    ac_prev=target_alias ;;
 
1282
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1283
    target_alias=$ac_optarg ;;
 
1284
 
 
1285
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1286
    verbose=yes ;;
 
1287
 
 
1288
  -version | --version | --versio | --versi | --vers | -V)
 
1289
    ac_init_version=: ;;
 
1290
 
 
1291
  -with-* | --with-*)
 
1292
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1293
    # Reject names that are not valid shell variable names.
 
1294
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1295
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1296
   { (exit 1); exit 1; }; }
 
1297
    ac_useropt_orig=$ac_useropt
 
1298
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1299
    case $ac_user_opts in
 
1300
      *"
 
1301
"with_$ac_useropt"
 
1302
"*) ;;
 
1303
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1304
         ac_unrecognized_sep=', ';;
 
1305
    esac
 
1306
    eval with_$ac_useropt=\$ac_optarg ;;
 
1307
 
 
1308
  -without-* | --without-*)
 
1309
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1310
    # Reject names that are not valid shell variable names.
 
1311
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1312
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1313
   { (exit 1); exit 1; }; }
 
1314
    ac_useropt_orig=$ac_useropt
 
1315
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1316
    case $ac_user_opts in
 
1317
      *"
 
1318
"with_$ac_useropt"
 
1319
"*) ;;
 
1320
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1321
         ac_unrecognized_sep=', ';;
 
1322
    esac
 
1323
    eval with_$ac_useropt=no ;;
 
1324
 
 
1325
  --x)
 
1326
    # Obsolete; use --with-x.
 
1327
    with_x=yes ;;
 
1328
 
 
1329
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1330
  | --x-incl | --x-inc | --x-in | --x-i)
 
1331
    ac_prev=x_includes ;;
 
1332
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1333
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1334
    x_includes=$ac_optarg ;;
 
1335
 
 
1336
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1337
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1338
    ac_prev=x_libraries ;;
 
1339
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1340
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1341
    x_libraries=$ac_optarg ;;
 
1342
 
 
1343
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1344
Try \`$0 --help' for more information." >&2
 
1345
   { (exit 1); exit 1; }; }
 
1346
    ;;
 
1347
 
 
1348
  *=*)
 
1349
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1350
    # Reject names that are not valid shell variable names.
 
1351
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1352
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1353
   { (exit 1); exit 1; }; }
 
1354
    eval $ac_envvar=\$ac_optarg
 
1355
    export $ac_envvar ;;
 
1356
 
 
1357
  *)
 
1358
    # FIXME: should be removed in autoconf 3.0.
 
1359
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1360
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1361
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1362
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1363
    ;;
 
1364
 
 
1365
  esac
 
1366
done
 
1367
 
 
1368
if test -n "$ac_prev"; then
 
1369
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1370
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1371
   { (exit 1); exit 1; }; }
 
1372
fi
 
1373
 
 
1374
if test -n "$ac_unrecognized_opts"; then
 
1375
  case $enable_option_checking in
 
1376
    no) ;;
 
1377
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1378
   { (exit 1); exit 1; }; } ;;
 
1379
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1380
  esac
 
1381
fi
 
1382
 
 
1383
# Check all directory arguments for consistency.
 
1384
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1385
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1386
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1387
                libdir localedir mandir
 
1388
do
 
1389
  eval ac_val=\$$ac_var
 
1390
  # Remove trailing slashes.
 
1391
  case $ac_val in
 
1392
    */ )
 
1393
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1394
      eval $ac_var=\$ac_val;;
 
1395
  esac
 
1396
  # Be sure to have absolute directory names.
 
1397
  case $ac_val in
 
1398
    [\\/$]* | ?:[\\/]* )  continue;;
 
1399
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1400
  esac
 
1401
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1402
   { (exit 1); exit 1; }; }
 
1403
done
 
1404
 
 
1405
# There might be people who depend on the old broken behavior: `$host'
 
1406
# used to hold the argument of --host etc.
 
1407
# FIXME: To remove some day.
 
1408
build=$build_alias
 
1409
host=$host_alias
 
1410
target=$target_alias
 
1411
 
 
1412
# FIXME: To remove some day.
 
1413
if test "x$host_alias" != x; then
 
1414
  if test "x$build_alias" = x; then
 
1415
    cross_compiling=maybe
 
1416
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1417
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1418
  elif test "x$build_alias" != "x$host_alias"; then
 
1419
    cross_compiling=yes
 
1420
  fi
 
1421
fi
 
1422
 
 
1423
ac_tool_prefix=
 
1424
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1425
 
 
1426
test "$silent" = yes && exec 6>/dev/null
 
1427
 
 
1428
 
 
1429
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1430
ac_ls_di=`ls -di .` &&
 
1431
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1432
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1433
   { (exit 1); exit 1; }; }
 
1434
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1435
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1436
   { (exit 1); exit 1; }; }
 
1437
 
 
1438
 
 
1439
# Find the source files, if location was not specified.
 
1440
if test -z "$srcdir"; then
 
1441
  ac_srcdir_defaulted=yes
 
1442
  # Try the directory containing this script, then the parent directory.
 
1443
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1444
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1445
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1446
         X"$as_myself" : 'X\(//\)$' \| \
 
1447
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1448
$as_echo X"$as_myself" |
 
1449
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1450
            s//\1/
 
1451
            q
 
1452
          }
 
1453
          /^X\(\/\/\)[^/].*/{
 
1454
            s//\1/
 
1455
            q
 
1456
          }
 
1457
          /^X\(\/\/\)$/{
 
1458
            s//\1/
 
1459
            q
 
1460
          }
 
1461
          /^X\(\/\).*/{
 
1462
            s//\1/
 
1463
            q
 
1464
          }
 
1465
          s/.*/./; q'`
 
1466
  srcdir=$ac_confdir
 
1467
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1468
    srcdir=..
 
1469
  fi
 
1470
else
 
1471
  ac_srcdir_defaulted=no
 
1472
fi
 
1473
if test ! -r "$srcdir/$ac_unique_file"; then
 
1474
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1475
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1476
   { (exit 1); exit 1; }; }
 
1477
fi
 
1478
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1479
ac_abs_confdir=`(
 
1480
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1481
   { (exit 1); exit 1; }; }
 
1482
        pwd)`
 
1483
# When building in place, set srcdir=.
 
1484
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1485
  srcdir=.
 
1486
fi
 
1487
# Remove unnecessary trailing slashes from srcdir.
 
1488
# Double slashes in file names in object file debugging info
 
1489
# mess up M-x gdb in Emacs.
 
1490
case $srcdir in
 
1491
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1492
esac
 
1493
for ac_var in $ac_precious_vars; do
 
1494
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1495
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1496
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1497
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1498
done
 
1499
 
 
1500
#
 
1501
# Report the --help message.
 
1502
#
 
1503
if test "$ac_init_help" = "long"; then
 
1504
  # Omit some internal or obsolete options to make the list less imposing.
 
1505
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1506
  cat <<_ACEOF
 
1507
\`configure' configures this package to adapt to many kinds of systems.
 
1508
 
 
1509
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1510
 
 
1511
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1512
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1513
 
 
1514
Defaults for the options are specified in brackets.
 
1515
 
 
1516
Configuration:
 
1517
  -h, --help              display this help and exit
 
1518
      --help=short        display options specific to this package
 
1519
      --help=recursive    display the short help of all the included packages
 
1520
  -V, --version           display version information and exit
 
1521
  -q, --quiet, --silent   do not print \`checking...' messages
 
1522
      --cache-file=FILE   cache test results in FILE [disabled]
 
1523
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1524
  -n, --no-create         do not create output files
 
1525
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1526
 
 
1527
Installation directories:
 
1528
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1529
                          [$ac_default_prefix]
 
1530
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1531
                          [PREFIX]
 
1532
 
 
1533
By default, \`make install' will install all the files in
 
1534
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1535
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1536
for instance \`--prefix=\$HOME'.
 
1537
 
 
1538
For better control, use the options below.
 
1539
 
 
1540
Fine tuning of the installation directories:
 
1541
  --bindir=DIR            user executables [EPREFIX/bin]
 
1542
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1543
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1544
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1545
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1546
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1547
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1548
  --includedir=DIR        C header files [PREFIX/include]
 
1549
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1550
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1551
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1552
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1553
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1554
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1555
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1556
  --htmldir=DIR           html documentation [DOCDIR]
 
1557
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1558
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1559
  --psdir=DIR             ps documentation [DOCDIR]
 
1560
_ACEOF
 
1561
 
 
1562
  cat <<\_ACEOF
 
1563
 
 
1564
Program names:
 
1565
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1566
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1567
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1568
 
 
1569
System types:
 
1570
  --build=BUILD     configure for building on BUILD [guessed]
 
1571
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1572
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1573
_ACEOF
 
1574
fi
 
1575
 
 
1576
if test -n "$ac_init_help"; then
 
1577
 
 
1578
  cat <<\_ACEOF
 
1579
 
 
1580
Optional Features:
 
1581
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1582
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1583
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1584
  --disable-dependency-tracking  speeds up one-time build
 
1585
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1586
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1587
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1588
  --enable-fast-install[=PKGS]
 
1589
                          optimize for fast installation [default=yes]
 
1590
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1591
  --enable-debug      Build with support for the DEBUG.
 
1592
  --enable-dtrace      Build with support for the DTRACE.
 
1593
  --enable-64bit      Build 64bit library.
 
1594
 
 
1595
Optional Packages:
 
1596
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1597
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1598
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1599
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1600
                          both]
 
1601
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1602
  --with-memcached[=memcached binary]
 
1603
                          Memcached binary to use for make test
 
1604
 
 
1605
Some influential environment variables:
 
1606
  CC          C compiler command
 
1607
  CFLAGS      C compiler flags
 
1608
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1609
              nonstandard directory <lib dir>
 
1610
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1611
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1612
              you have headers in a nonstandard directory <include dir>
 
1613
  CXX         C++ compiler command
 
1614
  CXXFLAGS    C++ compiler flags
 
1615
  CPP         C preprocessor
 
1616
  CXXCPP      C++ preprocessor
 
1617
  F77         Fortran 77 compiler command
 
1618
  FFLAGS      Fortran 77 compiler flags
 
1619
 
 
1620
Use these variables to override the choices made by `configure' or to help
 
1621
it to find libraries and programs with nonstandard names/locations.
 
1622
 
 
1623
_ACEOF
 
1624
ac_status=$?
 
1625
fi
 
1626
 
 
1627
if test "$ac_init_help" = "recursive"; then
 
1628
  # If there are subdirs, report their specific --help.
 
1629
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1630
    test -d "$ac_dir" ||
 
1631
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1632
      continue
 
1633
    ac_builddir=.
 
1634
 
 
1635
case "$ac_dir" in
 
1636
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1637
*)
 
1638
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1639
  # A ".." for each directory in $ac_dir_suffix.
 
1640
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1641
  case $ac_top_builddir_sub in
 
1642
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1643
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1644
  esac ;;
 
1645
esac
 
1646
ac_abs_top_builddir=$ac_pwd
 
1647
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1648
# for backward compatibility:
 
1649
ac_top_builddir=$ac_top_build_prefix
 
1650
 
 
1651
case $srcdir in
 
1652
  .)  # We are building in place.
 
1653
    ac_srcdir=.
 
1654
    ac_top_srcdir=$ac_top_builddir_sub
 
1655
    ac_abs_top_srcdir=$ac_pwd ;;
 
1656
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1657
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1658
    ac_top_srcdir=$srcdir
 
1659
    ac_abs_top_srcdir=$srcdir ;;
 
1660
  *) # Relative name.
 
1661
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1662
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1663
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1664
esac
 
1665
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1666
 
 
1667
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1668
    # Check for guested configure.
 
1669
    if test -f "$ac_srcdir/configure.gnu"; then
 
1670
      echo &&
 
1671
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1672
    elif test -f "$ac_srcdir/configure"; then
 
1673
      echo &&
 
1674
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1675
    else
 
1676
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1677
    fi || ac_status=$?
 
1678
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1679
  done
 
1680
fi
 
1681
 
 
1682
test -n "$ac_init_help" && exit $ac_status
 
1683
if $ac_init_version; then
 
1684
  cat <<\_ACEOF
 
1685
configure
 
1686
generated by GNU Autoconf 2.63
 
1687
 
 
1688
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1689
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1690
This configure script is free software; the Free Software Foundation
 
1691
gives unlimited permission to copy, distribute and modify it.
 
1692
_ACEOF
 
1693
  exit
 
1694
fi
 
1695
cat >config.log <<_ACEOF
 
1696
This file contains any messages produced by compilers while
 
1697
running configure, to aid debugging if configure makes a mistake.
 
1698
 
 
1699
It was created by $as_me, which was
 
1700
generated by GNU Autoconf 2.63.  Invocation command line was
 
1701
 
 
1702
  $ $0 $@
 
1703
 
 
1704
_ACEOF
 
1705
exec 5>>config.log
 
1706
{
 
1707
cat <<_ASUNAME
 
1708
## --------- ##
 
1709
## Platform. ##
 
1710
## --------- ##
 
1711
 
 
1712
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1713
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1714
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1715
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1716
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1717
 
 
1718
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1719
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1720
 
 
1721
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1722
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1723
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1724
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1725
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1726
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1727
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1728
 
 
1729
_ASUNAME
 
1730
 
 
1731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1732
for as_dir in $PATH
 
1733
do
 
1734
  IFS=$as_save_IFS
 
1735
  test -z "$as_dir" && as_dir=.
 
1736
  $as_echo "PATH: $as_dir"
 
1737
done
 
1738
IFS=$as_save_IFS
 
1739
 
 
1740
} >&5
 
1741
 
 
1742
cat >&5 <<_ACEOF
 
1743
 
 
1744
 
 
1745
## ----------- ##
 
1746
## Core tests. ##
 
1747
## ----------- ##
 
1748
 
 
1749
_ACEOF
 
1750
 
 
1751
 
 
1752
# Keep a trace of the command line.
 
1753
# Strip out --no-create and --no-recursion so they do not pile up.
 
1754
# Strip out --silent because we don't want to record it for future runs.
 
1755
# Also quote any args containing shell meta-characters.
 
1756
# Make two passes to allow for proper duplicate-argument suppression.
 
1757
ac_configure_args=
 
1758
ac_configure_args0=
 
1759
ac_configure_args1=
 
1760
ac_must_keep_next=false
 
1761
for ac_pass in 1 2
 
1762
do
 
1763
  for ac_arg
 
1764
  do
 
1765
    case $ac_arg in
 
1766
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1767
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1768
    | -silent | --silent | --silen | --sile | --sil)
 
1769
      continue ;;
 
1770
    *\'*)
 
1771
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1772
    esac
 
1773
    case $ac_pass in
 
1774
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1775
    2)
 
1776
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1777
      if test $ac_must_keep_next = true; then
 
1778
        ac_must_keep_next=false # Got value, back to normal.
 
1779
      else
 
1780
        case $ac_arg in
 
1781
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1782
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1783
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1784
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1785
            case "$ac_configure_args0 " in
 
1786
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1787
            esac
 
1788
            ;;
 
1789
          -* ) ac_must_keep_next=true ;;
 
1790
        esac
 
1791
      fi
 
1792
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1793
      ;;
 
1794
    esac
 
1795
  done
 
1796
done
 
1797
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1798
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1799
 
 
1800
# When interrupted or exit'd, cleanup temporary files, and complete
 
1801
# config.log.  We remove comments because anyway the quotes in there
 
1802
# would cause problems or look ugly.
 
1803
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1804
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1805
trap 'exit_status=$?
 
1806
  # Save into config.log some information that might help in debugging.
 
1807
  {
 
1808
    echo
 
1809
 
 
1810
    cat <<\_ASBOX
 
1811
## ---------------- ##
 
1812
## Cache variables. ##
 
1813
## ---------------- ##
 
1814
_ASBOX
 
1815
    echo
 
1816
    # The following way of writing the cache mishandles newlines in values,
 
1817
(
 
1818
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1819
    eval ac_val=\$$ac_var
 
1820
    case $ac_val in #(
 
1821
    *${as_nl}*)
 
1822
      case $ac_var in #(
 
1823
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1824
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1825
      esac
 
1826
      case $ac_var in #(
 
1827
      _ | IFS | as_nl) ;; #(
 
1828
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1829
      *) $as_unset $ac_var ;;
 
1830
      esac ;;
 
1831
    esac
 
1832
  done
 
1833
  (set) 2>&1 |
 
1834
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1835
    *${as_nl}ac_space=\ *)
 
1836
      sed -n \
 
1837
        "s/'\''/'\''\\\\'\'''\''/g;
 
1838
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1839
      ;; #(
 
1840
    *)
 
1841
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1842
      ;;
 
1843
    esac |
 
1844
    sort
 
1845
)
 
1846
    echo
 
1847
 
 
1848
    cat <<\_ASBOX
 
1849
## ----------------- ##
 
1850
## Output variables. ##
 
1851
## ----------------- ##
 
1852
_ASBOX
 
1853
    echo
 
1854
    for ac_var in $ac_subst_vars
 
1855
    do
 
1856
      eval ac_val=\$$ac_var
 
1857
      case $ac_val in
 
1858
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1859
      esac
 
1860
      $as_echo "$ac_var='\''$ac_val'\''"
 
1861
    done | sort
 
1862
    echo
 
1863
 
 
1864
    if test -n "$ac_subst_files"; then
 
1865
      cat <<\_ASBOX
 
1866
## ------------------- ##
 
1867
## File substitutions. ##
 
1868
## ------------------- ##
 
1869
_ASBOX
 
1870
      echo
 
1871
      for ac_var in $ac_subst_files
 
1872
      do
 
1873
        eval ac_val=\$$ac_var
 
1874
        case $ac_val in
 
1875
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1876
        esac
 
1877
        $as_echo "$ac_var='\''$ac_val'\''"
 
1878
      done | sort
 
1879
      echo
 
1880
    fi
 
1881
 
 
1882
    if test -s confdefs.h; then
 
1883
      cat <<\_ASBOX
 
1884
## ----------- ##
 
1885
## confdefs.h. ##
 
1886
## ----------- ##
 
1887
_ASBOX
 
1888
      echo
 
1889
      cat confdefs.h
 
1890
      echo
 
1891
    fi
 
1892
    test "$ac_signal" != 0 &&
 
1893
      $as_echo "$as_me: caught signal $ac_signal"
 
1894
    $as_echo "$as_me: exit $exit_status"
 
1895
  } >&5
 
1896
  rm -f core *.core core.conftest.* &&
 
1897
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1898
    exit $exit_status
 
1899
' 0
 
1900
for ac_signal in 1 2 13 15; do
 
1901
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1902
done
 
1903
ac_signal=0
 
1904
 
 
1905
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1906
rm -f -r conftest* confdefs.h
 
1907
 
 
1908
# Predefined preprocessor variables.
 
1909
 
 
1910
cat >>confdefs.h <<_ACEOF
 
1911
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1912
_ACEOF
 
1913
 
 
1914
 
 
1915
cat >>confdefs.h <<_ACEOF
 
1916
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1917
_ACEOF
 
1918
 
 
1919
 
 
1920
cat >>confdefs.h <<_ACEOF
 
1921
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1922
_ACEOF
 
1923
 
 
1924
 
 
1925
cat >>confdefs.h <<_ACEOF
 
1926
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1927
_ACEOF
 
1928
 
 
1929
 
 
1930
cat >>confdefs.h <<_ACEOF
 
1931
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1932
_ACEOF
 
1933
 
 
1934
 
 
1935
# Let the site file select an alternate cache file if it wants to.
 
1936
# Prefer an explicitly selected file to automatically selected ones.
 
1937
ac_site_file1=NONE
 
1938
ac_site_file2=NONE
 
1939
if test -n "$CONFIG_SITE"; then
 
1940
  ac_site_file1=$CONFIG_SITE
 
1941
elif test "x$prefix" != xNONE; then
 
1942
  ac_site_file1=$prefix/share/config.site
 
1943
  ac_site_file2=$prefix/etc/config.site
 
1944
else
 
1945
  ac_site_file1=$ac_default_prefix/share/config.site
 
1946
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1947
fi
 
1948
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1949
do
 
1950
  test "x$ac_site_file" = xNONE && continue
 
1951
  if test -r "$ac_site_file"; then
 
1952
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1953
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1954
    sed 's/^/| /' "$ac_site_file" >&5
 
1955
    . "$ac_site_file"
 
1956
  fi
 
1957
done
 
1958
 
 
1959
if test -r "$cache_file"; then
 
1960
  # Some versions of bash will fail to source /dev/null (special
 
1961
  # files actually), so we avoid doing that.
 
1962
  if test -f "$cache_file"; then
 
1963
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1964
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1965
    case $cache_file in
 
1966
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1967
      *)                      . "./$cache_file";;
 
1968
    esac
 
1969
  fi
 
1970
else
 
1971
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1972
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1973
  >$cache_file
 
1974
fi
 
1975
 
 
1976
# Check that the precious variables saved in the cache have kept the same
 
1977
# value.
 
1978
ac_cache_corrupted=false
 
1979
for ac_var in $ac_precious_vars; do
 
1980
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1981
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1982
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1983
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1984
  case $ac_old_set,$ac_new_set in
 
1985
    set,)
 
1986
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1987
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1988
      ac_cache_corrupted=: ;;
 
1989
    ,set)
 
1990
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1991
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1992
      ac_cache_corrupted=: ;;
 
1993
    ,);;
 
1994
    *)
 
1995
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1996
        # differences in whitespace do not lead to failure.
 
1997
        ac_old_val_w=`echo x $ac_old_val`
 
1998
        ac_new_val_w=`echo x $ac_new_val`
 
1999
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2000
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2001
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2002
          ac_cache_corrupted=:
 
2003
        else
 
2004
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2005
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2006
          eval $ac_var=\$ac_old_val
 
2007
        fi
 
2008
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2009
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2010
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2011
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2012
      fi;;
 
2013
  esac
 
2014
  # Pass precious variables to config.status.
 
2015
  if test "$ac_new_set" = set; then
 
2016
    case $ac_new_val in
 
2017
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2018
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2019
    esac
 
2020
    case " $ac_configure_args " in
 
2021
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2022
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2023
    esac
 
2024
  fi
 
2025
done
 
2026
if $ac_cache_corrupted; then
 
2027
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2029
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2030
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2031
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2032
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2033
   { (exit 1); exit 1; }; }
 
2034
fi
 
2035
 
 
2036
 
 
2037
 
 
2038
 
 
2039
 
 
2040
 
 
2041
 
 
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
 
2049
 
 
2050
 
 
2051
 
 
2052
ac_ext=c
 
2053
ac_cpp='$CPP $CPPFLAGS'
 
2054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2057
 
 
2058
 
 
2059
ac_aux_dir=
 
2060
for ac_dir in config "$srcdir"/config; do
 
2061
  if test -f "$ac_dir/install-sh"; then
 
2062
    ac_aux_dir=$ac_dir
 
2063
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2064
    break
 
2065
  elif test -f "$ac_dir/install.sh"; then
 
2066
    ac_aux_dir=$ac_dir
 
2067
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2068
    break
 
2069
  elif test -f "$ac_dir/shtool"; then
 
2070
    ac_aux_dir=$ac_dir
 
2071
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2072
    break
 
2073
  fi
 
2074
done
 
2075
if test -z "$ac_aux_dir"; then
 
2076
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
 
2077
$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
 
2078
   { (exit 1); exit 1; }; }
 
2079
fi
 
2080
 
 
2081
# These three variables are undocumented and unsupported,
 
2082
# and are intended to be withdrawn in a future Autoconf release.
 
2083
# They can cause serious problems if a builder's source tree is in a directory
 
2084
# whose full name contains unusual characters.
 
2085
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2086
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2087
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2088
 
 
2089
 
 
2090
ac_config_headers="$ac_config_headers libmemcached/libmemcached_config.h"
 
2091
 
 
2092
# Make sure we can run config.sub.
 
2093
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2094
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2095
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2096
   { (exit 1); exit 1; }; }
 
2097
 
 
2098
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2099
$as_echo_n "checking build system type... " >&6; }
 
2100
if test "${ac_cv_build+set}" = set; then
 
2101
  $as_echo_n "(cached) " >&6
 
2102
else
 
2103
  ac_build_alias=$build_alias
 
2104
test "x$ac_build_alias" = x &&
 
2105
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2106
test "x$ac_build_alias" = x &&
 
2107
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2108
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2109
   { (exit 1); exit 1; }; }
 
2110
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2111
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2112
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2113
   { (exit 1); exit 1; }; }
 
2114
 
 
2115
fi
 
2116
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2117
$as_echo "$ac_cv_build" >&6; }
 
2118
case $ac_cv_build in
 
2119
*-*-*) ;;
 
2120
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2121
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2122
   { (exit 1); exit 1; }; };;
 
2123
esac
 
2124
build=$ac_cv_build
 
2125
ac_save_IFS=$IFS; IFS='-'
 
2126
set x $ac_cv_build
 
2127
shift
 
2128
build_cpu=$1
 
2129
build_vendor=$2
 
2130
shift; shift
 
2131
# Remember, the first character of IFS is used to create $*,
 
2132
# except with old shells:
 
2133
build_os=$*
 
2134
IFS=$ac_save_IFS
 
2135
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2136
 
 
2137
 
 
2138
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2139
$as_echo_n "checking host system type... " >&6; }
 
2140
if test "${ac_cv_host+set}" = set; then
 
2141
  $as_echo_n "(cached) " >&6
 
2142
else
 
2143
  if test "x$host_alias" = x; then
 
2144
  ac_cv_host=$ac_cv_build
 
2145
else
 
2146
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2147
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2148
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2149
   { (exit 1); exit 1; }; }
 
2150
fi
 
2151
 
 
2152
fi
 
2153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2154
$as_echo "$ac_cv_host" >&6; }
 
2155
case $ac_cv_host in
 
2156
*-*-*) ;;
 
2157
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2158
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2159
   { (exit 1); exit 1; }; };;
 
2160
esac
 
2161
host=$ac_cv_host
 
2162
ac_save_IFS=$IFS; IFS='-'
 
2163
set x $ac_cv_host
 
2164
shift
 
2165
host_cpu=$1
 
2166
host_vendor=$2
 
2167
shift; shift
 
2168
# Remember, the first character of IFS is used to create $*,
 
2169
# except with old shells:
 
2170
host_os=$*
 
2171
IFS=$ac_save_IFS
 
2172
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2173
 
 
2174
 
 
2175
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
 
2176
$as_echo_n "checking target system type... " >&6; }
 
2177
if test "${ac_cv_target+set}" = set; then
 
2178
  $as_echo_n "(cached) " >&6
 
2179
else
 
2180
  if test "x$target_alias" = x; then
 
2181
  ac_cv_target=$ac_cv_host
 
2182
else
 
2183
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2184
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2185
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2186
   { (exit 1); exit 1; }; }
 
2187
fi
 
2188
 
 
2189
fi
 
2190
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2191
$as_echo "$ac_cv_target" >&6; }
 
2192
case $ac_cv_target in
 
2193
*-*-*) ;;
 
2194
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2195
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
 
2196
   { (exit 1); exit 1; }; };;
 
2197
esac
 
2198
target=$ac_cv_target
 
2199
ac_save_IFS=$IFS; IFS='-'
 
2200
set x $ac_cv_target
 
2201
shift
 
2202
target_cpu=$1
 
2203
target_vendor=$2
 
2204
shift; shift
 
2205
# Remember, the first character of IFS is used to create $*,
 
2206
# except with old shells:
 
2207
target_os=$*
 
2208
IFS=$ac_save_IFS
 
2209
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2210
 
 
2211
 
 
2212
# The aliases save the names the user supplied, while $host etc.
 
2213
# will get canonicalized.
 
2214
test -n "$target_alias" &&
 
2215
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2216
    NONENONEs,x,x, &&
 
2217
  program_prefix=${target_alias}-
 
2218
 
 
2219
MEMCACHED_LIBRARY_NAME=libmemcached
 
2220
 
 
2221
#release versioning
 
2222
MEMCACHED_MAJOR_VERSION=0
 
2223
MEMCACHED_MINOR_VERSION=28
 
2224
MEMCACHED_MICRO_VERSION=0
 
2225
 
 
2226
#API version
 
2227
MEMCACHED_API_VERSION=1.0
 
2228
 
 
2229
 
 
2230
#shared library versioning
 
2231
MEMCACHED_LIBRARY_VERSION=2:0:0
 
2232
#                         | | |
 
2233
#                  +------+ | +---+
 
2234
#                  |        |     |
 
2235
#                 current:revision:age
 
2236
#                  |        |     |
 
2237
#                  |        |     +- increment if interfaces have been added
 
2238
#                  |        |        set to zero if interfaces have been removed or changed
 
2239
#                  |        +- increment if source code has changed
 
2240
#                  |           set to zero if current is incremented
 
2241
#                  +- increment if interfaces have been added, removed or changed
 
2242
 
 
2243
 
 
2244
 
 
2245
PACKAGE=$MEMCACHED_LIBRARY_NAME
 
2246
 
 
2247
 
 
2248
MEMCACHED_VERSION=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION.$MEMCACHED_MICRO_VERSION
 
2249
MEMCACHED_RELEASE=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION
 
2250
 
 
2251
 
 
2252
 
 
2253
VERSION=$MEMCACHED_RELEASE
 
2254
 
 
2255
am__api_version='1.10'
 
2256
 
 
2257
# Find a good install program.  We prefer a C program (faster),
 
2258
# so one script is as good as another.  But avoid the broken or
 
2259
# incompatible versions:
 
2260
# SysV /etc/install, /usr/sbin/install
 
2261
# SunOS /usr/etc/install
 
2262
# IRIX /sbin/install
 
2263
# AIX /bin/install
 
2264
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2265
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2266
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2267
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2268
# OS/2's system install, which has a completely different semantic
 
2269
# ./install, which can be erroneously created by make from ./install.sh.
 
2270
# Reject install programs that cannot install multiple files.
 
2271
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2272
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2273
if test -z "$INSTALL"; then
 
2274
if test "${ac_cv_path_install+set}" = set; then
 
2275
  $as_echo_n "(cached) " >&6
 
2276
else
 
2277
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2278
for as_dir in $PATH
 
2279
do
 
2280
  IFS=$as_save_IFS
 
2281
  test -z "$as_dir" && as_dir=.
 
2282
  # Account for people who put trailing slashes in PATH elements.
 
2283
case $as_dir/ in
 
2284
  ./ | .// | /cC/* | \
 
2285
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2286
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2287
  /usr/ucb/* ) ;;
 
2288
  *)
 
2289
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2290
    # Don't use installbsd from OSF since it installs stuff as root
 
2291
    # by default.
 
2292
    for ac_prog in ginstall scoinst install; do
 
2293
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2294
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2295
          if test $ac_prog = install &&
 
2296
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2297
            # AIX install.  It has an incompatible calling convention.
 
2298
            :
 
2299
          elif test $ac_prog = install &&
 
2300
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2301
            # program-specific install script used by HP pwplus--don't use.
 
2302
            :
 
2303
          else
 
2304
            rm -rf conftest.one conftest.two conftest.dir
 
2305
            echo one > conftest.one
 
2306
            echo two > conftest.two
 
2307
            mkdir conftest.dir
 
2308
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2309
              test -s conftest.one && test -s conftest.two &&
 
2310
              test -s conftest.dir/conftest.one &&
 
2311
              test -s conftest.dir/conftest.two
 
2312
            then
 
2313
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2314
              break 3
 
2315
            fi
 
2316
          fi
 
2317
        fi
 
2318
      done
 
2319
    done
 
2320
    ;;
 
2321
esac
 
2322
 
 
2323
done
 
2324
IFS=$as_save_IFS
 
2325
 
 
2326
rm -rf conftest.one conftest.two conftest.dir
 
2327
 
 
2328
fi
 
2329
  if test "${ac_cv_path_install+set}" = set; then
 
2330
    INSTALL=$ac_cv_path_install
 
2331
  else
 
2332
    # As a last resort, use the slow shell script.  Don't cache a
 
2333
    # value for INSTALL within a source directory, because that will
 
2334
    # break other packages using the cache if that directory is
 
2335
    # removed, or if the value is a relative name.
 
2336
    INSTALL=$ac_install_sh
 
2337
  fi
 
2338
fi
 
2339
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2340
$as_echo "$INSTALL" >&6; }
 
2341
 
 
2342
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2343
# It thinks the first close brace ends the variable substitution.
 
2344
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2345
 
 
2346
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2347
 
 
2348
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2349
 
 
2350
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2351
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2352
# Just in case
 
2353
sleep 1
 
2354
echo timestamp > conftest.file
 
2355
# Do `set' in a subshell so we don't clobber the current shell's
 
2356
# arguments.  Must try -L first in case configure is actually a
 
2357
# symlink; some systems play weird games with the mod time of symlinks
 
2358
# (eg FreeBSD returns the mod time of the symlink's containing
 
2359
# directory).
 
2360
if (
 
2361
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2362
   if test "$*" = "X"; then
 
2363
      # -L didn't work.
 
2364
      set X `ls -t $srcdir/configure conftest.file`
 
2365
   fi
 
2366
   rm -f conftest.file
 
2367
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2368
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2369
 
 
2370
      # If neither matched, then we have a broken ls.  This can happen
 
2371
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2372
      # broken ls alias from the environment.  This has actually
 
2373
      # happened.  Such a system could not be considered "sane".
 
2374
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2375
alias in your environment" >&5
 
2376
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2377
alias in your environment" >&2;}
 
2378
   { (exit 1); exit 1; }; }
 
2379
   fi
 
2380
 
 
2381
   test "$2" = conftest.file
 
2382
   )
 
2383
then
 
2384
   # Ok.
 
2385
   :
 
2386
else
 
2387
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2388
Check your system clock" >&5
 
2389
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2390
Check your system clock" >&2;}
 
2391
   { (exit 1); exit 1; }; }
 
2392
fi
 
2393
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2394
$as_echo "yes" >&6; }
 
2395
test "$program_prefix" != NONE &&
 
2396
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2397
# Use a double $ so make ignores it.
 
2398
test "$program_suffix" != NONE &&
 
2399
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2400
# Double any \ or $.
 
2401
# By default was `s,x,x', remove it if useless.
 
2402
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2403
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2404
 
 
2405
# expand $ac_aux_dir to an absolute path
 
2406
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2407
 
 
2408
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2409
# Use eval to expand $SHELL
 
2410
if eval "$MISSING --run true"; then
 
2411
  am_missing_run="$MISSING --run "
 
2412
else
 
2413
  am_missing_run=
 
2414
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2415
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2416
fi
 
2417
 
 
2418
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2419
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2420
if test -z "$MKDIR_P"; then
 
2421
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2422
  $as_echo_n "(cached) " >&6
 
2423
else
 
2424
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2425
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2426
do
 
2427
  IFS=$as_save_IFS
 
2428
  test -z "$as_dir" && as_dir=.
 
2429
  for ac_prog in mkdir gmkdir; do
 
2430
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2431
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2432
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2433
             'mkdir (GNU coreutils) '* | \
 
2434
             'mkdir (coreutils) '* | \
 
2435
             'mkdir (fileutils) '4.1*)
 
2436
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2437
               break 3;;
 
2438
           esac
 
2439
         done
 
2440
       done
 
2441
done
 
2442
IFS=$as_save_IFS
 
2443
 
 
2444
fi
 
2445
 
 
2446
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2447
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2448
  else
 
2449
    # As a last resort, use the slow shell script.  Don't cache a
 
2450
    # value for MKDIR_P within a source directory, because that will
 
2451
    # break other packages using the cache if that directory is
 
2452
    # removed, or if the value is a relative name.
 
2453
    test -d ./--version && rmdir ./--version
 
2454
    MKDIR_P="$ac_install_sh -d"
 
2455
  fi
 
2456
fi
 
2457
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2458
$as_echo "$MKDIR_P" >&6; }
 
2459
 
 
2460
mkdir_p="$MKDIR_P"
 
2461
case $mkdir_p in
 
2462
  [\\/$]* | ?:[\\/]*) ;;
 
2463
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2464
esac
 
2465
 
 
2466
for ac_prog in gawk mawk nawk awk
 
2467
do
 
2468
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2469
set dummy $ac_prog; ac_word=$2
 
2470
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2471
$as_echo_n "checking for $ac_word... " >&6; }
 
2472
if test "${ac_cv_prog_AWK+set}" = set; then
 
2473
  $as_echo_n "(cached) " >&6
 
2474
else
 
2475
  if test -n "$AWK"; then
 
2476
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2477
else
 
2478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2479
for as_dir in $PATH
 
2480
do
 
2481
  IFS=$as_save_IFS
 
2482
  test -z "$as_dir" && as_dir=.
 
2483
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2484
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2485
    ac_cv_prog_AWK="$ac_prog"
 
2486
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2487
    break 2
 
2488
  fi
 
2489
done
 
2490
done
 
2491
IFS=$as_save_IFS
 
2492
 
 
2493
fi
 
2494
fi
 
2495
AWK=$ac_cv_prog_AWK
 
2496
if test -n "$AWK"; then
 
2497
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2498
$as_echo "$AWK" >&6; }
 
2499
else
 
2500
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2501
$as_echo "no" >&6; }
 
2502
fi
 
2503
 
 
2504
 
 
2505
  test -n "$AWK" && break
 
2506
done
 
2507
 
 
2508
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2509
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2510
set x ${MAKE-make}
 
2511
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2512
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2513
  $as_echo_n "(cached) " >&6
 
2514
else
 
2515
  cat >conftest.make <<\_ACEOF
 
2516
SHELL = /bin/sh
 
2517
all:
 
2518
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2519
_ACEOF
 
2520
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2521
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2522
  *@@@%%%=?*=@@@%%%*)
 
2523
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2524
  *)
 
2525
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2526
esac
 
2527
rm -f conftest.make
 
2528
fi
 
2529
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2530
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2531
$as_echo "yes" >&6; }
 
2532
  SET_MAKE=
 
2533
else
 
2534
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2535
$as_echo "no" >&6; }
 
2536
  SET_MAKE="MAKE=${MAKE-make}"
 
2537
fi
 
2538
 
 
2539
rm -rf .tst 2>/dev/null
 
2540
mkdir .tst 2>/dev/null
 
2541
if test -d .tst; then
 
2542
  am__leading_dot=.
 
2543
else
 
2544
  am__leading_dot=_
 
2545
fi
 
2546
rmdir .tst 2>/dev/null
 
2547
 
 
2548
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2549
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2550
  # is not polluted with repeated "-I."
 
2551
  am__isrc=' -I$(srcdir)'
 
2552
  # test to see if srcdir already configured
 
2553
  if test -f $srcdir/config.status; then
 
2554
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2555
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2556
   { (exit 1); exit 1; }; }
 
2557
  fi
 
2558
fi
 
2559
 
 
2560
# test whether we have cygpath
 
2561
if test -z "$CYGPATH_W"; then
 
2562
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2563
    CYGPATH_W='cygpath -w'
 
2564
  else
 
2565
    CYGPATH_W=echo
 
2566
  fi
 
2567
fi
 
2568
 
 
2569
 
 
2570
# Define the identity of the package.
 
2571
 PACKAGE=$PACKAGE
 
2572
 VERSION=$VERSION
 
2573
 
 
2574
 
 
2575
# Some tools Automake needs.
 
2576
 
 
2577
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2578
 
 
2579
 
 
2580
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2581
 
 
2582
 
 
2583
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2584
 
 
2585
 
 
2586
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2587
 
 
2588
 
 
2589
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2590
 
 
2591
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2592
 
 
2593
# Installed binaries are usually stripped using `strip' when the user
 
2594
# run `make install-strip'.  However `strip' might not be the right
 
2595
# tool to use in cross-compilation environments, therefore Automake
 
2596
# will honor the `STRIP' environment variable to overrule this program.
 
2597
if test "$cross_compiling" != no; then
 
2598
  if test -n "$ac_tool_prefix"; then
 
2599
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2600
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2601
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2602
$as_echo_n "checking for $ac_word... " >&6; }
 
2603
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2604
  $as_echo_n "(cached) " >&6
 
2605
else
 
2606
  if test -n "$STRIP"; then
 
2607
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2608
else
 
2609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2610
for as_dir in $PATH
 
2611
do
 
2612
  IFS=$as_save_IFS
 
2613
  test -z "$as_dir" && as_dir=.
 
2614
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2615
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2616
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2617
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2618
    break 2
 
2619
  fi
 
2620
done
 
2621
done
 
2622
IFS=$as_save_IFS
 
2623
 
 
2624
fi
 
2625
fi
 
2626
STRIP=$ac_cv_prog_STRIP
 
2627
if test -n "$STRIP"; then
 
2628
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2629
$as_echo "$STRIP" >&6; }
 
2630
else
 
2631
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2632
$as_echo "no" >&6; }
 
2633
fi
 
2634
 
 
2635
 
 
2636
fi
 
2637
if test -z "$ac_cv_prog_STRIP"; then
 
2638
  ac_ct_STRIP=$STRIP
 
2639
  # Extract the first word of "strip", so it can be a program name with args.
 
2640
set dummy strip; ac_word=$2
 
2641
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2642
$as_echo_n "checking for $ac_word... " >&6; }
 
2643
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2644
  $as_echo_n "(cached) " >&6
 
2645
else
 
2646
  if test -n "$ac_ct_STRIP"; then
 
2647
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2648
else
 
2649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2650
for as_dir in $PATH
 
2651
do
 
2652
  IFS=$as_save_IFS
 
2653
  test -z "$as_dir" && as_dir=.
 
2654
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2656
    ac_cv_prog_ac_ct_STRIP="strip"
 
2657
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2658
    break 2
 
2659
  fi
 
2660
done
 
2661
done
 
2662
IFS=$as_save_IFS
 
2663
 
 
2664
fi
 
2665
fi
 
2666
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2667
if test -n "$ac_ct_STRIP"; then
 
2668
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2669
$as_echo "$ac_ct_STRIP" >&6; }
 
2670
else
 
2671
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2672
$as_echo "no" >&6; }
 
2673
fi
 
2674
 
 
2675
  if test "x$ac_ct_STRIP" = x; then
 
2676
    STRIP=":"
 
2677
  else
 
2678
    case $cross_compiling:$ac_tool_warned in
 
2679
yes:)
 
2680
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2681
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2682
ac_tool_warned=yes ;;
 
2683
esac
 
2684
    STRIP=$ac_ct_STRIP
 
2685
  fi
 
2686
else
 
2687
  STRIP="$ac_cv_prog_STRIP"
 
2688
fi
 
2689
 
 
2690
fi
 
2691
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2692
 
 
2693
# We need awk for the "check" target.  The system "awk" is bad on
 
2694
# some platforms.
 
2695
# Always define AMTAR for backward compatibility.
 
2696
 
 
2697
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2698
 
 
2699
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2700
 
 
2701
 
 
2702
 
 
2703
 
 
2704
 
 
2705
 
 
2706
ac_ext=c
 
2707
ac_cpp='$CPP $CPPFLAGS'
 
2708
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2709
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2710
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2711
if test -n "$ac_tool_prefix"; then
 
2712
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2713
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2714
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2715
$as_echo_n "checking for $ac_word... " >&6; }
 
2716
if test "${ac_cv_prog_CC+set}" = set; then
 
2717
  $as_echo_n "(cached) " >&6
 
2718
else
 
2719
  if test -n "$CC"; then
 
2720
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2721
else
 
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2723
for as_dir in $PATH
 
2724
do
 
2725
  IFS=$as_save_IFS
 
2726
  test -z "$as_dir" && as_dir=.
 
2727
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2729
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2730
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2731
    break 2
 
2732
  fi
 
2733
done
 
2734
done
 
2735
IFS=$as_save_IFS
 
2736
 
 
2737
fi
 
2738
fi
 
2739
CC=$ac_cv_prog_CC
 
2740
if test -n "$CC"; then
 
2741
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2742
$as_echo "$CC" >&6; }
 
2743
else
 
2744
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2745
$as_echo "no" >&6; }
 
2746
fi
 
2747
 
 
2748
 
 
2749
fi
 
2750
if test -z "$ac_cv_prog_CC"; then
 
2751
  ac_ct_CC=$CC
 
2752
  # Extract the first word of "gcc", so it can be a program name with args.
 
2753
set dummy gcc; ac_word=$2
 
2754
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2755
$as_echo_n "checking for $ac_word... " >&6; }
 
2756
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2757
  $as_echo_n "(cached) " >&6
 
2758
else
 
2759
  if test -n "$ac_ct_CC"; then
 
2760
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2761
else
 
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2763
for as_dir in $PATH
 
2764
do
 
2765
  IFS=$as_save_IFS
 
2766
  test -z "$as_dir" && as_dir=.
 
2767
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2769
    ac_cv_prog_ac_ct_CC="gcc"
 
2770
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2771
    break 2
 
2772
  fi
 
2773
done
 
2774
done
 
2775
IFS=$as_save_IFS
 
2776
 
 
2777
fi
 
2778
fi
 
2779
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2780
if test -n "$ac_ct_CC"; then
 
2781
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2782
$as_echo "$ac_ct_CC" >&6; }
 
2783
else
 
2784
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2785
$as_echo "no" >&6; }
 
2786
fi
 
2787
 
 
2788
  if test "x$ac_ct_CC" = x; then
 
2789
    CC=""
 
2790
  else
 
2791
    case $cross_compiling:$ac_tool_warned in
 
2792
yes:)
 
2793
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2794
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2795
ac_tool_warned=yes ;;
 
2796
esac
 
2797
    CC=$ac_ct_CC
 
2798
  fi
 
2799
else
 
2800
  CC="$ac_cv_prog_CC"
 
2801
fi
 
2802
 
 
2803
if test -z "$CC"; then
 
2804
          if test -n "$ac_tool_prefix"; then
 
2805
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2806
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2807
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2808
$as_echo_n "checking for $ac_word... " >&6; }
 
2809
if test "${ac_cv_prog_CC+set}" = set; then
 
2810
  $as_echo_n "(cached) " >&6
 
2811
else
 
2812
  if test -n "$CC"; then
 
2813
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2814
else
 
2815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2816
for as_dir in $PATH
 
2817
do
 
2818
  IFS=$as_save_IFS
 
2819
  test -z "$as_dir" && as_dir=.
 
2820
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2821
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2822
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2823
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2824
    break 2
 
2825
  fi
 
2826
done
 
2827
done
 
2828
IFS=$as_save_IFS
 
2829
 
 
2830
fi
 
2831
fi
 
2832
CC=$ac_cv_prog_CC
 
2833
if test -n "$CC"; then
 
2834
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2835
$as_echo "$CC" >&6; }
 
2836
else
 
2837
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2838
$as_echo "no" >&6; }
 
2839
fi
 
2840
 
 
2841
 
 
2842
  fi
 
2843
fi
 
2844
if test -z "$CC"; then
 
2845
  # Extract the first word of "cc", so it can be a program name with args.
 
2846
set dummy cc; ac_word=$2
 
2847
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2848
$as_echo_n "checking for $ac_word... " >&6; }
 
2849
if test "${ac_cv_prog_CC+set}" = set; then
 
2850
  $as_echo_n "(cached) " >&6
 
2851
else
 
2852
  if test -n "$CC"; then
 
2853
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2854
else
 
2855
  ac_prog_rejected=no
 
2856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2857
for as_dir in $PATH
 
2858
do
 
2859
  IFS=$as_save_IFS
 
2860
  test -z "$as_dir" && as_dir=.
 
2861
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2863
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2864
       ac_prog_rejected=yes
 
2865
       continue
 
2866
     fi
 
2867
    ac_cv_prog_CC="cc"
 
2868
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2869
    break 2
 
2870
  fi
 
2871
done
 
2872
done
 
2873
IFS=$as_save_IFS
 
2874
 
 
2875
if test $ac_prog_rejected = yes; then
 
2876
  # We found a bogon in the path, so make sure we never use it.
 
2877
  set dummy $ac_cv_prog_CC
 
2878
  shift
 
2879
  if test $# != 0; then
 
2880
    # We chose a different compiler from the bogus one.
 
2881
    # However, it has the same basename, so the bogon will be chosen
 
2882
    # first if we set CC to just the basename; use the full file name.
 
2883
    shift
 
2884
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2885
  fi
 
2886
fi
 
2887
fi
 
2888
fi
 
2889
CC=$ac_cv_prog_CC
 
2890
if test -n "$CC"; then
 
2891
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2892
$as_echo "$CC" >&6; }
 
2893
else
 
2894
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2895
$as_echo "no" >&6; }
 
2896
fi
 
2897
 
 
2898
 
 
2899
fi
 
2900
if test -z "$CC"; then
 
2901
  if test -n "$ac_tool_prefix"; then
 
2902
  for ac_prog in cl.exe
 
2903
  do
 
2904
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2905
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2906
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2907
$as_echo_n "checking for $ac_word... " >&6; }
 
2908
if test "${ac_cv_prog_CC+set}" = set; then
 
2909
  $as_echo_n "(cached) " >&6
 
2910
else
 
2911
  if test -n "$CC"; then
 
2912
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2913
else
 
2914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2915
for as_dir in $PATH
 
2916
do
 
2917
  IFS=$as_save_IFS
 
2918
  test -z "$as_dir" && as_dir=.
 
2919
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2920
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2921
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2922
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2923
    break 2
 
2924
  fi
 
2925
done
 
2926
done
 
2927
IFS=$as_save_IFS
 
2928
 
 
2929
fi
 
2930
fi
 
2931
CC=$ac_cv_prog_CC
 
2932
if test -n "$CC"; then
 
2933
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2934
$as_echo "$CC" >&6; }
 
2935
else
 
2936
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2937
$as_echo "no" >&6; }
 
2938
fi
 
2939
 
 
2940
 
 
2941
    test -n "$CC" && break
 
2942
  done
 
2943
fi
 
2944
if test -z "$CC"; then
 
2945
  ac_ct_CC=$CC
 
2946
  for ac_prog in cl.exe
 
2947
do
 
2948
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2949
set dummy $ac_prog; ac_word=$2
 
2950
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2951
$as_echo_n "checking for $ac_word... " >&6; }
 
2952
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2953
  $as_echo_n "(cached) " >&6
 
2954
else
 
2955
  if test -n "$ac_ct_CC"; then
 
2956
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2957
else
 
2958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2959
for as_dir in $PATH
 
2960
do
 
2961
  IFS=$as_save_IFS
 
2962
  test -z "$as_dir" && as_dir=.
 
2963
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2964
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2965
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2966
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2967
    break 2
 
2968
  fi
 
2969
done
 
2970
done
 
2971
IFS=$as_save_IFS
 
2972
 
 
2973
fi
 
2974
fi
 
2975
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2976
if test -n "$ac_ct_CC"; then
 
2977
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2978
$as_echo "$ac_ct_CC" >&6; }
 
2979
else
 
2980
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2981
$as_echo "no" >&6; }
 
2982
fi
 
2983
 
 
2984
 
 
2985
  test -n "$ac_ct_CC" && break
 
2986
done
 
2987
 
 
2988
  if test "x$ac_ct_CC" = x; then
 
2989
    CC=""
 
2990
  else
 
2991
    case $cross_compiling:$ac_tool_warned in
 
2992
yes:)
 
2993
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2994
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2995
ac_tool_warned=yes ;;
 
2996
esac
 
2997
    CC=$ac_ct_CC
 
2998
  fi
 
2999
fi
 
3000
 
 
3001
fi
 
3002
 
 
3003
 
 
3004
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3005
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3006
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3007
See \`config.log' for more details." >&5
 
3008
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3009
See \`config.log' for more details." >&2;}
 
3010
   { (exit 1); exit 1; }; }; }
 
3011
 
 
3012
# Provide some information about the compiler.
 
3013
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3014
set X $ac_compile
 
3015
ac_compiler=$2
 
3016
{ (ac_try="$ac_compiler --version >&5"
 
3017
case "(($ac_try" in
 
3018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3019
  *) ac_try_echo=$ac_try;;
 
3020
esac
 
3021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3022
$as_echo "$ac_try_echo") >&5
 
3023
  (eval "$ac_compiler --version >&5") 2>&5
 
3024
  ac_status=$?
 
3025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3026
  (exit $ac_status); }
 
3027
{ (ac_try="$ac_compiler -v >&5"
 
3028
case "(($ac_try" in
 
3029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3030
  *) ac_try_echo=$ac_try;;
 
3031
esac
 
3032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3033
$as_echo "$ac_try_echo") >&5
 
3034
  (eval "$ac_compiler -v >&5") 2>&5
 
3035
  ac_status=$?
 
3036
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3037
  (exit $ac_status); }
 
3038
{ (ac_try="$ac_compiler -V >&5"
 
3039
case "(($ac_try" in
 
3040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3041
  *) ac_try_echo=$ac_try;;
 
3042
esac
 
3043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3044
$as_echo "$ac_try_echo") >&5
 
3045
  (eval "$ac_compiler -V >&5") 2>&5
 
3046
  ac_status=$?
 
3047
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3048
  (exit $ac_status); }
 
3049
 
 
3050
cat >conftest.$ac_ext <<_ACEOF
 
3051
/* confdefs.h.  */
 
3052
_ACEOF
 
3053
cat confdefs.h >>conftest.$ac_ext
 
3054
cat >>conftest.$ac_ext <<_ACEOF
 
3055
/* end confdefs.h.  */
 
3056
 
 
3057
int
 
3058
main ()
 
3059
{
 
3060
 
 
3061
  ;
 
3062
  return 0;
 
3063
}
 
3064
_ACEOF
 
3065
ac_clean_files_save=$ac_clean_files
 
3066
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3067
# Try to create an executable without -o first, disregard a.out.
 
3068
# It will help us diagnose broken compilers, and finding out an intuition
 
3069
# of exeext.
 
3070
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3071
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3072
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3073
 
 
3074
# The possible output files:
 
3075
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3076
 
 
3077
ac_rmfiles=
 
3078
for ac_file in $ac_files
 
3079
do
 
3080
  case $ac_file in
 
3081
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3082
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3083
  esac
 
3084
done
 
3085
rm -f $ac_rmfiles
 
3086
 
 
3087
if { (ac_try="$ac_link_default"
 
3088
case "(($ac_try" in
 
3089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3090
  *) ac_try_echo=$ac_try;;
 
3091
esac
 
3092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3093
$as_echo "$ac_try_echo") >&5
 
3094
  (eval "$ac_link_default") 2>&5
 
3095
  ac_status=$?
 
3096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3097
  (exit $ac_status); }; then
 
3098
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3099
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3100
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3101
# so that the user can short-circuit this test for compilers unknown to
 
3102
# Autoconf.
 
3103
for ac_file in $ac_files ''
 
3104
do
 
3105
  test -f "$ac_file" || continue
 
3106
  case $ac_file in
 
3107
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3108
        ;;
 
3109
    [ab].out )
 
3110
        # We found the default executable, but exeext='' is most
 
3111
        # certainly right.
 
3112
        break;;
 
3113
    *.* )
 
3114
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3115
        then :; else
 
3116
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3117
        fi
 
3118
        # We set ac_cv_exeext here because the later test for it is not
 
3119
        # safe: cross compilers may not add the suffix if given an `-o'
 
3120
        # argument, so we may need to know it at that point already.
 
3121
        # Even if this section looks crufty: it has the advantage of
 
3122
        # actually working.
 
3123
        break;;
 
3124
    * )
 
3125
        break;;
 
3126
  esac
 
3127
done
 
3128
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3129
 
 
3130
else
 
3131
  ac_file=''
 
3132
fi
 
3133
 
 
3134
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3135
$as_echo "$ac_file" >&6; }
 
3136
if test -z "$ac_file"; then
 
3137
  $as_echo "$as_me: failed program was:" >&5
 
3138
sed 's/^/| /' conftest.$ac_ext >&5
 
3139
 
 
3140
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3141
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3142
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3143
See \`config.log' for more details." >&5
 
3144
$as_echo "$as_me: error: C compiler cannot create executables
 
3145
See \`config.log' for more details." >&2;}
 
3146
   { (exit 77); exit 77; }; }; }
 
3147
fi
 
3148
 
 
3149
ac_exeext=$ac_cv_exeext
 
3150
 
 
3151
# Check that the compiler produces executables we can run.  If not, either
 
3152
# the compiler is broken, or we cross compile.
 
3153
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3154
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3155
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3156
# If not cross compiling, check that we can run a simple program.
 
3157
if test "$cross_compiling" != yes; then
 
3158
  if { ac_try='./$ac_file'
 
3159
  { (case "(($ac_try" in
 
3160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3161
  *) ac_try_echo=$ac_try;;
 
3162
esac
 
3163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3164
$as_echo "$ac_try_echo") >&5
 
3165
  (eval "$ac_try") 2>&5
 
3166
  ac_status=$?
 
3167
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3168
  (exit $ac_status); }; }; then
 
3169
    cross_compiling=no
 
3170
  else
 
3171
    if test "$cross_compiling" = maybe; then
 
3172
        cross_compiling=yes
 
3173
    else
 
3174
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3175
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3176
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3177
If you meant to cross compile, use \`--host'.
 
3178
See \`config.log' for more details." >&5
 
3179
$as_echo "$as_me: error: cannot run C compiled programs.
 
3180
If you meant to cross compile, use \`--host'.
 
3181
See \`config.log' for more details." >&2;}
 
3182
   { (exit 1); exit 1; }; }; }
 
3183
    fi
 
3184
  fi
 
3185
fi
 
3186
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3187
$as_echo "yes" >&6; }
 
3188
 
 
3189
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3190
ac_clean_files=$ac_clean_files_save
 
3191
# Check that the compiler produces executables we can run.  If not, either
 
3192
# the compiler is broken, or we cross compile.
 
3193
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3194
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3195
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3196
$as_echo "$cross_compiling" >&6; }
 
3197
 
 
3198
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3199
$as_echo_n "checking for suffix of executables... " >&6; }
 
3200
if { (ac_try="$ac_link"
 
3201
case "(($ac_try" in
 
3202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3203
  *) ac_try_echo=$ac_try;;
 
3204
esac
 
3205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3206
$as_echo "$ac_try_echo") >&5
 
3207
  (eval "$ac_link") 2>&5
 
3208
  ac_status=$?
 
3209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3210
  (exit $ac_status); }; then
 
3211
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3212
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3213
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3214
# `rm'.
 
3215
for ac_file in conftest.exe conftest conftest.*; do
 
3216
  test -f "$ac_file" || continue
 
3217
  case $ac_file in
 
3218
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3219
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3220
          break;;
 
3221
    * ) break;;
 
3222
  esac
 
3223
done
 
3224
else
 
3225
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3226
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3227
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3228
See \`config.log' for more details." >&5
 
3229
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3230
See \`config.log' for more details." >&2;}
 
3231
   { (exit 1); exit 1; }; }; }
 
3232
fi
 
3233
 
 
3234
rm -f conftest$ac_cv_exeext
 
3235
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3236
$as_echo "$ac_cv_exeext" >&6; }
 
3237
 
 
3238
rm -f conftest.$ac_ext
 
3239
EXEEXT=$ac_cv_exeext
 
3240
ac_exeext=$EXEEXT
 
3241
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3242
$as_echo_n "checking for suffix of object files... " >&6; }
 
3243
if test "${ac_cv_objext+set}" = set; then
 
3244
  $as_echo_n "(cached) " >&6
 
3245
else
 
3246
  cat >conftest.$ac_ext <<_ACEOF
 
3247
/* confdefs.h.  */
 
3248
_ACEOF
 
3249
cat confdefs.h >>conftest.$ac_ext
 
3250
cat >>conftest.$ac_ext <<_ACEOF
 
3251
/* end confdefs.h.  */
 
3252
 
 
3253
int
 
3254
main ()
 
3255
{
 
3256
 
 
3257
  ;
 
3258
  return 0;
 
3259
}
 
3260
_ACEOF
 
3261
rm -f conftest.o conftest.obj
 
3262
if { (ac_try="$ac_compile"
 
3263
case "(($ac_try" in
 
3264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3265
  *) ac_try_echo=$ac_try;;
 
3266
esac
 
3267
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3268
$as_echo "$ac_try_echo") >&5
 
3269
  (eval "$ac_compile") 2>&5
 
3270
  ac_status=$?
 
3271
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3272
  (exit $ac_status); }; then
 
3273
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3274
  test -f "$ac_file" || continue;
 
3275
  case $ac_file in
 
3276
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3277
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3278
       break;;
 
3279
  esac
 
3280
done
 
3281
else
 
3282
  $as_echo "$as_me: failed program was:" >&5
 
3283
sed 's/^/| /' conftest.$ac_ext >&5
 
3284
 
 
3285
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3286
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3287
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3288
See \`config.log' for more details." >&5
 
3289
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3290
See \`config.log' for more details." >&2;}
 
3291
   { (exit 1); exit 1; }; }; }
 
3292
fi
 
3293
 
 
3294
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3295
fi
 
3296
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3297
$as_echo "$ac_cv_objext" >&6; }
 
3298
OBJEXT=$ac_cv_objext
 
3299
ac_objext=$OBJEXT
 
3300
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3301
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3302
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3303
  $as_echo_n "(cached) " >&6
 
3304
else
 
3305
  cat >conftest.$ac_ext <<_ACEOF
 
3306
/* confdefs.h.  */
 
3307
_ACEOF
 
3308
cat confdefs.h >>conftest.$ac_ext
 
3309
cat >>conftest.$ac_ext <<_ACEOF
 
3310
/* end confdefs.h.  */
 
3311
 
 
3312
int
 
3313
main ()
 
3314
{
 
3315
#ifndef __GNUC__
 
3316
       choke me
 
3317
#endif
 
3318
 
 
3319
  ;
 
3320
  return 0;
 
3321
}
 
3322
_ACEOF
 
3323
rm -f conftest.$ac_objext
 
3324
if { (ac_try="$ac_compile"
 
3325
case "(($ac_try" in
 
3326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3327
  *) ac_try_echo=$ac_try;;
 
3328
esac
 
3329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3330
$as_echo "$ac_try_echo") >&5
 
3331
  (eval "$ac_compile") 2>conftest.er1
 
3332
  ac_status=$?
 
3333
  grep -v '^ *+' conftest.er1 >conftest.err
 
3334
  rm -f conftest.er1
 
3335
  cat conftest.err >&5
 
3336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3337
  (exit $ac_status); } && {
 
3338
         test -z "$ac_c_werror_flag" ||
 
3339
         test ! -s conftest.err
 
3340
       } && test -s conftest.$ac_objext; then
 
3341
  ac_compiler_gnu=yes
 
3342
else
 
3343
  $as_echo "$as_me: failed program was:" >&5
 
3344
sed 's/^/| /' conftest.$ac_ext >&5
 
3345
 
 
3346
        ac_compiler_gnu=no
 
3347
fi
 
3348
 
 
3349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3350
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3351
 
 
3352
fi
 
3353
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3354
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3355
if test $ac_compiler_gnu = yes; then
 
3356
  GCC=yes
 
3357
else
 
3358
  GCC=
 
3359
fi
 
3360
ac_test_CFLAGS=${CFLAGS+set}
 
3361
ac_save_CFLAGS=$CFLAGS
 
3362
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3363
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3364
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3365
  $as_echo_n "(cached) " >&6
 
3366
else
 
3367
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3368
   ac_c_werror_flag=yes
 
3369
   ac_cv_prog_cc_g=no
 
3370
   CFLAGS="-g"
 
3371
   cat >conftest.$ac_ext <<_ACEOF
 
3372
/* confdefs.h.  */
 
3373
_ACEOF
 
3374
cat confdefs.h >>conftest.$ac_ext
 
3375
cat >>conftest.$ac_ext <<_ACEOF
 
3376
/* end confdefs.h.  */
 
3377
 
 
3378
int
 
3379
main ()
 
3380
{
 
3381
 
 
3382
  ;
 
3383
  return 0;
 
3384
}
 
3385
_ACEOF
 
3386
rm -f conftest.$ac_objext
 
3387
if { (ac_try="$ac_compile"
 
3388
case "(($ac_try" in
 
3389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3390
  *) ac_try_echo=$ac_try;;
 
3391
esac
 
3392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3393
$as_echo "$ac_try_echo") >&5
 
3394
  (eval "$ac_compile") 2>conftest.er1
 
3395
  ac_status=$?
 
3396
  grep -v '^ *+' conftest.er1 >conftest.err
 
3397
  rm -f conftest.er1
 
3398
  cat conftest.err >&5
 
3399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3400
  (exit $ac_status); } && {
 
3401
         test -z "$ac_c_werror_flag" ||
 
3402
         test ! -s conftest.err
 
3403
       } && test -s conftest.$ac_objext; then
 
3404
  ac_cv_prog_cc_g=yes
 
3405
else
 
3406
  $as_echo "$as_me: failed program was:" >&5
 
3407
sed 's/^/| /' conftest.$ac_ext >&5
 
3408
 
 
3409
        CFLAGS=""
 
3410
      cat >conftest.$ac_ext <<_ACEOF
 
3411
/* confdefs.h.  */
 
3412
_ACEOF
 
3413
cat confdefs.h >>conftest.$ac_ext
 
3414
cat >>conftest.$ac_ext <<_ACEOF
 
3415
/* end confdefs.h.  */
 
3416
 
 
3417
int
 
3418
main ()
 
3419
{
 
3420
 
 
3421
  ;
 
3422
  return 0;
 
3423
}
 
3424
_ACEOF
 
3425
rm -f conftest.$ac_objext
 
3426
if { (ac_try="$ac_compile"
 
3427
case "(($ac_try" in
 
3428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3429
  *) ac_try_echo=$ac_try;;
 
3430
esac
 
3431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3432
$as_echo "$ac_try_echo") >&5
 
3433
  (eval "$ac_compile") 2>conftest.er1
 
3434
  ac_status=$?
 
3435
  grep -v '^ *+' conftest.er1 >conftest.err
 
3436
  rm -f conftest.er1
 
3437
  cat conftest.err >&5
 
3438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3439
  (exit $ac_status); } && {
 
3440
         test -z "$ac_c_werror_flag" ||
 
3441
         test ! -s conftest.err
 
3442
       } && test -s conftest.$ac_objext; then
 
3443
  :
 
3444
else
 
3445
  $as_echo "$as_me: failed program was:" >&5
 
3446
sed 's/^/| /' conftest.$ac_ext >&5
 
3447
 
 
3448
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3449
         CFLAGS="-g"
 
3450
         cat >conftest.$ac_ext <<_ACEOF
 
3451
/* confdefs.h.  */
 
3452
_ACEOF
 
3453
cat confdefs.h >>conftest.$ac_ext
 
3454
cat >>conftest.$ac_ext <<_ACEOF
 
3455
/* end confdefs.h.  */
 
3456
 
 
3457
int
 
3458
main ()
 
3459
{
 
3460
 
 
3461
  ;
 
3462
  return 0;
 
3463
}
 
3464
_ACEOF
 
3465
rm -f conftest.$ac_objext
 
3466
if { (ac_try="$ac_compile"
 
3467
case "(($ac_try" in
 
3468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3469
  *) ac_try_echo=$ac_try;;
 
3470
esac
 
3471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3472
$as_echo "$ac_try_echo") >&5
 
3473
  (eval "$ac_compile") 2>conftest.er1
 
3474
  ac_status=$?
 
3475
  grep -v '^ *+' conftest.er1 >conftest.err
 
3476
  rm -f conftest.er1
 
3477
  cat conftest.err >&5
 
3478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3479
  (exit $ac_status); } && {
 
3480
         test -z "$ac_c_werror_flag" ||
 
3481
         test ! -s conftest.err
 
3482
       } && test -s conftest.$ac_objext; then
 
3483
  ac_cv_prog_cc_g=yes
 
3484
else
 
3485
  $as_echo "$as_me: failed program was:" >&5
 
3486
sed 's/^/| /' conftest.$ac_ext >&5
 
3487
 
 
3488
 
 
3489
fi
 
3490
 
 
3491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3492
fi
 
3493
 
 
3494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3495
fi
 
3496
 
 
3497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3498
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3499
fi
 
3500
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3501
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3502
if test "$ac_test_CFLAGS" = set; then
 
3503
  CFLAGS=$ac_save_CFLAGS
 
3504
elif test $ac_cv_prog_cc_g = yes; then
 
3505
  if test "$GCC" = yes; then
 
3506
    CFLAGS="-g -O2"
 
3507
  else
 
3508
    CFLAGS="-g"
 
3509
  fi
 
3510
else
 
3511
  if test "$GCC" = yes; then
 
3512
    CFLAGS="-O2"
 
3513
  else
 
3514
    CFLAGS=
 
3515
  fi
 
3516
fi
 
3517
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3518
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3519
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3520
  $as_echo_n "(cached) " >&6
 
3521
else
 
3522
  ac_cv_prog_cc_c89=no
 
3523
ac_save_CC=$CC
 
3524
cat >conftest.$ac_ext <<_ACEOF
 
3525
/* confdefs.h.  */
 
3526
_ACEOF
 
3527
cat confdefs.h >>conftest.$ac_ext
 
3528
cat >>conftest.$ac_ext <<_ACEOF
 
3529
/* end confdefs.h.  */
 
3530
#include <stdarg.h>
 
3531
#include <stdio.h>
 
3532
#include <sys/types.h>
 
3533
#include <sys/stat.h>
 
3534
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3535
struct buf { int x; };
 
3536
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3537
static char *e (p, i)
 
3538
     char **p;
 
3539
     int i;
 
3540
{
 
3541
  return p[i];
 
3542
}
 
3543
static char *f (char * (*g) (char **, int), char **p, ...)
 
3544
{
 
3545
  char *s;
 
3546
  va_list v;
 
3547
  va_start (v,p);
 
3548
  s = g (p, va_arg (v,int));
 
3549
  va_end (v);
 
3550
  return s;
 
3551
}
 
3552
 
 
3553
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3554
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3555
   These don't provoke an error unfortunately, instead are silently treated
 
3556
   as 'x'.  The following induces an error, until -std is added to get
 
3557
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3558
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3559
   that's true only with -std.  */
 
3560
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3561
 
 
3562
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3563
   inside strings and character constants.  */
 
3564
#define FOO(x) 'x'
 
3565
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3566
 
 
3567
int test (int i, double x);
 
3568
struct s1 {int (*f) (int a);};
 
3569
struct s2 {int (*f) (double a);};
 
3570
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3571
int argc;
 
3572
char **argv;
 
3573
int
 
3574
main ()
 
3575
{
 
3576
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3577
  ;
 
3578
  return 0;
 
3579
}
 
3580
_ACEOF
 
3581
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3582
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3583
do
 
3584
  CC="$ac_save_CC $ac_arg"
 
3585
  rm -f conftest.$ac_objext
 
3586
if { (ac_try="$ac_compile"
 
3587
case "(($ac_try" in
 
3588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3589
  *) ac_try_echo=$ac_try;;
 
3590
esac
 
3591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3592
$as_echo "$ac_try_echo") >&5
 
3593
  (eval "$ac_compile") 2>conftest.er1
 
3594
  ac_status=$?
 
3595
  grep -v '^ *+' conftest.er1 >conftest.err
 
3596
  rm -f conftest.er1
 
3597
  cat conftest.err >&5
 
3598
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3599
  (exit $ac_status); } && {
 
3600
         test -z "$ac_c_werror_flag" ||
 
3601
         test ! -s conftest.err
 
3602
       } && test -s conftest.$ac_objext; then
 
3603
  ac_cv_prog_cc_c89=$ac_arg
 
3604
else
 
3605
  $as_echo "$as_me: failed program was:" >&5
 
3606
sed 's/^/| /' conftest.$ac_ext >&5
 
3607
 
 
3608
 
 
3609
fi
 
3610
 
 
3611
rm -f core conftest.err conftest.$ac_objext
 
3612
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3613
done
 
3614
rm -f conftest.$ac_ext
 
3615
CC=$ac_save_CC
 
3616
 
 
3617
fi
 
3618
# AC_CACHE_VAL
 
3619
case "x$ac_cv_prog_cc_c89" in
 
3620
  x)
 
3621
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3622
$as_echo "none needed" >&6; } ;;
 
3623
  xno)
 
3624
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3625
$as_echo "unsupported" >&6; } ;;
 
3626
  *)
 
3627
    CC="$CC $ac_cv_prog_cc_c89"
 
3628
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3629
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3630
esac
 
3631
 
 
3632
 
 
3633
ac_ext=c
 
3634
ac_cpp='$CPP $CPPFLAGS'
 
3635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3638
DEPDIR="${am__leading_dot}deps"
 
3639
 
 
3640
ac_config_commands="$ac_config_commands depfiles"
 
3641
 
 
3642
 
 
3643
am_make=${MAKE-make}
 
3644
cat > confinc << 'END'
 
3645
am__doit:
 
3646
        @echo done
 
3647
.PHONY: am__doit
 
3648
END
 
3649
# If we don't find an include directive, just comment out the code.
 
3650
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3651
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3652
am__include="#"
 
3653
am__quote=
 
3654
_am_result=none
 
3655
# First try GNU make style include.
 
3656
echo "include confinc" > confmf
 
3657
# We grep out `Entering directory' and `Leaving directory'
 
3658
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3659
# In particular we don't look at `^make:' because GNU make might
 
3660
# be invoked under some other name (usually "gmake"), in which
 
3661
# case it prints its new name instead of `make'.
 
3662
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3663
   am__include=include
 
3664
   am__quote=
 
3665
   _am_result=GNU
 
3666
fi
 
3667
# Now try BSD make style include.
 
3668
if test "$am__include" = "#"; then
 
3669
   echo '.include "confinc"' > confmf
 
3670
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3671
      am__include=.include
 
3672
      am__quote="\""
 
3673
      _am_result=BSD
 
3674
   fi
 
3675
fi
 
3676
 
 
3677
 
 
3678
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3679
$as_echo "$_am_result" >&6; }
 
3680
rm -f confinc confmf
 
3681
 
 
3682
# Check whether --enable-dependency-tracking was given.
 
3683
if test "${enable_dependency_tracking+set}" = set; then
 
3684
  enableval=$enable_dependency_tracking;
 
3685
fi
 
3686
 
 
3687
if test "x$enable_dependency_tracking" != xno; then
 
3688
  am_depcomp="$ac_aux_dir/depcomp"
 
3689
  AMDEPBACKSLASH='\'
 
3690
fi
 
3691
 if test "x$enable_dependency_tracking" != xno; then
 
3692
  AMDEP_TRUE=
 
3693
  AMDEP_FALSE='#'
 
3694
else
 
3695
  AMDEP_TRUE='#'
 
3696
  AMDEP_FALSE=
 
3697
fi
 
3698
 
 
3699
 
 
3700
 
 
3701
depcc="$CC"   am_compiler_list=
 
3702
 
 
3703
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3704
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3705
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3706
  $as_echo_n "(cached) " >&6
 
3707
else
 
3708
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3709
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3710
  # making bogus files that we don't know about and never remove.  For
 
3711
  # instance it was reported that on HP-UX the gcc test will end up
 
3712
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3713
  # in D'.
 
3714
  mkdir conftest.dir
 
3715
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3716
  # using a relative directory.
 
3717
  cp "$am_depcomp" conftest.dir
 
3718
  cd conftest.dir
 
3719
  # We will build objects and dependencies in a subdirectory because
 
3720
  # it helps to detect inapplicable dependency modes.  For instance
 
3721
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3722
  # side effect of compilation, but ICC will put the dependencies in
 
3723
  # the current directory while Tru64 will put them in the object
 
3724
  # directory.
 
3725
  mkdir sub
 
3726
 
 
3727
  am_cv_CC_dependencies_compiler_type=none
 
3728
  if test "$am_compiler_list" = ""; then
 
3729
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3730
  fi
 
3731
  for depmode in $am_compiler_list; do
 
3732
    # Setup a source with many dependencies, because some compilers
 
3733
    # like to wrap large dependency lists on column 80 (with \), and
 
3734
    # we should not choose a depcomp mode which is confused by this.
 
3735
    #
 
3736
    # We need to recreate these files for each test, as the compiler may
 
3737
    # overwrite some of them when testing with obscure command lines.
 
3738
    # This happens at least with the AIX C compiler.
 
3739
    : > sub/conftest.c
 
3740
    for i in 1 2 3 4 5 6; do
 
3741
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3742
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3743
      # Solaris 8's {/usr,}/bin/sh.
 
3744
      touch sub/conftst$i.h
 
3745
    done
 
3746
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3747
 
 
3748
    case $depmode in
 
3749
    nosideeffect)
 
3750
      # after this tag, mechanisms are not by side-effect, so they'll
 
3751
      # only be used when explicitly requested
 
3752
      if test "x$enable_dependency_tracking" = xyes; then
 
3753
        continue
 
3754
      else
 
3755
        break
 
3756
      fi
 
3757
      ;;
 
3758
    none) break ;;
 
3759
    esac
 
3760
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3761
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3762
    # handle `-M -o', and we need to detect this.
 
3763
    if depmode=$depmode \
 
3764
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3765
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3766
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3767
         >/dev/null 2>conftest.err &&
 
3768
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3769
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3770
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3771
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3772
      # icc doesn't choke on unknown options, it will just issue warnings
 
3773
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3774
      # that says an option was ignored or not supported.
 
3775
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3776
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3777
      # The diagnosis changed in icc 8.0:
 
3778
      #   icc: Command line remark: option '-MP' not supported
 
3779
      if (grep 'ignoring option' conftest.err ||
 
3780
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3781
        am_cv_CC_dependencies_compiler_type=$depmode
 
3782
        break
 
3783
      fi
 
3784
    fi
 
3785
  done
 
3786
 
 
3787
  cd ..
 
3788
  rm -rf conftest.dir
 
3789
else
 
3790
  am_cv_CC_dependencies_compiler_type=none
 
3791
fi
 
3792
 
 
3793
fi
 
3794
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3795
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3796
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3797
 
 
3798
 if
 
3799
  test "x$enable_dependency_tracking" != xno \
 
3800
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3801
  am__fastdepCC_TRUE=
 
3802
  am__fastdepCC_FALSE='#'
 
3803
else
 
3804
  am__fastdepCC_TRUE='#'
 
3805
  am__fastdepCC_FALSE=
 
3806
fi
 
3807
 
 
3808
 
 
3809
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
3810
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
3811
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
3812
  $as_echo_n "(cached) " >&6
 
3813
else
 
3814
  ac_cv_prog_cc_c99=no
 
3815
ac_save_CC=$CC
 
3816
cat >conftest.$ac_ext <<_ACEOF
 
3817
/* confdefs.h.  */
 
3818
_ACEOF
 
3819
cat confdefs.h >>conftest.$ac_ext
 
3820
cat >>conftest.$ac_ext <<_ACEOF
 
3821
/* end confdefs.h.  */
 
3822
#include <stdarg.h>
 
3823
#include <stdbool.h>
 
3824
#include <stdlib.h>
 
3825
#include <wchar.h>
 
3826
#include <stdio.h>
 
3827
 
 
3828
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
3829
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
3830
#define showlist(...) puts (#__VA_ARGS__)
 
3831
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
3832
static void
 
3833
test_varargs_macros (void)
 
3834
{
 
3835
  int x = 1234;
 
3836
  int y = 5678;
 
3837
  debug ("Flag");
 
3838
  debug ("X = %d\n", x);
 
3839
  showlist (The first, second, and third items.);
 
3840
  report (x>y, "x is %d but y is %d", x, y);
 
3841
}
 
3842
 
 
3843
// Check long long types.
 
3844
#define BIG64 18446744073709551615ull
 
3845
#define BIG32 4294967295ul
 
3846
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
3847
#if !BIG_OK
 
3848
  your preprocessor is broken;
 
3849
#endif
 
3850
#if BIG_OK
 
3851
#else
 
3852
  your preprocessor is broken;
 
3853
#endif
 
3854
static long long int bignum = -9223372036854775807LL;
 
3855
static unsigned long long int ubignum = BIG64;
 
3856
 
 
3857
struct incomplete_array
 
3858
{
 
3859
  int datasize;
 
3860
  double data[];
 
3861
};
 
3862
 
 
3863
struct named_init {
 
3864
  int number;
 
3865
  const wchar_t *name;
 
3866
  double average;
 
3867
};
 
3868
 
 
3869
typedef const char *ccp;
 
3870
 
 
3871
static inline int
 
3872
test_restrict (ccp restrict text)
 
3873
{
 
3874
  // See if C++-style comments work.
 
3875
  // Iterate through items via the restricted pointer.
 
3876
  // Also check for declarations in for loops.
 
3877
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
3878
    continue;
 
3879
  return 0;
 
3880
}
 
3881
 
 
3882
// Check varargs and va_copy.
 
3883
static void
 
3884
test_varargs (const char *format, ...)
 
3885
{
 
3886
  va_list args;
 
3887
  va_start (args, format);
 
3888
  va_list args_copy;
 
3889
  va_copy (args_copy, args);
 
3890
 
 
3891
  const char *str;
 
3892
  int number;
 
3893
  float fnumber;
 
3894
 
 
3895
  while (*format)
 
3896
    {
 
3897
      switch (*format++)
 
3898
        {
 
3899
        case 's': // string
 
3900
          str = va_arg (args_copy, const char *);
 
3901
          break;
 
3902
        case 'd': // int
 
3903
          number = va_arg (args_copy, int);
 
3904
          break;
 
3905
        case 'f': // float
 
3906
          fnumber = va_arg (args_copy, double);
 
3907
          break;
 
3908
        default:
 
3909
          break;
 
3910
        }
 
3911
    }
 
3912
  va_end (args_copy);
 
3913
  va_end (args);
 
3914
}
 
3915
 
 
3916
int
 
3917
main ()
 
3918
{
 
3919
 
 
3920
  // Check bool.
 
3921
  _Bool success = false;
 
3922
 
 
3923
  // Check restrict.
 
3924
  if (test_restrict ("String literal") == 0)
 
3925
    success = true;
 
3926
  char *restrict newvar = "Another string";
 
3927
 
 
3928
  // Check varargs.
 
3929
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
3930
  test_varargs_macros ();
 
3931
 
 
3932
  // Check flexible array members.
 
3933
  struct incomplete_array *ia =
 
3934
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
3935
  ia->datasize = 10;
 
3936
  for (int i = 0; i < ia->datasize; ++i)
 
3937
    ia->data[i] = i * 1.234;
 
3938
 
 
3939
  // Check named initializers.
 
3940
  struct named_init ni = {
 
3941
    .number = 34,
 
3942
    .name = L"Test wide string",
 
3943
    .average = 543.34343,
 
3944
  };
 
3945
 
 
3946
  ni.number = 58;
 
3947
 
 
3948
  int dynamic_array[ni.number];
 
3949
  dynamic_array[ni.number - 1] = 543;
 
3950
 
 
3951
  // work around unused variable warnings
 
3952
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
3953
          || dynamic_array[ni.number - 1] != 543);
 
3954
 
 
3955
  ;
 
3956
  return 0;
 
3957
}
 
3958
_ACEOF
 
3959
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
3960
do
 
3961
  CC="$ac_save_CC $ac_arg"
 
3962
  rm -f conftest.$ac_objext
 
3963
if { (ac_try="$ac_compile"
 
3964
case "(($ac_try" in
 
3965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3966
  *) ac_try_echo=$ac_try;;
 
3967
esac
 
3968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3969
$as_echo "$ac_try_echo") >&5
 
3970
  (eval "$ac_compile") 2>conftest.er1
 
3971
  ac_status=$?
 
3972
  grep -v '^ *+' conftest.er1 >conftest.err
 
3973
  rm -f conftest.er1
 
3974
  cat conftest.err >&5
 
3975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3976
  (exit $ac_status); } && {
 
3977
         test -z "$ac_c_werror_flag" ||
 
3978
         test ! -s conftest.err
 
3979
       } && test -s conftest.$ac_objext; then
 
3980
  ac_cv_prog_cc_c99=$ac_arg
 
3981
else
 
3982
  $as_echo "$as_me: failed program was:" >&5
 
3983
sed 's/^/| /' conftest.$ac_ext >&5
 
3984
 
 
3985
 
 
3986
fi
 
3987
 
 
3988
rm -f core conftest.err conftest.$ac_objext
 
3989
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
3990
done
 
3991
rm -f conftest.$ac_ext
 
3992
CC=$ac_save_CC
 
3993
 
 
3994
fi
 
3995
# AC_CACHE_VAL
 
3996
case "x$ac_cv_prog_cc_c99" in
 
3997
  x)
 
3998
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3999
$as_echo "none needed" >&6; } ;;
 
4000
  xno)
 
4001
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4002
$as_echo "unsupported" >&6; } ;;
 
4003
  *)
 
4004
    CC="$CC $ac_cv_prog_cc_c99"
 
4005
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
4006
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
4007
esac
 
4008
 
 
4009
 
 
4010
 
 
4011
ac_ext=cpp
 
4012
ac_cpp='$CXXCPP $CPPFLAGS'
 
4013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4016
if test -z "$CXX"; then
 
4017
  if test -n "$CCC"; then
 
4018
    CXX=$CCC
 
4019
  else
 
4020
    if test -n "$ac_tool_prefix"; then
 
4021
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4022
  do
 
4023
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4024
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4025
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4026
$as_echo_n "checking for $ac_word... " >&6; }
 
4027
if test "${ac_cv_prog_CXX+set}" = set; then
 
4028
  $as_echo_n "(cached) " >&6
 
4029
else
 
4030
  if test -n "$CXX"; then
 
4031
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4032
else
 
4033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4034
for as_dir in $PATH
 
4035
do
 
4036
  IFS=$as_save_IFS
 
4037
  test -z "$as_dir" && as_dir=.
 
4038
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4039
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4040
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4041
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4042
    break 2
 
4043
  fi
 
4044
done
 
4045
done
 
4046
IFS=$as_save_IFS
 
4047
 
 
4048
fi
 
4049
fi
 
4050
CXX=$ac_cv_prog_CXX
 
4051
if test -n "$CXX"; then
 
4052
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
4053
$as_echo "$CXX" >&6; }
 
4054
else
 
4055
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4056
$as_echo "no" >&6; }
 
4057
fi
 
4058
 
 
4059
 
 
4060
    test -n "$CXX" && break
 
4061
  done
 
4062
fi
 
4063
if test -z "$CXX"; then
 
4064
  ac_ct_CXX=$CXX
 
4065
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4066
do
 
4067
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4068
set dummy $ac_prog; ac_word=$2
 
4069
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4070
$as_echo_n "checking for $ac_word... " >&6; }
 
4071
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4072
  $as_echo_n "(cached) " >&6
 
4073
else
 
4074
  if test -n "$ac_ct_CXX"; then
 
4075
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4076
else
 
4077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4078
for as_dir in $PATH
 
4079
do
 
4080
  IFS=$as_save_IFS
 
4081
  test -z "$as_dir" && as_dir=.
 
4082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4084
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4085
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4086
    break 2
 
4087
  fi
 
4088
done
 
4089
done
 
4090
IFS=$as_save_IFS
 
4091
 
 
4092
fi
 
4093
fi
 
4094
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4095
if test -n "$ac_ct_CXX"; then
 
4096
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4097
$as_echo "$ac_ct_CXX" >&6; }
 
4098
else
 
4099
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4100
$as_echo "no" >&6; }
 
4101
fi
 
4102
 
 
4103
 
 
4104
  test -n "$ac_ct_CXX" && break
 
4105
done
 
4106
 
 
4107
  if test "x$ac_ct_CXX" = x; then
 
4108
    CXX="g++"
 
4109
  else
 
4110
    case $cross_compiling:$ac_tool_warned in
 
4111
yes:)
 
4112
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4113
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4114
ac_tool_warned=yes ;;
 
4115
esac
 
4116
    CXX=$ac_ct_CXX
 
4117
  fi
 
4118
fi
 
4119
 
 
4120
  fi
 
4121
fi
 
4122
# Provide some information about the compiler.
 
4123
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
4124
set X $ac_compile
 
4125
ac_compiler=$2
 
4126
{ (ac_try="$ac_compiler --version >&5"
 
4127
case "(($ac_try" in
 
4128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4129
  *) ac_try_echo=$ac_try;;
 
4130
esac
 
4131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4132
$as_echo "$ac_try_echo") >&5
 
4133
  (eval "$ac_compiler --version >&5") 2>&5
 
4134
  ac_status=$?
 
4135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4136
  (exit $ac_status); }
 
4137
{ (ac_try="$ac_compiler -v >&5"
 
4138
case "(($ac_try" in
 
4139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4140
  *) ac_try_echo=$ac_try;;
 
4141
esac
 
4142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4143
$as_echo "$ac_try_echo") >&5
 
4144
  (eval "$ac_compiler -v >&5") 2>&5
 
4145
  ac_status=$?
 
4146
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4147
  (exit $ac_status); }
 
4148
{ (ac_try="$ac_compiler -V >&5"
 
4149
case "(($ac_try" in
 
4150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4151
  *) ac_try_echo=$ac_try;;
 
4152
esac
 
4153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4154
$as_echo "$ac_try_echo") >&5
 
4155
  (eval "$ac_compiler -V >&5") 2>&5
 
4156
  ac_status=$?
 
4157
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4158
  (exit $ac_status); }
 
4159
 
 
4160
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4161
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
4162
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4163
  $as_echo_n "(cached) " >&6
 
4164
else
 
4165
  cat >conftest.$ac_ext <<_ACEOF
 
4166
/* confdefs.h.  */
 
4167
_ACEOF
 
4168
cat confdefs.h >>conftest.$ac_ext
 
4169
cat >>conftest.$ac_ext <<_ACEOF
 
4170
/* end confdefs.h.  */
 
4171
 
 
4172
int
 
4173
main ()
 
4174
{
 
4175
#ifndef __GNUC__
 
4176
       choke me
 
4177
#endif
 
4178
 
 
4179
  ;
 
4180
  return 0;
 
4181
}
 
4182
_ACEOF
 
4183
rm -f conftest.$ac_objext
 
4184
if { (ac_try="$ac_compile"
 
4185
case "(($ac_try" in
 
4186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4187
  *) ac_try_echo=$ac_try;;
 
4188
esac
 
4189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4190
$as_echo "$ac_try_echo") >&5
 
4191
  (eval "$ac_compile") 2>conftest.er1
 
4192
  ac_status=$?
 
4193
  grep -v '^ *+' conftest.er1 >conftest.err
 
4194
  rm -f conftest.er1
 
4195
  cat conftest.err >&5
 
4196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4197
  (exit $ac_status); } && {
 
4198
         test -z "$ac_cxx_werror_flag" ||
 
4199
         test ! -s conftest.err
 
4200
       } && test -s conftest.$ac_objext; then
 
4201
  ac_compiler_gnu=yes
 
4202
else
 
4203
  $as_echo "$as_me: failed program was:" >&5
 
4204
sed 's/^/| /' conftest.$ac_ext >&5
 
4205
 
 
4206
        ac_compiler_gnu=no
 
4207
fi
 
4208
 
 
4209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4210
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4211
 
 
4212
fi
 
4213
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4214
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
4215
if test $ac_compiler_gnu = yes; then
 
4216
  GXX=yes
 
4217
else
 
4218
  GXX=
 
4219
fi
 
4220
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4221
ac_save_CXXFLAGS=$CXXFLAGS
 
4222
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4223
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
4224
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4225
  $as_echo_n "(cached) " >&6
 
4226
else
 
4227
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4228
   ac_cxx_werror_flag=yes
 
4229
   ac_cv_prog_cxx_g=no
 
4230
   CXXFLAGS="-g"
 
4231
   cat >conftest.$ac_ext <<_ACEOF
 
4232
/* confdefs.h.  */
 
4233
_ACEOF
 
4234
cat confdefs.h >>conftest.$ac_ext
 
4235
cat >>conftest.$ac_ext <<_ACEOF
 
4236
/* end confdefs.h.  */
 
4237
 
 
4238
int
 
4239
main ()
 
4240
{
 
4241
 
 
4242
  ;
 
4243
  return 0;
 
4244
}
 
4245
_ACEOF
 
4246
rm -f conftest.$ac_objext
 
4247
if { (ac_try="$ac_compile"
 
4248
case "(($ac_try" in
 
4249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4250
  *) ac_try_echo=$ac_try;;
 
4251
esac
 
4252
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4253
$as_echo "$ac_try_echo") >&5
 
4254
  (eval "$ac_compile") 2>conftest.er1
 
4255
  ac_status=$?
 
4256
  grep -v '^ *+' conftest.er1 >conftest.err
 
4257
  rm -f conftest.er1
 
4258
  cat conftest.err >&5
 
4259
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4260
  (exit $ac_status); } && {
 
4261
         test -z "$ac_cxx_werror_flag" ||
 
4262
         test ! -s conftest.err
 
4263
       } && test -s conftest.$ac_objext; then
 
4264
  ac_cv_prog_cxx_g=yes
 
4265
else
 
4266
  $as_echo "$as_me: failed program was:" >&5
 
4267
sed 's/^/| /' conftest.$ac_ext >&5
 
4268
 
 
4269
        CXXFLAGS=""
 
4270
      cat >conftest.$ac_ext <<_ACEOF
 
4271
/* confdefs.h.  */
 
4272
_ACEOF
 
4273
cat confdefs.h >>conftest.$ac_ext
 
4274
cat >>conftest.$ac_ext <<_ACEOF
 
4275
/* end confdefs.h.  */
 
4276
 
 
4277
int
 
4278
main ()
 
4279
{
 
4280
 
 
4281
  ;
 
4282
  return 0;
 
4283
}
 
4284
_ACEOF
 
4285
rm -f conftest.$ac_objext
 
4286
if { (ac_try="$ac_compile"
 
4287
case "(($ac_try" in
 
4288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4289
  *) ac_try_echo=$ac_try;;
 
4290
esac
 
4291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4292
$as_echo "$ac_try_echo") >&5
 
4293
  (eval "$ac_compile") 2>conftest.er1
 
4294
  ac_status=$?
 
4295
  grep -v '^ *+' conftest.er1 >conftest.err
 
4296
  rm -f conftest.er1
 
4297
  cat conftest.err >&5
 
4298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4299
  (exit $ac_status); } && {
 
4300
         test -z "$ac_cxx_werror_flag" ||
 
4301
         test ! -s conftest.err
 
4302
       } && test -s conftest.$ac_objext; then
 
4303
  :
 
4304
else
 
4305
  $as_echo "$as_me: failed program was:" >&5
 
4306
sed 's/^/| /' conftest.$ac_ext >&5
 
4307
 
 
4308
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4309
         CXXFLAGS="-g"
 
4310
         cat >conftest.$ac_ext <<_ACEOF
 
4311
/* confdefs.h.  */
 
4312
_ACEOF
 
4313
cat confdefs.h >>conftest.$ac_ext
 
4314
cat >>conftest.$ac_ext <<_ACEOF
 
4315
/* end confdefs.h.  */
 
4316
 
 
4317
int
 
4318
main ()
 
4319
{
 
4320
 
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
rm -f conftest.$ac_objext
 
4326
if { (ac_try="$ac_compile"
 
4327
case "(($ac_try" in
 
4328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4329
  *) ac_try_echo=$ac_try;;
 
4330
esac
 
4331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4332
$as_echo "$ac_try_echo") >&5
 
4333
  (eval "$ac_compile") 2>conftest.er1
 
4334
  ac_status=$?
 
4335
  grep -v '^ *+' conftest.er1 >conftest.err
 
4336
  rm -f conftest.er1
 
4337
  cat conftest.err >&5
 
4338
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4339
  (exit $ac_status); } && {
 
4340
         test -z "$ac_cxx_werror_flag" ||
 
4341
         test ! -s conftest.err
 
4342
       } && test -s conftest.$ac_objext; then
 
4343
  ac_cv_prog_cxx_g=yes
 
4344
else
 
4345
  $as_echo "$as_me: failed program was:" >&5
 
4346
sed 's/^/| /' conftest.$ac_ext >&5
 
4347
 
 
4348
 
 
4349
fi
 
4350
 
 
4351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4352
fi
 
4353
 
 
4354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4355
fi
 
4356
 
 
4357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4358
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4359
fi
 
4360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4361
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
4362
if test "$ac_test_CXXFLAGS" = set; then
 
4363
  CXXFLAGS=$ac_save_CXXFLAGS
 
4364
elif test $ac_cv_prog_cxx_g = yes; then
 
4365
  if test "$GXX" = yes; then
 
4366
    CXXFLAGS="-g -O2"
 
4367
  else
 
4368
    CXXFLAGS="-g"
 
4369
  fi
 
4370
else
 
4371
  if test "$GXX" = yes; then
 
4372
    CXXFLAGS="-O2"
 
4373
  else
 
4374
    CXXFLAGS=
 
4375
  fi
 
4376
fi
 
4377
ac_ext=c
 
4378
ac_cpp='$CPP $CPPFLAGS'
 
4379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4382
 
 
4383
depcc="$CXX"  am_compiler_list=
 
4384
 
 
4385
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4386
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4387
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4388
  $as_echo_n "(cached) " >&6
 
4389
else
 
4390
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4391
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4392
  # making bogus files that we don't know about and never remove.  For
 
4393
  # instance it was reported that on HP-UX the gcc test will end up
 
4394
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4395
  # in D'.
 
4396
  mkdir conftest.dir
 
4397
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4398
  # using a relative directory.
 
4399
  cp "$am_depcomp" conftest.dir
 
4400
  cd conftest.dir
 
4401
  # We will build objects and dependencies in a subdirectory because
 
4402
  # it helps to detect inapplicable dependency modes.  For instance
 
4403
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4404
  # side effect of compilation, but ICC will put the dependencies in
 
4405
  # the current directory while Tru64 will put them in the object
 
4406
  # directory.
 
4407
  mkdir sub
 
4408
 
 
4409
  am_cv_CXX_dependencies_compiler_type=none
 
4410
  if test "$am_compiler_list" = ""; then
 
4411
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4412
  fi
 
4413
  for depmode in $am_compiler_list; do
 
4414
    # Setup a source with many dependencies, because some compilers
 
4415
    # like to wrap large dependency lists on column 80 (with \), and
 
4416
    # we should not choose a depcomp mode which is confused by this.
 
4417
    #
 
4418
    # We need to recreate these files for each test, as the compiler may
 
4419
    # overwrite some of them when testing with obscure command lines.
 
4420
    # This happens at least with the AIX C compiler.
 
4421
    : > sub/conftest.c
 
4422
    for i in 1 2 3 4 5 6; do
 
4423
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4424
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4425
      # Solaris 8's {/usr,}/bin/sh.
 
4426
      touch sub/conftst$i.h
 
4427
    done
 
4428
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4429
 
 
4430
    case $depmode in
 
4431
    nosideeffect)
 
4432
      # after this tag, mechanisms are not by side-effect, so they'll
 
4433
      # only be used when explicitly requested
 
4434
      if test "x$enable_dependency_tracking" = xyes; then
 
4435
        continue
 
4436
      else
 
4437
        break
 
4438
      fi
 
4439
      ;;
 
4440
    none) break ;;
 
4441
    esac
 
4442
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4443
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4444
    # handle `-M -o', and we need to detect this.
 
4445
    if depmode=$depmode \
 
4446
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4447
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4448
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4449
         >/dev/null 2>conftest.err &&
 
4450
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4451
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4452
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4453
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4454
      # icc doesn't choke on unknown options, it will just issue warnings
 
4455
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4456
      # that says an option was ignored or not supported.
 
4457
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4458
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4459
      # The diagnosis changed in icc 8.0:
 
4460
      #   icc: Command line remark: option '-MP' not supported
 
4461
      if (grep 'ignoring option' conftest.err ||
 
4462
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4463
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4464
        break
 
4465
      fi
 
4466
    fi
 
4467
  done
 
4468
 
 
4469
  cd ..
 
4470
  rm -rf conftest.dir
 
4471
else
 
4472
  am_cv_CXX_dependencies_compiler_type=none
 
4473
fi
 
4474
 
 
4475
fi
 
4476
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4477
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4478
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4479
 
 
4480
 if
 
4481
  test "x$enable_dependency_tracking" != xno \
 
4482
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4483
  am__fastdepCXX_TRUE=
 
4484
  am__fastdepCXX_FALSE='#'
 
4485
else
 
4486
  am__fastdepCXX_TRUE='#'
 
4487
  am__fastdepCXX_FALSE=
 
4488
fi
 
4489
 
 
4490
 
 
4491
# Check whether --enable-shared was given.
 
4492
if test "${enable_shared+set}" = set; then
 
4493
  enableval=$enable_shared; p=${PACKAGE-default}
 
4494
    case $enableval in
 
4495
    yes) enable_shared=yes ;;
 
4496
    no) enable_shared=no ;;
 
4497
    *)
 
4498
      enable_shared=no
 
4499
      # Look at the argument we got.  We use all the common list separators.
 
4500
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4501
      for pkg in $enableval; do
 
4502
        IFS="$lt_save_ifs"
 
4503
        if test "X$pkg" = "X$p"; then
 
4504
          enable_shared=yes
 
4505
        fi
 
4506
      done
 
4507
      IFS="$lt_save_ifs"
 
4508
      ;;
 
4509
    esac
 
4510
else
 
4511
  enable_shared=yes
 
4512
fi
 
4513
 
 
4514
 
 
4515
# Check whether --enable-static was given.
 
4516
if test "${enable_static+set}" = set; then
 
4517
  enableval=$enable_static; p=${PACKAGE-default}
 
4518
    case $enableval in
 
4519
    yes) enable_static=yes ;;
 
4520
    no) enable_static=no ;;
 
4521
    *)
 
4522
     enable_static=no
 
4523
      # Look at the argument we got.  We use all the common list separators.
 
4524
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4525
      for pkg in $enableval; do
 
4526
        IFS="$lt_save_ifs"
 
4527
        if test "X$pkg" = "X$p"; then
 
4528
          enable_static=yes
 
4529
        fi
 
4530
      done
 
4531
      IFS="$lt_save_ifs"
 
4532
      ;;
 
4533
    esac
 
4534
else
 
4535
  enable_static=yes
 
4536
fi
 
4537
 
 
4538
 
 
4539
# Check whether --enable-fast-install was given.
 
4540
if test "${enable_fast_install+set}" = set; then
 
4541
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4542
    case $enableval in
 
4543
    yes) enable_fast_install=yes ;;
 
4544
    no) enable_fast_install=no ;;
 
4545
    *)
 
4546
      enable_fast_install=no
 
4547
      # Look at the argument we got.  We use all the common list separators.
 
4548
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4549
      for pkg in $enableval; do
 
4550
        IFS="$lt_save_ifs"
 
4551
        if test "X$pkg" = "X$p"; then
 
4552
          enable_fast_install=yes
 
4553
        fi
 
4554
      done
 
4555
      IFS="$lt_save_ifs"
 
4556
      ;;
 
4557
    esac
 
4558
else
 
4559
  enable_fast_install=yes
 
4560
fi
 
4561
 
 
4562
 
 
4563
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4564
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4565
if test "${lt_cv_path_SED+set}" = set; then
 
4566
  $as_echo_n "(cached) " >&6
 
4567
else
 
4568
  # Loop through the user's path and test for sed and gsed.
 
4569
# Then use that list of sed's as ones to test for truncation.
 
4570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4571
for as_dir in $PATH
 
4572
do
 
4573
  IFS=$as_save_IFS
 
4574
  test -z "$as_dir" && as_dir=.
 
4575
  for lt_ac_prog in sed gsed; do
 
4576
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4577
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4578
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4579
      fi
 
4580
    done
 
4581
  done
 
4582
done
 
4583
IFS=$as_save_IFS
 
4584
lt_ac_max=0
 
4585
lt_ac_count=0
 
4586
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4587
# along with /bin/sed that truncates output.
 
4588
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4589
  test ! -f $lt_ac_sed && continue
 
4590
  cat /dev/null > conftest.in
 
4591
  lt_ac_count=0
 
4592
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4593
  # Check for GNU sed and select it if it is found.
 
4594
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4595
    lt_cv_path_SED=$lt_ac_sed
 
4596
    break
 
4597
  fi
 
4598
  while true; do
 
4599
    cat conftest.in conftest.in >conftest.tmp
 
4600
    mv conftest.tmp conftest.in
 
4601
    cp conftest.in conftest.nl
 
4602
    echo >>conftest.nl
 
4603
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4604
    cmp -s conftest.out conftest.nl || break
 
4605
    # 10000 chars as input seems more than enough
 
4606
    test $lt_ac_count -gt 10 && break
 
4607
    lt_ac_count=`expr $lt_ac_count + 1`
 
4608
    if test $lt_ac_count -gt $lt_ac_max; then
 
4609
      lt_ac_max=$lt_ac_count
 
4610
      lt_cv_path_SED=$lt_ac_sed
 
4611
    fi
 
4612
  done
 
4613
done
 
4614
 
 
4615
fi
 
4616
 
 
4617
SED=$lt_cv_path_SED
 
4618
 
 
4619
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4620
$as_echo "$SED" >&6; }
 
4621
 
 
4622
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4623
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4624
if test "${ac_cv_path_GREP+set}" = set; then
 
4625
  $as_echo_n "(cached) " >&6
 
4626
else
 
4627
  if test -z "$GREP"; then
 
4628
  ac_path_GREP_found=false
 
4629
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4631
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4632
do
 
4633
  IFS=$as_save_IFS
 
4634
  test -z "$as_dir" && as_dir=.
 
4635
  for ac_prog in grep ggrep; do
 
4636
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4637
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4638
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4639
# Check for GNU ac_path_GREP and select it if it is found.
 
4640
  # Check for GNU $ac_path_GREP
 
4641
case `"$ac_path_GREP" --version 2>&1` in
 
4642
*GNU*)
 
4643
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4644
*)
 
4645
  ac_count=0
 
4646
  $as_echo_n 0123456789 >"conftest.in"
 
4647
  while :
 
4648
  do
 
4649
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4650
    mv "conftest.tmp" "conftest.in"
 
4651
    cp "conftest.in" "conftest.nl"
 
4652
    $as_echo 'GREP' >> "conftest.nl"
 
4653
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4654
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4655
    ac_count=`expr $ac_count + 1`
 
4656
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4657
      # Best one so far, save it but keep looking for a better one
 
4658
      ac_cv_path_GREP="$ac_path_GREP"
 
4659
      ac_path_GREP_max=$ac_count
 
4660
    fi
 
4661
    # 10*(2^10) chars as input seems more than enough
 
4662
    test $ac_count -gt 10 && break
 
4663
  done
 
4664
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4665
esac
 
4666
 
 
4667
      $ac_path_GREP_found && break 3
 
4668
    done
 
4669
  done
 
4670
done
 
4671
IFS=$as_save_IFS
 
4672
  if test -z "$ac_cv_path_GREP"; then
 
4673
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4674
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4675
   { (exit 1); exit 1; }; }
 
4676
  fi
 
4677
else
 
4678
  ac_cv_path_GREP=$GREP
 
4679
fi
 
4680
 
 
4681
fi
 
4682
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4683
$as_echo "$ac_cv_path_GREP" >&6; }
 
4684
 GREP="$ac_cv_path_GREP"
 
4685
 
 
4686
 
 
4687
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4688
$as_echo_n "checking for egrep... " >&6; }
 
4689
if test "${ac_cv_path_EGREP+set}" = set; then
 
4690
  $as_echo_n "(cached) " >&6
 
4691
else
 
4692
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4693
   then ac_cv_path_EGREP="$GREP -E"
 
4694
   else
 
4695
     if test -z "$EGREP"; then
 
4696
  ac_path_EGREP_found=false
 
4697
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4698
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4699
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4700
do
 
4701
  IFS=$as_save_IFS
 
4702
  test -z "$as_dir" && as_dir=.
 
4703
  for ac_prog in egrep; do
 
4704
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4705
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4706
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4707
# Check for GNU ac_path_EGREP and select it if it is found.
 
4708
  # Check for GNU $ac_path_EGREP
 
4709
case `"$ac_path_EGREP" --version 2>&1` in
 
4710
*GNU*)
 
4711
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4712
*)
 
4713
  ac_count=0
 
4714
  $as_echo_n 0123456789 >"conftest.in"
 
4715
  while :
 
4716
  do
 
4717
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4718
    mv "conftest.tmp" "conftest.in"
 
4719
    cp "conftest.in" "conftest.nl"
 
4720
    $as_echo 'EGREP' >> "conftest.nl"
 
4721
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4722
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4723
    ac_count=`expr $ac_count + 1`
 
4724
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4725
      # Best one so far, save it but keep looking for a better one
 
4726
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4727
      ac_path_EGREP_max=$ac_count
 
4728
    fi
 
4729
    # 10*(2^10) chars as input seems more than enough
 
4730
    test $ac_count -gt 10 && break
 
4731
  done
 
4732
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4733
esac
 
4734
 
 
4735
      $ac_path_EGREP_found && break 3
 
4736
    done
 
4737
  done
 
4738
done
 
4739
IFS=$as_save_IFS
 
4740
  if test -z "$ac_cv_path_EGREP"; then
 
4741
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4742
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4743
   { (exit 1); exit 1; }; }
 
4744
  fi
 
4745
else
 
4746
  ac_cv_path_EGREP=$EGREP
 
4747
fi
 
4748
 
 
4749
   fi
 
4750
fi
 
4751
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4752
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4753
 EGREP="$ac_cv_path_EGREP"
 
4754
 
 
4755
 
 
4756
 
 
4757
# Check whether --with-gnu-ld was given.
 
4758
if test "${with_gnu_ld+set}" = set; then
 
4759
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4760
else
 
4761
  with_gnu_ld=no
 
4762
fi
 
4763
 
 
4764
ac_prog=ld
 
4765
if test "$GCC" = yes; then
 
4766
  # Check if gcc -print-prog-name=ld gives a path.
 
4767
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4768
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4769
  case $host in
 
4770
  *-*-mingw*)
 
4771
    # gcc leaves a trailing carriage return which upsets mingw
 
4772
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4773
  *)
 
4774
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4775
  esac
 
4776
  case $ac_prog in
 
4777
    # Accept absolute paths.
 
4778
    [\\/]* | ?:[\\/]*)
 
4779
      re_direlt='/[^/][^/]*/\.\./'
 
4780
      # Canonicalize the pathname of ld
 
4781
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4782
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4783
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4784
      done
 
4785
      test -z "$LD" && LD="$ac_prog"
 
4786
      ;;
 
4787
  "")
 
4788
    # If it fails, then pretend we aren't using GCC.
 
4789
    ac_prog=ld
 
4790
    ;;
 
4791
  *)
 
4792
    # If it is relative, then search for the first ld in PATH.
 
4793
    with_gnu_ld=unknown
 
4794
    ;;
 
4795
  esac
 
4796
elif test "$with_gnu_ld" = yes; then
 
4797
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4798
$as_echo_n "checking for GNU ld... " >&6; }
 
4799
else
 
4800
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4801
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4802
fi
 
4803
if test "${lt_cv_path_LD+set}" = set; then
 
4804
  $as_echo_n "(cached) " >&6
 
4805
else
 
4806
  if test -z "$LD"; then
 
4807
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4808
  for ac_dir in $PATH; do
 
4809
    IFS="$lt_save_ifs"
 
4810
    test -z "$ac_dir" && ac_dir=.
 
4811
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4812
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4813
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4814
      # but apparently some variants of GNU ld only accept -v.
 
4815
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4816
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4817
      *GNU* | *'with BFD'*)
 
4818
        test "$with_gnu_ld" != no && break
 
4819
        ;;
 
4820
      *)
 
4821
        test "$with_gnu_ld" != yes && break
 
4822
        ;;
 
4823
      esac
 
4824
    fi
 
4825
  done
 
4826
  IFS="$lt_save_ifs"
 
4827
else
 
4828
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4829
fi
 
4830
fi
 
4831
 
 
4832
LD="$lt_cv_path_LD"
 
4833
if test -n "$LD"; then
 
4834
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4835
$as_echo "$LD" >&6; }
 
4836
else
 
4837
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4838
$as_echo "no" >&6; }
 
4839
fi
 
4840
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4841
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4842
   { (exit 1); exit 1; }; }
 
4843
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4844
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4845
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4846
  $as_echo_n "(cached) " >&6
 
4847
else
 
4848
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4849
case `$LD -v 2>&1 </dev/null` in
 
4850
*GNU* | *'with BFD'*)
 
4851
  lt_cv_prog_gnu_ld=yes
 
4852
  ;;
 
4853
*)
 
4854
  lt_cv_prog_gnu_ld=no
 
4855
  ;;
 
4856
esac
 
4857
fi
 
4858
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4859
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4860
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4861
 
 
4862
 
 
4863
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4864
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4865
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4866
  $as_echo_n "(cached) " >&6
 
4867
else
 
4868
  lt_cv_ld_reload_flag='-r'
 
4869
fi
 
4870
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4871
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4872
reload_flag=$lt_cv_ld_reload_flag
 
4873
case $reload_flag in
 
4874
"" | " "*) ;;
 
4875
*) reload_flag=" $reload_flag" ;;
 
4876
esac
 
4877
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4878
case $host_os in
 
4879
  darwin*)
 
4880
    if test "$GCC" = yes; then
 
4881
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4882
    else
 
4883
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4884
    fi
 
4885
    ;;
 
4886
esac
 
4887
 
 
4888
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4889
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4890
if test "${lt_cv_path_NM+set}" = set; then
 
4891
  $as_echo_n "(cached) " >&6
 
4892
else
 
4893
  if test -n "$NM"; then
 
4894
  # Let the user override the test.
 
4895
  lt_cv_path_NM="$NM"
 
4896
else
 
4897
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4898
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4899
    lt_nm_to_check="$lt_nm_to_check nm"
 
4900
  fi
 
4901
  for lt_tmp_nm in $lt_nm_to_check; do
 
4902
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4903
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4904
      IFS="$lt_save_ifs"
 
4905
      test -z "$ac_dir" && ac_dir=.
 
4906
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4907
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4908
        # Check to see if the nm accepts a BSD-compat flag.
 
4909
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4910
        #   nm: unknown option "B" ignored
 
4911
        # Tru64's nm complains that /dev/null is an invalid object file
 
4912
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4913
        */dev/null* | *'Invalid file or object type'*)
 
4914
          lt_cv_path_NM="$tmp_nm -B"
 
4915
          break
 
4916
          ;;
 
4917
        *)
 
4918
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4919
          */dev/null*)
 
4920
            lt_cv_path_NM="$tmp_nm -p"
 
4921
            break
 
4922
            ;;
 
4923
          *)
 
4924
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4925
            continue # so that we can try to find one that supports BSD flags
 
4926
            ;;
 
4927
          esac
 
4928
          ;;
 
4929
        esac
 
4930
      fi
 
4931
    done
 
4932
    IFS="$lt_save_ifs"
 
4933
  done
 
4934
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4935
fi
 
4936
fi
 
4937
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4938
$as_echo "$lt_cv_path_NM" >&6; }
 
4939
NM="$lt_cv_path_NM"
 
4940
 
 
4941
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4942
$as_echo_n "checking whether ln -s works... " >&6; }
 
4943
LN_S=$as_ln_s
 
4944
if test "$LN_S" = "ln -s"; then
 
4945
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4946
$as_echo "yes" >&6; }
 
4947
else
 
4948
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4949
$as_echo "no, using $LN_S" >&6; }
 
4950
fi
 
4951
 
 
4952
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4953
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4954
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4955
  $as_echo_n "(cached) " >&6
 
4956
else
 
4957
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4958
lt_cv_file_magic_test_file=
 
4959
lt_cv_deplibs_check_method='unknown'
 
4960
# Need to set the preceding variable on all platforms that support
 
4961
# interlibrary dependencies.
 
4962
# 'none' -- dependencies not supported.
 
4963
# `unknown' -- same as none, but documents that we really don't know.
 
4964
# 'pass_all' -- all dependencies passed with no checks.
 
4965
# 'test_compile' -- check by making test program.
 
4966
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4967
# which responds to the $file_magic_cmd with a given extended regex.
 
4968
# If you have `file' or equivalent on your system and you're not sure
 
4969
# whether `pass_all' will *always* work, you probably want this one.
 
4970
 
 
4971
case $host_os in
 
4972
aix[4-9]*)
 
4973
  lt_cv_deplibs_check_method=pass_all
 
4974
  ;;
 
4975
 
 
4976
beos*)
 
4977
  lt_cv_deplibs_check_method=pass_all
 
4978
  ;;
 
4979
 
 
4980
bsdi[45]*)
 
4981
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4982
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4983
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4984
  ;;
 
4985
 
 
4986
cygwin*)
 
4987
  # func_win32_libid is a shell function defined in ltmain.sh
 
4988
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4989
  lt_cv_file_magic_cmd='func_win32_libid'
 
4990
  ;;
 
4991
 
 
4992
mingw* | pw32*)
 
4993
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4994
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4995
  # unless we find 'file', for example because we are cross-compiling.
 
4996
  if ( file / ) >/dev/null 2>&1; then
 
4997
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4998
    lt_cv_file_magic_cmd='func_win32_libid'
 
4999
  else
 
5000
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5001
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5002
  fi
 
5003
  ;;
 
5004
 
 
5005
darwin* | rhapsody*)
 
5006
  lt_cv_deplibs_check_method=pass_all
 
5007
  ;;
 
5008
 
 
5009
freebsd* | dragonfly*)
 
5010
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5011
    case $host_cpu in
 
5012
    i*86 )
 
5013
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5014
      # Let's accept both of them until this is cleared up.
 
5015
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5016
      lt_cv_file_magic_cmd=/usr/bin/file
 
5017
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5018
      ;;
 
5019
    esac
 
5020
  else
 
5021
    lt_cv_deplibs_check_method=pass_all
 
5022
  fi
 
5023
  ;;
 
5024
 
 
5025
gnu*)
 
5026
  lt_cv_deplibs_check_method=pass_all
 
5027
  ;;
 
5028
 
 
5029
hpux10.20* | hpux11*)
 
5030
  lt_cv_file_magic_cmd=/usr/bin/file
 
5031
  case $host_cpu in
 
5032
  ia64*)
 
5033
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5034
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5035
    ;;
 
5036
  hppa*64*)
 
5037
    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]'
 
5038
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5039
    ;;
 
5040
  *)
 
5041
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5042
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5043
    ;;
 
5044
  esac
 
5045
  ;;
 
5046
 
 
5047
interix[3-9]*)
 
5048
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5049
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5050
  ;;
 
5051
 
 
5052
irix5* | irix6* | nonstopux*)
 
5053
  case $LD in
 
5054
  *-32|*"-32 ") libmagic=32-bit;;
 
5055
  *-n32|*"-n32 ") libmagic=N32;;
 
5056
  *-64|*"-64 ") libmagic=64-bit;;
 
5057
  *) libmagic=never-match;;
 
5058
  esac
 
5059
  lt_cv_deplibs_check_method=pass_all
 
5060
  ;;
 
5061
 
 
5062
# This must be Linux ELF.
 
5063
linux* | k*bsd*-gnu)
 
5064
  lt_cv_deplibs_check_method=pass_all
 
5065
  ;;
 
5066
 
 
5067
netbsd*)
 
5068
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5069
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5070
  else
 
5071
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5072
  fi
 
5073
  ;;
 
5074
 
 
5075
newos6*)
 
5076
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5077
  lt_cv_file_magic_cmd=/usr/bin/file
 
5078
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5079
  ;;
 
5080
 
 
5081
nto-qnx*)
 
5082
  lt_cv_deplibs_check_method=unknown
 
5083
  ;;
 
5084
 
 
5085
openbsd*)
 
5086
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5087
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5088
  else
 
5089
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5090
  fi
 
5091
  ;;
 
5092
 
 
5093
osf3* | osf4* | osf5*)
 
5094
  lt_cv_deplibs_check_method=pass_all
 
5095
  ;;
 
5096
 
 
5097
rdos*)
 
5098
  lt_cv_deplibs_check_method=pass_all
 
5099
  ;;
 
5100
 
 
5101
solaris*)
 
5102
  lt_cv_deplibs_check_method=pass_all
 
5103
  ;;
 
5104
 
 
5105
sysv4 | sysv4.3*)
 
5106
  case $host_vendor in
 
5107
  motorola)
 
5108
    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]'
 
5109
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5110
    ;;
 
5111
  ncr)
 
5112
    lt_cv_deplibs_check_method=pass_all
 
5113
    ;;
 
5114
  sequent)
 
5115
    lt_cv_file_magic_cmd='/bin/file'
 
5116
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5117
    ;;
 
5118
  sni)
 
5119
    lt_cv_file_magic_cmd='/bin/file'
 
5120
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5121
    lt_cv_file_magic_test_file=/lib/libc.so
 
5122
    ;;
 
5123
  siemens)
 
5124
    lt_cv_deplibs_check_method=pass_all
 
5125
    ;;
 
5126
  pc)
 
5127
    lt_cv_deplibs_check_method=pass_all
 
5128
    ;;
 
5129
  esac
 
5130
  ;;
 
5131
 
 
5132
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5133
  lt_cv_deplibs_check_method=pass_all
 
5134
  ;;
 
5135
esac
 
5136
 
 
5137
fi
 
5138
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5139
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5140
file_magic_cmd=$lt_cv_file_magic_cmd
 
5141
deplibs_check_method=$lt_cv_deplibs_check_method
 
5142
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5143
 
 
5144
 
 
5145
 
 
5146
 
 
5147
# If no C compiler was specified, use CC.
 
5148
LTCC=${LTCC-"$CC"}
 
5149
 
 
5150
# If no C compiler flags were specified, use CFLAGS.
 
5151
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5152
 
 
5153
# Allow CC to be a program name with arguments.
 
5154
compiler=$CC
 
5155
 
 
5156
 
 
5157
# Check whether --enable-libtool-lock was given.
 
5158
if test "${enable_libtool_lock+set}" = set; then
 
5159
  enableval=$enable_libtool_lock;
 
5160
fi
 
5161
 
 
5162
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5163
 
 
5164
# Some flags need to be propagated to the compiler or linker for good
 
5165
# libtool support.
 
5166
case $host in
 
5167
ia64-*-hpux*)
 
5168
  # Find out which ABI we are using.
 
5169
  echo 'int i;' > conftest.$ac_ext
 
5170
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5171
  (eval $ac_compile) 2>&5
 
5172
  ac_status=$?
 
5173
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5174
  (exit $ac_status); }; then
 
5175
    case `/usr/bin/file conftest.$ac_objext` in
 
5176
    *ELF-32*)
 
5177
      HPUX_IA64_MODE="32"
 
5178
      ;;
 
5179
    *ELF-64*)
 
5180
      HPUX_IA64_MODE="64"
 
5181
      ;;
 
5182
    esac
 
5183
  fi
 
5184
  rm -rf conftest*
 
5185
  ;;
 
5186
*-*-irix6*)
 
5187
  # Find out which ABI we are using.
 
5188
  echo '#line 5188 "configure"' > conftest.$ac_ext
 
5189
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5190
  (eval $ac_compile) 2>&5
 
5191
  ac_status=$?
 
5192
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5193
  (exit $ac_status); }; then
 
5194
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5195
    case `/usr/bin/file conftest.$ac_objext` in
 
5196
    *32-bit*)
 
5197
      LD="${LD-ld} -melf32bsmip"
 
5198
      ;;
 
5199
    *N32*)
 
5200
      LD="${LD-ld} -melf32bmipn32"
 
5201
      ;;
 
5202
    *64-bit*)
 
5203
      LD="${LD-ld} -melf64bmip"
 
5204
      ;;
 
5205
    esac
 
5206
   else
 
5207
    case `/usr/bin/file conftest.$ac_objext` in
 
5208
    *32-bit*)
 
5209
      LD="${LD-ld} -32"
 
5210
      ;;
 
5211
    *N32*)
 
5212
      LD="${LD-ld} -n32"
 
5213
      ;;
 
5214
    *64-bit*)
 
5215
      LD="${LD-ld} -64"
 
5216
      ;;
 
5217
    esac
 
5218
   fi
 
5219
  fi
 
5220
  rm -rf conftest*
 
5221
  ;;
 
5222
 
 
5223
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5224
s390*-*linux*|sparc*-*linux*)
 
5225
  # Find out which ABI we are using.
 
5226
  echo 'int i;' > conftest.$ac_ext
 
5227
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5228
  (eval $ac_compile) 2>&5
 
5229
  ac_status=$?
 
5230
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5231
  (exit $ac_status); }; then
 
5232
    case `/usr/bin/file conftest.o` in
 
5233
    *32-bit*)
 
5234
      case $host in
 
5235
        x86_64-*kfreebsd*-gnu)
 
5236
          LD="${LD-ld} -m elf_i386_fbsd"
 
5237
          ;;
 
5238
        x86_64-*linux*)
 
5239
          LD="${LD-ld} -m elf_i386"
 
5240
          ;;
 
5241
        ppc64-*linux*|powerpc64-*linux*)
 
5242
          LD="${LD-ld} -m elf32ppclinux"
 
5243
          ;;
 
5244
        s390x-*linux*)
 
5245
          LD="${LD-ld} -m elf_s390"
 
5246
          ;;
 
5247
        sparc64-*linux*)
 
5248
          LD="${LD-ld} -m elf32_sparc"
 
5249
          ;;
 
5250
      esac
 
5251
      ;;
 
5252
    *64-bit*)
 
5253
      libsuff=64
 
5254
      case $host in
 
5255
        x86_64-*kfreebsd*-gnu)
 
5256
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5257
          ;;
 
5258
        x86_64-*linux*)
 
5259
          LD="${LD-ld} -m elf_x86_64"
 
5260
          ;;
 
5261
        ppc*-*linux*|powerpc*-*linux*)
 
5262
          LD="${LD-ld} -m elf64ppc"
 
5263
          ;;
 
5264
        s390*-*linux*)
 
5265
          LD="${LD-ld} -m elf64_s390"
 
5266
          ;;
 
5267
        sparc*-*linux*)
 
5268
          LD="${LD-ld} -m elf64_sparc"
 
5269
          ;;
 
5270
      esac
 
5271
      ;;
 
5272
    esac
 
5273
  fi
 
5274
  rm -rf conftest*
 
5275
  ;;
 
5276
 
 
5277
*-*-sco3.2v5*)
 
5278
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5279
  SAVE_CFLAGS="$CFLAGS"
 
5280
  CFLAGS="$CFLAGS -belf"
 
5281
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5282
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5283
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5284
  $as_echo_n "(cached) " >&6
 
5285
else
 
5286
  ac_ext=c
 
5287
ac_cpp='$CPP $CPPFLAGS'
 
5288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5291
 
 
5292
     cat >conftest.$ac_ext <<_ACEOF
 
5293
/* confdefs.h.  */
 
5294
_ACEOF
 
5295
cat confdefs.h >>conftest.$ac_ext
 
5296
cat >>conftest.$ac_ext <<_ACEOF
 
5297
/* end confdefs.h.  */
 
5298
 
 
5299
int
 
5300
main ()
 
5301
{
 
5302
 
 
5303
  ;
 
5304
  return 0;
 
5305
}
 
5306
_ACEOF
 
5307
rm -f conftest.$ac_objext conftest$ac_exeext
 
5308
if { (ac_try="$ac_link"
 
5309
case "(($ac_try" in
 
5310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5311
  *) ac_try_echo=$ac_try;;
 
5312
esac
 
5313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5314
$as_echo "$ac_try_echo") >&5
 
5315
  (eval "$ac_link") 2>conftest.er1
 
5316
  ac_status=$?
 
5317
  grep -v '^ *+' conftest.er1 >conftest.err
 
5318
  rm -f conftest.er1
 
5319
  cat conftest.err >&5
 
5320
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5321
  (exit $ac_status); } && {
 
5322
         test -z "$ac_c_werror_flag" ||
 
5323
         test ! -s conftest.err
 
5324
       } && test -s conftest$ac_exeext && {
 
5325
         test "$cross_compiling" = yes ||
 
5326
         $as_test_x conftest$ac_exeext
 
5327
       }; then
 
5328
  lt_cv_cc_needs_belf=yes
 
5329
else
 
5330
  $as_echo "$as_me: failed program was:" >&5
 
5331
sed 's/^/| /' conftest.$ac_ext >&5
 
5332
 
 
5333
        lt_cv_cc_needs_belf=no
 
5334
fi
 
5335
 
 
5336
rm -rf conftest.dSYM
 
5337
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5338
      conftest$ac_exeext conftest.$ac_ext
 
5339
     ac_ext=c
 
5340
ac_cpp='$CPP $CPPFLAGS'
 
5341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5344
 
 
5345
fi
 
5346
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5347
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5348
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5349
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5350
    CFLAGS="$SAVE_CFLAGS"
 
5351
  fi
 
5352
  ;;
 
5353
sparc*-*solaris*)
 
5354
  # Find out which ABI we are using.
 
5355
  echo 'int i;' > conftest.$ac_ext
 
5356
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5357
  (eval $ac_compile) 2>&5
 
5358
  ac_status=$?
 
5359
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5360
  (exit $ac_status); }; then
 
5361
    case `/usr/bin/file conftest.o` in
 
5362
    *64-bit*)
 
5363
      case $lt_cv_prog_gnu_ld in
 
5364
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5365
      *)
 
5366
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5367
          LD="${LD-ld} -64"
 
5368
        fi
 
5369
        ;;
 
5370
      esac
 
5371
      ;;
 
5372
    esac
 
5373
  fi
 
5374
  rm -rf conftest*
 
5375
  ;;
 
5376
 
 
5377
 
 
5378
esac
 
5379
 
 
5380
need_locks="$enable_libtool_lock"
 
5381
 
 
5382
 
 
5383
ac_ext=c
 
5384
ac_cpp='$CPP $CPPFLAGS'
 
5385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5388
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5389
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
5390
# On Suns, sometimes $CPP names a directory.
 
5391
if test -n "$CPP" && test -d "$CPP"; then
 
5392
  CPP=
 
5393
fi
 
5394
if test -z "$CPP"; then
 
5395
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5396
  $as_echo_n "(cached) " >&6
 
5397
else
 
5398
      # Double quotes because CPP needs to be expanded
 
5399
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5400
    do
 
5401
      ac_preproc_ok=false
 
5402
for ac_c_preproc_warn_flag in '' yes
 
5403
do
 
5404
  # Use a header file that comes with gcc, so configuring glibc
 
5405
  # with a fresh cross-compiler works.
 
5406
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5407
  # <limits.h> exists even on freestanding compilers.
 
5408
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5409
  # not just through cpp. "Syntax error" is here to catch this case.
 
5410
  cat >conftest.$ac_ext <<_ACEOF
 
5411
/* confdefs.h.  */
 
5412
_ACEOF
 
5413
cat confdefs.h >>conftest.$ac_ext
 
5414
cat >>conftest.$ac_ext <<_ACEOF
 
5415
/* end confdefs.h.  */
 
5416
#ifdef __STDC__
 
5417
# include <limits.h>
 
5418
#else
 
5419
# include <assert.h>
 
5420
#endif
 
5421
                     Syntax error
 
5422
_ACEOF
 
5423
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5424
case "(($ac_try" in
 
5425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5426
  *) ac_try_echo=$ac_try;;
 
5427
esac
 
5428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5429
$as_echo "$ac_try_echo") >&5
 
5430
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5431
  ac_status=$?
 
5432
  grep -v '^ *+' conftest.er1 >conftest.err
 
5433
  rm -f conftest.er1
 
5434
  cat conftest.err >&5
 
5435
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5436
  (exit $ac_status); } >/dev/null && {
 
5437
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5438
         test ! -s conftest.err
 
5439
       }; then
 
5440
  :
 
5441
else
 
5442
  $as_echo "$as_me: failed program was:" >&5
 
5443
sed 's/^/| /' conftest.$ac_ext >&5
 
5444
 
 
5445
  # Broken: fails on valid input.
 
5446
continue
 
5447
fi
 
5448
 
 
5449
rm -f conftest.err conftest.$ac_ext
 
5450
 
 
5451
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5452
  # can be detected and how.
 
5453
  cat >conftest.$ac_ext <<_ACEOF
 
5454
/* confdefs.h.  */
 
5455
_ACEOF
 
5456
cat confdefs.h >>conftest.$ac_ext
 
5457
cat >>conftest.$ac_ext <<_ACEOF
 
5458
/* end confdefs.h.  */
 
5459
#include <ac_nonexistent.h>
 
5460
_ACEOF
 
5461
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5462
case "(($ac_try" in
 
5463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5464
  *) ac_try_echo=$ac_try;;
 
5465
esac
 
5466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5467
$as_echo "$ac_try_echo") >&5
 
5468
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5469
  ac_status=$?
 
5470
  grep -v '^ *+' conftest.er1 >conftest.err
 
5471
  rm -f conftest.er1
 
5472
  cat conftest.err >&5
 
5473
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5474
  (exit $ac_status); } >/dev/null && {
 
5475
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5476
         test ! -s conftest.err
 
5477
       }; then
 
5478
  # Broken: success on invalid input.
 
5479
continue
 
5480
else
 
5481
  $as_echo "$as_me: failed program was:" >&5
 
5482
sed 's/^/| /' conftest.$ac_ext >&5
 
5483
 
 
5484
  # Passes both tests.
 
5485
ac_preproc_ok=:
 
5486
break
 
5487
fi
 
5488
 
 
5489
rm -f conftest.err conftest.$ac_ext
 
5490
 
 
5491
done
 
5492
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5493
rm -f conftest.err conftest.$ac_ext
 
5494
if $ac_preproc_ok; then
 
5495
  break
 
5496
fi
 
5497
 
 
5498
    done
 
5499
    ac_cv_prog_CPP=$CPP
 
5500
 
 
5501
fi
 
5502
  CPP=$ac_cv_prog_CPP
 
5503
else
 
5504
  ac_cv_prog_CPP=$CPP
 
5505
fi
 
5506
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
5507
$as_echo "$CPP" >&6; }
 
5508
ac_preproc_ok=false
 
5509
for ac_c_preproc_warn_flag in '' yes
 
5510
do
 
5511
  # Use a header file that comes with gcc, so configuring glibc
 
5512
  # with a fresh cross-compiler works.
 
5513
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5514
  # <limits.h> exists even on freestanding compilers.
 
5515
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5516
  # not just through cpp. "Syntax error" is here to catch this case.
 
5517
  cat >conftest.$ac_ext <<_ACEOF
 
5518
/* confdefs.h.  */
 
5519
_ACEOF
 
5520
cat confdefs.h >>conftest.$ac_ext
 
5521
cat >>conftest.$ac_ext <<_ACEOF
 
5522
/* end confdefs.h.  */
 
5523
#ifdef __STDC__
 
5524
# include <limits.h>
 
5525
#else
 
5526
# include <assert.h>
 
5527
#endif
 
5528
                     Syntax error
 
5529
_ACEOF
 
5530
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5531
case "(($ac_try" in
 
5532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5533
  *) ac_try_echo=$ac_try;;
 
5534
esac
 
5535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5536
$as_echo "$ac_try_echo") >&5
 
5537
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5538
  ac_status=$?
 
5539
  grep -v '^ *+' conftest.er1 >conftest.err
 
5540
  rm -f conftest.er1
 
5541
  cat conftest.err >&5
 
5542
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5543
  (exit $ac_status); } >/dev/null && {
 
5544
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5545
         test ! -s conftest.err
 
5546
       }; then
 
5547
  :
 
5548
else
 
5549
  $as_echo "$as_me: failed program was:" >&5
 
5550
sed 's/^/| /' conftest.$ac_ext >&5
 
5551
 
 
5552
  # Broken: fails on valid input.
 
5553
continue
 
5554
fi
 
5555
 
 
5556
rm -f conftest.err conftest.$ac_ext
 
5557
 
 
5558
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5559
  # can be detected and how.
 
5560
  cat >conftest.$ac_ext <<_ACEOF
 
5561
/* confdefs.h.  */
 
5562
_ACEOF
 
5563
cat confdefs.h >>conftest.$ac_ext
 
5564
cat >>conftest.$ac_ext <<_ACEOF
 
5565
/* end confdefs.h.  */
 
5566
#include <ac_nonexistent.h>
 
5567
_ACEOF
 
5568
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5569
case "(($ac_try" in
 
5570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5571
  *) ac_try_echo=$ac_try;;
 
5572
esac
 
5573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5574
$as_echo "$ac_try_echo") >&5
 
5575
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5576
  ac_status=$?
 
5577
  grep -v '^ *+' conftest.er1 >conftest.err
 
5578
  rm -f conftest.er1
 
5579
  cat conftest.err >&5
 
5580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5581
  (exit $ac_status); } >/dev/null && {
 
5582
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5583
         test ! -s conftest.err
 
5584
       }; then
 
5585
  # Broken: success on invalid input.
 
5586
continue
 
5587
else
 
5588
  $as_echo "$as_me: failed program was:" >&5
 
5589
sed 's/^/| /' conftest.$ac_ext >&5
 
5590
 
 
5591
  # Passes both tests.
 
5592
ac_preproc_ok=:
 
5593
break
 
5594
fi
 
5595
 
 
5596
rm -f conftest.err conftest.$ac_ext
 
5597
 
 
5598
done
 
5599
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5600
rm -f conftest.err conftest.$ac_ext
 
5601
if $ac_preproc_ok; then
 
5602
  :
 
5603
else
 
5604
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5605
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5606
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5607
See \`config.log' for more details." >&5
 
5608
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5609
See \`config.log' for more details." >&2;}
 
5610
   { (exit 1); exit 1; }; }; }
 
5611
fi
 
5612
 
 
5613
ac_ext=c
 
5614
ac_cpp='$CPP $CPPFLAGS'
 
5615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5618
 
 
5619
 
 
5620
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5621
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5622
if test "${ac_cv_header_stdc+set}" = set; then
 
5623
  $as_echo_n "(cached) " >&6
 
5624
else
 
5625
  cat >conftest.$ac_ext <<_ACEOF
 
5626
/* confdefs.h.  */
 
5627
_ACEOF
 
5628
cat confdefs.h >>conftest.$ac_ext
 
5629
cat >>conftest.$ac_ext <<_ACEOF
 
5630
/* end confdefs.h.  */
 
5631
#include <stdlib.h>
 
5632
#include <stdarg.h>
 
5633
#include <string.h>
 
5634
#include <float.h>
 
5635
 
 
5636
int
 
5637
main ()
 
5638
{
 
5639
 
 
5640
  ;
 
5641
  return 0;
 
5642
}
 
5643
_ACEOF
 
5644
rm -f conftest.$ac_objext
 
5645
if { (ac_try="$ac_compile"
 
5646
case "(($ac_try" in
 
5647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5648
  *) ac_try_echo=$ac_try;;
 
5649
esac
 
5650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5651
$as_echo "$ac_try_echo") >&5
 
5652
  (eval "$ac_compile") 2>conftest.er1
 
5653
  ac_status=$?
 
5654
  grep -v '^ *+' conftest.er1 >conftest.err
 
5655
  rm -f conftest.er1
 
5656
  cat conftest.err >&5
 
5657
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5658
  (exit $ac_status); } && {
 
5659
         test -z "$ac_c_werror_flag" ||
 
5660
         test ! -s conftest.err
 
5661
       } && test -s conftest.$ac_objext; then
 
5662
  ac_cv_header_stdc=yes
 
5663
else
 
5664
  $as_echo "$as_me: failed program was:" >&5
 
5665
sed 's/^/| /' conftest.$ac_ext >&5
 
5666
 
 
5667
        ac_cv_header_stdc=no
 
5668
fi
 
5669
 
 
5670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5671
 
 
5672
if test $ac_cv_header_stdc = yes; then
 
5673
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5674
  cat >conftest.$ac_ext <<_ACEOF
 
5675
/* confdefs.h.  */
 
5676
_ACEOF
 
5677
cat confdefs.h >>conftest.$ac_ext
 
5678
cat >>conftest.$ac_ext <<_ACEOF
 
5679
/* end confdefs.h.  */
 
5680
#include <string.h>
 
5681
 
 
5682
_ACEOF
 
5683
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5684
  $EGREP "memchr" >/dev/null 2>&1; then
 
5685
  :
 
5686
else
 
5687
  ac_cv_header_stdc=no
 
5688
fi
 
5689
rm -f conftest*
 
5690
 
 
5691
fi
 
5692
 
 
5693
if test $ac_cv_header_stdc = yes; then
 
5694
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5695
  cat >conftest.$ac_ext <<_ACEOF
 
5696
/* confdefs.h.  */
 
5697
_ACEOF
 
5698
cat confdefs.h >>conftest.$ac_ext
 
5699
cat >>conftest.$ac_ext <<_ACEOF
 
5700
/* end confdefs.h.  */
 
5701
#include <stdlib.h>
 
5702
 
 
5703
_ACEOF
 
5704
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5705
  $EGREP "free" >/dev/null 2>&1; then
 
5706
  :
 
5707
else
 
5708
  ac_cv_header_stdc=no
 
5709
fi
 
5710
rm -f conftest*
 
5711
 
 
5712
fi
 
5713
 
 
5714
if test $ac_cv_header_stdc = yes; then
 
5715
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5716
  if test "$cross_compiling" = yes; then
 
5717
  :
 
5718
else
 
5719
  cat >conftest.$ac_ext <<_ACEOF
 
5720
/* confdefs.h.  */
 
5721
_ACEOF
 
5722
cat confdefs.h >>conftest.$ac_ext
 
5723
cat >>conftest.$ac_ext <<_ACEOF
 
5724
/* end confdefs.h.  */
 
5725
#include <ctype.h>
 
5726
#include <stdlib.h>
 
5727
#if ((' ' & 0x0FF) == 0x020)
 
5728
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5729
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5730
#else
 
5731
# define ISLOWER(c) \
 
5732
                   (('a' <= (c) && (c) <= 'i') \
 
5733
                     || ('j' <= (c) && (c) <= 'r') \
 
5734
                     || ('s' <= (c) && (c) <= 'z'))
 
5735
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5736
#endif
 
5737
 
 
5738
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5739
int
 
5740
main ()
 
5741
{
 
5742
  int i;
 
5743
  for (i = 0; i < 256; i++)
 
5744
    if (XOR (islower (i), ISLOWER (i))
 
5745
        || toupper (i) != TOUPPER (i))
 
5746
      return 2;
 
5747
  return 0;
 
5748
}
 
5749
_ACEOF
 
5750
rm -f conftest$ac_exeext
 
5751
if { (ac_try="$ac_link"
 
5752
case "(($ac_try" in
 
5753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5754
  *) ac_try_echo=$ac_try;;
 
5755
esac
 
5756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5757
$as_echo "$ac_try_echo") >&5
 
5758
  (eval "$ac_link") 2>&5
 
5759
  ac_status=$?
 
5760
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5761
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5762
  { (case "(($ac_try" in
 
5763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5764
  *) ac_try_echo=$ac_try;;
 
5765
esac
 
5766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5767
$as_echo "$ac_try_echo") >&5
 
5768
  (eval "$ac_try") 2>&5
 
5769
  ac_status=$?
 
5770
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5771
  (exit $ac_status); }; }; then
 
5772
  :
 
5773
else
 
5774
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5775
$as_echo "$as_me: failed program was:" >&5
 
5776
sed 's/^/| /' conftest.$ac_ext >&5
 
5777
 
 
5778
( exit $ac_status )
 
5779
ac_cv_header_stdc=no
 
5780
fi
 
5781
rm -rf conftest.dSYM
 
5782
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5783
fi
 
5784
 
 
5785
 
 
5786
fi
 
5787
fi
 
5788
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5789
$as_echo "$ac_cv_header_stdc" >&6; }
 
5790
if test $ac_cv_header_stdc = yes; then
 
5791
 
 
5792
cat >>confdefs.h <<\_ACEOF
 
5793
#define STDC_HEADERS 1
 
5794
_ACEOF
 
5795
 
 
5796
fi
 
5797
 
 
5798
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5799
 
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5809
                  inttypes.h stdint.h unistd.h
 
5810
do
 
5811
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5812
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5813
$as_echo_n "checking for $ac_header... " >&6; }
 
5814
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5815
  $as_echo_n "(cached) " >&6
 
5816
else
 
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
$ac_includes_default
 
5824
 
 
5825
#include <$ac_header>
 
5826
_ACEOF
 
5827
rm -f conftest.$ac_objext
 
5828
if { (ac_try="$ac_compile"
 
5829
case "(($ac_try" in
 
5830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5831
  *) ac_try_echo=$ac_try;;
 
5832
esac
 
5833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5834
$as_echo "$ac_try_echo") >&5
 
5835
  (eval "$ac_compile") 2>conftest.er1
 
5836
  ac_status=$?
 
5837
  grep -v '^ *+' conftest.er1 >conftest.err
 
5838
  rm -f conftest.er1
 
5839
  cat conftest.err >&5
 
5840
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); } && {
 
5842
         test -z "$ac_c_werror_flag" ||
 
5843
         test ! -s conftest.err
 
5844
       } && test -s conftest.$ac_objext; then
 
5845
  eval "$as_ac_Header=yes"
 
5846
else
 
5847
  $as_echo "$as_me: failed program was:" >&5
 
5848
sed 's/^/| /' conftest.$ac_ext >&5
 
5849
 
 
5850
        eval "$as_ac_Header=no"
 
5851
fi
 
5852
 
 
5853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5854
fi
 
5855
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5856
                 $as_echo "$as_val"'`
 
5857
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5858
$as_echo "$ac_res" >&6; }
 
5859
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5860
                 $as_echo "$as_val"'`
 
5861
   if test "x$as_val" = x""yes; then
 
5862
  cat >>confdefs.h <<_ACEOF
 
5863
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5864
_ACEOF
 
5865
 
 
5866
fi
 
5867
 
 
5868
done
 
5869
 
 
5870
 
 
5871
 
 
5872
for ac_header in dlfcn.h
 
5873
do
 
5874
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5875
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5876
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5877
$as_echo_n "checking for $ac_header... " >&6; }
 
5878
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5879
  $as_echo_n "(cached) " >&6
 
5880
fi
 
5881
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5882
                 $as_echo "$as_val"'`
 
5883
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5884
$as_echo "$ac_res" >&6; }
 
5885
else
 
5886
  # Is the header compilable?
 
5887
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5888
$as_echo_n "checking $ac_header usability... " >&6; }
 
5889
cat >conftest.$ac_ext <<_ACEOF
 
5890
/* confdefs.h.  */
 
5891
_ACEOF
 
5892
cat confdefs.h >>conftest.$ac_ext
 
5893
cat >>conftest.$ac_ext <<_ACEOF
 
5894
/* end confdefs.h.  */
 
5895
$ac_includes_default
 
5896
#include <$ac_header>
 
5897
_ACEOF
 
5898
rm -f conftest.$ac_objext
 
5899
if { (ac_try="$ac_compile"
 
5900
case "(($ac_try" in
 
5901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5902
  *) ac_try_echo=$ac_try;;
 
5903
esac
 
5904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5905
$as_echo "$ac_try_echo") >&5
 
5906
  (eval "$ac_compile") 2>conftest.er1
 
5907
  ac_status=$?
 
5908
  grep -v '^ *+' conftest.er1 >conftest.err
 
5909
  rm -f conftest.er1
 
5910
  cat conftest.err >&5
 
5911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5912
  (exit $ac_status); } && {
 
5913
         test -z "$ac_c_werror_flag" ||
 
5914
         test ! -s conftest.err
 
5915
       } && test -s conftest.$ac_objext; then
 
5916
  ac_header_compiler=yes
 
5917
else
 
5918
  $as_echo "$as_me: failed program was:" >&5
 
5919
sed 's/^/| /' conftest.$ac_ext >&5
 
5920
 
 
5921
        ac_header_compiler=no
 
5922
fi
 
5923
 
 
5924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5925
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5926
$as_echo "$ac_header_compiler" >&6; }
 
5927
 
 
5928
# Is the header present?
 
5929
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5930
$as_echo_n "checking $ac_header presence... " >&6; }
 
5931
cat >conftest.$ac_ext <<_ACEOF
 
5932
/* confdefs.h.  */
 
5933
_ACEOF
 
5934
cat confdefs.h >>conftest.$ac_ext
 
5935
cat >>conftest.$ac_ext <<_ACEOF
 
5936
/* end confdefs.h.  */
 
5937
#include <$ac_header>
 
5938
_ACEOF
 
5939
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5940
case "(($ac_try" in
 
5941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5942
  *) ac_try_echo=$ac_try;;
 
5943
esac
 
5944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5945
$as_echo "$ac_try_echo") >&5
 
5946
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5947
  ac_status=$?
 
5948
  grep -v '^ *+' conftest.er1 >conftest.err
 
5949
  rm -f conftest.er1
 
5950
  cat conftest.err >&5
 
5951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5952
  (exit $ac_status); } >/dev/null && {
 
5953
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5954
         test ! -s conftest.err
 
5955
       }; then
 
5956
  ac_header_preproc=yes
 
5957
else
 
5958
  $as_echo "$as_me: failed program was:" >&5
 
5959
sed 's/^/| /' conftest.$ac_ext >&5
 
5960
 
 
5961
  ac_header_preproc=no
 
5962
fi
 
5963
 
 
5964
rm -f conftest.err conftest.$ac_ext
 
5965
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5966
$as_echo "$ac_header_preproc" >&6; }
 
5967
 
 
5968
# So?  What about this header?
 
5969
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5970
  yes:no: )
 
5971
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5972
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5973
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5974
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5975
    ac_header_preproc=yes
 
5976
    ;;
 
5977
  no:yes:* )
 
5978
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5979
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5980
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5981
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5982
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5983
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5984
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5985
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5986
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5987
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5988
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5989
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5990
 
 
5991
    ;;
 
5992
esac
 
5993
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5994
$as_echo_n "checking for $ac_header... " >&6; }
 
5995
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5996
  $as_echo_n "(cached) " >&6
 
5997
else
 
5998
  eval "$as_ac_Header=\$ac_header_preproc"
 
5999
fi
 
6000
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6001
                 $as_echo "$as_val"'`
 
6002
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6003
$as_echo "$ac_res" >&6; }
 
6004
 
 
6005
fi
 
6006
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6007
                 $as_echo "$as_val"'`
 
6008
   if test "x$as_val" = x""yes; then
 
6009
  cat >>confdefs.h <<_ACEOF
 
6010
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6011
_ACEOF
 
6012
 
 
6013
fi
 
6014
 
 
6015
done
 
6016
 
 
6017
 
 
6018
 
 
6019
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6020
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6021
    (test "X$CXX" != "Xg++"))) ; then
 
6022
  ac_ext=cpp
 
6023
ac_cpp='$CXXCPP $CPPFLAGS'
 
6024
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6025
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6026
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6027
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6028
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
6029
if test -z "$CXXCPP"; then
 
6030
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6031
  $as_echo_n "(cached) " >&6
 
6032
else
 
6033
      # Double quotes because CXXCPP needs to be expanded
 
6034
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6035
    do
 
6036
      ac_preproc_ok=false
 
6037
for ac_cxx_preproc_warn_flag in '' yes
 
6038
do
 
6039
  # Use a header file that comes with gcc, so configuring glibc
 
6040
  # with a fresh cross-compiler works.
 
6041
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6042
  # <limits.h> exists even on freestanding compilers.
 
6043
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6044
  # not just through cpp. "Syntax error" is here to catch this case.
 
6045
  cat >conftest.$ac_ext <<_ACEOF
 
6046
/* confdefs.h.  */
 
6047
_ACEOF
 
6048
cat confdefs.h >>conftest.$ac_ext
 
6049
cat >>conftest.$ac_ext <<_ACEOF
 
6050
/* end confdefs.h.  */
 
6051
#ifdef __STDC__
 
6052
# include <limits.h>
 
6053
#else
 
6054
# include <assert.h>
 
6055
#endif
 
6056
                     Syntax error
 
6057
_ACEOF
 
6058
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6059
case "(($ac_try" in
 
6060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6061
  *) ac_try_echo=$ac_try;;
 
6062
esac
 
6063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6064
$as_echo "$ac_try_echo") >&5
 
6065
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6066
  ac_status=$?
 
6067
  grep -v '^ *+' conftest.er1 >conftest.err
 
6068
  rm -f conftest.er1
 
6069
  cat conftest.err >&5
 
6070
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6071
  (exit $ac_status); } >/dev/null && {
 
6072
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6073
         test ! -s conftest.err
 
6074
       }; then
 
6075
  :
 
6076
else
 
6077
  $as_echo "$as_me: failed program was:" >&5
 
6078
sed 's/^/| /' conftest.$ac_ext >&5
 
6079
 
 
6080
  # Broken: fails on valid input.
 
6081
continue
 
6082
fi
 
6083
 
 
6084
rm -f conftest.err conftest.$ac_ext
 
6085
 
 
6086
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6087
  # can be detected and how.
 
6088
  cat >conftest.$ac_ext <<_ACEOF
 
6089
/* confdefs.h.  */
 
6090
_ACEOF
 
6091
cat confdefs.h >>conftest.$ac_ext
 
6092
cat >>conftest.$ac_ext <<_ACEOF
 
6093
/* end confdefs.h.  */
 
6094
#include <ac_nonexistent.h>
 
6095
_ACEOF
 
6096
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6097
case "(($ac_try" in
 
6098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6099
  *) ac_try_echo=$ac_try;;
 
6100
esac
 
6101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6102
$as_echo "$ac_try_echo") >&5
 
6103
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6104
  ac_status=$?
 
6105
  grep -v '^ *+' conftest.er1 >conftest.err
 
6106
  rm -f conftest.er1
 
6107
  cat conftest.err >&5
 
6108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6109
  (exit $ac_status); } >/dev/null && {
 
6110
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6111
         test ! -s conftest.err
 
6112
       }; then
 
6113
  # Broken: success on invalid input.
 
6114
continue
 
6115
else
 
6116
  $as_echo "$as_me: failed program was:" >&5
 
6117
sed 's/^/| /' conftest.$ac_ext >&5
 
6118
 
 
6119
  # Passes both tests.
 
6120
ac_preproc_ok=:
 
6121
break
 
6122
fi
 
6123
 
 
6124
rm -f conftest.err conftest.$ac_ext
 
6125
 
 
6126
done
 
6127
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6128
rm -f conftest.err conftest.$ac_ext
 
6129
if $ac_preproc_ok; then
 
6130
  break
 
6131
fi
 
6132
 
 
6133
    done
 
6134
    ac_cv_prog_CXXCPP=$CXXCPP
 
6135
 
 
6136
fi
 
6137
  CXXCPP=$ac_cv_prog_CXXCPP
 
6138
else
 
6139
  ac_cv_prog_CXXCPP=$CXXCPP
 
6140
fi
 
6141
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6142
$as_echo "$CXXCPP" >&6; }
 
6143
ac_preproc_ok=false
 
6144
for ac_cxx_preproc_warn_flag in '' yes
 
6145
do
 
6146
  # Use a header file that comes with gcc, so configuring glibc
 
6147
  # with a fresh cross-compiler works.
 
6148
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6149
  # <limits.h> exists even on freestanding compilers.
 
6150
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6151
  # not just through cpp. "Syntax error" is here to catch this case.
 
6152
  cat >conftest.$ac_ext <<_ACEOF
 
6153
/* confdefs.h.  */
 
6154
_ACEOF
 
6155
cat confdefs.h >>conftest.$ac_ext
 
6156
cat >>conftest.$ac_ext <<_ACEOF
 
6157
/* end confdefs.h.  */
 
6158
#ifdef __STDC__
 
6159
# include <limits.h>
 
6160
#else
 
6161
# include <assert.h>
 
6162
#endif
 
6163
                     Syntax error
 
6164
_ACEOF
 
6165
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6166
case "(($ac_try" in
 
6167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6168
  *) ac_try_echo=$ac_try;;
 
6169
esac
 
6170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6171
$as_echo "$ac_try_echo") >&5
 
6172
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6173
  ac_status=$?
 
6174
  grep -v '^ *+' conftest.er1 >conftest.err
 
6175
  rm -f conftest.er1
 
6176
  cat conftest.err >&5
 
6177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6178
  (exit $ac_status); } >/dev/null && {
 
6179
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6180
         test ! -s conftest.err
 
6181
       }; then
 
6182
  :
 
6183
else
 
6184
  $as_echo "$as_me: failed program was:" >&5
 
6185
sed 's/^/| /' conftest.$ac_ext >&5
 
6186
 
 
6187
  # Broken: fails on valid input.
 
6188
continue
 
6189
fi
 
6190
 
 
6191
rm -f conftest.err conftest.$ac_ext
 
6192
 
 
6193
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6194
  # can be detected and how.
 
6195
  cat >conftest.$ac_ext <<_ACEOF
 
6196
/* confdefs.h.  */
 
6197
_ACEOF
 
6198
cat confdefs.h >>conftest.$ac_ext
 
6199
cat >>conftest.$ac_ext <<_ACEOF
 
6200
/* end confdefs.h.  */
 
6201
#include <ac_nonexistent.h>
 
6202
_ACEOF
 
6203
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6204
case "(($ac_try" in
 
6205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6206
  *) ac_try_echo=$ac_try;;
 
6207
esac
 
6208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6209
$as_echo "$ac_try_echo") >&5
 
6210
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6211
  ac_status=$?
 
6212
  grep -v '^ *+' conftest.er1 >conftest.err
 
6213
  rm -f conftest.er1
 
6214
  cat conftest.err >&5
 
6215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6216
  (exit $ac_status); } >/dev/null && {
 
6217
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6218
         test ! -s conftest.err
 
6219
       }; then
 
6220
  # Broken: success on invalid input.
 
6221
continue
 
6222
else
 
6223
  $as_echo "$as_me: failed program was:" >&5
 
6224
sed 's/^/| /' conftest.$ac_ext >&5
 
6225
 
 
6226
  # Passes both tests.
 
6227
ac_preproc_ok=:
 
6228
break
 
6229
fi
 
6230
 
 
6231
rm -f conftest.err conftest.$ac_ext
 
6232
 
 
6233
done
 
6234
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6235
rm -f conftest.err conftest.$ac_ext
 
6236
if $ac_preproc_ok; then
 
6237
  :
 
6238
else
 
6239
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6240
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6241
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6242
See \`config.log' for more details." >&5
 
6243
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6244
See \`config.log' for more details." >&2;}
 
6245
   { (exit 1); exit 1; }; }; }
 
6246
fi
 
6247
 
 
6248
ac_ext=cpp
 
6249
ac_cpp='$CXXCPP $CPPFLAGS'
 
6250
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6251
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6252
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6253
 
 
6254
fi
 
6255
 
 
6256
 
 
6257
ac_ext=f
 
6258
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6259
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6260
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6261
if test -n "$ac_tool_prefix"; then
 
6262
  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
 
6263
  do
 
6264
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6265
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6266
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6267
$as_echo_n "checking for $ac_word... " >&6; }
 
6268
if test "${ac_cv_prog_F77+set}" = set; then
 
6269
  $as_echo_n "(cached) " >&6
 
6270
else
 
6271
  if test -n "$F77"; then
 
6272
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6273
else
 
6274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6275
for as_dir in $PATH
 
6276
do
 
6277
  IFS=$as_save_IFS
 
6278
  test -z "$as_dir" && as_dir=.
 
6279
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6281
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6282
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6283
    break 2
 
6284
  fi
 
6285
done
 
6286
done
 
6287
IFS=$as_save_IFS
 
6288
 
 
6289
fi
 
6290
fi
 
6291
F77=$ac_cv_prog_F77
 
6292
if test -n "$F77"; then
 
6293
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6294
$as_echo "$F77" >&6; }
 
6295
else
 
6296
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6297
$as_echo "no" >&6; }
 
6298
fi
 
6299
 
 
6300
 
 
6301
    test -n "$F77" && break
 
6302
  done
 
6303
fi
 
6304
if test -z "$F77"; then
 
6305
  ac_ct_F77=$F77
 
6306
  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
 
6307
do
 
6308
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6309
set dummy $ac_prog; ac_word=$2
 
6310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6311
$as_echo_n "checking for $ac_word... " >&6; }
 
6312
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6313
  $as_echo_n "(cached) " >&6
 
6314
else
 
6315
  if test -n "$ac_ct_F77"; then
 
6316
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6317
else
 
6318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6319
for as_dir in $PATH
 
6320
do
 
6321
  IFS=$as_save_IFS
 
6322
  test -z "$as_dir" && as_dir=.
 
6323
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6325
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6326
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6327
    break 2
 
6328
  fi
 
6329
done
 
6330
done
 
6331
IFS=$as_save_IFS
 
6332
 
 
6333
fi
 
6334
fi
 
6335
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6336
if test -n "$ac_ct_F77"; then
 
6337
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6338
$as_echo "$ac_ct_F77" >&6; }
 
6339
else
 
6340
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6341
$as_echo "no" >&6; }
 
6342
fi
 
6343
 
 
6344
 
 
6345
  test -n "$ac_ct_F77" && break
 
6346
done
 
6347
 
 
6348
  if test "x$ac_ct_F77" = x; then
 
6349
    F77=""
 
6350
  else
 
6351
    case $cross_compiling:$ac_tool_warned in
 
6352
yes:)
 
6353
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6355
ac_tool_warned=yes ;;
 
6356
esac
 
6357
    F77=$ac_ct_F77
 
6358
  fi
 
6359
fi
 
6360
 
 
6361
 
 
6362
# Provide some information about the compiler.
 
6363
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6364
set X $ac_compile
 
6365
ac_compiler=$2
 
6366
{ (ac_try="$ac_compiler --version >&5"
 
6367
case "(($ac_try" in
 
6368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6369
  *) ac_try_echo=$ac_try;;
 
6370
esac
 
6371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6372
$as_echo "$ac_try_echo") >&5
 
6373
  (eval "$ac_compiler --version >&5") 2>&5
 
6374
  ac_status=$?
 
6375
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6376
  (exit $ac_status); }
 
6377
{ (ac_try="$ac_compiler -v >&5"
 
6378
case "(($ac_try" in
 
6379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6380
  *) ac_try_echo=$ac_try;;
 
6381
esac
 
6382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6383
$as_echo "$ac_try_echo") >&5
 
6384
  (eval "$ac_compiler -v >&5") 2>&5
 
6385
  ac_status=$?
 
6386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6387
  (exit $ac_status); }
 
6388
{ (ac_try="$ac_compiler -V >&5"
 
6389
case "(($ac_try" in
 
6390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6391
  *) ac_try_echo=$ac_try;;
 
6392
esac
 
6393
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6394
$as_echo "$ac_try_echo") >&5
 
6395
  (eval "$ac_compiler -V >&5") 2>&5
 
6396
  ac_status=$?
 
6397
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6398
  (exit $ac_status); }
 
6399
rm -f a.out
 
6400
 
 
6401
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6402
# input file.  (Note that this only needs to work for GNU compilers.)
 
6403
ac_save_ext=$ac_ext
 
6404
ac_ext=F
 
6405
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6406
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6407
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6408
  $as_echo_n "(cached) " >&6
 
6409
else
 
6410
  cat >conftest.$ac_ext <<_ACEOF
 
6411
      program main
 
6412
#ifndef __GNUC__
 
6413
       choke me
 
6414
#endif
 
6415
 
 
6416
      end
 
6417
_ACEOF
 
6418
rm -f conftest.$ac_objext
 
6419
if { (ac_try="$ac_compile"
 
6420
case "(($ac_try" in
 
6421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6422
  *) ac_try_echo=$ac_try;;
 
6423
esac
 
6424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6425
$as_echo "$ac_try_echo") >&5
 
6426
  (eval "$ac_compile") 2>conftest.er1
 
6427
  ac_status=$?
 
6428
  grep -v '^ *+' conftest.er1 >conftest.err
 
6429
  rm -f conftest.er1
 
6430
  cat conftest.err >&5
 
6431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6432
  (exit $ac_status); } && {
 
6433
         test -z "$ac_f77_werror_flag" ||
 
6434
         test ! -s conftest.err
 
6435
       } && test -s conftest.$ac_objext; then
 
6436
  ac_compiler_gnu=yes
 
6437
else
 
6438
  $as_echo "$as_me: failed program was:" >&5
 
6439
sed 's/^/| /' conftest.$ac_ext >&5
 
6440
 
 
6441
        ac_compiler_gnu=no
 
6442
fi
 
6443
 
 
6444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6445
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6446
 
 
6447
fi
 
6448
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6449
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6450
ac_ext=$ac_save_ext
 
6451
ac_test_FFLAGS=${FFLAGS+set}
 
6452
ac_save_FFLAGS=$FFLAGS
 
6453
FFLAGS=
 
6454
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6455
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6456
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6457
  $as_echo_n "(cached) " >&6
 
6458
else
 
6459
  FFLAGS=-g
 
6460
cat >conftest.$ac_ext <<_ACEOF
 
6461
      program main
 
6462
 
 
6463
      end
 
6464
_ACEOF
 
6465
rm -f conftest.$ac_objext
 
6466
if { (ac_try="$ac_compile"
 
6467
case "(($ac_try" in
 
6468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6469
  *) ac_try_echo=$ac_try;;
 
6470
esac
 
6471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6472
$as_echo "$ac_try_echo") >&5
 
6473
  (eval "$ac_compile") 2>conftest.er1
 
6474
  ac_status=$?
 
6475
  grep -v '^ *+' conftest.er1 >conftest.err
 
6476
  rm -f conftest.er1
 
6477
  cat conftest.err >&5
 
6478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6479
  (exit $ac_status); } && {
 
6480
         test -z "$ac_f77_werror_flag" ||
 
6481
         test ! -s conftest.err
 
6482
       } && test -s conftest.$ac_objext; then
 
6483
  ac_cv_prog_f77_g=yes
 
6484
else
 
6485
  $as_echo "$as_me: failed program was:" >&5
 
6486
sed 's/^/| /' conftest.$ac_ext >&5
 
6487
 
 
6488
        ac_cv_prog_f77_g=no
 
6489
fi
 
6490
 
 
6491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6492
 
 
6493
fi
 
6494
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6495
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6496
if test "$ac_test_FFLAGS" = set; then
 
6497
  FFLAGS=$ac_save_FFLAGS
 
6498
elif test $ac_cv_prog_f77_g = yes; then
 
6499
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6500
    FFLAGS="-g -O2"
 
6501
  else
 
6502
    FFLAGS="-g"
 
6503
  fi
 
6504
else
 
6505
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6506
    FFLAGS="-O2"
 
6507
  else
 
6508
    FFLAGS=
 
6509
  fi
 
6510
fi
 
6511
 
 
6512
if test $ac_compiler_gnu = yes; then
 
6513
  G77=yes
 
6514
else
 
6515
  G77=
 
6516
fi
 
6517
ac_ext=c
 
6518
ac_cpp='$CPP $CPPFLAGS'
 
6519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6522
 
 
6523
 
 
6524
 
 
6525
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6526
# find the maximum length of command line arguments
 
6527
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6528
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6529
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6530
  $as_echo_n "(cached) " >&6
 
6531
else
 
6532
    i=0
 
6533
  teststring="ABCD"
 
6534
 
 
6535
  case $build_os in
 
6536
  msdosdjgpp*)
 
6537
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6538
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6539
    # during glob expansion).  Even if it were fixed, the result of this
 
6540
    # check would be larger than it should be.
 
6541
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6542
    ;;
 
6543
 
 
6544
  gnu*)
 
6545
    # Under GNU Hurd, this test is not required because there is
 
6546
    # no limit to the length of command line arguments.
 
6547
    # Libtool will interpret -1 as no limit whatsoever
 
6548
    lt_cv_sys_max_cmd_len=-1;
 
6549
    ;;
 
6550
 
 
6551
  cygwin* | mingw*)
 
6552
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6553
    # about 5 minutes as the teststring grows exponentially.
 
6554
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6555
    # you end up with a "frozen" computer, even though with patience
 
6556
    # the test eventually succeeds (with a max line length of 256k).
 
6557
    # Instead, let's just punt: use the minimum linelength reported by
 
6558
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6559
    lt_cv_sys_max_cmd_len=8192;
 
6560
    ;;
 
6561
 
 
6562
  amigaos*)
 
6563
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6564
    # So we just punt and use a minimum line length of 8192.
 
6565
    lt_cv_sys_max_cmd_len=8192;
 
6566
    ;;
 
6567
 
 
6568
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6569
    # This has been around since 386BSD, at least.  Likely further.
 
6570
    if test -x /sbin/sysctl; then
 
6571
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6572
    elif test -x /usr/sbin/sysctl; then
 
6573
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6574
    else
 
6575
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6576
    fi
 
6577
    # And add a safety zone
 
6578
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6579
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6580
    ;;
 
6581
 
 
6582
  interix*)
 
6583
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6584
    lt_cv_sys_max_cmd_len=196608
 
6585
    ;;
 
6586
 
 
6587
  osf*)
 
6588
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6589
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6590
    # nice to cause kernel panics so lets avoid the loop below.
 
6591
    # First set a reasonable default.
 
6592
    lt_cv_sys_max_cmd_len=16384
 
6593
    #
 
6594
    if test -x /sbin/sysconfig; then
 
6595
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6596
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6597
      esac
 
6598
    fi
 
6599
    ;;
 
6600
  sco3.2v5*)
 
6601
    lt_cv_sys_max_cmd_len=102400
 
6602
    ;;
 
6603
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6604
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6605
    if test -n "$kargmax"; then
 
6606
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6607
    else
 
6608
      lt_cv_sys_max_cmd_len=32768
 
6609
    fi
 
6610
    ;;
 
6611
  *)
 
6612
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6613
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6614
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6615
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6616
    else
 
6617
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6618
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6619
               = "XX$teststring") >/dev/null 2>&1 &&
 
6620
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6621
              lt_cv_sys_max_cmd_len=$new_result &&
 
6622
              test $i != 17 # 1/2 MB should be enough
 
6623
      do
 
6624
        i=`expr $i + 1`
 
6625
        teststring=$teststring$teststring
 
6626
      done
 
6627
      teststring=
 
6628
      # Add a significant safety factor because C++ compilers can tack on massive
 
6629
      # amounts of additional arguments before passing them to the linker.
 
6630
      # It appears as though 1/2 is a usable value.
 
6631
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6632
    fi
 
6633
    ;;
 
6634
  esac
 
6635
 
 
6636
fi
 
6637
 
 
6638
if test -n $lt_cv_sys_max_cmd_len ; then
 
6639
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6640
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6641
else
 
6642
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6643
$as_echo "none" >&6; }
 
6644
fi
 
6645
 
 
6646
 
 
6647
 
 
6648
 
 
6649
 
 
6650
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6651
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6652
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6653
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6654
  $as_echo_n "(cached) " >&6
 
6655
else
 
6656
 
 
6657
# These are sane defaults that work on at least a few old systems.
 
6658
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6659
 
 
6660
# Character class describing NM global symbol codes.
 
6661
symcode='[BCDEGRST]'
 
6662
 
 
6663
# Regexp to match symbols that can be accessed directly from C.
 
6664
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6665
 
 
6666
# Transform an extracted symbol line into a proper C declaration
 
6667
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6668
 
 
6669
# Transform an extracted symbol line into symbol name and symbol address
 
6670
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'"
 
6671
 
 
6672
# Define system-specific variables.
 
6673
case $host_os in
 
6674
aix*)
 
6675
  symcode='[BCDT]'
 
6676
  ;;
 
6677
cygwin* | mingw* | pw32*)
 
6678
  symcode='[ABCDGISTW]'
 
6679
  ;;
 
6680
hpux*) # Its linker distinguishes data from code symbols
 
6681
  if test "$host_cpu" = ia64; then
 
6682
    symcode='[ABCDEGRST]'
 
6683
  fi
 
6684
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6685
  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'"
 
6686
  ;;
 
6687
linux* | k*bsd*-gnu)
 
6688
  if test "$host_cpu" = ia64; then
 
6689
    symcode='[ABCDGIRSTW]'
 
6690
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6691
    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'"
 
6692
  fi
 
6693
  ;;
 
6694
irix* | nonstopux*)
 
6695
  symcode='[BCDEGRST]'
 
6696
  ;;
 
6697
osf*)
 
6698
  symcode='[BCDEGQRST]'
 
6699
  ;;
 
6700
solaris*)
 
6701
  symcode='[BDRT]'
 
6702
  ;;
 
6703
sco3.2v5*)
 
6704
  symcode='[DT]'
 
6705
  ;;
 
6706
sysv4.2uw2*)
 
6707
  symcode='[DT]'
 
6708
  ;;
 
6709
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6710
  symcode='[ABDT]'
 
6711
  ;;
 
6712
sysv4)
 
6713
  symcode='[DFNSTU]'
 
6714
  ;;
 
6715
esac
 
6716
 
 
6717
# Handle CRLF in mingw tool chain
 
6718
opt_cr=
 
6719
case $build_os in
 
6720
mingw*)
 
6721
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6722
  ;;
 
6723
esac
 
6724
 
 
6725
# If we're using GNU nm, then use its standard symbol codes.
 
6726
case `$NM -V 2>&1` in
 
6727
*GNU* | *'with BFD'*)
 
6728
  symcode='[ABCDGIRSTW]' ;;
 
6729
esac
 
6730
 
 
6731
# Try without a prefix undercore, then with it.
 
6732
for ac_symprfx in "" "_"; do
 
6733
 
 
6734
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6735
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6736
 
 
6737
  # Write the raw and C identifiers.
 
6738
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6739
 
 
6740
  # Check to see that the pipe works correctly.
 
6741
  pipe_works=no
 
6742
 
 
6743
  rm -f conftest*
 
6744
  cat > conftest.$ac_ext <<EOF
 
6745
#ifdef __cplusplus
 
6746
extern "C" {
 
6747
#endif
 
6748
char nm_test_var;
 
6749
void nm_test_func(){}
 
6750
#ifdef __cplusplus
 
6751
}
 
6752
#endif
 
6753
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6754
EOF
 
6755
 
 
6756
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6757
  (eval $ac_compile) 2>&5
 
6758
  ac_status=$?
 
6759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6760
  (exit $ac_status); }; then
 
6761
    # Now try to grab the symbols.
 
6762
    nlist=conftest.nm
 
6763
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6764
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6765
  ac_status=$?
 
6766
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6767
  (exit $ac_status); } && test -s "$nlist"; then
 
6768
      # Try sorting and uniquifying the output.
 
6769
      if sort "$nlist" | uniq > "$nlist"T; then
 
6770
        mv -f "$nlist"T "$nlist"
 
6771
      else
 
6772
        rm -f "$nlist"T
 
6773
      fi
 
6774
 
 
6775
      # Make sure that we snagged all the symbols we need.
 
6776
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6777
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6778
          cat <<EOF > conftest.$ac_ext
 
6779
#ifdef __cplusplus
 
6780
extern "C" {
 
6781
#endif
 
6782
 
 
6783
EOF
 
6784
          # Now generate the symbol file.
 
6785
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6786
 
 
6787
          cat <<EOF >> conftest.$ac_ext
 
6788
#if defined (__STDC__) && __STDC__
 
6789
# define lt_ptr_t void *
 
6790
#else
 
6791
# define lt_ptr_t char *
 
6792
# define const
 
6793
#endif
 
6794
 
 
6795
/* The mapping between symbol names and symbols. */
 
6796
const struct {
 
6797
  const char *name;
 
6798
  lt_ptr_t address;
 
6799
}
 
6800
lt_preloaded_symbols[] =
 
6801
{
 
6802
EOF
 
6803
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6804
          cat <<\EOF >> conftest.$ac_ext
 
6805
  {0, (lt_ptr_t) 0}
 
6806
};
 
6807
 
 
6808
#ifdef __cplusplus
 
6809
}
 
6810
#endif
 
6811
EOF
 
6812
          # Now try linking the two files.
 
6813
          mv conftest.$ac_objext conftstm.$ac_objext
 
6814
          lt_save_LIBS="$LIBS"
 
6815
          lt_save_CFLAGS="$CFLAGS"
 
6816
          LIBS="conftstm.$ac_objext"
 
6817
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6818
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6819
  (eval $ac_link) 2>&5
 
6820
  ac_status=$?
 
6821
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6822
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6823
            pipe_works=yes
 
6824
          fi
 
6825
          LIBS="$lt_save_LIBS"
 
6826
          CFLAGS="$lt_save_CFLAGS"
 
6827
        else
 
6828
          echo "cannot find nm_test_func in $nlist" >&5
 
6829
        fi
 
6830
      else
 
6831
        echo "cannot find nm_test_var in $nlist" >&5
 
6832
      fi
 
6833
    else
 
6834
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6835
    fi
 
6836
  else
 
6837
    echo "$progname: failed program was:" >&5
 
6838
    cat conftest.$ac_ext >&5
 
6839
  fi
 
6840
  rm -rf conftest* conftst*
 
6841
 
 
6842
  # Do not use the global_symbol_pipe unless it works.
 
6843
  if test "$pipe_works" = yes; then
 
6844
    break
 
6845
  else
 
6846
    lt_cv_sys_global_symbol_pipe=
 
6847
  fi
 
6848
done
 
6849
 
 
6850
fi
 
6851
 
 
6852
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6853
  lt_cv_sys_global_symbol_to_cdecl=
 
6854
fi
 
6855
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6856
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6857
$as_echo "failed" >&6; }
 
6858
else
 
6859
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6860
$as_echo "ok" >&6; }
 
6861
fi
 
6862
 
 
6863
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6864
$as_echo_n "checking for objdir... " >&6; }
 
6865
if test "${lt_cv_objdir+set}" = set; then
 
6866
  $as_echo_n "(cached) " >&6
 
6867
else
 
6868
  rm -f .libs 2>/dev/null
 
6869
mkdir .libs 2>/dev/null
 
6870
if test -d .libs; then
 
6871
  lt_cv_objdir=.libs
 
6872
else
 
6873
  # MS-DOS does not allow filenames that begin with a dot.
 
6874
  lt_cv_objdir=_libs
 
6875
fi
 
6876
rmdir .libs 2>/dev/null
 
6877
fi
 
6878
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6879
$as_echo "$lt_cv_objdir" >&6; }
 
6880
objdir=$lt_cv_objdir
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
case $host_os in
 
6887
aix3*)
 
6888
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6889
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6890
  # vanish in a puff of smoke.
 
6891
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6892
    COLLECT_NAMES=
 
6893
    export COLLECT_NAMES
 
6894
  fi
 
6895
  ;;
 
6896
esac
 
6897
 
 
6898
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6899
# metacharacters that are still active within double-quoted strings.
 
6900
Xsed='sed -e 1s/^X//'
 
6901
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6902
 
 
6903
# Same as above, but do not quote variable references.
 
6904
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6905
 
 
6906
# Sed substitution to delay expansion of an escaped shell variable in a
 
6907
# double_quote_subst'ed string.
 
6908
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6909
 
 
6910
# Sed substitution to avoid accidental globbing in evaled expressions
 
6911
no_glob_subst='s/\*/\\\*/g'
 
6912
 
 
6913
# Constants:
 
6914
rm="rm -f"
 
6915
 
 
6916
# Global variables:
 
6917
default_ofile=libtool
 
6918
can_build_shared=yes
 
6919
 
 
6920
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6921
# which needs '.lib').
 
6922
libext=a
 
6923
ltmain="$ac_aux_dir/ltmain.sh"
 
6924
ofile="$default_ofile"
 
6925
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6926
 
 
6927
if test -n "$ac_tool_prefix"; then
 
6928
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6929
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6930
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6931
$as_echo_n "checking for $ac_word... " >&6; }
 
6932
if test "${ac_cv_prog_AR+set}" = set; then
 
6933
  $as_echo_n "(cached) " >&6
 
6934
else
 
6935
  if test -n "$AR"; then
 
6936
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6937
else
 
6938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6939
for as_dir in $PATH
 
6940
do
 
6941
  IFS=$as_save_IFS
 
6942
  test -z "$as_dir" && as_dir=.
 
6943
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6944
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6945
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6946
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6947
    break 2
 
6948
  fi
 
6949
done
 
6950
done
 
6951
IFS=$as_save_IFS
 
6952
 
 
6953
fi
 
6954
fi
 
6955
AR=$ac_cv_prog_AR
 
6956
if test -n "$AR"; then
 
6957
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
6958
$as_echo "$AR" >&6; }
 
6959
else
 
6960
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6961
$as_echo "no" >&6; }
 
6962
fi
 
6963
 
 
6964
 
 
6965
fi
 
6966
if test -z "$ac_cv_prog_AR"; then
 
6967
  ac_ct_AR=$AR
 
6968
  # Extract the first word of "ar", so it can be a program name with args.
 
6969
set dummy ar; ac_word=$2
 
6970
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6971
$as_echo_n "checking for $ac_word... " >&6; }
 
6972
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6973
  $as_echo_n "(cached) " >&6
 
6974
else
 
6975
  if test -n "$ac_ct_AR"; then
 
6976
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6977
else
 
6978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6979
for as_dir in $PATH
 
6980
do
 
6981
  IFS=$as_save_IFS
 
6982
  test -z "$as_dir" && as_dir=.
 
6983
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6985
    ac_cv_prog_ac_ct_AR="ar"
 
6986
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6987
    break 2
 
6988
  fi
 
6989
done
 
6990
done
 
6991
IFS=$as_save_IFS
 
6992
 
 
6993
fi
 
6994
fi
 
6995
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6996
if test -n "$ac_ct_AR"; then
 
6997
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6998
$as_echo "$ac_ct_AR" >&6; }
 
6999
else
 
7000
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7001
$as_echo "no" >&6; }
 
7002
fi
 
7003
 
 
7004
  if test "x$ac_ct_AR" = x; then
 
7005
    AR="false"
 
7006
  else
 
7007
    case $cross_compiling:$ac_tool_warned in
 
7008
yes:)
 
7009
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7010
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7011
ac_tool_warned=yes ;;
 
7012
esac
 
7013
    AR=$ac_ct_AR
 
7014
  fi
 
7015
else
 
7016
  AR="$ac_cv_prog_AR"
 
7017
fi
 
7018
 
 
7019
if test -n "$ac_tool_prefix"; then
 
7020
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7021
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7022
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7023
$as_echo_n "checking for $ac_word... " >&6; }
 
7024
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7025
  $as_echo_n "(cached) " >&6
 
7026
else
 
7027
  if test -n "$RANLIB"; then
 
7028
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7029
else
 
7030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7031
for as_dir in $PATH
 
7032
do
 
7033
  IFS=$as_save_IFS
 
7034
  test -z "$as_dir" && as_dir=.
 
7035
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7036
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7037
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7038
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7039
    break 2
 
7040
  fi
 
7041
done
 
7042
done
 
7043
IFS=$as_save_IFS
 
7044
 
 
7045
fi
 
7046
fi
 
7047
RANLIB=$ac_cv_prog_RANLIB
 
7048
if test -n "$RANLIB"; then
 
7049
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7050
$as_echo "$RANLIB" >&6; }
 
7051
else
 
7052
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7053
$as_echo "no" >&6; }
 
7054
fi
 
7055
 
 
7056
 
 
7057
fi
 
7058
if test -z "$ac_cv_prog_RANLIB"; then
 
7059
  ac_ct_RANLIB=$RANLIB
 
7060
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7061
set dummy ranlib; ac_word=$2
 
7062
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7063
$as_echo_n "checking for $ac_word... " >&6; }
 
7064
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7065
  $as_echo_n "(cached) " >&6
 
7066
else
 
7067
  if test -n "$ac_ct_RANLIB"; then
 
7068
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7069
else
 
7070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7071
for as_dir in $PATH
 
7072
do
 
7073
  IFS=$as_save_IFS
 
7074
  test -z "$as_dir" && as_dir=.
 
7075
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7077
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7078
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7079
    break 2
 
7080
  fi
 
7081
done
 
7082
done
 
7083
IFS=$as_save_IFS
 
7084
 
 
7085
fi
 
7086
fi
 
7087
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7088
if test -n "$ac_ct_RANLIB"; then
 
7089
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7090
$as_echo "$ac_ct_RANLIB" >&6; }
 
7091
else
 
7092
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7093
$as_echo "no" >&6; }
 
7094
fi
 
7095
 
 
7096
  if test "x$ac_ct_RANLIB" = x; then
 
7097
    RANLIB=":"
 
7098
  else
 
7099
    case $cross_compiling:$ac_tool_warned in
 
7100
yes:)
 
7101
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7103
ac_tool_warned=yes ;;
 
7104
esac
 
7105
    RANLIB=$ac_ct_RANLIB
 
7106
  fi
 
7107
else
 
7108
  RANLIB="$ac_cv_prog_RANLIB"
 
7109
fi
 
7110
 
 
7111
if test -n "$ac_tool_prefix"; then
 
7112
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7113
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7114
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7115
$as_echo_n "checking for $ac_word... " >&6; }
 
7116
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7117
  $as_echo_n "(cached) " >&6
 
7118
else
 
7119
  if test -n "$STRIP"; then
 
7120
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7121
else
 
7122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7123
for as_dir in $PATH
 
7124
do
 
7125
  IFS=$as_save_IFS
 
7126
  test -z "$as_dir" && as_dir=.
 
7127
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7128
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7129
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7130
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7131
    break 2
 
7132
  fi
 
7133
done
 
7134
done
 
7135
IFS=$as_save_IFS
 
7136
 
 
7137
fi
 
7138
fi
 
7139
STRIP=$ac_cv_prog_STRIP
 
7140
if test -n "$STRIP"; then
 
7141
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
7142
$as_echo "$STRIP" >&6; }
 
7143
else
 
7144
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7145
$as_echo "no" >&6; }
 
7146
fi
 
7147
 
 
7148
 
 
7149
fi
 
7150
if test -z "$ac_cv_prog_STRIP"; then
 
7151
  ac_ct_STRIP=$STRIP
 
7152
  # Extract the first word of "strip", so it can be a program name with args.
 
7153
set dummy strip; ac_word=$2
 
7154
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7155
$as_echo_n "checking for $ac_word... " >&6; }
 
7156
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7157
  $as_echo_n "(cached) " >&6
 
7158
else
 
7159
  if test -n "$ac_ct_STRIP"; then
 
7160
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7161
else
 
7162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7163
for as_dir in $PATH
 
7164
do
 
7165
  IFS=$as_save_IFS
 
7166
  test -z "$as_dir" && as_dir=.
 
7167
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7168
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7169
    ac_cv_prog_ac_ct_STRIP="strip"
 
7170
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7171
    break 2
 
7172
  fi
 
7173
done
 
7174
done
 
7175
IFS=$as_save_IFS
 
7176
 
 
7177
fi
 
7178
fi
 
7179
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7180
if test -n "$ac_ct_STRIP"; then
 
7181
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7182
$as_echo "$ac_ct_STRIP" >&6; }
 
7183
else
 
7184
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7185
$as_echo "no" >&6; }
 
7186
fi
 
7187
 
 
7188
  if test "x$ac_ct_STRIP" = x; then
 
7189
    STRIP=":"
 
7190
  else
 
7191
    case $cross_compiling:$ac_tool_warned in
 
7192
yes:)
 
7193
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7195
ac_tool_warned=yes ;;
 
7196
esac
 
7197
    STRIP=$ac_ct_STRIP
 
7198
  fi
 
7199
else
 
7200
  STRIP="$ac_cv_prog_STRIP"
 
7201
fi
 
7202
 
 
7203
 
 
7204
old_CC="$CC"
 
7205
old_CFLAGS="$CFLAGS"
 
7206
 
 
7207
# Set sane defaults for various variables
 
7208
test -z "$AR" && AR=ar
 
7209
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7210
test -z "$AS" && AS=as
 
7211
test -z "$CC" && CC=cc
 
7212
test -z "$LTCC" && LTCC=$CC
 
7213
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7214
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7215
test -z "$LD" && LD=ld
 
7216
test -z "$LN_S" && LN_S="ln -s"
 
7217
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7218
test -z "$NM" && NM=nm
 
7219
test -z "$SED" && SED=sed
 
7220
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7221
test -z "$RANLIB" && RANLIB=:
 
7222
test -z "$STRIP" && STRIP=:
 
7223
test -z "$ac_objext" && ac_objext=o
 
7224
 
 
7225
# Determine commands to create old-style static archives.
 
7226
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7227
old_postinstall_cmds='chmod 644 $oldlib'
 
7228
old_postuninstall_cmds=
 
7229
 
 
7230
if test -n "$RANLIB"; then
 
7231
  case $host_os in
 
7232
  openbsd*)
 
7233
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7234
    ;;
 
7235
  *)
 
7236
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7237
    ;;
 
7238
  esac
 
7239
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7240
fi
 
7241
 
 
7242
for cc_temp in $compiler""; do
 
7243
  case $cc_temp in
 
7244
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7245
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7246
    \-*) ;;
 
7247
    *) break;;
 
7248
  esac
 
7249
done
 
7250
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7251
 
 
7252
 
 
7253
# Only perform the check for file, if the check method requires it
 
7254
case $deplibs_check_method in
 
7255
file_magic*)
 
7256
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7257
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7258
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7259
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7260
  $as_echo_n "(cached) " >&6
 
7261
else
 
7262
  case $MAGIC_CMD in
 
7263
[\\/*] |  ?:[\\/]*)
 
7264
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7265
  ;;
 
7266
*)
 
7267
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7268
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7269
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7270
  for ac_dir in $ac_dummy; do
 
7271
    IFS="$lt_save_ifs"
 
7272
    test -z "$ac_dir" && ac_dir=.
 
7273
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7274
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7275
      if test -n "$file_magic_test_file"; then
 
7276
        case $deplibs_check_method in
 
7277
        "file_magic "*)
 
7278
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7279
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7280
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7281
            $EGREP "$file_magic_regex" > /dev/null; then
 
7282
            :
 
7283
          else
 
7284
            cat <<EOF 1>&2
 
7285
 
 
7286
*** Warning: the command libtool uses to detect shared libraries,
 
7287
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7288
*** The result is that libtool may fail to recognize shared libraries
 
7289
*** as such.  This will affect the creation of libtool libraries that
 
7290
*** depend on shared libraries, but programs linked with such libtool
 
7291
*** libraries will work regardless of this problem.  Nevertheless, you
 
7292
*** may want to report the problem to your system manager and/or to
 
7293
*** bug-libtool@gnu.org
 
7294
 
 
7295
EOF
 
7296
          fi ;;
 
7297
        esac
 
7298
      fi
 
7299
      break
 
7300
    fi
 
7301
  done
 
7302
  IFS="$lt_save_ifs"
 
7303
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7304
  ;;
 
7305
esac
 
7306
fi
 
7307
 
 
7308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7309
if test -n "$MAGIC_CMD"; then
 
7310
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7311
$as_echo "$MAGIC_CMD" >&6; }
 
7312
else
 
7313
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7314
$as_echo "no" >&6; }
 
7315
fi
 
7316
 
 
7317
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7318
  if test -n "$ac_tool_prefix"; then
 
7319
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7320
$as_echo_n "checking for file... " >&6; }
 
7321
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7322
  $as_echo_n "(cached) " >&6
 
7323
else
 
7324
  case $MAGIC_CMD in
 
7325
[\\/*] |  ?:[\\/]*)
 
7326
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7327
  ;;
 
7328
*)
 
7329
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7330
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7331
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7332
  for ac_dir in $ac_dummy; do
 
7333
    IFS="$lt_save_ifs"
 
7334
    test -z "$ac_dir" && ac_dir=.
 
7335
    if test -f $ac_dir/file; then
 
7336
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7337
      if test -n "$file_magic_test_file"; then
 
7338
        case $deplibs_check_method in
 
7339
        "file_magic "*)
 
7340
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7341
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7342
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7343
            $EGREP "$file_magic_regex" > /dev/null; then
 
7344
            :
 
7345
          else
 
7346
            cat <<EOF 1>&2
 
7347
 
 
7348
*** Warning: the command libtool uses to detect shared libraries,
 
7349
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7350
*** The result is that libtool may fail to recognize shared libraries
 
7351
*** as such.  This will affect the creation of libtool libraries that
 
7352
*** depend on shared libraries, but programs linked with such libtool
 
7353
*** libraries will work regardless of this problem.  Nevertheless, you
 
7354
*** may want to report the problem to your system manager and/or to
 
7355
*** bug-libtool@gnu.org
 
7356
 
 
7357
EOF
 
7358
          fi ;;
 
7359
        esac
 
7360
      fi
 
7361
      break
 
7362
    fi
 
7363
  done
 
7364
  IFS="$lt_save_ifs"
 
7365
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7366
  ;;
 
7367
esac
 
7368
fi
 
7369
 
 
7370
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7371
if test -n "$MAGIC_CMD"; then
 
7372
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7373
$as_echo "$MAGIC_CMD" >&6; }
 
7374
else
 
7375
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7376
$as_echo "no" >&6; }
 
7377
fi
 
7378
 
 
7379
  else
 
7380
    MAGIC_CMD=:
 
7381
  fi
 
7382
fi
 
7383
 
 
7384
  fi
 
7385
  ;;
 
7386
esac
 
7387
 
 
7388
 
 
7389
  case $host_os in
 
7390
    rhapsody* | darwin*)
 
7391
    if test -n "$ac_tool_prefix"; then
 
7392
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7393
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7394
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7395
$as_echo_n "checking for $ac_word... " >&6; }
 
7396
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7397
  $as_echo_n "(cached) " >&6
 
7398
else
 
7399
  if test -n "$DSYMUTIL"; then
 
7400
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7401
else
 
7402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7403
for as_dir in $PATH
 
7404
do
 
7405
  IFS=$as_save_IFS
 
7406
  test -z "$as_dir" && as_dir=.
 
7407
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7409
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7410
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7411
    break 2
 
7412
  fi
 
7413
done
 
7414
done
 
7415
IFS=$as_save_IFS
 
7416
 
 
7417
fi
 
7418
fi
 
7419
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7420
if test -n "$DSYMUTIL"; then
 
7421
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7422
$as_echo "$DSYMUTIL" >&6; }
 
7423
else
 
7424
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7425
$as_echo "no" >&6; }
 
7426
fi
 
7427
 
 
7428
 
 
7429
fi
 
7430
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7431
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7432
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7433
set dummy dsymutil; ac_word=$2
 
7434
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7435
$as_echo_n "checking for $ac_word... " >&6; }
 
7436
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7437
  $as_echo_n "(cached) " >&6
 
7438
else
 
7439
  if test -n "$ac_ct_DSYMUTIL"; then
 
7440
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7441
else
 
7442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7443
for as_dir in $PATH
 
7444
do
 
7445
  IFS=$as_save_IFS
 
7446
  test -z "$as_dir" && as_dir=.
 
7447
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7449
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7450
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7451
    break 2
 
7452
  fi
 
7453
done
 
7454
done
 
7455
IFS=$as_save_IFS
 
7456
 
 
7457
fi
 
7458
fi
 
7459
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7460
if test -n "$ac_ct_DSYMUTIL"; then
 
7461
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7462
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7463
else
 
7464
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7465
$as_echo "no" >&6; }
 
7466
fi
 
7467
 
 
7468
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7469
    DSYMUTIL=":"
 
7470
  else
 
7471
    case $cross_compiling:$ac_tool_warned in
 
7472
yes:)
 
7473
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7474
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7475
ac_tool_warned=yes ;;
 
7476
esac
 
7477
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7478
  fi
 
7479
else
 
7480
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7481
fi
 
7482
 
 
7483
    if test -n "$ac_tool_prefix"; then
 
7484
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7485
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7487
$as_echo_n "checking for $ac_word... " >&6; }
 
7488
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7489
  $as_echo_n "(cached) " >&6
 
7490
else
 
7491
  if test -n "$NMEDIT"; then
 
7492
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7493
else
 
7494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7495
for as_dir in $PATH
 
7496
do
 
7497
  IFS=$as_save_IFS
 
7498
  test -z "$as_dir" && as_dir=.
 
7499
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7501
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7502
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7503
    break 2
 
7504
  fi
 
7505
done
 
7506
done
 
7507
IFS=$as_save_IFS
 
7508
 
 
7509
fi
 
7510
fi
 
7511
NMEDIT=$ac_cv_prog_NMEDIT
 
7512
if test -n "$NMEDIT"; then
 
7513
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7514
$as_echo "$NMEDIT" >&6; }
 
7515
else
 
7516
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7517
$as_echo "no" >&6; }
 
7518
fi
 
7519
 
 
7520
 
 
7521
fi
 
7522
if test -z "$ac_cv_prog_NMEDIT"; then
 
7523
  ac_ct_NMEDIT=$NMEDIT
 
7524
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7525
set dummy nmedit; ac_word=$2
 
7526
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7527
$as_echo_n "checking for $ac_word... " >&6; }
 
7528
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7529
  $as_echo_n "(cached) " >&6
 
7530
else
 
7531
  if test -n "$ac_ct_NMEDIT"; then
 
7532
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7533
else
 
7534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7535
for as_dir in $PATH
 
7536
do
 
7537
  IFS=$as_save_IFS
 
7538
  test -z "$as_dir" && as_dir=.
 
7539
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7541
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7542
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7543
    break 2
 
7544
  fi
 
7545
done
 
7546
done
 
7547
IFS=$as_save_IFS
 
7548
 
 
7549
fi
 
7550
fi
 
7551
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7552
if test -n "$ac_ct_NMEDIT"; then
 
7553
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7554
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7555
else
 
7556
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7557
$as_echo "no" >&6; }
 
7558
fi
 
7559
 
 
7560
  if test "x$ac_ct_NMEDIT" = x; then
 
7561
    NMEDIT=":"
 
7562
  else
 
7563
    case $cross_compiling:$ac_tool_warned in
 
7564
yes:)
 
7565
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7567
ac_tool_warned=yes ;;
 
7568
esac
 
7569
    NMEDIT=$ac_ct_NMEDIT
 
7570
  fi
 
7571
else
 
7572
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7573
fi
 
7574
 
 
7575
 
 
7576
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7577
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7578
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7579
  $as_echo_n "(cached) " >&6
 
7580
else
 
7581
  lt_cv_apple_cc_single_mod=no
 
7582
      if test -z "${LT_MULTI_MODULE}"; then
 
7583
   # By default we will add the -single_module flag. You can override
 
7584
   # by either setting the environment variable LT_MULTI_MODULE
 
7585
   # non-empty at configure time, or by adding -multi_module to the
 
7586
   # link flags.
 
7587
   echo "int foo(void){return 1;}" > conftest.c
 
7588
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7589
     -dynamiclib ${wl}-single_module conftest.c
 
7590
   if test -f libconftest.dylib; then
 
7591
     lt_cv_apple_cc_single_mod=yes
 
7592
     rm -rf libconftest.dylib*
 
7593
   fi
 
7594
   rm conftest.c
 
7595
      fi
 
7596
fi
 
7597
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7598
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7599
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7600
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7601
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7602
  $as_echo_n "(cached) " >&6
 
7603
else
 
7604
  lt_cv_ld_exported_symbols_list=no
 
7605
      save_LDFLAGS=$LDFLAGS
 
7606
      echo "_main" > conftest.sym
 
7607
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7608
      cat >conftest.$ac_ext <<_ACEOF
 
7609
/* confdefs.h.  */
 
7610
_ACEOF
 
7611
cat confdefs.h >>conftest.$ac_ext
 
7612
cat >>conftest.$ac_ext <<_ACEOF
 
7613
/* end confdefs.h.  */
 
7614
 
 
7615
int
 
7616
main ()
 
7617
{
 
7618
 
 
7619
  ;
 
7620
  return 0;
 
7621
}
 
7622
_ACEOF
 
7623
rm -f conftest.$ac_objext conftest$ac_exeext
 
7624
if { (ac_try="$ac_link"
 
7625
case "(($ac_try" in
 
7626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7627
  *) ac_try_echo=$ac_try;;
 
7628
esac
 
7629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7630
$as_echo "$ac_try_echo") >&5
 
7631
  (eval "$ac_link") 2>conftest.er1
 
7632
  ac_status=$?
 
7633
  grep -v '^ *+' conftest.er1 >conftest.err
 
7634
  rm -f conftest.er1
 
7635
  cat conftest.err >&5
 
7636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7637
  (exit $ac_status); } && {
 
7638
         test -z "$ac_c_werror_flag" ||
 
7639
         test ! -s conftest.err
 
7640
       } && test -s conftest$ac_exeext && {
 
7641
         test "$cross_compiling" = yes ||
 
7642
         $as_test_x conftest$ac_exeext
 
7643
       }; then
 
7644
  lt_cv_ld_exported_symbols_list=yes
 
7645
else
 
7646
  $as_echo "$as_me: failed program was:" >&5
 
7647
sed 's/^/| /' conftest.$ac_ext >&5
 
7648
 
 
7649
        lt_cv_ld_exported_symbols_list=no
 
7650
fi
 
7651
 
 
7652
rm -rf conftest.dSYM
 
7653
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7654
      conftest$ac_exeext conftest.$ac_ext
 
7655
   LDFLAGS="$save_LDFLAGS"
 
7656
 
 
7657
fi
 
7658
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7659
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7660
    case $host_os in
 
7661
    rhapsody* | darwin1.[0123])
 
7662
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7663
    darwin1.*)
 
7664
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7665
    darwin*)
 
7666
      # if running on 10.5 or later, the deployment target defaults
 
7667
      # to the OS version, if on x86, and 10.4, the deployment
 
7668
      # target defaults to 10.4. Don't you love it?
 
7669
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7670
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7671
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7672
   10.[012]*)
 
7673
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7674
   10.*)
 
7675
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7676
      esac
 
7677
    ;;
 
7678
  esac
 
7679
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7680
      _lt_dar_single_mod='$single_module'
 
7681
    fi
 
7682
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7683
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7684
    else
 
7685
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7686
    fi
 
7687
    if test "$DSYMUTIL" != ":"; then
 
7688
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7689
    else
 
7690
      _lt_dsymutil=
 
7691
    fi
 
7692
    ;;
 
7693
  esac
 
7694
 
 
7695
 
 
7696
enable_dlopen=no
 
7697
enable_win32_dll=no
 
7698
 
 
7699
# Check whether --enable-libtool-lock was given.
 
7700
if test "${enable_libtool_lock+set}" = set; then
 
7701
  enableval=$enable_libtool_lock;
 
7702
fi
 
7703
 
 
7704
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7705
 
 
7706
 
 
7707
# Check whether --with-pic was given.
 
7708
if test "${with_pic+set}" = set; then
 
7709
  withval=$with_pic; pic_mode="$withval"
 
7710
else
 
7711
  pic_mode=default
 
7712
fi
 
7713
 
 
7714
test -z "$pic_mode" && pic_mode=default
 
7715
 
 
7716
# Use C for the default configuration in the libtool script
 
7717
tagname=
 
7718
lt_save_CC="$CC"
 
7719
ac_ext=c
 
7720
ac_cpp='$CPP $CPPFLAGS'
 
7721
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7722
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7723
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7724
 
 
7725
 
 
7726
# Source file extension for C test sources.
 
7727
ac_ext=c
 
7728
 
 
7729
# Object file extension for compiled C test sources.
 
7730
objext=o
 
7731
objext=$objext
 
7732
 
 
7733
# Code to be used in simple compile tests
 
7734
lt_simple_compile_test_code="int some_variable = 0;"
 
7735
 
 
7736
# Code to be used in simple link tests
 
7737
lt_simple_link_test_code='int main(){return(0);}'
 
7738
 
 
7739
 
 
7740
# If no C compiler was specified, use CC.
 
7741
LTCC=${LTCC-"$CC"}
 
7742
 
 
7743
# If no C compiler flags were specified, use CFLAGS.
 
7744
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7745
 
 
7746
# Allow CC to be a program name with arguments.
 
7747
compiler=$CC
 
7748
 
 
7749
 
 
7750
# save warnings/boilerplate of simple test code
 
7751
ac_outfile=conftest.$ac_objext
 
7752
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7753
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7754
_lt_compiler_boilerplate=`cat conftest.err`
 
7755
$rm conftest*
 
7756
 
 
7757
ac_outfile=conftest.$ac_objext
 
7758
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7759
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7760
_lt_linker_boilerplate=`cat conftest.err`
 
7761
$rm -r conftest*
 
7762
 
 
7763
 
 
7764
 
 
7765
lt_prog_compiler_no_builtin_flag=
 
7766
 
 
7767
if test "$GCC" = yes; then
 
7768
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7769
 
 
7770
 
 
7771
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7772
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7773
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7774
  $as_echo_n "(cached) " >&6
 
7775
else
 
7776
  lt_cv_prog_compiler_rtti_exceptions=no
 
7777
  ac_outfile=conftest.$ac_objext
 
7778
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7779
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7780
   # Insert the option either (1) after the last *FLAGS variable, or
 
7781
   # (2) before a word containing "conftest.", or (3) at the end.
 
7782
   # Note that $ac_compile itself does not contain backslashes and begins
 
7783
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7784
   # The option is referenced via a variable to avoid confusing sed.
 
7785
   lt_compile=`echo "$ac_compile" | $SED \
 
7786
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7787
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7788
   -e 's:$: $lt_compiler_flag:'`
 
7789
   (eval echo "\"\$as_me:7789: $lt_compile\"" >&5)
 
7790
   (eval "$lt_compile" 2>conftest.err)
 
7791
   ac_status=$?
 
7792
   cat conftest.err >&5
 
7793
   echo "$as_me:7793: \$? = $ac_status" >&5
 
7794
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7795
     # The compiler can only warn and ignore the option if not recognized
 
7796
     # So say no if there are warnings other than the usual output.
 
7797
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7798
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7799
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7800
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7801
     fi
 
7802
   fi
 
7803
   $rm conftest*
 
7804
 
 
7805
fi
 
7806
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7807
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7808
 
 
7809
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7810
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7811
else
 
7812
    :
 
7813
fi
 
7814
 
 
7815
fi
 
7816
 
 
7817
lt_prog_compiler_wl=
 
7818
lt_prog_compiler_pic=
 
7819
lt_prog_compiler_static=
 
7820
 
 
7821
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7822
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7823
 
 
7824
  if test "$GCC" = yes; then
 
7825
    lt_prog_compiler_wl='-Wl,'
 
7826
    lt_prog_compiler_static='-static'
 
7827
 
 
7828
    case $host_os in
 
7829
      aix*)
 
7830
      # All AIX code is PIC.
 
7831
      if test "$host_cpu" = ia64; then
 
7832
        # AIX 5 now supports IA64 processor
 
7833
        lt_prog_compiler_static='-Bstatic'
 
7834
      fi
 
7835
      ;;
 
7836
 
 
7837
    amigaos*)
 
7838
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7839
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7840
      # like `-m68040'.
 
7841
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7842
      ;;
 
7843
 
 
7844
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7845
      # PIC is the default for these OSes.
 
7846
      ;;
 
7847
 
 
7848
    mingw* | cygwin* | pw32* | os2*)
 
7849
      # This hack is so that the source file can tell whether it is being
 
7850
      # built for inclusion in a dll (and should export symbols for example).
 
7851
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7852
      # (--disable-auto-import) libraries
 
7853
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7854
      ;;
 
7855
 
 
7856
    darwin* | rhapsody*)
 
7857
      # PIC is the default on this platform
 
7858
      # Common symbols not allowed in MH_DYLIB files
 
7859
      lt_prog_compiler_pic='-fno-common'
 
7860
      ;;
 
7861
 
 
7862
    interix[3-9]*)
 
7863
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7864
      # Instead, we relocate shared libraries at runtime.
 
7865
      ;;
 
7866
 
 
7867
    msdosdjgpp*)
 
7868
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7869
      # on systems that don't support them.
 
7870
      lt_prog_compiler_can_build_shared=no
 
7871
      enable_shared=no
 
7872
      ;;
 
7873
 
 
7874
    sysv4*MP*)
 
7875
      if test -d /usr/nec; then
 
7876
        lt_prog_compiler_pic=-Kconform_pic
 
7877
      fi
 
7878
      ;;
 
7879
 
 
7880
    hpux*)
 
7881
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7882
      # not for PA HP-UX.
 
7883
      case $host_cpu in
 
7884
      hppa*64*|ia64*)
 
7885
        # +Z the default
 
7886
        ;;
 
7887
      *)
 
7888
        lt_prog_compiler_pic='-fPIC'
 
7889
        ;;
 
7890
      esac
 
7891
      ;;
 
7892
 
 
7893
    *)
 
7894
      lt_prog_compiler_pic='-fPIC'
 
7895
      ;;
 
7896
    esac
 
7897
  else
 
7898
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7899
    case $host_os in
 
7900
    aix*)
 
7901
      lt_prog_compiler_wl='-Wl,'
 
7902
      if test "$host_cpu" = ia64; then
 
7903
        # AIX 5 now supports IA64 processor
 
7904
        lt_prog_compiler_static='-Bstatic'
 
7905
      else
 
7906
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7907
      fi
 
7908
      ;;
 
7909
      darwin*)
 
7910
        # PIC is the default on this platform
 
7911
        # Common symbols not allowed in MH_DYLIB files
 
7912
       case $cc_basename in
 
7913
         xlc*)
 
7914
         lt_prog_compiler_pic='-qnocommon'
 
7915
         lt_prog_compiler_wl='-Wl,'
 
7916
         ;;
 
7917
       esac
 
7918
       ;;
 
7919
 
 
7920
    mingw* | cygwin* | pw32* | os2*)
 
7921
      # This hack is so that the source file can tell whether it is being
 
7922
      # built for inclusion in a dll (and should export symbols for example).
 
7923
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7924
      ;;
 
7925
 
 
7926
    hpux9* | hpux10* | hpux11*)
 
7927
      lt_prog_compiler_wl='-Wl,'
 
7928
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7929
      # not for PA HP-UX.
 
7930
      case $host_cpu in
 
7931
      hppa*64*|ia64*)
 
7932
        # +Z the default
 
7933
        ;;
 
7934
      *)
 
7935
        lt_prog_compiler_pic='+Z'
 
7936
        ;;
 
7937
      esac
 
7938
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7939
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7940
      ;;
 
7941
 
 
7942
    irix5* | irix6* | nonstopux*)
 
7943
      lt_prog_compiler_wl='-Wl,'
 
7944
      # PIC (with -KPIC) is the default.
 
7945
      lt_prog_compiler_static='-non_shared'
 
7946
      ;;
 
7947
 
 
7948
    newsos6)
 
7949
      lt_prog_compiler_pic='-KPIC'
 
7950
      lt_prog_compiler_static='-Bstatic'
 
7951
      ;;
 
7952
 
 
7953
    linux* | k*bsd*-gnu)
 
7954
      case $cc_basename in
 
7955
      icc* | ecc*)
 
7956
        lt_prog_compiler_wl='-Wl,'
 
7957
        lt_prog_compiler_pic='-KPIC'
 
7958
        lt_prog_compiler_static='-static'
 
7959
        ;;
 
7960
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7961
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7962
        # which looks to be a dead project)
 
7963
        lt_prog_compiler_wl='-Wl,'
 
7964
        lt_prog_compiler_pic='-fpic'
 
7965
        lt_prog_compiler_static='-Bstatic'
 
7966
        ;;
 
7967
      ccc*)
 
7968
        lt_prog_compiler_wl='-Wl,'
 
7969
        # All Alpha code is PIC.
 
7970
        lt_prog_compiler_static='-non_shared'
 
7971
        ;;
 
7972
      *)
 
7973
        case `$CC -V 2>&1 | sed 5q` in
 
7974
        *Sun\ C*)
 
7975
          # Sun C 5.9
 
7976
          lt_prog_compiler_pic='-KPIC'
 
7977
          lt_prog_compiler_static='-Bstatic'
 
7978
          lt_prog_compiler_wl='-Wl,'
 
7979
          ;;
 
7980
        *Sun\ F*)
 
7981
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7982
          lt_prog_compiler_pic='-KPIC'
 
7983
          lt_prog_compiler_static='-Bstatic'
 
7984
          lt_prog_compiler_wl=''
 
7985
          ;;
 
7986
        esac
 
7987
        ;;
 
7988
      esac
 
7989
      ;;
 
7990
 
 
7991
    osf3* | osf4* | osf5*)
 
7992
      lt_prog_compiler_wl='-Wl,'
 
7993
      # All OSF/1 code is PIC.
 
7994
      lt_prog_compiler_static='-non_shared'
 
7995
      ;;
 
7996
 
 
7997
    rdos*)
 
7998
      lt_prog_compiler_static='-non_shared'
 
7999
      ;;
 
8000
 
 
8001
    solaris*)
 
8002
      lt_prog_compiler_pic='-KPIC'
 
8003
      lt_prog_compiler_static='-Bstatic'
 
8004
      case $cc_basename in
 
8005
      f77* | f90* | f95*)
 
8006
        lt_prog_compiler_wl='-Qoption ld ';;
 
8007
      *)
 
8008
        lt_prog_compiler_wl='-Wl,';;
 
8009
      esac
 
8010
      ;;
 
8011
 
 
8012
    sunos4*)
 
8013
      lt_prog_compiler_wl='-Qoption ld '
 
8014
      lt_prog_compiler_pic='-PIC'
 
8015
      lt_prog_compiler_static='-Bstatic'
 
8016
      ;;
 
8017
 
 
8018
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8019
      lt_prog_compiler_wl='-Wl,'
 
8020
      lt_prog_compiler_pic='-KPIC'
 
8021
      lt_prog_compiler_static='-Bstatic'
 
8022
      ;;
 
8023
 
 
8024
    sysv4*MP*)
 
8025
      if test -d /usr/nec ;then
 
8026
        lt_prog_compiler_pic='-Kconform_pic'
 
8027
        lt_prog_compiler_static='-Bstatic'
 
8028
      fi
 
8029
      ;;
 
8030
 
 
8031
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8032
      lt_prog_compiler_wl='-Wl,'
 
8033
      lt_prog_compiler_pic='-KPIC'
 
8034
      lt_prog_compiler_static='-Bstatic'
 
8035
      ;;
 
8036
 
 
8037
    unicos*)
 
8038
      lt_prog_compiler_wl='-Wl,'
 
8039
      lt_prog_compiler_can_build_shared=no
 
8040
      ;;
 
8041
 
 
8042
    uts4*)
 
8043
      lt_prog_compiler_pic='-pic'
 
8044
      lt_prog_compiler_static='-Bstatic'
 
8045
      ;;
 
8046
 
 
8047
    *)
 
8048
      lt_prog_compiler_can_build_shared=no
 
8049
      ;;
 
8050
    esac
 
8051
  fi
 
8052
 
 
8053
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8054
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8055
 
 
8056
#
 
8057
# Check to make sure the PIC flag actually works.
 
8058
#
 
8059
if test -n "$lt_prog_compiler_pic"; then
 
8060
 
 
8061
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8062
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8063
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8064
  $as_echo_n "(cached) " >&6
 
8065
else
 
8066
  lt_cv_prog_compiler_pic_works=no
 
8067
  ac_outfile=conftest.$ac_objext
 
8068
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8069
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8070
   # Insert the option either (1) after the last *FLAGS variable, or
 
8071
   # (2) before a word containing "conftest.", or (3) at the end.
 
8072
   # Note that $ac_compile itself does not contain backslashes and begins
 
8073
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8074
   # The option is referenced via a variable to avoid confusing sed.
 
8075
   lt_compile=`echo "$ac_compile" | $SED \
 
8076
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8077
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8078
   -e 's:$: $lt_compiler_flag:'`
 
8079
   (eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
 
8080
   (eval "$lt_compile" 2>conftest.err)
 
8081
   ac_status=$?
 
8082
   cat conftest.err >&5
 
8083
   echo "$as_me:8083: \$? = $ac_status" >&5
 
8084
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8085
     # The compiler can only warn and ignore the option if not recognized
 
8086
     # So say no if there are warnings other than the usual output.
 
8087
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8088
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8089
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8090
       lt_cv_prog_compiler_pic_works=yes
 
8091
     fi
 
8092
   fi
 
8093
   $rm conftest*
 
8094
 
 
8095
fi
 
8096
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8097
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8098
 
 
8099
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8100
    case $lt_prog_compiler_pic in
 
8101
     "" | " "*) ;;
 
8102
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8103
     esac
 
8104
else
 
8105
    lt_prog_compiler_pic=
 
8106
     lt_prog_compiler_can_build_shared=no
 
8107
fi
 
8108
 
 
8109
fi
 
8110
case $host_os in
 
8111
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8112
  *djgpp*)
 
8113
    lt_prog_compiler_pic=
 
8114
    ;;
 
8115
  *)
 
8116
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8117
    ;;
 
8118
esac
 
8119
 
 
8120
#
 
8121
# Check to make sure the static flag actually works.
 
8122
#
 
8123
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8124
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8125
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8126
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8127
  $as_echo_n "(cached) " >&6
 
8128
else
 
8129
  lt_cv_prog_compiler_static_works=no
 
8130
   save_LDFLAGS="$LDFLAGS"
 
8131
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8132
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8133
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8134
     # The linker can only warn and ignore the option if not recognized
 
8135
     # So say no if there are warnings
 
8136
     if test -s conftest.err; then
 
8137
       # Append any errors to the config.log.
 
8138
       cat conftest.err 1>&5
 
8139
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8140
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8141
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8142
         lt_cv_prog_compiler_static_works=yes
 
8143
       fi
 
8144
     else
 
8145
       lt_cv_prog_compiler_static_works=yes
 
8146
     fi
 
8147
   fi
 
8148
   $rm -r conftest*
 
8149
   LDFLAGS="$save_LDFLAGS"
 
8150
 
 
8151
fi
 
8152
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8153
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8154
 
 
8155
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8156
    :
 
8157
else
 
8158
    lt_prog_compiler_static=
 
8159
fi
 
8160
 
 
8161
 
 
8162
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8163
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8164
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8165
  $as_echo_n "(cached) " >&6
 
8166
else
 
8167
  lt_cv_prog_compiler_c_o=no
 
8168
   $rm -r conftest 2>/dev/null
 
8169
   mkdir conftest
 
8170
   cd conftest
 
8171
   mkdir out
 
8172
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8173
 
 
8174
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8175
   # Insert the option either (1) after the last *FLAGS variable, or
 
8176
   # (2) before a word containing "conftest.", or (3) at the end.
 
8177
   # Note that $ac_compile itself does not contain backslashes and begins
 
8178
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8179
   lt_compile=`echo "$ac_compile" | $SED \
 
8180
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8181
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8182
   -e 's:$: $lt_compiler_flag:'`
 
8183
   (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
 
8184
   (eval "$lt_compile" 2>out/conftest.err)
 
8185
   ac_status=$?
 
8186
   cat out/conftest.err >&5
 
8187
   echo "$as_me:8187: \$? = $ac_status" >&5
 
8188
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8189
   then
 
8190
     # The compiler can only warn and ignore the option if not recognized
 
8191
     # So say no if there are warnings
 
8192
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8193
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8194
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8195
       lt_cv_prog_compiler_c_o=yes
 
8196
     fi
 
8197
   fi
 
8198
   chmod u+w . 2>&5
 
8199
   $rm conftest*
 
8200
   # SGI C++ compiler will create directory out/ii_files/ for
 
8201
   # template instantiation
 
8202
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8203
   $rm out/* && rmdir out
 
8204
   cd ..
 
8205
   rmdir conftest
 
8206
   $rm conftest*
 
8207
 
 
8208
fi
 
8209
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8210
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8211
 
 
8212
 
 
8213
hard_links="nottested"
 
8214
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8215
  # do not overwrite the value of need_locks provided by the user
 
8216
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8217
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8218
  hard_links=yes
 
8219
  $rm conftest*
 
8220
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8221
  touch conftest.a
 
8222
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8223
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8224
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8225
$as_echo "$hard_links" >&6; }
 
8226
  if test "$hard_links" = no; then
 
8227
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8228
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8229
    need_locks=warn
 
8230
  fi
 
8231
else
 
8232
  need_locks=no
 
8233
fi
 
8234
 
 
8235
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8236
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8237
 
 
8238
  runpath_var=
 
8239
  allow_undefined_flag=
 
8240
  enable_shared_with_static_runtimes=no
 
8241
  archive_cmds=
 
8242
  archive_expsym_cmds=
 
8243
  old_archive_From_new_cmds=
 
8244
  old_archive_from_expsyms_cmds=
 
8245
  export_dynamic_flag_spec=
 
8246
  whole_archive_flag_spec=
 
8247
  thread_safe_flag_spec=
 
8248
  hardcode_libdir_flag_spec=
 
8249
  hardcode_libdir_flag_spec_ld=
 
8250
  hardcode_libdir_separator=
 
8251
  hardcode_direct=no
 
8252
  hardcode_minus_L=no
 
8253
  hardcode_shlibpath_var=unsupported
 
8254
  link_all_deplibs=unknown
 
8255
  hardcode_automatic=no
 
8256
  module_cmds=
 
8257
  module_expsym_cmds=
 
8258
  always_export_symbols=no
 
8259
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8260
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8261
  # included in the symbol list
 
8262
  include_expsyms=
 
8263
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8264
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8265
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8266
  # as well as any symbol that contains `d'.
 
8267
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8268
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8269
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8270
  # the symbol is explicitly referenced.  Since portable code cannot
 
8271
  # rely on this symbol name, it's probably fine to never include it in
 
8272
  # preloaded symbol tables.
 
8273
  # Exclude shared library initialization/finalization symbols.
 
8274
  extract_expsyms_cmds=
 
8275
  # Just being paranoid about ensuring that cc_basename is set.
 
8276
  for cc_temp in $compiler""; do
 
8277
  case $cc_temp in
 
8278
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8279
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8280
    \-*) ;;
 
8281
    *) break;;
 
8282
  esac
 
8283
done
 
8284
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8285
 
 
8286
  case $host_os in
 
8287
  cygwin* | mingw* | pw32*)
 
8288
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8289
    # When not using gcc, we currently assume that we are using
 
8290
    # Microsoft Visual C++.
 
8291
    if test "$GCC" != yes; then
 
8292
      with_gnu_ld=no
 
8293
    fi
 
8294
    ;;
 
8295
  interix*)
 
8296
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8297
    with_gnu_ld=yes
 
8298
    ;;
 
8299
  openbsd*)
 
8300
    with_gnu_ld=no
 
8301
    ;;
 
8302
  esac
 
8303
 
 
8304
  ld_shlibs=yes
 
8305
  if test "$with_gnu_ld" = yes; then
 
8306
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8307
    wlarc='${wl}'
 
8308
 
 
8309
    # Set some defaults for GNU ld with shared library support. These
 
8310
    # are reset later if shared libraries are not supported. Putting them
 
8311
    # here allows them to be overridden if necessary.
 
8312
    runpath_var=LD_RUN_PATH
 
8313
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8314
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8315
    # ancient GNU ld didn't support --whole-archive et. al.
 
8316
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8317
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8318
      else
 
8319
        whole_archive_flag_spec=
 
8320
    fi
 
8321
    supports_anon_versioning=no
 
8322
    case `$LD -v 2>/dev/null` in
 
8323
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8324
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8325
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8326
      *\ 2.11.*) ;; # other 2.11 versions
 
8327
      *) supports_anon_versioning=yes ;;
 
8328
    esac
 
8329
 
 
8330
    # See if GNU ld supports shared libraries.
 
8331
    case $host_os in
 
8332
    aix[3-9]*)
 
8333
      # On AIX/PPC, the GNU linker is very broken
 
8334
      if test "$host_cpu" != ia64; then
 
8335
        ld_shlibs=no
 
8336
        cat <<EOF 1>&2
 
8337
 
 
8338
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8339
*** to be unable to reliably create shared libraries on AIX.
 
8340
*** Therefore, libtool is disabling shared libraries support.  If you
 
8341
*** really care for shared libraries, you may want to modify your PATH
 
8342
*** so that a non-GNU linker is found, and then restart.
 
8343
 
 
8344
EOF
 
8345
      fi
 
8346
      ;;
 
8347
 
 
8348
    amigaos*)
 
8349
      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)'
 
8350
      hardcode_libdir_flag_spec='-L$libdir'
 
8351
      hardcode_minus_L=yes
 
8352
 
 
8353
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8354
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8355
      # to version 4, is to share data among multiple programs linked
 
8356
      # with the same dynamic library.  Since this doesn't match the
 
8357
      # behavior of shared libraries on other platforms, we can't use
 
8358
      # them.
 
8359
      ld_shlibs=no
 
8360
      ;;
 
8361
 
 
8362
    beos*)
 
8363
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8364
        allow_undefined_flag=unsupported
 
8365
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8366
        # support --undefined.  This deserves some investigation.  FIXME
 
8367
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8368
      else
 
8369
        ld_shlibs=no
 
8370
      fi
 
8371
      ;;
 
8372
 
 
8373
    cygwin* | mingw* | pw32*)
 
8374
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8375
      # as there is no search path for DLLs.
 
8376
      hardcode_libdir_flag_spec='-L$libdir'
 
8377
      allow_undefined_flag=unsupported
 
8378
      always_export_symbols=no
 
8379
      enable_shared_with_static_runtimes=yes
 
8380
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8381
 
 
8382
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8383
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8384
        # If the export-symbols file already is a .def file (1st line
 
8385
        # is EXPORTS), use it as is; otherwise, prepend...
 
8386
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8387
          cp $export_symbols $output_objdir/$soname.def;
 
8388
        else
 
8389
          echo EXPORTS > $output_objdir/$soname.def;
 
8390
          cat $export_symbols >> $output_objdir/$soname.def;
 
8391
        fi~
 
8392
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8393
      else
 
8394
        ld_shlibs=no
 
8395
      fi
 
8396
      ;;
 
8397
 
 
8398
    interix[3-9]*)
 
8399
      hardcode_direct=no
 
8400
      hardcode_shlibpath_var=no
 
8401
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8402
      export_dynamic_flag_spec='${wl}-E'
 
8403
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8404
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8405
      # default) and relocated if they conflict, which is a slow very memory
 
8406
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8407
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8408
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8409
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8410
      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'
 
8411
      ;;
 
8412
 
 
8413
    gnu* | linux* | k*bsd*-gnu)
 
8414
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8415
        tmp_addflag=
 
8416
        case $cc_basename,$host_cpu in
 
8417
        pgcc*)                          # Portland Group C compiler
 
8418
          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'
 
8419
          tmp_addflag=' $pic_flag'
 
8420
          ;;
 
8421
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8422
          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'
 
8423
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8424
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8425
          tmp_addflag=' -i_dynamic' ;;
 
8426
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8427
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8428
        ifc* | ifort*)                  # Intel Fortran compiler
 
8429
          tmp_addflag=' -nofor_main' ;;
 
8430
        esac
 
8431
        case `$CC -V 2>&1 | sed 5q` in
 
8432
        *Sun\ C*)                       # Sun C 5.9
 
8433
          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'
 
8434
          tmp_sharedflag='-G' ;;
 
8435
        *Sun\ F*)                       # Sun Fortran 8.3
 
8436
          tmp_sharedflag='-G' ;;
 
8437
        *)
 
8438
          tmp_sharedflag='-shared' ;;
 
8439
        esac
 
8440
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8441
 
 
8442
        if test $supports_anon_versioning = yes; then
 
8443
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8444
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8445
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8446
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8447
        fi
 
8448
      else
 
8449
        ld_shlibs=no
 
8450
      fi
 
8451
      ;;
 
8452
 
 
8453
    netbsd*)
 
8454
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8455
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8456
        wlarc=
 
8457
      else
 
8458
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8459
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8460
      fi
 
8461
      ;;
 
8462
 
 
8463
    solaris*)
 
8464
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8465
        ld_shlibs=no
 
8466
        cat <<EOF 1>&2
 
8467
 
 
8468
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8469
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8470
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8471
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8472
*** your PATH or compiler configuration so that the native linker is
 
8473
*** used, and then restart.
 
8474
 
 
8475
EOF
 
8476
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8477
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8478
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8479
      else
 
8480
        ld_shlibs=no
 
8481
      fi
 
8482
      ;;
 
8483
 
 
8484
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8485
      case `$LD -v 2>&1` in
 
8486
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8487
        ld_shlibs=no
 
8488
        cat <<_LT_EOF 1>&2
 
8489
 
 
8490
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8491
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8492
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8493
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8494
*** your PATH or compiler configuration so that the native linker is
 
8495
*** used, and then restart.
 
8496
 
 
8497
_LT_EOF
 
8498
        ;;
 
8499
        *)
 
8500
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8501
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8502
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8503
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8504
          else
 
8505
            ld_shlibs=no
 
8506
          fi
 
8507
        ;;
 
8508
      esac
 
8509
      ;;
 
8510
 
 
8511
    sunos4*)
 
8512
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8513
      wlarc=
 
8514
      hardcode_direct=yes
 
8515
      hardcode_shlibpath_var=no
 
8516
      ;;
 
8517
 
 
8518
    *)
 
8519
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8520
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8521
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8522
      else
 
8523
        ld_shlibs=no
 
8524
      fi
 
8525
      ;;
 
8526
    esac
 
8527
 
 
8528
    if test "$ld_shlibs" = no; then
 
8529
      runpath_var=
 
8530
      hardcode_libdir_flag_spec=
 
8531
      export_dynamic_flag_spec=
 
8532
      whole_archive_flag_spec=
 
8533
    fi
 
8534
  else
 
8535
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8536
    case $host_os in
 
8537
    aix3*)
 
8538
      allow_undefined_flag=unsupported
 
8539
      always_export_symbols=yes
 
8540
      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'
 
8541
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8542
      # are no directories specified by -L.
 
8543
      hardcode_minus_L=yes
 
8544
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8545
        # Neither direct hardcoding nor static linking is supported with a
 
8546
        # broken collect2.
 
8547
        hardcode_direct=unsupported
 
8548
      fi
 
8549
      ;;
 
8550
 
 
8551
    aix[4-9]*)
 
8552
      if test "$host_cpu" = ia64; then
 
8553
        # On IA64, the linker does run time linking by default, so we don't
 
8554
        # have to do anything special.
 
8555
        aix_use_runtimelinking=no
 
8556
        exp_sym_flag='-Bexport'
 
8557
        no_entry_flag=""
 
8558
      else
 
8559
        # If we're using GNU nm, then we don't want the "-C" option.
 
8560
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8561
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8562
          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'
 
8563
        else
 
8564
          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'
 
8565
        fi
 
8566
        aix_use_runtimelinking=no
 
8567
 
 
8568
        # Test if we are trying to use run time linking or normal
 
8569
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8570
        # need to do runtime linking.
 
8571
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8572
          for ld_flag in $LDFLAGS; do
 
8573
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8574
            aix_use_runtimelinking=yes
 
8575
            break
 
8576
          fi
 
8577
          done
 
8578
          ;;
 
8579
        esac
 
8580
 
 
8581
        exp_sym_flag='-bexport'
 
8582
        no_entry_flag='-bnoentry'
 
8583
      fi
 
8584
 
 
8585
      # When large executables or shared objects are built, AIX ld can
 
8586
      # have problems creating the table of contents.  If linking a library
 
8587
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8588
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8589
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8590
 
 
8591
      archive_cmds=''
 
8592
      hardcode_direct=yes
 
8593
      hardcode_libdir_separator=':'
 
8594
      link_all_deplibs=yes
 
8595
 
 
8596
      if test "$GCC" = yes; then
 
8597
        case $host_os in aix4.[012]|aix4.[012].*)
 
8598
        # We only want to do this on AIX 4.2 and lower, the check
 
8599
        # below for broken collect2 doesn't work under 4.3+
 
8600
          collect2name=`${CC} -print-prog-name=collect2`
 
8601
          if test -f "$collect2name" && \
 
8602
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8603
          then
 
8604
          # We have reworked collect2
 
8605
          :
 
8606
          else
 
8607
          # We have old collect2
 
8608
          hardcode_direct=unsupported
 
8609
          # It fails to find uninstalled libraries when the uninstalled
 
8610
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8611
          # to unsupported forces relinking
 
8612
          hardcode_minus_L=yes
 
8613
          hardcode_libdir_flag_spec='-L$libdir'
 
8614
          hardcode_libdir_separator=
 
8615
          fi
 
8616
          ;;
 
8617
        esac
 
8618
        shared_flag='-shared'
 
8619
        if test "$aix_use_runtimelinking" = yes; then
 
8620
          shared_flag="$shared_flag "'${wl}-G'
 
8621
        fi
 
8622
      else
 
8623
        # not using gcc
 
8624
        if test "$host_cpu" = ia64; then
 
8625
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8626
        # chokes on -Wl,-G. The following line is correct:
 
8627
          shared_flag='-G'
 
8628
        else
 
8629
          if test "$aix_use_runtimelinking" = yes; then
 
8630
            shared_flag='${wl}-G'
 
8631
          else
 
8632
            shared_flag='${wl}-bM:SRE'
 
8633
          fi
 
8634
        fi
 
8635
      fi
 
8636
 
 
8637
      # It seems that -bexpall does not export symbols beginning with
 
8638
      # underscore (_), so it is better to generate a list of symbols to export.
 
8639
      always_export_symbols=yes
 
8640
      if test "$aix_use_runtimelinking" = yes; then
 
8641
        # Warning - without using the other runtime loading flags (-brtl),
 
8642
        # -berok will link without error, but may produce a broken library.
 
8643
        allow_undefined_flag='-berok'
 
8644
       # Determine the default libpath from the value encoded in an empty executable.
 
8645
       cat >conftest.$ac_ext <<_ACEOF
 
8646
/* confdefs.h.  */
 
8647
_ACEOF
 
8648
cat confdefs.h >>conftest.$ac_ext
 
8649
cat >>conftest.$ac_ext <<_ACEOF
 
8650
/* end confdefs.h.  */
 
8651
 
 
8652
int
 
8653
main ()
 
8654
{
 
8655
 
 
8656
  ;
 
8657
  return 0;
 
8658
}
 
8659
_ACEOF
 
8660
rm -f conftest.$ac_objext conftest$ac_exeext
 
8661
if { (ac_try="$ac_link"
 
8662
case "(($ac_try" in
 
8663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8664
  *) ac_try_echo=$ac_try;;
 
8665
esac
 
8666
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8667
$as_echo "$ac_try_echo") >&5
 
8668
  (eval "$ac_link") 2>conftest.er1
 
8669
  ac_status=$?
 
8670
  grep -v '^ *+' conftest.er1 >conftest.err
 
8671
  rm -f conftest.er1
 
8672
  cat conftest.err >&5
 
8673
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8674
  (exit $ac_status); } && {
 
8675
         test -z "$ac_c_werror_flag" ||
 
8676
         test ! -s conftest.err
 
8677
       } && test -s conftest$ac_exeext && {
 
8678
         test "$cross_compiling" = yes ||
 
8679
         $as_test_x conftest$ac_exeext
 
8680
       }; then
 
8681
 
 
8682
lt_aix_libpath_sed='
 
8683
    /Import File Strings/,/^$/ {
 
8684
        /^0/ {
 
8685
            s/^0  *\(.*\)$/\1/
 
8686
            p
 
8687
        }
 
8688
    }'
 
8689
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8690
# Check for a 64-bit object if we didn't find anything.
 
8691
if test -z "$aix_libpath"; then
 
8692
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8693
fi
 
8694
else
 
8695
  $as_echo "$as_me: failed program was:" >&5
 
8696
sed 's/^/| /' conftest.$ac_ext >&5
 
8697
 
 
8698
 
 
8699
fi
 
8700
 
 
8701
rm -rf conftest.dSYM
 
8702
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8703
      conftest$ac_exeext conftest.$ac_ext
 
8704
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8705
 
 
8706
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8707
        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"
 
8708
       else
 
8709
        if test "$host_cpu" = ia64; then
 
8710
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8711
          allow_undefined_flag="-z nodefs"
 
8712
          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"
 
8713
        else
 
8714
         # Determine the default libpath from the value encoded in an empty executable.
 
8715
         cat >conftest.$ac_ext <<_ACEOF
 
8716
/* confdefs.h.  */
 
8717
_ACEOF
 
8718
cat confdefs.h >>conftest.$ac_ext
 
8719
cat >>conftest.$ac_ext <<_ACEOF
 
8720
/* end confdefs.h.  */
 
8721
 
 
8722
int
 
8723
main ()
 
8724
{
 
8725
 
 
8726
  ;
 
8727
  return 0;
 
8728
}
 
8729
_ACEOF
 
8730
rm -f conftest.$ac_objext conftest$ac_exeext
 
8731
if { (ac_try="$ac_link"
 
8732
case "(($ac_try" in
 
8733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8734
  *) ac_try_echo=$ac_try;;
 
8735
esac
 
8736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8737
$as_echo "$ac_try_echo") >&5
 
8738
  (eval "$ac_link") 2>conftest.er1
 
8739
  ac_status=$?
 
8740
  grep -v '^ *+' conftest.er1 >conftest.err
 
8741
  rm -f conftest.er1
 
8742
  cat conftest.err >&5
 
8743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8744
  (exit $ac_status); } && {
 
8745
         test -z "$ac_c_werror_flag" ||
 
8746
         test ! -s conftest.err
 
8747
       } && test -s conftest$ac_exeext && {
 
8748
         test "$cross_compiling" = yes ||
 
8749
         $as_test_x conftest$ac_exeext
 
8750
       }; then
 
8751
 
 
8752
lt_aix_libpath_sed='
 
8753
    /Import File Strings/,/^$/ {
 
8754
        /^0/ {
 
8755
            s/^0  *\(.*\)$/\1/
 
8756
            p
 
8757
        }
 
8758
    }'
 
8759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8760
# Check for a 64-bit object if we didn't find anything.
 
8761
if test -z "$aix_libpath"; then
 
8762
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8763
fi
 
8764
else
 
8765
  $as_echo "$as_me: failed program was:" >&5
 
8766
sed 's/^/| /' conftest.$ac_ext >&5
 
8767
 
 
8768
 
 
8769
fi
 
8770
 
 
8771
rm -rf conftest.dSYM
 
8772
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8773
      conftest$ac_exeext conftest.$ac_ext
 
8774
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8775
 
 
8776
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8777
          # Warning - without using the other run time loading flags,
 
8778
          # -berok will link without error, but may produce a broken library.
 
8779
          no_undefined_flag=' ${wl}-bernotok'
 
8780
          allow_undefined_flag=' ${wl}-berok'
 
8781
          # Exported symbols can be pulled into shared objects from archives
 
8782
          whole_archive_flag_spec='$convenience'
 
8783
          archive_cmds_need_lc=yes
 
8784
          # This is similar to how AIX traditionally builds its shared libraries.
 
8785
          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'
 
8786
        fi
 
8787
      fi
 
8788
      ;;
 
8789
 
 
8790
    amigaos*)
 
8791
      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)'
 
8792
      hardcode_libdir_flag_spec='-L$libdir'
 
8793
      hardcode_minus_L=yes
 
8794
      # see comment about different semantics on the GNU ld section
 
8795
      ld_shlibs=no
 
8796
      ;;
 
8797
 
 
8798
    bsdi[45]*)
 
8799
      export_dynamic_flag_spec=-rdynamic
 
8800
      ;;
 
8801
 
 
8802
    cygwin* | mingw* | pw32*)
 
8803
      # When not using gcc, we currently assume that we are using
 
8804
      # Microsoft Visual C++.
 
8805
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8806
      # no search path for DLLs.
 
8807
      hardcode_libdir_flag_spec=' '
 
8808
      allow_undefined_flag=unsupported
 
8809
      # Tell ltmain to make .lib files, not .a files.
 
8810
      libext=lib
 
8811
      # Tell ltmain to make .dll files, not .so files.
 
8812
      shrext_cmds=".dll"
 
8813
      # FIXME: Setting linknames here is a bad hack.
 
8814
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8815
      # The linker will automatically build a .lib file if we build a DLL.
 
8816
      old_archive_From_new_cmds='true'
 
8817
      # FIXME: Should let the user specify the lib program.
 
8818
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8819
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8820
      enable_shared_with_static_runtimes=yes
 
8821
      ;;
 
8822
 
 
8823
    darwin* | rhapsody*)
 
8824
      case $host_os in
 
8825
        rhapsody* | darwin1.[012])
 
8826
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8827
         ;;
 
8828
       *) # Darwin 1.3 on
 
8829
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8830
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8831
         else
 
8832
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8833
             10.[012])
 
8834
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8835
               ;;
 
8836
             10.*)
 
8837
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8838
               ;;
 
8839
           esac
 
8840
         fi
 
8841
         ;;
 
8842
      esac
 
8843
      archive_cmds_need_lc=no
 
8844
      hardcode_direct=no
 
8845
      hardcode_automatic=yes
 
8846
      hardcode_shlibpath_var=unsupported
 
8847
      whole_archive_flag_spec=''
 
8848
      link_all_deplibs=yes
 
8849
    if test "$GCC" = yes ; then
 
8850
        output_verbose_link_cmd='echo'
 
8851
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8852
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8853
        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}"
 
8854
        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}"
 
8855
    else
 
8856
      case $cc_basename in
 
8857
        xlc*)
 
8858
         output_verbose_link_cmd='echo'
 
8859
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8860
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8861
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8862
         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}'
 
8863
          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}'
 
8864
          ;;
 
8865
       *)
 
8866
         ld_shlibs=no
 
8867
          ;;
 
8868
      esac
 
8869
    fi
 
8870
      ;;
 
8871
 
 
8872
    dgux*)
 
8873
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8874
      hardcode_libdir_flag_spec='-L$libdir'
 
8875
      hardcode_shlibpath_var=no
 
8876
      ;;
 
8877
 
 
8878
    freebsd1*)
 
8879
      ld_shlibs=no
 
8880
      ;;
 
8881
 
 
8882
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8883
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8884
    # does not break anything, and helps significantly (at the cost of a little
 
8885
    # extra space).
 
8886
    freebsd2.2*)
 
8887
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8888
      hardcode_libdir_flag_spec='-R$libdir'
 
8889
      hardcode_direct=yes
 
8890
      hardcode_shlibpath_var=no
 
8891
      ;;
 
8892
 
 
8893
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8894
    freebsd2*)
 
8895
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8896
      hardcode_direct=yes
 
8897
      hardcode_minus_L=yes
 
8898
      hardcode_shlibpath_var=no
 
8899
      ;;
 
8900
 
 
8901
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8902
    freebsd* | dragonfly*)
 
8903
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8904
      hardcode_libdir_flag_spec='-R$libdir'
 
8905
      hardcode_direct=yes
 
8906
      hardcode_shlibpath_var=no
 
8907
      ;;
 
8908
 
 
8909
    hpux9*)
 
8910
      if test "$GCC" = yes; then
 
8911
        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'
 
8912
      else
 
8913
        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'
 
8914
      fi
 
8915
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8916
      hardcode_libdir_separator=:
 
8917
      hardcode_direct=yes
 
8918
 
 
8919
      # hardcode_minus_L: Not really in the search PATH,
 
8920
      # but as the default location of the library.
 
8921
      hardcode_minus_L=yes
 
8922
      export_dynamic_flag_spec='${wl}-E'
 
8923
      ;;
 
8924
 
 
8925
    hpux10*)
 
8926
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8927
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8928
      else
 
8929
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8930
      fi
 
8931
      if test "$with_gnu_ld" = no; then
 
8932
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8933
        hardcode_libdir_separator=:
 
8934
 
 
8935
        hardcode_direct=yes
 
8936
        export_dynamic_flag_spec='${wl}-E'
 
8937
 
 
8938
        # hardcode_minus_L: Not really in the search PATH,
 
8939
        # but as the default location of the library.
 
8940
        hardcode_minus_L=yes
 
8941
      fi
 
8942
      ;;
 
8943
 
 
8944
    hpux11*)
 
8945
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8946
        case $host_cpu in
 
8947
        hppa*64*)
 
8948
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8949
          ;;
 
8950
        ia64*)
 
8951
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8952
          ;;
 
8953
        *)
 
8954
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8955
          ;;
 
8956
        esac
 
8957
      else
 
8958
        case $host_cpu in
 
8959
        hppa*64*)
 
8960
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8961
          ;;
 
8962
        ia64*)
 
8963
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8964
          ;;
 
8965
        *)
 
8966
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8967
          ;;
 
8968
        esac
 
8969
      fi
 
8970
      if test "$with_gnu_ld" = no; then
 
8971
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8972
        hardcode_libdir_separator=:
 
8973
 
 
8974
        case $host_cpu in
 
8975
        hppa*64*|ia64*)
 
8976
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8977
          hardcode_direct=no
 
8978
          hardcode_shlibpath_var=no
 
8979
          ;;
 
8980
        *)
 
8981
          hardcode_direct=yes
 
8982
          export_dynamic_flag_spec='${wl}-E'
 
8983
 
 
8984
          # hardcode_minus_L: Not really in the search PATH,
 
8985
          # but as the default location of the library.
 
8986
          hardcode_minus_L=yes
 
8987
          ;;
 
8988
        esac
 
8989
      fi
 
8990
      ;;
 
8991
 
 
8992
    irix5* | irix6* | nonstopux*)
 
8993
      if test "$GCC" = yes; then
 
8994
        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'
 
8995
      else
 
8996
        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'
 
8997
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8998
      fi
 
8999
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9000
      hardcode_libdir_separator=:
 
9001
      link_all_deplibs=yes
 
9002
      ;;
 
9003
 
 
9004
    netbsd*)
 
9005
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9006
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9007
      else
 
9008
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9009
      fi
 
9010
      hardcode_libdir_flag_spec='-R$libdir'
 
9011
      hardcode_direct=yes
 
9012
      hardcode_shlibpath_var=no
 
9013
      ;;
 
9014
 
 
9015
    newsos6)
 
9016
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9017
      hardcode_direct=yes
 
9018
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9019
      hardcode_libdir_separator=:
 
9020
      hardcode_shlibpath_var=no
 
9021
      ;;
 
9022
 
 
9023
    openbsd*)
 
9024
      if test -f /usr/libexec/ld.so; then
 
9025
        hardcode_direct=yes
 
9026
        hardcode_shlibpath_var=no
 
9027
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9028
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9029
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9030
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9031
          export_dynamic_flag_spec='${wl}-E'
 
9032
        else
 
9033
          case $host_os in
 
9034
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9035
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9036
             hardcode_libdir_flag_spec='-R$libdir'
 
9037
             ;;
 
9038
           *)
 
9039
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9040
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9041
             ;;
 
9042
          esac
 
9043
        fi
 
9044
      else
 
9045
        ld_shlibs=no
 
9046
      fi
 
9047
      ;;
 
9048
 
 
9049
    os2*)
 
9050
      hardcode_libdir_flag_spec='-L$libdir'
 
9051
      hardcode_minus_L=yes
 
9052
      allow_undefined_flag=unsupported
 
9053
      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'
 
9054
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9055
      ;;
 
9056
 
 
9057
    osf3*)
 
9058
      if test "$GCC" = yes; then
 
9059
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9060
        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'
 
9061
      else
 
9062
        allow_undefined_flag=' -expect_unresolved \*'
 
9063
        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'
 
9064
      fi
 
9065
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9066
      hardcode_libdir_separator=:
 
9067
      ;;
 
9068
 
 
9069
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9070
      if test "$GCC" = yes; then
 
9071
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9072
        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'
 
9073
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9074
      else
 
9075
        allow_undefined_flag=' -expect_unresolved \*'
 
9076
        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'
 
9077
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9078
        $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'
 
9079
 
 
9080
        # Both c and cxx compiler support -rpath directly
 
9081
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9082
      fi
 
9083
      hardcode_libdir_separator=:
 
9084
      ;;
 
9085
 
 
9086
    solaris*)
 
9087
      no_undefined_flag=' -z text'
 
9088
      if test "$GCC" = yes; then
 
9089
        wlarc='${wl}'
 
9090
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9091
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9092
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9093
      else
 
9094
        wlarc=''
 
9095
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9096
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9097
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9098
      fi
 
9099
      hardcode_libdir_flag_spec='-R$libdir'
 
9100
      hardcode_shlibpath_var=no
 
9101
      case $host_os in
 
9102
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9103
      *)
 
9104
        # The compiler driver will combine and reorder linker options,
 
9105
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9106
        # but is careful enough not to reorder.
 
9107
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9108
        if test "$GCC" = yes; then
 
9109
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9110
        else
 
9111
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9112
        fi
 
9113
        ;;
 
9114
      esac
 
9115
      link_all_deplibs=yes
 
9116
      ;;
 
9117
 
 
9118
    sunos4*)
 
9119
      if test "x$host_vendor" = xsequent; then
 
9120
        # Use $CC to link under sequent, because it throws in some extra .o
 
9121
        # files that make .init and .fini sections work.
 
9122
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9123
      else
 
9124
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9125
      fi
 
9126
      hardcode_libdir_flag_spec='-L$libdir'
 
9127
      hardcode_direct=yes
 
9128
      hardcode_minus_L=yes
 
9129
      hardcode_shlibpath_var=no
 
9130
      ;;
 
9131
 
 
9132
    sysv4)
 
9133
      case $host_vendor in
 
9134
        sni)
 
9135
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9136
          hardcode_direct=yes # is this really true???
 
9137
        ;;
 
9138
        siemens)
 
9139
          ## LD is ld it makes a PLAMLIB
 
9140
          ## CC just makes a GrossModule.
 
9141
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9142
          reload_cmds='$CC -r -o $output$reload_objs'
 
9143
          hardcode_direct=no
 
9144
        ;;
 
9145
        motorola)
 
9146
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9147
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9148
        ;;
 
9149
      esac
 
9150
      runpath_var='LD_RUN_PATH'
 
9151
      hardcode_shlibpath_var=no
 
9152
      ;;
 
9153
 
 
9154
    sysv4.3*)
 
9155
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9156
      hardcode_shlibpath_var=no
 
9157
      export_dynamic_flag_spec='-Bexport'
 
9158
      ;;
 
9159
 
 
9160
    sysv4*MP*)
 
9161
      if test -d /usr/nec; then
 
9162
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9163
        hardcode_shlibpath_var=no
 
9164
        runpath_var=LD_RUN_PATH
 
9165
        hardcode_runpath_var=yes
 
9166
        ld_shlibs=yes
 
9167
      fi
 
9168
      ;;
 
9169
 
 
9170
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9171
      no_undefined_flag='${wl}-z,text'
 
9172
      archive_cmds_need_lc=no
 
9173
      hardcode_shlibpath_var=no
 
9174
      runpath_var='LD_RUN_PATH'
 
9175
 
 
9176
      if test "$GCC" = yes; then
 
9177
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9178
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9179
      else
 
9180
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9181
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9182
      fi
 
9183
      ;;
 
9184
 
 
9185
    sysv5* | sco3.2v5* | sco5v6*)
 
9186
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9187
      # link with -lc, and that would cause any symbols used from libc to
 
9188
      # always be unresolved, which means just about no library would
 
9189
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9190
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9191
      # as -z defs.
 
9192
      no_undefined_flag='${wl}-z,text'
 
9193
      allow_undefined_flag='${wl}-z,nodefs'
 
9194
      archive_cmds_need_lc=no
 
9195
      hardcode_shlibpath_var=no
 
9196
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9197
      hardcode_libdir_separator=':'
 
9198
      link_all_deplibs=yes
 
9199
      export_dynamic_flag_spec='${wl}-Bexport'
 
9200
      runpath_var='LD_RUN_PATH'
 
9201
 
 
9202
      if test "$GCC" = yes; then
 
9203
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9204
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9205
      else
 
9206
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9207
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9208
      fi
 
9209
      ;;
 
9210
 
 
9211
    uts4*)
 
9212
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9213
      hardcode_libdir_flag_spec='-L$libdir'
 
9214
      hardcode_shlibpath_var=no
 
9215
      ;;
 
9216
 
 
9217
    *)
 
9218
      ld_shlibs=no
 
9219
      ;;
 
9220
    esac
 
9221
  fi
 
9222
 
 
9223
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9224
$as_echo "$ld_shlibs" >&6; }
 
9225
test "$ld_shlibs" = no && can_build_shared=no
 
9226
 
 
9227
#
 
9228
# Do we need to explicitly link libc?
 
9229
#
 
9230
case "x$archive_cmds_need_lc" in
 
9231
x|xyes)
 
9232
  # Assume -lc should be added
 
9233
  archive_cmds_need_lc=yes
 
9234
 
 
9235
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9236
    case $archive_cmds in
 
9237
    *'~'*)
 
9238
      # FIXME: we may have to deal with multi-command sequences.
 
9239
      ;;
 
9240
    '$CC '*)
 
9241
      # Test whether the compiler implicitly links with -lc since on some
 
9242
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9243
      # to ld, don't add -lc before -lgcc.
 
9244
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9245
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9246
      $rm conftest*
 
9247
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9248
 
 
9249
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9250
  (eval $ac_compile) 2>&5
 
9251
  ac_status=$?
 
9252
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9253
  (exit $ac_status); } 2>conftest.err; then
 
9254
        soname=conftest
 
9255
        lib=conftest
 
9256
        libobjs=conftest.$ac_objext
 
9257
        deplibs=
 
9258
        wl=$lt_prog_compiler_wl
 
9259
        pic_flag=$lt_prog_compiler_pic
 
9260
        compiler_flags=-v
 
9261
        linker_flags=-v
 
9262
        verstring=
 
9263
        output_objdir=.
 
9264
        libname=conftest
 
9265
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9266
        allow_undefined_flag=
 
9267
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9268
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9269
  ac_status=$?
 
9270
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9271
  (exit $ac_status); }
 
9272
        then
 
9273
          archive_cmds_need_lc=no
 
9274
        else
 
9275
          archive_cmds_need_lc=yes
 
9276
        fi
 
9277
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9278
      else
 
9279
        cat conftest.err 1>&5
 
9280
      fi
 
9281
      $rm conftest*
 
9282
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9283
$as_echo "$archive_cmds_need_lc" >&6; }
 
9284
      ;;
 
9285
    esac
 
9286
  fi
 
9287
  ;;
 
9288
esac
 
9289
 
 
9290
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9291
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9292
library_names_spec=
 
9293
libname_spec='lib$name'
 
9294
soname_spec=
 
9295
shrext_cmds=".so"
 
9296
postinstall_cmds=
 
9297
postuninstall_cmds=
 
9298
finish_cmds=
 
9299
finish_eval=
 
9300
shlibpath_var=
 
9301
shlibpath_overrides_runpath=unknown
 
9302
version_type=none
 
9303
dynamic_linker="$host_os ld.so"
 
9304
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9305
 
 
9306
if test "$GCC" = yes; then
 
9307
  case $host_os in
 
9308
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9309
    *) lt_awk_arg="/^libraries:/" ;;
 
9310
  esac
 
9311
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9312
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9313
    # if the path contains ";" then we assume it to be the separator
 
9314
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9315
    # assumed that no part of a normal pathname contains ";" but that should
 
9316
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9317
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9318
  else
 
9319
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9320
  fi
 
9321
  # Ok, now we have the path, separated by spaces, we can step through it
 
9322
  # and add multilib dir if necessary.
 
9323
  lt_tmp_lt_search_path_spec=
 
9324
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9325
  for lt_sys_path in $lt_search_path_spec; do
 
9326
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9327
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9328
    else
 
9329
      test -d "$lt_sys_path" && \
 
9330
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9331
    fi
 
9332
  done
 
9333
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9334
BEGIN {RS=" "; FS="/|\n";} {
 
9335
  lt_foo="";
 
9336
  lt_count=0;
 
9337
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9338
    if ($lt_i != "" && $lt_i != ".") {
 
9339
      if ($lt_i == "..") {
 
9340
        lt_count++;
 
9341
      } else {
 
9342
        if (lt_count == 0) {
 
9343
          lt_foo="/" $lt_i lt_foo;
 
9344
        } else {
 
9345
          lt_count--;
 
9346
        }
 
9347
      }
 
9348
    }
 
9349
  }
 
9350
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9351
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9352
}'`
 
9353
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9354
else
 
9355
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9356
fi
 
9357
need_lib_prefix=unknown
 
9358
hardcode_into_libs=no
 
9359
 
 
9360
# when you set need_version to no, make sure it does not cause -set_version
 
9361
# flags to be left without arguments
 
9362
need_version=unknown
 
9363
 
 
9364
case $host_os in
 
9365
aix3*)
 
9366
  version_type=linux
 
9367
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9368
  shlibpath_var=LIBPATH
 
9369
 
 
9370
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9371
  soname_spec='${libname}${release}${shared_ext}$major'
 
9372
  ;;
 
9373
 
 
9374
aix[4-9]*)
 
9375
  version_type=linux
 
9376
  need_lib_prefix=no
 
9377
  need_version=no
 
9378
  hardcode_into_libs=yes
 
9379
  if test "$host_cpu" = ia64; then
 
9380
    # AIX 5 supports IA64
 
9381
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9382
    shlibpath_var=LD_LIBRARY_PATH
 
9383
  else
 
9384
    # With GCC up to 2.95.x, collect2 would create an import file
 
9385
    # for dependence libraries.  The import file would start with
 
9386
    # the line `#! .'.  This would cause the generated library to
 
9387
    # depend on `.', always an invalid library.  This was fixed in
 
9388
    # development snapshots of GCC prior to 3.0.
 
9389
    case $host_os in
 
9390
      aix4 | aix4.[01] | aix4.[01].*)
 
9391
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9392
           echo ' yes '
 
9393
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9394
        :
 
9395
      else
 
9396
        can_build_shared=no
 
9397
      fi
 
9398
      ;;
 
9399
    esac
 
9400
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9401
    # soname into executable. Probably we can add versioning support to
 
9402
    # collect2, so additional links can be useful in future.
 
9403
    if test "$aix_use_runtimelinking" = yes; then
 
9404
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9405
      # instead of lib<name>.a to let people know that these are not
 
9406
      # typical AIX shared libraries.
 
9407
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9408
    else
 
9409
      # We preserve .a as extension for shared libraries through AIX4.2
 
9410
      # and later when we are not doing run time linking.
 
9411
      library_names_spec='${libname}${release}.a $libname.a'
 
9412
      soname_spec='${libname}${release}${shared_ext}$major'
 
9413
    fi
 
9414
    shlibpath_var=LIBPATH
 
9415
  fi
 
9416
  ;;
 
9417
 
 
9418
amigaos*)
 
9419
  library_names_spec='$libname.ixlibrary $libname.a'
 
9420
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9421
  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'
 
9422
  ;;
 
9423
 
 
9424
beos*)
 
9425
  library_names_spec='${libname}${shared_ext}'
 
9426
  dynamic_linker="$host_os ld.so"
 
9427
  shlibpath_var=LIBRARY_PATH
 
9428
  ;;
 
9429
 
 
9430
bsdi[45]*)
 
9431
  version_type=linux
 
9432
  need_version=no
 
9433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9434
  soname_spec='${libname}${release}${shared_ext}$major'
 
9435
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9436
  shlibpath_var=LD_LIBRARY_PATH
 
9437
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9438
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9439
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9440
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9441
  # libtool to hard-code these into programs
 
9442
  ;;
 
9443
 
 
9444
cygwin* | mingw* | pw32*)
 
9445
  version_type=windows
 
9446
  shrext_cmds=".dll"
 
9447
  need_version=no
 
9448
  need_lib_prefix=no
 
9449
 
 
9450
  case $GCC,$host_os in
 
9451
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9452
    library_names_spec='$libname.dll.a'
 
9453
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9454
    postinstall_cmds='base_file=`basename \${file}`~
 
9455
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9456
      dldir=$destdir/`dirname \$dlpath`~
 
9457
      test -d \$dldir || mkdir -p \$dldir~
 
9458
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9459
      chmod a+x \$dldir/$dlname'
 
9460
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9461
      dlpath=$dir/\$dldll~
 
9462
       $rm \$dlpath'
 
9463
    shlibpath_overrides_runpath=yes
 
9464
 
 
9465
    case $host_os in
 
9466
    cygwin*)
 
9467
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9468
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9469
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9470
      ;;
 
9471
    mingw*)
 
9472
      # MinGW DLLs use traditional 'lib' prefix
 
9473
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9474
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9475
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9476
        # It is most probably a Windows format PATH printed by
 
9477
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9478
        # path with ; separators, and with drive letters. We can handle the
 
9479
        # drive letters (cygwin fileutils understands them), so leave them,
 
9480
        # especially as we might pass files found there to a mingw objdump,
 
9481
        # which wouldn't understand a cygwinified path. Ahh.
 
9482
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9483
      else
 
9484
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9485
      fi
 
9486
      ;;
 
9487
    pw32*)
 
9488
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9489
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9490
      ;;
 
9491
    esac
 
9492
    ;;
 
9493
 
 
9494
  *)
 
9495
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9496
    ;;
 
9497
  esac
 
9498
  dynamic_linker='Win32 ld.exe'
 
9499
  # FIXME: first we should search . and the directory the executable is in
 
9500
  shlibpath_var=PATH
 
9501
  ;;
 
9502
 
 
9503
darwin* | rhapsody*)
 
9504
  dynamic_linker="$host_os dyld"
 
9505
  version_type=darwin
 
9506
  need_lib_prefix=no
 
9507
  need_version=no
 
9508
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9509
  soname_spec='${libname}${release}${major}$shared_ext'
 
9510
  shlibpath_overrides_runpath=yes
 
9511
  shlibpath_var=DYLD_LIBRARY_PATH
 
9512
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9513
 
 
9514
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9515
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9516
  ;;
 
9517
 
 
9518
dgux*)
 
9519
  version_type=linux
 
9520
  need_lib_prefix=no
 
9521
  need_version=no
 
9522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9523
  soname_spec='${libname}${release}${shared_ext}$major'
 
9524
  shlibpath_var=LD_LIBRARY_PATH
 
9525
  ;;
 
9526
 
 
9527
freebsd1*)
 
9528
  dynamic_linker=no
 
9529
  ;;
 
9530
 
 
9531
freebsd* | dragonfly*)
 
9532
  # DragonFly does not have aout.  When/if they implement a new
 
9533
  # versioning mechanism, adjust this.
 
9534
  if test -x /usr/bin/objformat; then
 
9535
    objformat=`/usr/bin/objformat`
 
9536
  else
 
9537
    case $host_os in
 
9538
    freebsd[123]*) objformat=aout ;;
 
9539
    *) objformat=elf ;;
 
9540
    esac
 
9541
  fi
 
9542
  version_type=freebsd-$objformat
 
9543
  case $version_type in
 
9544
    freebsd-elf*)
 
9545
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9546
      need_version=no
 
9547
      need_lib_prefix=no
 
9548
      ;;
 
9549
    freebsd-*)
 
9550
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9551
      need_version=yes
 
9552
      ;;
 
9553
  esac
 
9554
  shlibpath_var=LD_LIBRARY_PATH
 
9555
  case $host_os in
 
9556
  freebsd2*)
 
9557
    shlibpath_overrides_runpath=yes
 
9558
    ;;
 
9559
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9560
    shlibpath_overrides_runpath=yes
 
9561
    hardcode_into_libs=yes
 
9562
    ;;
 
9563
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9564
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9565
    shlibpath_overrides_runpath=no
 
9566
    hardcode_into_libs=yes
 
9567
    ;;
 
9568
  *) # from 4.6 on, and DragonFly
 
9569
    shlibpath_overrides_runpath=yes
 
9570
    hardcode_into_libs=yes
 
9571
    ;;
 
9572
  esac
 
9573
  ;;
 
9574
 
 
9575
gnu*)
 
9576
  version_type=linux
 
9577
  need_lib_prefix=no
 
9578
  need_version=no
 
9579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9580
  soname_spec='${libname}${release}${shared_ext}$major'
 
9581
  shlibpath_var=LD_LIBRARY_PATH
 
9582
  hardcode_into_libs=yes
 
9583
  ;;
 
9584
 
 
9585
hpux9* | hpux10* | hpux11*)
 
9586
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9587
  # link against other versions.
 
9588
  version_type=sunos
 
9589
  need_lib_prefix=no
 
9590
  need_version=no
 
9591
  case $host_cpu in
 
9592
  ia64*)
 
9593
    shrext_cmds='.so'
 
9594
    hardcode_into_libs=yes
 
9595
    dynamic_linker="$host_os dld.so"
 
9596
    shlibpath_var=LD_LIBRARY_PATH
 
9597
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9598
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9599
    soname_spec='${libname}${release}${shared_ext}$major'
 
9600
    if test "X$HPUX_IA64_MODE" = X32; then
 
9601
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9602
    else
 
9603
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9604
    fi
 
9605
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9606
    ;;
 
9607
   hppa*64*)
 
9608
     shrext_cmds='.sl'
 
9609
     hardcode_into_libs=yes
 
9610
     dynamic_linker="$host_os dld.sl"
 
9611
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9612
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9613
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9614
     soname_spec='${libname}${release}${shared_ext}$major'
 
9615
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9616
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9617
     ;;
 
9618
   *)
 
9619
    shrext_cmds='.sl'
 
9620
    dynamic_linker="$host_os dld.sl"
 
9621
    shlibpath_var=SHLIB_PATH
 
9622
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9623
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9624
    soname_spec='${libname}${release}${shared_ext}$major'
 
9625
    ;;
 
9626
  esac
 
9627
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9628
  postinstall_cmds='chmod 555 $lib'
 
9629
  ;;
 
9630
 
 
9631
interix[3-9]*)
 
9632
  version_type=linux
 
9633
  need_lib_prefix=no
 
9634
  need_version=no
 
9635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9636
  soname_spec='${libname}${release}${shared_ext}$major'
 
9637
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9638
  shlibpath_var=LD_LIBRARY_PATH
 
9639
  shlibpath_overrides_runpath=no
 
9640
  hardcode_into_libs=yes
 
9641
  ;;
 
9642
 
 
9643
irix5* | irix6* | nonstopux*)
 
9644
  case $host_os in
 
9645
    nonstopux*) version_type=nonstopux ;;
 
9646
    *)
 
9647
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9648
                version_type=linux
 
9649
        else
 
9650
                version_type=irix
 
9651
        fi ;;
 
9652
  esac
 
9653
  need_lib_prefix=no
 
9654
  need_version=no
 
9655
  soname_spec='${libname}${release}${shared_ext}$major'
 
9656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9657
  case $host_os in
 
9658
  irix5* | nonstopux*)
 
9659
    libsuff= shlibsuff=
 
9660
    ;;
 
9661
  *)
 
9662
    case $LD in # libtool.m4 will add one of these switches to LD
 
9663
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9664
      libsuff= shlibsuff= libmagic=32-bit;;
 
9665
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9666
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9667
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9668
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9669
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9670
    esac
 
9671
    ;;
 
9672
  esac
 
9673
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9674
  shlibpath_overrides_runpath=no
 
9675
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9676
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9677
  hardcode_into_libs=yes
 
9678
  ;;
 
9679
 
 
9680
# No shared lib support for Linux oldld, aout, or coff.
 
9681
linux*oldld* | linux*aout* | linux*coff*)
 
9682
  dynamic_linker=no
 
9683
  ;;
 
9684
 
 
9685
# This must be Linux ELF.
 
9686
linux* | k*bsd*-gnu)
 
9687
  version_type=linux
 
9688
  need_lib_prefix=no
 
9689
  need_version=no
 
9690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9691
  soname_spec='${libname}${release}${shared_ext}$major'
 
9692
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9693
  shlibpath_var=LD_LIBRARY_PATH
 
9694
  shlibpath_overrides_runpath=no
 
9695
  # This implies no fast_install, which is unacceptable.
 
9696
  # Some rework will be needed to allow for fast_install
 
9697
  # before this can be enabled.
 
9698
  hardcode_into_libs=yes
 
9699
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9700
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9701
 
 
9702
  # Append ld.so.conf contents to the search path
 
9703
  if test -f /etc/ld.so.conf; then
 
9704
    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' ' '`
 
9705
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9706
  fi
 
9707
 
 
9708
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9709
  # powerpc, because MkLinux only supported shared libraries with the
 
9710
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9711
  # most powerpc-linux boxes support dynamic linking these days and
 
9712
  # people can always --disable-shared, the test was removed, and we
 
9713
  # assume the GNU/Linux dynamic linker is in use.
 
9714
  dynamic_linker='GNU/Linux ld.so'
 
9715
  ;;
 
9716
 
 
9717
netbsd*)
 
9718
  version_type=sunos
 
9719
  need_lib_prefix=no
 
9720
  need_version=no
 
9721
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9722
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9723
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9724
    dynamic_linker='NetBSD (a.out) ld.so'
 
9725
  else
 
9726
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9727
    soname_spec='${libname}${release}${shared_ext}$major'
 
9728
    dynamic_linker='NetBSD ld.elf_so'
 
9729
  fi
 
9730
  shlibpath_var=LD_LIBRARY_PATH
 
9731
  shlibpath_overrides_runpath=yes
 
9732
  hardcode_into_libs=yes
 
9733
  ;;
 
9734
 
 
9735
newsos6)
 
9736
  version_type=linux
 
9737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9738
  shlibpath_var=LD_LIBRARY_PATH
 
9739
  shlibpath_overrides_runpath=yes
 
9740
  ;;
 
9741
 
 
9742
nto-qnx*)
 
9743
  version_type=linux
 
9744
  need_lib_prefix=no
 
9745
  need_version=no
 
9746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9747
  soname_spec='${libname}${release}${shared_ext}$major'
 
9748
  shlibpath_var=LD_LIBRARY_PATH
 
9749
  shlibpath_overrides_runpath=yes
 
9750
  ;;
 
9751
 
 
9752
openbsd*)
 
9753
  version_type=sunos
 
9754
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9755
  need_lib_prefix=no
 
9756
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9757
  case $host_os in
 
9758
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9759
    *)                         need_version=no  ;;
 
9760
  esac
 
9761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9762
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9763
  shlibpath_var=LD_LIBRARY_PATH
 
9764
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9765
    case $host_os in
 
9766
      openbsd2.[89] | openbsd2.[89].*)
 
9767
        shlibpath_overrides_runpath=no
 
9768
        ;;
 
9769
      *)
 
9770
        shlibpath_overrides_runpath=yes
 
9771
        ;;
 
9772
      esac
 
9773
  else
 
9774
    shlibpath_overrides_runpath=yes
 
9775
  fi
 
9776
  ;;
 
9777
 
 
9778
os2*)
 
9779
  libname_spec='$name'
 
9780
  shrext_cmds=".dll"
 
9781
  need_lib_prefix=no
 
9782
  library_names_spec='$libname${shared_ext} $libname.a'
 
9783
  dynamic_linker='OS/2 ld.exe'
 
9784
  shlibpath_var=LIBPATH
 
9785
  ;;
 
9786
 
 
9787
osf3* | osf4* | osf5*)
 
9788
  version_type=osf
 
9789
  need_lib_prefix=no
 
9790
  need_version=no
 
9791
  soname_spec='${libname}${release}${shared_ext}$major'
 
9792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9793
  shlibpath_var=LD_LIBRARY_PATH
 
9794
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9795
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9796
  ;;
 
9797
 
 
9798
rdos*)
 
9799
  dynamic_linker=no
 
9800
  ;;
 
9801
 
 
9802
solaris*)
 
9803
  version_type=linux
 
9804
  need_lib_prefix=no
 
9805
  need_version=no
 
9806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9807
  soname_spec='${libname}${release}${shared_ext}$major'
 
9808
  shlibpath_var=LD_LIBRARY_PATH
 
9809
  shlibpath_overrides_runpath=yes
 
9810
  hardcode_into_libs=yes
 
9811
  # ldd complains unless libraries are executable
 
9812
  postinstall_cmds='chmod +x $lib'
 
9813
  ;;
 
9814
 
 
9815
sunos4*)
 
9816
  version_type=sunos
 
9817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9818
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9819
  shlibpath_var=LD_LIBRARY_PATH
 
9820
  shlibpath_overrides_runpath=yes
 
9821
  if test "$with_gnu_ld" = yes; then
 
9822
    need_lib_prefix=no
 
9823
  fi
 
9824
  need_version=yes
 
9825
  ;;
 
9826
 
 
9827
sysv4 | sysv4.3*)
 
9828
  version_type=linux
 
9829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9830
  soname_spec='${libname}${release}${shared_ext}$major'
 
9831
  shlibpath_var=LD_LIBRARY_PATH
 
9832
  case $host_vendor in
 
9833
    sni)
 
9834
      shlibpath_overrides_runpath=no
 
9835
      need_lib_prefix=no
 
9836
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9837
      runpath_var=LD_RUN_PATH
 
9838
      ;;
 
9839
    siemens)
 
9840
      need_lib_prefix=no
 
9841
      ;;
 
9842
    motorola)
 
9843
      need_lib_prefix=no
 
9844
      need_version=no
 
9845
      shlibpath_overrides_runpath=no
 
9846
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9847
      ;;
 
9848
  esac
 
9849
  ;;
 
9850
 
 
9851
sysv4*MP*)
 
9852
  if test -d /usr/nec ;then
 
9853
    version_type=linux
 
9854
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9855
    soname_spec='$libname${shared_ext}.$major'
 
9856
    shlibpath_var=LD_LIBRARY_PATH
 
9857
  fi
 
9858
  ;;
 
9859
 
 
9860
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9861
  version_type=freebsd-elf
 
9862
  need_lib_prefix=no
 
9863
  need_version=no
 
9864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9865
  soname_spec='${libname}${release}${shared_ext}$major'
 
9866
  shlibpath_var=LD_LIBRARY_PATH
 
9867
  hardcode_into_libs=yes
 
9868
  if test "$with_gnu_ld" = yes; then
 
9869
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9870
    shlibpath_overrides_runpath=no
 
9871
  else
 
9872
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9873
    shlibpath_overrides_runpath=yes
 
9874
    case $host_os in
 
9875
      sco3.2v5*)
 
9876
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9877
        ;;
 
9878
    esac
 
9879
  fi
 
9880
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9881
  ;;
 
9882
 
 
9883
uts4*)
 
9884
  version_type=linux
 
9885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9886
  soname_spec='${libname}${release}${shared_ext}$major'
 
9887
  shlibpath_var=LD_LIBRARY_PATH
 
9888
  ;;
 
9889
 
 
9890
*)
 
9891
  dynamic_linker=no
 
9892
  ;;
 
9893
esac
 
9894
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9895
$as_echo "$dynamic_linker" >&6; }
 
9896
test "$dynamic_linker" = no && can_build_shared=no
 
9897
 
 
9898
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9899
  $as_echo_n "(cached) " >&6
 
9900
else
 
9901
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9902
fi
 
9903
 
 
9904
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9905
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9906
  $as_echo_n "(cached) " >&6
 
9907
else
 
9908
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9909
fi
 
9910
 
 
9911
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9912
 
 
9913
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9914
if test "$GCC" = yes; then
 
9915
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9916
fi
 
9917
 
 
9918
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9919
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9920
hardcode_action=
 
9921
if test -n "$hardcode_libdir_flag_spec" || \
 
9922
   test -n "$runpath_var" || \
 
9923
   test "X$hardcode_automatic" = "Xyes" ; then
 
9924
 
 
9925
  # We can hardcode non-existant directories.
 
9926
  if test "$hardcode_direct" != no &&
 
9927
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9928
     # have to relink, otherwise we might link with an installed library
 
9929
     # when we should be linking with a yet-to-be-installed one
 
9930
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9931
     test "$hardcode_minus_L" != no; then
 
9932
    # Linking always hardcodes the temporary library directory.
 
9933
    hardcode_action=relink
 
9934
  else
 
9935
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9936
    hardcode_action=immediate
 
9937
  fi
 
9938
else
 
9939
  # We cannot hardcode anything, or else we can only hardcode existing
 
9940
  # directories.
 
9941
  hardcode_action=unsupported
 
9942
fi
 
9943
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9944
$as_echo "$hardcode_action" >&6; }
 
9945
 
 
9946
if test "$hardcode_action" = relink; then
 
9947
  # Fast installation is not supported
 
9948
  enable_fast_install=no
 
9949
elif test "$shlibpath_overrides_runpath" = yes ||
 
9950
     test "$enable_shared" = no; then
 
9951
  # Fast installation is not necessary
 
9952
  enable_fast_install=needless
 
9953
fi
 
9954
 
 
9955
striplib=
 
9956
old_striplib=
 
9957
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9958
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
9959
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9960
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9961
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9962
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9963
$as_echo "yes" >&6; }
 
9964
else
 
9965
# FIXME - insert some real tests, host_os isn't really good enough
 
9966
  case $host_os in
 
9967
   darwin*)
 
9968
       if test -n "$STRIP" ; then
 
9969
         striplib="$STRIP -x"
 
9970
         old_striplib="$STRIP -S"
 
9971
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9972
$as_echo "yes" >&6; }
 
9973
       else
 
9974
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9975
$as_echo "no" >&6; }
 
9976
fi
 
9977
       ;;
 
9978
   *)
 
9979
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9980
$as_echo "no" >&6; }
 
9981
    ;;
 
9982
  esac
 
9983
fi
 
9984
 
 
9985
if test "x$enable_dlopen" != xyes; then
 
9986
  enable_dlopen=unknown
 
9987
  enable_dlopen_self=unknown
 
9988
  enable_dlopen_self_static=unknown
 
9989
else
 
9990
  lt_cv_dlopen=no
 
9991
  lt_cv_dlopen_libs=
 
9992
 
 
9993
  case $host_os in
 
9994
  beos*)
 
9995
    lt_cv_dlopen="load_add_on"
 
9996
    lt_cv_dlopen_libs=
 
9997
    lt_cv_dlopen_self=yes
 
9998
    ;;
 
9999
 
 
10000
  mingw* | pw32*)
 
10001
    lt_cv_dlopen="LoadLibrary"
 
10002
    lt_cv_dlopen_libs=
 
10003
   ;;
 
10004
 
 
10005
  cygwin*)
 
10006
    lt_cv_dlopen="dlopen"
 
10007
    lt_cv_dlopen_libs=
 
10008
   ;;
 
10009
 
 
10010
  darwin*)
 
10011
  # if libdl is installed we need to link against it
 
10012
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10013
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10014
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10015
  $as_echo_n "(cached) " >&6
 
10016
else
 
10017
  ac_check_lib_save_LIBS=$LIBS
 
10018
LIBS="-ldl  $LIBS"
 
10019
cat >conftest.$ac_ext <<_ACEOF
 
10020
/* confdefs.h.  */
 
10021
_ACEOF
 
10022
cat confdefs.h >>conftest.$ac_ext
 
10023
cat >>conftest.$ac_ext <<_ACEOF
 
10024
/* end confdefs.h.  */
 
10025
 
 
10026
/* Override any GCC internal prototype to avoid an error.
 
10027
   Use char because int might match the return type of a GCC
 
10028
   builtin and then its argument prototype would still apply.  */
 
10029
#ifdef __cplusplus
 
10030
extern "C"
 
10031
#endif
 
10032
char dlopen ();
 
10033
int
 
10034
main ()
 
10035
{
 
10036
return dlopen ();
 
10037
  ;
 
10038
  return 0;
 
10039
}
 
10040
_ACEOF
 
10041
rm -f conftest.$ac_objext conftest$ac_exeext
 
10042
if { (ac_try="$ac_link"
 
10043
case "(($ac_try" in
 
10044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10045
  *) ac_try_echo=$ac_try;;
 
10046
esac
 
10047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10048
$as_echo "$ac_try_echo") >&5
 
10049
  (eval "$ac_link") 2>conftest.er1
 
10050
  ac_status=$?
 
10051
  grep -v '^ *+' conftest.er1 >conftest.err
 
10052
  rm -f conftest.er1
 
10053
  cat conftest.err >&5
 
10054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10055
  (exit $ac_status); } && {
 
10056
         test -z "$ac_c_werror_flag" ||
 
10057
         test ! -s conftest.err
 
10058
       } && test -s conftest$ac_exeext && {
 
10059
         test "$cross_compiling" = yes ||
 
10060
         $as_test_x conftest$ac_exeext
 
10061
       }; then
 
10062
  ac_cv_lib_dl_dlopen=yes
 
10063
else
 
10064
  $as_echo "$as_me: failed program was:" >&5
 
10065
sed 's/^/| /' conftest.$ac_ext >&5
 
10066
 
 
10067
        ac_cv_lib_dl_dlopen=no
 
10068
fi
 
10069
 
 
10070
rm -rf conftest.dSYM
 
10071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10072
      conftest$ac_exeext conftest.$ac_ext
 
10073
LIBS=$ac_check_lib_save_LIBS
 
10074
fi
 
10075
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10076
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10077
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10078
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10079
else
 
10080
 
 
10081
    lt_cv_dlopen="dyld"
 
10082
    lt_cv_dlopen_libs=
 
10083
    lt_cv_dlopen_self=yes
 
10084
 
 
10085
fi
 
10086
 
 
10087
   ;;
 
10088
 
 
10089
  *)
 
10090
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10091
$as_echo_n "checking for shl_load... " >&6; }
 
10092
if test "${ac_cv_func_shl_load+set}" = set; then
 
10093
  $as_echo_n "(cached) " >&6
 
10094
else
 
10095
  cat >conftest.$ac_ext <<_ACEOF
 
10096
/* confdefs.h.  */
 
10097
_ACEOF
 
10098
cat confdefs.h >>conftest.$ac_ext
 
10099
cat >>conftest.$ac_ext <<_ACEOF
 
10100
/* end confdefs.h.  */
 
10101
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10102
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10103
#define shl_load innocuous_shl_load
 
10104
 
 
10105
/* System header to define __stub macros and hopefully few prototypes,
 
10106
    which can conflict with char shl_load (); below.
 
10107
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10108
    <limits.h> exists even on freestanding compilers.  */
 
10109
 
 
10110
#ifdef __STDC__
 
10111
# include <limits.h>
 
10112
#else
 
10113
# include <assert.h>
 
10114
#endif
 
10115
 
 
10116
#undef shl_load
 
10117
 
 
10118
/* Override any GCC internal prototype to avoid an error.
 
10119
   Use char because int might match the return type of a GCC
 
10120
   builtin and then its argument prototype would still apply.  */
 
10121
#ifdef __cplusplus
 
10122
extern "C"
 
10123
#endif
 
10124
char shl_load ();
 
10125
/* The GNU C library defines this for functions which it implements
 
10126
    to always fail with ENOSYS.  Some functions are actually named
 
10127
    something starting with __ and the normal name is an alias.  */
 
10128
#if defined __stub_shl_load || defined __stub___shl_load
 
10129
choke me
 
10130
#endif
 
10131
 
 
10132
int
 
10133
main ()
 
10134
{
 
10135
return shl_load ();
 
10136
  ;
 
10137
  return 0;
 
10138
}
 
10139
_ACEOF
 
10140
rm -f conftest.$ac_objext conftest$ac_exeext
 
10141
if { (ac_try="$ac_link"
 
10142
case "(($ac_try" in
 
10143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10144
  *) ac_try_echo=$ac_try;;
 
10145
esac
 
10146
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10147
$as_echo "$ac_try_echo") >&5
 
10148
  (eval "$ac_link") 2>conftest.er1
 
10149
  ac_status=$?
 
10150
  grep -v '^ *+' conftest.er1 >conftest.err
 
10151
  rm -f conftest.er1
 
10152
  cat conftest.err >&5
 
10153
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10154
  (exit $ac_status); } && {
 
10155
         test -z "$ac_c_werror_flag" ||
 
10156
         test ! -s conftest.err
 
10157
       } && test -s conftest$ac_exeext && {
 
10158
         test "$cross_compiling" = yes ||
 
10159
         $as_test_x conftest$ac_exeext
 
10160
       }; then
 
10161
  ac_cv_func_shl_load=yes
 
10162
else
 
10163
  $as_echo "$as_me: failed program was:" >&5
 
10164
sed 's/^/| /' conftest.$ac_ext >&5
 
10165
 
 
10166
        ac_cv_func_shl_load=no
 
10167
fi
 
10168
 
 
10169
rm -rf conftest.dSYM
 
10170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10171
      conftest$ac_exeext conftest.$ac_ext
 
10172
fi
 
10173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10174
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10175
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10176
  lt_cv_dlopen="shl_load"
 
10177
else
 
10178
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10179
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10180
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10181
  $as_echo_n "(cached) " >&6
 
10182
else
 
10183
  ac_check_lib_save_LIBS=$LIBS
 
10184
LIBS="-ldld  $LIBS"
 
10185
cat >conftest.$ac_ext <<_ACEOF
 
10186
/* confdefs.h.  */
 
10187
_ACEOF
 
10188
cat confdefs.h >>conftest.$ac_ext
 
10189
cat >>conftest.$ac_ext <<_ACEOF
 
10190
/* end confdefs.h.  */
 
10191
 
 
10192
/* Override any GCC internal prototype to avoid an error.
 
10193
   Use char because int might match the return type of a GCC
 
10194
   builtin and then its argument prototype would still apply.  */
 
10195
#ifdef __cplusplus
 
10196
extern "C"
 
10197
#endif
 
10198
char shl_load ();
 
10199
int
 
10200
main ()
 
10201
{
 
10202
return shl_load ();
 
10203
  ;
 
10204
  return 0;
 
10205
}
 
10206
_ACEOF
 
10207
rm -f conftest.$ac_objext conftest$ac_exeext
 
10208
if { (ac_try="$ac_link"
 
10209
case "(($ac_try" in
 
10210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10211
  *) ac_try_echo=$ac_try;;
 
10212
esac
 
10213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10214
$as_echo "$ac_try_echo") >&5
 
10215
  (eval "$ac_link") 2>conftest.er1
 
10216
  ac_status=$?
 
10217
  grep -v '^ *+' conftest.er1 >conftest.err
 
10218
  rm -f conftest.er1
 
10219
  cat conftest.err >&5
 
10220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10221
  (exit $ac_status); } && {
 
10222
         test -z "$ac_c_werror_flag" ||
 
10223
         test ! -s conftest.err
 
10224
       } && test -s conftest$ac_exeext && {
 
10225
         test "$cross_compiling" = yes ||
 
10226
         $as_test_x conftest$ac_exeext
 
10227
       }; then
 
10228
  ac_cv_lib_dld_shl_load=yes
 
10229
else
 
10230
  $as_echo "$as_me: failed program was:" >&5
 
10231
sed 's/^/| /' conftest.$ac_ext >&5
 
10232
 
 
10233
        ac_cv_lib_dld_shl_load=no
 
10234
fi
 
10235
 
 
10236
rm -rf conftest.dSYM
 
10237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10238
      conftest$ac_exeext conftest.$ac_ext
 
10239
LIBS=$ac_check_lib_save_LIBS
 
10240
fi
 
10241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10242
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10243
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10244
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10245
else
 
10246
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10247
$as_echo_n "checking for dlopen... " >&6; }
 
10248
if test "${ac_cv_func_dlopen+set}" = set; then
 
10249
  $as_echo_n "(cached) " >&6
 
10250
else
 
10251
  cat >conftest.$ac_ext <<_ACEOF
 
10252
/* confdefs.h.  */
 
10253
_ACEOF
 
10254
cat confdefs.h >>conftest.$ac_ext
 
10255
cat >>conftest.$ac_ext <<_ACEOF
 
10256
/* end confdefs.h.  */
 
10257
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10258
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10259
#define dlopen innocuous_dlopen
 
10260
 
 
10261
/* System header to define __stub macros and hopefully few prototypes,
 
10262
    which can conflict with char dlopen (); below.
 
10263
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10264
    <limits.h> exists even on freestanding compilers.  */
 
10265
 
 
10266
#ifdef __STDC__
 
10267
# include <limits.h>
 
10268
#else
 
10269
# include <assert.h>
 
10270
#endif
 
10271
 
 
10272
#undef dlopen
 
10273
 
 
10274
/* Override any GCC internal prototype to avoid an error.
 
10275
   Use char because int might match the return type of a GCC
 
10276
   builtin and then its argument prototype would still apply.  */
 
10277
#ifdef __cplusplus
 
10278
extern "C"
 
10279
#endif
 
10280
char dlopen ();
 
10281
/* The GNU C library defines this for functions which it implements
 
10282
    to always fail with ENOSYS.  Some functions are actually named
 
10283
    something starting with __ and the normal name is an alias.  */
 
10284
#if defined __stub_dlopen || defined __stub___dlopen
 
10285
choke me
 
10286
#endif
 
10287
 
 
10288
int
 
10289
main ()
 
10290
{
 
10291
return dlopen ();
 
10292
  ;
 
10293
  return 0;
 
10294
}
 
10295
_ACEOF
 
10296
rm -f conftest.$ac_objext conftest$ac_exeext
 
10297
if { (ac_try="$ac_link"
 
10298
case "(($ac_try" in
 
10299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10300
  *) ac_try_echo=$ac_try;;
 
10301
esac
 
10302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10303
$as_echo "$ac_try_echo") >&5
 
10304
  (eval "$ac_link") 2>conftest.er1
 
10305
  ac_status=$?
 
10306
  grep -v '^ *+' conftest.er1 >conftest.err
 
10307
  rm -f conftest.er1
 
10308
  cat conftest.err >&5
 
10309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10310
  (exit $ac_status); } && {
 
10311
         test -z "$ac_c_werror_flag" ||
 
10312
         test ! -s conftest.err
 
10313
       } && test -s conftest$ac_exeext && {
 
10314
         test "$cross_compiling" = yes ||
 
10315
         $as_test_x conftest$ac_exeext
 
10316
       }; then
 
10317
  ac_cv_func_dlopen=yes
 
10318
else
 
10319
  $as_echo "$as_me: failed program was:" >&5
 
10320
sed 's/^/| /' conftest.$ac_ext >&5
 
10321
 
 
10322
        ac_cv_func_dlopen=no
 
10323
fi
 
10324
 
 
10325
rm -rf conftest.dSYM
 
10326
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10327
      conftest$ac_exeext conftest.$ac_ext
 
10328
fi
 
10329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10330
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10331
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10332
  lt_cv_dlopen="dlopen"
 
10333
else
 
10334
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10335
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10336
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10337
  $as_echo_n "(cached) " >&6
 
10338
else
 
10339
  ac_check_lib_save_LIBS=$LIBS
 
10340
LIBS="-ldl  $LIBS"
 
10341
cat >conftest.$ac_ext <<_ACEOF
 
10342
/* confdefs.h.  */
 
10343
_ACEOF
 
10344
cat confdefs.h >>conftest.$ac_ext
 
10345
cat >>conftest.$ac_ext <<_ACEOF
 
10346
/* end confdefs.h.  */
 
10347
 
 
10348
/* Override any GCC internal prototype to avoid an error.
 
10349
   Use char because int might match the return type of a GCC
 
10350
   builtin and then its argument prototype would still apply.  */
 
10351
#ifdef __cplusplus
 
10352
extern "C"
 
10353
#endif
 
10354
char dlopen ();
 
10355
int
 
10356
main ()
 
10357
{
 
10358
return dlopen ();
 
10359
  ;
 
10360
  return 0;
 
10361
}
 
10362
_ACEOF
 
10363
rm -f conftest.$ac_objext conftest$ac_exeext
 
10364
if { (ac_try="$ac_link"
 
10365
case "(($ac_try" in
 
10366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10367
  *) ac_try_echo=$ac_try;;
 
10368
esac
 
10369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10370
$as_echo "$ac_try_echo") >&5
 
10371
  (eval "$ac_link") 2>conftest.er1
 
10372
  ac_status=$?
 
10373
  grep -v '^ *+' conftest.er1 >conftest.err
 
10374
  rm -f conftest.er1
 
10375
  cat conftest.err >&5
 
10376
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10377
  (exit $ac_status); } && {
 
10378
         test -z "$ac_c_werror_flag" ||
 
10379
         test ! -s conftest.err
 
10380
       } && test -s conftest$ac_exeext && {
 
10381
         test "$cross_compiling" = yes ||
 
10382
         $as_test_x conftest$ac_exeext
 
10383
       }; then
 
10384
  ac_cv_lib_dl_dlopen=yes
 
10385
else
 
10386
  $as_echo "$as_me: failed program was:" >&5
 
10387
sed 's/^/| /' conftest.$ac_ext >&5
 
10388
 
 
10389
        ac_cv_lib_dl_dlopen=no
 
10390
fi
 
10391
 
 
10392
rm -rf conftest.dSYM
 
10393
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10394
      conftest$ac_exeext conftest.$ac_ext
 
10395
LIBS=$ac_check_lib_save_LIBS
 
10396
fi
 
10397
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10398
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10399
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10400
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10401
else
 
10402
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10403
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10404
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10405
  $as_echo_n "(cached) " >&6
 
10406
else
 
10407
  ac_check_lib_save_LIBS=$LIBS
 
10408
LIBS="-lsvld  $LIBS"
 
10409
cat >conftest.$ac_ext <<_ACEOF
 
10410
/* confdefs.h.  */
 
10411
_ACEOF
 
10412
cat confdefs.h >>conftest.$ac_ext
 
10413
cat >>conftest.$ac_ext <<_ACEOF
 
10414
/* end confdefs.h.  */
 
10415
 
 
10416
/* Override any GCC internal prototype to avoid an error.
 
10417
   Use char because int might match the return type of a GCC
 
10418
   builtin and then its argument prototype would still apply.  */
 
10419
#ifdef __cplusplus
 
10420
extern "C"
 
10421
#endif
 
10422
char dlopen ();
 
10423
int
 
10424
main ()
 
10425
{
 
10426
return dlopen ();
 
10427
  ;
 
10428
  return 0;
 
10429
}
 
10430
_ACEOF
 
10431
rm -f conftest.$ac_objext conftest$ac_exeext
 
10432
if { (ac_try="$ac_link"
 
10433
case "(($ac_try" in
 
10434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10435
  *) ac_try_echo=$ac_try;;
 
10436
esac
 
10437
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10438
$as_echo "$ac_try_echo") >&5
 
10439
  (eval "$ac_link") 2>conftest.er1
 
10440
  ac_status=$?
 
10441
  grep -v '^ *+' conftest.er1 >conftest.err
 
10442
  rm -f conftest.er1
 
10443
  cat conftest.err >&5
 
10444
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10445
  (exit $ac_status); } && {
 
10446
         test -z "$ac_c_werror_flag" ||
 
10447
         test ! -s conftest.err
 
10448
       } && test -s conftest$ac_exeext && {
 
10449
         test "$cross_compiling" = yes ||
 
10450
         $as_test_x conftest$ac_exeext
 
10451
       }; then
 
10452
  ac_cv_lib_svld_dlopen=yes
 
10453
else
 
10454
  $as_echo "$as_me: failed program was:" >&5
 
10455
sed 's/^/| /' conftest.$ac_ext >&5
 
10456
 
 
10457
        ac_cv_lib_svld_dlopen=no
 
10458
fi
 
10459
 
 
10460
rm -rf conftest.dSYM
 
10461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10462
      conftest$ac_exeext conftest.$ac_ext
 
10463
LIBS=$ac_check_lib_save_LIBS
 
10464
fi
 
10465
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10466
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10467
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10468
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10469
else
 
10470
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10471
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10472
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10473
  $as_echo_n "(cached) " >&6
 
10474
else
 
10475
  ac_check_lib_save_LIBS=$LIBS
 
10476
LIBS="-ldld  $LIBS"
 
10477
cat >conftest.$ac_ext <<_ACEOF
 
10478
/* confdefs.h.  */
 
10479
_ACEOF
 
10480
cat confdefs.h >>conftest.$ac_ext
 
10481
cat >>conftest.$ac_ext <<_ACEOF
 
10482
/* end confdefs.h.  */
 
10483
 
 
10484
/* Override any GCC internal prototype to avoid an error.
 
10485
   Use char because int might match the return type of a GCC
 
10486
   builtin and then its argument prototype would still apply.  */
 
10487
#ifdef __cplusplus
 
10488
extern "C"
 
10489
#endif
 
10490
char dld_link ();
 
10491
int
 
10492
main ()
 
10493
{
 
10494
return dld_link ();
 
10495
  ;
 
10496
  return 0;
 
10497
}
 
10498
_ACEOF
 
10499
rm -f conftest.$ac_objext conftest$ac_exeext
 
10500
if { (ac_try="$ac_link"
 
10501
case "(($ac_try" in
 
10502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10503
  *) ac_try_echo=$ac_try;;
 
10504
esac
 
10505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10506
$as_echo "$ac_try_echo") >&5
 
10507
  (eval "$ac_link") 2>conftest.er1
 
10508
  ac_status=$?
 
10509
  grep -v '^ *+' conftest.er1 >conftest.err
 
10510
  rm -f conftest.er1
 
10511
  cat conftest.err >&5
 
10512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10513
  (exit $ac_status); } && {
 
10514
         test -z "$ac_c_werror_flag" ||
 
10515
         test ! -s conftest.err
 
10516
       } && test -s conftest$ac_exeext && {
 
10517
         test "$cross_compiling" = yes ||
 
10518
         $as_test_x conftest$ac_exeext
 
10519
       }; then
 
10520
  ac_cv_lib_dld_dld_link=yes
 
10521
else
 
10522
  $as_echo "$as_me: failed program was:" >&5
 
10523
sed 's/^/| /' conftest.$ac_ext >&5
 
10524
 
 
10525
        ac_cv_lib_dld_dld_link=no
 
10526
fi
 
10527
 
 
10528
rm -rf conftest.dSYM
 
10529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10530
      conftest$ac_exeext conftest.$ac_ext
 
10531
LIBS=$ac_check_lib_save_LIBS
 
10532
fi
 
10533
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10534
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10535
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10536
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10537
fi
 
10538
 
 
10539
 
 
10540
fi
 
10541
 
 
10542
 
 
10543
fi
 
10544
 
 
10545
 
 
10546
fi
 
10547
 
 
10548
 
 
10549
fi
 
10550
 
 
10551
 
 
10552
fi
 
10553
 
 
10554
    ;;
 
10555
  esac
 
10556
 
 
10557
  if test "x$lt_cv_dlopen" != xno; then
 
10558
    enable_dlopen=yes
 
10559
  else
 
10560
    enable_dlopen=no
 
10561
  fi
 
10562
 
 
10563
  case $lt_cv_dlopen in
 
10564
  dlopen)
 
10565
    save_CPPFLAGS="$CPPFLAGS"
 
10566
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10567
 
 
10568
    save_LDFLAGS="$LDFLAGS"
 
10569
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10570
 
 
10571
    save_LIBS="$LIBS"
 
10572
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10573
 
 
10574
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10575
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10576
if test "${lt_cv_dlopen_self+set}" = set; then
 
10577
  $as_echo_n "(cached) " >&6
 
10578
else
 
10579
          if test "$cross_compiling" = yes; then :
 
10580
  lt_cv_dlopen_self=cross
 
10581
else
 
10582
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10583
  lt_status=$lt_dlunknown
 
10584
  cat > conftest.$ac_ext <<EOF
 
10585
#line 10585 "configure"
 
10586
#include "confdefs.h"
 
10587
 
 
10588
#if HAVE_DLFCN_H
 
10589
#include <dlfcn.h>
 
10590
#endif
 
10591
 
 
10592
#include <stdio.h>
 
10593
 
 
10594
#ifdef RTLD_GLOBAL
 
10595
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10596
#else
 
10597
#  ifdef DL_GLOBAL
 
10598
#    define LT_DLGLOBAL         DL_GLOBAL
 
10599
#  else
 
10600
#    define LT_DLGLOBAL         0
 
10601
#  endif
 
10602
#endif
 
10603
 
 
10604
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10605
   find out it does not work in some platform. */
 
10606
#ifndef LT_DLLAZY_OR_NOW
 
10607
#  ifdef RTLD_LAZY
 
10608
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10609
#  else
 
10610
#    ifdef DL_LAZY
 
10611
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10612
#    else
 
10613
#      ifdef RTLD_NOW
 
10614
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10615
#      else
 
10616
#        ifdef DL_NOW
 
10617
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10618
#        else
 
10619
#          define LT_DLLAZY_OR_NOW      0
 
10620
#        endif
 
10621
#      endif
 
10622
#    endif
 
10623
#  endif
 
10624
#endif
 
10625
 
 
10626
#ifdef __cplusplus
 
10627
extern "C" void exit (int);
 
10628
#endif
 
10629
 
 
10630
void fnord() { int i=42;}
 
10631
int main ()
 
10632
{
 
10633
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10634
  int status = $lt_dlunknown;
 
10635
 
 
10636
  if (self)
 
10637
    {
 
10638
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10639
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10640
      /* dlclose (self); */
 
10641
    }
 
10642
  else
 
10643
    puts (dlerror ());
 
10644
 
 
10645
    exit (status);
 
10646
}
 
10647
EOF
 
10648
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10649
  (eval $ac_link) 2>&5
 
10650
  ac_status=$?
 
10651
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10652
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10653
    (./conftest; exit; ) >&5 2>/dev/null
 
10654
    lt_status=$?
 
10655
    case x$lt_status in
 
10656
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10657
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10658
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10659
    esac
 
10660
  else :
 
10661
    # compilation failed
 
10662
    lt_cv_dlopen_self=no
 
10663
  fi
 
10664
fi
 
10665
rm -fr conftest*
 
10666
 
 
10667
 
 
10668
fi
 
10669
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10670
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10671
 
 
10672
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10673
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10674
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10675
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10676
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10677
  $as_echo_n "(cached) " >&6
 
10678
else
 
10679
          if test "$cross_compiling" = yes; then :
 
10680
  lt_cv_dlopen_self_static=cross
 
10681
else
 
10682
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10683
  lt_status=$lt_dlunknown
 
10684
  cat > conftest.$ac_ext <<EOF
 
10685
#line 10685 "configure"
 
10686
#include "confdefs.h"
 
10687
 
 
10688
#if HAVE_DLFCN_H
 
10689
#include <dlfcn.h>
 
10690
#endif
 
10691
 
 
10692
#include <stdio.h>
 
10693
 
 
10694
#ifdef RTLD_GLOBAL
 
10695
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10696
#else
 
10697
#  ifdef DL_GLOBAL
 
10698
#    define LT_DLGLOBAL         DL_GLOBAL
 
10699
#  else
 
10700
#    define LT_DLGLOBAL         0
 
10701
#  endif
 
10702
#endif
 
10703
 
 
10704
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10705
   find out it does not work in some platform. */
 
10706
#ifndef LT_DLLAZY_OR_NOW
 
10707
#  ifdef RTLD_LAZY
 
10708
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10709
#  else
 
10710
#    ifdef DL_LAZY
 
10711
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10712
#    else
 
10713
#      ifdef RTLD_NOW
 
10714
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10715
#      else
 
10716
#        ifdef DL_NOW
 
10717
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10718
#        else
 
10719
#          define LT_DLLAZY_OR_NOW      0
 
10720
#        endif
 
10721
#      endif
 
10722
#    endif
 
10723
#  endif
 
10724
#endif
 
10725
 
 
10726
#ifdef __cplusplus
 
10727
extern "C" void exit (int);
 
10728
#endif
 
10729
 
 
10730
void fnord() { int i=42;}
 
10731
int main ()
 
10732
{
 
10733
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10734
  int status = $lt_dlunknown;
 
10735
 
 
10736
  if (self)
 
10737
    {
 
10738
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10739
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10740
      /* dlclose (self); */
 
10741
    }
 
10742
  else
 
10743
    puts (dlerror ());
 
10744
 
 
10745
    exit (status);
 
10746
}
 
10747
EOF
 
10748
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10749
  (eval $ac_link) 2>&5
 
10750
  ac_status=$?
 
10751
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10752
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10753
    (./conftest; exit; ) >&5 2>/dev/null
 
10754
    lt_status=$?
 
10755
    case x$lt_status in
 
10756
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10757
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10758
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10759
    esac
 
10760
  else :
 
10761
    # compilation failed
 
10762
    lt_cv_dlopen_self_static=no
 
10763
  fi
 
10764
fi
 
10765
rm -fr conftest*
 
10766
 
 
10767
 
 
10768
fi
 
10769
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10770
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10771
    fi
 
10772
 
 
10773
    CPPFLAGS="$save_CPPFLAGS"
 
10774
    LDFLAGS="$save_LDFLAGS"
 
10775
    LIBS="$save_LIBS"
 
10776
    ;;
 
10777
  esac
 
10778
 
 
10779
  case $lt_cv_dlopen_self in
 
10780
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10781
  *) enable_dlopen_self=unknown ;;
 
10782
  esac
 
10783
 
 
10784
  case $lt_cv_dlopen_self_static in
 
10785
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10786
  *) enable_dlopen_self_static=unknown ;;
 
10787
  esac
 
10788
fi
 
10789
 
 
10790
 
 
10791
# Report which library types will actually be built
 
10792
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10793
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10794
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10795
$as_echo "$can_build_shared" >&6; }
 
10796
 
 
10797
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10798
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10799
test "$can_build_shared" = "no" && enable_shared=no
 
10800
 
 
10801
# On AIX, shared libraries and static libraries use the same namespace, and
 
10802
# are all built from PIC.
 
10803
case $host_os in
 
10804
aix3*)
 
10805
  test "$enable_shared" = yes && enable_static=no
 
10806
  if test -n "$RANLIB"; then
 
10807
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10808
    postinstall_cmds='$RANLIB $lib'
 
10809
  fi
 
10810
  ;;
 
10811
 
 
10812
aix[4-9]*)
 
10813
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10814
    test "$enable_shared" = yes && enable_static=no
 
10815
  fi
 
10816
    ;;
 
10817
esac
 
10818
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10819
$as_echo "$enable_shared" >&6; }
 
10820
 
 
10821
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10822
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10823
# Make sure either enable_shared or enable_static is yes.
 
10824
test "$enable_shared" = yes || enable_static=yes
 
10825
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10826
$as_echo "$enable_static" >&6; }
 
10827
 
 
10828
# The else clause should only fire when bootstrapping the
 
10829
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10830
# with your package, and you will get complaints that there are
 
10831
# no rules to generate ltmain.sh.
 
10832
if test -f "$ltmain"; then
 
10833
  # See if we are running on zsh, and set the options which allow our commands through
 
10834
  # without removal of \ escapes.
 
10835
  if test -n "${ZSH_VERSION+set}" ; then
 
10836
    setopt NO_GLOB_SUBST
 
10837
  fi
 
10838
  # Now quote all the things that may contain metacharacters while being
 
10839
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10840
  # variables and quote the copies for generation of the libtool script.
 
10841
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10842
    SED SHELL STRIP \
 
10843
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10844
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10845
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10846
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10847
    lt_cv_sys_global_symbol_to_c_name_address \
 
10848
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10849
    old_postinstall_cmds old_postuninstall_cmds \
 
10850
    compiler \
 
10851
    CC \
 
10852
    LD \
 
10853
    lt_prog_compiler_wl \
 
10854
    lt_prog_compiler_pic \
 
10855
    lt_prog_compiler_static \
 
10856
    lt_prog_compiler_no_builtin_flag \
 
10857
    export_dynamic_flag_spec \
 
10858
    thread_safe_flag_spec \
 
10859
    whole_archive_flag_spec \
 
10860
    enable_shared_with_static_runtimes \
 
10861
    old_archive_cmds \
 
10862
    old_archive_from_new_cmds \
 
10863
    predep_objects \
 
10864
    postdep_objects \
 
10865
    predeps \
 
10866
    postdeps \
 
10867
    compiler_lib_search_path \
 
10868
    compiler_lib_search_dirs \
 
10869
    archive_cmds \
 
10870
    archive_expsym_cmds \
 
10871
    postinstall_cmds \
 
10872
    postuninstall_cmds \
 
10873
    old_archive_from_expsyms_cmds \
 
10874
    allow_undefined_flag \
 
10875
    no_undefined_flag \
 
10876
    export_symbols_cmds \
 
10877
    hardcode_libdir_flag_spec \
 
10878
    hardcode_libdir_flag_spec_ld \
 
10879
    hardcode_libdir_separator \
 
10880
    hardcode_automatic \
 
10881
    module_cmds \
 
10882
    module_expsym_cmds \
 
10883
    lt_cv_prog_compiler_c_o \
 
10884
    fix_srcfile_path \
 
10885
    exclude_expsyms \
 
10886
    include_expsyms; do
 
10887
 
 
10888
    case $var in
 
10889
    old_archive_cmds | \
 
10890
    old_archive_from_new_cmds | \
 
10891
    archive_cmds | \
 
10892
    archive_expsym_cmds | \
 
10893
    module_cmds | \
 
10894
    module_expsym_cmds | \
 
10895
    old_archive_from_expsyms_cmds | \
 
10896
    export_symbols_cmds | \
 
10897
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10898
    postinstall_cmds | postuninstall_cmds | \
 
10899
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10900
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10901
      # Double-quote double-evaled strings.
 
10902
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10903
      ;;
 
10904
    *)
 
10905
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10906
      ;;
 
10907
    esac
 
10908
  done
 
10909
 
 
10910
  case $lt_echo in
 
10911
  *'\$0 --fallback-echo"')
 
10912
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10913
    ;;
 
10914
  esac
 
10915
 
 
10916
cfgfile="${ofile}T"
 
10917
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10918
  $rm -f "$cfgfile"
 
10919
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10920
$as_echo "$as_me: creating $ofile" >&6;}
 
10921
 
 
10922
  cat <<__EOF__ >> "$cfgfile"
 
10923
#! $SHELL
 
10924
 
 
10925
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10926
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10927
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10928
#
 
10929
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10930
# Free Software Foundation, Inc.
 
10931
#
 
10932
# This file is part of GNU Libtool:
 
10933
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10934
#
 
10935
# This program is free software; you can redistribute it and/or modify
 
10936
# it under the terms of the GNU General Public License as published by
 
10937
# the Free Software Foundation; either version 2 of the License, or
 
10938
# (at your option) any later version.
 
10939
#
 
10940
# This program is distributed in the hope that it will be useful, but
 
10941
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10942
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10943
# General Public License for more details.
 
10944
#
 
10945
# You should have received a copy of the GNU General Public License
 
10946
# along with this program; if not, write to the Free Software
 
10947
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10948
#
 
10949
# As a special exception to the GNU General Public License, if you
 
10950
# distribute this file as part of a program that contains a
 
10951
# configuration script generated by Autoconf, you may include it under
 
10952
# the same distribution terms that you use for the rest of that program.
 
10953
 
 
10954
# A sed program that does not truncate output.
 
10955
SED=$lt_SED
 
10956
 
 
10957
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10958
Xsed="$SED -e 1s/^X//"
 
10959
 
 
10960
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10961
# if CDPATH is set.
 
10962
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10963
 
 
10964
# The names of the tagged configurations supported by this script.
 
10965
available_tags=
 
10966
 
 
10967
# ### BEGIN LIBTOOL CONFIG
 
10968
 
 
10969
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10970
 
 
10971
# Shell to use when invoking shell scripts.
 
10972
SHELL=$lt_SHELL
 
10973
 
 
10974
# Whether or not to build shared libraries.
 
10975
build_libtool_libs=$enable_shared
 
10976
 
 
10977
# Whether or not to build static libraries.
 
10978
build_old_libs=$enable_static
 
10979
 
 
10980
# Whether or not to add -lc for building shared libraries.
 
10981
build_libtool_need_lc=$archive_cmds_need_lc
 
10982
 
 
10983
# Whether or not to disallow shared libs when runtime libs are static
 
10984
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10985
 
 
10986
# Whether or not to optimize for fast installation.
 
10987
fast_install=$enable_fast_install
 
10988
 
 
10989
# The host system.
 
10990
host_alias=$host_alias
 
10991
host=$host
 
10992
host_os=$host_os
 
10993
 
 
10994
# The build system.
 
10995
build_alias=$build_alias
 
10996
build=$build
 
10997
build_os=$build_os
 
10998
 
 
10999
# An echo program that does not interpret backslashes.
 
11000
echo=$lt_echo
 
11001
 
 
11002
# The archiver.
 
11003
AR=$lt_AR
 
11004
AR_FLAGS=$lt_AR_FLAGS
 
11005
 
 
11006
# A C compiler.
 
11007
LTCC=$lt_LTCC
 
11008
 
 
11009
# LTCC compiler flags.
 
11010
LTCFLAGS=$lt_LTCFLAGS
 
11011
 
 
11012
# A language-specific compiler.
 
11013
CC=$lt_compiler
 
11014
 
 
11015
# Is the compiler the GNU C compiler?
 
11016
with_gcc=$GCC
 
11017
 
 
11018
# An ERE matcher.
 
11019
EGREP=$lt_EGREP
 
11020
 
 
11021
# The linker used to build libraries.
 
11022
LD=$lt_LD
 
11023
 
 
11024
# Whether we need hard or soft links.
 
11025
LN_S=$lt_LN_S
 
11026
 
 
11027
# A BSD-compatible nm program.
 
11028
NM=$lt_NM
 
11029
 
 
11030
# A symbol stripping program
 
11031
STRIP=$lt_STRIP
 
11032
 
 
11033
# Used to examine libraries when file_magic_cmd begins "file"
 
11034
MAGIC_CMD=$MAGIC_CMD
 
11035
 
 
11036
# Used on cygwin: DLL creation program.
 
11037
DLLTOOL="$DLLTOOL"
 
11038
 
 
11039
# Used on cygwin: object dumper.
 
11040
OBJDUMP="$OBJDUMP"
 
11041
 
 
11042
# Used on cygwin: assembler.
 
11043
AS="$AS"
 
11044
 
 
11045
# The name of the directory that contains temporary libtool files.
 
11046
objdir=$objdir
 
11047
 
 
11048
# How to create reloadable object files.
 
11049
reload_flag=$lt_reload_flag
 
11050
reload_cmds=$lt_reload_cmds
 
11051
 
 
11052
# How to pass a linker flag through the compiler.
 
11053
wl=$lt_lt_prog_compiler_wl
 
11054
 
 
11055
# Object file suffix (normally "o").
 
11056
objext="$ac_objext"
 
11057
 
 
11058
# Old archive suffix (normally "a").
 
11059
libext="$libext"
 
11060
 
 
11061
# Shared library suffix (normally ".so").
 
11062
shrext_cmds='$shrext_cmds'
 
11063
 
 
11064
# Executable file suffix (normally "").
 
11065
exeext="$exeext"
 
11066
 
 
11067
# Additional compiler flags for building library objects.
 
11068
pic_flag=$lt_lt_prog_compiler_pic
 
11069
pic_mode=$pic_mode
 
11070
 
 
11071
# What is the maximum length of a command?
 
11072
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11073
 
 
11074
# Does compiler simultaneously support -c and -o options?
 
11075
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11076
 
 
11077
# Must we lock files when doing compilation?
 
11078
need_locks=$lt_need_locks
 
11079
 
 
11080
# Do we need the lib prefix for modules?
 
11081
need_lib_prefix=$need_lib_prefix
 
11082
 
 
11083
# Do we need a version for libraries?
 
11084
need_version=$need_version
 
11085
 
 
11086
# Whether dlopen is supported.
 
11087
dlopen_support=$enable_dlopen
 
11088
 
 
11089
# Whether dlopen of programs is supported.
 
11090
dlopen_self=$enable_dlopen_self
 
11091
 
 
11092
# Whether dlopen of statically linked programs is supported.
 
11093
dlopen_self_static=$enable_dlopen_self_static
 
11094
 
 
11095
# Compiler flag to prevent dynamic linking.
 
11096
link_static_flag=$lt_lt_prog_compiler_static
 
11097
 
 
11098
# Compiler flag to turn off builtin functions.
 
11099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11100
 
 
11101
# Compiler flag to allow reflexive dlopens.
 
11102
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11103
 
 
11104
# Compiler flag to generate shared objects directly from archives.
 
11105
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11106
 
 
11107
# Compiler flag to generate thread-safe objects.
 
11108
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11109
 
 
11110
# Library versioning type.
 
11111
version_type=$version_type
 
11112
 
 
11113
# Format of library name prefix.
 
11114
libname_spec=$lt_libname_spec
 
11115
 
 
11116
# List of archive names.  First name is the real one, the rest are links.
 
11117
# The last name is the one that the linker finds with -lNAME.
 
11118
library_names_spec=$lt_library_names_spec
 
11119
 
 
11120
# The coded name of the library, if different from the real name.
 
11121
soname_spec=$lt_soname_spec
 
11122
 
 
11123
# Commands used to build and install an old-style archive.
 
11124
RANLIB=$lt_RANLIB
 
11125
old_archive_cmds=$lt_old_archive_cmds
 
11126
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11127
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11128
 
 
11129
# Create an old-style archive from a shared archive.
 
11130
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11131
 
 
11132
# Create a temporary old-style archive to link instead of a shared archive.
 
11133
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11134
 
 
11135
# Commands used to build and install a shared archive.
 
11136
archive_cmds=$lt_archive_cmds
 
11137
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11138
postinstall_cmds=$lt_postinstall_cmds
 
11139
postuninstall_cmds=$lt_postuninstall_cmds
 
11140
 
 
11141
# Commands used to build a loadable module (assumed same as above if empty)
 
11142
module_cmds=$lt_module_cmds
 
11143
module_expsym_cmds=$lt_module_expsym_cmds
 
11144
 
 
11145
# Commands to strip libraries.
 
11146
old_striplib=$lt_old_striplib
 
11147
striplib=$lt_striplib
 
11148
 
 
11149
# Dependencies to place before the objects being linked to create a
 
11150
# shared library.
 
11151
predep_objects=$lt_predep_objects
 
11152
 
 
11153
# Dependencies to place after the objects being linked to create a
 
11154
# shared library.
 
11155
postdep_objects=$lt_postdep_objects
 
11156
 
 
11157
# Dependencies to place before the objects being linked to create a
 
11158
# shared library.
 
11159
predeps=$lt_predeps
 
11160
 
 
11161
# Dependencies to place after the objects being linked to create a
 
11162
# shared library.
 
11163
postdeps=$lt_postdeps
 
11164
 
 
11165
# The directories searched by this compiler when creating a shared
 
11166
# library
 
11167
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11168
 
 
11169
# The library search path used internally by the compiler when linking
 
11170
# a shared library.
 
11171
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11172
 
 
11173
# Method to check whether dependent libraries are shared objects.
 
11174
deplibs_check_method=$lt_deplibs_check_method
 
11175
 
 
11176
# Command to use when deplibs_check_method == file_magic.
 
11177
file_magic_cmd=$lt_file_magic_cmd
 
11178
 
 
11179
# Flag that allows shared libraries with undefined symbols to be built.
 
11180
allow_undefined_flag=$lt_allow_undefined_flag
 
11181
 
 
11182
# Flag that forces no undefined symbols.
 
11183
no_undefined_flag=$lt_no_undefined_flag
 
11184
 
 
11185
# Commands used to finish a libtool library installation in a directory.
 
11186
finish_cmds=$lt_finish_cmds
 
11187
 
 
11188
# Same as above, but a single script fragment to be evaled but not shown.
 
11189
finish_eval=$lt_finish_eval
 
11190
 
 
11191
# Take the output of nm and produce a listing of raw symbols and C names.
 
11192
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11193
 
 
11194
# Transform the output of nm in a proper C declaration
 
11195
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11196
 
 
11197
# Transform the output of nm in a C name address pair
 
11198
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11199
 
 
11200
# This is the shared library runtime path variable.
 
11201
runpath_var=$runpath_var
 
11202
 
 
11203
# This is the shared library path variable.
 
11204
shlibpath_var=$shlibpath_var
 
11205
 
 
11206
# Is shlibpath searched before the hard-coded library search path?
 
11207
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11208
 
 
11209
# How to hardcode a shared library path into an executable.
 
11210
hardcode_action=$hardcode_action
 
11211
 
 
11212
# Whether we should hardcode library paths into libraries.
 
11213
hardcode_into_libs=$hardcode_into_libs
 
11214
 
 
11215
# Flag to hardcode \$libdir into a binary during linking.
 
11216
# This must work even if \$libdir does not exist.
 
11217
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11218
 
 
11219
# If ld is used when linking, flag to hardcode \$libdir into
 
11220
# a binary during linking. This must work even if \$libdir does
 
11221
# not exist.
 
11222
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11223
 
 
11224
# Whether we need a single -rpath flag with a separated argument.
 
11225
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11226
 
 
11227
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11228
# resulting binary.
 
11229
hardcode_direct=$hardcode_direct
 
11230
 
 
11231
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11232
# resulting binary.
 
11233
hardcode_minus_L=$hardcode_minus_L
 
11234
 
 
11235
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11236
# the resulting binary.
 
11237
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11238
 
 
11239
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11240
# and all subsequent libraries and executables linked against it.
 
11241
hardcode_automatic=$hardcode_automatic
 
11242
 
 
11243
# Variables whose values should be saved in libtool wrapper scripts and
 
11244
# restored at relink time.
 
11245
variables_saved_for_relink="$variables_saved_for_relink"
 
11246
 
 
11247
# Whether libtool must link a program against all its dependency libraries.
 
11248
link_all_deplibs=$link_all_deplibs
 
11249
 
 
11250
# Compile-time system search path for libraries
 
11251
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11252
 
 
11253
# Run-time system search path for libraries
 
11254
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11255
 
 
11256
# Fix the shell variable \$srcfile for the compiler.
 
11257
fix_srcfile_path=$lt_fix_srcfile_path
 
11258
 
 
11259
# Set to yes if exported symbols are required.
 
11260
always_export_symbols=$always_export_symbols
 
11261
 
 
11262
# The commands to list exported symbols.
 
11263
export_symbols_cmds=$lt_export_symbols_cmds
 
11264
 
 
11265
# The commands to extract the exported symbol list from a shared archive.
 
11266
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11267
 
 
11268
# Symbols that should not be listed in the preloaded symbols.
 
11269
exclude_expsyms=$lt_exclude_expsyms
 
11270
 
 
11271
# Symbols that must always be exported.
 
11272
include_expsyms=$lt_include_expsyms
 
11273
 
 
11274
# ### END LIBTOOL CONFIG
 
11275
 
 
11276
__EOF__
 
11277
 
 
11278
 
 
11279
  case $host_os in
 
11280
  aix3*)
 
11281
    cat <<\EOF >> "$cfgfile"
 
11282
 
 
11283
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11284
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11285
# vanish in a puff of smoke.
 
11286
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11287
  COLLECT_NAMES=
 
11288
  export COLLECT_NAMES
 
11289
fi
 
11290
EOF
 
11291
    ;;
 
11292
  esac
 
11293
 
 
11294
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11295
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11296
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11297
  # is reportedly fixed, but why not run on old versions too?
 
11298
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11299
 
 
11300
  mv -f "$cfgfile" "$ofile" || \
 
11301
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11302
  chmod +x "$ofile"
 
11303
 
 
11304
else
 
11305
  # If there is no Makefile yet, we rely on a make rule to execute
 
11306
  # `config.status --recheck' to rerun these tests and create the
 
11307
  # libtool script then.
 
11308
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11309
  if test -f "$ltmain_in"; then
 
11310
    test -f Makefile && make "$ltmain"
 
11311
  fi
 
11312
fi
 
11313
 
 
11314
 
 
11315
ac_ext=c
 
11316
ac_cpp='$CPP $CPPFLAGS'
 
11317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11320
 
 
11321
CC="$lt_save_CC"
 
11322
 
 
11323
 
 
11324
# Check whether --with-tags was given.
 
11325
if test "${with_tags+set}" = set; then
 
11326
  withval=$with_tags; tagnames="$withval"
 
11327
fi
 
11328
 
 
11329
 
 
11330
if test -f "$ltmain" && test -n "$tagnames"; then
 
11331
  if test ! -f "${ofile}"; then
 
11332
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11333
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11334
  fi
 
11335
 
 
11336
  if test -z "$LTCC"; then
 
11337
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11338
    if test -z "$LTCC"; then
 
11339
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11340
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11341
    else
 
11342
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11343
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11344
    fi
 
11345
  fi
 
11346
  if test -z "$LTCFLAGS"; then
 
11347
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11348
  fi
 
11349
 
 
11350
  # Extract list of available tagged configurations in $ofile.
 
11351
  # Note that this assumes the entire list is on one line.
 
11352
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11353
 
 
11354
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11355
  for tagname in $tagnames; do
 
11356
    IFS="$lt_save_ifs"
 
11357
    # Check whether tagname contains only valid characters
 
11358
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11359
    "") ;;
 
11360
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11361
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11362
   { (exit 1); exit 1; }; }
 
11363
        ;;
 
11364
    esac
 
11365
 
 
11366
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11367
    then
 
11368
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11369
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11370
   { (exit 1); exit 1; }; }
 
11371
    fi
 
11372
 
 
11373
    # Update the list of available tags.
 
11374
    if test -n "$tagname"; then
 
11375
      echo appending configuration tag \"$tagname\" to $ofile
 
11376
 
 
11377
      case $tagname in
 
11378
      CXX)
 
11379
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11380
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11381
            (test "X$CXX" != "Xg++"))) ; then
 
11382
          ac_ext=cpp
 
11383
ac_cpp='$CXXCPP $CPPFLAGS'
 
11384
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11385
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11386
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11387
 
 
11388
 
 
11389
 
 
11390
 
 
11391
archive_cmds_need_lc_CXX=no
 
11392
allow_undefined_flag_CXX=
 
11393
always_export_symbols_CXX=no
 
11394
archive_expsym_cmds_CXX=
 
11395
export_dynamic_flag_spec_CXX=
 
11396
hardcode_direct_CXX=no
 
11397
hardcode_libdir_flag_spec_CXX=
 
11398
hardcode_libdir_flag_spec_ld_CXX=
 
11399
hardcode_libdir_separator_CXX=
 
11400
hardcode_minus_L_CXX=no
 
11401
hardcode_shlibpath_var_CXX=unsupported
 
11402
hardcode_automatic_CXX=no
 
11403
module_cmds_CXX=
 
11404
module_expsym_cmds_CXX=
 
11405
link_all_deplibs_CXX=unknown
 
11406
old_archive_cmds_CXX=$old_archive_cmds
 
11407
no_undefined_flag_CXX=
 
11408
whole_archive_flag_spec_CXX=
 
11409
enable_shared_with_static_runtimes_CXX=no
 
11410
 
 
11411
# Dependencies to place before and after the object being linked:
 
11412
predep_objects_CXX=
 
11413
postdep_objects_CXX=
 
11414
predeps_CXX=
 
11415
postdeps_CXX=
 
11416
compiler_lib_search_path_CXX=
 
11417
compiler_lib_search_dirs_CXX=
 
11418
 
 
11419
# Source file extension for C++ test sources.
 
11420
ac_ext=cpp
 
11421
 
 
11422
# Object file extension for compiled C++ test sources.
 
11423
objext=o
 
11424
objext_CXX=$objext
 
11425
 
 
11426
# Code to be used in simple compile tests
 
11427
lt_simple_compile_test_code="int some_variable = 0;"
 
11428
 
 
11429
# Code to be used in simple link tests
 
11430
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11431
 
 
11432
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11433
 
 
11434
# If no C compiler was specified, use CC.
 
11435
LTCC=${LTCC-"$CC"}
 
11436
 
 
11437
# If no C compiler flags were specified, use CFLAGS.
 
11438
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11439
 
 
11440
# Allow CC to be a program name with arguments.
 
11441
compiler=$CC
 
11442
 
 
11443
 
 
11444
# save warnings/boilerplate of simple test code
 
11445
ac_outfile=conftest.$ac_objext
 
11446
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11447
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11448
_lt_compiler_boilerplate=`cat conftest.err`
 
11449
$rm conftest*
 
11450
 
 
11451
ac_outfile=conftest.$ac_objext
 
11452
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11453
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11454
_lt_linker_boilerplate=`cat conftest.err`
 
11455
$rm -r conftest*
 
11456
 
 
11457
 
 
11458
# Allow CC to be a program name with arguments.
 
11459
lt_save_CC=$CC
 
11460
lt_save_LD=$LD
 
11461
lt_save_GCC=$GCC
 
11462
GCC=$GXX
 
11463
lt_save_with_gnu_ld=$with_gnu_ld
 
11464
lt_save_path_LD=$lt_cv_path_LD
 
11465
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11466
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11467
else
 
11468
  $as_unset lt_cv_prog_gnu_ld
 
11469
fi
 
11470
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11471
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11472
else
 
11473
  $as_unset lt_cv_path_LD
 
11474
fi
 
11475
test -z "${LDCXX+set}" || LD=$LDCXX
 
11476
CC=${CXX-"c++"}
 
11477
compiler=$CC
 
11478
compiler_CXX=$CC
 
11479
for cc_temp in $compiler""; do
 
11480
  case $cc_temp in
 
11481
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11482
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11483
    \-*) ;;
 
11484
    *) break;;
 
11485
  esac
 
11486
done
 
11487
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11488
 
 
11489
 
 
11490
# We don't want -fno-exception wen compiling C++ code, so set the
 
11491
# no_builtin_flag separately
 
11492
if test "$GXX" = yes; then
 
11493
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11494
else
 
11495
  lt_prog_compiler_no_builtin_flag_CXX=
 
11496
fi
 
11497
 
 
11498
if test "$GXX" = yes; then
 
11499
  # Set up default GNU C++ configuration
 
11500
 
 
11501
 
 
11502
# Check whether --with-gnu-ld was given.
 
11503
if test "${with_gnu_ld+set}" = set; then
 
11504
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11505
else
 
11506
  with_gnu_ld=no
 
11507
fi
 
11508
 
 
11509
ac_prog=ld
 
11510
if test "$GCC" = yes; then
 
11511
  # Check if gcc -print-prog-name=ld gives a path.
 
11512
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11513
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11514
  case $host in
 
11515
  *-*-mingw*)
 
11516
    # gcc leaves a trailing carriage return which upsets mingw
 
11517
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11518
  *)
 
11519
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11520
  esac
 
11521
  case $ac_prog in
 
11522
    # Accept absolute paths.
 
11523
    [\\/]* | ?:[\\/]*)
 
11524
      re_direlt='/[^/][^/]*/\.\./'
 
11525
      # Canonicalize the pathname of ld
 
11526
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11527
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11528
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11529
      done
 
11530
      test -z "$LD" && LD="$ac_prog"
 
11531
      ;;
 
11532
  "")
 
11533
    # If it fails, then pretend we aren't using GCC.
 
11534
    ac_prog=ld
 
11535
    ;;
 
11536
  *)
 
11537
    # If it is relative, then search for the first ld in PATH.
 
11538
    with_gnu_ld=unknown
 
11539
    ;;
 
11540
  esac
 
11541
elif test "$with_gnu_ld" = yes; then
 
11542
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11543
$as_echo_n "checking for GNU ld... " >&6; }
 
11544
else
 
11545
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11546
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11547
fi
 
11548
if test "${lt_cv_path_LD+set}" = set; then
 
11549
  $as_echo_n "(cached) " >&6
 
11550
else
 
11551
  if test -z "$LD"; then
 
11552
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11553
  for ac_dir in $PATH; do
 
11554
    IFS="$lt_save_ifs"
 
11555
    test -z "$ac_dir" && ac_dir=.
 
11556
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11557
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11558
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11559
      # but apparently some variants of GNU ld only accept -v.
 
11560
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11561
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11562
      *GNU* | *'with BFD'*)
 
11563
        test "$with_gnu_ld" != no && break
 
11564
        ;;
 
11565
      *)
 
11566
        test "$with_gnu_ld" != yes && break
 
11567
        ;;
 
11568
      esac
 
11569
    fi
 
11570
  done
 
11571
  IFS="$lt_save_ifs"
 
11572
else
 
11573
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11574
fi
 
11575
fi
 
11576
 
 
11577
LD="$lt_cv_path_LD"
 
11578
if test -n "$LD"; then
 
11579
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11580
$as_echo "$LD" >&6; }
 
11581
else
 
11582
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11583
$as_echo "no" >&6; }
 
11584
fi
 
11585
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11586
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11587
   { (exit 1); exit 1; }; }
 
11588
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11589
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11590
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11591
  $as_echo_n "(cached) " >&6
 
11592
else
 
11593
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11594
case `$LD -v 2>&1 </dev/null` in
 
11595
*GNU* | *'with BFD'*)
 
11596
  lt_cv_prog_gnu_ld=yes
 
11597
  ;;
 
11598
*)
 
11599
  lt_cv_prog_gnu_ld=no
 
11600
  ;;
 
11601
esac
 
11602
fi
 
11603
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11604
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11605
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11606
 
 
11607
 
 
11608
 
 
11609
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11610
  # archiving commands below assume that GNU ld is being used.
 
11611
  if test "$with_gnu_ld" = yes; then
 
11612
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11613
    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'
 
11614
 
 
11615
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11616
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11617
 
 
11618
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11619
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11620
    #     investigate it a little bit more. (MM)
 
11621
    wlarc='${wl}'
 
11622
 
 
11623
    # ancient GNU ld didn't support --whole-archive et. al.
 
11624
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11625
        grep 'no-whole-archive' > /dev/null; then
 
11626
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11627
    else
 
11628
      whole_archive_flag_spec_CXX=
 
11629
    fi
 
11630
  else
 
11631
    with_gnu_ld=no
 
11632
    wlarc=
 
11633
 
 
11634
    # A generic and very simple default shared library creation
 
11635
    # command for GNU C++ for the case where it uses the native
 
11636
    # linker, instead of GNU ld.  If possible, this setting should
 
11637
    # overridden to take advantage of the native linker features on
 
11638
    # the platform it is being used on.
 
11639
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11640
  fi
 
11641
 
 
11642
  # Commands to make compiler produce verbose output that lists
 
11643
  # what "hidden" libraries, object files and flags are used when
 
11644
  # linking a shared library.
 
11645
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11646
 
 
11647
else
 
11648
  GXX=no
 
11649
  with_gnu_ld=no
 
11650
  wlarc=
 
11651
fi
 
11652
 
 
11653
# PORTME: fill in a description of your system's C++ link characteristics
 
11654
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11655
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11656
ld_shlibs_CXX=yes
 
11657
case $host_os in
 
11658
  aix3*)
 
11659
    # FIXME: insert proper C++ library support
 
11660
    ld_shlibs_CXX=no
 
11661
    ;;
 
11662
  aix[4-9]*)
 
11663
    if test "$host_cpu" = ia64; then
 
11664
      # On IA64, the linker does run time linking by default, so we don't
 
11665
      # have to do anything special.
 
11666
      aix_use_runtimelinking=no
 
11667
      exp_sym_flag='-Bexport'
 
11668
      no_entry_flag=""
 
11669
    else
 
11670
      aix_use_runtimelinking=no
 
11671
 
 
11672
      # Test if we are trying to use run time linking or normal
 
11673
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11674
      # need to do runtime linking.
 
11675
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11676
        for ld_flag in $LDFLAGS; do
 
11677
          case $ld_flag in
 
11678
          *-brtl*)
 
11679
            aix_use_runtimelinking=yes
 
11680
            break
 
11681
            ;;
 
11682
          esac
 
11683
        done
 
11684
        ;;
 
11685
      esac
 
11686
 
 
11687
      exp_sym_flag='-bexport'
 
11688
      no_entry_flag='-bnoentry'
 
11689
    fi
 
11690
 
 
11691
    # When large executables or shared objects are built, AIX ld can
 
11692
    # have problems creating the table of contents.  If linking a library
 
11693
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11694
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11695
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11696
 
 
11697
    archive_cmds_CXX=''
 
11698
    hardcode_direct_CXX=yes
 
11699
    hardcode_libdir_separator_CXX=':'
 
11700
    link_all_deplibs_CXX=yes
 
11701
 
 
11702
    if test "$GXX" = yes; then
 
11703
      case $host_os in aix4.[012]|aix4.[012].*)
 
11704
      # We only want to do this on AIX 4.2 and lower, the check
 
11705
      # below for broken collect2 doesn't work under 4.3+
 
11706
        collect2name=`${CC} -print-prog-name=collect2`
 
11707
        if test -f "$collect2name" && \
 
11708
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11709
        then
 
11710
          # We have reworked collect2
 
11711
          :
 
11712
        else
 
11713
          # We have old collect2
 
11714
          hardcode_direct_CXX=unsupported
 
11715
          # It fails to find uninstalled libraries when the uninstalled
 
11716
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11717
          # to unsupported forces relinking
 
11718
          hardcode_minus_L_CXX=yes
 
11719
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11720
          hardcode_libdir_separator_CXX=
 
11721
        fi
 
11722
        ;;
 
11723
      esac
 
11724
      shared_flag='-shared'
 
11725
      if test "$aix_use_runtimelinking" = yes; then
 
11726
        shared_flag="$shared_flag "'${wl}-G'
 
11727
      fi
 
11728
    else
 
11729
      # not using gcc
 
11730
      if test "$host_cpu" = ia64; then
 
11731
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11732
        # chokes on -Wl,-G. The following line is correct:
 
11733
        shared_flag='-G'
 
11734
      else
 
11735
        if test "$aix_use_runtimelinking" = yes; then
 
11736
          shared_flag='${wl}-G'
 
11737
        else
 
11738
          shared_flag='${wl}-bM:SRE'
 
11739
        fi
 
11740
      fi
 
11741
    fi
 
11742
 
 
11743
    # It seems that -bexpall does not export symbols beginning with
 
11744
    # underscore (_), so it is better to generate a list of symbols to export.
 
11745
    always_export_symbols_CXX=yes
 
11746
    if test "$aix_use_runtimelinking" = yes; then
 
11747
      # Warning - without using the other runtime loading flags (-brtl),
 
11748
      # -berok will link without error, but may produce a broken library.
 
11749
      allow_undefined_flag_CXX='-berok'
 
11750
      # Determine the default libpath from the value encoded in an empty executable.
 
11751
      cat >conftest.$ac_ext <<_ACEOF
 
11752
/* confdefs.h.  */
 
11753
_ACEOF
 
11754
cat confdefs.h >>conftest.$ac_ext
 
11755
cat >>conftest.$ac_ext <<_ACEOF
 
11756
/* end confdefs.h.  */
 
11757
 
 
11758
int
 
11759
main ()
 
11760
{
 
11761
 
 
11762
  ;
 
11763
  return 0;
 
11764
}
 
11765
_ACEOF
 
11766
rm -f conftest.$ac_objext conftest$ac_exeext
 
11767
if { (ac_try="$ac_link"
 
11768
case "(($ac_try" in
 
11769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11770
  *) ac_try_echo=$ac_try;;
 
11771
esac
 
11772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11773
$as_echo "$ac_try_echo") >&5
 
11774
  (eval "$ac_link") 2>conftest.er1
 
11775
  ac_status=$?
 
11776
  grep -v '^ *+' conftest.er1 >conftest.err
 
11777
  rm -f conftest.er1
 
11778
  cat conftest.err >&5
 
11779
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11780
  (exit $ac_status); } && {
 
11781
         test -z "$ac_cxx_werror_flag" ||
 
11782
         test ! -s conftest.err
 
11783
       } && test -s conftest$ac_exeext && {
 
11784
         test "$cross_compiling" = yes ||
 
11785
         $as_test_x conftest$ac_exeext
 
11786
       }; then
 
11787
 
 
11788
lt_aix_libpath_sed='
 
11789
    /Import File Strings/,/^$/ {
 
11790
        /^0/ {
 
11791
            s/^0  *\(.*\)$/\1/
 
11792
            p
 
11793
        }
 
11794
    }'
 
11795
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11796
# Check for a 64-bit object if we didn't find anything.
 
11797
if test -z "$aix_libpath"; then
 
11798
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11799
fi
 
11800
else
 
11801
  $as_echo "$as_me: failed program was:" >&5
 
11802
sed 's/^/| /' conftest.$ac_ext >&5
 
11803
 
 
11804
 
 
11805
fi
 
11806
 
 
11807
rm -rf conftest.dSYM
 
11808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11809
      conftest$ac_exeext conftest.$ac_ext
 
11810
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11811
 
 
11812
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11813
 
 
11814
      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"
 
11815
     else
 
11816
      if test "$host_cpu" = ia64; then
 
11817
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11818
        allow_undefined_flag_CXX="-z nodefs"
 
11819
        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"
 
11820
      else
 
11821
        # Determine the default libpath from the value encoded in an empty executable.
 
11822
        cat >conftest.$ac_ext <<_ACEOF
 
11823
/* confdefs.h.  */
 
11824
_ACEOF
 
11825
cat confdefs.h >>conftest.$ac_ext
 
11826
cat >>conftest.$ac_ext <<_ACEOF
 
11827
/* end confdefs.h.  */
 
11828
 
 
11829
int
 
11830
main ()
 
11831
{
 
11832
 
 
11833
  ;
 
11834
  return 0;
 
11835
}
 
11836
_ACEOF
 
11837
rm -f conftest.$ac_objext conftest$ac_exeext
 
11838
if { (ac_try="$ac_link"
 
11839
case "(($ac_try" in
 
11840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11841
  *) ac_try_echo=$ac_try;;
 
11842
esac
 
11843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11844
$as_echo "$ac_try_echo") >&5
 
11845
  (eval "$ac_link") 2>conftest.er1
 
11846
  ac_status=$?
 
11847
  grep -v '^ *+' conftest.er1 >conftest.err
 
11848
  rm -f conftest.er1
 
11849
  cat conftest.err >&5
 
11850
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11851
  (exit $ac_status); } && {
 
11852
         test -z "$ac_cxx_werror_flag" ||
 
11853
         test ! -s conftest.err
 
11854
       } && test -s conftest$ac_exeext && {
 
11855
         test "$cross_compiling" = yes ||
 
11856
         $as_test_x conftest$ac_exeext
 
11857
       }; then
 
11858
 
 
11859
lt_aix_libpath_sed='
 
11860
    /Import File Strings/,/^$/ {
 
11861
        /^0/ {
 
11862
            s/^0  *\(.*\)$/\1/
 
11863
            p
 
11864
        }
 
11865
    }'
 
11866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11867
# Check for a 64-bit object if we didn't find anything.
 
11868
if test -z "$aix_libpath"; then
 
11869
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11870
fi
 
11871
else
 
11872
  $as_echo "$as_me: failed program was:" >&5
 
11873
sed 's/^/| /' conftest.$ac_ext >&5
 
11874
 
 
11875
 
 
11876
fi
 
11877
 
 
11878
rm -rf conftest.dSYM
 
11879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11880
      conftest$ac_exeext conftest.$ac_ext
 
11881
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11882
 
 
11883
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11884
        # Warning - without using the other run time loading flags,
 
11885
        # -berok will link without error, but may produce a broken library.
 
11886
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11887
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11888
        # Exported symbols can be pulled into shared objects from archives
 
11889
        whole_archive_flag_spec_CXX='$convenience'
 
11890
        archive_cmds_need_lc_CXX=yes
 
11891
        # This is similar to how AIX traditionally builds its shared libraries.
 
11892
        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'
 
11893
      fi
 
11894
    fi
 
11895
    ;;
 
11896
 
 
11897
  beos*)
 
11898
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11899
      allow_undefined_flag_CXX=unsupported
 
11900
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11901
      # support --undefined.  This deserves some investigation.  FIXME
 
11902
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11903
    else
 
11904
      ld_shlibs_CXX=no
 
11905
    fi
 
11906
    ;;
 
11907
 
 
11908
  chorus*)
 
11909
    case $cc_basename in
 
11910
      *)
 
11911
        # FIXME: insert proper C++ library support
 
11912
        ld_shlibs_CXX=no
 
11913
        ;;
 
11914
    esac
 
11915
    ;;
 
11916
 
 
11917
  cygwin* | mingw* | pw32*)
 
11918
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11919
    # as there is no search path for DLLs.
 
11920
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11921
    allow_undefined_flag_CXX=unsupported
 
11922
    always_export_symbols_CXX=no
 
11923
    enable_shared_with_static_runtimes_CXX=yes
 
11924
 
 
11925
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11926
      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'
 
11927
      # If the export-symbols file already is a .def file (1st line
 
11928
      # is EXPORTS), use it as is; otherwise, prepend...
 
11929
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11930
        cp $export_symbols $output_objdir/$soname.def;
 
11931
      else
 
11932
        echo EXPORTS > $output_objdir/$soname.def;
 
11933
        cat $export_symbols >> $output_objdir/$soname.def;
 
11934
      fi~
 
11935
      $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'
 
11936
    else
 
11937
      ld_shlibs_CXX=no
 
11938
    fi
 
11939
  ;;
 
11940
      darwin* | rhapsody*)
 
11941
      archive_cmds_need_lc_CXX=no
 
11942
      hardcode_direct_CXX=no
 
11943
      hardcode_automatic_CXX=yes
 
11944
      hardcode_shlibpath_var_CXX=unsupported
 
11945
      whole_archive_flag_spec_CXX=''
 
11946
      link_all_deplibs_CXX=yes
 
11947
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11948
      if test "$GXX" = yes ; then
 
11949
      output_verbose_link_cmd='echo'
 
11950
      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}"
 
11951
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11952
      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}"
 
11953
      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}"
 
11954
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11955
        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}"
 
11956
        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}"
 
11957
      fi
 
11958
      else
 
11959
      case $cc_basename in
 
11960
        xlc*)
 
11961
         output_verbose_link_cmd='echo'
 
11962
          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'
 
11963
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11964
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11965
          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}'
 
11966
          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}'
 
11967
          ;;
 
11968
       *)
 
11969
         ld_shlibs_CXX=no
 
11970
          ;;
 
11971
      esac
 
11972
      fi
 
11973
        ;;
 
11974
 
 
11975
  dgux*)
 
11976
    case $cc_basename in
 
11977
      ec++*)
 
11978
        # FIXME: insert proper C++ library support
 
11979
        ld_shlibs_CXX=no
 
11980
        ;;
 
11981
      ghcx*)
 
11982
        # Green Hills C++ Compiler
 
11983
        # FIXME: insert proper C++ library support
 
11984
        ld_shlibs_CXX=no
 
11985
        ;;
 
11986
      *)
 
11987
        # FIXME: insert proper C++ library support
 
11988
        ld_shlibs_CXX=no
 
11989
        ;;
 
11990
    esac
 
11991
    ;;
 
11992
  freebsd[12]*)
 
11993
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11994
    ld_shlibs_CXX=no
 
11995
    ;;
 
11996
  freebsd-elf*)
 
11997
    archive_cmds_need_lc_CXX=no
 
11998
    ;;
 
11999
  freebsd* | dragonfly*)
 
12000
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12001
    # conventions
 
12002
    ld_shlibs_CXX=yes
 
12003
    ;;
 
12004
  gnu*)
 
12005
    ;;
 
12006
  hpux9*)
 
12007
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12008
    hardcode_libdir_separator_CXX=:
 
12009
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12010
    hardcode_direct_CXX=yes
 
12011
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12012
                                # but as the default
 
12013
                                # location of the library.
 
12014
 
 
12015
    case $cc_basename in
 
12016
    CC*)
 
12017
      # FIXME: insert proper C++ library support
 
12018
      ld_shlibs_CXX=no
 
12019
      ;;
 
12020
    aCC*)
 
12021
      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'
 
12022
      # Commands to make compiler produce verbose output that lists
 
12023
      # what "hidden" libraries, object files and flags are used when
 
12024
      # linking a shared library.
 
12025
      #
 
12026
      # There doesn't appear to be a way to prevent this compiler from
 
12027
      # explicitly linking system object files so we need to strip them
 
12028
      # from the output so that they don't get included in the library
 
12029
      # dependencies.
 
12030
      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'
 
12031
      ;;
 
12032
    *)
 
12033
      if test "$GXX" = yes; then
 
12034
        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'
 
12035
      else
 
12036
        # FIXME: insert proper C++ library support
 
12037
        ld_shlibs_CXX=no
 
12038
      fi
 
12039
      ;;
 
12040
    esac
 
12041
    ;;
 
12042
  hpux10*|hpux11*)
 
12043
    if test $with_gnu_ld = no; then
 
12044
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12045
      hardcode_libdir_separator_CXX=:
 
12046
 
 
12047
      case $host_cpu in
 
12048
      hppa*64*|ia64*) ;;
 
12049
      *)
 
12050
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12051
        ;;
 
12052
      esac
 
12053
    fi
 
12054
    case $host_cpu in
 
12055
    hppa*64*|ia64*)
 
12056
      hardcode_direct_CXX=no
 
12057
      hardcode_shlibpath_var_CXX=no
 
12058
      ;;
 
12059
    *)
 
12060
      hardcode_direct_CXX=yes
 
12061
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12062
                                              # but as the default
 
12063
                                              # location of the library.
 
12064
      ;;
 
12065
    esac
 
12066
 
 
12067
    case $cc_basename in
 
12068
      CC*)
 
12069
        # FIXME: insert proper C++ library support
 
12070
        ld_shlibs_CXX=no
 
12071
        ;;
 
12072
      aCC*)
 
12073
        case $host_cpu in
 
12074
        hppa*64*)
 
12075
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12076
          ;;
 
12077
        ia64*)
 
12078
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12079
          ;;
 
12080
        *)
 
12081
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12082
          ;;
 
12083
        esac
 
12084
        # Commands to make compiler produce verbose output that lists
 
12085
        # what "hidden" libraries, object files and flags are used when
 
12086
        # linking a shared library.
 
12087
        #
 
12088
        # There doesn't appear to be a way to prevent this compiler from
 
12089
        # explicitly linking system object files so we need to strip them
 
12090
        # from the output so that they don't get included in the library
 
12091
        # dependencies.
 
12092
        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'
 
12093
        ;;
 
12094
      *)
 
12095
        if test "$GXX" = yes; then
 
12096
          if test $with_gnu_ld = no; then
 
12097
            case $host_cpu in
 
12098
            hppa*64*)
 
12099
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12100
              ;;
 
12101
            ia64*)
 
12102
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12103
              ;;
 
12104
            *)
 
12105
              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'
 
12106
              ;;
 
12107
            esac
 
12108
          fi
 
12109
        else
 
12110
          # FIXME: insert proper C++ library support
 
12111
          ld_shlibs_CXX=no
 
12112
        fi
 
12113
        ;;
 
12114
    esac
 
12115
    ;;
 
12116
  interix[3-9]*)
 
12117
    hardcode_direct_CXX=no
 
12118
    hardcode_shlibpath_var_CXX=no
 
12119
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12120
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12121
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12122
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12123
    # default) and relocated if they conflict, which is a slow very memory
 
12124
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12125
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12126
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12127
    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'
 
12128
    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'
 
12129
    ;;
 
12130
  irix5* | irix6*)
 
12131
    case $cc_basename in
 
12132
      CC*)
 
12133
        # SGI C++
 
12134
        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'
 
12135
 
 
12136
        # Archives containing C++ object files must be created using
 
12137
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12138
        # necessary to make sure instantiated templates are included
 
12139
        # in the archive.
 
12140
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12141
        ;;
 
12142
      *)
 
12143
        if test "$GXX" = yes; then
 
12144
          if test "$with_gnu_ld" = no; then
 
12145
            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'
 
12146
          else
 
12147
            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'
 
12148
          fi
 
12149
        fi
 
12150
        link_all_deplibs_CXX=yes
 
12151
        ;;
 
12152
    esac
 
12153
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12154
    hardcode_libdir_separator_CXX=:
 
12155
    ;;
 
12156
  linux* | k*bsd*-gnu)
 
12157
    case $cc_basename in
 
12158
      KCC*)
 
12159
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12160
 
 
12161
        # KCC will only create a shared library if the output file
 
12162
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12163
        # to its proper name (with version) after linking.
 
12164
        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'
 
12165
        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'
 
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
        #
 
12170
        # There doesn't appear to be a way to prevent this compiler from
 
12171
        # explicitly linking system object files so we need to strip them
 
12172
        # from the output so that they don't get included in the library
 
12173
        # dependencies.
 
12174
        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'
 
12175
 
 
12176
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12177
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12178
 
 
12179
        # Archives containing C++ object files must be created using
 
12180
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12181
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12182
        ;;
 
12183
      icpc*)
 
12184
        # Intel C++
 
12185
        with_gnu_ld=yes
 
12186
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12187
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12188
        # earlier do not add the objects themselves.
 
12189
        case `$CC -V 2>&1` in
 
12190
        *"Version 7."*)
 
12191
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12192
          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'
 
12193
          ;;
 
12194
        *)  # Version 8.0 or newer
 
12195
          tmp_idyn=
 
12196
          case $host_cpu in
 
12197
            ia64*) tmp_idyn=' -i_dynamic';;
 
12198
          esac
 
12199
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12200
          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'
 
12201
          ;;
 
12202
        esac
 
12203
        archive_cmds_need_lc_CXX=no
 
12204
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12205
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12206
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12207
        ;;
 
12208
      pgCC* | pgcpp*)
 
12209
        # Portland Group C++ compiler
 
12210
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12211
        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'
 
12212
 
 
12213
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12214
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12215
        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'
 
12216
        ;;
 
12217
      cxx*)
 
12218
        # Compaq C++
 
12219
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12220
        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'
 
12221
 
 
12222
        runpath_var=LD_RUN_PATH
 
12223
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12224
        hardcode_libdir_separator_CXX=:
 
12225
 
 
12226
        # Commands to make compiler produce verbose output that lists
 
12227
        # what "hidden" libraries, object files and flags are used when
 
12228
        # linking a shared library.
 
12229
        #
 
12230
        # There doesn't appear to be a way to prevent this compiler from
 
12231
        # explicitly linking system object files so we need to strip them
 
12232
        # from the output so that they don't get included in the library
 
12233
        # dependencies.
 
12234
        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'
 
12235
        ;;
 
12236
      *)
 
12237
        case `$CC -V 2>&1 | sed 5q` in
 
12238
        *Sun\ C*)
 
12239
          # Sun C++ 5.9
 
12240
          no_undefined_flag_CXX=' -zdefs'
 
12241
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12242
          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'
 
12243
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12244
          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'
 
12245
 
 
12246
          # Not sure whether something based on
 
12247
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12248
          # would be better.
 
12249
          output_verbose_link_cmd='echo'
 
12250
 
 
12251
          # Archives containing C++ object files must be created using
 
12252
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12253
          # necessary to make sure instantiated templates are included
 
12254
          # in the archive.
 
12255
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12256
          ;;
 
12257
        esac
 
12258
        ;;
 
12259
    esac
 
12260
    ;;
 
12261
  lynxos*)
 
12262
    # FIXME: insert proper C++ library support
 
12263
    ld_shlibs_CXX=no
 
12264
    ;;
 
12265
  m88k*)
 
12266
    # FIXME: insert proper C++ library support
 
12267
    ld_shlibs_CXX=no
 
12268
    ;;
 
12269
  mvs*)
 
12270
    case $cc_basename in
 
12271
      cxx*)
 
12272
        # FIXME: insert proper C++ library support
 
12273
        ld_shlibs_CXX=no
 
12274
        ;;
 
12275
      *)
 
12276
        # FIXME: insert proper C++ library support
 
12277
        ld_shlibs_CXX=no
 
12278
        ;;
 
12279
    esac
 
12280
    ;;
 
12281
  netbsd*)
 
12282
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12283
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12284
      wlarc=
 
12285
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12286
      hardcode_direct_CXX=yes
 
12287
      hardcode_shlibpath_var_CXX=no
 
12288
    fi
 
12289
    # Workaround some broken pre-1.5 toolchains
 
12290
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12291
    ;;
 
12292
  openbsd2*)
 
12293
    # C++ shared libraries are fairly broken
 
12294
    ld_shlibs_CXX=no
 
12295
    ;;
 
12296
  openbsd*)
 
12297
    if test -f /usr/libexec/ld.so; then
 
12298
      hardcode_direct_CXX=yes
 
12299
      hardcode_shlibpath_var_CXX=no
 
12300
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12301
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12302
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12303
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12304
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12305
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12306
      fi
 
12307
      output_verbose_link_cmd='echo'
 
12308
    else
 
12309
      ld_shlibs_CXX=no
 
12310
    fi
 
12311
    ;;
 
12312
  osf3*)
 
12313
    case $cc_basename in
 
12314
      KCC*)
 
12315
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12316
 
 
12317
        # KCC will only create a shared library if the output file
 
12318
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12319
        # to its proper name (with version) after linking.
 
12320
        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'
 
12321
 
 
12322
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12323
        hardcode_libdir_separator_CXX=:
 
12324
 
 
12325
        # Archives containing C++ object files must be created using
 
12326
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12327
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12328
 
 
12329
        ;;
 
12330
      RCC*)
 
12331
        # Rational C++ 2.4.1
 
12332
        # FIXME: insert proper C++ library support
 
12333
        ld_shlibs_CXX=no
 
12334
        ;;
 
12335
      cxx*)
 
12336
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12337
        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'
 
12338
 
 
12339
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12340
        hardcode_libdir_separator_CXX=:
 
12341
 
 
12342
        # Commands to make compiler produce verbose output that lists
 
12343
        # what "hidden" libraries, object files and flags are used when
 
12344
        # linking a shared library.
 
12345
        #
 
12346
        # There doesn't appear to be a way to prevent this compiler from
 
12347
        # explicitly linking system object files so we need to strip them
 
12348
        # from the output so that they don't get included in the library
 
12349
        # dependencies.
 
12350
        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'
 
12351
        ;;
 
12352
      *)
 
12353
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12354
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12355
          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'
 
12356
 
 
12357
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12358
          hardcode_libdir_separator_CXX=:
 
12359
 
 
12360
          # Commands to make compiler produce verbose output that lists
 
12361
          # what "hidden" libraries, object files and flags are used when
 
12362
          # linking a shared library.
 
12363
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12364
 
 
12365
        else
 
12366
          # FIXME: insert proper C++ library support
 
12367
          ld_shlibs_CXX=no
 
12368
        fi
 
12369
        ;;
 
12370
    esac
 
12371
    ;;
 
12372
  osf4* | osf5*)
 
12373
    case $cc_basename in
 
12374
      KCC*)
 
12375
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12376
 
 
12377
        # KCC will only create a shared library if the output file
 
12378
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12379
        # to its proper name (with version) after linking.
 
12380
        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'
 
12381
 
 
12382
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12383
        hardcode_libdir_separator_CXX=:
 
12384
 
 
12385
        # Archives containing C++ object files must be created using
 
12386
        # the KAI C++ compiler.
 
12387
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12388
        ;;
 
12389
      RCC*)
 
12390
        # Rational C++ 2.4.1
 
12391
        # FIXME: insert proper C++ library support
 
12392
        ld_shlibs_CXX=no
 
12393
        ;;
 
12394
      cxx*)
 
12395
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12396
        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'
 
12397
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12398
          echo "-hidden">> $lib.exp~
 
12399
          $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~
 
12400
          $rm $lib.exp'
 
12401
 
 
12402
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12403
        hardcode_libdir_separator_CXX=:
 
12404
 
 
12405
        # Commands to make compiler produce verbose output that lists
 
12406
        # what "hidden" libraries, object files and flags are used when
 
12407
        # linking a shared library.
 
12408
        #
 
12409
        # There doesn't appear to be a way to prevent this compiler from
 
12410
        # explicitly linking system object files so we need to strip them
 
12411
        # from the output so that they don't get included in the library
 
12412
        # dependencies.
 
12413
        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'
 
12414
        ;;
 
12415
      *)
 
12416
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12417
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12418
         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'
 
12419
 
 
12420
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12421
          hardcode_libdir_separator_CXX=:
 
12422
 
 
12423
          # Commands to make compiler produce verbose output that lists
 
12424
          # what "hidden" libraries, object files and flags are used when
 
12425
          # linking a shared library.
 
12426
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12427
 
 
12428
        else
 
12429
          # FIXME: insert proper C++ library support
 
12430
          ld_shlibs_CXX=no
 
12431
        fi
 
12432
        ;;
 
12433
    esac
 
12434
    ;;
 
12435
  psos*)
 
12436
    # FIXME: insert proper C++ library support
 
12437
    ld_shlibs_CXX=no
 
12438
    ;;
 
12439
  sunos4*)
 
12440
    case $cc_basename in
 
12441
      CC*)
 
12442
        # Sun C++ 4.x
 
12443
        # FIXME: insert proper C++ library support
 
12444
        ld_shlibs_CXX=no
 
12445
        ;;
 
12446
      lcc*)
 
12447
        # Lucid
 
12448
        # FIXME: insert proper C++ library support
 
12449
        ld_shlibs_CXX=no
 
12450
        ;;
 
12451
      *)
 
12452
        # FIXME: insert proper C++ library support
 
12453
        ld_shlibs_CXX=no
 
12454
        ;;
 
12455
    esac
 
12456
    ;;
 
12457
  solaris*)
 
12458
    case $cc_basename in
 
12459
      CC*)
 
12460
        # Sun C++ 4.2, 5.x and Centerline C++
 
12461
        archive_cmds_need_lc_CXX=yes
 
12462
        no_undefined_flag_CXX=' -zdefs'
 
12463
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12464
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12465
        $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'
 
12466
 
 
12467
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12468
        hardcode_shlibpath_var_CXX=no
 
12469
        case $host_os in
 
12470
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12471
          *)
 
12472
            # The compiler driver will combine and reorder linker options,
 
12473
            # but understands `-z linker_flag'.
 
12474
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12475
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12476
            ;;
 
12477
        esac
 
12478
        link_all_deplibs_CXX=yes
 
12479
 
 
12480
        output_verbose_link_cmd='echo'
 
12481
 
 
12482
        # Archives containing C++ object files must be created using
 
12483
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12484
        # necessary to make sure instantiated templates are included
 
12485
        # in the archive.
 
12486
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12487
        ;;
 
12488
      gcx*)
 
12489
        # Green Hills C++ Compiler
 
12490
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12491
 
 
12492
        # The C++ compiler must be used to create the archive.
 
12493
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12494
        ;;
 
12495
      *)
 
12496
        # GNU C++ compiler with Solaris linker
 
12497
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12498
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12499
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12500
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12501
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12502
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12503
 
 
12504
            # Commands to make compiler produce verbose output that lists
 
12505
            # what "hidden" libraries, object files and flags are used when
 
12506
            # linking a shared library.
 
12507
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12508
          else
 
12509
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12510
            # platform.
 
12511
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12512
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12513
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12514
 
 
12515
            # Commands to make compiler produce verbose output that lists
 
12516
            # what "hidden" libraries, object files and flags are used when
 
12517
            # linking a shared library.
 
12518
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12519
          fi
 
12520
 
 
12521
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12522
          case $host_os in
 
12523
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12524
          *)
 
12525
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12526
            ;;
 
12527
          esac
 
12528
        fi
 
12529
        ;;
 
12530
    esac
 
12531
    ;;
 
12532
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12533
    no_undefined_flag_CXX='${wl}-z,text'
 
12534
    archive_cmds_need_lc_CXX=no
 
12535
    hardcode_shlibpath_var_CXX=no
 
12536
    runpath_var='LD_RUN_PATH'
 
12537
 
 
12538
    case $cc_basename in
 
12539
      CC*)
 
12540
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12541
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12542
        ;;
 
12543
      *)
 
12544
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12545
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12546
        ;;
 
12547
    esac
 
12548
    ;;
 
12549
  sysv5* | sco3.2v5* | sco5v6*)
 
12550
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12551
    # link with -lc, and that would cause any symbols used from libc to
 
12552
    # always be unresolved, which means just about no library would
 
12553
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12554
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12555
    # as -z defs.
 
12556
    # For security reasons, it is highly recommended that you always
 
12557
    # use absolute paths for naming shared libraries, and exclude the
 
12558
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12559
    # requires that you compile everything twice, which is a pain.
 
12560
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12561
    # non-empty value in the environment.  Most likely only useful for
 
12562
    # creating official distributions of packages.
 
12563
    # This is a hack until libtool officially supports absolute path
 
12564
    # names for shared libraries.
 
12565
    no_undefined_flag_CXX='${wl}-z,text'
 
12566
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12567
    archive_cmds_need_lc_CXX=no
 
12568
    hardcode_shlibpath_var_CXX=no
 
12569
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12570
    hardcode_libdir_separator_CXX=':'
 
12571
    link_all_deplibs_CXX=yes
 
12572
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12573
    runpath_var='LD_RUN_PATH'
 
12574
 
 
12575
    case $cc_basename in
 
12576
      CC*)
 
12577
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12578
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12579
        ;;
 
12580
      *)
 
12581
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12582
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12583
        ;;
 
12584
    esac
 
12585
    ;;
 
12586
  tandem*)
 
12587
    case $cc_basename in
 
12588
      NCC*)
 
12589
        # NonStop-UX NCC 3.20
 
12590
        # FIXME: insert proper C++ library support
 
12591
        ld_shlibs_CXX=no
 
12592
        ;;
 
12593
      *)
 
12594
        # FIXME: insert proper C++ library support
 
12595
        ld_shlibs_CXX=no
 
12596
        ;;
 
12597
    esac
 
12598
    ;;
 
12599
  vxworks*)
 
12600
    # FIXME: insert proper C++ library support
 
12601
    ld_shlibs_CXX=no
 
12602
    ;;
 
12603
  *)
 
12604
    # FIXME: insert proper C++ library support
 
12605
    ld_shlibs_CXX=no
 
12606
    ;;
 
12607
esac
 
12608
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12609
$as_echo "$ld_shlibs_CXX" >&6; }
 
12610
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12611
 
 
12612
GCC_CXX="$GXX"
 
12613
LD_CXX="$LD"
 
12614
 
 
12615
cat > conftest.$ac_ext <<EOF
 
12616
class Foo
 
12617
{
 
12618
public:
 
12619
  Foo (void) { a = 0; }
 
12620
private:
 
12621
  int a;
 
12622
};
 
12623
EOF
 
12624
 
 
12625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12626
  (eval $ac_compile) 2>&5
 
12627
  ac_status=$?
 
12628
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12629
  (exit $ac_status); }; then
 
12630
  # Parse the compiler output and extract the necessary
 
12631
  # objects, libraries and library flags.
 
12632
 
 
12633
  # Sentinel used to keep track of whether or not we are before
 
12634
  # the conftest object file.
 
12635
  pre_test_object_deps_done=no
 
12636
 
 
12637
  # The `*' in the case matches for architectures that use `case' in
 
12638
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12639
  # eval without this substitution.
 
12640
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12641
 
 
12642
  for p in `eval $output_verbose_link_cmd`; do
 
12643
    case $p in
 
12644
 
 
12645
    -L* | -R* | -l*)
 
12646
       # Some compilers place space between "-{L,R}" and the path.
 
12647
       # Remove the space.
 
12648
       if test $p = "-L" \
 
12649
          || test $p = "-R"; then
 
12650
         prev=$p
 
12651
         continue
 
12652
       else
 
12653
         prev=
 
12654
       fi
 
12655
 
 
12656
       if test "$pre_test_object_deps_done" = no; then
 
12657
         case $p in
 
12658
         -L* | -R*)
 
12659
           # Internal compiler library paths should come after those
 
12660
           # provided the user.  The postdeps already come after the
 
12661
           # user supplied libs so there is no need to process them.
 
12662
           if test -z "$compiler_lib_search_path_CXX"; then
 
12663
             compiler_lib_search_path_CXX="${prev}${p}"
 
12664
           else
 
12665
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12666
           fi
 
12667
           ;;
 
12668
         # The "-l" case would never come before the object being
 
12669
         # linked, so don't bother handling this case.
 
12670
         esac
 
12671
       else
 
12672
         if test -z "$postdeps_CXX"; then
 
12673
           postdeps_CXX="${prev}${p}"
 
12674
         else
 
12675
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12676
         fi
 
12677
       fi
 
12678
       ;;
 
12679
 
 
12680
    *.$objext)
 
12681
       # This assumes that the test object file only shows up
 
12682
       # once in the compiler output.
 
12683
       if test "$p" = "conftest.$objext"; then
 
12684
         pre_test_object_deps_done=yes
 
12685
         continue
 
12686
       fi
 
12687
 
 
12688
       if test "$pre_test_object_deps_done" = no; then
 
12689
         if test -z "$predep_objects_CXX"; then
 
12690
           predep_objects_CXX="$p"
 
12691
         else
 
12692
           predep_objects_CXX="$predep_objects_CXX $p"
 
12693
         fi
 
12694
       else
 
12695
         if test -z "$postdep_objects_CXX"; then
 
12696
           postdep_objects_CXX="$p"
 
12697
         else
 
12698
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12699
         fi
 
12700
       fi
 
12701
       ;;
 
12702
 
 
12703
    *) ;; # Ignore the rest.
 
12704
 
 
12705
    esac
 
12706
  done
 
12707
 
 
12708
  # Clean up.
 
12709
  rm -f a.out a.exe
 
12710
else
 
12711
  echo "libtool.m4: error: problem compiling CXX test program"
 
12712
fi
 
12713
 
 
12714
$rm -f confest.$objext
 
12715
 
 
12716
compiler_lib_search_dirs_CXX=
 
12717
if test -n "$compiler_lib_search_path_CXX"; then
 
12718
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12719
fi
 
12720
 
 
12721
# PORTME: override above test on systems where it is broken
 
12722
case $host_os in
 
12723
interix[3-9]*)
 
12724
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12725
  # hack all around it, let's just trust "g++" to DTRT.
 
12726
  predep_objects_CXX=
 
12727
  postdep_objects_CXX=
 
12728
  postdeps_CXX=
 
12729
  ;;
 
12730
 
 
12731
linux*)
 
12732
  case `$CC -V 2>&1 | sed 5q` in
 
12733
  *Sun\ C*)
 
12734
    # Sun C++ 5.9
 
12735
    #
 
12736
    # The more standards-conforming stlport4 library is
 
12737
    # incompatible with the Cstd library. Avoid specifying
 
12738
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12739
    # -library=stlport4 depends on it.
 
12740
    case " $CXX $CXXFLAGS " in
 
12741
    *" -library=stlport4 "*)
 
12742
      solaris_use_stlport4=yes
 
12743
      ;;
 
12744
    esac
 
12745
    if test "$solaris_use_stlport4" != yes; then
 
12746
      postdeps_CXX='-library=Cstd -library=Crun'
 
12747
    fi
 
12748
    ;;
 
12749
  esac
 
12750
  ;;
 
12751
 
 
12752
solaris*)
 
12753
  case $cc_basename in
 
12754
  CC*)
 
12755
    # The more standards-conforming stlport4 library is
 
12756
    # incompatible with the Cstd library. Avoid specifying
 
12757
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12758
    # -library=stlport4 depends on it.
 
12759
    case " $CXX $CXXFLAGS " in
 
12760
    *" -library=stlport4 "*)
 
12761
      solaris_use_stlport4=yes
 
12762
      ;;
 
12763
    esac
 
12764
 
 
12765
    # Adding this requires a known-good setup of shared libraries for
 
12766
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12767
    # archive will be linked into the output, leading to subtle bugs.
 
12768
    if test "$solaris_use_stlport4" != yes; then
 
12769
      postdeps_CXX='-library=Cstd -library=Crun'
 
12770
    fi
 
12771
    ;;
 
12772
  esac
 
12773
  ;;
 
12774
esac
 
12775
 
 
12776
case " $postdeps_CXX " in
 
12777
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12778
esac
 
12779
 
 
12780
lt_prog_compiler_wl_CXX=
 
12781
lt_prog_compiler_pic_CXX=
 
12782
lt_prog_compiler_static_CXX=
 
12783
 
 
12784
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12785
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12786
 
 
12787
  # C++ specific cases for pic, static, wl, etc.
 
12788
  if test "$GXX" = yes; then
 
12789
    lt_prog_compiler_wl_CXX='-Wl,'
 
12790
    lt_prog_compiler_static_CXX='-static'
 
12791
 
 
12792
    case $host_os in
 
12793
    aix*)
 
12794
      # All AIX code is PIC.
 
12795
      if test "$host_cpu" = ia64; then
 
12796
        # AIX 5 now supports IA64 processor
 
12797
        lt_prog_compiler_static_CXX='-Bstatic'
 
12798
      fi
 
12799
      ;;
 
12800
    amigaos*)
 
12801
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12802
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12803
      # like `-m68040'.
 
12804
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12805
      ;;
 
12806
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12807
      # PIC is the default for these OSes.
 
12808
      ;;
 
12809
    mingw* | cygwin* | os2* | pw32*)
 
12810
      # This hack is so that the source file can tell whether it is being
 
12811
      # built for inclusion in a dll (and should export symbols for example).
 
12812
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12813
      # (--disable-auto-import) libraries
 
12814
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12815
      ;;
 
12816
    darwin* | rhapsody*)
 
12817
      # PIC is the default on this platform
 
12818
      # Common symbols not allowed in MH_DYLIB files
 
12819
      lt_prog_compiler_pic_CXX='-fno-common'
 
12820
      ;;
 
12821
    *djgpp*)
 
12822
      # DJGPP does not support shared libraries at all
 
12823
      lt_prog_compiler_pic_CXX=
 
12824
      ;;
 
12825
    interix[3-9]*)
 
12826
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12827
      # Instead, we relocate shared libraries at runtime.
 
12828
      ;;
 
12829
    sysv4*MP*)
 
12830
      if test -d /usr/nec; then
 
12831
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12832
      fi
 
12833
      ;;
 
12834
    hpux*)
 
12835
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12836
      # not for PA HP-UX.
 
12837
      case $host_cpu in
 
12838
      hppa*64*|ia64*)
 
12839
        ;;
 
12840
      *)
 
12841
        lt_prog_compiler_pic_CXX='-fPIC'
 
12842
        ;;
 
12843
      esac
 
12844
      ;;
 
12845
    *)
 
12846
      lt_prog_compiler_pic_CXX='-fPIC'
 
12847
      ;;
 
12848
    esac
 
12849
  else
 
12850
    case $host_os in
 
12851
      aix[4-9]*)
 
12852
        # All AIX code is PIC.
 
12853
        if test "$host_cpu" = ia64; then
 
12854
          # AIX 5 now supports IA64 processor
 
12855
          lt_prog_compiler_static_CXX='-Bstatic'
 
12856
        else
 
12857
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12858
        fi
 
12859
        ;;
 
12860
      chorus*)
 
12861
        case $cc_basename in
 
12862
        cxch68*)
 
12863
          # Green Hills C++ Compiler
 
12864
          # _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"
 
12865
          ;;
 
12866
        esac
 
12867
        ;;
 
12868
       darwin*)
 
12869
         # PIC is the default on this platform
 
12870
         # Common symbols not allowed in MH_DYLIB files
 
12871
         case $cc_basename in
 
12872
           xlc*)
 
12873
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12874
           lt_prog_compiler_wl_CXX='-Wl,'
 
12875
           ;;
 
12876
         esac
 
12877
       ;;
 
12878
      dgux*)
 
12879
        case $cc_basename in
 
12880
          ec++*)
 
12881
            lt_prog_compiler_pic_CXX='-KPIC'
 
12882
            ;;
 
12883
          ghcx*)
 
12884
            # Green Hills C++ Compiler
 
12885
            lt_prog_compiler_pic_CXX='-pic'
 
12886
            ;;
 
12887
          *)
 
12888
            ;;
 
12889
        esac
 
12890
        ;;
 
12891
      freebsd* | dragonfly*)
 
12892
        # FreeBSD uses GNU C++
 
12893
        ;;
 
12894
      hpux9* | hpux10* | hpux11*)
 
12895
        case $cc_basename in
 
12896
          CC*)
 
12897
            lt_prog_compiler_wl_CXX='-Wl,'
 
12898
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12899
            if test "$host_cpu" != ia64; then
 
12900
              lt_prog_compiler_pic_CXX='+Z'
 
12901
            fi
 
12902
            ;;
 
12903
          aCC*)
 
12904
            lt_prog_compiler_wl_CXX='-Wl,'
 
12905
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12906
            case $host_cpu in
 
12907
            hppa*64*|ia64*)
 
12908
              # +Z the default
 
12909
              ;;
 
12910
            *)
 
12911
              lt_prog_compiler_pic_CXX='+Z'
 
12912
              ;;
 
12913
            esac
 
12914
            ;;
 
12915
          *)
 
12916
            ;;
 
12917
        esac
 
12918
        ;;
 
12919
      interix*)
 
12920
        # This is c89, which is MS Visual C++ (no shared libs)
 
12921
        # Anyone wants to do a port?
 
12922
        ;;
 
12923
      irix5* | irix6* | nonstopux*)
 
12924
        case $cc_basename in
 
12925
          CC*)
 
12926
            lt_prog_compiler_wl_CXX='-Wl,'
 
12927
            lt_prog_compiler_static_CXX='-non_shared'
 
12928
            # CC pic flag -KPIC is the default.
 
12929
            ;;
 
12930
          *)
 
12931
            ;;
 
12932
        esac
 
12933
        ;;
 
12934
      linux* | k*bsd*-gnu)
 
12935
        case $cc_basename in
 
12936
          KCC*)
 
12937
            # KAI C++ Compiler
 
12938
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12939
            lt_prog_compiler_pic_CXX='-fPIC'
 
12940
            ;;
 
12941
          icpc* | ecpc*)
 
12942
            # Intel C++
 
12943
            lt_prog_compiler_wl_CXX='-Wl,'
 
12944
            lt_prog_compiler_pic_CXX='-KPIC'
 
12945
            lt_prog_compiler_static_CXX='-static'
 
12946
            ;;
 
12947
          pgCC* | pgcpp*)
 
12948
            # Portland Group C++ compiler.
 
12949
            lt_prog_compiler_wl_CXX='-Wl,'
 
12950
            lt_prog_compiler_pic_CXX='-fpic'
 
12951
            lt_prog_compiler_static_CXX='-Bstatic'
 
12952
            ;;
 
12953
          cxx*)
 
12954
            # Compaq C++
 
12955
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12956
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12957
            lt_prog_compiler_pic_CXX=
 
12958
            lt_prog_compiler_static_CXX='-non_shared'
 
12959
            ;;
 
12960
          *)
 
12961
            case `$CC -V 2>&1 | sed 5q` in
 
12962
            *Sun\ C*)
 
12963
              # Sun C++ 5.9
 
12964
              lt_prog_compiler_pic_CXX='-KPIC'
 
12965
              lt_prog_compiler_static_CXX='-Bstatic'
 
12966
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12967
              ;;
 
12968
            esac
 
12969
            ;;
 
12970
        esac
 
12971
        ;;
 
12972
      lynxos*)
 
12973
        ;;
 
12974
      m88k*)
 
12975
        ;;
 
12976
      mvs*)
 
12977
        case $cc_basename in
 
12978
          cxx*)
 
12979
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12980
            ;;
 
12981
          *)
 
12982
            ;;
 
12983
        esac
 
12984
        ;;
 
12985
      netbsd*)
 
12986
        ;;
 
12987
      osf3* | osf4* | osf5*)
 
12988
        case $cc_basename in
 
12989
          KCC*)
 
12990
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12991
            ;;
 
12992
          RCC*)
 
12993
            # Rational C++ 2.4.1
 
12994
            lt_prog_compiler_pic_CXX='-pic'
 
12995
            ;;
 
12996
          cxx*)
 
12997
            # Digital/Compaq C++
 
12998
            lt_prog_compiler_wl_CXX='-Wl,'
 
12999
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13000
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13001
            lt_prog_compiler_pic_CXX=
 
13002
            lt_prog_compiler_static_CXX='-non_shared'
 
13003
            ;;
 
13004
          *)
 
13005
            ;;
 
13006
        esac
 
13007
        ;;
 
13008
      psos*)
 
13009
        ;;
 
13010
      solaris*)
 
13011
        case $cc_basename in
 
13012
          CC*)
 
13013
            # Sun C++ 4.2, 5.x and Centerline C++
 
13014
            lt_prog_compiler_pic_CXX='-KPIC'
 
13015
            lt_prog_compiler_static_CXX='-Bstatic'
 
13016
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13017
            ;;
 
13018
          gcx*)
 
13019
            # Green Hills C++ Compiler
 
13020
            lt_prog_compiler_pic_CXX='-PIC'
 
13021
            ;;
 
13022
          *)
 
13023
            ;;
 
13024
        esac
 
13025
        ;;
 
13026
      sunos4*)
 
13027
        case $cc_basename in
 
13028
          CC*)
 
13029
            # Sun C++ 4.x
 
13030
            lt_prog_compiler_pic_CXX='-pic'
 
13031
            lt_prog_compiler_static_CXX='-Bstatic'
 
13032
            ;;
 
13033
          lcc*)
 
13034
            # Lucid
 
13035
            lt_prog_compiler_pic_CXX='-pic'
 
13036
            ;;
 
13037
          *)
 
13038
            ;;
 
13039
        esac
 
13040
        ;;
 
13041
      tandem*)
 
13042
        case $cc_basename in
 
13043
          NCC*)
 
13044
            # NonStop-UX NCC 3.20
 
13045
            lt_prog_compiler_pic_CXX='-KPIC'
 
13046
            ;;
 
13047
          *)
 
13048
            ;;
 
13049
        esac
 
13050
        ;;
 
13051
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13052
        case $cc_basename in
 
13053
          CC*)
 
13054
            lt_prog_compiler_wl_CXX='-Wl,'
 
13055
            lt_prog_compiler_pic_CXX='-KPIC'
 
13056
            lt_prog_compiler_static_CXX='-Bstatic'
 
13057
            ;;
 
13058
        esac
 
13059
        ;;
 
13060
      vxworks*)
 
13061
        ;;
 
13062
      *)
 
13063
        lt_prog_compiler_can_build_shared_CXX=no
 
13064
        ;;
 
13065
    esac
 
13066
  fi
 
13067
 
 
13068
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13069
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13070
 
 
13071
#
 
13072
# Check to make sure the PIC flag actually works.
 
13073
#
 
13074
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13075
 
 
13076
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13077
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13078
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13079
  $as_echo_n "(cached) " >&6
 
13080
else
 
13081
  lt_cv_prog_compiler_pic_works_CXX=no
 
13082
  ac_outfile=conftest.$ac_objext
 
13083
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13084
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13085
   # Insert the option either (1) after the last *FLAGS variable, or
 
13086
   # (2) before a word containing "conftest.", or (3) at the end.
 
13087
   # Note that $ac_compile itself does not contain backslashes and begins
 
13088
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13089
   # The option is referenced via a variable to avoid confusing sed.
 
13090
   lt_compile=`echo "$ac_compile" | $SED \
 
13091
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13092
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13093
   -e 's:$: $lt_compiler_flag:'`
 
13094
   (eval echo "\"\$as_me:13094: $lt_compile\"" >&5)
 
13095
   (eval "$lt_compile" 2>conftest.err)
 
13096
   ac_status=$?
 
13097
   cat conftest.err >&5
 
13098
   echo "$as_me:13098: \$? = $ac_status" >&5
 
13099
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13100
     # The compiler can only warn and ignore the option if not recognized
 
13101
     # So say no if there are warnings other than the usual output.
 
13102
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13103
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13104
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13105
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13106
     fi
 
13107
   fi
 
13108
   $rm conftest*
 
13109
 
 
13110
fi
 
13111
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13112
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13113
 
 
13114
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13115
    case $lt_prog_compiler_pic_CXX in
 
13116
     "" | " "*) ;;
 
13117
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13118
     esac
 
13119
else
 
13120
    lt_prog_compiler_pic_CXX=
 
13121
     lt_prog_compiler_can_build_shared_CXX=no
 
13122
fi
 
13123
 
 
13124
fi
 
13125
case $host_os in
 
13126
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13127
  *djgpp*)
 
13128
    lt_prog_compiler_pic_CXX=
 
13129
    ;;
 
13130
  *)
 
13131
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13132
    ;;
 
13133
esac
 
13134
 
 
13135
#
 
13136
# Check to make sure the static flag actually works.
 
13137
#
 
13138
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13139
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13140
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13141
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13142
  $as_echo_n "(cached) " >&6
 
13143
else
 
13144
  lt_cv_prog_compiler_static_works_CXX=no
 
13145
   save_LDFLAGS="$LDFLAGS"
 
13146
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13147
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13148
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13149
     # The linker can only warn and ignore the option if not recognized
 
13150
     # So say no if there are warnings
 
13151
     if test -s conftest.err; then
 
13152
       # Append any errors to the config.log.
 
13153
       cat conftest.err 1>&5
 
13154
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13155
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13156
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13157
         lt_cv_prog_compiler_static_works_CXX=yes
 
13158
       fi
 
13159
     else
 
13160
       lt_cv_prog_compiler_static_works_CXX=yes
 
13161
     fi
 
13162
   fi
 
13163
   $rm -r conftest*
 
13164
   LDFLAGS="$save_LDFLAGS"
 
13165
 
 
13166
fi
 
13167
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13168
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13169
 
 
13170
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13171
    :
 
13172
else
 
13173
    lt_prog_compiler_static_CXX=
 
13174
fi
 
13175
 
 
13176
 
 
13177
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13178
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13179
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13180
  $as_echo_n "(cached) " >&6
 
13181
else
 
13182
  lt_cv_prog_compiler_c_o_CXX=no
 
13183
   $rm -r conftest 2>/dev/null
 
13184
   mkdir conftest
 
13185
   cd conftest
 
13186
   mkdir out
 
13187
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13188
 
 
13189
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13190
   # Insert the option either (1) after the last *FLAGS variable, or
 
13191
   # (2) before a word containing "conftest.", or (3) at the end.
 
13192
   # Note that $ac_compile itself does not contain backslashes and begins
 
13193
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13194
   lt_compile=`echo "$ac_compile" | $SED \
 
13195
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13196
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13197
   -e 's:$: $lt_compiler_flag:'`
 
13198
   (eval echo "\"\$as_me:13198: $lt_compile\"" >&5)
 
13199
   (eval "$lt_compile" 2>out/conftest.err)
 
13200
   ac_status=$?
 
13201
   cat out/conftest.err >&5
 
13202
   echo "$as_me:13202: \$? = $ac_status" >&5
 
13203
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13204
   then
 
13205
     # The compiler can only warn and ignore the option if not recognized
 
13206
     # So say no if there are warnings
 
13207
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13208
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13209
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13210
       lt_cv_prog_compiler_c_o_CXX=yes
 
13211
     fi
 
13212
   fi
 
13213
   chmod u+w . 2>&5
 
13214
   $rm conftest*
 
13215
   # SGI C++ compiler will create directory out/ii_files/ for
 
13216
   # template instantiation
 
13217
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13218
   $rm out/* && rmdir out
 
13219
   cd ..
 
13220
   rmdir conftest
 
13221
   $rm conftest*
 
13222
 
 
13223
fi
 
13224
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13225
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13226
 
 
13227
 
 
13228
hard_links="nottested"
 
13229
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13230
  # do not overwrite the value of need_locks provided by the user
 
13231
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13232
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13233
  hard_links=yes
 
13234
  $rm conftest*
 
13235
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13236
  touch conftest.a
 
13237
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13238
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13239
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13240
$as_echo "$hard_links" >&6; }
 
13241
  if test "$hard_links" = no; then
 
13242
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13243
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13244
    need_locks=warn
 
13245
  fi
 
13246
else
 
13247
  need_locks=no
 
13248
fi
 
13249
 
 
13250
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13251
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13252
 
 
13253
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13254
  case $host_os in
 
13255
  aix[4-9]*)
 
13256
    # If we're using GNU nm, then we don't want the "-C" option.
 
13257
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13258
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13259
      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'
 
13260
    else
 
13261
      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'
 
13262
    fi
 
13263
    ;;
 
13264
  pw32*)
 
13265
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13266
  ;;
 
13267
  cygwin* | mingw*)
 
13268
    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'
 
13269
  ;;
 
13270
  *)
 
13271
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13272
  ;;
 
13273
  esac
 
13274
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13275
 
 
13276
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13277
$as_echo "$ld_shlibs_CXX" >&6; }
 
13278
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13279
 
 
13280
#
 
13281
# Do we need to explicitly link libc?
 
13282
#
 
13283
case "x$archive_cmds_need_lc_CXX" in
 
13284
x|xyes)
 
13285
  # Assume -lc should be added
 
13286
  archive_cmds_need_lc_CXX=yes
 
13287
 
 
13288
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13289
    case $archive_cmds_CXX in
 
13290
    *'~'*)
 
13291
      # FIXME: we may have to deal with multi-command sequences.
 
13292
      ;;
 
13293
    '$CC '*)
 
13294
      # Test whether the compiler implicitly links with -lc since on some
 
13295
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13296
      # to ld, don't add -lc before -lgcc.
 
13297
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13298
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13299
      $rm conftest*
 
13300
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13301
 
 
13302
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13303
  (eval $ac_compile) 2>&5
 
13304
  ac_status=$?
 
13305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13306
  (exit $ac_status); } 2>conftest.err; then
 
13307
        soname=conftest
 
13308
        lib=conftest
 
13309
        libobjs=conftest.$ac_objext
 
13310
        deplibs=
 
13311
        wl=$lt_prog_compiler_wl_CXX
 
13312
        pic_flag=$lt_prog_compiler_pic_CXX
 
13313
        compiler_flags=-v
 
13314
        linker_flags=-v
 
13315
        verstring=
 
13316
        output_objdir=.
 
13317
        libname=conftest
 
13318
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13319
        allow_undefined_flag_CXX=
 
13320
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13321
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13322
  ac_status=$?
 
13323
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13324
  (exit $ac_status); }
 
13325
        then
 
13326
          archive_cmds_need_lc_CXX=no
 
13327
        else
 
13328
          archive_cmds_need_lc_CXX=yes
 
13329
        fi
 
13330
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13331
      else
 
13332
        cat conftest.err 1>&5
 
13333
      fi
 
13334
      $rm conftest*
 
13335
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13336
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13337
      ;;
 
13338
    esac
 
13339
  fi
 
13340
  ;;
 
13341
esac
 
13342
 
 
13343
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13344
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13345
library_names_spec=
 
13346
libname_spec='lib$name'
 
13347
soname_spec=
 
13348
shrext_cmds=".so"
 
13349
postinstall_cmds=
 
13350
postuninstall_cmds=
 
13351
finish_cmds=
 
13352
finish_eval=
 
13353
shlibpath_var=
 
13354
shlibpath_overrides_runpath=unknown
 
13355
version_type=none
 
13356
dynamic_linker="$host_os ld.so"
 
13357
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13358
 
 
13359
need_lib_prefix=unknown
 
13360
hardcode_into_libs=no
 
13361
 
 
13362
# when you set need_version to no, make sure it does not cause -set_version
 
13363
# flags to be left without arguments
 
13364
need_version=unknown
 
13365
 
 
13366
case $host_os in
 
13367
aix3*)
 
13368
  version_type=linux
 
13369
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13370
  shlibpath_var=LIBPATH
 
13371
 
 
13372
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13373
  soname_spec='${libname}${release}${shared_ext}$major'
 
13374
  ;;
 
13375
 
 
13376
aix[4-9]*)
 
13377
  version_type=linux
 
13378
  need_lib_prefix=no
 
13379
  need_version=no
 
13380
  hardcode_into_libs=yes
 
13381
  if test "$host_cpu" = ia64; then
 
13382
    # AIX 5 supports IA64
 
13383
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13384
    shlibpath_var=LD_LIBRARY_PATH
 
13385
  else
 
13386
    # With GCC up to 2.95.x, collect2 would create an import file
 
13387
    # for dependence libraries.  The import file would start with
 
13388
    # the line `#! .'.  This would cause the generated library to
 
13389
    # depend on `.', always an invalid library.  This was fixed in
 
13390
    # development snapshots of GCC prior to 3.0.
 
13391
    case $host_os in
 
13392
      aix4 | aix4.[01] | aix4.[01].*)
 
13393
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13394
           echo ' yes '
 
13395
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13396
        :
 
13397
      else
 
13398
        can_build_shared=no
 
13399
      fi
 
13400
      ;;
 
13401
    esac
 
13402
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13403
    # soname into executable. Probably we can add versioning support to
 
13404
    # collect2, so additional links can be useful in future.
 
13405
    if test "$aix_use_runtimelinking" = yes; then
 
13406
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13407
      # instead of lib<name>.a to let people know that these are not
 
13408
      # typical AIX shared libraries.
 
13409
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13410
    else
 
13411
      # We preserve .a as extension for shared libraries through AIX4.2
 
13412
      # and later when we are not doing run time linking.
 
13413
      library_names_spec='${libname}${release}.a $libname.a'
 
13414
      soname_spec='${libname}${release}${shared_ext}$major'
 
13415
    fi
 
13416
    shlibpath_var=LIBPATH
 
13417
  fi
 
13418
  ;;
 
13419
 
 
13420
amigaos*)
 
13421
  library_names_spec='$libname.ixlibrary $libname.a'
 
13422
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13423
  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'
 
13424
  ;;
 
13425
 
 
13426
beos*)
 
13427
  library_names_spec='${libname}${shared_ext}'
 
13428
  dynamic_linker="$host_os ld.so"
 
13429
  shlibpath_var=LIBRARY_PATH
 
13430
  ;;
 
13431
 
 
13432
bsdi[45]*)
 
13433
  version_type=linux
 
13434
  need_version=no
 
13435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13436
  soname_spec='${libname}${release}${shared_ext}$major'
 
13437
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13438
  shlibpath_var=LD_LIBRARY_PATH
 
13439
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13440
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13441
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13442
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13443
  # libtool to hard-code these into programs
 
13444
  ;;
 
13445
 
 
13446
cygwin* | mingw* | pw32*)
 
13447
  version_type=windows
 
13448
  shrext_cmds=".dll"
 
13449
  need_version=no
 
13450
  need_lib_prefix=no
 
13451
 
 
13452
  case $GCC,$host_os in
 
13453
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13454
    library_names_spec='$libname.dll.a'
 
13455
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13456
    postinstall_cmds='base_file=`basename \${file}`~
 
13457
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13458
      dldir=$destdir/`dirname \$dlpath`~
 
13459
      test -d \$dldir || mkdir -p \$dldir~
 
13460
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13461
      chmod a+x \$dldir/$dlname'
 
13462
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13463
      dlpath=$dir/\$dldll~
 
13464
       $rm \$dlpath'
 
13465
    shlibpath_overrides_runpath=yes
 
13466
 
 
13467
    case $host_os in
 
13468
    cygwin*)
 
13469
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13470
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13471
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13472
      ;;
 
13473
    mingw*)
 
13474
      # MinGW DLLs use traditional 'lib' prefix
 
13475
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13476
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13477
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13478
        # It is most probably a Windows format PATH printed by
 
13479
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13480
        # path with ; separators, and with drive letters. We can handle the
 
13481
        # drive letters (cygwin fileutils understands them), so leave them,
 
13482
        # especially as we might pass files found there to a mingw objdump,
 
13483
        # which wouldn't understand a cygwinified path. Ahh.
 
13484
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13485
      else
 
13486
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13487
      fi
 
13488
      ;;
 
13489
    pw32*)
 
13490
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13491
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13492
      ;;
 
13493
    esac
 
13494
    ;;
 
13495
 
 
13496
  *)
 
13497
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13498
    ;;
 
13499
  esac
 
13500
  dynamic_linker='Win32 ld.exe'
 
13501
  # FIXME: first we should search . and the directory the executable is in
 
13502
  shlibpath_var=PATH
 
13503
  ;;
 
13504
 
 
13505
darwin* | rhapsody*)
 
13506
  dynamic_linker="$host_os dyld"
 
13507
  version_type=darwin
 
13508
  need_lib_prefix=no
 
13509
  need_version=no
 
13510
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13511
  soname_spec='${libname}${release}${major}$shared_ext'
 
13512
  shlibpath_overrides_runpath=yes
 
13513
  shlibpath_var=DYLD_LIBRARY_PATH
 
13514
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13515
 
 
13516
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13517
  ;;
 
13518
 
 
13519
dgux*)
 
13520
  version_type=linux
 
13521
  need_lib_prefix=no
 
13522
  need_version=no
 
13523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13524
  soname_spec='${libname}${release}${shared_ext}$major'
 
13525
  shlibpath_var=LD_LIBRARY_PATH
 
13526
  ;;
 
13527
 
 
13528
freebsd1*)
 
13529
  dynamic_linker=no
 
13530
  ;;
 
13531
 
 
13532
freebsd* | dragonfly*)
 
13533
  # DragonFly does not have aout.  When/if they implement a new
 
13534
  # versioning mechanism, adjust this.
 
13535
  if test -x /usr/bin/objformat; then
 
13536
    objformat=`/usr/bin/objformat`
 
13537
  else
 
13538
    case $host_os in
 
13539
    freebsd[123]*) objformat=aout ;;
 
13540
    *) objformat=elf ;;
 
13541
    esac
 
13542
  fi
 
13543
  version_type=freebsd-$objformat
 
13544
  case $version_type in
 
13545
    freebsd-elf*)
 
13546
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13547
      need_version=no
 
13548
      need_lib_prefix=no
 
13549
      ;;
 
13550
    freebsd-*)
 
13551
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13552
      need_version=yes
 
13553
      ;;
 
13554
  esac
 
13555
  shlibpath_var=LD_LIBRARY_PATH
 
13556
  case $host_os in
 
13557
  freebsd2*)
 
13558
    shlibpath_overrides_runpath=yes
 
13559
    ;;
 
13560
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13561
    shlibpath_overrides_runpath=yes
 
13562
    hardcode_into_libs=yes
 
13563
    ;;
 
13564
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13565
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13566
    shlibpath_overrides_runpath=no
 
13567
    hardcode_into_libs=yes
 
13568
    ;;
 
13569
  *) # from 4.6 on, and DragonFly
 
13570
    shlibpath_overrides_runpath=yes
 
13571
    hardcode_into_libs=yes
 
13572
    ;;
 
13573
  esac
 
13574
  ;;
 
13575
 
 
13576
gnu*)
 
13577
  version_type=linux
 
13578
  need_lib_prefix=no
 
13579
  need_version=no
 
13580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13581
  soname_spec='${libname}${release}${shared_ext}$major'
 
13582
  shlibpath_var=LD_LIBRARY_PATH
 
13583
  hardcode_into_libs=yes
 
13584
  ;;
 
13585
 
 
13586
hpux9* | hpux10* | hpux11*)
 
13587
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13588
  # link against other versions.
 
13589
  version_type=sunos
 
13590
  need_lib_prefix=no
 
13591
  need_version=no
 
13592
  case $host_cpu in
 
13593
  ia64*)
 
13594
    shrext_cmds='.so'
 
13595
    hardcode_into_libs=yes
 
13596
    dynamic_linker="$host_os dld.so"
 
13597
    shlibpath_var=LD_LIBRARY_PATH
 
13598
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13599
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13600
    soname_spec='${libname}${release}${shared_ext}$major'
 
13601
    if test "X$HPUX_IA64_MODE" = X32; then
 
13602
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13603
    else
 
13604
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13605
    fi
 
13606
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13607
    ;;
 
13608
   hppa*64*)
 
13609
     shrext_cmds='.sl'
 
13610
     hardcode_into_libs=yes
 
13611
     dynamic_linker="$host_os dld.sl"
 
13612
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13613
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13614
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13615
     soname_spec='${libname}${release}${shared_ext}$major'
 
13616
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13617
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13618
     ;;
 
13619
   *)
 
13620
    shrext_cmds='.sl'
 
13621
    dynamic_linker="$host_os dld.sl"
 
13622
    shlibpath_var=SHLIB_PATH
 
13623
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13624
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13625
    soname_spec='${libname}${release}${shared_ext}$major'
 
13626
    ;;
 
13627
  esac
 
13628
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13629
  postinstall_cmds='chmod 555 $lib'
 
13630
  ;;
 
13631
 
 
13632
interix[3-9]*)
 
13633
  version_type=linux
 
13634
  need_lib_prefix=no
 
13635
  need_version=no
 
13636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13637
  soname_spec='${libname}${release}${shared_ext}$major'
 
13638
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13639
  shlibpath_var=LD_LIBRARY_PATH
 
13640
  shlibpath_overrides_runpath=no
 
13641
  hardcode_into_libs=yes
 
13642
  ;;
 
13643
 
 
13644
irix5* | irix6* | nonstopux*)
 
13645
  case $host_os in
 
13646
    nonstopux*) version_type=nonstopux ;;
 
13647
    *)
 
13648
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13649
                version_type=linux
 
13650
        else
 
13651
                version_type=irix
 
13652
        fi ;;
 
13653
  esac
 
13654
  need_lib_prefix=no
 
13655
  need_version=no
 
13656
  soname_spec='${libname}${release}${shared_ext}$major'
 
13657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13658
  case $host_os in
 
13659
  irix5* | nonstopux*)
 
13660
    libsuff= shlibsuff=
 
13661
    ;;
 
13662
  *)
 
13663
    case $LD in # libtool.m4 will add one of these switches to LD
 
13664
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13665
      libsuff= shlibsuff= libmagic=32-bit;;
 
13666
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13667
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13668
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13669
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13670
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13671
    esac
 
13672
    ;;
 
13673
  esac
 
13674
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13675
  shlibpath_overrides_runpath=no
 
13676
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13677
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13678
  hardcode_into_libs=yes
 
13679
  ;;
 
13680
 
 
13681
# No shared lib support for Linux oldld, aout, or coff.
 
13682
linux*oldld* | linux*aout* | linux*coff*)
 
13683
  dynamic_linker=no
 
13684
  ;;
 
13685
 
 
13686
# This must be Linux ELF.
 
13687
linux* | k*bsd*-gnu)
 
13688
  version_type=linux
 
13689
  need_lib_prefix=no
 
13690
  need_version=no
 
13691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13692
  soname_spec='${libname}${release}${shared_ext}$major'
 
13693
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13694
  shlibpath_var=LD_LIBRARY_PATH
 
13695
  shlibpath_overrides_runpath=no
 
13696
  # This implies no fast_install, which is unacceptable.
 
13697
  # Some rework will be needed to allow for fast_install
 
13698
  # before this can be enabled.
 
13699
  hardcode_into_libs=yes
 
13700
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13701
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13702
 
 
13703
  # Append ld.so.conf contents to the search path
 
13704
  if test -f /etc/ld.so.conf; then
 
13705
    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' ' '`
 
13706
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13707
  fi
 
13708
 
 
13709
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13710
  # powerpc, because MkLinux only supported shared libraries with the
 
13711
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13712
  # most powerpc-linux boxes support dynamic linking these days and
 
13713
  # people can always --disable-shared, the test was removed, and we
 
13714
  # assume the GNU/Linux dynamic linker is in use.
 
13715
  dynamic_linker='GNU/Linux ld.so'
 
13716
  ;;
 
13717
 
 
13718
netbsd*)
 
13719
  version_type=sunos
 
13720
  need_lib_prefix=no
 
13721
  need_version=no
 
13722
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13723
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13724
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13725
    dynamic_linker='NetBSD (a.out) ld.so'
 
13726
  else
 
13727
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13728
    soname_spec='${libname}${release}${shared_ext}$major'
 
13729
    dynamic_linker='NetBSD ld.elf_so'
 
13730
  fi
 
13731
  shlibpath_var=LD_LIBRARY_PATH
 
13732
  shlibpath_overrides_runpath=yes
 
13733
  hardcode_into_libs=yes
 
13734
  ;;
 
13735
 
 
13736
newsos6)
 
13737
  version_type=linux
 
13738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13739
  shlibpath_var=LD_LIBRARY_PATH
 
13740
  shlibpath_overrides_runpath=yes
 
13741
  ;;
 
13742
 
 
13743
nto-qnx*)
 
13744
  version_type=linux
 
13745
  need_lib_prefix=no
 
13746
  need_version=no
 
13747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13748
  soname_spec='${libname}${release}${shared_ext}$major'
 
13749
  shlibpath_var=LD_LIBRARY_PATH
 
13750
  shlibpath_overrides_runpath=yes
 
13751
  ;;
 
13752
 
 
13753
openbsd*)
 
13754
  version_type=sunos
 
13755
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13756
  need_lib_prefix=no
 
13757
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13758
  case $host_os in
 
13759
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13760
    *)                         need_version=no  ;;
 
13761
  esac
 
13762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13763
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13764
  shlibpath_var=LD_LIBRARY_PATH
 
13765
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13766
    case $host_os in
 
13767
      openbsd2.[89] | openbsd2.[89].*)
 
13768
        shlibpath_overrides_runpath=no
 
13769
        ;;
 
13770
      *)
 
13771
        shlibpath_overrides_runpath=yes
 
13772
        ;;
 
13773
      esac
 
13774
  else
 
13775
    shlibpath_overrides_runpath=yes
 
13776
  fi
 
13777
  ;;
 
13778
 
 
13779
os2*)
 
13780
  libname_spec='$name'
 
13781
  shrext_cmds=".dll"
 
13782
  need_lib_prefix=no
 
13783
  library_names_spec='$libname${shared_ext} $libname.a'
 
13784
  dynamic_linker='OS/2 ld.exe'
 
13785
  shlibpath_var=LIBPATH
 
13786
  ;;
 
13787
 
 
13788
osf3* | osf4* | osf5*)
 
13789
  version_type=osf
 
13790
  need_lib_prefix=no
 
13791
  need_version=no
 
13792
  soname_spec='${libname}${release}${shared_ext}$major'
 
13793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13794
  shlibpath_var=LD_LIBRARY_PATH
 
13795
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13796
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13797
  ;;
 
13798
 
 
13799
rdos*)
 
13800
  dynamic_linker=no
 
13801
  ;;
 
13802
 
 
13803
solaris*)
 
13804
  version_type=linux
 
13805
  need_lib_prefix=no
 
13806
  need_version=no
 
13807
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13808
  soname_spec='${libname}${release}${shared_ext}$major'
 
13809
  shlibpath_var=LD_LIBRARY_PATH
 
13810
  shlibpath_overrides_runpath=yes
 
13811
  hardcode_into_libs=yes
 
13812
  # ldd complains unless libraries are executable
 
13813
  postinstall_cmds='chmod +x $lib'
 
13814
  ;;
 
13815
 
 
13816
sunos4*)
 
13817
  version_type=sunos
 
13818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13819
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13820
  shlibpath_var=LD_LIBRARY_PATH
 
13821
  shlibpath_overrides_runpath=yes
 
13822
  if test "$with_gnu_ld" = yes; then
 
13823
    need_lib_prefix=no
 
13824
  fi
 
13825
  need_version=yes
 
13826
  ;;
 
13827
 
 
13828
sysv4 | sysv4.3*)
 
13829
  version_type=linux
 
13830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13831
  soname_spec='${libname}${release}${shared_ext}$major'
 
13832
  shlibpath_var=LD_LIBRARY_PATH
 
13833
  case $host_vendor in
 
13834
    sni)
 
13835
      shlibpath_overrides_runpath=no
 
13836
      need_lib_prefix=no
 
13837
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13838
      runpath_var=LD_RUN_PATH
 
13839
      ;;
 
13840
    siemens)
 
13841
      need_lib_prefix=no
 
13842
      ;;
 
13843
    motorola)
 
13844
      need_lib_prefix=no
 
13845
      need_version=no
 
13846
      shlibpath_overrides_runpath=no
 
13847
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13848
      ;;
 
13849
  esac
 
13850
  ;;
 
13851
 
 
13852
sysv4*MP*)
 
13853
  if test -d /usr/nec ;then
 
13854
    version_type=linux
 
13855
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13856
    soname_spec='$libname${shared_ext}.$major'
 
13857
    shlibpath_var=LD_LIBRARY_PATH
 
13858
  fi
 
13859
  ;;
 
13860
 
 
13861
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13862
  version_type=freebsd-elf
 
13863
  need_lib_prefix=no
 
13864
  need_version=no
 
13865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13866
  soname_spec='${libname}${release}${shared_ext}$major'
 
13867
  shlibpath_var=LD_LIBRARY_PATH
 
13868
  hardcode_into_libs=yes
 
13869
  if test "$with_gnu_ld" = yes; then
 
13870
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13871
    shlibpath_overrides_runpath=no
 
13872
  else
 
13873
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13874
    shlibpath_overrides_runpath=yes
 
13875
    case $host_os in
 
13876
      sco3.2v5*)
 
13877
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13878
        ;;
 
13879
    esac
 
13880
  fi
 
13881
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13882
  ;;
 
13883
 
 
13884
uts4*)
 
13885
  version_type=linux
 
13886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13887
  soname_spec='${libname}${release}${shared_ext}$major'
 
13888
  shlibpath_var=LD_LIBRARY_PATH
 
13889
  ;;
 
13890
 
 
13891
*)
 
13892
  dynamic_linker=no
 
13893
  ;;
 
13894
esac
 
13895
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13896
$as_echo "$dynamic_linker" >&6; }
 
13897
test "$dynamic_linker" = no && can_build_shared=no
 
13898
 
 
13899
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13900
  $as_echo_n "(cached) " >&6
 
13901
else
 
13902
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13903
fi
 
13904
 
 
13905
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13906
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13907
  $as_echo_n "(cached) " >&6
 
13908
else
 
13909
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13910
fi
 
13911
 
 
13912
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13913
 
 
13914
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13915
if test "$GCC" = yes; then
 
13916
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13917
fi
 
13918
 
 
13919
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13920
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
13921
hardcode_action_CXX=
 
13922
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13923
   test -n "$runpath_var_CXX" || \
 
13924
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13925
 
 
13926
  # We can hardcode non-existant directories.
 
13927
  if test "$hardcode_direct_CXX" != no &&
 
13928
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13929
     # have to relink, otherwise we might link with an installed library
 
13930
     # when we should be linking with a yet-to-be-installed one
 
13931
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13932
     test "$hardcode_minus_L_CXX" != no; then
 
13933
    # Linking always hardcodes the temporary library directory.
 
13934
    hardcode_action_CXX=relink
 
13935
  else
 
13936
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13937
    hardcode_action_CXX=immediate
 
13938
  fi
 
13939
else
 
13940
  # We cannot hardcode anything, or else we can only hardcode existing
 
13941
  # directories.
 
13942
  hardcode_action_CXX=unsupported
 
13943
fi
 
13944
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13945
$as_echo "$hardcode_action_CXX" >&6; }
 
13946
 
 
13947
if test "$hardcode_action_CXX" = relink; then
 
13948
  # Fast installation is not supported
 
13949
  enable_fast_install=no
 
13950
elif test "$shlibpath_overrides_runpath" = yes ||
 
13951
     test "$enable_shared" = no; then
 
13952
  # Fast installation is not necessary
 
13953
  enable_fast_install=needless
 
13954
fi
 
13955
 
 
13956
 
 
13957
# The else clause should only fire when bootstrapping the
 
13958
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13959
# with your package, and you will get complaints that there are
 
13960
# no rules to generate ltmain.sh.
 
13961
if test -f "$ltmain"; then
 
13962
  # See if we are running on zsh, and set the options which allow our commands through
 
13963
  # without removal of \ escapes.
 
13964
  if test -n "${ZSH_VERSION+set}" ; then
 
13965
    setopt NO_GLOB_SUBST
 
13966
  fi
 
13967
  # Now quote all the things that may contain metacharacters while being
 
13968
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13969
  # variables and quote the copies for generation of the libtool script.
 
13970
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13971
    SED SHELL STRIP \
 
13972
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13973
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13974
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13975
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13976
    lt_cv_sys_global_symbol_to_c_name_address \
 
13977
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13978
    old_postinstall_cmds old_postuninstall_cmds \
 
13979
    compiler_CXX \
 
13980
    CC_CXX \
 
13981
    LD_CXX \
 
13982
    lt_prog_compiler_wl_CXX \
 
13983
    lt_prog_compiler_pic_CXX \
 
13984
    lt_prog_compiler_static_CXX \
 
13985
    lt_prog_compiler_no_builtin_flag_CXX \
 
13986
    export_dynamic_flag_spec_CXX \
 
13987
    thread_safe_flag_spec_CXX \
 
13988
    whole_archive_flag_spec_CXX \
 
13989
    enable_shared_with_static_runtimes_CXX \
 
13990
    old_archive_cmds_CXX \
 
13991
    old_archive_from_new_cmds_CXX \
 
13992
    predep_objects_CXX \
 
13993
    postdep_objects_CXX \
 
13994
    predeps_CXX \
 
13995
    postdeps_CXX \
 
13996
    compiler_lib_search_path_CXX \
 
13997
    compiler_lib_search_dirs_CXX \
 
13998
    archive_cmds_CXX \
 
13999
    archive_expsym_cmds_CXX \
 
14000
    postinstall_cmds_CXX \
 
14001
    postuninstall_cmds_CXX \
 
14002
    old_archive_from_expsyms_cmds_CXX \
 
14003
    allow_undefined_flag_CXX \
 
14004
    no_undefined_flag_CXX \
 
14005
    export_symbols_cmds_CXX \
 
14006
    hardcode_libdir_flag_spec_CXX \
 
14007
    hardcode_libdir_flag_spec_ld_CXX \
 
14008
    hardcode_libdir_separator_CXX \
 
14009
    hardcode_automatic_CXX \
 
14010
    module_cmds_CXX \
 
14011
    module_expsym_cmds_CXX \
 
14012
    lt_cv_prog_compiler_c_o_CXX \
 
14013
    fix_srcfile_path_CXX \
 
14014
    exclude_expsyms_CXX \
 
14015
    include_expsyms_CXX; do
 
14016
 
 
14017
    case $var in
 
14018
    old_archive_cmds_CXX | \
 
14019
    old_archive_from_new_cmds_CXX | \
 
14020
    archive_cmds_CXX | \
 
14021
    archive_expsym_cmds_CXX | \
 
14022
    module_cmds_CXX | \
 
14023
    module_expsym_cmds_CXX | \
 
14024
    old_archive_from_expsyms_cmds_CXX | \
 
14025
    export_symbols_cmds_CXX | \
 
14026
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14027
    postinstall_cmds | postuninstall_cmds | \
 
14028
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14029
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14030
      # Double-quote double-evaled strings.
 
14031
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14032
      ;;
 
14033
    *)
 
14034
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14035
      ;;
 
14036
    esac
 
14037
  done
 
14038
 
 
14039
  case $lt_echo in
 
14040
  *'\$0 --fallback-echo"')
 
14041
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14042
    ;;
 
14043
  esac
 
14044
 
 
14045
cfgfile="$ofile"
 
14046
 
 
14047
  cat <<__EOF__ >> "$cfgfile"
 
14048
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14049
 
 
14050
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14051
 
 
14052
# Shell to use when invoking shell scripts.
 
14053
SHELL=$lt_SHELL
 
14054
 
 
14055
# Whether or not to build shared libraries.
 
14056
build_libtool_libs=$enable_shared
 
14057
 
 
14058
# Whether or not to build static libraries.
 
14059
build_old_libs=$enable_static
 
14060
 
 
14061
# Whether or not to add -lc for building shared libraries.
 
14062
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14063
 
 
14064
# Whether or not to disallow shared libs when runtime libs are static
 
14065
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14066
 
 
14067
# Whether or not to optimize for fast installation.
 
14068
fast_install=$enable_fast_install
 
14069
 
 
14070
# The host system.
 
14071
host_alias=$host_alias
 
14072
host=$host
 
14073
host_os=$host_os
 
14074
 
 
14075
# The build system.
 
14076
build_alias=$build_alias
 
14077
build=$build
 
14078
build_os=$build_os
 
14079
 
 
14080
# An echo program that does not interpret backslashes.
 
14081
echo=$lt_echo
 
14082
 
 
14083
# The archiver.
 
14084
AR=$lt_AR
 
14085
AR_FLAGS=$lt_AR_FLAGS
 
14086
 
 
14087
# A C compiler.
 
14088
LTCC=$lt_LTCC
 
14089
 
 
14090
# LTCC compiler flags.
 
14091
LTCFLAGS=$lt_LTCFLAGS
 
14092
 
 
14093
# A language-specific compiler.
 
14094
CC=$lt_compiler_CXX
 
14095
 
 
14096
# Is the compiler the GNU C compiler?
 
14097
with_gcc=$GCC_CXX
 
14098
 
 
14099
# An ERE matcher.
 
14100
EGREP=$lt_EGREP
 
14101
 
 
14102
# The linker used to build libraries.
 
14103
LD=$lt_LD_CXX
 
14104
 
 
14105
# Whether we need hard or soft links.
 
14106
LN_S=$lt_LN_S
 
14107
 
 
14108
# A BSD-compatible nm program.
 
14109
NM=$lt_NM
 
14110
 
 
14111
# A symbol stripping program
 
14112
STRIP=$lt_STRIP
 
14113
 
 
14114
# Used to examine libraries when file_magic_cmd begins "file"
 
14115
MAGIC_CMD=$MAGIC_CMD
 
14116
 
 
14117
# Used on cygwin: DLL creation program.
 
14118
DLLTOOL="$DLLTOOL"
 
14119
 
 
14120
# Used on cygwin: object dumper.
 
14121
OBJDUMP="$OBJDUMP"
 
14122
 
 
14123
# Used on cygwin: assembler.
 
14124
AS="$AS"
 
14125
 
 
14126
# The name of the directory that contains temporary libtool files.
 
14127
objdir=$objdir
 
14128
 
 
14129
# How to create reloadable object files.
 
14130
reload_flag=$lt_reload_flag
 
14131
reload_cmds=$lt_reload_cmds
 
14132
 
 
14133
# How to pass a linker flag through the compiler.
 
14134
wl=$lt_lt_prog_compiler_wl_CXX
 
14135
 
 
14136
# Object file suffix (normally "o").
 
14137
objext="$ac_objext"
 
14138
 
 
14139
# Old archive suffix (normally "a").
 
14140
libext="$libext"
 
14141
 
 
14142
# Shared library suffix (normally ".so").
 
14143
shrext_cmds='$shrext_cmds'
 
14144
 
 
14145
# Executable file suffix (normally "").
 
14146
exeext="$exeext"
 
14147
 
 
14148
# Additional compiler flags for building library objects.
 
14149
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14150
pic_mode=$pic_mode
 
14151
 
 
14152
# What is the maximum length of a command?
 
14153
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14154
 
 
14155
# Does compiler simultaneously support -c and -o options?
 
14156
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14157
 
 
14158
# Must we lock files when doing compilation?
 
14159
need_locks=$lt_need_locks
 
14160
 
 
14161
# Do we need the lib prefix for modules?
 
14162
need_lib_prefix=$need_lib_prefix
 
14163
 
 
14164
# Do we need a version for libraries?
 
14165
need_version=$need_version
 
14166
 
 
14167
# Whether dlopen is supported.
 
14168
dlopen_support=$enable_dlopen
 
14169
 
 
14170
# Whether dlopen of programs is supported.
 
14171
dlopen_self=$enable_dlopen_self
 
14172
 
 
14173
# Whether dlopen of statically linked programs is supported.
 
14174
dlopen_self_static=$enable_dlopen_self_static
 
14175
 
 
14176
# Compiler flag to prevent dynamic linking.
 
14177
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14178
 
 
14179
# Compiler flag to turn off builtin functions.
 
14180
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14181
 
 
14182
# Compiler flag to allow reflexive dlopens.
 
14183
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14184
 
 
14185
# Compiler flag to generate shared objects directly from archives.
 
14186
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14187
 
 
14188
# Compiler flag to generate thread-safe objects.
 
14189
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14190
 
 
14191
# Library versioning type.
 
14192
version_type=$version_type
 
14193
 
 
14194
# Format of library name prefix.
 
14195
libname_spec=$lt_libname_spec
 
14196
 
 
14197
# List of archive names.  First name is the real one, the rest are links.
 
14198
# The last name is the one that the linker finds with -lNAME.
 
14199
library_names_spec=$lt_library_names_spec
 
14200
 
 
14201
# The coded name of the library, if different from the real name.
 
14202
soname_spec=$lt_soname_spec
 
14203
 
 
14204
# Commands used to build and install an old-style archive.
 
14205
RANLIB=$lt_RANLIB
 
14206
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14207
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14208
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14209
 
 
14210
# Create an old-style archive from a shared archive.
 
14211
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14212
 
 
14213
# Create a temporary old-style archive to link instead of a shared archive.
 
14214
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14215
 
 
14216
# Commands used to build and install a shared archive.
 
14217
archive_cmds=$lt_archive_cmds_CXX
 
14218
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14219
postinstall_cmds=$lt_postinstall_cmds
 
14220
postuninstall_cmds=$lt_postuninstall_cmds
 
14221
 
 
14222
# Commands used to build a loadable module (assumed same as above if empty)
 
14223
module_cmds=$lt_module_cmds_CXX
 
14224
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14225
 
 
14226
# Commands to strip libraries.
 
14227
old_striplib=$lt_old_striplib
 
14228
striplib=$lt_striplib
 
14229
 
 
14230
# Dependencies to place before the objects being linked to create a
 
14231
# shared library.
 
14232
predep_objects=$lt_predep_objects_CXX
 
14233
 
 
14234
# Dependencies to place after the objects being linked to create a
 
14235
# shared library.
 
14236
postdep_objects=$lt_postdep_objects_CXX
 
14237
 
 
14238
# Dependencies to place before the objects being linked to create a
 
14239
# shared library.
 
14240
predeps=$lt_predeps_CXX
 
14241
 
 
14242
# Dependencies to place after the objects being linked to create a
 
14243
# shared library.
 
14244
postdeps=$lt_postdeps_CXX
 
14245
 
 
14246
# The directories searched by this compiler when creating a shared
 
14247
# library
 
14248
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14249
 
 
14250
# The library search path used internally by the compiler when linking
 
14251
# a shared library.
 
14252
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14253
 
 
14254
# Method to check whether dependent libraries are shared objects.
 
14255
deplibs_check_method=$lt_deplibs_check_method
 
14256
 
 
14257
# Command to use when deplibs_check_method == file_magic.
 
14258
file_magic_cmd=$lt_file_magic_cmd
 
14259
 
 
14260
# Flag that allows shared libraries with undefined symbols to be built.
 
14261
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14262
 
 
14263
# Flag that forces no undefined symbols.
 
14264
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14265
 
 
14266
# Commands used to finish a libtool library installation in a directory.
 
14267
finish_cmds=$lt_finish_cmds
 
14268
 
 
14269
# Same as above, but a single script fragment to be evaled but not shown.
 
14270
finish_eval=$lt_finish_eval
 
14271
 
 
14272
# Take the output of nm and produce a listing of raw symbols and C names.
 
14273
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14274
 
 
14275
# Transform the output of nm in a proper C declaration
 
14276
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14277
 
 
14278
# Transform the output of nm in a C name address pair
 
14279
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14280
 
 
14281
# This is the shared library runtime path variable.
 
14282
runpath_var=$runpath_var
 
14283
 
 
14284
# This is the shared library path variable.
 
14285
shlibpath_var=$shlibpath_var
 
14286
 
 
14287
# Is shlibpath searched before the hard-coded library search path?
 
14288
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14289
 
 
14290
# How to hardcode a shared library path into an executable.
 
14291
hardcode_action=$hardcode_action_CXX
 
14292
 
 
14293
# Whether we should hardcode library paths into libraries.
 
14294
hardcode_into_libs=$hardcode_into_libs
 
14295
 
 
14296
# Flag to hardcode \$libdir into a binary during linking.
 
14297
# This must work even if \$libdir does not exist.
 
14298
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14299
 
 
14300
# If ld is used when linking, flag to hardcode \$libdir into
 
14301
# a binary during linking. This must work even if \$libdir does
 
14302
# not exist.
 
14303
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14304
 
 
14305
# Whether we need a single -rpath flag with a separated argument.
 
14306
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14307
 
 
14308
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14309
# resulting binary.
 
14310
hardcode_direct=$hardcode_direct_CXX
 
14311
 
 
14312
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14313
# resulting binary.
 
14314
hardcode_minus_L=$hardcode_minus_L_CXX
 
14315
 
 
14316
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14317
# the resulting binary.
 
14318
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14319
 
 
14320
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14321
# and all subsequent libraries and executables linked against it.
 
14322
hardcode_automatic=$hardcode_automatic_CXX
 
14323
 
 
14324
# Variables whose values should be saved in libtool wrapper scripts and
 
14325
# restored at relink time.
 
14326
variables_saved_for_relink="$variables_saved_for_relink"
 
14327
 
 
14328
# Whether libtool must link a program against all its dependency libraries.
 
14329
link_all_deplibs=$link_all_deplibs_CXX
 
14330
 
 
14331
# Compile-time system search path for libraries
 
14332
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14333
 
 
14334
# Run-time system search path for libraries
 
14335
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14336
 
 
14337
# Fix the shell variable \$srcfile for the compiler.
 
14338
fix_srcfile_path=$lt_fix_srcfile_path
 
14339
 
 
14340
# Set to yes if exported symbols are required.
 
14341
always_export_symbols=$always_export_symbols_CXX
 
14342
 
 
14343
# The commands to list exported symbols.
 
14344
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14345
 
 
14346
# The commands to extract the exported symbol list from a shared archive.
 
14347
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14348
 
 
14349
# Symbols that should not be listed in the preloaded symbols.
 
14350
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14351
 
 
14352
# Symbols that must always be exported.
 
14353
include_expsyms=$lt_include_expsyms_CXX
 
14354
 
 
14355
# ### END LIBTOOL TAG CONFIG: $tagname
 
14356
 
 
14357
__EOF__
 
14358
 
 
14359
 
 
14360
else
 
14361
  # If there is no Makefile yet, we rely on a make rule to execute
 
14362
  # `config.status --recheck' to rerun these tests and create the
 
14363
  # libtool script then.
 
14364
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14365
  if test -f "$ltmain_in"; then
 
14366
    test -f Makefile && make "$ltmain"
 
14367
  fi
 
14368
fi
 
14369
 
 
14370
 
 
14371
ac_ext=c
 
14372
ac_cpp='$CPP $CPPFLAGS'
 
14373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14376
 
 
14377
CC=$lt_save_CC
 
14378
LDCXX=$LD
 
14379
LD=$lt_save_LD
 
14380
GCC=$lt_save_GCC
 
14381
with_gnu_ldcxx=$with_gnu_ld
 
14382
with_gnu_ld=$lt_save_with_gnu_ld
 
14383
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14384
lt_cv_path_LD=$lt_save_path_LD
 
14385
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14386
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14387
 
 
14388
        else
 
14389
          tagname=""
 
14390
        fi
 
14391
        ;;
 
14392
 
 
14393
      F77)
 
14394
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14395
 
 
14396
ac_ext=f
 
14397
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14398
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14399
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14400
 
 
14401
 
 
14402
archive_cmds_need_lc_F77=no
 
14403
allow_undefined_flag_F77=
 
14404
always_export_symbols_F77=no
 
14405
archive_expsym_cmds_F77=
 
14406
export_dynamic_flag_spec_F77=
 
14407
hardcode_direct_F77=no
 
14408
hardcode_libdir_flag_spec_F77=
 
14409
hardcode_libdir_flag_spec_ld_F77=
 
14410
hardcode_libdir_separator_F77=
 
14411
hardcode_minus_L_F77=no
 
14412
hardcode_automatic_F77=no
 
14413
module_cmds_F77=
 
14414
module_expsym_cmds_F77=
 
14415
link_all_deplibs_F77=unknown
 
14416
old_archive_cmds_F77=$old_archive_cmds
 
14417
no_undefined_flag_F77=
 
14418
whole_archive_flag_spec_F77=
 
14419
enable_shared_with_static_runtimes_F77=no
 
14420
 
 
14421
# Source file extension for f77 test sources.
 
14422
ac_ext=f
 
14423
 
 
14424
# Object file extension for compiled f77 test sources.
 
14425
objext=o
 
14426
objext_F77=$objext
 
14427
 
 
14428
# Code to be used in simple compile tests
 
14429
lt_simple_compile_test_code="\
 
14430
      subroutine t
 
14431
      return
 
14432
      end
 
14433
"
 
14434
 
 
14435
# Code to be used in simple link tests
 
14436
lt_simple_link_test_code="\
 
14437
      program t
 
14438
      end
 
14439
"
 
14440
 
 
14441
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14442
 
 
14443
# If no C compiler was specified, use CC.
 
14444
LTCC=${LTCC-"$CC"}
 
14445
 
 
14446
# If no C compiler flags were specified, use CFLAGS.
 
14447
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14448
 
 
14449
# Allow CC to be a program name with arguments.
 
14450
compiler=$CC
 
14451
 
 
14452
 
 
14453
# save warnings/boilerplate of simple test code
 
14454
ac_outfile=conftest.$ac_objext
 
14455
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14456
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14457
_lt_compiler_boilerplate=`cat conftest.err`
 
14458
$rm conftest*
 
14459
 
 
14460
ac_outfile=conftest.$ac_objext
 
14461
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14462
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14463
_lt_linker_boilerplate=`cat conftest.err`
 
14464
$rm -r conftest*
 
14465
 
 
14466
 
 
14467
# Allow CC to be a program name with arguments.
 
14468
lt_save_CC="$CC"
 
14469
CC=${F77-"f77"}
 
14470
compiler=$CC
 
14471
compiler_F77=$CC
 
14472
for cc_temp in $compiler""; do
 
14473
  case $cc_temp in
 
14474
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14475
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14476
    \-*) ;;
 
14477
    *) break;;
 
14478
  esac
 
14479
done
 
14480
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14481
 
 
14482
 
 
14483
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14484
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14485
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14486
$as_echo "$can_build_shared" >&6; }
 
14487
 
 
14488
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14489
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14490
test "$can_build_shared" = "no" && enable_shared=no
 
14491
 
 
14492
# On AIX, shared libraries and static libraries use the same namespace, and
 
14493
# are all built from PIC.
 
14494
case $host_os in
 
14495
aix3*)
 
14496
  test "$enable_shared" = yes && enable_static=no
 
14497
  if test -n "$RANLIB"; then
 
14498
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14499
    postinstall_cmds='$RANLIB $lib'
 
14500
  fi
 
14501
  ;;
 
14502
aix[4-9]*)
 
14503
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14504
    test "$enable_shared" = yes && enable_static=no
 
14505
  fi
 
14506
  ;;
 
14507
esac
 
14508
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14509
$as_echo "$enable_shared" >&6; }
 
14510
 
 
14511
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14512
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14513
# Make sure either enable_shared or enable_static is yes.
 
14514
test "$enable_shared" = yes || enable_static=yes
 
14515
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14516
$as_echo "$enable_static" >&6; }
 
14517
 
 
14518
GCC_F77="$G77"
 
14519
LD_F77="$LD"
 
14520
 
 
14521
lt_prog_compiler_wl_F77=
 
14522
lt_prog_compiler_pic_F77=
 
14523
lt_prog_compiler_static_F77=
 
14524
 
 
14525
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14526
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14527
 
 
14528
  if test "$GCC" = yes; then
 
14529
    lt_prog_compiler_wl_F77='-Wl,'
 
14530
    lt_prog_compiler_static_F77='-static'
 
14531
 
 
14532
    case $host_os in
 
14533
      aix*)
 
14534
      # All AIX code is PIC.
 
14535
      if test "$host_cpu" = ia64; then
 
14536
        # AIX 5 now supports IA64 processor
 
14537
        lt_prog_compiler_static_F77='-Bstatic'
 
14538
      fi
 
14539
      ;;
 
14540
 
 
14541
    amigaos*)
 
14542
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14543
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14544
      # like `-m68040'.
 
14545
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14546
      ;;
 
14547
 
 
14548
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14549
      # PIC is the default for these OSes.
 
14550
      ;;
 
14551
 
 
14552
    mingw* | cygwin* | pw32* | os2*)
 
14553
      # This hack is so that the source file can tell whether it is being
 
14554
      # built for inclusion in a dll (and should export symbols for example).
 
14555
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14556
      # (--disable-auto-import) libraries
 
14557
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14558
      ;;
 
14559
 
 
14560
    darwin* | rhapsody*)
 
14561
      # PIC is the default on this platform
 
14562
      # Common symbols not allowed in MH_DYLIB files
 
14563
      lt_prog_compiler_pic_F77='-fno-common'
 
14564
      ;;
 
14565
 
 
14566
    interix[3-9]*)
 
14567
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14568
      # Instead, we relocate shared libraries at runtime.
 
14569
      ;;
 
14570
 
 
14571
    msdosdjgpp*)
 
14572
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14573
      # on systems that don't support them.
 
14574
      lt_prog_compiler_can_build_shared_F77=no
 
14575
      enable_shared=no
 
14576
      ;;
 
14577
 
 
14578
    sysv4*MP*)
 
14579
      if test -d /usr/nec; then
 
14580
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14581
      fi
 
14582
      ;;
 
14583
 
 
14584
    hpux*)
 
14585
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14586
      # not for PA HP-UX.
 
14587
      case $host_cpu in
 
14588
      hppa*64*|ia64*)
 
14589
        # +Z the default
 
14590
        ;;
 
14591
      *)
 
14592
        lt_prog_compiler_pic_F77='-fPIC'
 
14593
        ;;
 
14594
      esac
 
14595
      ;;
 
14596
 
 
14597
    *)
 
14598
      lt_prog_compiler_pic_F77='-fPIC'
 
14599
      ;;
 
14600
    esac
 
14601
  else
 
14602
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14603
    case $host_os in
 
14604
    aix*)
 
14605
      lt_prog_compiler_wl_F77='-Wl,'
 
14606
      if test "$host_cpu" = ia64; then
 
14607
        # AIX 5 now supports IA64 processor
 
14608
        lt_prog_compiler_static_F77='-Bstatic'
 
14609
      else
 
14610
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14611
      fi
 
14612
      ;;
 
14613
      darwin*)
 
14614
        # PIC is the default on this platform
 
14615
        # Common symbols not allowed in MH_DYLIB files
 
14616
       case $cc_basename in
 
14617
         xlc*)
 
14618
         lt_prog_compiler_pic_F77='-qnocommon'
 
14619
         lt_prog_compiler_wl_F77='-Wl,'
 
14620
         ;;
 
14621
       esac
 
14622
       ;;
 
14623
 
 
14624
    mingw* | cygwin* | pw32* | os2*)
 
14625
      # This hack is so that the source file can tell whether it is being
 
14626
      # built for inclusion in a dll (and should export symbols for example).
 
14627
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14628
      ;;
 
14629
 
 
14630
    hpux9* | hpux10* | hpux11*)
 
14631
      lt_prog_compiler_wl_F77='-Wl,'
 
14632
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14633
      # not for PA HP-UX.
 
14634
      case $host_cpu in
 
14635
      hppa*64*|ia64*)
 
14636
        # +Z the default
 
14637
        ;;
 
14638
      *)
 
14639
        lt_prog_compiler_pic_F77='+Z'
 
14640
        ;;
 
14641
      esac
 
14642
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14643
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14644
      ;;
 
14645
 
 
14646
    irix5* | irix6* | nonstopux*)
 
14647
      lt_prog_compiler_wl_F77='-Wl,'
 
14648
      # PIC (with -KPIC) is the default.
 
14649
      lt_prog_compiler_static_F77='-non_shared'
 
14650
      ;;
 
14651
 
 
14652
    newsos6)
 
14653
      lt_prog_compiler_pic_F77='-KPIC'
 
14654
      lt_prog_compiler_static_F77='-Bstatic'
 
14655
      ;;
 
14656
 
 
14657
    linux* | k*bsd*-gnu)
 
14658
      case $cc_basename in
 
14659
      icc* | ecc*)
 
14660
        lt_prog_compiler_wl_F77='-Wl,'
 
14661
        lt_prog_compiler_pic_F77='-KPIC'
 
14662
        lt_prog_compiler_static_F77='-static'
 
14663
        ;;
 
14664
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14665
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14666
        # which looks to be a dead project)
 
14667
        lt_prog_compiler_wl_F77='-Wl,'
 
14668
        lt_prog_compiler_pic_F77='-fpic'
 
14669
        lt_prog_compiler_static_F77='-Bstatic'
 
14670
        ;;
 
14671
      ccc*)
 
14672
        lt_prog_compiler_wl_F77='-Wl,'
 
14673
        # All Alpha code is PIC.
 
14674
        lt_prog_compiler_static_F77='-non_shared'
 
14675
        ;;
 
14676
      *)
 
14677
        case `$CC -V 2>&1 | sed 5q` in
 
14678
        *Sun\ C*)
 
14679
          # Sun C 5.9
 
14680
          lt_prog_compiler_pic_F77='-KPIC'
 
14681
          lt_prog_compiler_static_F77='-Bstatic'
 
14682
          lt_prog_compiler_wl_F77='-Wl,'
 
14683
          ;;
 
14684
        *Sun\ F*)
 
14685
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14686
          lt_prog_compiler_pic_F77='-KPIC'
 
14687
          lt_prog_compiler_static_F77='-Bstatic'
 
14688
          lt_prog_compiler_wl_F77=''
 
14689
          ;;
 
14690
        esac
 
14691
        ;;
 
14692
      esac
 
14693
      ;;
 
14694
 
 
14695
    osf3* | osf4* | osf5*)
 
14696
      lt_prog_compiler_wl_F77='-Wl,'
 
14697
      # All OSF/1 code is PIC.
 
14698
      lt_prog_compiler_static_F77='-non_shared'
 
14699
      ;;
 
14700
 
 
14701
    rdos*)
 
14702
      lt_prog_compiler_static_F77='-non_shared'
 
14703
      ;;
 
14704
 
 
14705
    solaris*)
 
14706
      lt_prog_compiler_pic_F77='-KPIC'
 
14707
      lt_prog_compiler_static_F77='-Bstatic'
 
14708
      case $cc_basename in
 
14709
      f77* | f90* | f95*)
 
14710
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14711
      *)
 
14712
        lt_prog_compiler_wl_F77='-Wl,';;
 
14713
      esac
 
14714
      ;;
 
14715
 
 
14716
    sunos4*)
 
14717
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14718
      lt_prog_compiler_pic_F77='-PIC'
 
14719
      lt_prog_compiler_static_F77='-Bstatic'
 
14720
      ;;
 
14721
 
 
14722
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14723
      lt_prog_compiler_wl_F77='-Wl,'
 
14724
      lt_prog_compiler_pic_F77='-KPIC'
 
14725
      lt_prog_compiler_static_F77='-Bstatic'
 
14726
      ;;
 
14727
 
 
14728
    sysv4*MP*)
 
14729
      if test -d /usr/nec ;then
 
14730
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14731
        lt_prog_compiler_static_F77='-Bstatic'
 
14732
      fi
 
14733
      ;;
 
14734
 
 
14735
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14736
      lt_prog_compiler_wl_F77='-Wl,'
 
14737
      lt_prog_compiler_pic_F77='-KPIC'
 
14738
      lt_prog_compiler_static_F77='-Bstatic'
 
14739
      ;;
 
14740
 
 
14741
    unicos*)
 
14742
      lt_prog_compiler_wl_F77='-Wl,'
 
14743
      lt_prog_compiler_can_build_shared_F77=no
 
14744
      ;;
 
14745
 
 
14746
    uts4*)
 
14747
      lt_prog_compiler_pic_F77='-pic'
 
14748
      lt_prog_compiler_static_F77='-Bstatic'
 
14749
      ;;
 
14750
 
 
14751
    *)
 
14752
      lt_prog_compiler_can_build_shared_F77=no
 
14753
      ;;
 
14754
    esac
 
14755
  fi
 
14756
 
 
14757
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14758
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14759
 
 
14760
#
 
14761
# Check to make sure the PIC flag actually works.
 
14762
#
 
14763
if test -n "$lt_prog_compiler_pic_F77"; then
 
14764
 
 
14765
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14766
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14767
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14768
  $as_echo_n "(cached) " >&6
 
14769
else
 
14770
  lt_cv_prog_compiler_pic_works_F77=no
 
14771
  ac_outfile=conftest.$ac_objext
 
14772
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14773
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14774
   # Insert the option either (1) after the last *FLAGS variable, or
 
14775
   # (2) before a word containing "conftest.", or (3) at the end.
 
14776
   # Note that $ac_compile itself does not contain backslashes and begins
 
14777
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14778
   # The option is referenced via a variable to avoid confusing sed.
 
14779
   lt_compile=`echo "$ac_compile" | $SED \
 
14780
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14781
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14782
   -e 's:$: $lt_compiler_flag:'`
 
14783
   (eval echo "\"\$as_me:14783: $lt_compile\"" >&5)
 
14784
   (eval "$lt_compile" 2>conftest.err)
 
14785
   ac_status=$?
 
14786
   cat conftest.err >&5
 
14787
   echo "$as_me:14787: \$? = $ac_status" >&5
 
14788
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14789
     # The compiler can only warn and ignore the option if not recognized
 
14790
     # So say no if there are warnings other than the usual output.
 
14791
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14792
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14793
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14794
       lt_cv_prog_compiler_pic_works_F77=yes
 
14795
     fi
 
14796
   fi
 
14797
   $rm conftest*
 
14798
 
 
14799
fi
 
14800
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14801
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14802
 
 
14803
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14804
    case $lt_prog_compiler_pic_F77 in
 
14805
     "" | " "*) ;;
 
14806
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14807
     esac
 
14808
else
 
14809
    lt_prog_compiler_pic_F77=
 
14810
     lt_prog_compiler_can_build_shared_F77=no
 
14811
fi
 
14812
 
 
14813
fi
 
14814
case $host_os in
 
14815
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14816
  *djgpp*)
 
14817
    lt_prog_compiler_pic_F77=
 
14818
    ;;
 
14819
  *)
 
14820
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14821
    ;;
 
14822
esac
 
14823
 
 
14824
#
 
14825
# Check to make sure the static flag actually works.
 
14826
#
 
14827
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14828
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14829
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14830
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14831
  $as_echo_n "(cached) " >&6
 
14832
else
 
14833
  lt_cv_prog_compiler_static_works_F77=no
 
14834
   save_LDFLAGS="$LDFLAGS"
 
14835
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14836
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14837
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14838
     # The linker can only warn and ignore the option if not recognized
 
14839
     # So say no if there are warnings
 
14840
     if test -s conftest.err; then
 
14841
       # Append any errors to the config.log.
 
14842
       cat conftest.err 1>&5
 
14843
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14844
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14845
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14846
         lt_cv_prog_compiler_static_works_F77=yes
 
14847
       fi
 
14848
     else
 
14849
       lt_cv_prog_compiler_static_works_F77=yes
 
14850
     fi
 
14851
   fi
 
14852
   $rm -r conftest*
 
14853
   LDFLAGS="$save_LDFLAGS"
 
14854
 
 
14855
fi
 
14856
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14857
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14858
 
 
14859
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14860
    :
 
14861
else
 
14862
    lt_prog_compiler_static_F77=
 
14863
fi
 
14864
 
 
14865
 
 
14866
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14867
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14868
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14869
  $as_echo_n "(cached) " >&6
 
14870
else
 
14871
  lt_cv_prog_compiler_c_o_F77=no
 
14872
   $rm -r conftest 2>/dev/null
 
14873
   mkdir conftest
 
14874
   cd conftest
 
14875
   mkdir out
 
14876
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14877
 
 
14878
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14879
   # Insert the option either (1) after the last *FLAGS variable, or
 
14880
   # (2) before a word containing "conftest.", or (3) at the end.
 
14881
   # Note that $ac_compile itself does not contain backslashes and begins
 
14882
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14883
   lt_compile=`echo "$ac_compile" | $SED \
 
14884
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14885
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14886
   -e 's:$: $lt_compiler_flag:'`
 
14887
   (eval echo "\"\$as_me:14887: $lt_compile\"" >&5)
 
14888
   (eval "$lt_compile" 2>out/conftest.err)
 
14889
   ac_status=$?
 
14890
   cat out/conftest.err >&5
 
14891
   echo "$as_me:14891: \$? = $ac_status" >&5
 
14892
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14893
   then
 
14894
     # The compiler can only warn and ignore the option if not recognized
 
14895
     # So say no if there are warnings
 
14896
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14897
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14898
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14899
       lt_cv_prog_compiler_c_o_F77=yes
 
14900
     fi
 
14901
   fi
 
14902
   chmod u+w . 2>&5
 
14903
   $rm conftest*
 
14904
   # SGI C++ compiler will create directory out/ii_files/ for
 
14905
   # template instantiation
 
14906
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14907
   $rm out/* && rmdir out
 
14908
   cd ..
 
14909
   rmdir conftest
 
14910
   $rm conftest*
 
14911
 
 
14912
fi
 
14913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14914
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14915
 
 
14916
 
 
14917
hard_links="nottested"
 
14918
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14919
  # do not overwrite the value of need_locks provided by the user
 
14920
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14921
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14922
  hard_links=yes
 
14923
  $rm conftest*
 
14924
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14925
  touch conftest.a
 
14926
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14927
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14928
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14929
$as_echo "$hard_links" >&6; }
 
14930
  if test "$hard_links" = no; then
 
14931
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14932
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14933
    need_locks=warn
 
14934
  fi
 
14935
else
 
14936
  need_locks=no
 
14937
fi
 
14938
 
 
14939
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14940
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14941
 
 
14942
  runpath_var=
 
14943
  allow_undefined_flag_F77=
 
14944
  enable_shared_with_static_runtimes_F77=no
 
14945
  archive_cmds_F77=
 
14946
  archive_expsym_cmds_F77=
 
14947
  old_archive_From_new_cmds_F77=
 
14948
  old_archive_from_expsyms_cmds_F77=
 
14949
  export_dynamic_flag_spec_F77=
 
14950
  whole_archive_flag_spec_F77=
 
14951
  thread_safe_flag_spec_F77=
 
14952
  hardcode_libdir_flag_spec_F77=
 
14953
  hardcode_libdir_flag_spec_ld_F77=
 
14954
  hardcode_libdir_separator_F77=
 
14955
  hardcode_direct_F77=no
 
14956
  hardcode_minus_L_F77=no
 
14957
  hardcode_shlibpath_var_F77=unsupported
 
14958
  link_all_deplibs_F77=unknown
 
14959
  hardcode_automatic_F77=no
 
14960
  module_cmds_F77=
 
14961
  module_expsym_cmds_F77=
 
14962
  always_export_symbols_F77=no
 
14963
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14964
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14965
  # included in the symbol list
 
14966
  include_expsyms_F77=
 
14967
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14968
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14969
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14970
  # as well as any symbol that contains `d'.
 
14971
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14972
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14973
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14974
  # the symbol is explicitly referenced.  Since portable code cannot
 
14975
  # rely on this symbol name, it's probably fine to never include it in
 
14976
  # preloaded symbol tables.
 
14977
  # Exclude shared library initialization/finalization symbols.
 
14978
  extract_expsyms_cmds=
 
14979
  # Just being paranoid about ensuring that cc_basename is set.
 
14980
  for cc_temp in $compiler""; do
 
14981
  case $cc_temp in
 
14982
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14983
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14984
    \-*) ;;
 
14985
    *) break;;
 
14986
  esac
 
14987
done
 
14988
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14989
 
 
14990
  case $host_os in
 
14991
  cygwin* | mingw* | pw32*)
 
14992
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14993
    # When not using gcc, we currently assume that we are using
 
14994
    # Microsoft Visual C++.
 
14995
    if test "$GCC" != yes; then
 
14996
      with_gnu_ld=no
 
14997
    fi
 
14998
    ;;
 
14999
  interix*)
 
15000
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15001
    with_gnu_ld=yes
 
15002
    ;;
 
15003
  openbsd*)
 
15004
    with_gnu_ld=no
 
15005
    ;;
 
15006
  esac
 
15007
 
 
15008
  ld_shlibs_F77=yes
 
15009
  if test "$with_gnu_ld" = yes; then
 
15010
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15011
    wlarc='${wl}'
 
15012
 
 
15013
    # Set some defaults for GNU ld with shared library support. These
 
15014
    # are reset later if shared libraries are not supported. Putting them
 
15015
    # here allows them to be overridden if necessary.
 
15016
    runpath_var=LD_RUN_PATH
 
15017
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15018
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15019
    # ancient GNU ld didn't support --whole-archive et. al.
 
15020
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15021
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15022
      else
 
15023
        whole_archive_flag_spec_F77=
 
15024
    fi
 
15025
    supports_anon_versioning=no
 
15026
    case `$LD -v 2>/dev/null` in
 
15027
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15028
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15029
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15030
      *\ 2.11.*) ;; # other 2.11 versions
 
15031
      *) supports_anon_versioning=yes ;;
 
15032
    esac
 
15033
 
 
15034
    # See if GNU ld supports shared libraries.
 
15035
    case $host_os in
 
15036
    aix[3-9]*)
 
15037
      # On AIX/PPC, the GNU linker is very broken
 
15038
      if test "$host_cpu" != ia64; then
 
15039
        ld_shlibs_F77=no
 
15040
        cat <<EOF 1>&2
 
15041
 
 
15042
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15043
*** to be unable to reliably create shared libraries on AIX.
 
15044
*** Therefore, libtool is disabling shared libraries support.  If you
 
15045
*** really care for shared libraries, you may want to modify your PATH
 
15046
*** so that a non-GNU linker is found, and then restart.
 
15047
 
 
15048
EOF
 
15049
      fi
 
15050
      ;;
 
15051
 
 
15052
    amigaos*)
 
15053
      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)'
 
15054
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15055
      hardcode_minus_L_F77=yes
 
15056
 
 
15057
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15058
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15059
      # to version 4, is to share data among multiple programs linked
 
15060
      # with the same dynamic library.  Since this doesn't match the
 
15061
      # behavior of shared libraries on other platforms, we can't use
 
15062
      # them.
 
15063
      ld_shlibs_F77=no
 
15064
      ;;
 
15065
 
 
15066
    beos*)
 
15067
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15068
        allow_undefined_flag_F77=unsupported
 
15069
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15070
        # support --undefined.  This deserves some investigation.  FIXME
 
15071
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15072
      else
 
15073
        ld_shlibs_F77=no
 
15074
      fi
 
15075
      ;;
 
15076
 
 
15077
    cygwin* | mingw* | pw32*)
 
15078
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15079
      # as there is no search path for DLLs.
 
15080
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15081
      allow_undefined_flag_F77=unsupported
 
15082
      always_export_symbols_F77=no
 
15083
      enable_shared_with_static_runtimes_F77=yes
 
15084
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15085
 
 
15086
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15087
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15088
        # If the export-symbols file already is a .def file (1st line
 
15089
        # is EXPORTS), use it as is; otherwise, prepend...
 
15090
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15091
          cp $export_symbols $output_objdir/$soname.def;
 
15092
        else
 
15093
          echo EXPORTS > $output_objdir/$soname.def;
 
15094
          cat $export_symbols >> $output_objdir/$soname.def;
 
15095
        fi~
 
15096
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15097
      else
 
15098
        ld_shlibs_F77=no
 
15099
      fi
 
15100
      ;;
 
15101
 
 
15102
    interix[3-9]*)
 
15103
      hardcode_direct_F77=no
 
15104
      hardcode_shlibpath_var_F77=no
 
15105
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15106
      export_dynamic_flag_spec_F77='${wl}-E'
 
15107
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15108
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15109
      # default) and relocated if they conflict, which is a slow very memory
 
15110
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15111
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15112
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15113
      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'
 
15114
      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'
 
15115
      ;;
 
15116
 
 
15117
    gnu* | linux* | k*bsd*-gnu)
 
15118
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15119
        tmp_addflag=
 
15120
        case $cc_basename,$host_cpu in
 
15121
        pgcc*)                          # Portland Group C compiler
 
15122
          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'
 
15123
          tmp_addflag=' $pic_flag'
 
15124
          ;;
 
15125
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15126
          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'
 
15127
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15128
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15129
          tmp_addflag=' -i_dynamic' ;;
 
15130
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15131
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15132
        ifc* | ifort*)                  # Intel Fortran compiler
 
15133
          tmp_addflag=' -nofor_main' ;;
 
15134
        esac
 
15135
        case `$CC -V 2>&1 | sed 5q` in
 
15136
        *Sun\ C*)                       # Sun C 5.9
 
15137
          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'
 
15138
          tmp_sharedflag='-G' ;;
 
15139
        *Sun\ F*)                       # Sun Fortran 8.3
 
15140
          tmp_sharedflag='-G' ;;
 
15141
        *)
 
15142
          tmp_sharedflag='-shared' ;;
 
15143
        esac
 
15144
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15145
 
 
15146
        if test $supports_anon_versioning = yes; then
 
15147
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15148
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15149
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15150
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15151
        fi
 
15152
      else
 
15153
        ld_shlibs_F77=no
 
15154
      fi
 
15155
      ;;
 
15156
 
 
15157
    netbsd*)
 
15158
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15159
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15160
        wlarc=
 
15161
      else
 
15162
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15163
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15164
      fi
 
15165
      ;;
 
15166
 
 
15167
    solaris*)
 
15168
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15169
        ld_shlibs_F77=no
 
15170
        cat <<EOF 1>&2
 
15171
 
 
15172
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15173
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15174
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15175
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15176
*** your PATH or compiler configuration so that the native linker is
 
15177
*** used, and then restart.
 
15178
 
 
15179
EOF
 
15180
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15181
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15182
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15183
      else
 
15184
        ld_shlibs_F77=no
 
15185
      fi
 
15186
      ;;
 
15187
 
 
15188
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15189
      case `$LD -v 2>&1` in
 
15190
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15191
        ld_shlibs_F77=no
 
15192
        cat <<_LT_EOF 1>&2
 
15193
 
 
15194
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15195
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15196
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15197
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15198
*** your PATH or compiler configuration so that the native linker is
 
15199
*** used, and then restart.
 
15200
 
 
15201
_LT_EOF
 
15202
        ;;
 
15203
        *)
 
15204
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15205
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15206
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15207
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15208
          else
 
15209
            ld_shlibs_F77=no
 
15210
          fi
 
15211
        ;;
 
15212
      esac
 
15213
      ;;
 
15214
 
 
15215
    sunos4*)
 
15216
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15217
      wlarc=
 
15218
      hardcode_direct_F77=yes
 
15219
      hardcode_shlibpath_var_F77=no
 
15220
      ;;
 
15221
 
 
15222
    *)
 
15223
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15224
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15225
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15226
      else
 
15227
        ld_shlibs_F77=no
 
15228
      fi
 
15229
      ;;
 
15230
    esac
 
15231
 
 
15232
    if test "$ld_shlibs_F77" = no; then
 
15233
      runpath_var=
 
15234
      hardcode_libdir_flag_spec_F77=
 
15235
      export_dynamic_flag_spec_F77=
 
15236
      whole_archive_flag_spec_F77=
 
15237
    fi
 
15238
  else
 
15239
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15240
    case $host_os in
 
15241
    aix3*)
 
15242
      allow_undefined_flag_F77=unsupported
 
15243
      always_export_symbols_F77=yes
 
15244
      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'
 
15245
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15246
      # are no directories specified by -L.
 
15247
      hardcode_minus_L_F77=yes
 
15248
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15249
        # Neither direct hardcoding nor static linking is supported with a
 
15250
        # broken collect2.
 
15251
        hardcode_direct_F77=unsupported
 
15252
      fi
 
15253
      ;;
 
15254
 
 
15255
    aix[4-9]*)
 
15256
      if test "$host_cpu" = ia64; then
 
15257
        # On IA64, the linker does run time linking by default, so we don't
 
15258
        # have to do anything special.
 
15259
        aix_use_runtimelinking=no
 
15260
        exp_sym_flag='-Bexport'
 
15261
        no_entry_flag=""
 
15262
      else
 
15263
        # If we're using GNU nm, then we don't want the "-C" option.
 
15264
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15265
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15266
          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'
 
15267
        else
 
15268
          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'
 
15269
        fi
 
15270
        aix_use_runtimelinking=no
 
15271
 
 
15272
        # Test if we are trying to use run time linking or normal
 
15273
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15274
        # need to do runtime linking.
 
15275
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15276
          for ld_flag in $LDFLAGS; do
 
15277
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15278
            aix_use_runtimelinking=yes
 
15279
            break
 
15280
          fi
 
15281
          done
 
15282
          ;;
 
15283
        esac
 
15284
 
 
15285
        exp_sym_flag='-bexport'
 
15286
        no_entry_flag='-bnoentry'
 
15287
      fi
 
15288
 
 
15289
      # When large executables or shared objects are built, AIX ld can
 
15290
      # have problems creating the table of contents.  If linking a library
 
15291
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15292
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15293
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15294
 
 
15295
      archive_cmds_F77=''
 
15296
      hardcode_direct_F77=yes
 
15297
      hardcode_libdir_separator_F77=':'
 
15298
      link_all_deplibs_F77=yes
 
15299
 
 
15300
      if test "$GCC" = yes; then
 
15301
        case $host_os in aix4.[012]|aix4.[012].*)
 
15302
        # We only want to do this on AIX 4.2 and lower, the check
 
15303
        # below for broken collect2 doesn't work under 4.3+
 
15304
          collect2name=`${CC} -print-prog-name=collect2`
 
15305
          if test -f "$collect2name" && \
 
15306
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15307
          then
 
15308
          # We have reworked collect2
 
15309
          :
 
15310
          else
 
15311
          # We have old collect2
 
15312
          hardcode_direct_F77=unsupported
 
15313
          # It fails to find uninstalled libraries when the uninstalled
 
15314
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15315
          # to unsupported forces relinking
 
15316
          hardcode_minus_L_F77=yes
 
15317
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15318
          hardcode_libdir_separator_F77=
 
15319
          fi
 
15320
          ;;
 
15321
        esac
 
15322
        shared_flag='-shared'
 
15323
        if test "$aix_use_runtimelinking" = yes; then
 
15324
          shared_flag="$shared_flag "'${wl}-G'
 
15325
        fi
 
15326
      else
 
15327
        # not using gcc
 
15328
        if test "$host_cpu" = ia64; then
 
15329
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15330
        # chokes on -Wl,-G. The following line is correct:
 
15331
          shared_flag='-G'
 
15332
        else
 
15333
          if test "$aix_use_runtimelinking" = yes; then
 
15334
            shared_flag='${wl}-G'
 
15335
          else
 
15336
            shared_flag='${wl}-bM:SRE'
 
15337
          fi
 
15338
        fi
 
15339
      fi
 
15340
 
 
15341
      # It seems that -bexpall does not export symbols beginning with
 
15342
      # underscore (_), so it is better to generate a list of symbols to export.
 
15343
      always_export_symbols_F77=yes
 
15344
      if test "$aix_use_runtimelinking" = yes; then
 
15345
        # Warning - without using the other runtime loading flags (-brtl),
 
15346
        # -berok will link without error, but may produce a broken library.
 
15347
        allow_undefined_flag_F77='-berok'
 
15348
       # Determine the default libpath from the value encoded in an empty executable.
 
15349
       cat >conftest.$ac_ext <<_ACEOF
 
15350
      program main
 
15351
 
 
15352
      end
 
15353
_ACEOF
 
15354
rm -f conftest.$ac_objext conftest$ac_exeext
 
15355
if { (ac_try="$ac_link"
 
15356
case "(($ac_try" in
 
15357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15358
  *) ac_try_echo=$ac_try;;
 
15359
esac
 
15360
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15361
$as_echo "$ac_try_echo") >&5
 
15362
  (eval "$ac_link") 2>conftest.er1
 
15363
  ac_status=$?
 
15364
  grep -v '^ *+' conftest.er1 >conftest.err
 
15365
  rm -f conftest.er1
 
15366
  cat conftest.err >&5
 
15367
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15368
  (exit $ac_status); } && {
 
15369
         test -z "$ac_f77_werror_flag" ||
 
15370
         test ! -s conftest.err
 
15371
       } && test -s conftest$ac_exeext && {
 
15372
         test "$cross_compiling" = yes ||
 
15373
         $as_test_x conftest$ac_exeext
 
15374
       }; then
 
15375
 
 
15376
lt_aix_libpath_sed='
 
15377
    /Import File Strings/,/^$/ {
 
15378
        /^0/ {
 
15379
            s/^0  *\(.*\)$/\1/
 
15380
            p
 
15381
        }
 
15382
    }'
 
15383
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15384
# Check for a 64-bit object if we didn't find anything.
 
15385
if test -z "$aix_libpath"; then
 
15386
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15387
fi
 
15388
else
 
15389
  $as_echo "$as_me: failed program was:" >&5
 
15390
sed 's/^/| /' conftest.$ac_ext >&5
 
15391
 
 
15392
 
 
15393
fi
 
15394
 
 
15395
rm -rf conftest.dSYM
 
15396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15397
      conftest$ac_exeext conftest.$ac_ext
 
15398
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15399
 
 
15400
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15401
        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"
 
15402
       else
 
15403
        if test "$host_cpu" = ia64; then
 
15404
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15405
          allow_undefined_flag_F77="-z nodefs"
 
15406
          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"
 
15407
        else
 
15408
         # Determine the default libpath from the value encoded in an empty executable.
 
15409
         cat >conftest.$ac_ext <<_ACEOF
 
15410
      program main
 
15411
 
 
15412
      end
 
15413
_ACEOF
 
15414
rm -f conftest.$ac_objext conftest$ac_exeext
 
15415
if { (ac_try="$ac_link"
 
15416
case "(($ac_try" in
 
15417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15418
  *) ac_try_echo=$ac_try;;
 
15419
esac
 
15420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15421
$as_echo "$ac_try_echo") >&5
 
15422
  (eval "$ac_link") 2>conftest.er1
 
15423
  ac_status=$?
 
15424
  grep -v '^ *+' conftest.er1 >conftest.err
 
15425
  rm -f conftest.er1
 
15426
  cat conftest.err >&5
 
15427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15428
  (exit $ac_status); } && {
 
15429
         test -z "$ac_f77_werror_flag" ||
 
15430
         test ! -s conftest.err
 
15431
       } && test -s conftest$ac_exeext && {
 
15432
         test "$cross_compiling" = yes ||
 
15433
         $as_test_x conftest$ac_exeext
 
15434
       }; then
 
15435
 
 
15436
lt_aix_libpath_sed='
 
15437
    /Import File Strings/,/^$/ {
 
15438
        /^0/ {
 
15439
            s/^0  *\(.*\)$/\1/
 
15440
            p
 
15441
        }
 
15442
    }'
 
15443
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15444
# Check for a 64-bit object if we didn't find anything.
 
15445
if test -z "$aix_libpath"; then
 
15446
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15447
fi
 
15448
else
 
15449
  $as_echo "$as_me: failed program was:" >&5
 
15450
sed 's/^/| /' conftest.$ac_ext >&5
 
15451
 
 
15452
 
 
15453
fi
 
15454
 
 
15455
rm -rf conftest.dSYM
 
15456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15457
      conftest$ac_exeext conftest.$ac_ext
 
15458
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15459
 
 
15460
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15461
          # Warning - without using the other run time loading flags,
 
15462
          # -berok will link without error, but may produce a broken library.
 
15463
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15464
          allow_undefined_flag_F77=' ${wl}-berok'
 
15465
          # Exported symbols can be pulled into shared objects from archives
 
15466
          whole_archive_flag_spec_F77='$convenience'
 
15467
          archive_cmds_need_lc_F77=yes
 
15468
          # This is similar to how AIX traditionally builds its shared libraries.
 
15469
          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'
 
15470
        fi
 
15471
      fi
 
15472
      ;;
 
15473
 
 
15474
    amigaos*)
 
15475
      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)'
 
15476
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15477
      hardcode_minus_L_F77=yes
 
15478
      # see comment about different semantics on the GNU ld section
 
15479
      ld_shlibs_F77=no
 
15480
      ;;
 
15481
 
 
15482
    bsdi[45]*)
 
15483
      export_dynamic_flag_spec_F77=-rdynamic
 
15484
      ;;
 
15485
 
 
15486
    cygwin* | mingw* | pw32*)
 
15487
      # When not using gcc, we currently assume that we are using
 
15488
      # Microsoft Visual C++.
 
15489
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15490
      # no search path for DLLs.
 
15491
      hardcode_libdir_flag_spec_F77=' '
 
15492
      allow_undefined_flag_F77=unsupported
 
15493
      # Tell ltmain to make .lib files, not .a files.
 
15494
      libext=lib
 
15495
      # Tell ltmain to make .dll files, not .so files.
 
15496
      shrext_cmds=".dll"
 
15497
      # FIXME: Setting linknames here is a bad hack.
 
15498
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15499
      # The linker will automatically build a .lib file if we build a DLL.
 
15500
      old_archive_From_new_cmds_F77='true'
 
15501
      # FIXME: Should let the user specify the lib program.
 
15502
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15503
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15504
      enable_shared_with_static_runtimes_F77=yes
 
15505
      ;;
 
15506
 
 
15507
    darwin* | rhapsody*)
 
15508
      case $host_os in
 
15509
        rhapsody* | darwin1.[012])
 
15510
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15511
         ;;
 
15512
       *) # Darwin 1.3 on
 
15513
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15514
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15515
         else
 
15516
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15517
             10.[012])
 
15518
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15519
               ;;
 
15520
             10.*)
 
15521
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15522
               ;;
 
15523
           esac
 
15524
         fi
 
15525
         ;;
 
15526
      esac
 
15527
      archive_cmds_need_lc_F77=no
 
15528
      hardcode_direct_F77=no
 
15529
      hardcode_automatic_F77=yes
 
15530
      hardcode_shlibpath_var_F77=unsupported
 
15531
      whole_archive_flag_spec_F77=''
 
15532
      link_all_deplibs_F77=yes
 
15533
    if test "$GCC" = yes ; then
 
15534
        output_verbose_link_cmd='echo'
 
15535
        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}"
 
15536
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15537
        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}"
 
15538
        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}"
 
15539
    else
 
15540
      case $cc_basename in
 
15541
        xlc*)
 
15542
         output_verbose_link_cmd='echo'
 
15543
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15544
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15545
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15546
         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}'
 
15547
          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}'
 
15548
          ;;
 
15549
       *)
 
15550
         ld_shlibs_F77=no
 
15551
          ;;
 
15552
      esac
 
15553
    fi
 
15554
      ;;
 
15555
 
 
15556
    dgux*)
 
15557
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15558
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15559
      hardcode_shlibpath_var_F77=no
 
15560
      ;;
 
15561
 
 
15562
    freebsd1*)
 
15563
      ld_shlibs_F77=no
 
15564
      ;;
 
15565
 
 
15566
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15567
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15568
    # does not break anything, and helps significantly (at the cost of a little
 
15569
    # extra space).
 
15570
    freebsd2.2*)
 
15571
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15572
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15573
      hardcode_direct_F77=yes
 
15574
      hardcode_shlibpath_var_F77=no
 
15575
      ;;
 
15576
 
 
15577
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15578
    freebsd2*)
 
15579
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15580
      hardcode_direct_F77=yes
 
15581
      hardcode_minus_L_F77=yes
 
15582
      hardcode_shlibpath_var_F77=no
 
15583
      ;;
 
15584
 
 
15585
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15586
    freebsd* | dragonfly*)
 
15587
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15588
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15589
      hardcode_direct_F77=yes
 
15590
      hardcode_shlibpath_var_F77=no
 
15591
      ;;
 
15592
 
 
15593
    hpux9*)
 
15594
      if test "$GCC" = yes; then
 
15595
        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'
 
15596
      else
 
15597
        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'
 
15598
      fi
 
15599
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15600
      hardcode_libdir_separator_F77=:
 
15601
      hardcode_direct_F77=yes
 
15602
 
 
15603
      # hardcode_minus_L: Not really in the search PATH,
 
15604
      # but as the default location of the library.
 
15605
      hardcode_minus_L_F77=yes
 
15606
      export_dynamic_flag_spec_F77='${wl}-E'
 
15607
      ;;
 
15608
 
 
15609
    hpux10*)
 
15610
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15611
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15612
      else
 
15613
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15614
      fi
 
15615
      if test "$with_gnu_ld" = no; then
 
15616
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15617
        hardcode_libdir_separator_F77=:
 
15618
 
 
15619
        hardcode_direct_F77=yes
 
15620
        export_dynamic_flag_spec_F77='${wl}-E'
 
15621
 
 
15622
        # hardcode_minus_L: Not really in the search PATH,
 
15623
        # but as the default location of the library.
 
15624
        hardcode_minus_L_F77=yes
 
15625
      fi
 
15626
      ;;
 
15627
 
 
15628
    hpux11*)
 
15629
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15630
        case $host_cpu in
 
15631
        hppa*64*)
 
15632
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15633
          ;;
 
15634
        ia64*)
 
15635
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15636
          ;;
 
15637
        *)
 
15638
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15639
          ;;
 
15640
        esac
 
15641
      else
 
15642
        case $host_cpu in
 
15643
        hppa*64*)
 
15644
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15645
          ;;
 
15646
        ia64*)
 
15647
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15648
          ;;
 
15649
        *)
 
15650
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15651
          ;;
 
15652
        esac
 
15653
      fi
 
15654
      if test "$with_gnu_ld" = no; then
 
15655
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15656
        hardcode_libdir_separator_F77=:
 
15657
 
 
15658
        case $host_cpu in
 
15659
        hppa*64*|ia64*)
 
15660
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15661
          hardcode_direct_F77=no
 
15662
          hardcode_shlibpath_var_F77=no
 
15663
          ;;
 
15664
        *)
 
15665
          hardcode_direct_F77=yes
 
15666
          export_dynamic_flag_spec_F77='${wl}-E'
 
15667
 
 
15668
          # hardcode_minus_L: Not really in the search PATH,
 
15669
          # but as the default location of the library.
 
15670
          hardcode_minus_L_F77=yes
 
15671
          ;;
 
15672
        esac
 
15673
      fi
 
15674
      ;;
 
15675
 
 
15676
    irix5* | irix6* | nonstopux*)
 
15677
      if test "$GCC" = yes; then
 
15678
        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'
 
15679
      else
 
15680
        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'
 
15681
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15682
      fi
 
15683
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15684
      hardcode_libdir_separator_F77=:
 
15685
      link_all_deplibs_F77=yes
 
15686
      ;;
 
15687
 
 
15688
    netbsd*)
 
15689
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15690
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15691
      else
 
15692
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15693
      fi
 
15694
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15695
      hardcode_direct_F77=yes
 
15696
      hardcode_shlibpath_var_F77=no
 
15697
      ;;
 
15698
 
 
15699
    newsos6)
 
15700
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15701
      hardcode_direct_F77=yes
 
15702
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15703
      hardcode_libdir_separator_F77=:
 
15704
      hardcode_shlibpath_var_F77=no
 
15705
      ;;
 
15706
 
 
15707
    openbsd*)
 
15708
      if test -f /usr/libexec/ld.so; then
 
15709
        hardcode_direct_F77=yes
 
15710
        hardcode_shlibpath_var_F77=no
 
15711
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15712
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15713
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15714
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15715
          export_dynamic_flag_spec_F77='${wl}-E'
 
15716
        else
 
15717
          case $host_os in
 
15718
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15719
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15720
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15721
             ;;
 
15722
           *)
 
15723
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15724
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15725
             ;;
 
15726
          esac
 
15727
        fi
 
15728
      else
 
15729
        ld_shlibs_F77=no
 
15730
      fi
 
15731
      ;;
 
15732
 
 
15733
    os2*)
 
15734
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15735
      hardcode_minus_L_F77=yes
 
15736
      allow_undefined_flag_F77=unsupported
 
15737
      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'
 
15738
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15739
      ;;
 
15740
 
 
15741
    osf3*)
 
15742
      if test "$GCC" = yes; then
 
15743
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15744
        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'
 
15745
      else
 
15746
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15747
        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'
 
15748
      fi
 
15749
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15750
      hardcode_libdir_separator_F77=:
 
15751
      ;;
 
15752
 
 
15753
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15754
      if test "$GCC" = yes; then
 
15755
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15756
        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'
 
15757
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15758
      else
 
15759
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15760
        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'
 
15761
        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~
 
15762
        $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'
 
15763
 
 
15764
        # Both c and cxx compiler support -rpath directly
 
15765
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15766
      fi
 
15767
      hardcode_libdir_separator_F77=:
 
15768
      ;;
 
15769
 
 
15770
    solaris*)
 
15771
      no_undefined_flag_F77=' -z text'
 
15772
      if test "$GCC" = yes; then
 
15773
        wlarc='${wl}'
 
15774
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15775
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15776
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15777
      else
 
15778
        wlarc=''
 
15779
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15780
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15781
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15782
      fi
 
15783
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15784
      hardcode_shlibpath_var_F77=no
 
15785
      case $host_os in
 
15786
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15787
      *)
 
15788
        # The compiler driver will combine and reorder linker options,
 
15789
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15790
        # but is careful enough not to reorder.
 
15791
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15792
        if test "$GCC" = yes; then
 
15793
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15794
        else
 
15795
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15796
        fi
 
15797
        ;;
 
15798
      esac
 
15799
      link_all_deplibs_F77=yes
 
15800
      ;;
 
15801
 
 
15802
    sunos4*)
 
15803
      if test "x$host_vendor" = xsequent; then
 
15804
        # Use $CC to link under sequent, because it throws in some extra .o
 
15805
        # files that make .init and .fini sections work.
 
15806
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15807
      else
 
15808
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15809
      fi
 
15810
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15811
      hardcode_direct_F77=yes
 
15812
      hardcode_minus_L_F77=yes
 
15813
      hardcode_shlibpath_var_F77=no
 
15814
      ;;
 
15815
 
 
15816
    sysv4)
 
15817
      case $host_vendor in
 
15818
        sni)
 
15819
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15820
          hardcode_direct_F77=yes # is this really true???
 
15821
        ;;
 
15822
        siemens)
 
15823
          ## LD is ld it makes a PLAMLIB
 
15824
          ## CC just makes a GrossModule.
 
15825
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15826
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15827
          hardcode_direct_F77=no
 
15828
        ;;
 
15829
        motorola)
 
15830
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15831
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15832
        ;;
 
15833
      esac
 
15834
      runpath_var='LD_RUN_PATH'
 
15835
      hardcode_shlibpath_var_F77=no
 
15836
      ;;
 
15837
 
 
15838
    sysv4.3*)
 
15839
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15840
      hardcode_shlibpath_var_F77=no
 
15841
      export_dynamic_flag_spec_F77='-Bexport'
 
15842
      ;;
 
15843
 
 
15844
    sysv4*MP*)
 
15845
      if test -d /usr/nec; then
 
15846
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15847
        hardcode_shlibpath_var_F77=no
 
15848
        runpath_var=LD_RUN_PATH
 
15849
        hardcode_runpath_var=yes
 
15850
        ld_shlibs_F77=yes
 
15851
      fi
 
15852
      ;;
 
15853
 
 
15854
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15855
      no_undefined_flag_F77='${wl}-z,text'
 
15856
      archive_cmds_need_lc_F77=no
 
15857
      hardcode_shlibpath_var_F77=no
 
15858
      runpath_var='LD_RUN_PATH'
 
15859
 
 
15860
      if test "$GCC" = yes; then
 
15861
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15862
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15863
      else
 
15864
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15865
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15866
      fi
 
15867
      ;;
 
15868
 
 
15869
    sysv5* | sco3.2v5* | sco5v6*)
 
15870
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15871
      # link with -lc, and that would cause any symbols used from libc to
 
15872
      # always be unresolved, which means just about no library would
 
15873
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15874
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15875
      # as -z defs.
 
15876
      no_undefined_flag_F77='${wl}-z,text'
 
15877
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15878
      archive_cmds_need_lc_F77=no
 
15879
      hardcode_shlibpath_var_F77=no
 
15880
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15881
      hardcode_libdir_separator_F77=':'
 
15882
      link_all_deplibs_F77=yes
 
15883
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15884
      runpath_var='LD_RUN_PATH'
 
15885
 
 
15886
      if test "$GCC" = yes; then
 
15887
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15888
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15889
      else
 
15890
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15891
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15892
      fi
 
15893
      ;;
 
15894
 
 
15895
    uts4*)
 
15896
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15897
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15898
      hardcode_shlibpath_var_F77=no
 
15899
      ;;
 
15900
 
 
15901
    *)
 
15902
      ld_shlibs_F77=no
 
15903
      ;;
 
15904
    esac
 
15905
  fi
 
15906
 
 
15907
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15908
$as_echo "$ld_shlibs_F77" >&6; }
 
15909
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15910
 
 
15911
#
 
15912
# Do we need to explicitly link libc?
 
15913
#
 
15914
case "x$archive_cmds_need_lc_F77" in
 
15915
x|xyes)
 
15916
  # Assume -lc should be added
 
15917
  archive_cmds_need_lc_F77=yes
 
15918
 
 
15919
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15920
    case $archive_cmds_F77 in
 
15921
    *'~'*)
 
15922
      # FIXME: we may have to deal with multi-command sequences.
 
15923
      ;;
 
15924
    '$CC '*)
 
15925
      # Test whether the compiler implicitly links with -lc since on some
 
15926
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15927
      # to ld, don't add -lc before -lgcc.
 
15928
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15929
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15930
      $rm conftest*
 
15931
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15932
 
 
15933
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15934
  (eval $ac_compile) 2>&5
 
15935
  ac_status=$?
 
15936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15937
  (exit $ac_status); } 2>conftest.err; then
 
15938
        soname=conftest
 
15939
        lib=conftest
 
15940
        libobjs=conftest.$ac_objext
 
15941
        deplibs=
 
15942
        wl=$lt_prog_compiler_wl_F77
 
15943
        pic_flag=$lt_prog_compiler_pic_F77
 
15944
        compiler_flags=-v
 
15945
        linker_flags=-v
 
15946
        verstring=
 
15947
        output_objdir=.
 
15948
        libname=conftest
 
15949
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15950
        allow_undefined_flag_F77=
 
15951
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15952
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15953
  ac_status=$?
 
15954
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15955
  (exit $ac_status); }
 
15956
        then
 
15957
          archive_cmds_need_lc_F77=no
 
15958
        else
 
15959
          archive_cmds_need_lc_F77=yes
 
15960
        fi
 
15961
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15962
      else
 
15963
        cat conftest.err 1>&5
 
15964
      fi
 
15965
      $rm conftest*
 
15966
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15967
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
15968
      ;;
 
15969
    esac
 
15970
  fi
 
15971
  ;;
 
15972
esac
 
15973
 
 
15974
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15975
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15976
library_names_spec=
 
15977
libname_spec='lib$name'
 
15978
soname_spec=
 
15979
shrext_cmds=".so"
 
15980
postinstall_cmds=
 
15981
postuninstall_cmds=
 
15982
finish_cmds=
 
15983
finish_eval=
 
15984
shlibpath_var=
 
15985
shlibpath_overrides_runpath=unknown
 
15986
version_type=none
 
15987
dynamic_linker="$host_os ld.so"
 
15988
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15989
 
 
15990
need_lib_prefix=unknown
 
15991
hardcode_into_libs=no
 
15992
 
 
15993
# when you set need_version to no, make sure it does not cause -set_version
 
15994
# flags to be left without arguments
 
15995
need_version=unknown
 
15996
 
 
15997
case $host_os in
 
15998
aix3*)
 
15999
  version_type=linux
 
16000
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16001
  shlibpath_var=LIBPATH
 
16002
 
 
16003
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16004
  soname_spec='${libname}${release}${shared_ext}$major'
 
16005
  ;;
 
16006
 
 
16007
aix[4-9]*)
 
16008
  version_type=linux
 
16009
  need_lib_prefix=no
 
16010
  need_version=no
 
16011
  hardcode_into_libs=yes
 
16012
  if test "$host_cpu" = ia64; then
 
16013
    # AIX 5 supports IA64
 
16014
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16015
    shlibpath_var=LD_LIBRARY_PATH
 
16016
  else
 
16017
    # With GCC up to 2.95.x, collect2 would create an import file
 
16018
    # for dependence libraries.  The import file would start with
 
16019
    # the line `#! .'.  This would cause the generated library to
 
16020
    # depend on `.', always an invalid library.  This was fixed in
 
16021
    # development snapshots of GCC prior to 3.0.
 
16022
    case $host_os in
 
16023
      aix4 | aix4.[01] | aix4.[01].*)
 
16024
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16025
           echo ' yes '
 
16026
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16027
        :
 
16028
      else
 
16029
        can_build_shared=no
 
16030
      fi
 
16031
      ;;
 
16032
    esac
 
16033
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16034
    # soname into executable. Probably we can add versioning support to
 
16035
    # collect2, so additional links can be useful in future.
 
16036
    if test "$aix_use_runtimelinking" = yes; then
 
16037
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16038
      # instead of lib<name>.a to let people know that these are not
 
16039
      # typical AIX shared libraries.
 
16040
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16041
    else
 
16042
      # We preserve .a as extension for shared libraries through AIX4.2
 
16043
      # and later when we are not doing run time linking.
 
16044
      library_names_spec='${libname}${release}.a $libname.a'
 
16045
      soname_spec='${libname}${release}${shared_ext}$major'
 
16046
    fi
 
16047
    shlibpath_var=LIBPATH
 
16048
  fi
 
16049
  ;;
 
16050
 
 
16051
amigaos*)
 
16052
  library_names_spec='$libname.ixlibrary $libname.a'
 
16053
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16054
  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'
 
16055
  ;;
 
16056
 
 
16057
beos*)
 
16058
  library_names_spec='${libname}${shared_ext}'
 
16059
  dynamic_linker="$host_os ld.so"
 
16060
  shlibpath_var=LIBRARY_PATH
 
16061
  ;;
 
16062
 
 
16063
bsdi[45]*)
 
16064
  version_type=linux
 
16065
  need_version=no
 
16066
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16067
  soname_spec='${libname}${release}${shared_ext}$major'
 
16068
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16069
  shlibpath_var=LD_LIBRARY_PATH
 
16070
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16071
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16072
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16073
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16074
  # libtool to hard-code these into programs
 
16075
  ;;
 
16076
 
 
16077
cygwin* | mingw* | pw32*)
 
16078
  version_type=windows
 
16079
  shrext_cmds=".dll"
 
16080
  need_version=no
 
16081
  need_lib_prefix=no
 
16082
 
 
16083
  case $GCC,$host_os in
 
16084
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16085
    library_names_spec='$libname.dll.a'
 
16086
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16087
    postinstall_cmds='base_file=`basename \${file}`~
 
16088
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16089
      dldir=$destdir/`dirname \$dlpath`~
 
16090
      test -d \$dldir || mkdir -p \$dldir~
 
16091
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16092
      chmod a+x \$dldir/$dlname'
 
16093
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16094
      dlpath=$dir/\$dldll~
 
16095
       $rm \$dlpath'
 
16096
    shlibpath_overrides_runpath=yes
 
16097
 
 
16098
    case $host_os in
 
16099
    cygwin*)
 
16100
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16101
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16102
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16103
      ;;
 
16104
    mingw*)
 
16105
      # MinGW DLLs use traditional 'lib' prefix
 
16106
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16107
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16108
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16109
        # It is most probably a Windows format PATH printed by
 
16110
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16111
        # path with ; separators, and with drive letters. We can handle the
 
16112
        # drive letters (cygwin fileutils understands them), so leave them,
 
16113
        # especially as we might pass files found there to a mingw objdump,
 
16114
        # which wouldn't understand a cygwinified path. Ahh.
 
16115
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16116
      else
 
16117
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16118
      fi
 
16119
      ;;
 
16120
    pw32*)
 
16121
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16122
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16123
      ;;
 
16124
    esac
 
16125
    ;;
 
16126
 
 
16127
  *)
 
16128
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16129
    ;;
 
16130
  esac
 
16131
  dynamic_linker='Win32 ld.exe'
 
16132
  # FIXME: first we should search . and the directory the executable is in
 
16133
  shlibpath_var=PATH
 
16134
  ;;
 
16135
 
 
16136
darwin* | rhapsody*)
 
16137
  dynamic_linker="$host_os dyld"
 
16138
  version_type=darwin
 
16139
  need_lib_prefix=no
 
16140
  need_version=no
 
16141
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16142
  soname_spec='${libname}${release}${major}$shared_ext'
 
16143
  shlibpath_overrides_runpath=yes
 
16144
  shlibpath_var=DYLD_LIBRARY_PATH
 
16145
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16146
 
 
16147
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16148
  ;;
 
16149
 
 
16150
dgux*)
 
16151
  version_type=linux
 
16152
  need_lib_prefix=no
 
16153
  need_version=no
 
16154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16155
  soname_spec='${libname}${release}${shared_ext}$major'
 
16156
  shlibpath_var=LD_LIBRARY_PATH
 
16157
  ;;
 
16158
 
 
16159
freebsd1*)
 
16160
  dynamic_linker=no
 
16161
  ;;
 
16162
 
 
16163
freebsd* | dragonfly*)
 
16164
  # DragonFly does not have aout.  When/if they implement a new
 
16165
  # versioning mechanism, adjust this.
 
16166
  if test -x /usr/bin/objformat; then
 
16167
    objformat=`/usr/bin/objformat`
 
16168
  else
 
16169
    case $host_os in
 
16170
    freebsd[123]*) objformat=aout ;;
 
16171
    *) objformat=elf ;;
 
16172
    esac
 
16173
  fi
 
16174
  version_type=freebsd-$objformat
 
16175
  case $version_type in
 
16176
    freebsd-elf*)
 
16177
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16178
      need_version=no
 
16179
      need_lib_prefix=no
 
16180
      ;;
 
16181
    freebsd-*)
 
16182
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16183
      need_version=yes
 
16184
      ;;
 
16185
  esac
 
16186
  shlibpath_var=LD_LIBRARY_PATH
 
16187
  case $host_os in
 
16188
  freebsd2*)
 
16189
    shlibpath_overrides_runpath=yes
 
16190
    ;;
 
16191
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16192
    shlibpath_overrides_runpath=yes
 
16193
    hardcode_into_libs=yes
 
16194
    ;;
 
16195
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16196
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16197
    shlibpath_overrides_runpath=no
 
16198
    hardcode_into_libs=yes
 
16199
    ;;
 
16200
  *) # from 4.6 on, and DragonFly
 
16201
    shlibpath_overrides_runpath=yes
 
16202
    hardcode_into_libs=yes
 
16203
    ;;
 
16204
  esac
 
16205
  ;;
 
16206
 
 
16207
gnu*)
 
16208
  version_type=linux
 
16209
  need_lib_prefix=no
 
16210
  need_version=no
 
16211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16212
  soname_spec='${libname}${release}${shared_ext}$major'
 
16213
  shlibpath_var=LD_LIBRARY_PATH
 
16214
  hardcode_into_libs=yes
 
16215
  ;;
 
16216
 
 
16217
hpux9* | hpux10* | hpux11*)
 
16218
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16219
  # link against other versions.
 
16220
  version_type=sunos
 
16221
  need_lib_prefix=no
 
16222
  need_version=no
 
16223
  case $host_cpu in
 
16224
  ia64*)
 
16225
    shrext_cmds='.so'
 
16226
    hardcode_into_libs=yes
 
16227
    dynamic_linker="$host_os dld.so"
 
16228
    shlibpath_var=LD_LIBRARY_PATH
 
16229
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16230
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16231
    soname_spec='${libname}${release}${shared_ext}$major'
 
16232
    if test "X$HPUX_IA64_MODE" = X32; then
 
16233
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16234
    else
 
16235
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16236
    fi
 
16237
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16238
    ;;
 
16239
   hppa*64*)
 
16240
     shrext_cmds='.sl'
 
16241
     hardcode_into_libs=yes
 
16242
     dynamic_linker="$host_os dld.sl"
 
16243
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16244
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16245
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16246
     soname_spec='${libname}${release}${shared_ext}$major'
 
16247
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16248
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16249
     ;;
 
16250
   *)
 
16251
    shrext_cmds='.sl'
 
16252
    dynamic_linker="$host_os dld.sl"
 
16253
    shlibpath_var=SHLIB_PATH
 
16254
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16255
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16256
    soname_spec='${libname}${release}${shared_ext}$major'
 
16257
    ;;
 
16258
  esac
 
16259
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16260
  postinstall_cmds='chmod 555 $lib'
 
16261
  ;;
 
16262
 
 
16263
interix[3-9]*)
 
16264
  version_type=linux
 
16265
  need_lib_prefix=no
 
16266
  need_version=no
 
16267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16268
  soname_spec='${libname}${release}${shared_ext}$major'
 
16269
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16270
  shlibpath_var=LD_LIBRARY_PATH
 
16271
  shlibpath_overrides_runpath=no
 
16272
  hardcode_into_libs=yes
 
16273
  ;;
 
16274
 
 
16275
irix5* | irix6* | nonstopux*)
 
16276
  case $host_os in
 
16277
    nonstopux*) version_type=nonstopux ;;
 
16278
    *)
 
16279
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16280
                version_type=linux
 
16281
        else
 
16282
                version_type=irix
 
16283
        fi ;;
 
16284
  esac
 
16285
  need_lib_prefix=no
 
16286
  need_version=no
 
16287
  soname_spec='${libname}${release}${shared_ext}$major'
 
16288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16289
  case $host_os in
 
16290
  irix5* | nonstopux*)
 
16291
    libsuff= shlibsuff=
 
16292
    ;;
 
16293
  *)
 
16294
    case $LD in # libtool.m4 will add one of these switches to LD
 
16295
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16296
      libsuff= shlibsuff= libmagic=32-bit;;
 
16297
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16298
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16299
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16300
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16301
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16302
    esac
 
16303
    ;;
 
16304
  esac
 
16305
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16306
  shlibpath_overrides_runpath=no
 
16307
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16308
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16309
  hardcode_into_libs=yes
 
16310
  ;;
 
16311
 
 
16312
# No shared lib support for Linux oldld, aout, or coff.
 
16313
linux*oldld* | linux*aout* | linux*coff*)
 
16314
  dynamic_linker=no
 
16315
  ;;
 
16316
 
 
16317
# This must be Linux ELF.
 
16318
linux* | k*bsd*-gnu)
 
16319
  version_type=linux
 
16320
  need_lib_prefix=no
 
16321
  need_version=no
 
16322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16323
  soname_spec='${libname}${release}${shared_ext}$major'
 
16324
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16325
  shlibpath_var=LD_LIBRARY_PATH
 
16326
  shlibpath_overrides_runpath=no
 
16327
  # This implies no fast_install, which is unacceptable.
 
16328
  # Some rework will be needed to allow for fast_install
 
16329
  # before this can be enabled.
 
16330
  hardcode_into_libs=yes
 
16331
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16332
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16333
 
 
16334
  # Append ld.so.conf contents to the search path
 
16335
  if test -f /etc/ld.so.conf; then
 
16336
    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' ' '`
 
16337
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16338
  fi
 
16339
 
 
16340
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16341
  # powerpc, because MkLinux only supported shared libraries with the
 
16342
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16343
  # most powerpc-linux boxes support dynamic linking these days and
 
16344
  # people can always --disable-shared, the test was removed, and we
 
16345
  # assume the GNU/Linux dynamic linker is in use.
 
16346
  dynamic_linker='GNU/Linux ld.so'
 
16347
  ;;
 
16348
 
 
16349
netbsd*)
 
16350
  version_type=sunos
 
16351
  need_lib_prefix=no
 
16352
  need_version=no
 
16353
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16354
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16355
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16356
    dynamic_linker='NetBSD (a.out) ld.so'
 
16357
  else
 
16358
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16359
    soname_spec='${libname}${release}${shared_ext}$major'
 
16360
    dynamic_linker='NetBSD ld.elf_so'
 
16361
  fi
 
16362
  shlibpath_var=LD_LIBRARY_PATH
 
16363
  shlibpath_overrides_runpath=yes
 
16364
  hardcode_into_libs=yes
 
16365
  ;;
 
16366
 
 
16367
newsos6)
 
16368
  version_type=linux
 
16369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16370
  shlibpath_var=LD_LIBRARY_PATH
 
16371
  shlibpath_overrides_runpath=yes
 
16372
  ;;
 
16373
 
 
16374
nto-qnx*)
 
16375
  version_type=linux
 
16376
  need_lib_prefix=no
 
16377
  need_version=no
 
16378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16379
  soname_spec='${libname}${release}${shared_ext}$major'
 
16380
  shlibpath_var=LD_LIBRARY_PATH
 
16381
  shlibpath_overrides_runpath=yes
 
16382
  ;;
 
16383
 
 
16384
openbsd*)
 
16385
  version_type=sunos
 
16386
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16387
  need_lib_prefix=no
 
16388
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16389
  case $host_os in
 
16390
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16391
    *)                         need_version=no  ;;
 
16392
  esac
 
16393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16394
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16395
  shlibpath_var=LD_LIBRARY_PATH
 
16396
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16397
    case $host_os in
 
16398
      openbsd2.[89] | openbsd2.[89].*)
 
16399
        shlibpath_overrides_runpath=no
 
16400
        ;;
 
16401
      *)
 
16402
        shlibpath_overrides_runpath=yes
 
16403
        ;;
 
16404
      esac
 
16405
  else
 
16406
    shlibpath_overrides_runpath=yes
 
16407
  fi
 
16408
  ;;
 
16409
 
 
16410
os2*)
 
16411
  libname_spec='$name'
 
16412
  shrext_cmds=".dll"
 
16413
  need_lib_prefix=no
 
16414
  library_names_spec='$libname${shared_ext} $libname.a'
 
16415
  dynamic_linker='OS/2 ld.exe'
 
16416
  shlibpath_var=LIBPATH
 
16417
  ;;
 
16418
 
 
16419
osf3* | osf4* | osf5*)
 
16420
  version_type=osf
 
16421
  need_lib_prefix=no
 
16422
  need_version=no
 
16423
  soname_spec='${libname}${release}${shared_ext}$major'
 
16424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16425
  shlibpath_var=LD_LIBRARY_PATH
 
16426
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16427
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16428
  ;;
 
16429
 
 
16430
rdos*)
 
16431
  dynamic_linker=no
 
16432
  ;;
 
16433
 
 
16434
solaris*)
 
16435
  version_type=linux
 
16436
  need_lib_prefix=no
 
16437
  need_version=no
 
16438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16439
  soname_spec='${libname}${release}${shared_ext}$major'
 
16440
  shlibpath_var=LD_LIBRARY_PATH
 
16441
  shlibpath_overrides_runpath=yes
 
16442
  hardcode_into_libs=yes
 
16443
  # ldd complains unless libraries are executable
 
16444
  postinstall_cmds='chmod +x $lib'
 
16445
  ;;
 
16446
 
 
16447
sunos4*)
 
16448
  version_type=sunos
 
16449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16450
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16451
  shlibpath_var=LD_LIBRARY_PATH
 
16452
  shlibpath_overrides_runpath=yes
 
16453
  if test "$with_gnu_ld" = yes; then
 
16454
    need_lib_prefix=no
 
16455
  fi
 
16456
  need_version=yes
 
16457
  ;;
 
16458
 
 
16459
sysv4 | sysv4.3*)
 
16460
  version_type=linux
 
16461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16462
  soname_spec='${libname}${release}${shared_ext}$major'
 
16463
  shlibpath_var=LD_LIBRARY_PATH
 
16464
  case $host_vendor in
 
16465
    sni)
 
16466
      shlibpath_overrides_runpath=no
 
16467
      need_lib_prefix=no
 
16468
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16469
      runpath_var=LD_RUN_PATH
 
16470
      ;;
 
16471
    siemens)
 
16472
      need_lib_prefix=no
 
16473
      ;;
 
16474
    motorola)
 
16475
      need_lib_prefix=no
 
16476
      need_version=no
 
16477
      shlibpath_overrides_runpath=no
 
16478
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16479
      ;;
 
16480
  esac
 
16481
  ;;
 
16482
 
 
16483
sysv4*MP*)
 
16484
  if test -d /usr/nec ;then
 
16485
    version_type=linux
 
16486
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16487
    soname_spec='$libname${shared_ext}.$major'
 
16488
    shlibpath_var=LD_LIBRARY_PATH
 
16489
  fi
 
16490
  ;;
 
16491
 
 
16492
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16493
  version_type=freebsd-elf
 
16494
  need_lib_prefix=no
 
16495
  need_version=no
 
16496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16497
  soname_spec='${libname}${release}${shared_ext}$major'
 
16498
  shlibpath_var=LD_LIBRARY_PATH
 
16499
  hardcode_into_libs=yes
 
16500
  if test "$with_gnu_ld" = yes; then
 
16501
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16502
    shlibpath_overrides_runpath=no
 
16503
  else
 
16504
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16505
    shlibpath_overrides_runpath=yes
 
16506
    case $host_os in
 
16507
      sco3.2v5*)
 
16508
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16509
        ;;
 
16510
    esac
 
16511
  fi
 
16512
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16513
  ;;
 
16514
 
 
16515
uts4*)
 
16516
  version_type=linux
 
16517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16518
  soname_spec='${libname}${release}${shared_ext}$major'
 
16519
  shlibpath_var=LD_LIBRARY_PATH
 
16520
  ;;
 
16521
 
 
16522
*)
 
16523
  dynamic_linker=no
 
16524
  ;;
 
16525
esac
 
16526
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16527
$as_echo "$dynamic_linker" >&6; }
 
16528
test "$dynamic_linker" = no && can_build_shared=no
 
16529
 
 
16530
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16531
  $as_echo_n "(cached) " >&6
 
16532
else
 
16533
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16534
fi
 
16535
 
 
16536
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16537
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16538
  $as_echo_n "(cached) " >&6
 
16539
else
 
16540
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16541
fi
 
16542
 
 
16543
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16544
 
 
16545
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16546
if test "$GCC" = yes; then
 
16547
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16548
fi
 
16549
 
 
16550
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16551
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16552
hardcode_action_F77=
 
16553
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16554
   test -n "$runpath_var_F77" || \
 
16555
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16556
 
 
16557
  # We can hardcode non-existant directories.
 
16558
  if test "$hardcode_direct_F77" != no &&
 
16559
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16560
     # have to relink, otherwise we might link with an installed library
 
16561
     # when we should be linking with a yet-to-be-installed one
 
16562
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16563
     test "$hardcode_minus_L_F77" != no; then
 
16564
    # Linking always hardcodes the temporary library directory.
 
16565
    hardcode_action_F77=relink
 
16566
  else
 
16567
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16568
    hardcode_action_F77=immediate
 
16569
  fi
 
16570
else
 
16571
  # We cannot hardcode anything, or else we can only hardcode existing
 
16572
  # directories.
 
16573
  hardcode_action_F77=unsupported
 
16574
fi
 
16575
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16576
$as_echo "$hardcode_action_F77" >&6; }
 
16577
 
 
16578
if test "$hardcode_action_F77" = relink; then
 
16579
  # Fast installation is not supported
 
16580
  enable_fast_install=no
 
16581
elif test "$shlibpath_overrides_runpath" = yes ||
 
16582
     test "$enable_shared" = no; then
 
16583
  # Fast installation is not necessary
 
16584
  enable_fast_install=needless
 
16585
fi
 
16586
 
 
16587
 
 
16588
# The else clause should only fire when bootstrapping the
 
16589
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16590
# with your package, and you will get complaints that there are
 
16591
# no rules to generate ltmain.sh.
 
16592
if test -f "$ltmain"; then
 
16593
  # See if we are running on zsh, and set the options which allow our commands through
 
16594
  # without removal of \ escapes.
 
16595
  if test -n "${ZSH_VERSION+set}" ; then
 
16596
    setopt NO_GLOB_SUBST
 
16597
  fi
 
16598
  # Now quote all the things that may contain metacharacters while being
 
16599
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16600
  # variables and quote the copies for generation of the libtool script.
 
16601
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16602
    SED SHELL STRIP \
 
16603
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16604
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16605
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16606
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16607
    lt_cv_sys_global_symbol_to_c_name_address \
 
16608
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16609
    old_postinstall_cmds old_postuninstall_cmds \
 
16610
    compiler_F77 \
 
16611
    CC_F77 \
 
16612
    LD_F77 \
 
16613
    lt_prog_compiler_wl_F77 \
 
16614
    lt_prog_compiler_pic_F77 \
 
16615
    lt_prog_compiler_static_F77 \
 
16616
    lt_prog_compiler_no_builtin_flag_F77 \
 
16617
    export_dynamic_flag_spec_F77 \
 
16618
    thread_safe_flag_spec_F77 \
 
16619
    whole_archive_flag_spec_F77 \
 
16620
    enable_shared_with_static_runtimes_F77 \
 
16621
    old_archive_cmds_F77 \
 
16622
    old_archive_from_new_cmds_F77 \
 
16623
    predep_objects_F77 \
 
16624
    postdep_objects_F77 \
 
16625
    predeps_F77 \
 
16626
    postdeps_F77 \
 
16627
    compiler_lib_search_path_F77 \
 
16628
    compiler_lib_search_dirs_F77 \
 
16629
    archive_cmds_F77 \
 
16630
    archive_expsym_cmds_F77 \
 
16631
    postinstall_cmds_F77 \
 
16632
    postuninstall_cmds_F77 \
 
16633
    old_archive_from_expsyms_cmds_F77 \
 
16634
    allow_undefined_flag_F77 \
 
16635
    no_undefined_flag_F77 \
 
16636
    export_symbols_cmds_F77 \
 
16637
    hardcode_libdir_flag_spec_F77 \
 
16638
    hardcode_libdir_flag_spec_ld_F77 \
 
16639
    hardcode_libdir_separator_F77 \
 
16640
    hardcode_automatic_F77 \
 
16641
    module_cmds_F77 \
 
16642
    module_expsym_cmds_F77 \
 
16643
    lt_cv_prog_compiler_c_o_F77 \
 
16644
    fix_srcfile_path_F77 \
 
16645
    exclude_expsyms_F77 \
 
16646
    include_expsyms_F77; do
 
16647
 
 
16648
    case $var in
 
16649
    old_archive_cmds_F77 | \
 
16650
    old_archive_from_new_cmds_F77 | \
 
16651
    archive_cmds_F77 | \
 
16652
    archive_expsym_cmds_F77 | \
 
16653
    module_cmds_F77 | \
 
16654
    module_expsym_cmds_F77 | \
 
16655
    old_archive_from_expsyms_cmds_F77 | \
 
16656
    export_symbols_cmds_F77 | \
 
16657
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16658
    postinstall_cmds | postuninstall_cmds | \
 
16659
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16660
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16661
      # Double-quote double-evaled strings.
 
16662
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16663
      ;;
 
16664
    *)
 
16665
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16666
      ;;
 
16667
    esac
 
16668
  done
 
16669
 
 
16670
  case $lt_echo in
 
16671
  *'\$0 --fallback-echo"')
 
16672
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16673
    ;;
 
16674
  esac
 
16675
 
 
16676
cfgfile="$ofile"
 
16677
 
 
16678
  cat <<__EOF__ >> "$cfgfile"
 
16679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16680
 
 
16681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16682
 
 
16683
# Shell to use when invoking shell scripts.
 
16684
SHELL=$lt_SHELL
 
16685
 
 
16686
# Whether or not to build shared libraries.
 
16687
build_libtool_libs=$enable_shared
 
16688
 
 
16689
# Whether or not to build static libraries.
 
16690
build_old_libs=$enable_static
 
16691
 
 
16692
# Whether or not to add -lc for building shared libraries.
 
16693
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16694
 
 
16695
# Whether or not to disallow shared libs when runtime libs are static
 
16696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16697
 
 
16698
# Whether or not to optimize for fast installation.
 
16699
fast_install=$enable_fast_install
 
16700
 
 
16701
# The host system.
 
16702
host_alias=$host_alias
 
16703
host=$host
 
16704
host_os=$host_os
 
16705
 
 
16706
# The build system.
 
16707
build_alias=$build_alias
 
16708
build=$build
 
16709
build_os=$build_os
 
16710
 
 
16711
# An echo program that does not interpret backslashes.
 
16712
echo=$lt_echo
 
16713
 
 
16714
# The archiver.
 
16715
AR=$lt_AR
 
16716
AR_FLAGS=$lt_AR_FLAGS
 
16717
 
 
16718
# A C compiler.
 
16719
LTCC=$lt_LTCC
 
16720
 
 
16721
# LTCC compiler flags.
 
16722
LTCFLAGS=$lt_LTCFLAGS
 
16723
 
 
16724
# A language-specific compiler.
 
16725
CC=$lt_compiler_F77
 
16726
 
 
16727
# Is the compiler the GNU C compiler?
 
16728
with_gcc=$GCC_F77
 
16729
 
 
16730
# An ERE matcher.
 
16731
EGREP=$lt_EGREP
 
16732
 
 
16733
# The linker used to build libraries.
 
16734
LD=$lt_LD_F77
 
16735
 
 
16736
# Whether we need hard or soft links.
 
16737
LN_S=$lt_LN_S
 
16738
 
 
16739
# A BSD-compatible nm program.
 
16740
NM=$lt_NM
 
16741
 
 
16742
# A symbol stripping program
 
16743
STRIP=$lt_STRIP
 
16744
 
 
16745
# Used to examine libraries when file_magic_cmd begins "file"
 
16746
MAGIC_CMD=$MAGIC_CMD
 
16747
 
 
16748
# Used on cygwin: DLL creation program.
 
16749
DLLTOOL="$DLLTOOL"
 
16750
 
 
16751
# Used on cygwin: object dumper.
 
16752
OBJDUMP="$OBJDUMP"
 
16753
 
 
16754
# Used on cygwin: assembler.
 
16755
AS="$AS"
 
16756
 
 
16757
# The name of the directory that contains temporary libtool files.
 
16758
objdir=$objdir
 
16759
 
 
16760
# How to create reloadable object files.
 
16761
reload_flag=$lt_reload_flag
 
16762
reload_cmds=$lt_reload_cmds
 
16763
 
 
16764
# How to pass a linker flag through the compiler.
 
16765
wl=$lt_lt_prog_compiler_wl_F77
 
16766
 
 
16767
# Object file suffix (normally "o").
 
16768
objext="$ac_objext"
 
16769
 
 
16770
# Old archive suffix (normally "a").
 
16771
libext="$libext"
 
16772
 
 
16773
# Shared library suffix (normally ".so").
 
16774
shrext_cmds='$shrext_cmds'
 
16775
 
 
16776
# Executable file suffix (normally "").
 
16777
exeext="$exeext"
 
16778
 
 
16779
# Additional compiler flags for building library objects.
 
16780
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16781
pic_mode=$pic_mode
 
16782
 
 
16783
# What is the maximum length of a command?
 
16784
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16785
 
 
16786
# Does compiler simultaneously support -c and -o options?
 
16787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16788
 
 
16789
# Must we lock files when doing compilation?
 
16790
need_locks=$lt_need_locks
 
16791
 
 
16792
# Do we need the lib prefix for modules?
 
16793
need_lib_prefix=$need_lib_prefix
 
16794
 
 
16795
# Do we need a version for libraries?
 
16796
need_version=$need_version
 
16797
 
 
16798
# Whether dlopen is supported.
 
16799
dlopen_support=$enable_dlopen
 
16800
 
 
16801
# Whether dlopen of programs is supported.
 
16802
dlopen_self=$enable_dlopen_self
 
16803
 
 
16804
# Whether dlopen of statically linked programs is supported.
 
16805
dlopen_self_static=$enable_dlopen_self_static
 
16806
 
 
16807
# Compiler flag to prevent dynamic linking.
 
16808
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16809
 
 
16810
# Compiler flag to turn off builtin functions.
 
16811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16812
 
 
16813
# Compiler flag to allow reflexive dlopens.
 
16814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16815
 
 
16816
# Compiler flag to generate shared objects directly from archives.
 
16817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16818
 
 
16819
# Compiler flag to generate thread-safe objects.
 
16820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16821
 
 
16822
# Library versioning type.
 
16823
version_type=$version_type
 
16824
 
 
16825
# Format of library name prefix.
 
16826
libname_spec=$lt_libname_spec
 
16827
 
 
16828
# List of archive names.  First name is the real one, the rest are links.
 
16829
# The last name is the one that the linker finds with -lNAME.
 
16830
library_names_spec=$lt_library_names_spec
 
16831
 
 
16832
# The coded name of the library, if different from the real name.
 
16833
soname_spec=$lt_soname_spec
 
16834
 
 
16835
# Commands used to build and install an old-style archive.
 
16836
RANLIB=$lt_RANLIB
 
16837
old_archive_cmds=$lt_old_archive_cmds_F77
 
16838
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16840
 
 
16841
# Create an old-style archive from a shared archive.
 
16842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16843
 
 
16844
# Create a temporary old-style archive to link instead of a shared archive.
 
16845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16846
 
 
16847
# Commands used to build and install a shared archive.
 
16848
archive_cmds=$lt_archive_cmds_F77
 
16849
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16850
postinstall_cmds=$lt_postinstall_cmds
 
16851
postuninstall_cmds=$lt_postuninstall_cmds
 
16852
 
 
16853
# Commands used to build a loadable module (assumed same as above if empty)
 
16854
module_cmds=$lt_module_cmds_F77
 
16855
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16856
 
 
16857
# Commands to strip libraries.
 
16858
old_striplib=$lt_old_striplib
 
16859
striplib=$lt_striplib
 
16860
 
 
16861
# Dependencies to place before the objects being linked to create a
 
16862
# shared library.
 
16863
predep_objects=$lt_predep_objects_F77
 
16864
 
 
16865
# Dependencies to place after the objects being linked to create a
 
16866
# shared library.
 
16867
postdep_objects=$lt_postdep_objects_F77
 
16868
 
 
16869
# Dependencies to place before the objects being linked to create a
 
16870
# shared library.
 
16871
predeps=$lt_predeps_F77
 
16872
 
 
16873
# Dependencies to place after the objects being linked to create a
 
16874
# shared library.
 
16875
postdeps=$lt_postdeps_F77
 
16876
 
 
16877
# The directories searched by this compiler when creating a shared
 
16878
# library
 
16879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16880
 
 
16881
# The library search path used internally by the compiler when linking
 
16882
# a shared library.
 
16883
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16884
 
 
16885
# Method to check whether dependent libraries are shared objects.
 
16886
deplibs_check_method=$lt_deplibs_check_method
 
16887
 
 
16888
# Command to use when deplibs_check_method == file_magic.
 
16889
file_magic_cmd=$lt_file_magic_cmd
 
16890
 
 
16891
# Flag that allows shared libraries with undefined symbols to be built.
 
16892
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16893
 
 
16894
# Flag that forces no undefined symbols.
 
16895
no_undefined_flag=$lt_no_undefined_flag_F77
 
16896
 
 
16897
# Commands used to finish a libtool library installation in a directory.
 
16898
finish_cmds=$lt_finish_cmds
 
16899
 
 
16900
# Same as above, but a single script fragment to be evaled but not shown.
 
16901
finish_eval=$lt_finish_eval
 
16902
 
 
16903
# Take the output of nm and produce a listing of raw symbols and C names.
 
16904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16905
 
 
16906
# Transform the output of nm in a proper C declaration
 
16907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16908
 
 
16909
# Transform the output of nm in a C name address pair
 
16910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16911
 
 
16912
# This is the shared library runtime path variable.
 
16913
runpath_var=$runpath_var
 
16914
 
 
16915
# This is the shared library path variable.
 
16916
shlibpath_var=$shlibpath_var
 
16917
 
 
16918
# Is shlibpath searched before the hard-coded library search path?
 
16919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16920
 
 
16921
# How to hardcode a shared library path into an executable.
 
16922
hardcode_action=$hardcode_action_F77
 
16923
 
 
16924
# Whether we should hardcode library paths into libraries.
 
16925
hardcode_into_libs=$hardcode_into_libs
 
16926
 
 
16927
# Flag to hardcode \$libdir into a binary during linking.
 
16928
# This must work even if \$libdir does not exist.
 
16929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16930
 
 
16931
# If ld is used when linking, flag to hardcode \$libdir into
 
16932
# a binary during linking. This must work even if \$libdir does
 
16933
# not exist.
 
16934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16935
 
 
16936
# Whether we need a single -rpath flag with a separated argument.
 
16937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16938
 
 
16939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16940
# resulting binary.
 
16941
hardcode_direct=$hardcode_direct_F77
 
16942
 
 
16943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16944
# resulting binary.
 
16945
hardcode_minus_L=$hardcode_minus_L_F77
 
16946
 
 
16947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16948
# the resulting binary.
 
16949
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16950
 
 
16951
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16952
# and all subsequent libraries and executables linked against it.
 
16953
hardcode_automatic=$hardcode_automatic_F77
 
16954
 
 
16955
# Variables whose values should be saved in libtool wrapper scripts and
 
16956
# restored at relink time.
 
16957
variables_saved_for_relink="$variables_saved_for_relink"
 
16958
 
 
16959
# Whether libtool must link a program against all its dependency libraries.
 
16960
link_all_deplibs=$link_all_deplibs_F77
 
16961
 
 
16962
# Compile-time system search path for libraries
 
16963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16964
 
 
16965
# Run-time system search path for libraries
 
16966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16967
 
 
16968
# Fix the shell variable \$srcfile for the compiler.
 
16969
fix_srcfile_path=$lt_fix_srcfile_path
 
16970
 
 
16971
# Set to yes if exported symbols are required.
 
16972
always_export_symbols=$always_export_symbols_F77
 
16973
 
 
16974
# The commands to list exported symbols.
 
16975
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16976
 
 
16977
# The commands to extract the exported symbol list from a shared archive.
 
16978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16979
 
 
16980
# Symbols that should not be listed in the preloaded symbols.
 
16981
exclude_expsyms=$lt_exclude_expsyms_F77
 
16982
 
 
16983
# Symbols that must always be exported.
 
16984
include_expsyms=$lt_include_expsyms_F77
 
16985
 
 
16986
# ### END LIBTOOL TAG CONFIG: $tagname
 
16987
 
 
16988
__EOF__
 
16989
 
 
16990
 
 
16991
else
 
16992
  # If there is no Makefile yet, we rely on a make rule to execute
 
16993
  # `config.status --recheck' to rerun these tests and create the
 
16994
  # libtool script then.
 
16995
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16996
  if test -f "$ltmain_in"; then
 
16997
    test -f Makefile && make "$ltmain"
 
16998
  fi
 
16999
fi
 
17000
 
 
17001
 
 
17002
ac_ext=c
 
17003
ac_cpp='$CPP $CPPFLAGS'
 
17004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17007
 
 
17008
CC="$lt_save_CC"
 
17009
 
 
17010
        else
 
17011
          tagname=""
 
17012
        fi
 
17013
        ;;
 
17014
 
 
17015
      GCJ)
 
17016
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17017
 
 
17018
 
 
17019
# Source file extension for Java test sources.
 
17020
ac_ext=java
 
17021
 
 
17022
# Object file extension for compiled Java test sources.
 
17023
objext=o
 
17024
objext_GCJ=$objext
 
17025
 
 
17026
# Code to be used in simple compile tests
 
17027
lt_simple_compile_test_code="class foo {}"
 
17028
 
 
17029
# Code to be used in simple link tests
 
17030
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17031
 
 
17032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17033
 
 
17034
# If no C compiler was specified, use CC.
 
17035
LTCC=${LTCC-"$CC"}
 
17036
 
 
17037
# If no C compiler flags were specified, use CFLAGS.
 
17038
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17039
 
 
17040
# Allow CC to be a program name with arguments.
 
17041
compiler=$CC
 
17042
 
 
17043
 
 
17044
# save warnings/boilerplate of simple test code
 
17045
ac_outfile=conftest.$ac_objext
 
17046
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17047
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17048
_lt_compiler_boilerplate=`cat conftest.err`
 
17049
$rm conftest*
 
17050
 
 
17051
ac_outfile=conftest.$ac_objext
 
17052
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17053
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17054
_lt_linker_boilerplate=`cat conftest.err`
 
17055
$rm -r conftest*
 
17056
 
 
17057
 
 
17058
# Allow CC to be a program name with arguments.
 
17059
lt_save_CC="$CC"
 
17060
CC=${GCJ-"gcj"}
 
17061
compiler=$CC
 
17062
compiler_GCJ=$CC
 
17063
for cc_temp in $compiler""; do
 
17064
  case $cc_temp in
 
17065
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17066
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17067
    \-*) ;;
 
17068
    *) break;;
 
17069
  esac
 
17070
done
 
17071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17072
 
 
17073
 
 
17074
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17075
archive_cmds_need_lc_GCJ=no
 
17076
 
 
17077
old_archive_cmds_GCJ=$old_archive_cmds
 
17078
 
 
17079
 
 
17080
lt_prog_compiler_no_builtin_flag_GCJ=
 
17081
 
 
17082
if test "$GCC" = yes; then
 
17083
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17084
 
 
17085
 
 
17086
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17087
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
17088
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17089
  $as_echo_n "(cached) " >&6
 
17090
else
 
17091
  lt_cv_prog_compiler_rtti_exceptions=no
 
17092
  ac_outfile=conftest.$ac_objext
 
17093
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17094
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17095
   # Insert the option either (1) after the last *FLAGS variable, or
 
17096
   # (2) before a word containing "conftest.", or (3) at the end.
 
17097
   # Note that $ac_compile itself does not contain backslashes and begins
 
17098
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17099
   # The option is referenced via a variable to avoid confusing sed.
 
17100
   lt_compile=`echo "$ac_compile" | $SED \
 
17101
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17102
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17103
   -e 's:$: $lt_compiler_flag:'`
 
17104
   (eval echo "\"\$as_me:17104: $lt_compile\"" >&5)
 
17105
   (eval "$lt_compile" 2>conftest.err)
 
17106
   ac_status=$?
 
17107
   cat conftest.err >&5
 
17108
   echo "$as_me:17108: \$? = $ac_status" >&5
 
17109
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17110
     # The compiler can only warn and ignore the option if not recognized
 
17111
     # So say no if there are warnings other than the usual output.
 
17112
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17113
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17114
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17115
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17116
     fi
 
17117
   fi
 
17118
   $rm conftest*
 
17119
 
 
17120
fi
 
17121
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17122
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17123
 
 
17124
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17125
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17126
else
 
17127
    :
 
17128
fi
 
17129
 
 
17130
fi
 
17131
 
 
17132
lt_prog_compiler_wl_GCJ=
 
17133
lt_prog_compiler_pic_GCJ=
 
17134
lt_prog_compiler_static_GCJ=
 
17135
 
 
17136
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17137
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
17138
 
 
17139
  if test "$GCC" = yes; then
 
17140
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17141
    lt_prog_compiler_static_GCJ='-static'
 
17142
 
 
17143
    case $host_os in
 
17144
      aix*)
 
17145
      # All AIX code is PIC.
 
17146
      if test "$host_cpu" = ia64; then
 
17147
        # AIX 5 now supports IA64 processor
 
17148
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17149
      fi
 
17150
      ;;
 
17151
 
 
17152
    amigaos*)
 
17153
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17154
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17155
      # like `-m68040'.
 
17156
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17157
      ;;
 
17158
 
 
17159
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17160
      # PIC is the default for these OSes.
 
17161
      ;;
 
17162
 
 
17163
    mingw* | cygwin* | pw32* | os2*)
 
17164
      # This hack is so that the source file can tell whether it is being
 
17165
      # built for inclusion in a dll (and should export symbols for example).
 
17166
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17167
      # (--disable-auto-import) libraries
 
17168
 
 
17169
      ;;
 
17170
 
 
17171
    darwin* | rhapsody*)
 
17172
      # PIC is the default on this platform
 
17173
      # Common symbols not allowed in MH_DYLIB files
 
17174
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17175
      ;;
 
17176
 
 
17177
    interix[3-9]*)
 
17178
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17179
      # Instead, we relocate shared libraries at runtime.
 
17180
      ;;
 
17181
 
 
17182
    msdosdjgpp*)
 
17183
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17184
      # on systems that don't support them.
 
17185
      lt_prog_compiler_can_build_shared_GCJ=no
 
17186
      enable_shared=no
 
17187
      ;;
 
17188
 
 
17189
    sysv4*MP*)
 
17190
      if test -d /usr/nec; then
 
17191
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17192
      fi
 
17193
      ;;
 
17194
 
 
17195
    hpux*)
 
17196
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17197
      # not for PA HP-UX.
 
17198
      case $host_cpu in
 
17199
      hppa*64*|ia64*)
 
17200
        # +Z the default
 
17201
        ;;
 
17202
      *)
 
17203
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17204
        ;;
 
17205
      esac
 
17206
      ;;
 
17207
 
 
17208
    *)
 
17209
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17210
      ;;
 
17211
    esac
 
17212
  else
 
17213
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17214
    case $host_os in
 
17215
    aix*)
 
17216
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17217
      if test "$host_cpu" = ia64; then
 
17218
        # AIX 5 now supports IA64 processor
 
17219
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17220
      else
 
17221
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17222
      fi
 
17223
      ;;
 
17224
      darwin*)
 
17225
        # PIC is the default on this platform
 
17226
        # Common symbols not allowed in MH_DYLIB files
 
17227
       case $cc_basename in
 
17228
         xlc*)
 
17229
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17230
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17231
         ;;
 
17232
       esac
 
17233
       ;;
 
17234
 
 
17235
    mingw* | cygwin* | pw32* | os2*)
 
17236
      # This hack is so that the source file can tell whether it is being
 
17237
      # built for inclusion in a dll (and should export symbols for example).
 
17238
 
 
17239
      ;;
 
17240
 
 
17241
    hpux9* | hpux10* | hpux11*)
 
17242
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17243
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17244
      # not for PA HP-UX.
 
17245
      case $host_cpu in
 
17246
      hppa*64*|ia64*)
 
17247
        # +Z the default
 
17248
        ;;
 
17249
      *)
 
17250
        lt_prog_compiler_pic_GCJ='+Z'
 
17251
        ;;
 
17252
      esac
 
17253
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17254
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17255
      ;;
 
17256
 
 
17257
    irix5* | irix6* | nonstopux*)
 
17258
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17259
      # PIC (with -KPIC) is the default.
 
17260
      lt_prog_compiler_static_GCJ='-non_shared'
 
17261
      ;;
 
17262
 
 
17263
    newsos6)
 
17264
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17265
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17266
      ;;
 
17267
 
 
17268
    linux* | k*bsd*-gnu)
 
17269
      case $cc_basename in
 
17270
      icc* | ecc*)
 
17271
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17272
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17273
        lt_prog_compiler_static_GCJ='-static'
 
17274
        ;;
 
17275
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17276
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17277
        # which looks to be a dead project)
 
17278
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17279
        lt_prog_compiler_pic_GCJ='-fpic'
 
17280
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17281
        ;;
 
17282
      ccc*)
 
17283
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17284
        # All Alpha code is PIC.
 
17285
        lt_prog_compiler_static_GCJ='-non_shared'
 
17286
        ;;
 
17287
      *)
 
17288
        case `$CC -V 2>&1 | sed 5q` in
 
17289
        *Sun\ C*)
 
17290
          # Sun C 5.9
 
17291
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17292
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17293
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17294
          ;;
 
17295
        *Sun\ F*)
 
17296
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17297
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17298
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17299
          lt_prog_compiler_wl_GCJ=''
 
17300
          ;;
 
17301
        esac
 
17302
        ;;
 
17303
      esac
 
17304
      ;;
 
17305
 
 
17306
    osf3* | osf4* | osf5*)
 
17307
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17308
      # All OSF/1 code is PIC.
 
17309
      lt_prog_compiler_static_GCJ='-non_shared'
 
17310
      ;;
 
17311
 
 
17312
    rdos*)
 
17313
      lt_prog_compiler_static_GCJ='-non_shared'
 
17314
      ;;
 
17315
 
 
17316
    solaris*)
 
17317
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17318
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17319
      case $cc_basename in
 
17320
      f77* | f90* | f95*)
 
17321
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17322
      *)
 
17323
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17324
      esac
 
17325
      ;;
 
17326
 
 
17327
    sunos4*)
 
17328
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17329
      lt_prog_compiler_pic_GCJ='-PIC'
 
17330
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17331
      ;;
 
17332
 
 
17333
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17334
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17335
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17336
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17337
      ;;
 
17338
 
 
17339
    sysv4*MP*)
 
17340
      if test -d /usr/nec ;then
 
17341
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17342
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17343
      fi
 
17344
      ;;
 
17345
 
 
17346
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17347
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17348
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17349
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17350
      ;;
 
17351
 
 
17352
    unicos*)
 
17353
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17354
      lt_prog_compiler_can_build_shared_GCJ=no
 
17355
      ;;
 
17356
 
 
17357
    uts4*)
 
17358
      lt_prog_compiler_pic_GCJ='-pic'
 
17359
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17360
      ;;
 
17361
 
 
17362
    *)
 
17363
      lt_prog_compiler_can_build_shared_GCJ=no
 
17364
      ;;
 
17365
    esac
 
17366
  fi
 
17367
 
 
17368
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17369
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17370
 
 
17371
#
 
17372
# Check to make sure the PIC flag actually works.
 
17373
#
 
17374
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17375
 
 
17376
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17377
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17378
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17379
  $as_echo_n "(cached) " >&6
 
17380
else
 
17381
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17382
  ac_outfile=conftest.$ac_objext
 
17383
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17384
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17385
   # Insert the option either (1) after the last *FLAGS variable, or
 
17386
   # (2) before a word containing "conftest.", or (3) at the end.
 
17387
   # Note that $ac_compile itself does not contain backslashes and begins
 
17388
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17389
   # The option is referenced via a variable to avoid confusing sed.
 
17390
   lt_compile=`echo "$ac_compile" | $SED \
 
17391
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17392
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17393
   -e 's:$: $lt_compiler_flag:'`
 
17394
   (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
 
17395
   (eval "$lt_compile" 2>conftest.err)
 
17396
   ac_status=$?
 
17397
   cat conftest.err >&5
 
17398
   echo "$as_me:17398: \$? = $ac_status" >&5
 
17399
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17400
     # The compiler can only warn and ignore the option if not recognized
 
17401
     # So say no if there are warnings other than the usual output.
 
17402
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17403
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17404
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17405
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17406
     fi
 
17407
   fi
 
17408
   $rm conftest*
 
17409
 
 
17410
fi
 
17411
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17412
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17413
 
 
17414
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17415
    case $lt_prog_compiler_pic_GCJ in
 
17416
     "" | " "*) ;;
 
17417
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17418
     esac
 
17419
else
 
17420
    lt_prog_compiler_pic_GCJ=
 
17421
     lt_prog_compiler_can_build_shared_GCJ=no
 
17422
fi
 
17423
 
 
17424
fi
 
17425
case $host_os in
 
17426
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17427
  *djgpp*)
 
17428
    lt_prog_compiler_pic_GCJ=
 
17429
    ;;
 
17430
  *)
 
17431
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17432
    ;;
 
17433
esac
 
17434
 
 
17435
#
 
17436
# Check to make sure the static flag actually works.
 
17437
#
 
17438
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17439
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17440
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17441
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17442
  $as_echo_n "(cached) " >&6
 
17443
else
 
17444
  lt_cv_prog_compiler_static_works_GCJ=no
 
17445
   save_LDFLAGS="$LDFLAGS"
 
17446
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17447
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17448
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17449
     # The linker can only warn and ignore the option if not recognized
 
17450
     # So say no if there are warnings
 
17451
     if test -s conftest.err; then
 
17452
       # Append any errors to the config.log.
 
17453
       cat conftest.err 1>&5
 
17454
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17455
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17456
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17457
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17458
       fi
 
17459
     else
 
17460
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17461
     fi
 
17462
   fi
 
17463
   $rm -r conftest*
 
17464
   LDFLAGS="$save_LDFLAGS"
 
17465
 
 
17466
fi
 
17467
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17468
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17469
 
 
17470
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17471
    :
 
17472
else
 
17473
    lt_prog_compiler_static_GCJ=
 
17474
fi
 
17475
 
 
17476
 
 
17477
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17478
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17479
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17480
  $as_echo_n "(cached) " >&6
 
17481
else
 
17482
  lt_cv_prog_compiler_c_o_GCJ=no
 
17483
   $rm -r conftest 2>/dev/null
 
17484
   mkdir conftest
 
17485
   cd conftest
 
17486
   mkdir out
 
17487
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17488
 
 
17489
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17490
   # Insert the option either (1) after the last *FLAGS variable, or
 
17491
   # (2) before a word containing "conftest.", or (3) at the end.
 
17492
   # Note that $ac_compile itself does not contain backslashes and begins
 
17493
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17494
   lt_compile=`echo "$ac_compile" | $SED \
 
17495
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17496
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17497
   -e 's:$: $lt_compiler_flag:'`
 
17498
   (eval echo "\"\$as_me:17498: $lt_compile\"" >&5)
 
17499
   (eval "$lt_compile" 2>out/conftest.err)
 
17500
   ac_status=$?
 
17501
   cat out/conftest.err >&5
 
17502
   echo "$as_me:17502: \$? = $ac_status" >&5
 
17503
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17504
   then
 
17505
     # The compiler can only warn and ignore the option if not recognized
 
17506
     # So say no if there are warnings
 
17507
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17508
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17509
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17510
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17511
     fi
 
17512
   fi
 
17513
   chmod u+w . 2>&5
 
17514
   $rm conftest*
 
17515
   # SGI C++ compiler will create directory out/ii_files/ for
 
17516
   # template instantiation
 
17517
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17518
   $rm out/* && rmdir out
 
17519
   cd ..
 
17520
   rmdir conftest
 
17521
   $rm conftest*
 
17522
 
 
17523
fi
 
17524
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17525
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17526
 
 
17527
 
 
17528
hard_links="nottested"
 
17529
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17530
  # do not overwrite the value of need_locks provided by the user
 
17531
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17532
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17533
  hard_links=yes
 
17534
  $rm conftest*
 
17535
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17536
  touch conftest.a
 
17537
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17538
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17539
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17540
$as_echo "$hard_links" >&6; }
 
17541
  if test "$hard_links" = no; then
 
17542
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17543
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17544
    need_locks=warn
 
17545
  fi
 
17546
else
 
17547
  need_locks=no
 
17548
fi
 
17549
 
 
17550
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17551
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17552
 
 
17553
  runpath_var=
 
17554
  allow_undefined_flag_GCJ=
 
17555
  enable_shared_with_static_runtimes_GCJ=no
 
17556
  archive_cmds_GCJ=
 
17557
  archive_expsym_cmds_GCJ=
 
17558
  old_archive_From_new_cmds_GCJ=
 
17559
  old_archive_from_expsyms_cmds_GCJ=
 
17560
  export_dynamic_flag_spec_GCJ=
 
17561
  whole_archive_flag_spec_GCJ=
 
17562
  thread_safe_flag_spec_GCJ=
 
17563
  hardcode_libdir_flag_spec_GCJ=
 
17564
  hardcode_libdir_flag_spec_ld_GCJ=
 
17565
  hardcode_libdir_separator_GCJ=
 
17566
  hardcode_direct_GCJ=no
 
17567
  hardcode_minus_L_GCJ=no
 
17568
  hardcode_shlibpath_var_GCJ=unsupported
 
17569
  link_all_deplibs_GCJ=unknown
 
17570
  hardcode_automatic_GCJ=no
 
17571
  module_cmds_GCJ=
 
17572
  module_expsym_cmds_GCJ=
 
17573
  always_export_symbols_GCJ=no
 
17574
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17575
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17576
  # included in the symbol list
 
17577
  include_expsyms_GCJ=
 
17578
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17579
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17580
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17581
  # as well as any symbol that contains `d'.
 
17582
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17583
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17584
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17585
  # the symbol is explicitly referenced.  Since portable code cannot
 
17586
  # rely on this symbol name, it's probably fine to never include it in
 
17587
  # preloaded symbol tables.
 
17588
  # Exclude shared library initialization/finalization symbols.
 
17589
  extract_expsyms_cmds=
 
17590
  # Just being paranoid about ensuring that cc_basename is set.
 
17591
  for cc_temp in $compiler""; do
 
17592
  case $cc_temp in
 
17593
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17594
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17595
    \-*) ;;
 
17596
    *) break;;
 
17597
  esac
 
17598
done
 
17599
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17600
 
 
17601
  case $host_os in
 
17602
  cygwin* | mingw* | pw32*)
 
17603
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17604
    # When not using gcc, we currently assume that we are using
 
17605
    # Microsoft Visual C++.
 
17606
    if test "$GCC" != yes; then
 
17607
      with_gnu_ld=no
 
17608
    fi
 
17609
    ;;
 
17610
  interix*)
 
17611
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17612
    with_gnu_ld=yes
 
17613
    ;;
 
17614
  openbsd*)
 
17615
    with_gnu_ld=no
 
17616
    ;;
 
17617
  esac
 
17618
 
 
17619
  ld_shlibs_GCJ=yes
 
17620
  if test "$with_gnu_ld" = yes; then
 
17621
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17622
    wlarc='${wl}'
 
17623
 
 
17624
    # Set some defaults for GNU ld with shared library support. These
 
17625
    # are reset later if shared libraries are not supported. Putting them
 
17626
    # here allows them to be overridden if necessary.
 
17627
    runpath_var=LD_RUN_PATH
 
17628
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17629
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17630
    # ancient GNU ld didn't support --whole-archive et. al.
 
17631
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17632
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17633
      else
 
17634
        whole_archive_flag_spec_GCJ=
 
17635
    fi
 
17636
    supports_anon_versioning=no
 
17637
    case `$LD -v 2>/dev/null` in
 
17638
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17639
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17640
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17641
      *\ 2.11.*) ;; # other 2.11 versions
 
17642
      *) supports_anon_versioning=yes ;;
 
17643
    esac
 
17644
 
 
17645
    # See if GNU ld supports shared libraries.
 
17646
    case $host_os in
 
17647
    aix[3-9]*)
 
17648
      # On AIX/PPC, the GNU linker is very broken
 
17649
      if test "$host_cpu" != ia64; then
 
17650
        ld_shlibs_GCJ=no
 
17651
        cat <<EOF 1>&2
 
17652
 
 
17653
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17654
*** to be unable to reliably create shared libraries on AIX.
 
17655
*** Therefore, libtool is disabling shared libraries support.  If you
 
17656
*** really care for shared libraries, you may want to modify your PATH
 
17657
*** so that a non-GNU linker is found, and then restart.
 
17658
 
 
17659
EOF
 
17660
      fi
 
17661
      ;;
 
17662
 
 
17663
    amigaos*)
 
17664
      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)'
 
17665
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17666
      hardcode_minus_L_GCJ=yes
 
17667
 
 
17668
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17669
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17670
      # to version 4, is to share data among multiple programs linked
 
17671
      # with the same dynamic library.  Since this doesn't match the
 
17672
      # behavior of shared libraries on other platforms, we can't use
 
17673
      # them.
 
17674
      ld_shlibs_GCJ=no
 
17675
      ;;
 
17676
 
 
17677
    beos*)
 
17678
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17679
        allow_undefined_flag_GCJ=unsupported
 
17680
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17681
        # support --undefined.  This deserves some investigation.  FIXME
 
17682
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17683
      else
 
17684
        ld_shlibs_GCJ=no
 
17685
      fi
 
17686
      ;;
 
17687
 
 
17688
    cygwin* | mingw* | pw32*)
 
17689
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17690
      # as there is no search path for DLLs.
 
17691
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17692
      allow_undefined_flag_GCJ=unsupported
 
17693
      always_export_symbols_GCJ=no
 
17694
      enable_shared_with_static_runtimes_GCJ=yes
 
17695
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17696
 
 
17697
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17698
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17699
        # If the export-symbols file already is a .def file (1st line
 
17700
        # is EXPORTS), use it as is; otherwise, prepend...
 
17701
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17702
          cp $export_symbols $output_objdir/$soname.def;
 
17703
        else
 
17704
          echo EXPORTS > $output_objdir/$soname.def;
 
17705
          cat $export_symbols >> $output_objdir/$soname.def;
 
17706
        fi~
 
17707
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17708
      else
 
17709
        ld_shlibs_GCJ=no
 
17710
      fi
 
17711
      ;;
 
17712
 
 
17713
    interix[3-9]*)
 
17714
      hardcode_direct_GCJ=no
 
17715
      hardcode_shlibpath_var_GCJ=no
 
17716
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17717
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17718
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17719
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17720
      # default) and relocated if they conflict, which is a slow very memory
 
17721
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17722
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17723
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17724
      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'
 
17725
      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'
 
17726
      ;;
 
17727
 
 
17728
    gnu* | linux* | k*bsd*-gnu)
 
17729
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17730
        tmp_addflag=
 
17731
        case $cc_basename,$host_cpu in
 
17732
        pgcc*)                          # Portland Group C compiler
 
17733
          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'
 
17734
          tmp_addflag=' $pic_flag'
 
17735
          ;;
 
17736
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17737
          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'
 
17738
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17739
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17740
          tmp_addflag=' -i_dynamic' ;;
 
17741
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17742
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17743
        ifc* | ifort*)                  # Intel Fortran compiler
 
17744
          tmp_addflag=' -nofor_main' ;;
 
17745
        esac
 
17746
        case `$CC -V 2>&1 | sed 5q` in
 
17747
        *Sun\ C*)                       # Sun C 5.9
 
17748
          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'
 
17749
          tmp_sharedflag='-G' ;;
 
17750
        *Sun\ F*)                       # Sun Fortran 8.3
 
17751
          tmp_sharedflag='-G' ;;
 
17752
        *)
 
17753
          tmp_sharedflag='-shared' ;;
 
17754
        esac
 
17755
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17756
 
 
17757
        if test $supports_anon_versioning = yes; then
 
17758
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17759
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17760
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17761
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17762
        fi
 
17763
      else
 
17764
        ld_shlibs_GCJ=no
 
17765
      fi
 
17766
      ;;
 
17767
 
 
17768
    netbsd*)
 
17769
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17770
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17771
        wlarc=
 
17772
      else
 
17773
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17774
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17775
      fi
 
17776
      ;;
 
17777
 
 
17778
    solaris*)
 
17779
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17780
        ld_shlibs_GCJ=no
 
17781
        cat <<EOF 1>&2
 
17782
 
 
17783
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17784
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17785
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17786
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17787
*** your PATH or compiler configuration so that the native linker is
 
17788
*** used, and then restart.
 
17789
 
 
17790
EOF
 
17791
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17792
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17793
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17794
      else
 
17795
        ld_shlibs_GCJ=no
 
17796
      fi
 
17797
      ;;
 
17798
 
 
17799
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17800
      case `$LD -v 2>&1` in
 
17801
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17802
        ld_shlibs_GCJ=no
 
17803
        cat <<_LT_EOF 1>&2
 
17804
 
 
17805
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17806
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17807
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17808
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17809
*** your PATH or compiler configuration so that the native linker is
 
17810
*** used, and then restart.
 
17811
 
 
17812
_LT_EOF
 
17813
        ;;
 
17814
        *)
 
17815
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17816
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17817
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17818
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17819
          else
 
17820
            ld_shlibs_GCJ=no
 
17821
          fi
 
17822
        ;;
 
17823
      esac
 
17824
      ;;
 
17825
 
 
17826
    sunos4*)
 
17827
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17828
      wlarc=
 
17829
      hardcode_direct_GCJ=yes
 
17830
      hardcode_shlibpath_var_GCJ=no
 
17831
      ;;
 
17832
 
 
17833
    *)
 
17834
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17835
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17836
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17837
      else
 
17838
        ld_shlibs_GCJ=no
 
17839
      fi
 
17840
      ;;
 
17841
    esac
 
17842
 
 
17843
    if test "$ld_shlibs_GCJ" = no; then
 
17844
      runpath_var=
 
17845
      hardcode_libdir_flag_spec_GCJ=
 
17846
      export_dynamic_flag_spec_GCJ=
 
17847
      whole_archive_flag_spec_GCJ=
 
17848
    fi
 
17849
  else
 
17850
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17851
    case $host_os in
 
17852
    aix3*)
 
17853
      allow_undefined_flag_GCJ=unsupported
 
17854
      always_export_symbols_GCJ=yes
 
17855
      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'
 
17856
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17857
      # are no directories specified by -L.
 
17858
      hardcode_minus_L_GCJ=yes
 
17859
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17860
        # Neither direct hardcoding nor static linking is supported with a
 
17861
        # broken collect2.
 
17862
        hardcode_direct_GCJ=unsupported
 
17863
      fi
 
17864
      ;;
 
17865
 
 
17866
    aix[4-9]*)
 
17867
      if test "$host_cpu" = ia64; then
 
17868
        # On IA64, the linker does run time linking by default, so we don't
 
17869
        # have to do anything special.
 
17870
        aix_use_runtimelinking=no
 
17871
        exp_sym_flag='-Bexport'
 
17872
        no_entry_flag=""
 
17873
      else
 
17874
        # If we're using GNU nm, then we don't want the "-C" option.
 
17875
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17876
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17877
          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'
 
17878
        else
 
17879
          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'
 
17880
        fi
 
17881
        aix_use_runtimelinking=no
 
17882
 
 
17883
        # Test if we are trying to use run time linking or normal
 
17884
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17885
        # need to do runtime linking.
 
17886
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17887
          for ld_flag in $LDFLAGS; do
 
17888
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17889
            aix_use_runtimelinking=yes
 
17890
            break
 
17891
          fi
 
17892
          done
 
17893
          ;;
 
17894
        esac
 
17895
 
 
17896
        exp_sym_flag='-bexport'
 
17897
        no_entry_flag='-bnoentry'
 
17898
      fi
 
17899
 
 
17900
      # When large executables or shared objects are built, AIX ld can
 
17901
      # have problems creating the table of contents.  If linking a library
 
17902
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17903
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17904
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17905
 
 
17906
      archive_cmds_GCJ=''
 
17907
      hardcode_direct_GCJ=yes
 
17908
      hardcode_libdir_separator_GCJ=':'
 
17909
      link_all_deplibs_GCJ=yes
 
17910
 
 
17911
      if test "$GCC" = yes; then
 
17912
        case $host_os in aix4.[012]|aix4.[012].*)
 
17913
        # We only want to do this on AIX 4.2 and lower, the check
 
17914
        # below for broken collect2 doesn't work under 4.3+
 
17915
          collect2name=`${CC} -print-prog-name=collect2`
 
17916
          if test -f "$collect2name" && \
 
17917
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17918
          then
 
17919
          # We have reworked collect2
 
17920
          :
 
17921
          else
 
17922
          # We have old collect2
 
17923
          hardcode_direct_GCJ=unsupported
 
17924
          # It fails to find uninstalled libraries when the uninstalled
 
17925
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17926
          # to unsupported forces relinking
 
17927
          hardcode_minus_L_GCJ=yes
 
17928
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17929
          hardcode_libdir_separator_GCJ=
 
17930
          fi
 
17931
          ;;
 
17932
        esac
 
17933
        shared_flag='-shared'
 
17934
        if test "$aix_use_runtimelinking" = yes; then
 
17935
          shared_flag="$shared_flag "'${wl}-G'
 
17936
        fi
 
17937
      else
 
17938
        # not using gcc
 
17939
        if test "$host_cpu" = ia64; then
 
17940
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17941
        # chokes on -Wl,-G. The following line is correct:
 
17942
          shared_flag='-G'
 
17943
        else
 
17944
          if test "$aix_use_runtimelinking" = yes; then
 
17945
            shared_flag='${wl}-G'
 
17946
          else
 
17947
            shared_flag='${wl}-bM:SRE'
 
17948
          fi
 
17949
        fi
 
17950
      fi
 
17951
 
 
17952
      # It seems that -bexpall does not export symbols beginning with
 
17953
      # underscore (_), so it is better to generate a list of symbols to export.
 
17954
      always_export_symbols_GCJ=yes
 
17955
      if test "$aix_use_runtimelinking" = yes; then
 
17956
        # Warning - without using the other runtime loading flags (-brtl),
 
17957
        # -berok will link without error, but may produce a broken library.
 
17958
        allow_undefined_flag_GCJ='-berok'
 
17959
       # Determine the default libpath from the value encoded in an empty executable.
 
17960
       cat >conftest.$ac_ext <<_ACEOF
 
17961
/* confdefs.h.  */
 
17962
_ACEOF
 
17963
cat confdefs.h >>conftest.$ac_ext
 
17964
cat >>conftest.$ac_ext <<_ACEOF
 
17965
/* end confdefs.h.  */
 
17966
 
 
17967
int
 
17968
main ()
 
17969
{
 
17970
 
 
17971
  ;
 
17972
  return 0;
 
17973
}
 
17974
_ACEOF
 
17975
rm -f conftest.$ac_objext conftest$ac_exeext
 
17976
if { (ac_try="$ac_link"
 
17977
case "(($ac_try" in
 
17978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17979
  *) ac_try_echo=$ac_try;;
 
17980
esac
 
17981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17982
$as_echo "$ac_try_echo") >&5
 
17983
  (eval "$ac_link") 2>conftest.er1
 
17984
  ac_status=$?
 
17985
  grep -v '^ *+' conftest.er1 >conftest.err
 
17986
  rm -f conftest.er1
 
17987
  cat conftest.err >&5
 
17988
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17989
  (exit $ac_status); } && {
 
17990
         test -z "$ac_c_werror_flag" ||
 
17991
         test ! -s conftest.err
 
17992
       } && test -s conftest$ac_exeext && {
 
17993
         test "$cross_compiling" = yes ||
 
17994
         $as_test_x conftest$ac_exeext
 
17995
       }; then
 
17996
 
 
17997
lt_aix_libpath_sed='
 
17998
    /Import File Strings/,/^$/ {
 
17999
        /^0/ {
 
18000
            s/^0  *\(.*\)$/\1/
 
18001
            p
 
18002
        }
 
18003
    }'
 
18004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18005
# Check for a 64-bit object if we didn't find anything.
 
18006
if test -z "$aix_libpath"; then
 
18007
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18008
fi
 
18009
else
 
18010
  $as_echo "$as_me: failed program was:" >&5
 
18011
sed 's/^/| /' conftest.$ac_ext >&5
 
18012
 
 
18013
 
 
18014
fi
 
18015
 
 
18016
rm -rf conftest.dSYM
 
18017
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18018
      conftest$ac_exeext conftest.$ac_ext
 
18019
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18020
 
 
18021
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18022
        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"
 
18023
       else
 
18024
        if test "$host_cpu" = ia64; then
 
18025
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18026
          allow_undefined_flag_GCJ="-z nodefs"
 
18027
          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"
 
18028
        else
 
18029
         # Determine the default libpath from the value encoded in an empty executable.
 
18030
         cat >conftest.$ac_ext <<_ACEOF
 
18031
/* confdefs.h.  */
 
18032
_ACEOF
 
18033
cat confdefs.h >>conftest.$ac_ext
 
18034
cat >>conftest.$ac_ext <<_ACEOF
 
18035
/* end confdefs.h.  */
 
18036
 
 
18037
int
 
18038
main ()
 
18039
{
 
18040
 
 
18041
  ;
 
18042
  return 0;
 
18043
}
 
18044
_ACEOF
 
18045
rm -f conftest.$ac_objext conftest$ac_exeext
 
18046
if { (ac_try="$ac_link"
 
18047
case "(($ac_try" in
 
18048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18049
  *) ac_try_echo=$ac_try;;
 
18050
esac
 
18051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18052
$as_echo "$ac_try_echo") >&5
 
18053
  (eval "$ac_link") 2>conftest.er1
 
18054
  ac_status=$?
 
18055
  grep -v '^ *+' conftest.er1 >conftest.err
 
18056
  rm -f conftest.er1
 
18057
  cat conftest.err >&5
 
18058
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18059
  (exit $ac_status); } && {
 
18060
         test -z "$ac_c_werror_flag" ||
 
18061
         test ! -s conftest.err
 
18062
       } && test -s conftest$ac_exeext && {
 
18063
         test "$cross_compiling" = yes ||
 
18064
         $as_test_x conftest$ac_exeext
 
18065
       }; then
 
18066
 
 
18067
lt_aix_libpath_sed='
 
18068
    /Import File Strings/,/^$/ {
 
18069
        /^0/ {
 
18070
            s/^0  *\(.*\)$/\1/
 
18071
            p
 
18072
        }
 
18073
    }'
 
18074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18075
# Check for a 64-bit object if we didn't find anything.
 
18076
if test -z "$aix_libpath"; then
 
18077
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18078
fi
 
18079
else
 
18080
  $as_echo "$as_me: failed program was:" >&5
 
18081
sed 's/^/| /' conftest.$ac_ext >&5
 
18082
 
 
18083
 
 
18084
fi
 
18085
 
 
18086
rm -rf conftest.dSYM
 
18087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18088
      conftest$ac_exeext conftest.$ac_ext
 
18089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18090
 
 
18091
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18092
          # Warning - without using the other run time loading flags,
 
18093
          # -berok will link without error, but may produce a broken library.
 
18094
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18095
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18096
          # Exported symbols can be pulled into shared objects from archives
 
18097
          whole_archive_flag_spec_GCJ='$convenience'
 
18098
          archive_cmds_need_lc_GCJ=yes
 
18099
          # This is similar to how AIX traditionally builds its shared libraries.
 
18100
          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'
 
18101
        fi
 
18102
      fi
 
18103
      ;;
 
18104
 
 
18105
    amigaos*)
 
18106
      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)'
 
18107
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18108
      hardcode_minus_L_GCJ=yes
 
18109
      # see comment about different semantics on the GNU ld section
 
18110
      ld_shlibs_GCJ=no
 
18111
      ;;
 
18112
 
 
18113
    bsdi[45]*)
 
18114
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18115
      ;;
 
18116
 
 
18117
    cygwin* | mingw* | pw32*)
 
18118
      # When not using gcc, we currently assume that we are using
 
18119
      # Microsoft Visual C++.
 
18120
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18121
      # no search path for DLLs.
 
18122
      hardcode_libdir_flag_spec_GCJ=' '
 
18123
      allow_undefined_flag_GCJ=unsupported
 
18124
      # Tell ltmain to make .lib files, not .a files.
 
18125
      libext=lib
 
18126
      # Tell ltmain to make .dll files, not .so files.
 
18127
      shrext_cmds=".dll"
 
18128
      # FIXME: Setting linknames here is a bad hack.
 
18129
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18130
      # The linker will automatically build a .lib file if we build a DLL.
 
18131
      old_archive_From_new_cmds_GCJ='true'
 
18132
      # FIXME: Should let the user specify the lib program.
 
18133
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18134
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18135
      enable_shared_with_static_runtimes_GCJ=yes
 
18136
      ;;
 
18137
 
 
18138
    darwin* | rhapsody*)
 
18139
      case $host_os in
 
18140
        rhapsody* | darwin1.[012])
 
18141
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18142
         ;;
 
18143
       *) # Darwin 1.3 on
 
18144
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18145
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18146
         else
 
18147
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18148
             10.[012])
 
18149
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18150
               ;;
 
18151
             10.*)
 
18152
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18153
               ;;
 
18154
           esac
 
18155
         fi
 
18156
         ;;
 
18157
      esac
 
18158
      archive_cmds_need_lc_GCJ=no
 
18159
      hardcode_direct_GCJ=no
 
18160
      hardcode_automatic_GCJ=yes
 
18161
      hardcode_shlibpath_var_GCJ=unsupported
 
18162
      whole_archive_flag_spec_GCJ=''
 
18163
      link_all_deplibs_GCJ=yes
 
18164
    if test "$GCC" = yes ; then
 
18165
        output_verbose_link_cmd='echo'
 
18166
        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}"
 
18167
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18168
        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}"
 
18169
        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}"
 
18170
    else
 
18171
      case $cc_basename in
 
18172
        xlc*)
 
18173
         output_verbose_link_cmd='echo'
 
18174
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18175
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18176
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18177
         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}'
 
18178
          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}'
 
18179
          ;;
 
18180
       *)
 
18181
         ld_shlibs_GCJ=no
 
18182
          ;;
 
18183
      esac
 
18184
    fi
 
18185
      ;;
 
18186
 
 
18187
    dgux*)
 
18188
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18189
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18190
      hardcode_shlibpath_var_GCJ=no
 
18191
      ;;
 
18192
 
 
18193
    freebsd1*)
 
18194
      ld_shlibs_GCJ=no
 
18195
      ;;
 
18196
 
 
18197
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18198
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18199
    # does not break anything, and helps significantly (at the cost of a little
 
18200
    # extra space).
 
18201
    freebsd2.2*)
 
18202
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18203
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18204
      hardcode_direct_GCJ=yes
 
18205
      hardcode_shlibpath_var_GCJ=no
 
18206
      ;;
 
18207
 
 
18208
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18209
    freebsd2*)
 
18210
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18211
      hardcode_direct_GCJ=yes
 
18212
      hardcode_minus_L_GCJ=yes
 
18213
      hardcode_shlibpath_var_GCJ=no
 
18214
      ;;
 
18215
 
 
18216
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18217
    freebsd* | dragonfly*)
 
18218
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18219
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18220
      hardcode_direct_GCJ=yes
 
18221
      hardcode_shlibpath_var_GCJ=no
 
18222
      ;;
 
18223
 
 
18224
    hpux9*)
 
18225
      if test "$GCC" = yes; then
 
18226
        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'
 
18227
      else
 
18228
        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'
 
18229
      fi
 
18230
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18231
      hardcode_libdir_separator_GCJ=:
 
18232
      hardcode_direct_GCJ=yes
 
18233
 
 
18234
      # hardcode_minus_L: Not really in the search PATH,
 
18235
      # but as the default location of the library.
 
18236
      hardcode_minus_L_GCJ=yes
 
18237
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18238
      ;;
 
18239
 
 
18240
    hpux10*)
 
18241
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18242
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18243
      else
 
18244
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18245
      fi
 
18246
      if test "$with_gnu_ld" = no; then
 
18247
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18248
        hardcode_libdir_separator_GCJ=:
 
18249
 
 
18250
        hardcode_direct_GCJ=yes
 
18251
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18252
 
 
18253
        # hardcode_minus_L: Not really in the search PATH,
 
18254
        # but as the default location of the library.
 
18255
        hardcode_minus_L_GCJ=yes
 
18256
      fi
 
18257
      ;;
 
18258
 
 
18259
    hpux11*)
 
18260
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18261
        case $host_cpu in
 
18262
        hppa*64*)
 
18263
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18264
          ;;
 
18265
        ia64*)
 
18266
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18267
          ;;
 
18268
        *)
 
18269
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18270
          ;;
 
18271
        esac
 
18272
      else
 
18273
        case $host_cpu in
 
18274
        hppa*64*)
 
18275
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18276
          ;;
 
18277
        ia64*)
 
18278
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18279
          ;;
 
18280
        *)
 
18281
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18282
          ;;
 
18283
        esac
 
18284
      fi
 
18285
      if test "$with_gnu_ld" = no; then
 
18286
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18287
        hardcode_libdir_separator_GCJ=:
 
18288
 
 
18289
        case $host_cpu in
 
18290
        hppa*64*|ia64*)
 
18291
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18292
          hardcode_direct_GCJ=no
 
18293
          hardcode_shlibpath_var_GCJ=no
 
18294
          ;;
 
18295
        *)
 
18296
          hardcode_direct_GCJ=yes
 
18297
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18298
 
 
18299
          # hardcode_minus_L: Not really in the search PATH,
 
18300
          # but as the default location of the library.
 
18301
          hardcode_minus_L_GCJ=yes
 
18302
          ;;
 
18303
        esac
 
18304
      fi
 
18305
      ;;
 
18306
 
 
18307
    irix5* | irix6* | nonstopux*)
 
18308
      if test "$GCC" = yes; then
 
18309
        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'
 
18310
      else
 
18311
        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'
 
18312
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18313
      fi
 
18314
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18315
      hardcode_libdir_separator_GCJ=:
 
18316
      link_all_deplibs_GCJ=yes
 
18317
      ;;
 
18318
 
 
18319
    netbsd*)
 
18320
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18321
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18322
      else
 
18323
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18324
      fi
 
18325
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18326
      hardcode_direct_GCJ=yes
 
18327
      hardcode_shlibpath_var_GCJ=no
 
18328
      ;;
 
18329
 
 
18330
    newsos6)
 
18331
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18332
      hardcode_direct_GCJ=yes
 
18333
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18334
      hardcode_libdir_separator_GCJ=:
 
18335
      hardcode_shlibpath_var_GCJ=no
 
18336
      ;;
 
18337
 
 
18338
    openbsd*)
 
18339
      if test -f /usr/libexec/ld.so; then
 
18340
        hardcode_direct_GCJ=yes
 
18341
        hardcode_shlibpath_var_GCJ=no
 
18342
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18343
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18344
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18345
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18346
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18347
        else
 
18348
          case $host_os in
 
18349
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18350
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18351
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18352
             ;;
 
18353
           *)
 
18354
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18355
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18356
             ;;
 
18357
          esac
 
18358
        fi
 
18359
      else
 
18360
        ld_shlibs_GCJ=no
 
18361
      fi
 
18362
      ;;
 
18363
 
 
18364
    os2*)
 
18365
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18366
      hardcode_minus_L_GCJ=yes
 
18367
      allow_undefined_flag_GCJ=unsupported
 
18368
      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'
 
18369
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18370
      ;;
 
18371
 
 
18372
    osf3*)
 
18373
      if test "$GCC" = yes; then
 
18374
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18375
        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'
 
18376
      else
 
18377
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18378
        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'
 
18379
      fi
 
18380
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18381
      hardcode_libdir_separator_GCJ=:
 
18382
      ;;
 
18383
 
 
18384
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18385
      if test "$GCC" = yes; then
 
18386
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18387
        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'
 
18388
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18389
      else
 
18390
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18391
        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'
 
18392
        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~
 
18393
        $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'
 
18394
 
 
18395
        # Both c and cxx compiler support -rpath directly
 
18396
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18397
      fi
 
18398
      hardcode_libdir_separator_GCJ=:
 
18399
      ;;
 
18400
 
 
18401
    solaris*)
 
18402
      no_undefined_flag_GCJ=' -z text'
 
18403
      if test "$GCC" = yes; then
 
18404
        wlarc='${wl}'
 
18405
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18406
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18407
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18408
      else
 
18409
        wlarc=''
 
18410
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18411
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18412
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18413
      fi
 
18414
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18415
      hardcode_shlibpath_var_GCJ=no
 
18416
      case $host_os in
 
18417
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18418
      *)
 
18419
        # The compiler driver will combine and reorder linker options,
 
18420
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18421
        # but is careful enough not to reorder.
 
18422
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18423
        if test "$GCC" = yes; then
 
18424
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18425
        else
 
18426
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18427
        fi
 
18428
        ;;
 
18429
      esac
 
18430
      link_all_deplibs_GCJ=yes
 
18431
      ;;
 
18432
 
 
18433
    sunos4*)
 
18434
      if test "x$host_vendor" = xsequent; then
 
18435
        # Use $CC to link under sequent, because it throws in some extra .o
 
18436
        # files that make .init and .fini sections work.
 
18437
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18438
      else
 
18439
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18440
      fi
 
18441
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18442
      hardcode_direct_GCJ=yes
 
18443
      hardcode_minus_L_GCJ=yes
 
18444
      hardcode_shlibpath_var_GCJ=no
 
18445
      ;;
 
18446
 
 
18447
    sysv4)
 
18448
      case $host_vendor in
 
18449
        sni)
 
18450
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18451
          hardcode_direct_GCJ=yes # is this really true???
 
18452
        ;;
 
18453
        siemens)
 
18454
          ## LD is ld it makes a PLAMLIB
 
18455
          ## CC just makes a GrossModule.
 
18456
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18457
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18458
          hardcode_direct_GCJ=no
 
18459
        ;;
 
18460
        motorola)
 
18461
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18462
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18463
        ;;
 
18464
      esac
 
18465
      runpath_var='LD_RUN_PATH'
 
18466
      hardcode_shlibpath_var_GCJ=no
 
18467
      ;;
 
18468
 
 
18469
    sysv4.3*)
 
18470
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18471
      hardcode_shlibpath_var_GCJ=no
 
18472
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18473
      ;;
 
18474
 
 
18475
    sysv4*MP*)
 
18476
      if test -d /usr/nec; then
 
18477
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18478
        hardcode_shlibpath_var_GCJ=no
 
18479
        runpath_var=LD_RUN_PATH
 
18480
        hardcode_runpath_var=yes
 
18481
        ld_shlibs_GCJ=yes
 
18482
      fi
 
18483
      ;;
 
18484
 
 
18485
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18486
      no_undefined_flag_GCJ='${wl}-z,text'
 
18487
      archive_cmds_need_lc_GCJ=no
 
18488
      hardcode_shlibpath_var_GCJ=no
 
18489
      runpath_var='LD_RUN_PATH'
 
18490
 
 
18491
      if test "$GCC" = yes; then
 
18492
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18493
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18494
      else
 
18495
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18496
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18497
      fi
 
18498
      ;;
 
18499
 
 
18500
    sysv5* | sco3.2v5* | sco5v6*)
 
18501
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18502
      # link with -lc, and that would cause any symbols used from libc to
 
18503
      # always be unresolved, which means just about no library would
 
18504
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18505
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18506
      # as -z defs.
 
18507
      no_undefined_flag_GCJ='${wl}-z,text'
 
18508
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18509
      archive_cmds_need_lc_GCJ=no
 
18510
      hardcode_shlibpath_var_GCJ=no
 
18511
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18512
      hardcode_libdir_separator_GCJ=':'
 
18513
      link_all_deplibs_GCJ=yes
 
18514
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18515
      runpath_var='LD_RUN_PATH'
 
18516
 
 
18517
      if test "$GCC" = yes; then
 
18518
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18519
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18520
      else
 
18521
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18522
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18523
      fi
 
18524
      ;;
 
18525
 
 
18526
    uts4*)
 
18527
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18528
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18529
      hardcode_shlibpath_var_GCJ=no
 
18530
      ;;
 
18531
 
 
18532
    *)
 
18533
      ld_shlibs_GCJ=no
 
18534
      ;;
 
18535
    esac
 
18536
  fi
 
18537
 
 
18538
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18539
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18540
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18541
 
 
18542
#
 
18543
# Do we need to explicitly link libc?
 
18544
#
 
18545
case "x$archive_cmds_need_lc_GCJ" in
 
18546
x|xyes)
 
18547
  # Assume -lc should be added
 
18548
  archive_cmds_need_lc_GCJ=yes
 
18549
 
 
18550
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18551
    case $archive_cmds_GCJ in
 
18552
    *'~'*)
 
18553
      # FIXME: we may have to deal with multi-command sequences.
 
18554
      ;;
 
18555
    '$CC '*)
 
18556
      # Test whether the compiler implicitly links with -lc since on some
 
18557
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18558
      # to ld, don't add -lc before -lgcc.
 
18559
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18560
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18561
      $rm conftest*
 
18562
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18563
 
 
18564
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18565
  (eval $ac_compile) 2>&5
 
18566
  ac_status=$?
 
18567
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18568
  (exit $ac_status); } 2>conftest.err; then
 
18569
        soname=conftest
 
18570
        lib=conftest
 
18571
        libobjs=conftest.$ac_objext
 
18572
        deplibs=
 
18573
        wl=$lt_prog_compiler_wl_GCJ
 
18574
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18575
        compiler_flags=-v
 
18576
        linker_flags=-v
 
18577
        verstring=
 
18578
        output_objdir=.
 
18579
        libname=conftest
 
18580
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18581
        allow_undefined_flag_GCJ=
 
18582
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18583
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18584
  ac_status=$?
 
18585
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18586
  (exit $ac_status); }
 
18587
        then
 
18588
          archive_cmds_need_lc_GCJ=no
 
18589
        else
 
18590
          archive_cmds_need_lc_GCJ=yes
 
18591
        fi
 
18592
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18593
      else
 
18594
        cat conftest.err 1>&5
 
18595
      fi
 
18596
      $rm conftest*
 
18597
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18598
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18599
      ;;
 
18600
    esac
 
18601
  fi
 
18602
  ;;
 
18603
esac
 
18604
 
 
18605
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18606
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18607
library_names_spec=
 
18608
libname_spec='lib$name'
 
18609
soname_spec=
 
18610
shrext_cmds=".so"
 
18611
postinstall_cmds=
 
18612
postuninstall_cmds=
 
18613
finish_cmds=
 
18614
finish_eval=
 
18615
shlibpath_var=
 
18616
shlibpath_overrides_runpath=unknown
 
18617
version_type=none
 
18618
dynamic_linker="$host_os ld.so"
 
18619
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18620
 
 
18621
need_lib_prefix=unknown
 
18622
hardcode_into_libs=no
 
18623
 
 
18624
# when you set need_version to no, make sure it does not cause -set_version
 
18625
# flags to be left without arguments
 
18626
need_version=unknown
 
18627
 
 
18628
case $host_os in
 
18629
aix3*)
 
18630
  version_type=linux
 
18631
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18632
  shlibpath_var=LIBPATH
 
18633
 
 
18634
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18635
  soname_spec='${libname}${release}${shared_ext}$major'
 
18636
  ;;
 
18637
 
 
18638
aix[4-9]*)
 
18639
  version_type=linux
 
18640
  need_lib_prefix=no
 
18641
  need_version=no
 
18642
  hardcode_into_libs=yes
 
18643
  if test "$host_cpu" = ia64; then
 
18644
    # AIX 5 supports IA64
 
18645
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18646
    shlibpath_var=LD_LIBRARY_PATH
 
18647
  else
 
18648
    # With GCC up to 2.95.x, collect2 would create an import file
 
18649
    # for dependence libraries.  The import file would start with
 
18650
    # the line `#! .'.  This would cause the generated library to
 
18651
    # depend on `.', always an invalid library.  This was fixed in
 
18652
    # development snapshots of GCC prior to 3.0.
 
18653
    case $host_os in
 
18654
      aix4 | aix4.[01] | aix4.[01].*)
 
18655
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18656
           echo ' yes '
 
18657
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18658
        :
 
18659
      else
 
18660
        can_build_shared=no
 
18661
      fi
 
18662
      ;;
 
18663
    esac
 
18664
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18665
    # soname into executable. Probably we can add versioning support to
 
18666
    # collect2, so additional links can be useful in future.
 
18667
    if test "$aix_use_runtimelinking" = yes; then
 
18668
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18669
      # instead of lib<name>.a to let people know that these are not
 
18670
      # typical AIX shared libraries.
 
18671
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18672
    else
 
18673
      # We preserve .a as extension for shared libraries through AIX4.2
 
18674
      # and later when we are not doing run time linking.
 
18675
      library_names_spec='${libname}${release}.a $libname.a'
 
18676
      soname_spec='${libname}${release}${shared_ext}$major'
 
18677
    fi
 
18678
    shlibpath_var=LIBPATH
 
18679
  fi
 
18680
  ;;
 
18681
 
 
18682
amigaos*)
 
18683
  library_names_spec='$libname.ixlibrary $libname.a'
 
18684
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18685
  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'
 
18686
  ;;
 
18687
 
 
18688
beos*)
 
18689
  library_names_spec='${libname}${shared_ext}'
 
18690
  dynamic_linker="$host_os ld.so"
 
18691
  shlibpath_var=LIBRARY_PATH
 
18692
  ;;
 
18693
 
 
18694
bsdi[45]*)
 
18695
  version_type=linux
 
18696
  need_version=no
 
18697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18698
  soname_spec='${libname}${release}${shared_ext}$major'
 
18699
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18700
  shlibpath_var=LD_LIBRARY_PATH
 
18701
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18702
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18703
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18704
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18705
  # libtool to hard-code these into programs
 
18706
  ;;
 
18707
 
 
18708
cygwin* | mingw* | pw32*)
 
18709
  version_type=windows
 
18710
  shrext_cmds=".dll"
 
18711
  need_version=no
 
18712
  need_lib_prefix=no
 
18713
 
 
18714
  case $GCC,$host_os in
 
18715
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18716
    library_names_spec='$libname.dll.a'
 
18717
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18718
    postinstall_cmds='base_file=`basename \${file}`~
 
18719
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18720
      dldir=$destdir/`dirname \$dlpath`~
 
18721
      test -d \$dldir || mkdir -p \$dldir~
 
18722
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18723
      chmod a+x \$dldir/$dlname'
 
18724
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18725
      dlpath=$dir/\$dldll~
 
18726
       $rm \$dlpath'
 
18727
    shlibpath_overrides_runpath=yes
 
18728
 
 
18729
    case $host_os in
 
18730
    cygwin*)
 
18731
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18732
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18733
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18734
      ;;
 
18735
    mingw*)
 
18736
      # MinGW DLLs use traditional 'lib' prefix
 
18737
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18738
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18739
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18740
        # It is most probably a Windows format PATH printed by
 
18741
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18742
        # path with ; separators, and with drive letters. We can handle the
 
18743
        # drive letters (cygwin fileutils understands them), so leave them,
 
18744
        # especially as we might pass files found there to a mingw objdump,
 
18745
        # which wouldn't understand a cygwinified path. Ahh.
 
18746
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18747
      else
 
18748
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18749
      fi
 
18750
      ;;
 
18751
    pw32*)
 
18752
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18753
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18754
      ;;
 
18755
    esac
 
18756
    ;;
 
18757
 
 
18758
  *)
 
18759
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18760
    ;;
 
18761
  esac
 
18762
  dynamic_linker='Win32 ld.exe'
 
18763
  # FIXME: first we should search . and the directory the executable is in
 
18764
  shlibpath_var=PATH
 
18765
  ;;
 
18766
 
 
18767
darwin* | rhapsody*)
 
18768
  dynamic_linker="$host_os dyld"
 
18769
  version_type=darwin
 
18770
  need_lib_prefix=no
 
18771
  need_version=no
 
18772
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18773
  soname_spec='${libname}${release}${major}$shared_ext'
 
18774
  shlibpath_overrides_runpath=yes
 
18775
  shlibpath_var=DYLD_LIBRARY_PATH
 
18776
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18777
 
 
18778
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18779
  ;;
 
18780
 
 
18781
dgux*)
 
18782
  version_type=linux
 
18783
  need_lib_prefix=no
 
18784
  need_version=no
 
18785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18786
  soname_spec='${libname}${release}${shared_ext}$major'
 
18787
  shlibpath_var=LD_LIBRARY_PATH
 
18788
  ;;
 
18789
 
 
18790
freebsd1*)
 
18791
  dynamic_linker=no
 
18792
  ;;
 
18793
 
 
18794
freebsd* | dragonfly*)
 
18795
  # DragonFly does not have aout.  When/if they implement a new
 
18796
  # versioning mechanism, adjust this.
 
18797
  if test -x /usr/bin/objformat; then
 
18798
    objformat=`/usr/bin/objformat`
 
18799
  else
 
18800
    case $host_os in
 
18801
    freebsd[123]*) objformat=aout ;;
 
18802
    *) objformat=elf ;;
 
18803
    esac
 
18804
  fi
 
18805
  version_type=freebsd-$objformat
 
18806
  case $version_type in
 
18807
    freebsd-elf*)
 
18808
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18809
      need_version=no
 
18810
      need_lib_prefix=no
 
18811
      ;;
 
18812
    freebsd-*)
 
18813
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18814
      need_version=yes
 
18815
      ;;
 
18816
  esac
 
18817
  shlibpath_var=LD_LIBRARY_PATH
 
18818
  case $host_os in
 
18819
  freebsd2*)
 
18820
    shlibpath_overrides_runpath=yes
 
18821
    ;;
 
18822
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18823
    shlibpath_overrides_runpath=yes
 
18824
    hardcode_into_libs=yes
 
18825
    ;;
 
18826
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18827
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18828
    shlibpath_overrides_runpath=no
 
18829
    hardcode_into_libs=yes
 
18830
    ;;
 
18831
  *) # from 4.6 on, and DragonFly
 
18832
    shlibpath_overrides_runpath=yes
 
18833
    hardcode_into_libs=yes
 
18834
    ;;
 
18835
  esac
 
18836
  ;;
 
18837
 
 
18838
gnu*)
 
18839
  version_type=linux
 
18840
  need_lib_prefix=no
 
18841
  need_version=no
 
18842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18843
  soname_spec='${libname}${release}${shared_ext}$major'
 
18844
  shlibpath_var=LD_LIBRARY_PATH
 
18845
  hardcode_into_libs=yes
 
18846
  ;;
 
18847
 
 
18848
hpux9* | hpux10* | hpux11*)
 
18849
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18850
  # link against other versions.
 
18851
  version_type=sunos
 
18852
  need_lib_prefix=no
 
18853
  need_version=no
 
18854
  case $host_cpu in
 
18855
  ia64*)
 
18856
    shrext_cmds='.so'
 
18857
    hardcode_into_libs=yes
 
18858
    dynamic_linker="$host_os dld.so"
 
18859
    shlibpath_var=LD_LIBRARY_PATH
 
18860
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18862
    soname_spec='${libname}${release}${shared_ext}$major'
 
18863
    if test "X$HPUX_IA64_MODE" = X32; then
 
18864
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18865
    else
 
18866
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18867
    fi
 
18868
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18869
    ;;
 
18870
   hppa*64*)
 
18871
     shrext_cmds='.sl'
 
18872
     hardcode_into_libs=yes
 
18873
     dynamic_linker="$host_os dld.sl"
 
18874
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18875
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18876
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18877
     soname_spec='${libname}${release}${shared_ext}$major'
 
18878
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18879
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18880
     ;;
 
18881
   *)
 
18882
    shrext_cmds='.sl'
 
18883
    dynamic_linker="$host_os dld.sl"
 
18884
    shlibpath_var=SHLIB_PATH
 
18885
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18886
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18887
    soname_spec='${libname}${release}${shared_ext}$major'
 
18888
    ;;
 
18889
  esac
 
18890
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18891
  postinstall_cmds='chmod 555 $lib'
 
18892
  ;;
 
18893
 
 
18894
interix[3-9]*)
 
18895
  version_type=linux
 
18896
  need_lib_prefix=no
 
18897
  need_version=no
 
18898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18899
  soname_spec='${libname}${release}${shared_ext}$major'
 
18900
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18901
  shlibpath_var=LD_LIBRARY_PATH
 
18902
  shlibpath_overrides_runpath=no
 
18903
  hardcode_into_libs=yes
 
18904
  ;;
 
18905
 
 
18906
irix5* | irix6* | nonstopux*)
 
18907
  case $host_os in
 
18908
    nonstopux*) version_type=nonstopux ;;
 
18909
    *)
 
18910
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18911
                version_type=linux
 
18912
        else
 
18913
                version_type=irix
 
18914
        fi ;;
 
18915
  esac
 
18916
  need_lib_prefix=no
 
18917
  need_version=no
 
18918
  soname_spec='${libname}${release}${shared_ext}$major'
 
18919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18920
  case $host_os in
 
18921
  irix5* | nonstopux*)
 
18922
    libsuff= shlibsuff=
 
18923
    ;;
 
18924
  *)
 
18925
    case $LD in # libtool.m4 will add one of these switches to LD
 
18926
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18927
      libsuff= shlibsuff= libmagic=32-bit;;
 
18928
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18929
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18930
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18931
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18932
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18933
    esac
 
18934
    ;;
 
18935
  esac
 
18936
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18937
  shlibpath_overrides_runpath=no
 
18938
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18939
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18940
  hardcode_into_libs=yes
 
18941
  ;;
 
18942
 
 
18943
# No shared lib support for Linux oldld, aout, or coff.
 
18944
linux*oldld* | linux*aout* | linux*coff*)
 
18945
  dynamic_linker=no
 
18946
  ;;
 
18947
 
 
18948
# This must be Linux ELF.
 
18949
linux* | k*bsd*-gnu)
 
18950
  version_type=linux
 
18951
  need_lib_prefix=no
 
18952
  need_version=no
 
18953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18954
  soname_spec='${libname}${release}${shared_ext}$major'
 
18955
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18956
  shlibpath_var=LD_LIBRARY_PATH
 
18957
  shlibpath_overrides_runpath=no
 
18958
  # This implies no fast_install, which is unacceptable.
 
18959
  # Some rework will be needed to allow for fast_install
 
18960
  # before this can be enabled.
 
18961
  hardcode_into_libs=yes
 
18962
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18963
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18964
 
 
18965
  # Append ld.so.conf contents to the search path
 
18966
  if test -f /etc/ld.so.conf; then
 
18967
    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' ' '`
 
18968
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
18969
  fi
 
18970
 
 
18971
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18972
  # powerpc, because MkLinux only supported shared libraries with the
 
18973
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18974
  # most powerpc-linux boxes support dynamic linking these days and
 
18975
  # people can always --disable-shared, the test was removed, and we
 
18976
  # assume the GNU/Linux dynamic linker is in use.
 
18977
  dynamic_linker='GNU/Linux ld.so'
 
18978
  ;;
 
18979
 
 
18980
netbsd*)
 
18981
  version_type=sunos
 
18982
  need_lib_prefix=no
 
18983
  need_version=no
 
18984
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18985
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18986
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18987
    dynamic_linker='NetBSD (a.out) ld.so'
 
18988
  else
 
18989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18990
    soname_spec='${libname}${release}${shared_ext}$major'
 
18991
    dynamic_linker='NetBSD ld.elf_so'
 
18992
  fi
 
18993
  shlibpath_var=LD_LIBRARY_PATH
 
18994
  shlibpath_overrides_runpath=yes
 
18995
  hardcode_into_libs=yes
 
18996
  ;;
 
18997
 
 
18998
newsos6)
 
18999
  version_type=linux
 
19000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19001
  shlibpath_var=LD_LIBRARY_PATH
 
19002
  shlibpath_overrides_runpath=yes
 
19003
  ;;
 
19004
 
 
19005
nto-qnx*)
 
19006
  version_type=linux
 
19007
  need_lib_prefix=no
 
19008
  need_version=no
 
19009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19010
  soname_spec='${libname}${release}${shared_ext}$major'
 
19011
  shlibpath_var=LD_LIBRARY_PATH
 
19012
  shlibpath_overrides_runpath=yes
 
19013
  ;;
 
19014
 
 
19015
openbsd*)
 
19016
  version_type=sunos
 
19017
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19018
  need_lib_prefix=no
 
19019
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19020
  case $host_os in
 
19021
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19022
    *)                         need_version=no  ;;
 
19023
  esac
 
19024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19025
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19026
  shlibpath_var=LD_LIBRARY_PATH
 
19027
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19028
    case $host_os in
 
19029
      openbsd2.[89] | openbsd2.[89].*)
 
19030
        shlibpath_overrides_runpath=no
 
19031
        ;;
 
19032
      *)
 
19033
        shlibpath_overrides_runpath=yes
 
19034
        ;;
 
19035
      esac
 
19036
  else
 
19037
    shlibpath_overrides_runpath=yes
 
19038
  fi
 
19039
  ;;
 
19040
 
 
19041
os2*)
 
19042
  libname_spec='$name'
 
19043
  shrext_cmds=".dll"
 
19044
  need_lib_prefix=no
 
19045
  library_names_spec='$libname${shared_ext} $libname.a'
 
19046
  dynamic_linker='OS/2 ld.exe'
 
19047
  shlibpath_var=LIBPATH
 
19048
  ;;
 
19049
 
 
19050
osf3* | osf4* | osf5*)
 
19051
  version_type=osf
 
19052
  need_lib_prefix=no
 
19053
  need_version=no
 
19054
  soname_spec='${libname}${release}${shared_ext}$major'
 
19055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19056
  shlibpath_var=LD_LIBRARY_PATH
 
19057
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19058
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19059
  ;;
 
19060
 
 
19061
rdos*)
 
19062
  dynamic_linker=no
 
19063
  ;;
 
19064
 
 
19065
solaris*)
 
19066
  version_type=linux
 
19067
  need_lib_prefix=no
 
19068
  need_version=no
 
19069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19070
  soname_spec='${libname}${release}${shared_ext}$major'
 
19071
  shlibpath_var=LD_LIBRARY_PATH
 
19072
  shlibpath_overrides_runpath=yes
 
19073
  hardcode_into_libs=yes
 
19074
  # ldd complains unless libraries are executable
 
19075
  postinstall_cmds='chmod +x $lib'
 
19076
  ;;
 
19077
 
 
19078
sunos4*)
 
19079
  version_type=sunos
 
19080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19081
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19082
  shlibpath_var=LD_LIBRARY_PATH
 
19083
  shlibpath_overrides_runpath=yes
 
19084
  if test "$with_gnu_ld" = yes; then
 
19085
    need_lib_prefix=no
 
19086
  fi
 
19087
  need_version=yes
 
19088
  ;;
 
19089
 
 
19090
sysv4 | sysv4.3*)
 
19091
  version_type=linux
 
19092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19093
  soname_spec='${libname}${release}${shared_ext}$major'
 
19094
  shlibpath_var=LD_LIBRARY_PATH
 
19095
  case $host_vendor in
 
19096
    sni)
 
19097
      shlibpath_overrides_runpath=no
 
19098
      need_lib_prefix=no
 
19099
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19100
      runpath_var=LD_RUN_PATH
 
19101
      ;;
 
19102
    siemens)
 
19103
      need_lib_prefix=no
 
19104
      ;;
 
19105
    motorola)
 
19106
      need_lib_prefix=no
 
19107
      need_version=no
 
19108
      shlibpath_overrides_runpath=no
 
19109
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19110
      ;;
 
19111
  esac
 
19112
  ;;
 
19113
 
 
19114
sysv4*MP*)
 
19115
  if test -d /usr/nec ;then
 
19116
    version_type=linux
 
19117
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19118
    soname_spec='$libname${shared_ext}.$major'
 
19119
    shlibpath_var=LD_LIBRARY_PATH
 
19120
  fi
 
19121
  ;;
 
19122
 
 
19123
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19124
  version_type=freebsd-elf
 
19125
  need_lib_prefix=no
 
19126
  need_version=no
 
19127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19128
  soname_spec='${libname}${release}${shared_ext}$major'
 
19129
  shlibpath_var=LD_LIBRARY_PATH
 
19130
  hardcode_into_libs=yes
 
19131
  if test "$with_gnu_ld" = yes; then
 
19132
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19133
    shlibpath_overrides_runpath=no
 
19134
  else
 
19135
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19136
    shlibpath_overrides_runpath=yes
 
19137
    case $host_os in
 
19138
      sco3.2v5*)
 
19139
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19140
        ;;
 
19141
    esac
 
19142
  fi
 
19143
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19144
  ;;
 
19145
 
 
19146
uts4*)
 
19147
  version_type=linux
 
19148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19149
  soname_spec='${libname}${release}${shared_ext}$major'
 
19150
  shlibpath_var=LD_LIBRARY_PATH
 
19151
  ;;
 
19152
 
 
19153
*)
 
19154
  dynamic_linker=no
 
19155
  ;;
 
19156
esac
 
19157
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19158
$as_echo "$dynamic_linker" >&6; }
 
19159
test "$dynamic_linker" = no && can_build_shared=no
 
19160
 
 
19161
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19162
  $as_echo_n "(cached) " >&6
 
19163
else
 
19164
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19165
fi
 
19166
 
 
19167
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19168
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19169
  $as_echo_n "(cached) " >&6
 
19170
else
 
19171
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19172
fi
 
19173
 
 
19174
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19175
 
 
19176
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19177
if test "$GCC" = yes; then
 
19178
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19179
fi
 
19180
 
 
19181
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19182
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
19183
hardcode_action_GCJ=
 
19184
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19185
   test -n "$runpath_var_GCJ" || \
 
19186
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19187
 
 
19188
  # We can hardcode non-existant directories.
 
19189
  if test "$hardcode_direct_GCJ" != no &&
 
19190
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19191
     # have to relink, otherwise we might link with an installed library
 
19192
     # when we should be linking with a yet-to-be-installed one
 
19193
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19194
     test "$hardcode_minus_L_GCJ" != no; then
 
19195
    # Linking always hardcodes the temporary library directory.
 
19196
    hardcode_action_GCJ=relink
 
19197
  else
 
19198
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19199
    hardcode_action_GCJ=immediate
 
19200
  fi
 
19201
else
 
19202
  # We cannot hardcode anything, or else we can only hardcode existing
 
19203
  # directories.
 
19204
  hardcode_action_GCJ=unsupported
 
19205
fi
 
19206
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19207
$as_echo "$hardcode_action_GCJ" >&6; }
 
19208
 
 
19209
if test "$hardcode_action_GCJ" = relink; then
 
19210
  # Fast installation is not supported
 
19211
  enable_fast_install=no
 
19212
elif test "$shlibpath_overrides_runpath" = yes ||
 
19213
     test "$enable_shared" = no; then
 
19214
  # Fast installation is not necessary
 
19215
  enable_fast_install=needless
 
19216
fi
 
19217
 
 
19218
 
 
19219
# The else clause should only fire when bootstrapping the
 
19220
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19221
# with your package, and you will get complaints that there are
 
19222
# no rules to generate ltmain.sh.
 
19223
if test -f "$ltmain"; then
 
19224
  # See if we are running on zsh, and set the options which allow our commands through
 
19225
  # without removal of \ escapes.
 
19226
  if test -n "${ZSH_VERSION+set}" ; then
 
19227
    setopt NO_GLOB_SUBST
 
19228
  fi
 
19229
  # Now quote all the things that may contain metacharacters while being
 
19230
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19231
  # variables and quote the copies for generation of the libtool script.
 
19232
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19233
    SED SHELL STRIP \
 
19234
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19235
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19236
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19237
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19238
    lt_cv_sys_global_symbol_to_c_name_address \
 
19239
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19240
    old_postinstall_cmds old_postuninstall_cmds \
 
19241
    compiler_GCJ \
 
19242
    CC_GCJ \
 
19243
    LD_GCJ \
 
19244
    lt_prog_compiler_wl_GCJ \
 
19245
    lt_prog_compiler_pic_GCJ \
 
19246
    lt_prog_compiler_static_GCJ \
 
19247
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19248
    export_dynamic_flag_spec_GCJ \
 
19249
    thread_safe_flag_spec_GCJ \
 
19250
    whole_archive_flag_spec_GCJ \
 
19251
    enable_shared_with_static_runtimes_GCJ \
 
19252
    old_archive_cmds_GCJ \
 
19253
    old_archive_from_new_cmds_GCJ \
 
19254
    predep_objects_GCJ \
 
19255
    postdep_objects_GCJ \
 
19256
    predeps_GCJ \
 
19257
    postdeps_GCJ \
 
19258
    compiler_lib_search_path_GCJ \
 
19259
    compiler_lib_search_dirs_GCJ \
 
19260
    archive_cmds_GCJ \
 
19261
    archive_expsym_cmds_GCJ \
 
19262
    postinstall_cmds_GCJ \
 
19263
    postuninstall_cmds_GCJ \
 
19264
    old_archive_from_expsyms_cmds_GCJ \
 
19265
    allow_undefined_flag_GCJ \
 
19266
    no_undefined_flag_GCJ \
 
19267
    export_symbols_cmds_GCJ \
 
19268
    hardcode_libdir_flag_spec_GCJ \
 
19269
    hardcode_libdir_flag_spec_ld_GCJ \
 
19270
    hardcode_libdir_separator_GCJ \
 
19271
    hardcode_automatic_GCJ \
 
19272
    module_cmds_GCJ \
 
19273
    module_expsym_cmds_GCJ \
 
19274
    lt_cv_prog_compiler_c_o_GCJ \
 
19275
    fix_srcfile_path_GCJ \
 
19276
    exclude_expsyms_GCJ \
 
19277
    include_expsyms_GCJ; do
 
19278
 
 
19279
    case $var in
 
19280
    old_archive_cmds_GCJ | \
 
19281
    old_archive_from_new_cmds_GCJ | \
 
19282
    archive_cmds_GCJ | \
 
19283
    archive_expsym_cmds_GCJ | \
 
19284
    module_cmds_GCJ | \
 
19285
    module_expsym_cmds_GCJ | \
 
19286
    old_archive_from_expsyms_cmds_GCJ | \
 
19287
    export_symbols_cmds_GCJ | \
 
19288
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19289
    postinstall_cmds | postuninstall_cmds | \
 
19290
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19291
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19292
      # Double-quote double-evaled strings.
 
19293
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19294
      ;;
 
19295
    *)
 
19296
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19297
      ;;
 
19298
    esac
 
19299
  done
 
19300
 
 
19301
  case $lt_echo in
 
19302
  *'\$0 --fallback-echo"')
 
19303
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19304
    ;;
 
19305
  esac
 
19306
 
 
19307
cfgfile="$ofile"
 
19308
 
 
19309
  cat <<__EOF__ >> "$cfgfile"
 
19310
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19311
 
 
19312
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19313
 
 
19314
# Shell to use when invoking shell scripts.
 
19315
SHELL=$lt_SHELL
 
19316
 
 
19317
# Whether or not to build shared libraries.
 
19318
build_libtool_libs=$enable_shared
 
19319
 
 
19320
# Whether or not to build static libraries.
 
19321
build_old_libs=$enable_static
 
19322
 
 
19323
# Whether or not to add -lc for building shared libraries.
 
19324
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19325
 
 
19326
# Whether or not to disallow shared libs when runtime libs are static
 
19327
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19328
 
 
19329
# Whether or not to optimize for fast installation.
 
19330
fast_install=$enable_fast_install
 
19331
 
 
19332
# The host system.
 
19333
host_alias=$host_alias
 
19334
host=$host
 
19335
host_os=$host_os
 
19336
 
 
19337
# The build system.
 
19338
build_alias=$build_alias
 
19339
build=$build
 
19340
build_os=$build_os
 
19341
 
 
19342
# An echo program that does not interpret backslashes.
 
19343
echo=$lt_echo
 
19344
 
 
19345
# The archiver.
 
19346
AR=$lt_AR
 
19347
AR_FLAGS=$lt_AR_FLAGS
 
19348
 
 
19349
# A C compiler.
 
19350
LTCC=$lt_LTCC
 
19351
 
 
19352
# LTCC compiler flags.
 
19353
LTCFLAGS=$lt_LTCFLAGS
 
19354
 
 
19355
# A language-specific compiler.
 
19356
CC=$lt_compiler_GCJ
 
19357
 
 
19358
# Is the compiler the GNU C compiler?
 
19359
with_gcc=$GCC_GCJ
 
19360
 
 
19361
# An ERE matcher.
 
19362
EGREP=$lt_EGREP
 
19363
 
 
19364
# The linker used to build libraries.
 
19365
LD=$lt_LD_GCJ
 
19366
 
 
19367
# Whether we need hard or soft links.
 
19368
LN_S=$lt_LN_S
 
19369
 
 
19370
# A BSD-compatible nm program.
 
19371
NM=$lt_NM
 
19372
 
 
19373
# A symbol stripping program
 
19374
STRIP=$lt_STRIP
 
19375
 
 
19376
# Used to examine libraries when file_magic_cmd begins "file"
 
19377
MAGIC_CMD=$MAGIC_CMD
 
19378
 
 
19379
# Used on cygwin: DLL creation program.
 
19380
DLLTOOL="$DLLTOOL"
 
19381
 
 
19382
# Used on cygwin: object dumper.
 
19383
OBJDUMP="$OBJDUMP"
 
19384
 
 
19385
# Used on cygwin: assembler.
 
19386
AS="$AS"
 
19387
 
 
19388
# The name of the directory that contains temporary libtool files.
 
19389
objdir=$objdir
 
19390
 
 
19391
# How to create reloadable object files.
 
19392
reload_flag=$lt_reload_flag
 
19393
reload_cmds=$lt_reload_cmds
 
19394
 
 
19395
# How to pass a linker flag through the compiler.
 
19396
wl=$lt_lt_prog_compiler_wl_GCJ
 
19397
 
 
19398
# Object file suffix (normally "o").
 
19399
objext="$ac_objext"
 
19400
 
 
19401
# Old archive suffix (normally "a").
 
19402
libext="$libext"
 
19403
 
 
19404
# Shared library suffix (normally ".so").
 
19405
shrext_cmds='$shrext_cmds'
 
19406
 
 
19407
# Executable file suffix (normally "").
 
19408
exeext="$exeext"
 
19409
 
 
19410
# Additional compiler flags for building library objects.
 
19411
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19412
pic_mode=$pic_mode
 
19413
 
 
19414
# What is the maximum length of a command?
 
19415
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19416
 
 
19417
# Does compiler simultaneously support -c and -o options?
 
19418
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19419
 
 
19420
# Must we lock files when doing compilation?
 
19421
need_locks=$lt_need_locks
 
19422
 
 
19423
# Do we need the lib prefix for modules?
 
19424
need_lib_prefix=$need_lib_prefix
 
19425
 
 
19426
# Do we need a version for libraries?
 
19427
need_version=$need_version
 
19428
 
 
19429
# Whether dlopen is supported.
 
19430
dlopen_support=$enable_dlopen
 
19431
 
 
19432
# Whether dlopen of programs is supported.
 
19433
dlopen_self=$enable_dlopen_self
 
19434
 
 
19435
# Whether dlopen of statically linked programs is supported.
 
19436
dlopen_self_static=$enable_dlopen_self_static
 
19437
 
 
19438
# Compiler flag to prevent dynamic linking.
 
19439
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19440
 
 
19441
# Compiler flag to turn off builtin functions.
 
19442
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19443
 
 
19444
# Compiler flag to allow reflexive dlopens.
 
19445
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19446
 
 
19447
# Compiler flag to generate shared objects directly from archives.
 
19448
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19449
 
 
19450
# Compiler flag to generate thread-safe objects.
 
19451
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19452
 
 
19453
# Library versioning type.
 
19454
version_type=$version_type
 
19455
 
 
19456
# Format of library name prefix.
 
19457
libname_spec=$lt_libname_spec
 
19458
 
 
19459
# List of archive names.  First name is the real one, the rest are links.
 
19460
# The last name is the one that the linker finds with -lNAME.
 
19461
library_names_spec=$lt_library_names_spec
 
19462
 
 
19463
# The coded name of the library, if different from the real name.
 
19464
soname_spec=$lt_soname_spec
 
19465
 
 
19466
# Commands used to build and install an old-style archive.
 
19467
RANLIB=$lt_RANLIB
 
19468
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19469
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19470
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19471
 
 
19472
# Create an old-style archive from a shared archive.
 
19473
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19474
 
 
19475
# Create a temporary old-style archive to link instead of a shared archive.
 
19476
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19477
 
 
19478
# Commands used to build and install a shared archive.
 
19479
archive_cmds=$lt_archive_cmds_GCJ
 
19480
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19481
postinstall_cmds=$lt_postinstall_cmds
 
19482
postuninstall_cmds=$lt_postuninstall_cmds
 
19483
 
 
19484
# Commands used to build a loadable module (assumed same as above if empty)
 
19485
module_cmds=$lt_module_cmds_GCJ
 
19486
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19487
 
 
19488
# Commands to strip libraries.
 
19489
old_striplib=$lt_old_striplib
 
19490
striplib=$lt_striplib
 
19491
 
 
19492
# Dependencies to place before the objects being linked to create a
 
19493
# shared library.
 
19494
predep_objects=$lt_predep_objects_GCJ
 
19495
 
 
19496
# Dependencies to place after the objects being linked to create a
 
19497
# shared library.
 
19498
postdep_objects=$lt_postdep_objects_GCJ
 
19499
 
 
19500
# Dependencies to place before the objects being linked to create a
 
19501
# shared library.
 
19502
predeps=$lt_predeps_GCJ
 
19503
 
 
19504
# Dependencies to place after the objects being linked to create a
 
19505
# shared library.
 
19506
postdeps=$lt_postdeps_GCJ
 
19507
 
 
19508
# The directories searched by this compiler when creating a shared
 
19509
# library
 
19510
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19511
 
 
19512
# The library search path used internally by the compiler when linking
 
19513
# a shared library.
 
19514
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19515
 
 
19516
# Method to check whether dependent libraries are shared objects.
 
19517
deplibs_check_method=$lt_deplibs_check_method
 
19518
 
 
19519
# Command to use when deplibs_check_method == file_magic.
 
19520
file_magic_cmd=$lt_file_magic_cmd
 
19521
 
 
19522
# Flag that allows shared libraries with undefined symbols to be built.
 
19523
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19524
 
 
19525
# Flag that forces no undefined symbols.
 
19526
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19527
 
 
19528
# Commands used to finish a libtool library installation in a directory.
 
19529
finish_cmds=$lt_finish_cmds
 
19530
 
 
19531
# Same as above, but a single script fragment to be evaled but not shown.
 
19532
finish_eval=$lt_finish_eval
 
19533
 
 
19534
# Take the output of nm and produce a listing of raw symbols and C names.
 
19535
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19536
 
 
19537
# Transform the output of nm in a proper C declaration
 
19538
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19539
 
 
19540
# Transform the output of nm in a C name address pair
 
19541
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19542
 
 
19543
# This is the shared library runtime path variable.
 
19544
runpath_var=$runpath_var
 
19545
 
 
19546
# This is the shared library path variable.
 
19547
shlibpath_var=$shlibpath_var
 
19548
 
 
19549
# Is shlibpath searched before the hard-coded library search path?
 
19550
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19551
 
 
19552
# How to hardcode a shared library path into an executable.
 
19553
hardcode_action=$hardcode_action_GCJ
 
19554
 
 
19555
# Whether we should hardcode library paths into libraries.
 
19556
hardcode_into_libs=$hardcode_into_libs
 
19557
 
 
19558
# Flag to hardcode \$libdir into a binary during linking.
 
19559
# This must work even if \$libdir does not exist.
 
19560
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19561
 
 
19562
# If ld is used when linking, flag to hardcode \$libdir into
 
19563
# a binary during linking. This must work even if \$libdir does
 
19564
# not exist.
 
19565
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19566
 
 
19567
# Whether we need a single -rpath flag with a separated argument.
 
19568
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19569
 
 
19570
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19571
# resulting binary.
 
19572
hardcode_direct=$hardcode_direct_GCJ
 
19573
 
 
19574
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19575
# resulting binary.
 
19576
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19577
 
 
19578
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19579
# the resulting binary.
 
19580
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19581
 
 
19582
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19583
# and all subsequent libraries and executables linked against it.
 
19584
hardcode_automatic=$hardcode_automatic_GCJ
 
19585
 
 
19586
# Variables whose values should be saved in libtool wrapper scripts and
 
19587
# restored at relink time.
 
19588
variables_saved_for_relink="$variables_saved_for_relink"
 
19589
 
 
19590
# Whether libtool must link a program against all its dependency libraries.
 
19591
link_all_deplibs=$link_all_deplibs_GCJ
 
19592
 
 
19593
# Compile-time system search path for libraries
 
19594
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19595
 
 
19596
# Run-time system search path for libraries
 
19597
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19598
 
 
19599
# Fix the shell variable \$srcfile for the compiler.
 
19600
fix_srcfile_path=$lt_fix_srcfile_path
 
19601
 
 
19602
# Set to yes if exported symbols are required.
 
19603
always_export_symbols=$always_export_symbols_GCJ
 
19604
 
 
19605
# The commands to list exported symbols.
 
19606
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19607
 
 
19608
# The commands to extract the exported symbol list from a shared archive.
 
19609
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19610
 
 
19611
# Symbols that should not be listed in the preloaded symbols.
 
19612
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19613
 
 
19614
# Symbols that must always be exported.
 
19615
include_expsyms=$lt_include_expsyms_GCJ
 
19616
 
 
19617
# ### END LIBTOOL TAG CONFIG: $tagname
 
19618
 
 
19619
__EOF__
 
19620
 
 
19621
 
 
19622
else
 
19623
  # If there is no Makefile yet, we rely on a make rule to execute
 
19624
  # `config.status --recheck' to rerun these tests and create the
 
19625
  # libtool script then.
 
19626
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19627
  if test -f "$ltmain_in"; then
 
19628
    test -f Makefile && make "$ltmain"
 
19629
  fi
 
19630
fi
 
19631
 
 
19632
 
 
19633
ac_ext=c
 
19634
ac_cpp='$CPP $CPPFLAGS'
 
19635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19638
 
 
19639
CC="$lt_save_CC"
 
19640
 
 
19641
        else
 
19642
          tagname=""
 
19643
        fi
 
19644
        ;;
 
19645
 
 
19646
      RC)
 
19647
 
 
19648
 
 
19649
# Source file extension for RC test sources.
 
19650
ac_ext=rc
 
19651
 
 
19652
# Object file extension for compiled RC test sources.
 
19653
objext=o
 
19654
objext_RC=$objext
 
19655
 
 
19656
# Code to be used in simple compile tests
 
19657
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19658
 
 
19659
# Code to be used in simple link tests
 
19660
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19661
 
 
19662
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19663
 
 
19664
# If no C compiler was specified, use CC.
 
19665
LTCC=${LTCC-"$CC"}
 
19666
 
 
19667
# If no C compiler flags were specified, use CFLAGS.
 
19668
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19669
 
 
19670
# Allow CC to be a program name with arguments.
 
19671
compiler=$CC
 
19672
 
 
19673
 
 
19674
# save warnings/boilerplate of simple test code
 
19675
ac_outfile=conftest.$ac_objext
 
19676
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19677
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19678
_lt_compiler_boilerplate=`cat conftest.err`
 
19679
$rm conftest*
 
19680
 
 
19681
ac_outfile=conftest.$ac_objext
 
19682
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19683
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19684
_lt_linker_boilerplate=`cat conftest.err`
 
19685
$rm -r conftest*
 
19686
 
 
19687
 
 
19688
# Allow CC to be a program name with arguments.
 
19689
lt_save_CC="$CC"
 
19690
CC=${RC-"windres"}
 
19691
compiler=$CC
 
19692
compiler_RC=$CC
 
19693
for cc_temp in $compiler""; do
 
19694
  case $cc_temp in
 
19695
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19696
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19697
    \-*) ;;
 
19698
    *) break;;
 
19699
  esac
 
19700
done
 
19701
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19702
 
 
19703
lt_cv_prog_compiler_c_o_RC=yes
 
19704
 
 
19705
# The else clause should only fire when bootstrapping the
 
19706
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19707
# with your package, and you will get complaints that there are
 
19708
# no rules to generate ltmain.sh.
 
19709
if test -f "$ltmain"; then
 
19710
  # See if we are running on zsh, and set the options which allow our commands through
 
19711
  # without removal of \ escapes.
 
19712
  if test -n "${ZSH_VERSION+set}" ; then
 
19713
    setopt NO_GLOB_SUBST
 
19714
  fi
 
19715
  # Now quote all the things that may contain metacharacters while being
 
19716
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19717
  # variables and quote the copies for generation of the libtool script.
 
19718
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19719
    SED SHELL STRIP \
 
19720
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19721
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19722
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19723
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19724
    lt_cv_sys_global_symbol_to_c_name_address \
 
19725
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19726
    old_postinstall_cmds old_postuninstall_cmds \
 
19727
    compiler_RC \
 
19728
    CC_RC \
 
19729
    LD_RC \
 
19730
    lt_prog_compiler_wl_RC \
 
19731
    lt_prog_compiler_pic_RC \
 
19732
    lt_prog_compiler_static_RC \
 
19733
    lt_prog_compiler_no_builtin_flag_RC \
 
19734
    export_dynamic_flag_spec_RC \
 
19735
    thread_safe_flag_spec_RC \
 
19736
    whole_archive_flag_spec_RC \
 
19737
    enable_shared_with_static_runtimes_RC \
 
19738
    old_archive_cmds_RC \
 
19739
    old_archive_from_new_cmds_RC \
 
19740
    predep_objects_RC \
 
19741
    postdep_objects_RC \
 
19742
    predeps_RC \
 
19743
    postdeps_RC \
 
19744
    compiler_lib_search_path_RC \
 
19745
    compiler_lib_search_dirs_RC \
 
19746
    archive_cmds_RC \
 
19747
    archive_expsym_cmds_RC \
 
19748
    postinstall_cmds_RC \
 
19749
    postuninstall_cmds_RC \
 
19750
    old_archive_from_expsyms_cmds_RC \
 
19751
    allow_undefined_flag_RC \
 
19752
    no_undefined_flag_RC \
 
19753
    export_symbols_cmds_RC \
 
19754
    hardcode_libdir_flag_spec_RC \
 
19755
    hardcode_libdir_flag_spec_ld_RC \
 
19756
    hardcode_libdir_separator_RC \
 
19757
    hardcode_automatic_RC \
 
19758
    module_cmds_RC \
 
19759
    module_expsym_cmds_RC \
 
19760
    lt_cv_prog_compiler_c_o_RC \
 
19761
    fix_srcfile_path_RC \
 
19762
    exclude_expsyms_RC \
 
19763
    include_expsyms_RC; do
 
19764
 
 
19765
    case $var in
 
19766
    old_archive_cmds_RC | \
 
19767
    old_archive_from_new_cmds_RC | \
 
19768
    archive_cmds_RC | \
 
19769
    archive_expsym_cmds_RC | \
 
19770
    module_cmds_RC | \
 
19771
    module_expsym_cmds_RC | \
 
19772
    old_archive_from_expsyms_cmds_RC | \
 
19773
    export_symbols_cmds_RC | \
 
19774
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19775
    postinstall_cmds | postuninstall_cmds | \
 
19776
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19777
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19778
      # Double-quote double-evaled strings.
 
19779
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19780
      ;;
 
19781
    *)
 
19782
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19783
      ;;
 
19784
    esac
 
19785
  done
 
19786
 
 
19787
  case $lt_echo in
 
19788
  *'\$0 --fallback-echo"')
 
19789
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19790
    ;;
 
19791
  esac
 
19792
 
 
19793
cfgfile="$ofile"
 
19794
 
 
19795
  cat <<__EOF__ >> "$cfgfile"
 
19796
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19797
 
 
19798
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19799
 
 
19800
# Shell to use when invoking shell scripts.
 
19801
SHELL=$lt_SHELL
 
19802
 
 
19803
# Whether or not to build shared libraries.
 
19804
build_libtool_libs=$enable_shared
 
19805
 
 
19806
# Whether or not to build static libraries.
 
19807
build_old_libs=$enable_static
 
19808
 
 
19809
# Whether or not to add -lc for building shared libraries.
 
19810
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19811
 
 
19812
# Whether or not to disallow shared libs when runtime libs are static
 
19813
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19814
 
 
19815
# Whether or not to optimize for fast installation.
 
19816
fast_install=$enable_fast_install
 
19817
 
 
19818
# The host system.
 
19819
host_alias=$host_alias
 
19820
host=$host
 
19821
host_os=$host_os
 
19822
 
 
19823
# The build system.
 
19824
build_alias=$build_alias
 
19825
build=$build
 
19826
build_os=$build_os
 
19827
 
 
19828
# An echo program that does not interpret backslashes.
 
19829
echo=$lt_echo
 
19830
 
 
19831
# The archiver.
 
19832
AR=$lt_AR
 
19833
AR_FLAGS=$lt_AR_FLAGS
 
19834
 
 
19835
# A C compiler.
 
19836
LTCC=$lt_LTCC
 
19837
 
 
19838
# LTCC compiler flags.
 
19839
LTCFLAGS=$lt_LTCFLAGS
 
19840
 
 
19841
# A language-specific compiler.
 
19842
CC=$lt_compiler_RC
 
19843
 
 
19844
# Is the compiler the GNU C compiler?
 
19845
with_gcc=$GCC_RC
 
19846
 
 
19847
# An ERE matcher.
 
19848
EGREP=$lt_EGREP
 
19849
 
 
19850
# The linker used to build libraries.
 
19851
LD=$lt_LD_RC
 
19852
 
 
19853
# Whether we need hard or soft links.
 
19854
LN_S=$lt_LN_S
 
19855
 
 
19856
# A BSD-compatible nm program.
 
19857
NM=$lt_NM
 
19858
 
 
19859
# A symbol stripping program
 
19860
STRIP=$lt_STRIP
 
19861
 
 
19862
# Used to examine libraries when file_magic_cmd begins "file"
 
19863
MAGIC_CMD=$MAGIC_CMD
 
19864
 
 
19865
# Used on cygwin: DLL creation program.
 
19866
DLLTOOL="$DLLTOOL"
 
19867
 
 
19868
# Used on cygwin: object dumper.
 
19869
OBJDUMP="$OBJDUMP"
 
19870
 
 
19871
# Used on cygwin: assembler.
 
19872
AS="$AS"
 
19873
 
 
19874
# The name of the directory that contains temporary libtool files.
 
19875
objdir=$objdir
 
19876
 
 
19877
# How to create reloadable object files.
 
19878
reload_flag=$lt_reload_flag
 
19879
reload_cmds=$lt_reload_cmds
 
19880
 
 
19881
# How to pass a linker flag through the compiler.
 
19882
wl=$lt_lt_prog_compiler_wl_RC
 
19883
 
 
19884
# Object file suffix (normally "o").
 
19885
objext="$ac_objext"
 
19886
 
 
19887
# Old archive suffix (normally "a").
 
19888
libext="$libext"
 
19889
 
 
19890
# Shared library suffix (normally ".so").
 
19891
shrext_cmds='$shrext_cmds'
 
19892
 
 
19893
# Executable file suffix (normally "").
 
19894
exeext="$exeext"
 
19895
 
 
19896
# Additional compiler flags for building library objects.
 
19897
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19898
pic_mode=$pic_mode
 
19899
 
 
19900
# What is the maximum length of a command?
 
19901
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19902
 
 
19903
# Does compiler simultaneously support -c and -o options?
 
19904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19905
 
 
19906
# Must we lock files when doing compilation?
 
19907
need_locks=$lt_need_locks
 
19908
 
 
19909
# Do we need the lib prefix for modules?
 
19910
need_lib_prefix=$need_lib_prefix
 
19911
 
 
19912
# Do we need a version for libraries?
 
19913
need_version=$need_version
 
19914
 
 
19915
# Whether dlopen is supported.
 
19916
dlopen_support=$enable_dlopen
 
19917
 
 
19918
# Whether dlopen of programs is supported.
 
19919
dlopen_self=$enable_dlopen_self
 
19920
 
 
19921
# Whether dlopen of statically linked programs is supported.
 
19922
dlopen_self_static=$enable_dlopen_self_static
 
19923
 
 
19924
# Compiler flag to prevent dynamic linking.
 
19925
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19926
 
 
19927
# Compiler flag to turn off builtin functions.
 
19928
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19929
 
 
19930
# Compiler flag to allow reflexive dlopens.
 
19931
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19932
 
 
19933
# Compiler flag to generate shared objects directly from archives.
 
19934
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19935
 
 
19936
# Compiler flag to generate thread-safe objects.
 
19937
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19938
 
 
19939
# Library versioning type.
 
19940
version_type=$version_type
 
19941
 
 
19942
# Format of library name prefix.
 
19943
libname_spec=$lt_libname_spec
 
19944
 
 
19945
# List of archive names.  First name is the real one, the rest are links.
 
19946
# The last name is the one that the linker finds with -lNAME.
 
19947
library_names_spec=$lt_library_names_spec
 
19948
 
 
19949
# The coded name of the library, if different from the real name.
 
19950
soname_spec=$lt_soname_spec
 
19951
 
 
19952
# Commands used to build and install an old-style archive.
 
19953
RANLIB=$lt_RANLIB
 
19954
old_archive_cmds=$lt_old_archive_cmds_RC
 
19955
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19956
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19957
 
 
19958
# Create an old-style archive from a shared archive.
 
19959
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19960
 
 
19961
# Create a temporary old-style archive to link instead of a shared archive.
 
19962
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19963
 
 
19964
# Commands used to build and install a shared archive.
 
19965
archive_cmds=$lt_archive_cmds_RC
 
19966
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19967
postinstall_cmds=$lt_postinstall_cmds
 
19968
postuninstall_cmds=$lt_postuninstall_cmds
 
19969
 
 
19970
# Commands used to build a loadable module (assumed same as above if empty)
 
19971
module_cmds=$lt_module_cmds_RC
 
19972
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19973
 
 
19974
# Commands to strip libraries.
 
19975
old_striplib=$lt_old_striplib
 
19976
striplib=$lt_striplib
 
19977
 
 
19978
# Dependencies to place before the objects being linked to create a
 
19979
# shared library.
 
19980
predep_objects=$lt_predep_objects_RC
 
19981
 
 
19982
# Dependencies to place after the objects being linked to create a
 
19983
# shared library.
 
19984
postdep_objects=$lt_postdep_objects_RC
 
19985
 
 
19986
# Dependencies to place before the objects being linked to create a
 
19987
# shared library.
 
19988
predeps=$lt_predeps_RC
 
19989
 
 
19990
# Dependencies to place after the objects being linked to create a
 
19991
# shared library.
 
19992
postdeps=$lt_postdeps_RC
 
19993
 
 
19994
# The directories searched by this compiler when creating a shared
 
19995
# library
 
19996
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19997
 
 
19998
# The library search path used internally by the compiler when linking
 
19999
# a shared library.
 
20000
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20001
 
 
20002
# Method to check whether dependent libraries are shared objects.
 
20003
deplibs_check_method=$lt_deplibs_check_method
 
20004
 
 
20005
# Command to use when deplibs_check_method == file_magic.
 
20006
file_magic_cmd=$lt_file_magic_cmd
 
20007
 
 
20008
# Flag that allows shared libraries with undefined symbols to be built.
 
20009
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20010
 
 
20011
# Flag that forces no undefined symbols.
 
20012
no_undefined_flag=$lt_no_undefined_flag_RC
 
20013
 
 
20014
# Commands used to finish a libtool library installation in a directory.
 
20015
finish_cmds=$lt_finish_cmds
 
20016
 
 
20017
# Same as above, but a single script fragment to be evaled but not shown.
 
20018
finish_eval=$lt_finish_eval
 
20019
 
 
20020
# Take the output of nm and produce a listing of raw symbols and C names.
 
20021
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20022
 
 
20023
# Transform the output of nm in a proper C declaration
 
20024
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20025
 
 
20026
# Transform the output of nm in a C name address pair
 
20027
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20028
 
 
20029
# This is the shared library runtime path variable.
 
20030
runpath_var=$runpath_var
 
20031
 
 
20032
# This is the shared library path variable.
 
20033
shlibpath_var=$shlibpath_var
 
20034
 
 
20035
# Is shlibpath searched before the hard-coded library search path?
 
20036
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20037
 
 
20038
# How to hardcode a shared library path into an executable.
 
20039
hardcode_action=$hardcode_action_RC
 
20040
 
 
20041
# Whether we should hardcode library paths into libraries.
 
20042
hardcode_into_libs=$hardcode_into_libs
 
20043
 
 
20044
# Flag to hardcode \$libdir into a binary during linking.
 
20045
# This must work even if \$libdir does not exist.
 
20046
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20047
 
 
20048
# If ld is used when linking, flag to hardcode \$libdir into
 
20049
# a binary during linking. This must work even if \$libdir does
 
20050
# not exist.
 
20051
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20052
 
 
20053
# Whether we need a single -rpath flag with a separated argument.
 
20054
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20055
 
 
20056
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20057
# resulting binary.
 
20058
hardcode_direct=$hardcode_direct_RC
 
20059
 
 
20060
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20061
# resulting binary.
 
20062
hardcode_minus_L=$hardcode_minus_L_RC
 
20063
 
 
20064
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20065
# the resulting binary.
 
20066
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20067
 
 
20068
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20069
# and all subsequent libraries and executables linked against it.
 
20070
hardcode_automatic=$hardcode_automatic_RC
 
20071
 
 
20072
# Variables whose values should be saved in libtool wrapper scripts and
 
20073
# restored at relink time.
 
20074
variables_saved_for_relink="$variables_saved_for_relink"
 
20075
 
 
20076
# Whether libtool must link a program against all its dependency libraries.
 
20077
link_all_deplibs=$link_all_deplibs_RC
 
20078
 
 
20079
# Compile-time system search path for libraries
 
20080
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20081
 
 
20082
# Run-time system search path for libraries
 
20083
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20084
 
 
20085
# Fix the shell variable \$srcfile for the compiler.
 
20086
fix_srcfile_path=$lt_fix_srcfile_path
 
20087
 
 
20088
# Set to yes if exported symbols are required.
 
20089
always_export_symbols=$always_export_symbols_RC
 
20090
 
 
20091
# The commands to list exported symbols.
 
20092
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20093
 
 
20094
# The commands to extract the exported symbol list from a shared archive.
 
20095
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20096
 
 
20097
# Symbols that should not be listed in the preloaded symbols.
 
20098
exclude_expsyms=$lt_exclude_expsyms_RC
 
20099
 
 
20100
# Symbols that must always be exported.
 
20101
include_expsyms=$lt_include_expsyms_RC
 
20102
 
 
20103
# ### END LIBTOOL TAG CONFIG: $tagname
 
20104
 
 
20105
__EOF__
 
20106
 
 
20107
 
 
20108
else
 
20109
  # If there is no Makefile yet, we rely on a make rule to execute
 
20110
  # `config.status --recheck' to rerun these tests and create the
 
20111
  # libtool script then.
 
20112
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20113
  if test -f "$ltmain_in"; then
 
20114
    test -f Makefile && make "$ltmain"
 
20115
  fi
 
20116
fi
 
20117
 
 
20118
 
 
20119
ac_ext=c
 
20120
ac_cpp='$CPP $CPPFLAGS'
 
20121
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20122
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20123
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20124
 
 
20125
CC="$lt_save_CC"
 
20126
 
 
20127
        ;;
 
20128
 
 
20129
      *)
 
20130
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20131
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20132
   { (exit 1); exit 1; }; }
 
20133
        ;;
 
20134
      esac
 
20135
 
 
20136
      # Append the new tag name to the list of available tags.
 
20137
      if test -n "$tagname" ; then
 
20138
      available_tags="$available_tags $tagname"
 
20139
    fi
 
20140
    fi
 
20141
  done
 
20142
  IFS="$lt_save_ifs"
 
20143
 
 
20144
  # Now substitute the updated list of available tags.
 
20145
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20146
    mv "${ofile}T" "$ofile"
 
20147
    chmod +x "$ofile"
 
20148
  else
 
20149
    rm -f "${ofile}T"
 
20150
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20151
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20152
   { (exit 1); exit 1; }; }
 
20153
  fi
 
20154
fi
 
20155
 
 
20156
 
 
20157
 
 
20158
# This can be used to rebuild libtool when needed
 
20159
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20160
 
 
20161
# Always use our own libtool.
 
20162
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20163
 
 
20164
# Prevent multiple expansion
 
20165
 
 
20166
 
 
20167
 
 
20168
 
 
20169
 
 
20170
 
 
20171
 
 
20172
 
 
20173
 
 
20174
 
 
20175
 
 
20176
 
 
20177
 
 
20178
 
 
20179
 
 
20180
 
 
20181
 
 
20182
 
 
20183
 
 
20184
 
 
20185
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
20186
$as_echo_n "checking whether build environment is sane... " >&6; }
 
20187
# Just in case
 
20188
sleep 1
 
20189
echo timestamp > conftest.file
 
20190
# Do `set' in a subshell so we don't clobber the current shell's
 
20191
# arguments.  Must try -L first in case configure is actually a
 
20192
# symlink; some systems play weird games with the mod time of symlinks
 
20193
# (eg FreeBSD returns the mod time of the symlink's containing
 
20194
# directory).
 
20195
if (
 
20196
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
20197
   if test "$*" = "X"; then
 
20198
      # -L didn't work.
 
20199
      set X `ls -t $srcdir/configure conftest.file`
 
20200
   fi
 
20201
   rm -f conftest.file
 
20202
   if test "$*" != "X $srcdir/configure conftest.file" \
 
20203
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
20204
 
 
20205
      # If neither matched, then we have a broken ls.  This can happen
 
20206
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
20207
      # broken ls alias from the environment.  This has actually
 
20208
      # happened.  Such a system could not be considered "sane".
 
20209
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
20210
alias in your environment" >&5
 
20211
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
20212
alias in your environment" >&2;}
 
20213
   { (exit 1); exit 1; }; }
 
20214
   fi
 
20215
 
 
20216
   test "$2" = conftest.file
 
20217
   )
 
20218
then
 
20219
   # Ok.
 
20220
   :
 
20221
else
 
20222
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
20223
Check your system clock" >&5
 
20224
$as_echo "$as_me: error: newly created file is older than distributed files!
 
20225
Check your system clock" >&2;}
 
20226
   { (exit 1); exit 1; }; }
 
20227
fi
 
20228
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
20229
$as_echo "yes" >&6; }
 
20230
LIBTOOL="$LIBTOOL --preserve-dup-deps"
 
20231
 
 
20232
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20233
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
20234
if test "${ac_cv_c_const+set}" = set; then
 
20235
  $as_echo_n "(cached) " >&6
 
20236
else
 
20237
  cat >conftest.$ac_ext <<_ACEOF
 
20238
/* confdefs.h.  */
 
20239
_ACEOF
 
20240
cat confdefs.h >>conftest.$ac_ext
 
20241
cat >>conftest.$ac_ext <<_ACEOF
 
20242
/* end confdefs.h.  */
 
20243
 
 
20244
int
 
20245
main ()
 
20246
{
 
20247
/* FIXME: Include the comments suggested by Paul. */
 
20248
#ifndef __cplusplus
 
20249
  /* Ultrix mips cc rejects this.  */
 
20250
  typedef int charset[2];
 
20251
  const charset cs;
 
20252
  /* SunOS 4.1.1 cc rejects this.  */
 
20253
  char const *const *pcpcc;
 
20254
  char **ppc;
 
20255
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20256
  struct point {int x, y;};
 
20257
  static struct point const zero = {0,0};
 
20258
  /* AIX XL C 1.02.0.0 rejects this.
 
20259
     It does not let you subtract one const X* pointer from another in
 
20260
     an arm of an if-expression whose if-part is not a constant
 
20261
     expression */
 
20262
  const char *g = "string";
 
20263
  pcpcc = &g + (g ? g-g : 0);
 
20264
  /* HPUX 7.0 cc rejects these. */
 
20265
  ++pcpcc;
 
20266
  ppc = (char**) pcpcc;
 
20267
  pcpcc = (char const *const *) ppc;
 
20268
  { /* SCO 3.2v4 cc rejects this.  */
 
20269
    char *t;
 
20270
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20271
 
 
20272
    *t++ = 0;
 
20273
    if (s) return 0;
 
20274
  }
 
20275
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20276
    int x[] = {25, 17};
 
20277
    const int *foo = &x[0];
 
20278
    ++foo;
 
20279
  }
 
20280
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20281
    typedef const int *iptr;
 
20282
    iptr p = 0;
 
20283
    ++p;
 
20284
  }
 
20285
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20286
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20287
    struct s { int j; const int *ap[3]; };
 
20288
    struct s *b; b->j = 5;
 
20289
  }
 
20290
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20291
    const int foo = 10;
 
20292
    if (!foo) return 0;
 
20293
  }
 
20294
  return !cs[0] && !zero.x;
 
20295
#endif
 
20296
 
 
20297
  ;
 
20298
  return 0;
 
20299
}
 
20300
_ACEOF
 
20301
rm -f conftest.$ac_objext
 
20302
if { (ac_try="$ac_compile"
 
20303
case "(($ac_try" in
 
20304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20305
  *) ac_try_echo=$ac_try;;
 
20306
esac
 
20307
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20308
$as_echo "$ac_try_echo") >&5
 
20309
  (eval "$ac_compile") 2>conftest.er1
 
20310
  ac_status=$?
 
20311
  grep -v '^ *+' conftest.er1 >conftest.err
 
20312
  rm -f conftest.er1
 
20313
  cat conftest.err >&5
 
20314
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20315
  (exit $ac_status); } && {
 
20316
         test -z "$ac_c_werror_flag" ||
 
20317
         test ! -s conftest.err
 
20318
       } && test -s conftest.$ac_objext; then
 
20319
  ac_cv_c_const=yes
 
20320
else
 
20321
  $as_echo "$as_me: failed program was:" >&5
 
20322
sed 's/^/| /' conftest.$ac_ext >&5
 
20323
 
 
20324
        ac_cv_c_const=no
 
20325
fi
 
20326
 
 
20327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20328
fi
 
20329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20330
$as_echo "$ac_cv_c_const" >&6; }
 
20331
if test $ac_cv_c_const = no; then
 
20332
 
 
20333
cat >>confdefs.h <<\_ACEOF
 
20334
#define const /**/
 
20335
_ACEOF
 
20336
 
 
20337
fi
 
20338
 
 
20339
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20340
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
20341
if test "${ac_cv_header_time+set}" = set; then
 
20342
  $as_echo_n "(cached) " >&6
 
20343
else
 
20344
  cat >conftest.$ac_ext <<_ACEOF
 
20345
/* confdefs.h.  */
 
20346
_ACEOF
 
20347
cat confdefs.h >>conftest.$ac_ext
 
20348
cat >>conftest.$ac_ext <<_ACEOF
 
20349
/* end confdefs.h.  */
 
20350
#include <sys/types.h>
 
20351
#include <sys/time.h>
 
20352
#include <time.h>
 
20353
 
 
20354
int
 
20355
main ()
 
20356
{
 
20357
if ((struct tm *) 0)
 
20358
return 0;
 
20359
  ;
 
20360
  return 0;
 
20361
}
 
20362
_ACEOF
 
20363
rm -f conftest.$ac_objext
 
20364
if { (ac_try="$ac_compile"
 
20365
case "(($ac_try" in
 
20366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20367
  *) ac_try_echo=$ac_try;;
 
20368
esac
 
20369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20370
$as_echo "$ac_try_echo") >&5
 
20371
  (eval "$ac_compile") 2>conftest.er1
 
20372
  ac_status=$?
 
20373
  grep -v '^ *+' conftest.er1 >conftest.err
 
20374
  rm -f conftest.er1
 
20375
  cat conftest.err >&5
 
20376
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20377
  (exit $ac_status); } && {
 
20378
         test -z "$ac_c_werror_flag" ||
 
20379
         test ! -s conftest.err
 
20380
       } && test -s conftest.$ac_objext; then
 
20381
  ac_cv_header_time=yes
 
20382
else
 
20383
  $as_echo "$as_me: failed program was:" >&5
 
20384
sed 's/^/| /' conftest.$ac_ext >&5
 
20385
 
 
20386
        ac_cv_header_time=no
 
20387
fi
 
20388
 
 
20389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20390
fi
 
20391
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20392
$as_echo "$ac_cv_header_time" >&6; }
 
20393
if test $ac_cv_header_time = yes; then
 
20394
 
 
20395
cat >>confdefs.h <<\_ACEOF
 
20396
#define TIME_WITH_SYS_TIME 1
 
20397
_ACEOF
 
20398
 
 
20399
fi
 
20400
 
 
20401
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
20402
$as_echo_n "checking for size_t... " >&6; }
 
20403
if test "${ac_cv_type_size_t+set}" = set; then
 
20404
  $as_echo_n "(cached) " >&6
 
20405
else
 
20406
  ac_cv_type_size_t=no
 
20407
cat >conftest.$ac_ext <<_ACEOF
 
20408
/* confdefs.h.  */
 
20409
_ACEOF
 
20410
cat confdefs.h >>conftest.$ac_ext
 
20411
cat >>conftest.$ac_ext <<_ACEOF
 
20412
/* end confdefs.h.  */
 
20413
$ac_includes_default
 
20414
int
 
20415
main ()
 
20416
{
 
20417
if (sizeof (size_t))
 
20418
       return 0;
 
20419
  ;
 
20420
  return 0;
 
20421
}
 
20422
_ACEOF
 
20423
rm -f conftest.$ac_objext
 
20424
if { (ac_try="$ac_compile"
 
20425
case "(($ac_try" in
 
20426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20427
  *) ac_try_echo=$ac_try;;
 
20428
esac
 
20429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20430
$as_echo "$ac_try_echo") >&5
 
20431
  (eval "$ac_compile") 2>conftest.er1
 
20432
  ac_status=$?
 
20433
  grep -v '^ *+' conftest.er1 >conftest.err
 
20434
  rm -f conftest.er1
 
20435
  cat conftest.err >&5
 
20436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20437
  (exit $ac_status); } && {
 
20438
         test -z "$ac_c_werror_flag" ||
 
20439
         test ! -s conftest.err
 
20440
       } && test -s conftest.$ac_objext; then
 
20441
  cat >conftest.$ac_ext <<_ACEOF
 
20442
/* confdefs.h.  */
 
20443
_ACEOF
 
20444
cat confdefs.h >>conftest.$ac_ext
 
20445
cat >>conftest.$ac_ext <<_ACEOF
 
20446
/* end confdefs.h.  */
 
20447
$ac_includes_default
 
20448
int
 
20449
main ()
 
20450
{
 
20451
if (sizeof ((size_t)))
 
20452
          return 0;
 
20453
  ;
 
20454
  return 0;
 
20455
}
 
20456
_ACEOF
 
20457
rm -f conftest.$ac_objext
 
20458
if { (ac_try="$ac_compile"
 
20459
case "(($ac_try" in
 
20460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20461
  *) ac_try_echo=$ac_try;;
 
20462
esac
 
20463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20464
$as_echo "$ac_try_echo") >&5
 
20465
  (eval "$ac_compile") 2>conftest.er1
 
20466
  ac_status=$?
 
20467
  grep -v '^ *+' conftest.er1 >conftest.err
 
20468
  rm -f conftest.er1
 
20469
  cat conftest.err >&5
 
20470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20471
  (exit $ac_status); } && {
 
20472
         test -z "$ac_c_werror_flag" ||
 
20473
         test ! -s conftest.err
 
20474
       } && test -s conftest.$ac_objext; then
 
20475
  :
 
20476
else
 
20477
  $as_echo "$as_me: failed program was:" >&5
 
20478
sed 's/^/| /' conftest.$ac_ext >&5
 
20479
 
 
20480
        ac_cv_type_size_t=yes
 
20481
fi
 
20482
 
 
20483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20484
else
 
20485
  $as_echo "$as_me: failed program was:" >&5
 
20486
sed 's/^/| /' conftest.$ac_ext >&5
 
20487
 
 
20488
 
 
20489
fi
 
20490
 
 
20491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20492
fi
 
20493
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
20494
$as_echo "$ac_cv_type_size_t" >&6; }
 
20495
if test "x$ac_cv_type_size_t" = x""yes; then
 
20496
  :
 
20497
else
 
20498
 
 
20499
cat >>confdefs.h <<_ACEOF
 
20500
#define size_t unsigned int
 
20501
_ACEOF
 
20502
 
 
20503
fi
 
20504
 
 
20505
{ $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
 
20506
$as_echo_n "checking for library containing getopt_long... " >&6; }
 
20507
if test "${ac_cv_search_getopt_long+set}" = set; then
 
20508
  $as_echo_n "(cached) " >&6
 
20509
else
 
20510
  ac_func_search_save_LIBS=$LIBS
 
20511
cat >conftest.$ac_ext <<_ACEOF
 
20512
/* confdefs.h.  */
 
20513
_ACEOF
 
20514
cat confdefs.h >>conftest.$ac_ext
 
20515
cat >>conftest.$ac_ext <<_ACEOF
 
20516
/* end confdefs.h.  */
 
20517
 
 
20518
/* Override any GCC internal prototype to avoid an error.
 
20519
   Use char because int might match the return type of a GCC
 
20520
   builtin and then its argument prototype would still apply.  */
 
20521
#ifdef __cplusplus
 
20522
extern "C"
 
20523
#endif
 
20524
char getopt_long ();
 
20525
int
 
20526
main ()
 
20527
{
 
20528
return getopt_long ();
 
20529
  ;
 
20530
  return 0;
 
20531
}
 
20532
_ACEOF
 
20533
for ac_lib in '' gnugetopt; do
 
20534
  if test -z "$ac_lib"; then
 
20535
    ac_res="none required"
 
20536
  else
 
20537
    ac_res=-l$ac_lib
 
20538
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20539
  fi
 
20540
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20541
if { (ac_try="$ac_link"
 
20542
case "(($ac_try" in
 
20543
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20544
  *) ac_try_echo=$ac_try;;
 
20545
esac
 
20546
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20547
$as_echo "$ac_try_echo") >&5
 
20548
  (eval "$ac_link") 2>conftest.er1
 
20549
  ac_status=$?
 
20550
  grep -v '^ *+' conftest.er1 >conftest.err
 
20551
  rm -f conftest.er1
 
20552
  cat conftest.err >&5
 
20553
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20554
  (exit $ac_status); } && {
 
20555
         test -z "$ac_c_werror_flag" ||
 
20556
         test ! -s conftest.err
 
20557
       } && test -s conftest$ac_exeext && {
 
20558
         test "$cross_compiling" = yes ||
 
20559
         $as_test_x conftest$ac_exeext
 
20560
       }; then
 
20561
  ac_cv_search_getopt_long=$ac_res
 
20562
else
 
20563
  $as_echo "$as_me: failed program was:" >&5
 
20564
sed 's/^/| /' conftest.$ac_ext >&5
 
20565
 
 
20566
 
 
20567
fi
 
20568
 
 
20569
rm -rf conftest.dSYM
 
20570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20571
      conftest$ac_exeext
 
20572
  if test "${ac_cv_search_getopt_long+set}" = set; then
 
20573
  break
 
20574
fi
 
20575
done
 
20576
if test "${ac_cv_search_getopt_long+set}" = set; then
 
20577
  :
 
20578
else
 
20579
  ac_cv_search_getopt_long=no
 
20580
fi
 
20581
rm conftest.$ac_ext
 
20582
LIBS=$ac_func_search_save_LIBS
 
20583
fi
 
20584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
 
20585
$as_echo "$ac_cv_search_getopt_long" >&6; }
 
20586
ac_res=$ac_cv_search_getopt_long
 
20587
if test "$ac_res" != no; then
 
20588
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20589
 
 
20590
fi
 
20591
 
 
20592
{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
 
20593
$as_echo_n "checking for library containing socket... " >&6; }
 
20594
if test "${ac_cv_search_socket+set}" = set; then
 
20595
  $as_echo_n "(cached) " >&6
 
20596
else
 
20597
  ac_func_search_save_LIBS=$LIBS
 
20598
cat >conftest.$ac_ext <<_ACEOF
 
20599
/* confdefs.h.  */
 
20600
_ACEOF
 
20601
cat confdefs.h >>conftest.$ac_ext
 
20602
cat >>conftest.$ac_ext <<_ACEOF
 
20603
/* end confdefs.h.  */
 
20604
 
 
20605
/* Override any GCC internal prototype to avoid an error.
 
20606
   Use char because int might match the return type of a GCC
 
20607
   builtin and then its argument prototype would still apply.  */
 
20608
#ifdef __cplusplus
 
20609
extern "C"
 
20610
#endif
 
20611
char socket ();
 
20612
int
 
20613
main ()
 
20614
{
 
20615
return socket ();
 
20616
  ;
 
20617
  return 0;
 
20618
}
 
20619
_ACEOF
 
20620
for ac_lib in '' socket; do
 
20621
  if test -z "$ac_lib"; then
 
20622
    ac_res="none required"
 
20623
  else
 
20624
    ac_res=-l$ac_lib
 
20625
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20626
  fi
 
20627
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20628
if { (ac_try="$ac_link"
 
20629
case "(($ac_try" in
 
20630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20631
  *) ac_try_echo=$ac_try;;
 
20632
esac
 
20633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20634
$as_echo "$ac_try_echo") >&5
 
20635
  (eval "$ac_link") 2>conftest.er1
 
20636
  ac_status=$?
 
20637
  grep -v '^ *+' conftest.er1 >conftest.err
 
20638
  rm -f conftest.er1
 
20639
  cat conftest.err >&5
 
20640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20641
  (exit $ac_status); } && {
 
20642
         test -z "$ac_c_werror_flag" ||
 
20643
         test ! -s conftest.err
 
20644
       } && test -s conftest$ac_exeext && {
 
20645
         test "$cross_compiling" = yes ||
 
20646
         $as_test_x conftest$ac_exeext
 
20647
       }; then
 
20648
  ac_cv_search_socket=$ac_res
 
20649
else
 
20650
  $as_echo "$as_me: failed program was:" >&5
 
20651
sed 's/^/| /' conftest.$ac_ext >&5
 
20652
 
 
20653
 
 
20654
fi
 
20655
 
 
20656
rm -rf conftest.dSYM
 
20657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20658
      conftest$ac_exeext
 
20659
  if test "${ac_cv_search_socket+set}" = set; then
 
20660
  break
 
20661
fi
 
20662
done
 
20663
if test "${ac_cv_search_socket+set}" = set; then
 
20664
  :
 
20665
else
 
20666
  ac_cv_search_socket=no
 
20667
fi
 
20668
rm conftest.$ac_ext
 
20669
LIBS=$ac_func_search_save_LIBS
 
20670
fi
 
20671
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
20672
$as_echo "$ac_cv_search_socket" >&6; }
 
20673
ac_res=$ac_cv_search_socket
 
20674
if test "$ac_res" != no; then
 
20675
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20676
 
 
20677
fi
 
20678
 
 
20679
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
20680
$as_echo_n "checking for library containing gethostbyname... " >&6; }
 
20681
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
20682
  $as_echo_n "(cached) " >&6
 
20683
else
 
20684
  ac_func_search_save_LIBS=$LIBS
 
20685
cat >conftest.$ac_ext <<_ACEOF
 
20686
/* confdefs.h.  */
 
20687
_ACEOF
 
20688
cat confdefs.h >>conftest.$ac_ext
 
20689
cat >>conftest.$ac_ext <<_ACEOF
 
20690
/* end confdefs.h.  */
 
20691
 
 
20692
/* Override any GCC internal prototype to avoid an error.
 
20693
   Use char because int might match the return type of a GCC
 
20694
   builtin and then its argument prototype would still apply.  */
 
20695
#ifdef __cplusplus
 
20696
extern "C"
 
20697
#endif
 
20698
char gethostbyname ();
 
20699
int
 
20700
main ()
 
20701
{
 
20702
return gethostbyname ();
 
20703
  ;
 
20704
  return 0;
 
20705
}
 
20706
_ACEOF
 
20707
for ac_lib in '' nsl; do
 
20708
  if test -z "$ac_lib"; then
 
20709
    ac_res="none required"
 
20710
  else
 
20711
    ac_res=-l$ac_lib
 
20712
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20713
  fi
 
20714
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20715
if { (ac_try="$ac_link"
 
20716
case "(($ac_try" in
 
20717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20718
  *) ac_try_echo=$ac_try;;
 
20719
esac
 
20720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20721
$as_echo "$ac_try_echo") >&5
 
20722
  (eval "$ac_link") 2>conftest.er1
 
20723
  ac_status=$?
 
20724
  grep -v '^ *+' conftest.er1 >conftest.err
 
20725
  rm -f conftest.er1
 
20726
  cat conftest.err >&5
 
20727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20728
  (exit $ac_status); } && {
 
20729
         test -z "$ac_c_werror_flag" ||
 
20730
         test ! -s conftest.err
 
20731
       } && test -s conftest$ac_exeext && {
 
20732
         test "$cross_compiling" = yes ||
 
20733
         $as_test_x conftest$ac_exeext
 
20734
       }; then
 
20735
  ac_cv_search_gethostbyname=$ac_res
 
20736
else
 
20737
  $as_echo "$as_me: failed program was:" >&5
 
20738
sed 's/^/| /' conftest.$ac_ext >&5
 
20739
 
 
20740
 
 
20741
fi
 
20742
 
 
20743
rm -rf conftest.dSYM
 
20744
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20745
      conftest$ac_exeext
 
20746
  if test "${ac_cv_search_gethostbyname+set}" = set; then
 
20747
  break
 
20748
fi
 
20749
done
 
20750
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
20751
  :
 
20752
else
 
20753
  ac_cv_search_gethostbyname=no
 
20754
fi
 
20755
rm conftest.$ac_ext
 
20756
LIBS=$ac_func_search_save_LIBS
 
20757
fi
 
20758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
20759
$as_echo "$ac_cv_search_gethostbyname" >&6; }
 
20760
ac_res=$ac_cv_search_gethostbyname
 
20761
if test "$ac_res" != no; then
 
20762
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20763
 
 
20764
fi
 
20765
 
 
20766
 
 
20767
# Extract the first word of "pod2man", so it can be a program name with args.
 
20768
set dummy pod2man; ac_word=$2
 
20769
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20770
$as_echo_n "checking for $ac_word... " >&6; }
 
20771
if test "${ac_cv_path_POD2MAN+set}" = set; then
 
20772
  $as_echo_n "(cached) " >&6
 
20773
else
 
20774
  case $POD2MAN in
 
20775
  [\\/]* | ?:[\\/]*)
 
20776
  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
 
20777
  ;;
 
20778
  *)
 
20779
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20780
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
20781
for as_dir in $as_dummy
 
20782
do
 
20783
  IFS=$as_save_IFS
 
20784
  test -z "$as_dir" && as_dir=.
 
20785
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20786
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20787
    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
 
20788
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20789
    break 2
 
20790
  fi
 
20791
done
 
20792
done
 
20793
IFS=$as_save_IFS
 
20794
 
 
20795
  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN=""no""
 
20796
  ;;
 
20797
esac
 
20798
fi
 
20799
POD2MAN=$ac_cv_path_POD2MAN
 
20800
if test -n "$POD2MAN"; then
 
20801
  { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
 
20802
$as_echo "$POD2MAN" >&6; }
 
20803
else
 
20804
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20805
$as_echo "no" >&6; }
 
20806
fi
 
20807
 
 
20808
 
 
20809
if test "x$POD2MAN" == "xno"; then
 
20810
  { { $as_echo "$as_me:$LINENO: error: \"Could not find pod2man anywhere in path\"" >&5
 
20811
$as_echo "$as_me: error: \"Could not find pod2man anywhere in path\"" >&2;}
 
20812
   { (exit 1); exit 1; }; }
 
20813
fi
 
20814
 
 
20815
 
 
20816
# Check whether --enable-debug was given.
 
20817
if test "${enable_debug+set}" = set; then
 
20818
  enableval=$enable_debug;
 
20819
 
 
20820
cat >>confdefs.h <<\_ACEOF
 
20821
#define HAVE_DEBUG 1
 
20822
_ACEOF
 
20823
 
 
20824
      for ac_prog in debug
 
20825
do
 
20826
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20827
set dummy $ac_prog; ac_word=$2
 
20828
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20829
$as_echo_n "checking for $ac_word... " >&6; }
 
20830
if test "${ac_cv_prog_DEBUG+set}" = set; then
 
20831
  $as_echo_n "(cached) " >&6
 
20832
else
 
20833
  if test -n "$DEBUG"; then
 
20834
  ac_cv_prog_DEBUG="$DEBUG" # Let the user override the test.
 
20835
else
 
20836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20837
for as_dir in $PATH
 
20838
do
 
20839
  IFS=$as_save_IFS
 
20840
  test -z "$as_dir" && as_dir=.
 
20841
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20843
    ac_cv_prog_DEBUG="$ac_prog"
 
20844
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20845
    break 2
 
20846
  fi
 
20847
done
 
20848
done
 
20849
IFS=$as_save_IFS
 
20850
 
 
20851
fi
 
20852
fi
 
20853
DEBUG=$ac_cv_prog_DEBUG
 
20854
if test -n "$DEBUG"; then
 
20855
  { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
 
20856
$as_echo "$DEBUG" >&6; }
 
20857
else
 
20858
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20859
$as_echo "no" >&6; }
 
20860
fi
 
20861
 
 
20862
 
 
20863
  test -n "$DEBUG" && break
 
20864
done
 
20865
 
 
20866
      ENABLE_DEBUG="yes"
 
20867
 
 
20868
 
 
20869
 
 
20870
else
 
20871
 
 
20872
      ENABLE_DEBUG="no"
 
20873
 
 
20874
 
 
20875
fi
 
20876
 
 
20877
 if  test "$ENABLE_DEBUG" = "yes" ; then
 
20878
  HAVE_DEBUG_TRUE=
 
20879
  HAVE_DEBUG_FALSE='#'
 
20880
else
 
20881
  HAVE_DEBUG_TRUE='#'
 
20882
  HAVE_DEBUG_FALSE=
 
20883
fi
 
20884
 
 
20885
 
 
20886
# Check whether --enable-dtrace was given.
 
20887
if test "${enable_dtrace+set}" = set; then
 
20888
  enableval=$enable_dtrace;
 
20889
    # Extract the first word of "dtrace", so it can be a program name with args.
 
20890
set dummy dtrace; ac_word=$2
 
20891
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20892
$as_echo_n "checking for $ac_word... " >&6; }
 
20893
if test "${ac_cv_path_DTRACE+set}" = set; then
 
20894
  $as_echo_n "(cached) " >&6
 
20895
else
 
20896
  case $DTRACE in
 
20897
  [\\/]* | ?:[\\/]*)
 
20898
  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
 
20899
  ;;
 
20900
  *)
 
20901
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20902
as_dummy="/usr/sbin:$PATH"
 
20903
for as_dir in $as_dummy
 
20904
do
 
20905
  IFS=$as_save_IFS
 
20906
  test -z "$as_dir" && as_dir=.
 
20907
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20909
    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
 
20910
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20911
    break 2
 
20912
  fi
 
20913
done
 
20914
done
 
20915
IFS=$as_save_IFS
 
20916
 
 
20917
  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE=""no""
 
20918
  ;;
 
20919
esac
 
20920
fi
 
20921
DTRACE=$ac_cv_path_DTRACE
 
20922
if test -n "$DTRACE"; then
 
20923
  { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
 
20924
$as_echo "$DTRACE" >&6; }
 
20925
else
 
20926
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20927
$as_echo "no" >&6; }
 
20928
fi
 
20929
 
 
20930
 
 
20931
    if test "x$DTRACE" != "xno"; then
 
20932
 
 
20933
cat >>confdefs.h <<\_ACEOF
 
20934
#define HAVE_DTRACE 1
 
20935
_ACEOF
 
20936
 
 
20937
      DTRACE_HEADER=dtrace_probes.h
 
20938
 
 
20939
      # DTrace on MacOSX does not use -G option
 
20940
      $DTRACE -G -o conftest.$$ -s libmemcached/libmemcached_probes.d 2>/dev/zero
 
20941
      if test $? -eq 0
 
20942
      then
 
20943
        DTRACE_OBJ=libmemcached_probes.lo
 
20944
        rm conftest.$$
 
20945
      fi
 
20946
 
 
20947
      ENABLE_DTRACE="yes"
 
20948
 
 
20949
    else
 
20950
      { { $as_echo "$as_me:$LINENO: error: Need dtrace binary and OS support." >&5
 
20951
$as_echo "$as_me: error: Need dtrace binary and OS support." >&2;}
 
20952
   { (exit 1); exit 1; }; }
 
20953
    fi
 
20954
 
 
20955
else
 
20956
 
 
20957
      ENABLE_DTRACE="no"
 
20958
 
 
20959
 
 
20960
fi
 
20961
 
 
20962
 
 
20963
 
 
20964
 
 
20965
 
 
20966
 if  test "$ENABLE_DTRACE" = "yes" ; then
 
20967
  HAVE_DTRACE_TRUE=
 
20968
  HAVE_DTRACE_FALSE='#'
 
20969
else
 
20970
  HAVE_DTRACE_TRUE='#'
 
20971
  HAVE_DTRACE_FALSE=
 
20972
fi
 
20973
 
 
20974
 
 
20975
 
 
20976
 
 
20977
 
 
20978
    { $as_echo "$as_me:$LINENO: checking for htonll" >&5
 
20979
$as_echo_n "checking for htonll... " >&6; }
 
20980
    have_htoll="no"
 
20981
    if test "$cross_compiling" = yes; then
 
20982
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
20983
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20984
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20985
See \`config.log' for more details." >&5
 
20986
$as_echo "$as_me: error: cannot run test program while cross compiling
 
20987
See \`config.log' for more details." >&2;}
 
20988
   { (exit 1); exit 1; }; }; }
 
20989
else
 
20990
  cat >conftest.$ac_ext <<_ACEOF
 
20991
 
 
20992
       /* confdefs.h.  */
 
20993
_ACEOF
 
20994
cat confdefs.h >>conftest.$ac_ext
 
20995
cat >>conftest.$ac_ext <<_ACEOF
 
20996
/* end confdefs.h.  */
 
20997
 
 
20998
#include <sys/types.h>
 
20999
#include <netinet/in.h>
 
21000
#include <inttypes.h>
 
21001
 
 
21002
int
 
21003
main ()
 
21004
{
 
21005
 
 
21006
          return htonll(0);
 
21007
 
 
21008
  ;
 
21009
  return 0;
 
21010
}
 
21011
 
 
21012
_ACEOF
 
21013
rm -f conftest$ac_exeext
 
21014
if { (ac_try="$ac_link"
 
21015
case "(($ac_try" in
 
21016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21017
  *) ac_try_echo=$ac_try;;
 
21018
esac
 
21019
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21020
$as_echo "$ac_try_echo") >&5
 
21021
  (eval "$ac_link") 2>&5
 
21022
  ac_status=$?
 
21023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21024
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21025
  { (case "(($ac_try" in
 
21026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21027
  *) ac_try_echo=$ac_try;;
 
21028
esac
 
21029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21030
$as_echo "$ac_try_echo") >&5
 
21031
  (eval "$ac_try") 2>&5
 
21032
  ac_status=$?
 
21033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21034
  (exit $ac_status); }; }; then
 
21035
 
 
21036
      have_htoll="yes"
 
21037
 
 
21038
cat >>confdefs.h <<\_ACEOF
 
21039
#define HAVE_HTONLL 1
 
21040
_ACEOF
 
21041
 
 
21042
 
 
21043
else
 
21044
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21045
$as_echo "$as_me: failed program was:" >&5
 
21046
sed 's/^/| /' conftest.$ac_ext >&5
 
21047
 
 
21048
fi
 
21049
rm -rf conftest.dSYM
 
21050
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21051
fi
 
21052
 
 
21053
 
 
21054
 
 
21055
    { $as_echo "$as_me:$LINENO: result: $have_htoll" >&5
 
21056
$as_echo "$have_htoll" >&6; }
 
21057
     if test "x$have_htoll" == "xno"; then
 
21058
  BUILD_BYTEORDER_TRUE=
 
21059
  BUILD_BYTEORDER_FALSE='#'
 
21060
else
 
21061
  BUILD_BYTEORDER_TRUE='#'
 
21062
  BUILD_BYTEORDER_FALSE=
 
21063
fi
 
21064
 
 
21065
    { $as_echo "$as_me:$LINENO: checking byteorder" >&5
 
21066
$as_echo_n "checking byteorder... " >&6; }
 
21067
    have_htoll="no"
 
21068
    if test "$cross_compiling" = yes; then
 
21069
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21070
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21071
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21072
See \`config.log' for more details." >&5
 
21073
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21074
See \`config.log' for more details." >&2;}
 
21075
   { (exit 1); exit 1; }; }; }
 
21076
else
 
21077
  cat >conftest.$ac_ext <<_ACEOF
 
21078
 
 
21079
       /* confdefs.h.  */
 
21080
_ACEOF
 
21081
cat confdefs.h >>conftest.$ac_ext
 
21082
cat >>conftest.$ac_ext <<_ACEOF
 
21083
/* end confdefs.h.  */
 
21084
 
 
21085
#include <sys/types.h>
 
21086
#include <netinet/in.h>
 
21087
#include <inttypes.h>
 
21088
 
 
21089
int
 
21090
main ()
 
21091
{
 
21092
 
 
21093
if (htonl(5) != 5) {
 
21094
   return 1;
 
21095
}
 
21096
 
 
21097
  ;
 
21098
  return 0;
 
21099
}
 
21100
 
 
21101
_ACEOF
 
21102
rm -f conftest$ac_exeext
 
21103
if { (ac_try="$ac_link"
 
21104
case "(($ac_try" in
 
21105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21106
  *) ac_try_echo=$ac_try;;
 
21107
esac
 
21108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21109
$as_echo "$ac_try_echo") >&5
 
21110
  (eval "$ac_link") 2>&5
 
21111
  ac_status=$?
 
21112
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21113
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21114
  { (case "(($ac_try" in
 
21115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21116
  *) ac_try_echo=$ac_try;;
 
21117
esac
 
21118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21119
$as_echo "$ac_try_echo") >&5
 
21120
  (eval "$ac_try") 2>&5
 
21121
  ac_status=$?
 
21122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21123
  (exit $ac_status); }; }; then
 
21124
 
 
21125
       { $as_echo "$as_me:$LINENO: result: big endian" >&5
 
21126
$as_echo "big endian" >&6; }
 
21127
 
 
21128
cat >>confdefs.h <<\_ACEOF
 
21129
#define BYTEORDER_BIG_ENDIAN 1
 
21130
_ACEOF
 
21131
 
 
21132
 
 
21133
else
 
21134
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21135
$as_echo "$as_me: failed program was:" >&5
 
21136
sed 's/^/| /' conftest.$ac_ext >&5
 
21137
 
 
21138
( exit $ac_status )
 
21139
 
 
21140
       { $as_echo "$as_me:$LINENO: result: little endian" >&5
 
21141
$as_echo "little endian" >&6; }
 
21142
 
 
21143
cat >>confdefs.h <<\_ACEOF
 
21144
#define BYTEORDER_LITTLE_ENDIAN 1
 
21145
_ACEOF
 
21146
 
 
21147
 
 
21148
fi
 
21149
rm -rf conftest.dSYM
 
21150
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21151
fi
 
21152
 
 
21153
 
 
21154
 
 
21155
 
 
21156
# Check whether --enable-64bit was given.
 
21157
if test "${enable_64bit+set}" = set; then
 
21158
  enableval=$enable_64bit;
 
21159
       org_cflags=$CFLAGS
 
21160
       CFLAGS=-m64
 
21161
       ac_ext=c
 
21162
ac_cpp='$CPP $CPPFLAGS'
 
21163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21166
 
 
21167
       if test "$cross_compiling" = yes; then
 
21168
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21170
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21171
See \`config.log' for more details." >&5
 
21172
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21173
See \`config.log' for more details." >&2;}
 
21174
   { (exit 1); exit 1; }; }; }
 
21175
else
 
21176
  cat >conftest.$ac_ext <<_ACEOF
 
21177
 
 
21178
            /* confdefs.h.  */
 
21179
_ACEOF
 
21180
cat confdefs.h >>conftest.$ac_ext
 
21181
cat >>conftest.$ac_ext <<_ACEOF
 
21182
/* end confdefs.h.  */
 
21183
 
 
21184
int
 
21185
main ()
 
21186
{
 
21187
 if (sizeof(void*) != 8) return 1;
 
21188
  ;
 
21189
  return 0;
 
21190
}
 
21191
 
 
21192
_ACEOF
 
21193
rm -f conftest$ac_exeext
 
21194
if { (ac_try="$ac_link"
 
21195
case "(($ac_try" in
 
21196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21197
  *) ac_try_echo=$ac_try;;
 
21198
esac
 
21199
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21200
$as_echo "$ac_try_echo") >&5
 
21201
  (eval "$ac_link") 2>&5
 
21202
  ac_status=$?
 
21203
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21204
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21205
  { (case "(($ac_try" in
 
21206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21207
  *) ac_try_echo=$ac_try;;
 
21208
esac
 
21209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21210
$as_echo "$ac_try_echo") >&5
 
21211
  (eval "$ac_try") 2>&5
 
21212
  ac_status=$?
 
21213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21214
  (exit $ac_status); }; }; then
 
21215
 
 
21216
            CFLAGS="$CFLAGS $org_cflags"
 
21217
 
 
21218
else
 
21219
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21220
$as_echo "$as_me: failed program was:" >&5
 
21221
sed 's/^/| /' conftest.$ac_ext >&5
 
21222
 
 
21223
( exit $ac_status )
 
21224
 
 
21225
            { { $as_echo "$as_me:$LINENO: error: Don't know how to build a 64-bit object." >&5
 
21226
$as_echo "$as_me: error: Don't know how to build a 64-bit object." >&2;}
 
21227
   { (exit 1); exit 1; }; }
 
21228
 
 
21229
fi
 
21230
rm -rf conftest.dSYM
 
21231
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21232
fi
 
21233
 
 
21234
 
 
21235
       org_cxxflags=$CXXFLAGS
 
21236
       CXXFLAGS=-m64
 
21237
       ac_ext=cpp
 
21238
ac_cpp='$CXXCPP $CPPFLAGS'
 
21239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21242
 
 
21243
       if test "$cross_compiling" = yes; then
 
21244
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21245
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21246
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21247
See \`config.log' for more details." >&5
 
21248
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21249
See \`config.log' for more details." >&2;}
 
21250
   { (exit 1); exit 1; }; }; }
 
21251
else
 
21252
  cat >conftest.$ac_ext <<_ACEOF
 
21253
 
 
21254
            /* confdefs.h.  */
 
21255
_ACEOF
 
21256
cat confdefs.h >>conftest.$ac_ext
 
21257
cat >>conftest.$ac_ext <<_ACEOF
 
21258
/* end confdefs.h.  */
 
21259
 
 
21260
int
 
21261
main ()
 
21262
{
 
21263
 if (sizeof(void*) != 8) return 1;
 
21264
  ;
 
21265
  return 0;
 
21266
}
 
21267
 
 
21268
_ACEOF
 
21269
rm -f conftest$ac_exeext
 
21270
if { (ac_try="$ac_link"
 
21271
case "(($ac_try" in
 
21272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21273
  *) ac_try_echo=$ac_try;;
 
21274
esac
 
21275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21276
$as_echo "$ac_try_echo") >&5
 
21277
  (eval "$ac_link") 2>&5
 
21278
  ac_status=$?
 
21279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21280
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21281
  { (case "(($ac_try" in
 
21282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21283
  *) ac_try_echo=$ac_try;;
 
21284
esac
 
21285
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21286
$as_echo "$ac_try_echo") >&5
 
21287
  (eval "$ac_try") 2>&5
 
21288
  ac_status=$?
 
21289
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21290
  (exit $ac_status); }; }; then
 
21291
 
 
21292
            CXXFLAGS="$CXXFLAGS $org_cxxflags"
 
21293
 
 
21294
else
 
21295
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21296
$as_echo "$as_me: failed program was:" >&5
 
21297
sed 's/^/| /' conftest.$ac_ext >&5
 
21298
 
 
21299
( exit $ac_status )
 
21300
 
 
21301
            { { $as_echo "$as_me:$LINENO: error: Don't know how to build a 64-bit object." >&5
 
21302
$as_echo "$as_me: error: Don't know how to build a 64-bit object." >&2;}
 
21303
   { (exit 1); exit 1; }; }
 
21304
 
 
21305
fi
 
21306
rm -rf conftest.dSYM
 
21307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21308
fi
 
21309
 
 
21310
 
 
21311
 
 
21312
 
 
21313
fi
 
21314
 
 
21315
 
 
21316
if test "$cross_compiling" = yes; then
 
21317
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21318
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21319
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21320
See \`config.log' for more details." >&5
 
21321
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21322
See \`config.log' for more details." >&2;}
 
21323
   { (exit 1); exit 1; }; }; }
 
21324
else
 
21325
  cat >conftest.$ac_ext <<_ACEOF
 
21326
 
 
21327
   /* confdefs.h.  */
 
21328
_ACEOF
 
21329
cat confdefs.h >>conftest.$ac_ext
 
21330
cat >>conftest.$ac_ext <<_ACEOF
 
21331
/* end confdefs.h.  */
 
21332
 
 
21333
      #include "libmemcached/memcached/protocol_binary.h"
 
21334
 
 
21335
int
 
21336
main ()
 
21337
{
 
21338
 
 
21339
      protocol_binary_request_set request;
 
21340
      if (sizeof(request) != sizeof(request.bytes)) {
 
21341
         return 1;
 
21342
      }
 
21343
 
 
21344
  ;
 
21345
  return 0;
 
21346
}
 
21347
 
 
21348
_ACEOF
 
21349
rm -f conftest$ac_exeext
 
21350
if { (ac_try="$ac_link"
 
21351
case "(($ac_try" in
 
21352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21353
  *) ac_try_echo=$ac_try;;
 
21354
esac
 
21355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21356
$as_echo "$ac_try_echo") >&5
 
21357
  (eval "$ac_link") 2>&5
 
21358
  ac_status=$?
 
21359
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21360
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21361
  { (case "(($ac_try" in
 
21362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21363
  *) ac_try_echo=$ac_try;;
 
21364
esac
 
21365
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21366
$as_echo "$ac_try_echo") >&5
 
21367
  (eval "$ac_try") 2>&5
 
21368
  ac_status=$?
 
21369
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21370
  (exit $ac_status); }; }; then
 
21371
  :
 
21372
else
 
21373
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21374
$as_echo "$as_me: failed program was:" >&5
 
21375
sed 's/^/| /' conftest.$ac_ext >&5
 
21376
 
 
21377
( exit $ac_status )
 
21378
{ { $as_echo "$as_me:$LINENO: error: Unsupported struct padding done by compiler." >&5
 
21379
$as_echo "$as_me: error: Unsupported struct padding done by compiler." >&2;}
 
21380
   { (exit 1); exit 1; }; }
 
21381
fi
 
21382
rm -rf conftest.dSYM
 
21383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21384
fi
 
21385
 
 
21386
 
 
21387
 
 
21388
 
 
21389
 
 
21390
# Check whether --with-memcached was given.
 
21391
if test "${with_memcached+set}" = set; then
 
21392
  withval=$with_memcached;
 
21393
  if test -n "$withval"
 
21394
  then
 
21395
    MEMC_BINARY="$withval"
 
21396
  fi
 
21397
 
 
21398
  if test x$withval == xyes
 
21399
  then
 
21400
    MEMC_BINARY=memcached
 
21401
  fi
 
21402
 
 
21403
  # just ignore the user if --without-memcached is passed.. it is
 
21404
  # only used by make test
 
21405
  if test x$withval == xno
 
21406
  then
 
21407
    MEMC_BINARY=memcached
 
21408
  fi
 
21409
 
 
21410
else
 
21411
 
 
21412
   # Extract the first word of "memcached", so it can be a program name with args.
 
21413
set dummy memcached; ac_word=$2
 
21414
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21415
$as_echo_n "checking for $ac_word... " >&6; }
 
21416
if test "${ac_cv_path_MEMC_BINARY+set}" = set; then
 
21417
  $as_echo_n "(cached) " >&6
 
21418
else
 
21419
  case $MEMC_BINARY in
 
21420
  [\\/]* | ?:[\\/]*)
 
21421
  ac_cv_path_MEMC_BINARY="$MEMC_BINARY" # Let the user override the test with a path.
 
21422
  ;;
 
21423
  *)
 
21424
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21425
for as_dir in $PATH
 
21426
do
 
21427
  IFS=$as_save_IFS
 
21428
  test -z "$as_dir" && as_dir=.
 
21429
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21430
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21431
    ac_cv_path_MEMC_BINARY="$as_dir/$ac_word$ac_exec_ext"
 
21432
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21433
    break 2
 
21434
  fi
 
21435
done
 
21436
done
 
21437
IFS=$as_save_IFS
 
21438
 
 
21439
  test -z "$ac_cv_path_MEMC_BINARY" && ac_cv_path_MEMC_BINARY=""no""
 
21440
  ;;
 
21441
esac
 
21442
fi
 
21443
MEMC_BINARY=$ac_cv_path_MEMC_BINARY
 
21444
if test -n "$MEMC_BINARY"; then
 
21445
  { $as_echo "$as_me:$LINENO: result: $MEMC_BINARY" >&5
 
21446
$as_echo "$MEMC_BINARY" >&6; }
 
21447
else
 
21448
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
21449
$as_echo "no" >&6; }
 
21450
fi
 
21451
 
 
21452
 
 
21453
 
 
21454
fi
 
21455
 
 
21456
 
 
21457
if test x$MEMC_BINARY == "xno"
 
21458
then
 
21459
  { { $as_echo "$as_me:$LINENO: error: \"could not find memcached binary\"" >&5
 
21460
$as_echo "$as_me: error: \"could not find memcached binary\"" >&2;}
 
21461
   { (exit 1); exit 1; }; }
 
21462
fi
 
21463
 
 
21464
 
 
21465
cat >>confdefs.h <<_ACEOF
 
21466
#define MEMCACHED_BINARY "$MEMC_BINARY"
 
21467
_ACEOF
 
21468
 
 
21469
 
 
21470
ac_ext=c
 
21471
ac_cpp='$CPP $CPPFLAGS'
 
21472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21475
 
 
21476
if test "$cross_compiling" = yes; then
 
21477
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21478
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21479
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21480
See \`config.log' for more details." >&5
 
21481
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21482
See \`config.log' for more details." >&2;}
 
21483
   { (exit 1); exit 1; }; }; }
 
21484
else
 
21485
  cat >conftest.$ac_ext <<_ACEOF
 
21486
 
 
21487
   /* confdefs.h.  */
 
21488
_ACEOF
 
21489
cat confdefs.h >>conftest.$ac_ext
 
21490
cat >>conftest.$ac_ext <<_ACEOF
 
21491
/* end confdefs.h.  */
 
21492
 
 
21493
#include <sys/types.h>
 
21494
#include <sys/socket.h>
 
21495
#include <time.h>
 
21496
#include <sys/time.h>
 
21497
#include <errno.h>
 
21498
 
 
21499
int
 
21500
main ()
 
21501
{
 
21502
 
 
21503
     int sock = socket(AF_INET, SOCK_STREAM, 0);
 
21504
     struct timeval waittime;
 
21505
 
 
21506
     waittime.tv_sec= 0;
 
21507
     waittime.tv_usec= 500;
 
21508
 
 
21509
     if (setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO,
 
21510
                    &waittime, (socklen_t)sizeof(struct timeval)) == -1) {
 
21511
       if (errno == ENOPROTOOPT) {
 
21512
         return 1;
 
21513
       }
 
21514
     }
 
21515
     return 0;
 
21516
 
 
21517
  ;
 
21518
  return 0;
 
21519
}
 
21520
 
 
21521
_ACEOF
 
21522
rm -f conftest$ac_exeext
 
21523
if { (ac_try="$ac_link"
 
21524
case "(($ac_try" in
 
21525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21526
  *) ac_try_echo=$ac_try;;
 
21527
esac
 
21528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21529
$as_echo "$ac_try_echo") >&5
 
21530
  (eval "$ac_link") 2>&5
 
21531
  ac_status=$?
 
21532
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21533
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21534
  { (case "(($ac_try" in
 
21535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21536
  *) ac_try_echo=$ac_try;;
 
21537
esac
 
21538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21539
$as_echo "$ac_try_echo") >&5
 
21540
  (eval "$ac_try") 2>&5
 
21541
  ac_status=$?
 
21542
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21543
  (exit $ac_status); }; }; then
 
21544
 
 
21545
cat >>confdefs.h <<\_ACEOF
 
21546
#define HAVE_SNDTIMEO 1
 
21547
_ACEOF
 
21548
 
 
21549
else
 
21550
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21551
$as_echo "$as_me: failed program was:" >&5
 
21552
sed 's/^/| /' conftest.$ac_ext >&5
 
21553
 
 
21554
fi
 
21555
rm -rf conftest.dSYM
 
21556
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21557
fi
 
21558
 
 
21559
 
 
21560
 
 
21561
if test "$cross_compiling" = yes; then
 
21562
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21563
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21564
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21565
See \`config.log' for more details." >&5
 
21566
$as_echo "$as_me: error: cannot run test program while cross compiling
 
21567
See \`config.log' for more details." >&2;}
 
21568
   { (exit 1); exit 1; }; }; }
 
21569
else
 
21570
  cat >conftest.$ac_ext <<_ACEOF
 
21571
 
 
21572
   /* confdefs.h.  */
 
21573
_ACEOF
 
21574
cat confdefs.h >>conftest.$ac_ext
 
21575
cat >>conftest.$ac_ext <<_ACEOF
 
21576
/* end confdefs.h.  */
 
21577
 
 
21578
#include <sys/types.h>
 
21579
#include <sys/socket.h>
 
21580
#include <time.h>
 
21581
#include <sys/time.h>
 
21582
#include <errno.h>
 
21583
 
 
21584
int
 
21585
main ()
 
21586
{
 
21587
 
 
21588
     int sock = socket(AF_INET, SOCK_STREAM, 0);
 
21589
     struct timeval waittime;
 
21590
 
 
21591
     waittime.tv_sec= 0;
 
21592
     waittime.tv_usec= 500;
 
21593
 
 
21594
     if (setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
 
21595
                    &waittime, (socklen_t)sizeof(struct timeval)) == -1) {
 
21596
       if (errno == ENOPROTOOPT) {
 
21597
         return 1;
 
21598
       }
 
21599
     }
 
21600
     return 0;
 
21601
 
 
21602
  ;
 
21603
  return 0;
 
21604
}
 
21605
 
 
21606
_ACEOF
 
21607
rm -f conftest$ac_exeext
 
21608
if { (ac_try="$ac_link"
 
21609
case "(($ac_try" in
 
21610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21611
  *) ac_try_echo=$ac_try;;
 
21612
esac
 
21613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21614
$as_echo "$ac_try_echo") >&5
 
21615
  (eval "$ac_link") 2>&5
 
21616
  ac_status=$?
 
21617
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21618
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21619
  { (case "(($ac_try" in
 
21620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21621
  *) ac_try_echo=$ac_try;;
 
21622
esac
 
21623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21624
$as_echo "$ac_try_echo") >&5
 
21625
  (eval "$ac_try") 2>&5
 
21626
  ac_status=$?
 
21627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21628
  (exit $ac_status); }; }; then
 
21629
 
 
21630
cat >>confdefs.h <<\_ACEOF
 
21631
#define HAVE_RCVTIMEO 1
 
21632
_ACEOF
 
21633
 
 
21634
else
 
21635
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21636
$as_echo "$as_me: failed program was:" >&5
 
21637
sed 's/^/| /' conftest.$ac_ext >&5
 
21638
 
 
21639
fi
 
21640
rm -rf conftest.dSYM
 
21641
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21642
fi
 
21643
 
 
21644
 
 
21645
 
 
21646
 
 
21647
 
 
21648
# We only support GCC and Sun's forte at the moment
 
21649
if test "$GCC" = "yes"
 
21650
then
 
21651
  #CFLAGS="-W -std=iso9899:1999 -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 $CFLAGS"
 
21652
  CFLAGS="-Wall -O3 $CFLAGS"
 
21653
 
 
21654
  if test "$ENABLE_DEBUG" = "yes"
 
21655
  then
 
21656
    CFLAGS="$CFLAGS -ggdb -DHAVE_DEBUG"
 
21657
  fi
 
21658
else
 
21659
  CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -errfmt=error -errwarn -errshort=tags $CFLAGS"
 
21660
  CXXFLAGS="+w +w2 -xwe -mt -D_FORTEC_ $CXXFLAGS"
 
21661
  if test "$ENABLE_DEBUG" = "yes"
 
21662
  then
 
21663
    CFLAGS="$CFLAGS -DHAVE_DEBUG"
 
21664
    CXXFLAGS="$CXXFLAGS -DHAVE_DEBUG"
 
21665
  fi
 
21666
fi
 
21667
 
 
21668
LDFLAGS="-lm"
 
21669
 
 
21670
ac_config_files="$ac_config_files Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec"
 
21671
 
 
21672
cat >confcache <<\_ACEOF
 
21673
# This file is a shell script that caches the results of configure
 
21674
# tests run on this system so they can be shared between configure
 
21675
# scripts and configure runs, see configure's option --config-cache.
 
21676
# It is not useful on other systems.  If it contains results you don't
 
21677
# want to keep, you may remove or edit it.
 
21678
#
 
21679
# config.status only pays attention to the cache file if you give it
 
21680
# the --recheck option to rerun configure.
 
21681
#
 
21682
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21683
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21684
# following values.
 
21685
 
 
21686
_ACEOF
 
21687
 
 
21688
# The following way of writing the cache mishandles newlines in values,
 
21689
# but we know of no workaround that is simple, portable, and efficient.
 
21690
# So, we kill variables containing newlines.
 
21691
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21692
# and sets the high bit in the cache file unless we assign to the vars.
 
21693
(
 
21694
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21695
    eval ac_val=\$$ac_var
 
21696
    case $ac_val in #(
 
21697
    *${as_nl}*)
 
21698
      case $ac_var in #(
 
21699
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
21700
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
21701
      esac
 
21702
      case $ac_var in #(
 
21703
      _ | IFS | as_nl) ;; #(
 
21704
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
21705
      *) $as_unset $ac_var ;;
 
21706
      esac ;;
 
21707
    esac
 
21708
  done
 
21709
 
 
21710
  (set) 2>&1 |
 
21711
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21712
    *${as_nl}ac_space=\ *)
 
21713
      # `set' does not quote correctly, so add quotes (double-quote
 
21714
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21715
      sed -n \
 
21716
        "s/'/'\\\\''/g;
 
21717
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21718
      ;; #(
 
21719
    *)
 
21720
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21721
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
21722
      ;;
 
21723
    esac |
 
21724
    sort
 
21725
) |
 
21726
  sed '
 
21727
     /^ac_cv_env_/b end
 
21728
     t clear
 
21729
     :clear
 
21730
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21731
     t end
 
21732
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21733
     :end' >>confcache
 
21734
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21735
  if test -w "$cache_file"; then
 
21736
    test "x$cache_file" != "x/dev/null" &&
 
21737
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
21738
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
21739
    cat confcache >$cache_file
 
21740
  else
 
21741
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
21742
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
21743
  fi
 
21744
fi
 
21745
rm -f confcache
 
21746
 
 
21747
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21748
# Let make expand exec_prefix.
 
21749
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21750
 
 
21751
DEFS=-DHAVE_CONFIG_H
 
21752
 
 
21753
ac_libobjs=
 
21754
ac_ltlibobjs=
 
21755
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21756
  # 1. Remove the extension, and $U if already installed.
 
21757
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21758
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
21759
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21760
  #    will be set to the directory where LIBOBJS objects are built.
 
21761
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21762
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
21763
done
 
21764
LIBOBJS=$ac_libobjs
 
21765
 
 
21766
LTLIBOBJS=$ac_ltlibobjs
 
21767
 
 
21768
 
 
21769
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21770
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21771
Usually this means the macro was only invoked conditionally." >&5
 
21772
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21773
Usually this means the macro was only invoked conditionally." >&2;}
 
21774
   { (exit 1); exit 1; }; }
 
21775
fi
 
21776
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21777
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21778
Usually this means the macro was only invoked conditionally." >&5
 
21779
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21780
Usually this means the macro was only invoked conditionally." >&2;}
 
21781
   { (exit 1); exit 1; }; }
 
21782
fi
 
21783
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21784
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21785
Usually this means the macro was only invoked conditionally." >&5
 
21786
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21787
Usually this means the macro was only invoked conditionally." >&2;}
 
21788
   { (exit 1); exit 1; }; }
 
21789
fi
 
21790
if test -z "${HAVE_DEBUG_TRUE}" && test -z "${HAVE_DEBUG_FALSE}"; then
 
21791
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DEBUG\" was never defined.
 
21792
Usually this means the macro was only invoked conditionally." >&5
 
21793
$as_echo "$as_me: error: conditional \"HAVE_DEBUG\" was never defined.
 
21794
Usually this means the macro was only invoked conditionally." >&2;}
 
21795
   { (exit 1); exit 1; }; }
 
21796
fi
 
21797
if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then
 
21798
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DTRACE\" was never defined.
 
21799
Usually this means the macro was only invoked conditionally." >&5
 
21800
$as_echo "$as_me: error: conditional \"HAVE_DTRACE\" was never defined.
 
21801
Usually this means the macro was only invoked conditionally." >&2;}
 
21802
   { (exit 1); exit 1; }; }
 
21803
fi
 
21804
if test -z "${BUILD_BYTEORDER_TRUE}" && test -z "${BUILD_BYTEORDER_FALSE}"; then
 
21805
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_BYTEORDER\" was never defined.
 
21806
Usually this means the macro was only invoked conditionally." >&5
 
21807
$as_echo "$as_me: error: conditional \"BUILD_BYTEORDER\" was never defined.
 
21808
Usually this means the macro was only invoked conditionally." >&2;}
 
21809
   { (exit 1); exit 1; }; }
 
21810
fi
 
21811
 
 
21812
: ${CONFIG_STATUS=./config.status}
 
21813
ac_write_fail=0
 
21814
ac_clean_files_save=$ac_clean_files
 
21815
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21816
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21817
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21818
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
21819
#! $SHELL
 
21820
# Generated by $as_me.
 
21821
# Run this file to recreate the current configuration.
 
21822
# Compiler output produced by configure, useful for debugging
 
21823
# configure, is in config.log if it exists.
 
21824
 
 
21825
debug=false
 
21826
ac_cs_recheck=false
 
21827
ac_cs_silent=false
 
21828
SHELL=\${CONFIG_SHELL-$SHELL}
 
21829
_ACEOF
 
21830
 
 
21831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
21832
## --------------------- ##
 
21833
## M4sh Initialization.  ##
 
21834
## --------------------- ##
 
21835
 
 
21836
# Be more Bourne compatible
 
21837
DUALCASE=1; export DUALCASE # for MKS sh
 
21838
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21839
  emulate sh
 
21840
  NULLCMD=:
 
21841
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21842
  # is contrary to our usage.  Disable this feature.
 
21843
  alias -g '${1+"$@"}'='"$@"'
 
21844
  setopt NO_GLOB_SUBST
 
21845
else
 
21846
  case `(set -o) 2>/dev/null` in
 
21847
  *posix*) set -o posix ;;
 
21848
esac
 
21849
 
 
21850
fi
 
21851
 
 
21852
 
 
21853
 
 
21854
 
 
21855
# PATH needs CR
 
21856
# Avoid depending upon Character Ranges.
 
21857
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21858
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21859
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21860
as_cr_digits='0123456789'
 
21861
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21862
 
 
21863
as_nl='
 
21864
'
 
21865
export as_nl
 
21866
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
21867
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
21868
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
21869
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
21870
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
21871
  as_echo='printf %s\n'
 
21872
  as_echo_n='printf %s'
 
21873
else
 
21874
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
21875
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
21876
    as_echo_n='/usr/ucb/echo -n'
 
21877
  else
 
21878
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
21879
    as_echo_n_body='eval
 
21880
      arg=$1;
 
21881
      case $arg in
 
21882
      *"$as_nl"*)
 
21883
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
21884
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
21885
      esac;
 
21886
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
21887
    '
 
21888
    export as_echo_n_body
 
21889
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
21890
  fi
 
21891
  export as_echo_body
 
21892
  as_echo='sh -c $as_echo_body as_echo'
 
21893
fi
 
21894
 
 
21895
# The user is always right.
 
21896
if test "${PATH_SEPARATOR+set}" != set; then
 
21897
  PATH_SEPARATOR=:
 
21898
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
21899
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
21900
      PATH_SEPARATOR=';'
 
21901
  }
 
21902
fi
 
21903
 
 
21904
# Support unset when possible.
 
21905
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21906
  as_unset=unset
 
21907
else
 
21908
  as_unset=false
 
21909
fi
 
21910
 
 
21911
 
 
21912
# IFS
 
21913
# We need space, tab and new line, in precisely that order.  Quoting is
 
21914
# there to prevent editors from complaining about space-tab.
 
21915
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21916
# splitting by setting IFS to empty value.)
 
21917
IFS=" ""        $as_nl"
 
21918
 
 
21919
# Find who we are.  Look in the path if we contain no directory separator.
 
21920
case $0 in
 
21921
  *[\\/]* ) as_myself=$0 ;;
 
21922
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21923
for as_dir in $PATH
 
21924
do
 
21925
  IFS=$as_save_IFS
 
21926
  test -z "$as_dir" && as_dir=.
 
21927
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21928
done
 
21929
IFS=$as_save_IFS
 
21930
 
 
21931
     ;;
 
21932
esac
 
21933
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21934
# in which case we are not to be found in the path.
 
21935
if test "x$as_myself" = x; then
 
21936
  as_myself=$0
 
21937
fi
 
21938
if test ! -f "$as_myself"; then
 
21939
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21940
  { (exit 1); exit 1; }
 
21941
fi
 
21942
 
 
21943
# Work around bugs in pre-3.0 UWIN ksh.
 
21944
for as_var in ENV MAIL MAILPATH
 
21945
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21946
done
 
21947
PS1='$ '
 
21948
PS2='> '
 
21949
PS4='+ '
 
21950
 
 
21951
# NLS nuisances.
 
21952
LC_ALL=C
 
21953
export LC_ALL
 
21954
LANGUAGE=C
 
21955
export LANGUAGE
 
21956
 
 
21957
# Required to use basename.
 
21958
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21959
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21960
  as_expr=expr
 
21961
else
 
21962
  as_expr=false
 
21963
fi
 
21964
 
 
21965
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
21966
  as_basename=basename
 
21967
else
 
21968
  as_basename=false
 
21969
fi
 
21970
 
 
21971
 
 
21972
# Name of the executable.
 
21973
as_me=`$as_basename -- "$0" ||
 
21974
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21975
         X"$0" : 'X\(//\)$' \| \
 
21976
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
21977
$as_echo X/"$0" |
 
21978
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
21979
            s//\1/
 
21980
            q
 
21981
          }
 
21982
          /^X\/\(\/\/\)$/{
 
21983
            s//\1/
 
21984
            q
 
21985
          }
 
21986
          /^X\/\(\/\).*/{
 
21987
            s//\1/
 
21988
            q
 
21989
          }
 
21990
          s/.*/./; q'`
 
21991
 
 
21992
# CDPATH.
 
21993
$as_unset CDPATH
 
21994
 
 
21995
 
 
21996
 
 
21997
  as_lineno_1=$LINENO
 
21998
  as_lineno_2=$LINENO
 
21999
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22000
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22001
 
 
22002
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22003
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22004
  # line-number line after each line using $LINENO; the second 'sed'
 
22005
  # does the real work.  The second script uses 'N' to pair each
 
22006
  # line-number line with the line containing $LINENO, and appends
 
22007
  # trailing '-' during substitution so that $LINENO is not a special
 
22008
  # case at line end.
 
22009
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22010
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
22011
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
22012
  sed -n '
 
22013
    p
 
22014
    /[$]LINENO/=
 
22015
  ' <$as_myself |
 
22016
    sed '
 
22017
      s/[$]LINENO.*/&-/
 
22018
      t lineno
 
22019
      b
 
22020
      :lineno
 
22021
      N
 
22022
      :loop
 
22023
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22024
      t loop
 
22025
      s/-\n.*//
 
22026
    ' >$as_me.lineno &&
 
22027
  chmod +x "$as_me.lineno" ||
 
22028
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22029
   { (exit 1); exit 1; }; }
 
22030
 
 
22031
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22032
  # (the dirname of $[0] is not the place where we might find the
 
22033
  # original and so on.  Autoconf is especially sensitive to this).
 
22034
  . "./$as_me.lineno"
 
22035
  # Exit status is that of the last command.
 
22036
  exit
 
22037
}
 
22038
 
 
22039
 
 
22040
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22041
  as_dirname=dirname
 
22042
else
 
22043
  as_dirname=false
 
22044
fi
 
22045
 
 
22046
ECHO_C= ECHO_N= ECHO_T=
 
22047
case `echo -n x` in
 
22048
-n*)
 
22049
  case `echo 'x\c'` in
 
22050
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22051
  *)   ECHO_C='\c';;
 
22052
  esac;;
 
22053
*)
 
22054
  ECHO_N='-n';;
 
22055
esac
 
22056
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22057
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22058
  as_expr=expr
 
22059
else
 
22060
  as_expr=false
 
22061
fi
 
22062
 
 
22063
rm -f conf$$ conf$$.exe conf$$.file
 
22064
if test -d conf$$.dir; then
 
22065
  rm -f conf$$.dir/conf$$.file
 
22066
else
 
22067
  rm -f conf$$.dir
 
22068
  mkdir conf$$.dir 2>/dev/null
 
22069
fi
 
22070
if (echo >conf$$.file) 2>/dev/null; then
 
22071
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22072
    as_ln_s='ln -s'
 
22073
    # ... but there are two gotchas:
 
22074
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22075
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22076
    # In both cases, we have to default to `cp -p'.
 
22077
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22078
      as_ln_s='cp -p'
 
22079
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
22080
    as_ln_s=ln
 
22081
  else
 
22082
    as_ln_s='cp -p'
 
22083
  fi
 
22084
else
 
22085
  as_ln_s='cp -p'
 
22086
fi
 
22087
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22088
rmdir conf$$.dir 2>/dev/null
 
22089
 
 
22090
if mkdir -p . 2>/dev/null; then
 
22091
  as_mkdir_p=:
 
22092
else
 
22093
  test -d ./-p && rmdir ./-p
 
22094
  as_mkdir_p=false
 
22095
fi
 
22096
 
 
22097
if test -x / >/dev/null 2>&1; then
 
22098
  as_test_x='test -x'
 
22099
else
 
22100
  if ls -dL / >/dev/null 2>&1; then
 
22101
    as_ls_L_option=L
 
22102
  else
 
22103
    as_ls_L_option=
 
22104
  fi
 
22105
  as_test_x='
 
22106
    eval sh -c '\''
 
22107
      if test -d "$1"; then
 
22108
        test -d "$1/.";
 
22109
      else
 
22110
        case $1 in
 
22111
        -*)set "./$1";;
 
22112
        esac;
 
22113
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
22114
        ???[sx]*):;;*)false;;esac;fi
 
22115
    '\'' sh
 
22116
  '
 
22117
fi
 
22118
as_executable_p=$as_test_x
 
22119
 
 
22120
# Sed expression to map a string onto a valid CPP name.
 
22121
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22122
 
 
22123
# Sed expression to map a string onto a valid variable name.
 
22124
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22125
 
 
22126
 
 
22127
exec 6>&1
 
22128
 
 
22129
# Save the log message, to keep $[0] and so on meaningful, and to
 
22130
# report actual input values of CONFIG_FILES etc. instead of their
 
22131
# values after options handling.
 
22132
ac_log="
 
22133
This file was extended by $as_me, which was
 
22134
generated by GNU Autoconf 2.63.  Invocation command line was
 
22135
 
 
22136
  CONFIG_FILES    = $CONFIG_FILES
 
22137
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22138
  CONFIG_LINKS    = $CONFIG_LINKS
 
22139
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22140
  $ $0 $@
 
22141
 
 
22142
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22143
"
 
22144
 
 
22145
_ACEOF
 
22146
 
 
22147
case $ac_config_files in *"
 
22148
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
22149
esac
 
22150
 
 
22151
case $ac_config_headers in *"
 
22152
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
22153
esac
 
22154
 
 
22155
 
 
22156
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22157
# Files that config.status was made for.
 
22158
config_files="$ac_config_files"
 
22159
config_headers="$ac_config_headers"
 
22160
config_commands="$ac_config_commands"
 
22161
 
 
22162
_ACEOF
 
22163
 
 
22164
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22165
ac_cs_usage="\
 
22166
\`$as_me' instantiates files from templates according to the
 
22167
current configuration.
 
22168
 
 
22169
Usage: $0 [OPTION]... [FILE]...
 
22170
 
 
22171
  -h, --help       print this help, then exit
 
22172
  -V, --version    print version number and configuration settings, then exit
 
22173
  -q, --quiet, --silent
 
22174
                   do not print progress messages
 
22175
  -d, --debug      don't remove temporary files
 
22176
      --recheck    update $as_me by reconfiguring in the same conditions
 
22177
      --file=FILE[:TEMPLATE]
 
22178
                   instantiate the configuration file FILE
 
22179
      --header=FILE[:TEMPLATE]
 
22180
                   instantiate the configuration header FILE
 
22181
 
 
22182
Configuration files:
 
22183
$config_files
 
22184
 
 
22185
Configuration headers:
 
22186
$config_headers
 
22187
 
 
22188
Configuration commands:
 
22189
$config_commands
 
22190
 
 
22191
Report bugs to <bug-autoconf@gnu.org>."
 
22192
 
 
22193
_ACEOF
 
22194
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22195
ac_cs_version="\\
 
22196
config.status
 
22197
configured by $0, generated by GNU Autoconf 2.63,
 
22198
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22199
 
 
22200
Copyright (C) 2008 Free Software Foundation, Inc.
 
22201
This config.status script is free software; the Free Software Foundation
 
22202
gives unlimited permission to copy, distribute and modify it."
 
22203
 
 
22204
ac_pwd='$ac_pwd'
 
22205
srcdir='$srcdir'
 
22206
INSTALL='$INSTALL'
 
22207
MKDIR_P='$MKDIR_P'
 
22208
AWK='$AWK'
 
22209
test -n "\$AWK" || AWK=awk
 
22210
_ACEOF
 
22211
 
 
22212
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22213
# The default lists apply if the user does not specify any file.
 
22214
ac_need_defaults=:
 
22215
while test $# != 0
 
22216
do
 
22217
  case $1 in
 
22218
  --*=*)
 
22219
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22220
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22221
    ac_shift=:
 
22222
    ;;
 
22223
  *)
 
22224
    ac_option=$1
 
22225
    ac_optarg=$2
 
22226
    ac_shift=shift
 
22227
    ;;
 
22228
  esac
 
22229
 
 
22230
  case $ac_option in
 
22231
  # Handling of the options.
 
22232
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22233
    ac_cs_recheck=: ;;
 
22234
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22235
    $as_echo "$ac_cs_version"; exit ;;
 
22236
  --debug | --debu | --deb | --de | --d | -d )
 
22237
    debug=: ;;
 
22238
  --file | --fil | --fi | --f )
 
22239
    $ac_shift
 
22240
    case $ac_optarg in
 
22241
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22242
    esac
 
22243
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
22244
    ac_need_defaults=false;;
 
22245
  --header | --heade | --head | --hea )
 
22246
    $ac_shift
 
22247
    case $ac_optarg in
 
22248
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22249
    esac
 
22250
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
22251
    ac_need_defaults=false;;
 
22252
  --he | --h)
 
22253
    # Conflict between --help and --header
 
22254
    { $as_echo "$as_me: error: ambiguous option: $1
 
22255
Try \`$0 --help' for more information." >&2
 
22256
   { (exit 1); exit 1; }; };;
 
22257
  --help | --hel | -h )
 
22258
    $as_echo "$ac_cs_usage"; exit ;;
 
22259
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22260
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22261
    ac_cs_silent=: ;;
 
22262
 
 
22263
  # This is an error.
 
22264
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
22265
Try \`$0 --help' for more information." >&2
 
22266
   { (exit 1); exit 1; }; } ;;
 
22267
 
 
22268
  *) ac_config_targets="$ac_config_targets $1"
 
22269
     ac_need_defaults=false ;;
 
22270
 
 
22271
  esac
 
22272
  shift
 
22273
done
 
22274
 
 
22275
ac_configure_extra_args=
 
22276
 
 
22277
if $ac_cs_silent; then
 
22278
  exec 6>/dev/null
 
22279
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22280
fi
 
22281
 
 
22282
_ACEOF
 
22283
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22284
if \$ac_cs_recheck; then
 
22285
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22286
  shift
 
22287
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
22288
  CONFIG_SHELL='$SHELL'
 
22289
  export CONFIG_SHELL
 
22290
  exec "\$@"
 
22291
fi
 
22292
 
 
22293
_ACEOF
 
22294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22295
exec 5>>config.log
 
22296
{
 
22297
  echo
 
22298
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22299
## Running $as_me. ##
 
22300
_ASBOX
 
22301
  $as_echo "$ac_log"
 
22302
} >&5
 
22303
 
 
22304
_ACEOF
 
22305
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22306
#
 
22307
# INIT-COMMANDS
 
22308
#
 
22309
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22310
 
 
22311
_ACEOF
 
22312
 
 
22313
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22314
 
 
22315
# Handling of arguments.
 
22316
for ac_config_target in $ac_config_targets
 
22317
do
 
22318
  case $ac_config_target in
 
22319
    "libmemcached/libmemcached_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libmemcached/libmemcached_config.h" ;;
 
22320
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22321
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22322
    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
 
22323
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
22324
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
22325
    "libmemcached/Makefile") CONFIG_FILES="$CONFIG_FILES libmemcached/Makefile" ;;
 
22326
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
 
22327
    "support/libmemcached.pc") CONFIG_FILES="$CONFIG_FILES support/libmemcached.pc" ;;
 
22328
    "support/libmemcached.spec") CONFIG_FILES="$CONFIG_FILES support/libmemcached.spec" ;;
 
22329
 
 
22330
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22331
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22332
   { (exit 1); exit 1; }; };;
 
22333
  esac
 
22334
done
 
22335
 
 
22336
 
 
22337
# If the user did not use the arguments to specify the items to instantiate,
 
22338
# then the envvar interface is used.  Set only those that are not.
 
22339
# We use the long form for the default assignment because of an extremely
 
22340
# bizarre bug on SunOS 4.1.3.
 
22341
if $ac_need_defaults; then
 
22342
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22343
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22344
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22345
fi
 
22346
 
 
22347
# Have a temporary directory for convenience.  Make it in the build tree
 
22348
# simply because there is no reason against having it here, and in addition,
 
22349
# creating and moving files from /tmp can sometimes cause problems.
 
22350
# Hook for its removal unless debugging.
 
22351
# Note that there is a small window in which the directory will not be cleaned:
 
22352
# after its creation but before its name has been assigned to `$tmp'.
 
22353
$debug ||
 
22354
{
 
22355
  tmp=
 
22356
  trap 'exit_status=$?
 
22357
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
22358
' 0
 
22359
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22360
}
 
22361
# Create a (secure) tmp directory for tmp files.
 
22362
 
 
22363
{
 
22364
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22365
  test -n "$tmp" && test -d "$tmp"
 
22366
}  ||
 
22367
{
 
22368
  tmp=./conf$$-$RANDOM
 
22369
  (umask 077 && mkdir "$tmp")
 
22370
} ||
 
22371
{
 
22372
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
22373
   { (exit 1); exit 1; }
 
22374
}
 
22375
 
 
22376
# Set up the scripts for CONFIG_FILES section.
 
22377
# No need to generate them if there are no CONFIG_FILES.
 
22378
# This happens for instance with `./config.status config.h'.
 
22379
if test -n "$CONFIG_FILES"; then
 
22380
 
 
22381
 
 
22382
ac_cr='
 
 
b"'"
 
22383
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
22384
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
22385
  ac_cs_awk_cr='\\r'
 
22386
else
 
22387
  ac_cs_awk_cr=$ac_cr
 
22388
fi
 
22389
 
 
22390
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
22391
_ACEOF
 
22392
 
 
22393
 
 
22394
{
 
22395
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
22396
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
22397
  echo "_ACEOF"
 
22398
} >conf$$subs.sh ||
 
22399
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22400
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22401
   { (exit 1); exit 1; }; }
 
22402
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
22403
ac_delim='%!_!# '
 
22404
for ac_last_try in false false false false false :; do
 
22405
  . ./conf$$subs.sh ||
 
22406
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22407
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22408
   { (exit 1); exit 1; }; }
 
22409
 
 
22410
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
22411
  if test $ac_delim_n = $ac_delim_num; then
 
22412
    break
 
22413
  elif $ac_last_try; then
 
22414
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22415
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22416
   { (exit 1); exit 1; }; }
 
22417
  else
 
22418
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22419
  fi
 
22420
done
 
22421
rm -f conf$$subs.sh
 
22422
 
 
22423
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22424
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
22425
_ACEOF
 
22426
sed -n '
 
22427
h
 
22428
s/^/S["/; s/!.*/"]=/
 
22429
p
 
22430
g
 
22431
s/^[^!]*!//
 
22432
:repl
 
22433
t repl
 
22434
s/'"$ac_delim"'$//
 
22435
t delim
 
22436
:nl
 
22437
h
 
22438
s/\(.\{148\}\).*/\1/
 
22439
t more1
 
22440
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
22441
p
 
22442
n
 
22443
b repl
 
22444
:more1
 
22445
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22446
p
 
22447
g
 
22448
s/.\{148\}//
 
22449
t nl
 
22450
:delim
 
22451
h
 
22452
s/\(.\{148\}\).*/\1/
 
22453
t more2
 
22454
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
22455
p
 
22456
b
 
22457
:more2
 
22458
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22459
p
 
22460
g
 
22461
s/.\{148\}//
 
22462
t delim
 
22463
' <conf$$subs.awk | sed '
 
22464
/^[^""]/{
 
22465
  N
 
22466
  s/\n//
 
22467
}
 
22468
' >>$CONFIG_STATUS || ac_write_fail=1
 
22469
rm -f conf$$subs.awk
 
22470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22471
_ACAWK
 
22472
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
22473
  for (key in S) S_is_set[key] = 1
 
22474
  FS = ""
 
22475
 
 
22476
}
 
22477
{
 
22478
  line = $ 0
 
22479
  nfields = split(line, field, "@")
 
22480
  substed = 0
 
22481
  len = length(field[1])
 
22482
  for (i = 2; i < nfields; i++) {
 
22483
    key = field[i]
 
22484
    keylen = length(key)
 
22485
    if (S_is_set[key]) {
 
22486
      value = S[key]
 
22487
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
22488
      len += length(value) + length(field[++i])
 
22489
      substed = 1
 
22490
    } else
 
22491
      len += 1 + keylen
 
22492
  }
 
22493
 
 
22494
  print line
 
22495
}
 
22496
 
 
22497
_ACAWK
 
22498
_ACEOF
 
22499
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22500
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
22501
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
22502
else
 
22503
  cat
 
22504
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
22505
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
22506
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
22507
   { (exit 1); exit 1; }; }
 
22508
_ACEOF
 
22509
 
 
22510
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22511
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22512
# trailing colons and then remove the whole line if VPATH becomes empty
 
22513
# (actually we leave an empty line to preserve line numbers).
 
22514
if test "x$srcdir" = x.; then
 
22515
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22516
s/:*\$(srcdir):*/:/
 
22517
s/:*\${srcdir}:*/:/
 
22518
s/:*@srcdir@:*/:/
 
22519
s/^\([^=]*=[     ]*\):*/\1/
 
22520
s/:*$//
 
22521
s/^[^=]*=[       ]*$//
 
22522
}'
 
22523
fi
 
22524
 
 
22525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22526
fi # test -n "$CONFIG_FILES"
 
22527
 
 
22528
# Set up the scripts for CONFIG_HEADERS section.
 
22529
# No need to generate them if there are no CONFIG_HEADERS.
 
22530
# This happens for instance with `./config.status Makefile'.
 
22531
if test -n "$CONFIG_HEADERS"; then
 
22532
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
22533
BEGIN {
 
22534
_ACEOF
 
22535
 
 
22536
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
22537
# here-document in config.status, that substitutes the proper values into
 
22538
# config.h.in to produce config.h.
 
22539
 
 
22540
# Create a delimiter string that does not exist in confdefs.h, to ease
 
22541
# handling of long lines.
 
22542
ac_delim='%!_!# '
 
22543
for ac_last_try in false false :; do
 
22544
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
22545
  if test -z "$ac_t"; then
 
22546
    break
 
22547
  elif $ac_last_try; then
 
22548
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
22549
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
22550
   { (exit 1); exit 1; }; }
 
22551
  else
 
22552
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22553
  fi
 
22554
done
 
22555
 
 
22556
# For the awk script, D is an array of macro values keyed by name,
 
22557
# likewise P contains macro parameters if any.  Preserve backslash
 
22558
# newline sequences.
 
22559
 
 
22560
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22561
sed -n '
 
22562
s/.\{148\}/&'"$ac_delim"'/g
 
22563
t rset
 
22564
:rset
 
22565
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
22566
t def
 
22567
d
 
22568
:def
 
22569
s/\\$//
 
22570
t bsnl
 
22571
s/["\\]/\\&/g
 
22572
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
22573
D["\1"]=" \3"/p
 
22574
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
22575
d
 
22576
:bsnl
 
22577
s/["\\]/\\&/g
 
22578
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
22579
D["\1"]=" \3\\\\\\n"\\/p
 
22580
t cont
 
22581
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
22582
t cont
 
22583
d
 
22584
:cont
 
22585
n
 
22586
s/.\{148\}/&'"$ac_delim"'/g
 
22587
t clear
 
22588
:clear
 
22589
s/\\$//
 
22590
t bsnlc
 
22591
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
22592
d
 
22593
:bsnlc
 
22594
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
22595
b cont
 
22596
' <confdefs.h | sed '
 
22597
s/'"$ac_delim"'/"\\\
 
22598
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
22599
 
 
22600
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22601
  for (key in D) D_is_set[key] = 1
 
22602
  FS = ""
 
22603
}
 
22604
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
22605
  line = \$ 0
 
22606
  split(line, arg, " ")
 
22607
  if (arg[1] == "#") {
 
22608
    defundef = arg[2]
 
22609
    mac1 = arg[3]
 
22610
  } else {
 
22611
    defundef = substr(arg[1], 2)
 
22612
    mac1 = arg[2]
 
22613
  }
 
22614
  split(mac1, mac2, "(") #)
 
22615
  macro = mac2[1]
 
22616
  prefix = substr(line, 1, index(line, defundef) - 1)
 
22617
  if (D_is_set[macro]) {
 
22618
    # Preserve the white space surrounding the "#".
 
22619
    print prefix "define", macro P[macro] D[macro]
 
22620
    next
 
22621
  } else {
 
22622
    # Replace #undef with comments.  This is necessary, for example,
 
22623
    # in the case of _POSIX_SOURCE, which is predefined and required
 
22624
    # on some systems where configure will not decide to define it.
 
22625
    if (defundef == "undef") {
 
22626
      print "/*", prefix defundef, macro, "*/"
 
22627
      next
 
22628
    }
 
22629
  }
 
22630
}
 
22631
{ print }
 
22632
_ACAWK
 
22633
_ACEOF
 
22634
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22635
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
22636
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
22637
   { (exit 1); exit 1; }; }
 
22638
fi # test -n "$CONFIG_HEADERS"
 
22639
 
 
22640
 
 
22641
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
22642
shift
 
22643
for ac_tag
 
22644
do
 
22645
  case $ac_tag in
 
22646
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
22647
  esac
 
22648
  case $ac_mode$ac_tag in
 
22649
  :[FHL]*:*);;
 
22650
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
22651
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
22652
   { (exit 1); exit 1; }; };;
 
22653
  :[FH]-) ac_tag=-:-;;
 
22654
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
22655
  esac
 
22656
  ac_save_IFS=$IFS
 
22657
  IFS=:
 
22658
  set x $ac_tag
 
22659
  IFS=$ac_save_IFS
 
22660
  shift
 
22661
  ac_file=$1
 
22662
  shift
 
22663
 
 
22664
  case $ac_mode in
 
22665
  :L) ac_source=$1;;
 
22666
  :[FH])
 
22667
    ac_file_inputs=
 
22668
    for ac_f
 
22669
    do
 
22670
      case $ac_f in
 
22671
      -) ac_f="$tmp/stdin";;
 
22672
      *) # Look for the file first in the build tree, then in the source tree
 
22673
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
22674
         # because $ac_f cannot contain `:'.
 
22675
         test -f "$ac_f" ||
 
22676
           case $ac_f in
 
22677
           [\\/$]*) false;;
 
22678
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
22679
           esac ||
 
22680
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
22681
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22682
   { (exit 1); exit 1; }; };;
 
22683
      esac
 
22684
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
22685
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
22686
    done
 
22687
 
 
22688
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22689
    # use $as_me), people would be surprised to read:
 
22690
    #    /* config.h.  Generated by config.status.  */
 
22691
    configure_input='Generated from '`
 
22692
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
22693
        `' by configure.'
 
22694
    if test x"$ac_file" != x-; then
 
22695
      configure_input="$ac_file.  $configure_input"
 
22696
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
22697
$as_echo "$as_me: creating $ac_file" >&6;}
 
22698
    fi
 
22699
    # Neutralize special characters interpreted by sed in replacement strings.
 
22700
    case $configure_input in #(
 
22701
    *\&* | *\|* | *\\* )
 
22702
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
22703
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
22704
    *) ac_sed_conf_input=$configure_input;;
 
22705
    esac
 
22706
 
 
22707
    case $ac_tag in
 
22708
    *:-:* | *:-) cat >"$tmp/stdin" \
 
22709
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22710
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22711
   { (exit 1); exit 1; }; } ;;
 
22712
    esac
 
22713
    ;;
 
22714
  esac
 
22715
 
 
22716
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22717
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22718
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22719
         X"$ac_file" : 'X\(//\)$' \| \
 
22720
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
22721
$as_echo X"$ac_file" |
 
22722
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22723
            s//\1/
 
22724
            q
 
22725
          }
 
22726
          /^X\(\/\/\)[^/].*/{
 
22727
            s//\1/
 
22728
            q
 
22729
          }
 
22730
          /^X\(\/\/\)$/{
 
22731
            s//\1/
 
22732
            q
 
22733
          }
 
22734
          /^X\(\/\).*/{
 
22735
            s//\1/
 
22736
            q
 
22737
          }
 
22738
          s/.*/./; q'`
 
22739
  { as_dir="$ac_dir"
 
22740
  case $as_dir in #(
 
22741
  -*) as_dir=./$as_dir;;
 
22742
  esac
 
22743
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22744
    as_dirs=
 
22745
    while :; do
 
22746
      case $as_dir in #(
 
22747
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
22748
      *) as_qdir=$as_dir;;
 
22749
      esac
 
22750
      as_dirs="'$as_qdir' $as_dirs"
 
22751
      as_dir=`$as_dirname -- "$as_dir" ||
 
22752
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22753
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22754
         X"$as_dir" : 'X\(//\)$' \| \
 
22755
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22756
$as_echo X"$as_dir" |
 
22757
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22758
            s//\1/
 
22759
            q
 
22760
          }
 
22761
          /^X\(\/\/\)[^/].*/{
 
22762
            s//\1/
 
22763
            q
 
22764
          }
 
22765
          /^X\(\/\/\)$/{
 
22766
            s//\1/
 
22767
            q
 
22768
          }
 
22769
          /^X\(\/\).*/{
 
22770
            s//\1/
 
22771
            q
 
22772
          }
 
22773
          s/.*/./; q'`
 
22774
      test -d "$as_dir" && break
 
22775
    done
 
22776
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22777
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22778
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22779
   { (exit 1); exit 1; }; }; }
 
22780
  ac_builddir=.
 
22781
 
 
22782
case "$ac_dir" in
 
22783
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22784
*)
 
22785
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
22786
  # A ".." for each directory in $ac_dir_suffix.
 
22787
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
22788
  case $ac_top_builddir_sub in
 
22789
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22790
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
22791
  esac ;;
 
22792
esac
 
22793
ac_abs_top_builddir=$ac_pwd
 
22794
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
22795
# for backward compatibility:
 
22796
ac_top_builddir=$ac_top_build_prefix
 
22797
 
 
22798
case $srcdir in
 
22799
  .)  # We are building in place.
 
22800
    ac_srcdir=.
 
22801
    ac_top_srcdir=$ac_top_builddir_sub
 
22802
    ac_abs_top_srcdir=$ac_pwd ;;
 
22803
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
22804
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22805
    ac_top_srcdir=$srcdir
 
22806
    ac_abs_top_srcdir=$srcdir ;;
 
22807
  *) # Relative name.
 
22808
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
22809
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
22810
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
22811
esac
 
22812
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
22813
 
 
22814
 
 
22815
  case $ac_mode in
 
22816
  :F)
 
22817
  #
 
22818
  # CONFIG_FILE
 
22819
  #
 
22820
 
 
22821
  case $INSTALL in
 
22822
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22823
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
22824
  esac
 
22825
  ac_MKDIR_P=$MKDIR_P
 
22826
  case $MKDIR_P in
 
22827
  [\\/$]* | ?:[\\/]* ) ;;
 
22828
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
22829
  esac
 
22830
_ACEOF
 
22831
 
 
22832
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22833
# If the template does not know about datarootdir, expand it.
 
22834
# FIXME: This hack should be removed a few years after 2.60.
 
22835
ac_datarootdir_hack=; ac_datarootdir_seen=
 
22836
 
 
22837
ac_sed_dataroot='
 
22838
/datarootdir/ {
 
22839
  p
 
22840
  q
 
22841
}
 
22842
/@datadir@/p
 
22843
/@docdir@/p
 
22844
/@infodir@/p
 
22845
/@localedir@/p
 
22846
/@mandir@/p
 
22847
'
 
22848
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
22849
*datarootdir*) ac_datarootdir_seen=yes;;
 
22850
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22851
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22852
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22853
_ACEOF
 
22854
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22855
  ac_datarootdir_hack='
 
22856
  s&@datadir@&$datadir&g
 
22857
  s&@docdir@&$docdir&g
 
22858
  s&@infodir@&$infodir&g
 
22859
  s&@localedir@&$localedir&g
 
22860
  s&@mandir@&$mandir&g
 
22861
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22862
esac
 
22863
_ACEOF
 
22864
 
 
22865
# Neutralize VPATH when `$srcdir' = `.'.
 
22866
# Shell code in configure.ac might set extrasub.
 
22867
# FIXME: do we really want to maintain this feature?
 
22868
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22869
ac_sed_extra="$ac_vpsub
 
22870
$extrasub
 
22871
_ACEOF
 
22872
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22873
:t
 
22874
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22875
s|@configure_input@|$ac_sed_conf_input|;t t
 
22876
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22877
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
22878
s&@srcdir@&$ac_srcdir&;t t
 
22879
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22880
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22881
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22882
s&@builddir@&$ac_builddir&;t t
 
22883
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22884
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22885
s&@INSTALL@&$ac_INSTALL&;t t
 
22886
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
22887
$ac_datarootdir_hack
 
22888
"
 
22889
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
22890
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22891
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22892
   { (exit 1); exit 1; }; }
 
22893
 
 
22894
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22895
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22896
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22897
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22898
which seems to be undefined.  Please make sure it is defined." >&5
 
22899
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22900
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22901
 
 
22902
  rm -f "$tmp/stdin"
 
22903
  case $ac_file in
 
22904
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
22905
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
22906
  esac \
 
22907
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22908
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22909
   { (exit 1); exit 1; }; }
 
22910
 ;;
 
22911
  :H)
 
22912
  #
 
22913
  # CONFIG_HEADER
 
22914
  #
 
22915
  if test x"$ac_file" != x-; then
 
22916
    {
 
22917
      $as_echo "/* $configure_input  */" \
 
22918
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
22919
    } >"$tmp/config.h" \
 
22920
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22921
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22922
   { (exit 1); exit 1; }; }
 
22923
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
22924
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22925
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
22926
    else
 
22927
      rm -f "$ac_file"
 
22928
      mv "$tmp/config.h" "$ac_file" \
 
22929
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22930
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22931
   { (exit 1); exit 1; }; }
 
22932
    fi
 
22933
  else
 
22934
    $as_echo "/* $configure_input  */" \
 
22935
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
22936
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
22937
$as_echo "$as_me: error: could not create -" >&2;}
 
22938
   { (exit 1); exit 1; }; }
 
22939
  fi
 
22940
# Compute "$ac_file"'s index in $config_headers.
 
22941
_am_arg="$ac_file"
 
22942
_am_stamp_count=1
 
22943
for _am_header in $config_headers :; do
 
22944
  case $_am_header in
 
22945
    $_am_arg | $_am_arg:* )
 
22946
      break ;;
 
22947
    * )
 
22948
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
22949
  esac
 
22950
done
 
22951
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
22952
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22953
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
22954
         X"$_am_arg" : 'X\(//\)$' \| \
 
22955
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
22956
$as_echo X"$_am_arg" |
 
22957
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22958
            s//\1/
 
22959
            q
 
22960
          }
 
22961
          /^X\(\/\/\)[^/].*/{
 
22962
            s//\1/
 
22963
            q
 
22964
          }
 
22965
          /^X\(\/\/\)$/{
 
22966
            s//\1/
 
22967
            q
 
22968
          }
 
22969
          /^X\(\/\).*/{
 
22970
            s//\1/
 
22971
            q
 
22972
          }
 
22973
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22974
 ;;
 
22975
 
 
22976
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
22977
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
22978
 ;;
 
22979
  esac
 
22980
 
 
22981
 
 
22982
  case $ac_file$ac_mode in
 
22983
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22984
  # Strip MF so we end up with the name of the file.
 
22985
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
22986
  # Check whether this is an Automake generated Makefile or not.
 
22987
  # We used to match only the files named `Makefile.in', but
 
22988
  # some people rename them; so instead we look at the file content.
 
22989
  # Grep'ing the first line is not enough: some people post-process
 
22990
  # each Makefile.in and add a new line on top of each file to say so.
 
22991
  # Grep'ing the whole file is not good either: AIX grep has a line
 
22992
  # limit of 2048, but all sed's we know have understand at least 4000.
 
22993
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
22994
    dirpart=`$as_dirname -- "$mf" ||
 
22995
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22996
         X"$mf" : 'X\(//\)[^/]' \| \
 
22997
         X"$mf" : 'X\(//\)$' \| \
 
22998
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
22999
$as_echo X"$mf" |
 
23000
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23001
            s//\1/
 
23002
            q
 
23003
          }
 
23004
          /^X\(\/\/\)[^/].*/{
 
23005
            s//\1/
 
23006
            q
 
23007
          }
 
23008
          /^X\(\/\/\)$/{
 
23009
            s//\1/
 
23010
            q
 
23011
          }
 
23012
          /^X\(\/\).*/{
 
23013
            s//\1/
 
23014
            q
 
23015
          }
 
23016
          s/.*/./; q'`
 
23017
  else
 
23018
    continue
 
23019
  fi
 
23020
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23021
  # from the Makefile without running `make'.
 
23022
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23023
  test -z "$DEPDIR" && continue
 
23024
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23025
  test -z "am__include" && continue
 
23026
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23027
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23028
  U=`sed -n 's/^U = //p' < "$mf"`
 
23029
  # Find all dependency output files, they are included files with
 
23030
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23031
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23032
  # expansion.
 
23033
  for file in `sed -n "
 
23034
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23035
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23036
    # Make sure the directory exists.
 
23037
    test -f "$dirpart/$file" && continue
 
23038
    fdir=`$as_dirname -- "$file" ||
 
23039
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23040
         X"$file" : 'X\(//\)[^/]' \| \
 
23041
         X"$file" : 'X\(//\)$' \| \
 
23042
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23043
$as_echo X"$file" |
 
23044
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23045
            s//\1/
 
23046
            q
 
23047
          }
 
23048
          /^X\(\/\/\)[^/].*/{
 
23049
            s//\1/
 
23050
            q
 
23051
          }
 
23052
          /^X\(\/\/\)$/{
 
23053
            s//\1/
 
23054
            q
 
23055
          }
 
23056
          /^X\(\/\).*/{
 
23057
            s//\1/
 
23058
            q
 
23059
          }
 
23060
          s/.*/./; q'`
 
23061
    { as_dir=$dirpart/$fdir
 
23062
  case $as_dir in #(
 
23063
  -*) as_dir=./$as_dir;;
 
23064
  esac
 
23065
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23066
    as_dirs=
 
23067
    while :; do
 
23068
      case $as_dir in #(
 
23069
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
23070
      *) as_qdir=$as_dir;;
 
23071
      esac
 
23072
      as_dirs="'$as_qdir' $as_dirs"
 
23073
      as_dir=`$as_dirname -- "$as_dir" ||
 
23074
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23075
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23076
         X"$as_dir" : 'X\(//\)$' \| \
 
23077
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23078
$as_echo X"$as_dir" |
 
23079
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23080
            s//\1/
 
23081
            q
 
23082
          }
 
23083
          /^X\(\/\/\)[^/].*/{
 
23084
            s//\1/
 
23085
            q
 
23086
          }
 
23087
          /^X\(\/\/\)$/{
 
23088
            s//\1/
 
23089
            q
 
23090
          }
 
23091
          /^X\(\/\).*/{
 
23092
            s//\1/
 
23093
            q
 
23094
          }
 
23095
          s/.*/./; q'`
 
23096
      test -d "$as_dir" && break
 
23097
    done
 
23098
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23099
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23100
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23101
   { (exit 1); exit 1; }; }; }
 
23102
    # echo "creating $dirpart/$file"
 
23103
    echo '# dummy' > "$dirpart/$file"
 
23104
  done
 
23105
done
 
23106
 ;;
 
23107
 
 
23108
  esac
 
23109
done # for ac_tag
 
23110
 
 
23111
 
 
23112
{ (exit 0); exit 0; }
 
23113
_ACEOF
 
23114
chmod +x $CONFIG_STATUS
 
23115
ac_clean_files=$ac_clean_files_save
 
23116
 
 
23117
test $ac_write_fail = 0 ||
 
23118
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
23119
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
23120
   { (exit 1); exit 1; }; }
 
23121
 
 
23122
 
 
23123
# configure is writing to config.log, and then calls config.status.
 
23124
# config.status does its own redirection, appending to config.log.
 
23125
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23126
# by configure, so config.status won't be able to write to it; its
 
23127
# output is simply discarded.  So we exec the FD to /dev/null,
 
23128
# effectively closing config.log, so it can be properly (re)opened and
 
23129
# appended to by config.status.  When coming back to configure, we
 
23130
# need to make the FD available again.
 
23131
if test "$no_create" != yes; then
 
23132
  ac_cs_success=:
 
23133
  ac_config_status_args=
 
23134
  test "$silent" = yes &&
 
23135
    ac_config_status_args="$ac_config_status_args --quiet"
 
23136
  exec 5>/dev/null
 
23137
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23138
  exec 5>>config.log
 
23139
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23140
  # would make configure fail if this is the last instruction.
 
23141
  $ac_cs_success || { (exit 1); exit 1; }
 
23142
fi
 
23143
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
23144
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
23145
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
23146
fi
 
23147