~noskcaj/ubuntu/trusty/libextractor/merge

« back to all changes in this revision

Viewing changes to libltdl/configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

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 for libltdl 2.2.6.
 
4
#
 
5
# Report bugs to <bug-libtool@gnu.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
# Support unset when possible.
 
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
85
  as_unset=unset
 
86
else
 
87
  as_unset=false
 
88
fi
 
89
 
 
90
 
 
91
# IFS
 
92
# We need space, tab and new line, in precisely that order.  Quoting is
 
93
# there to prevent editors from complaining about space-tab.
 
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
95
# splitting by setting IFS to empty value.)
 
96
IFS=" ""        $as_nl"
 
97
 
 
98
# Find who we are.  Look in the path if we contain no directory separator.
 
99
case $0 in
 
100
  *[\\/]* ) as_myself=$0 ;;
 
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
102
for as_dir in $PATH
 
103
do
 
104
  IFS=$as_save_IFS
 
105
  test -z "$as_dir" && as_dir=.
 
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
107
done
 
108
IFS=$as_save_IFS
 
109
 
 
110
     ;;
 
111
esac
 
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
113
# in which case we are not to be found in the path.
 
114
if test "x$as_myself" = x; then
 
115
  as_myself=$0
 
116
fi
 
117
if test ! -f "$as_myself"; then
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
119
  { (exit 1); exit 1; }
 
120
fi
 
121
 
 
122
# Work around bugs in pre-3.0 UWIN ksh.
 
123
for as_var in ENV MAIL MAILPATH
 
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# Required to use basename.
 
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
139
  as_expr=expr
 
140
else
 
141
  as_expr=false
 
142
fi
 
143
 
 
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
145
  as_basename=basename
 
146
else
 
147
  as_basename=false
 
148
fi
 
149
 
 
150
 
 
151
# Name of the executable.
 
152
as_me=`$as_basename -- "$0" ||
 
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
154
         X"$0" : 'X\(//\)$' \| \
 
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
156
$as_echo X/"$0" |
 
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
158
            s//\1/
 
159
            q
 
160
          }
 
161
          /^X\/\(\/\/\)$/{
 
162
            s//\1/
 
163
            q
 
164
          }
 
165
          /^X\/\(\/\).*/{
 
166
            s//\1/
 
167
            q
 
168
          }
 
169
          s/.*/./; q'`
 
170
 
 
171
# CDPATH.
 
172
$as_unset CDPATH
 
173
 
 
174
 
 
175
if test "x$CONFIG_SHELL" = x; then
 
176
  if (eval ":") 2>/dev/null; then
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
 
 
182
  if test $as_have_required = yes &&     (eval ":
 
183
(as_func_return () {
 
184
  (exit \$1)
 
185
}
 
186
as_func_success () {
 
187
  as_func_return 0
 
188
}
 
189
as_func_failure () {
 
190
  as_func_return 1
 
191
}
 
192
as_func_ret_success () {
 
193
  return 0
 
194
}
 
195
as_func_ret_failure () {
 
196
  return 1
 
197
}
 
198
 
 
199
exitcode=0
 
200
if as_func_success; then
 
201
  :
 
202
else
 
203
  exitcode=1
 
204
  echo as_func_success failed.
 
205
fi
 
206
 
 
207
if as_func_failure; then
 
208
  exitcode=1
 
209
  echo as_func_failure succeeded.
 
210
fi
 
211
 
 
212
if as_func_ret_success; then
 
213
  :
 
214
else
 
215
  exitcode=1
 
216
  echo as_func_ret_success failed.
 
217
fi
 
218
 
 
219
if as_func_ret_failure; then
 
220
  exitcode=1
 
221
  echo as_func_ret_failure succeeded.
 
222
fi
 
223
 
 
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
225
  :
 
226
else
 
227
  exitcode=1
 
228
  echo positional parameters were not saved.
 
229
fi
 
230
 
 
231
test \$exitcode = 0) || { (exit 1); exit 1; }
 
232
 
 
233
(
 
234
  as_lineno_1=\$LINENO
 
235
  as_lineno_2=\$LINENO
 
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
238
") 2> /dev/null; then
 
239
  :
 
240
else
 
241
  as_candidate_shells=
 
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
244
do
 
245
  IFS=$as_save_IFS
 
246
  test -z "$as_dir" && as_dir=.
 
247
  case $as_dir in
 
248
         /*)
 
249
           for as_base in sh bash ksh sh5; do
 
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
251
           done;;
 
252
       esac
 
253
done
 
254
IFS=$as_save_IFS
 
255
 
 
256
 
 
257
      for as_shell in $as_candidate_shells $SHELL; do
 
258
         # Try only shells that exist, to save several forks.
 
259
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
260
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
_ASEOF
 
278
}; then
 
279
  CONFIG_SHELL=$as_shell
 
280
               as_have_required=yes
 
281
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
283
  emulate sh
 
284
  NULLCMD=:
 
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
286
  # is contrary to our usage.  Disable this feature.
 
287
  alias -g '${1+"$@"}'='"$@"'
 
288
  setopt NO_GLOB_SUBST
 
289
else
 
290
  case `(set -o) 2>/dev/null` in
 
291
  *posix*) set -o posix ;;
 
292
esac
 
293
 
 
294
fi
 
295
 
 
296
 
 
297
:
 
298
(as_func_return () {
 
299
  (exit $1)
 
300
}
 
301
as_func_success () {
 
302
  as_func_return 0
 
303
}
 
304
as_func_failure () {
 
305
  as_func_return 1
 
306
}
 
307
as_func_ret_success () {
 
308
  return 0
 
309
}
 
310
as_func_ret_failure () {
 
311
  return 1
 
312
}
 
313
 
 
314
exitcode=0
 
315
if as_func_success; then
 
316
  :
 
317
else
 
318
  exitcode=1
 
319
  echo as_func_success failed.
 
320
fi
 
321
 
 
322
if as_func_failure; then
 
323
  exitcode=1
 
324
  echo as_func_failure succeeded.
 
325
fi
 
326
 
 
327
if as_func_ret_success; then
 
328
  :
 
329
else
 
330
  exitcode=1
 
331
  echo as_func_ret_success failed.
 
332
fi
 
333
 
 
334
if as_func_ret_failure; then
 
335
  exitcode=1
 
336
  echo as_func_ret_failure succeeded.
 
337
fi
 
338
 
 
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
340
  :
 
341
else
 
342
  exitcode=1
 
343
  echo positional parameters were not saved.
 
344
fi
 
345
 
 
346
test $exitcode = 0) || { (exit 1); exit 1; }
 
347
 
 
348
(
 
349
  as_lineno_1=$LINENO
 
350
  as_lineno_2=$LINENO
 
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
353
 
 
354
_ASEOF
 
355
}; then
 
356
  break
 
357
fi
 
358
 
 
359
fi
 
360
 
 
361
      done
 
362
 
 
363
      if test "x$CONFIG_SHELL" != x; then
 
364
  for as_var in BASH_ENV ENV
 
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
366
        done
 
367
        export CONFIG_SHELL
 
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
369
fi
 
370
 
 
371
 
 
372
    if test $as_have_required = no; then
 
373
  echo This script requires a shell more modern than all the
 
374
      echo shells that I found on your system.  Please install a
 
375
      echo modern shell, or manually run the script under such a
 
376
      echo shell if you do have one.
 
377
      { (exit 1); exit 1; }
 
378
fi
 
379
 
 
380
 
 
381
fi
 
382
 
 
383
fi
 
384
 
 
385
 
 
386
 
 
387
(eval "as_func_return () {
 
388
  (exit \$1)
 
389
}
 
390
as_func_success () {
 
391
  as_func_return 0
 
392
}
 
393
as_func_failure () {
 
394
  as_func_return 1
 
395
}
 
396
as_func_ret_success () {
 
397
  return 0
 
398
}
 
399
as_func_ret_failure () {
 
400
  return 1
 
401
}
 
402
 
 
403
exitcode=0
 
404
if as_func_success; then
 
405
  :
 
406
else
 
407
  exitcode=1
 
408
  echo as_func_success failed.
 
409
fi
 
410
 
 
411
if as_func_failure; then
 
412
  exitcode=1
 
413
  echo as_func_failure succeeded.
 
414
fi
 
415
 
 
416
if as_func_ret_success; then
 
417
  :
 
418
else
 
419
  exitcode=1
 
420
  echo as_func_ret_success failed.
 
421
fi
 
422
 
 
423
if as_func_ret_failure; then
 
424
  exitcode=1
 
425
  echo as_func_ret_failure succeeded.
 
426
fi
 
427
 
 
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
429
  :
 
430
else
 
431
  exitcode=1
 
432
  echo positional parameters were not saved.
 
433
fi
 
434
 
 
435
test \$exitcode = 0") || {
 
436
  echo No shell found that supports shell functions.
 
437
  echo Please tell bug-autoconf@gnu.org about your system,
 
438
  echo including any error possibly output before this message.
 
439
  echo This can help us improve future autoconf versions.
 
440
  echo Configuration will now proceed without shell functions.
 
441
}
 
442
 
 
443
 
 
444
 
 
445
  as_lineno_1=$LINENO
 
446
  as_lineno_2=$LINENO
 
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
449
 
 
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
452
  # line-number line after each line using $LINENO; the second 'sed'
 
453
  # does the real work.  The second script uses 'N' to pair each
 
454
  # line-number line with the line containing $LINENO, and appends
 
455
  # trailing '-' during substitution so that $LINENO is not a special
 
456
  # case at line end.
 
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
460
  sed -n '
 
461
    p
 
462
    /[$]LINENO/=
 
463
  ' <$as_myself |
 
464
    sed '
 
465
      s/[$]LINENO.*/&-/
 
466
      t lineno
 
467
      b
 
468
      :lineno
 
469
      N
 
470
      :loop
 
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
472
      t loop
 
473
      s/-\n.*//
 
474
    ' >$as_me.lineno &&
 
475
  chmod +x "$as_me.lineno" ||
 
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
477
   { (exit 1); exit 1; }; }
 
478
 
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
 
480
  # (the dirname of $[0] is not the place where we might find the
 
481
  # original and so on.  Autoconf is especially sensitive to this).
 
482
  . "./$as_me.lineno"
 
483
  # Exit status is that of the last command.
 
484
  exit
 
485
}
 
486
 
 
487
 
 
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
489
  as_dirname=dirname
 
490
else
 
491
  as_dirname=false
 
492
fi
 
493
 
 
494
ECHO_C= ECHO_N= ECHO_T=
 
495
case `echo -n x` in
 
496
-n*)
 
497
  case `echo 'x\c'` in
 
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
499
  *)   ECHO_C='\c';;
 
500
  esac;;
 
501
*)
 
502
  ECHO_N='-n';;
 
503
esac
 
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
506
  as_expr=expr
 
507
else
 
508
  as_expr=false
 
509
fi
 
510
 
 
511
rm -f conf$$ conf$$.exe conf$$.file
 
512
if test -d conf$$.dir; then
 
513
  rm -f conf$$.dir/conf$$.file
 
514
else
 
515
  rm -f conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
 
517
fi
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
 
530
    as_ln_s='cp -p'
 
531
  fi
 
532
else
 
533
  as_ln_s='cp -p'
 
534
fi
 
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
536
rmdir conf$$.dir 2>/dev/null
 
537
 
 
538
if mkdir -p . 2>/dev/null; then
 
539
  as_mkdir_p=:
 
540
else
 
541
  test -d ./-p && rmdir ./-p
 
542
  as_mkdir_p=false
 
543
fi
 
544
 
 
545
if test -x / >/dev/null 2>&1; then
 
546
  as_test_x='test -x'
 
547
else
 
548
  if ls -dL / >/dev/null 2>&1; then
 
549
    as_ls_L_option=L
 
550
  else
 
551
    as_ls_L_option=
 
552
  fi
 
553
  as_test_x='
 
554
    eval sh -c '\''
 
555
      if test -d "$1"; then
 
556
        test -d "$1/.";
 
557
      else
 
558
        case $1 in
 
559
        -*)set "./$1";;
 
560
        esac;
 
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
562
        ???[sx]*):;;*)false;;esac;fi
 
563
    '\'' sh
 
564
  '
 
565
fi
 
566
as_executable_p=$as_test_x
 
567
 
 
568
# Sed expression to map a string onto a valid CPP name.
 
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
# Sed expression to map a string onto a valid variable name.
 
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
573
 
 
574
 
 
575
 
 
576
 
 
577
# Check that we are running under the correct shell.
 
578
SHELL=${CONFIG_SHELL-/bin/sh}
 
579
 
 
580
case X$lt_ECHO in
 
581
X*--fallback-echo)
 
582
  # Remove one level of quotation (which was required for Make).
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
584
  ;;
 
585
esac
 
586
 
 
587
ECHO=${lt_ECHO-echo}
 
588
if test "X$1" = X--no-reexec; then
 
589
  # Discard the --no-reexec flag, and continue.
 
590
  shift
 
591
elif test "X$1" = X--fallback-echo; then
 
592
  # Avoid inline document here, it may be left over
 
593
  :
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
 
596
  :
 
597
else
 
598
  # Restart under the correct shell.
 
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
600
fi
 
601
 
 
602
if test "X$1" = X--fallback-echo; then
 
603
  # used as fallback echo
 
604
  shift
 
605
  cat <<_LT_EOF
 
606
$*
 
607
_LT_EOF
 
608
  exit 0
 
609
fi
 
610
 
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
612
# if CDPATH is set.
 
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
614
 
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
 
650
    IFS="$lt_save_ifs"
 
651
 
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
667
      else
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
 
708
          fi
 
709
        fi
 
710
      fi
 
711
    fi
 
712
  fi
 
713
fi
 
714
 
 
715
# Copy echo and quote the copy suitably for passing to libtool from
 
716
# the Makefile, instead of quoting the original, which is used later.
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
720
fi
 
721
 
 
722
 
 
723
 
 
724
 
 
725
exec 7<&0 </dev/null 6>&1
 
726
 
 
727
# Name of the host.
 
728
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
729
# so uname gets run too.
 
730
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
731
 
 
732
#
 
733
# Initializations.
 
734
#
 
735
ac_default_prefix=/usr/local
 
736
ac_clean_files=
 
737
ac_config_libobj_dir=.
 
738
LIBOBJS=
 
739
cross_compiling=no
 
740
subdirs=
 
741
MFLAGS=
 
742
MAKEFLAGS=
 
743
SHELL=${CONFIG_SHELL-/bin/sh}
 
744
 
 
745
# Identity of this package.
 
746
PACKAGE_NAME='libltdl'
 
747
PACKAGE_TARNAME='libltdl'
 
748
PACKAGE_VERSION='2.2.6'
 
749
PACKAGE_STRING='libltdl 2.2.6'
 
750
PACKAGE_BUGREPORT='bug-libtool@gnu.org'
 
751
 
 
752
ac_unique_file="ltdl.c"
 
753
# Factoring default headers for most tests.
 
754
ac_includes_default="\
 
755
#include <stdio.h>
 
756
#ifdef HAVE_SYS_TYPES_H
 
757
# include <sys/types.h>
 
758
#endif
 
759
#ifdef HAVE_SYS_STAT_H
 
760
# include <sys/stat.h>
 
761
#endif
 
762
#ifdef STDC_HEADERS
 
763
# include <stdlib.h>
 
764
# include <stddef.h>
 
765
#else
 
766
# ifdef HAVE_STDLIB_H
 
767
#  include <stdlib.h>
 
768
# endif
 
769
#endif
 
770
#ifdef HAVE_STRING_H
 
771
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
772
#  include <memory.h>
 
773
# endif
 
774
# include <string.h>
 
775
#endif
 
776
#ifdef HAVE_STRINGS_H
 
777
# include <strings.h>
 
778
#endif
 
779
#ifdef HAVE_INTTYPES_H
 
780
# include <inttypes.h>
 
781
#endif
 
782
#ifdef HAVE_STDINT_H
 
783
# include <stdint.h>
 
784
#endif
 
785
#ifdef HAVE_UNISTD_H
 
786
# include <unistd.h>
 
787
#endif"
 
788
 
 
789
ac_subst_vars='LTLIBOBJS
 
790
LTDLOPEN
 
791
LT_CONFIG_H
 
792
CONVENIENCE_LTDL_FALSE
 
793
CONVENIENCE_LTDL_TRUE
 
794
INSTALL_LTDL_FALSE
 
795
INSTALL_LTDL_TRUE
 
796
ARGZ_H
 
797
LIBOBJS
 
798
sys_symbol_underscore
 
799
LIBADD_DL
 
800
LT_DLPREOPEN
 
801
LIBADD_DLD_LINK
 
802
LIBADD_SHL_LOAD
 
803
LIBADD_DLOPEN
 
804
LT_DLLOADERS
 
805
CPP
 
806
OTOOL64
 
807
OTOOL
 
808
LIPO
 
809
NMEDIT
 
810
DSYMUTIL
 
811
lt_ECHO
 
812
RANLIB
 
813
AR
 
814
LN_S
 
815
NM
 
816
ac_ct_DUMPBIN
 
817
DUMPBIN
 
818
LD
 
819
FGREP
 
820
EGREP
 
821
GREP
 
822
SED
 
823
am__fastdepCC_FALSE
 
824
am__fastdepCC_TRUE
 
825
CCDEPMODE
 
826
AMDEPBACKSLASH
 
827
AMDEP_FALSE
 
828
AMDEP_TRUE
 
829
am__quote
 
830
am__include
 
831
DEPDIR
 
832
OBJEXT
 
833
EXEEXT
 
834
ac_ct_CC
 
835
CPPFLAGS
 
836
LDFLAGS
 
837
CFLAGS
 
838
CC
 
839
host_os
 
840
host_vendor
 
841
host_cpu
 
842
host
 
843
build_os
 
844
build_vendor
 
845
build_cpu
 
846
build
 
847
LIBTOOL
 
848
OBJDUMP
 
849
DLLTOOL
 
850
AS
 
851
am__untar
 
852
am__tar
 
853
AMTAR
 
854
am__leading_dot
 
855
SET_MAKE
 
856
AWK
 
857
mkdir_p
 
858
MKDIR_P
 
859
INSTALL_STRIP_PROGRAM
 
860
STRIP
 
861
install_sh
 
862
MAKEINFO
 
863
AUTOHEADER
 
864
AUTOMAKE
 
865
AUTOCONF
 
866
ACLOCAL
 
867
VERSION
 
868
PACKAGE
 
869
CYGPATH_W
 
870
am__isrc
 
871
INSTALL_DATA
 
872
INSTALL_SCRIPT
 
873
INSTALL_PROGRAM
 
874
target_alias
 
875
host_alias
 
876
build_alias
 
877
LIBS
 
878
ECHO_T
 
879
ECHO_N
 
880
ECHO_C
 
881
DEFS
 
882
mandir
 
883
localedir
 
884
libdir
 
885
psdir
 
886
pdfdir
 
887
dvidir
 
888
htmldir
 
889
infodir
 
890
docdir
 
891
oldincludedir
 
892
includedir
 
893
localstatedir
 
894
sharedstatedir
 
895
sysconfdir
 
896
datadir
 
897
datarootdir
 
898
libexecdir
 
899
sbindir
 
900
bindir
 
901
program_transform_name
 
902
prefix
 
903
exec_prefix
 
904
PACKAGE_BUGREPORT
 
905
PACKAGE_STRING
 
906
PACKAGE_VERSION
 
907
PACKAGE_TARNAME
 
908
PACKAGE_NAME
 
909
PATH_SEPARATOR
 
910
SHELL'
 
911
ac_subst_files=''
 
912
ac_user_opts='
 
913
enable_option_checking
 
914
enable_shared
 
915
enable_static
 
916
with_pic
 
917
enable_fast_install
 
918
enable_dependency_tracking
 
919
with_gnu_ld
 
920
enable_libtool_lock
 
921
enable_ltdl_install
 
922
'
 
923
      ac_precious_vars='build_alias
 
924
host_alias
 
925
target_alias
 
926
CC
 
927
CFLAGS
 
928
LDFLAGS
 
929
LIBS
 
930
CPPFLAGS
 
931
CPP'
 
932
 
 
933
 
 
934
# Initialize some variables set by options.
 
935
ac_init_help=
 
936
ac_init_version=false
 
937
ac_unrecognized_opts=
 
938
ac_unrecognized_sep=
 
939
# The variables have the same names as the options, with
 
940
# dashes changed to underlines.
 
941
cache_file=/dev/null
 
942
exec_prefix=NONE
 
943
no_create=
 
944
no_recursion=
 
945
prefix=NONE
 
946
program_prefix=NONE
 
947
program_suffix=NONE
 
948
program_transform_name=s,x,x,
 
949
silent=
 
950
site=
 
951
srcdir=
 
952
verbose=
 
953
x_includes=NONE
 
954
x_libraries=NONE
 
955
 
 
956
# Installation directory options.
 
957
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
958
# and all the variables that are supposed to be based on exec_prefix
 
959
# by default will actually change.
 
960
# Use braces instead of parens because sh, perl, etc. also accept them.
 
961
# (The list follows the same order as the GNU Coding Standards.)
 
962
bindir='${exec_prefix}/bin'
 
963
sbindir='${exec_prefix}/sbin'
 
964
libexecdir='${exec_prefix}/libexec'
 
965
datarootdir='${prefix}/share'
 
966
datadir='${datarootdir}'
 
967
sysconfdir='${prefix}/etc'
 
968
sharedstatedir='${prefix}/com'
 
969
localstatedir='${prefix}/var'
 
970
includedir='${prefix}/include'
 
971
oldincludedir='/usr/include'
 
972
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
973
infodir='${datarootdir}/info'
 
974
htmldir='${docdir}'
 
975
dvidir='${docdir}'
 
976
pdfdir='${docdir}'
 
977
psdir='${docdir}'
 
978
libdir='${exec_prefix}/lib'
 
979
localedir='${datarootdir}/locale'
 
980
mandir='${datarootdir}/man'
 
981
 
 
982
ac_prev=
 
983
ac_dashdash=
 
984
for ac_option
 
985
do
 
986
  # If the previous option needs an argument, assign it.
 
987
  if test -n "$ac_prev"; then
 
988
    eval $ac_prev=\$ac_option
 
989
    ac_prev=
 
990
    continue
 
991
  fi
 
992
 
 
993
  case $ac_option in
 
994
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
995
  *)    ac_optarg=yes ;;
 
996
  esac
 
997
 
 
998
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
999
 
 
1000
  case $ac_dashdash$ac_option in
 
1001
  --)
 
1002
    ac_dashdash=yes ;;
 
1003
 
 
1004
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1005
    ac_prev=bindir ;;
 
1006
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1007
    bindir=$ac_optarg ;;
 
1008
 
 
1009
  -build | --build | --buil | --bui | --bu)
 
1010
    ac_prev=build_alias ;;
 
1011
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1012
    build_alias=$ac_optarg ;;
 
1013
 
 
1014
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1015
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1016
    ac_prev=cache_file ;;
 
1017
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1018
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1019
    cache_file=$ac_optarg ;;
 
1020
 
 
1021
  --config-cache | -C)
 
1022
    cache_file=config.cache ;;
 
1023
 
 
1024
  -datadir | --datadir | --datadi | --datad)
 
1025
    ac_prev=datadir ;;
 
1026
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1027
    datadir=$ac_optarg ;;
 
1028
 
 
1029
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1030
  | --dataroo | --dataro | --datar)
 
1031
    ac_prev=datarootdir ;;
 
1032
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1033
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1034
    datarootdir=$ac_optarg ;;
 
1035
 
 
1036
  -disable-* | --disable-*)
 
1037
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1038
    # Reject names that are not valid shell variable names.
 
1039
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1040
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1041
   { (exit 1); exit 1; }; }
 
1042
    ac_useropt_orig=$ac_useropt
 
1043
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1044
    case $ac_user_opts in
 
1045
      *"
 
1046
"enable_$ac_useropt"
 
1047
"*) ;;
 
1048
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1049
         ac_unrecognized_sep=', ';;
 
1050
    esac
 
1051
    eval enable_$ac_useropt=no ;;
 
1052
 
 
1053
  -docdir | --docdir | --docdi | --doc | --do)
 
1054
    ac_prev=docdir ;;
 
1055
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1056
    docdir=$ac_optarg ;;
 
1057
 
 
1058
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1059
    ac_prev=dvidir ;;
 
1060
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1061
    dvidir=$ac_optarg ;;
 
1062
 
 
1063
  -enable-* | --enable-*)
 
1064
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1065
    # Reject names that are not valid shell variable names.
 
1066
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1067
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1068
   { (exit 1); exit 1; }; }
 
1069
    ac_useropt_orig=$ac_useropt
 
1070
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1071
    case $ac_user_opts in
 
1072
      *"
 
1073
"enable_$ac_useropt"
 
1074
"*) ;;
 
1075
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1076
         ac_unrecognized_sep=', ';;
 
1077
    esac
 
1078
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1079
 
 
1080
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1081
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1082
  | --exec | --exe | --ex)
 
1083
    ac_prev=exec_prefix ;;
 
1084
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1085
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1086
  | --exec=* | --exe=* | --ex=*)
 
1087
    exec_prefix=$ac_optarg ;;
 
1088
 
 
1089
  -gas | --gas | --ga | --g)
 
1090
    # Obsolete; use --with-gas.
 
1091
    with_gas=yes ;;
 
1092
 
 
1093
  -help | --help | --hel | --he | -h)
 
1094
    ac_init_help=long ;;
 
1095
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1096
    ac_init_help=recursive ;;
 
1097
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1098
    ac_init_help=short ;;
 
1099
 
 
1100
  -host | --host | --hos | --ho)
 
1101
    ac_prev=host_alias ;;
 
1102
  -host=* | --host=* | --hos=* | --ho=*)
 
1103
    host_alias=$ac_optarg ;;
 
1104
 
 
1105
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1106
    ac_prev=htmldir ;;
 
1107
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1108
  | --ht=*)
 
1109
    htmldir=$ac_optarg ;;
 
1110
 
 
1111
  -includedir | --includedir | --includedi | --included | --include \
 
1112
  | --includ | --inclu | --incl | --inc)
 
1113
    ac_prev=includedir ;;
 
1114
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1115
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1116
    includedir=$ac_optarg ;;
 
1117
 
 
1118
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1119
    ac_prev=infodir ;;
 
1120
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1121
    infodir=$ac_optarg ;;
 
1122
 
 
1123
  -libdir | --libdir | --libdi | --libd)
 
1124
    ac_prev=libdir ;;
 
1125
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1126
    libdir=$ac_optarg ;;
 
1127
 
 
1128
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1129
  | --libexe | --libex | --libe)
 
1130
    ac_prev=libexecdir ;;
 
1131
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1132
  | --libexe=* | --libex=* | --libe=*)
 
1133
    libexecdir=$ac_optarg ;;
 
1134
 
 
1135
  -localedir | --localedir | --localedi | --localed | --locale)
 
1136
    ac_prev=localedir ;;
 
1137
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1138
    localedir=$ac_optarg ;;
 
1139
 
 
1140
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1141
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1142
    ac_prev=localstatedir ;;
 
1143
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1144
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1145
    localstatedir=$ac_optarg ;;
 
1146
 
 
1147
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1148
    ac_prev=mandir ;;
 
1149
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1150
    mandir=$ac_optarg ;;
 
1151
 
 
1152
  -nfp | --nfp | --nf)
 
1153
    # Obsolete; use --without-fp.
 
1154
    with_fp=no ;;
 
1155
 
 
1156
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1157
  | --no-cr | --no-c | -n)
 
1158
    no_create=yes ;;
 
1159
 
 
1160
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1161
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1162
    no_recursion=yes ;;
 
1163
 
 
1164
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1165
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1166
  | --oldin | --oldi | --old | --ol | --o)
 
1167
    ac_prev=oldincludedir ;;
 
1168
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1169
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1170
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1171
    oldincludedir=$ac_optarg ;;
 
1172
 
 
1173
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1174
    ac_prev=prefix ;;
 
1175
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1176
    prefix=$ac_optarg ;;
 
1177
 
 
1178
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1179
  | --program-pre | --program-pr | --program-p)
 
1180
    ac_prev=program_prefix ;;
 
1181
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1182
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1183
    program_prefix=$ac_optarg ;;
 
1184
 
 
1185
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1186
  | --program-suf | --program-su | --program-s)
 
1187
    ac_prev=program_suffix ;;
 
1188
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1189
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1190
    program_suffix=$ac_optarg ;;
 
1191
 
 
1192
  -program-transform-name | --program-transform-name \
 
1193
  | --program-transform-nam | --program-transform-na \
 
1194
  | --program-transform-n | --program-transform- \
 
1195
  | --program-transform | --program-transfor \
 
1196
  | --program-transfo | --program-transf \
 
1197
  | --program-trans | --program-tran \
 
1198
  | --progr-tra | --program-tr | --program-t)
 
1199
    ac_prev=program_transform_name ;;
 
1200
  -program-transform-name=* | --program-transform-name=* \
 
1201
  | --program-transform-nam=* | --program-transform-na=* \
 
1202
  | --program-transform-n=* | --program-transform-=* \
 
1203
  | --program-transform=* | --program-transfor=* \
 
1204
  | --program-transfo=* | --program-transf=* \
 
1205
  | --program-trans=* | --program-tran=* \
 
1206
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1207
    program_transform_name=$ac_optarg ;;
 
1208
 
 
1209
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1210
    ac_prev=pdfdir ;;
 
1211
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1212
    pdfdir=$ac_optarg ;;
 
1213
 
 
1214
  -psdir | --psdir | --psdi | --psd | --ps)
 
1215
    ac_prev=psdir ;;
 
1216
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1217
    psdir=$ac_optarg ;;
 
1218
 
 
1219
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1220
  | -silent | --silent | --silen | --sile | --sil)
 
1221
    silent=yes ;;
 
1222
 
 
1223
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1224
    ac_prev=sbindir ;;
 
1225
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1226
  | --sbi=* | --sb=*)
 
1227
    sbindir=$ac_optarg ;;
 
1228
 
 
1229
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1230
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1231
  | --sharedst | --shareds | --shared | --share | --shar \
 
1232
  | --sha | --sh)
 
1233
    ac_prev=sharedstatedir ;;
 
1234
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1235
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1236
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1237
  | --sha=* | --sh=*)
 
1238
    sharedstatedir=$ac_optarg ;;
 
1239
 
 
1240
  -site | --site | --sit)
 
1241
    ac_prev=site ;;
 
1242
  -site=* | --site=* | --sit=*)
 
1243
    site=$ac_optarg ;;
 
1244
 
 
1245
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1246
    ac_prev=srcdir ;;
 
1247
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1248
    srcdir=$ac_optarg ;;
 
1249
 
 
1250
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1251
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1252
    ac_prev=sysconfdir ;;
 
1253
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1254
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1255
    sysconfdir=$ac_optarg ;;
 
1256
 
 
1257
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1258
    ac_prev=target_alias ;;
 
1259
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1260
    target_alias=$ac_optarg ;;
 
1261
 
 
1262
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1263
    verbose=yes ;;
 
1264
 
 
1265
  -version | --version | --versio | --versi | --vers | -V)
 
1266
    ac_init_version=: ;;
 
1267
 
 
1268
  -with-* | --with-*)
 
1269
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1270
    # Reject names that are not valid shell variable names.
 
1271
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1272
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1273
   { (exit 1); exit 1; }; }
 
1274
    ac_useropt_orig=$ac_useropt
 
1275
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1276
    case $ac_user_opts in
 
1277
      *"
 
1278
"with_$ac_useropt"
 
1279
"*) ;;
 
1280
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1281
         ac_unrecognized_sep=', ';;
 
1282
    esac
 
1283
    eval with_$ac_useropt=\$ac_optarg ;;
 
1284
 
 
1285
  -without-* | --without-*)
 
1286
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1287
    # Reject names that are not valid shell variable names.
 
1288
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1289
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1290
   { (exit 1); exit 1; }; }
 
1291
    ac_useropt_orig=$ac_useropt
 
1292
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1293
    case $ac_user_opts in
 
1294
      *"
 
1295
"with_$ac_useropt"
 
1296
"*) ;;
 
1297
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1298
         ac_unrecognized_sep=', ';;
 
1299
    esac
 
1300
    eval with_$ac_useropt=no ;;
 
1301
 
 
1302
  --x)
 
1303
    # Obsolete; use --with-x.
 
1304
    with_x=yes ;;
 
1305
 
 
1306
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1307
  | --x-incl | --x-inc | --x-in | --x-i)
 
1308
    ac_prev=x_includes ;;
 
1309
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1310
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1311
    x_includes=$ac_optarg ;;
 
1312
 
 
1313
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1314
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1315
    ac_prev=x_libraries ;;
 
1316
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1317
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1318
    x_libraries=$ac_optarg ;;
 
1319
 
 
1320
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1321
Try \`$0 --help' for more information." >&2
 
1322
   { (exit 1); exit 1; }; }
 
1323
    ;;
 
1324
 
 
1325
  *=*)
 
1326
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1327
    # Reject names that are not valid shell variable names.
 
1328
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1329
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1330
   { (exit 1); exit 1; }; }
 
1331
    eval $ac_envvar=\$ac_optarg
 
1332
    export $ac_envvar ;;
 
1333
 
 
1334
  *)
 
1335
    # FIXME: should be removed in autoconf 3.0.
 
1336
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1337
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1338
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1339
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1340
    ;;
 
1341
 
 
1342
  esac
 
1343
done
 
1344
 
 
1345
if test -n "$ac_prev"; then
 
1346
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1347
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1348
   { (exit 1); exit 1; }; }
 
1349
fi
 
1350
 
 
1351
if test -n "$ac_unrecognized_opts"; then
 
1352
  case $enable_option_checking in
 
1353
    no) ;;
 
1354
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1355
   { (exit 1); exit 1; }; } ;;
 
1356
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1357
  esac
 
1358
fi
 
1359
 
 
1360
# Check all directory arguments for consistency.
 
1361
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1362
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1363
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1364
                libdir localedir mandir
 
1365
do
 
1366
  eval ac_val=\$$ac_var
 
1367
  # Remove trailing slashes.
 
1368
  case $ac_val in
 
1369
    */ )
 
1370
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1371
      eval $ac_var=\$ac_val;;
 
1372
  esac
 
1373
  # Be sure to have absolute directory names.
 
1374
  case $ac_val in
 
1375
    [\\/$]* | ?:[\\/]* )  continue;;
 
1376
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1377
  esac
 
1378
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
done
 
1381
 
 
1382
# There might be people who depend on the old broken behavior: `$host'
 
1383
# used to hold the argument of --host etc.
 
1384
# FIXME: To remove some day.
 
1385
build=$build_alias
 
1386
host=$host_alias
 
1387
target=$target_alias
 
1388
 
 
1389
# FIXME: To remove some day.
 
1390
if test "x$host_alias" != x; then
 
1391
  if test "x$build_alias" = x; then
 
1392
    cross_compiling=maybe
 
1393
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1394
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1395
  elif test "x$build_alias" != "x$host_alias"; then
 
1396
    cross_compiling=yes
 
1397
  fi
 
1398
fi
 
1399
 
 
1400
ac_tool_prefix=
 
1401
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1402
 
 
1403
test "$silent" = yes && exec 6>/dev/null
 
1404
 
 
1405
 
 
1406
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1407
ac_ls_di=`ls -di .` &&
 
1408
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1409
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1410
   { (exit 1); exit 1; }; }
 
1411
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1412
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1413
   { (exit 1); exit 1; }; }
 
1414
 
 
1415
 
 
1416
# Find the source files, if location was not specified.
 
1417
if test -z "$srcdir"; then
 
1418
  ac_srcdir_defaulted=yes
 
1419
  # Try the directory containing this script, then the parent directory.
 
1420
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1421
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1422
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1423
         X"$as_myself" : 'X\(//\)$' \| \
 
1424
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1425
$as_echo X"$as_myself" |
 
1426
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1427
            s//\1/
 
1428
            q
 
1429
          }
 
1430
          /^X\(\/\/\)[^/].*/{
 
1431
            s//\1/
 
1432
            q
 
1433
          }
 
1434
          /^X\(\/\/\)$/{
 
1435
            s//\1/
 
1436
            q
 
1437
          }
 
1438
          /^X\(\/\).*/{
 
1439
            s//\1/
 
1440
            q
 
1441
          }
 
1442
          s/.*/./; q'`
 
1443
  srcdir=$ac_confdir
 
1444
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1445
    srcdir=..
 
1446
  fi
 
1447
else
 
1448
  ac_srcdir_defaulted=no
 
1449
fi
 
1450
if test ! -r "$srcdir/$ac_unique_file"; then
 
1451
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1452
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1453
   { (exit 1); exit 1; }; }
 
1454
fi
 
1455
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1456
ac_abs_confdir=`(
 
1457
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1458
   { (exit 1); exit 1; }; }
 
1459
        pwd)`
 
1460
# When building in place, set srcdir=.
 
1461
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1462
  srcdir=.
 
1463
fi
 
1464
# Remove unnecessary trailing slashes from srcdir.
 
1465
# Double slashes in file names in object file debugging info
 
1466
# mess up M-x gdb in Emacs.
 
1467
case $srcdir in
 
1468
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1469
esac
 
1470
for ac_var in $ac_precious_vars; do
 
1471
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1472
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1473
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1474
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1475
done
 
1476
 
 
1477
#
 
1478
# Report the --help message.
 
1479
#
 
1480
if test "$ac_init_help" = "long"; then
 
1481
  # Omit some internal or obsolete options to make the list less imposing.
 
1482
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1483
  cat <<_ACEOF
 
1484
\`configure' configures libltdl 2.2.6 to adapt to many kinds of systems.
 
1485
 
 
1486
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1487
 
 
1488
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1489
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1490
 
 
1491
Defaults for the options are specified in brackets.
 
1492
 
 
1493
Configuration:
 
1494
  -h, --help              display this help and exit
 
1495
      --help=short        display options specific to this package
 
1496
      --help=recursive    display the short help of all the included packages
 
1497
  -V, --version           display version information and exit
 
1498
  -q, --quiet, --silent   do not print \`checking...' messages
 
1499
      --cache-file=FILE   cache test results in FILE [disabled]
 
1500
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1501
  -n, --no-create         do not create output files
 
1502
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1503
 
 
1504
Installation directories:
 
1505
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1506
                          [$ac_default_prefix]
 
1507
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1508
                          [PREFIX]
 
1509
 
 
1510
By default, \`make install' will install all the files in
 
1511
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1512
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1513
for instance \`--prefix=\$HOME'.
 
1514
 
 
1515
For better control, use the options below.
 
1516
 
 
1517
Fine tuning of the installation directories:
 
1518
  --bindir=DIR            user executables [EPREFIX/bin]
 
1519
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1520
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1521
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1522
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1523
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1524
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1525
  --includedir=DIR        C header files [PREFIX/include]
 
1526
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1527
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1528
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1529
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1530
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1531
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1532
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
 
1533
  --htmldir=DIR           html documentation [DOCDIR]
 
1534
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1535
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1536
  --psdir=DIR             ps documentation [DOCDIR]
 
1537
_ACEOF
 
1538
 
 
1539
  cat <<\_ACEOF
 
1540
 
 
1541
Program names:
 
1542
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1543
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1544
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1545
 
 
1546
System types:
 
1547
  --build=BUILD     configure for building on BUILD [guessed]
 
1548
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1549
_ACEOF
 
1550
fi
 
1551
 
 
1552
if test -n "$ac_init_help"; then
 
1553
  case $ac_init_help in
 
1554
     short | recursive ) echo "Configuration of libltdl 2.2.6:";;
 
1555
   esac
 
1556
  cat <<\_ACEOF
 
1557
 
 
1558
Optional Features:
 
1559
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1560
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1561
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1562
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1563
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1564
  --enable-fast-install[=PKGS]
 
1565
                          optimize for fast installation [default=yes]
 
1566
  --disable-dependency-tracking  speeds up one-time build
 
1567
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1568
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1569
  --enable-ltdl-install   install libltdl
 
1570
 
 
1571
Optional Packages:
 
1572
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1573
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1574
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1575
                          both]
 
1576
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1577
 
 
1578
Some influential environment variables:
 
1579
  CC          C compiler command
 
1580
  CFLAGS      C compiler flags
 
1581
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1582
              nonstandard directory <lib dir>
 
1583
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1584
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1585
              you have headers in a nonstandard directory <include dir>
 
1586
  CPP         C preprocessor
 
1587
 
 
1588
Use these variables to override the choices made by `configure' or to help
 
1589
it to find libraries and programs with nonstandard names/locations.
 
1590
 
 
1591
Report bugs to <bug-libtool@gnu.org>.
 
1592
_ACEOF
 
1593
ac_status=$?
 
1594
fi
 
1595
 
 
1596
if test "$ac_init_help" = "recursive"; then
 
1597
  # If there are subdirs, report their specific --help.
 
1598
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1599
    test -d "$ac_dir" ||
 
1600
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1601
      continue
 
1602
    ac_builddir=.
 
1603
 
 
1604
case "$ac_dir" in
 
1605
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1606
*)
 
1607
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1608
  # A ".." for each directory in $ac_dir_suffix.
 
1609
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1610
  case $ac_top_builddir_sub in
 
1611
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1612
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1613
  esac ;;
 
1614
esac
 
1615
ac_abs_top_builddir=$ac_pwd
 
1616
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1617
# for backward compatibility:
 
1618
ac_top_builddir=$ac_top_build_prefix
 
1619
 
 
1620
case $srcdir in
 
1621
  .)  # We are building in place.
 
1622
    ac_srcdir=.
 
1623
    ac_top_srcdir=$ac_top_builddir_sub
 
1624
    ac_abs_top_srcdir=$ac_pwd ;;
 
1625
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1626
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1627
    ac_top_srcdir=$srcdir
 
1628
    ac_abs_top_srcdir=$srcdir ;;
 
1629
  *) # Relative name.
 
1630
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1631
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1632
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1633
esac
 
1634
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1635
 
 
1636
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1637
    # Check for guested configure.
 
1638
    if test -f "$ac_srcdir/configure.gnu"; then
 
1639
      echo &&
 
1640
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1641
    elif test -f "$ac_srcdir/configure"; then
 
1642
      echo &&
 
1643
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1644
    else
 
1645
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1646
    fi || ac_status=$?
 
1647
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1648
  done
 
1649
fi
 
1650
 
 
1651
test -n "$ac_init_help" && exit $ac_status
 
1652
if $ac_init_version; then
 
1653
  cat <<\_ACEOF
 
1654
libltdl configure 2.2.6
 
1655
generated by GNU Autoconf 2.63
 
1656
 
 
1657
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1658
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1659
This configure script is free software; the Free Software Foundation
 
1660
gives unlimited permission to copy, distribute and modify it.
 
1661
_ACEOF
 
1662
  exit
 
1663
fi
 
1664
cat >config.log <<_ACEOF
 
1665
This file contains any messages produced by compilers while
 
1666
running configure, to aid debugging if configure makes a mistake.
 
1667
 
 
1668
It was created by libltdl $as_me 2.2.6, which was
 
1669
generated by GNU Autoconf 2.63.  Invocation command line was
 
1670
 
 
1671
  $ $0 $@
 
1672
 
 
1673
_ACEOF
 
1674
exec 5>>config.log
 
1675
{
 
1676
cat <<_ASUNAME
 
1677
## --------- ##
 
1678
## Platform. ##
 
1679
## --------- ##
 
1680
 
 
1681
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1682
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1683
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1684
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1685
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1686
 
 
1687
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1688
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1689
 
 
1690
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1691
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1692
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1693
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1694
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1695
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1696
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1697
 
 
1698
_ASUNAME
 
1699
 
 
1700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1701
for as_dir in $PATH
 
1702
do
 
1703
  IFS=$as_save_IFS
 
1704
  test -z "$as_dir" && as_dir=.
 
1705
  $as_echo "PATH: $as_dir"
 
1706
done
 
1707
IFS=$as_save_IFS
 
1708
 
 
1709
} >&5
 
1710
 
 
1711
cat >&5 <<_ACEOF
 
1712
 
 
1713
 
 
1714
## ----------- ##
 
1715
## Core tests. ##
 
1716
## ----------- ##
 
1717
 
 
1718
_ACEOF
 
1719
 
 
1720
 
 
1721
# Keep a trace of the command line.
 
1722
# Strip out --no-create and --no-recursion so they do not pile up.
 
1723
# Strip out --silent because we don't want to record it for future runs.
 
1724
# Also quote any args containing shell meta-characters.
 
1725
# Make two passes to allow for proper duplicate-argument suppression.
 
1726
ac_configure_args=
 
1727
ac_configure_args0=
 
1728
ac_configure_args1=
 
1729
ac_must_keep_next=false
 
1730
for ac_pass in 1 2
 
1731
do
 
1732
  for ac_arg
 
1733
  do
 
1734
    case $ac_arg in
 
1735
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1736
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1737
    | -silent | --silent | --silen | --sile | --sil)
 
1738
      continue ;;
 
1739
    *\'*)
 
1740
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1741
    esac
 
1742
    case $ac_pass in
 
1743
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1744
    2)
 
1745
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1746
      if test $ac_must_keep_next = true; then
 
1747
        ac_must_keep_next=false # Got value, back to normal.
 
1748
      else
 
1749
        case $ac_arg in
 
1750
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1751
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1752
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1753
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1754
            case "$ac_configure_args0 " in
 
1755
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1756
            esac
 
1757
            ;;
 
1758
          -* ) ac_must_keep_next=true ;;
 
1759
        esac
 
1760
      fi
 
1761
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1762
      ;;
 
1763
    esac
 
1764
  done
 
1765
done
 
1766
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1767
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1768
 
 
1769
# When interrupted or exit'd, cleanup temporary files, and complete
 
1770
# config.log.  We remove comments because anyway the quotes in there
 
1771
# would cause problems or look ugly.
 
1772
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1773
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1774
trap 'exit_status=$?
 
1775
  # Save into config.log some information that might help in debugging.
 
1776
  {
 
1777
    echo
 
1778
 
 
1779
    cat <<\_ASBOX
 
1780
## ---------------- ##
 
1781
## Cache variables. ##
 
1782
## ---------------- ##
 
1783
_ASBOX
 
1784
    echo
 
1785
    # The following way of writing the cache mishandles newlines in values,
 
1786
(
 
1787
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1788
    eval ac_val=\$$ac_var
 
1789
    case $ac_val in #(
 
1790
    *${as_nl}*)
 
1791
      case $ac_var in #(
 
1792
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1793
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1794
      esac
 
1795
      case $ac_var in #(
 
1796
      _ | IFS | as_nl) ;; #(
 
1797
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1798
      *) $as_unset $ac_var ;;
 
1799
      esac ;;
 
1800
    esac
 
1801
  done
 
1802
  (set) 2>&1 |
 
1803
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1804
    *${as_nl}ac_space=\ *)
 
1805
      sed -n \
 
1806
        "s/'\''/'\''\\\\'\'''\''/g;
 
1807
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1808
      ;; #(
 
1809
    *)
 
1810
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1811
      ;;
 
1812
    esac |
 
1813
    sort
 
1814
)
 
1815
    echo
 
1816
 
 
1817
    cat <<\_ASBOX
 
1818
## ----------------- ##
 
1819
## Output variables. ##
 
1820
## ----------------- ##
 
1821
_ASBOX
 
1822
    echo
 
1823
    for ac_var in $ac_subst_vars
 
1824
    do
 
1825
      eval ac_val=\$$ac_var
 
1826
      case $ac_val in
 
1827
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1828
      esac
 
1829
      $as_echo "$ac_var='\''$ac_val'\''"
 
1830
    done | sort
 
1831
    echo
 
1832
 
 
1833
    if test -n "$ac_subst_files"; then
 
1834
      cat <<\_ASBOX
 
1835
## ------------------- ##
 
1836
## File substitutions. ##
 
1837
## ------------------- ##
 
1838
_ASBOX
 
1839
      echo
 
1840
      for ac_var in $ac_subst_files
 
1841
      do
 
1842
        eval ac_val=\$$ac_var
 
1843
        case $ac_val in
 
1844
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1845
        esac
 
1846
        $as_echo "$ac_var='\''$ac_val'\''"
 
1847
      done | sort
 
1848
      echo
 
1849
    fi
 
1850
 
 
1851
    if test -s confdefs.h; then
 
1852
      cat <<\_ASBOX
 
1853
## ----------- ##
 
1854
## confdefs.h. ##
 
1855
## ----------- ##
 
1856
_ASBOX
 
1857
      echo
 
1858
      cat confdefs.h
 
1859
      echo
 
1860
    fi
 
1861
    test "$ac_signal" != 0 &&
 
1862
      $as_echo "$as_me: caught signal $ac_signal"
 
1863
    $as_echo "$as_me: exit $exit_status"
 
1864
  } >&5
 
1865
  rm -f core *.core core.conftest.* &&
 
1866
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1867
    exit $exit_status
 
1868
' 0
 
1869
for ac_signal in 1 2 13 15; do
 
1870
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1871
done
 
1872
ac_signal=0
 
1873
 
 
1874
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1875
rm -f -r conftest* confdefs.h
 
1876
 
 
1877
# Predefined preprocessor variables.
 
1878
 
 
1879
cat >>confdefs.h <<_ACEOF
 
1880
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1881
_ACEOF
 
1882
 
 
1883
 
 
1884
cat >>confdefs.h <<_ACEOF
 
1885
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1886
_ACEOF
 
1887
 
 
1888
 
 
1889
cat >>confdefs.h <<_ACEOF
 
1890
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1891
_ACEOF
 
1892
 
 
1893
 
 
1894
cat >>confdefs.h <<_ACEOF
 
1895
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1896
_ACEOF
 
1897
 
 
1898
 
 
1899
cat >>confdefs.h <<_ACEOF
 
1900
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1901
_ACEOF
 
1902
 
 
1903
 
 
1904
# Let the site file select an alternate cache file if it wants to.
 
1905
# Prefer an explicitly selected file to automatically selected ones.
 
1906
ac_site_file1=NONE
 
1907
ac_site_file2=NONE
 
1908
if test -n "$CONFIG_SITE"; then
 
1909
  ac_site_file1=$CONFIG_SITE
 
1910
elif test "x$prefix" != xNONE; then
 
1911
  ac_site_file1=$prefix/share/config.site
 
1912
  ac_site_file2=$prefix/etc/config.site
 
1913
else
 
1914
  ac_site_file1=$ac_default_prefix/share/config.site
 
1915
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1916
fi
 
1917
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1918
do
 
1919
  test "x$ac_site_file" = xNONE && continue
 
1920
  if test -r "$ac_site_file"; then
 
1921
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1922
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1923
    sed 's/^/| /' "$ac_site_file" >&5
 
1924
    . "$ac_site_file"
 
1925
  fi
 
1926
done
 
1927
 
 
1928
if test -r "$cache_file"; then
 
1929
  # Some versions of bash will fail to source /dev/null (special
 
1930
  # files actually), so we avoid doing that.
 
1931
  if test -f "$cache_file"; then
 
1932
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1933
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1934
    case $cache_file in
 
1935
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1936
      *)                      . "./$cache_file";;
 
1937
    esac
 
1938
  fi
 
1939
else
 
1940
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1941
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1942
  >$cache_file
 
1943
fi
 
1944
 
 
1945
# Check that the precious variables saved in the cache have kept the same
 
1946
# value.
 
1947
ac_cache_corrupted=false
 
1948
for ac_var in $ac_precious_vars; do
 
1949
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1950
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1951
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1952
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1953
  case $ac_old_set,$ac_new_set in
 
1954
    set,)
 
1955
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1956
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1957
      ac_cache_corrupted=: ;;
 
1958
    ,set)
 
1959
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1960
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1961
      ac_cache_corrupted=: ;;
 
1962
    ,);;
 
1963
    *)
 
1964
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1965
        # differences in whitespace do not lead to failure.
 
1966
        ac_old_val_w=`echo x $ac_old_val`
 
1967
        ac_new_val_w=`echo x $ac_new_val`
 
1968
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1969
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1970
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1971
          ac_cache_corrupted=:
 
1972
        else
 
1973
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1974
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1975
          eval $ac_var=\$ac_old_val
 
1976
        fi
 
1977
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1978
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1979
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1980
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1981
      fi;;
 
1982
  esac
 
1983
  # Pass precious variables to config.status.
 
1984
  if test "$ac_new_set" = set; then
 
1985
    case $ac_new_val in
 
1986
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1987
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1988
    esac
 
1989
    case " $ac_configure_args " in
 
1990
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1991
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1992
    esac
 
1993
  fi
 
1994
done
 
1995
if $ac_cache_corrupted; then
 
1996
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1997
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1998
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1999
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2000
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2001
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2002
   { (exit 1); exit 1; }; }
 
2003
fi
 
2004
 
 
2005
 
 
2006
 
 
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
 
 
2012
 
 
2013
 
 
2014
 
 
2015
 
 
2016
 
 
2017
 
 
2018
 
 
2019
 
 
2020
 
 
2021
 
 
2022
 
 
2023
 
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
ac_ext=c
 
2030
ac_cpp='$CPP $CPPFLAGS'
 
2031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2034
 
 
2035
 
 
2036
ac_config_headers="$ac_config_headers config.h:config-h.in"
 
2037
 
 
2038
 
 
2039
ac_aux_dir=
 
2040
for ac_dir in config "$srcdir"/config; do
 
2041
  if test -f "$ac_dir/install-sh"; then
 
2042
    ac_aux_dir=$ac_dir
 
2043
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2044
    break
 
2045
  elif test -f "$ac_dir/install.sh"; then
 
2046
    ac_aux_dir=$ac_dir
 
2047
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2048
    break
 
2049
  elif test -f "$ac_dir/shtool"; then
 
2050
    ac_aux_dir=$ac_dir
 
2051
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2052
    break
 
2053
  fi
 
2054
done
 
2055
if test -z "$ac_aux_dir"; then
 
2056
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
 
2057
$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
 
2058
   { (exit 1); exit 1; }; }
 
2059
fi
 
2060
 
 
2061
# These three variables are undocumented and unsupported,
 
2062
# and are intended to be withdrawn in a future Autoconf release.
 
2063
# They can cause serious problems if a builder's source tree is in a directory
 
2064
# whose full name contains unusual characters.
 
2065
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2066
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2067
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
 
 
2075
 
 
2076
 # I am me!
 
2077
 
 
2078
 
 
2079
## ------------------------ ##
 
2080
## Automake Initialisation. ##
 
2081
## ------------------------ ##
 
2082
 
 
2083
am__api_version='1.10'
 
2084
 
 
2085
# Find a good install program.  We prefer a C program (faster),
 
2086
# so one script is as good as another.  But avoid the broken or
 
2087
# incompatible versions:
 
2088
# SysV /etc/install, /usr/sbin/install
 
2089
# SunOS /usr/etc/install
 
2090
# IRIX /sbin/install
 
2091
# AIX /bin/install
 
2092
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2093
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2094
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2095
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2096
# OS/2's system install, which has a completely different semantic
 
2097
# ./install, which can be erroneously created by make from ./install.sh.
 
2098
# Reject install programs that cannot install multiple files.
 
2099
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2100
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2101
if test -z "$INSTALL"; then
 
2102
if test "${ac_cv_path_install+set}" = set; then
 
2103
  $as_echo_n "(cached) " >&6
 
2104
else
 
2105
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2106
for as_dir in $PATH
 
2107
do
 
2108
  IFS=$as_save_IFS
 
2109
  test -z "$as_dir" && as_dir=.
 
2110
  # Account for people who put trailing slashes in PATH elements.
 
2111
case $as_dir/ in
 
2112
  ./ | .// | /cC/* | \
 
2113
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2114
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2115
  /usr/ucb/* ) ;;
 
2116
  *)
 
2117
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2118
    # Don't use installbsd from OSF since it installs stuff as root
 
2119
    # by default.
 
2120
    for ac_prog in ginstall scoinst install; do
 
2121
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2122
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2123
          if test $ac_prog = install &&
 
2124
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2125
            # AIX install.  It has an incompatible calling convention.
 
2126
            :
 
2127
          elif test $ac_prog = install &&
 
2128
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2129
            # program-specific install script used by HP pwplus--don't use.
 
2130
            :
 
2131
          else
 
2132
            rm -rf conftest.one conftest.two conftest.dir
 
2133
            echo one > conftest.one
 
2134
            echo two > conftest.two
 
2135
            mkdir conftest.dir
 
2136
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2137
              test -s conftest.one && test -s conftest.two &&
 
2138
              test -s conftest.dir/conftest.one &&
 
2139
              test -s conftest.dir/conftest.two
 
2140
            then
 
2141
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2142
              break 3
 
2143
            fi
 
2144
          fi
 
2145
        fi
 
2146
      done
 
2147
    done
 
2148
    ;;
 
2149
esac
 
2150
 
 
2151
done
 
2152
IFS=$as_save_IFS
 
2153
 
 
2154
rm -rf conftest.one conftest.two conftest.dir
 
2155
 
 
2156
fi
 
2157
  if test "${ac_cv_path_install+set}" = set; then
 
2158
    INSTALL=$ac_cv_path_install
 
2159
  else
 
2160
    # As a last resort, use the slow shell script.  Don't cache a
 
2161
    # value for INSTALL within a source directory, because that will
 
2162
    # break other packages using the cache if that directory is
 
2163
    # removed, or if the value is a relative name.
 
2164
    INSTALL=$ac_install_sh
 
2165
  fi
 
2166
fi
 
2167
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2168
$as_echo "$INSTALL" >&6; }
 
2169
 
 
2170
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2171
# It thinks the first close brace ends the variable substitution.
 
2172
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2173
 
 
2174
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2175
 
 
2176
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2177
 
 
2178
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2179
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2180
# Just in case
 
2181
sleep 1
 
2182
echo timestamp > conftest.file
 
2183
# Do `set' in a subshell so we don't clobber the current shell's
 
2184
# arguments.  Must try -L first in case configure is actually a
 
2185
# symlink; some systems play weird games with the mod time of symlinks
 
2186
# (eg FreeBSD returns the mod time of the symlink's containing
 
2187
# directory).
 
2188
if (
 
2189
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2190
   if test "$*" = "X"; then
 
2191
      # -L didn't work.
 
2192
      set X `ls -t $srcdir/configure conftest.file`
 
2193
   fi
 
2194
   rm -f conftest.file
 
2195
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2196
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2197
 
 
2198
      # If neither matched, then we have a broken ls.  This can happen
 
2199
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2200
      # broken ls alias from the environment.  This has actually
 
2201
      # happened.  Such a system could not be considered "sane".
 
2202
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2203
alias in your environment" >&5
 
2204
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2205
alias in your environment" >&2;}
 
2206
   { (exit 1); exit 1; }; }
 
2207
   fi
 
2208
 
 
2209
   test "$2" = conftest.file
 
2210
   )
 
2211
then
 
2212
   # Ok.
 
2213
   :
 
2214
else
 
2215
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2216
Check your system clock" >&5
 
2217
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2218
Check your system clock" >&2;}
 
2219
   { (exit 1); exit 1; }; }
 
2220
fi
 
2221
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2222
$as_echo "yes" >&6; }
 
2223
test "$program_prefix" != NONE &&
 
2224
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2225
# Use a double $ so make ignores it.
 
2226
test "$program_suffix" != NONE &&
 
2227
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2228
# Double any \ or $.
 
2229
# By default was `s,x,x', remove it if useless.
 
2230
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2231
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2232
 
 
2233
# expand $ac_aux_dir to an absolute path
 
2234
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2235
 
 
2236
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2237
# Use eval to expand $SHELL
 
2238
if eval "$MISSING --run true"; then
 
2239
  am_missing_run="$MISSING --run "
 
2240
else
 
2241
  am_missing_run=
 
2242
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2243
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2244
fi
 
2245
 
 
2246
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2247
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2248
if test -z "$MKDIR_P"; then
 
2249
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2250
  $as_echo_n "(cached) " >&6
 
2251
else
 
2252
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2253
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2254
do
 
2255
  IFS=$as_save_IFS
 
2256
  test -z "$as_dir" && as_dir=.
 
2257
  for ac_prog in mkdir gmkdir; do
 
2258
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2259
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2260
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2261
             'mkdir (GNU coreutils) '* | \
 
2262
             'mkdir (coreutils) '* | \
 
2263
             'mkdir (fileutils) '4.1*)
 
2264
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2265
               break 3;;
 
2266
           esac
 
2267
         done
 
2268
       done
 
2269
done
 
2270
IFS=$as_save_IFS
 
2271
 
 
2272
fi
 
2273
 
 
2274
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2275
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2276
  else
 
2277
    # As a last resort, use the slow shell script.  Don't cache a
 
2278
    # value for MKDIR_P within a source directory, because that will
 
2279
    # break other packages using the cache if that directory is
 
2280
    # removed, or if the value is a relative name.
 
2281
    test -d ./--version && rmdir ./--version
 
2282
    MKDIR_P="$ac_install_sh -d"
 
2283
  fi
 
2284
fi
 
2285
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2286
$as_echo "$MKDIR_P" >&6; }
 
2287
 
 
2288
mkdir_p="$MKDIR_P"
 
2289
case $mkdir_p in
 
2290
  [\\/$]* | ?:[\\/]*) ;;
 
2291
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2292
esac
 
2293
 
 
2294
for ac_prog in gawk mawk nawk awk
 
2295
do
 
2296
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2297
set dummy $ac_prog; ac_word=$2
 
2298
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2299
$as_echo_n "checking for $ac_word... " >&6; }
 
2300
if test "${ac_cv_prog_AWK+set}" = set; then
 
2301
  $as_echo_n "(cached) " >&6
 
2302
else
 
2303
  if test -n "$AWK"; then
 
2304
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2305
else
 
2306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2307
for as_dir in $PATH
 
2308
do
 
2309
  IFS=$as_save_IFS
 
2310
  test -z "$as_dir" && as_dir=.
 
2311
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2313
    ac_cv_prog_AWK="$ac_prog"
 
2314
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2315
    break 2
 
2316
  fi
 
2317
done
 
2318
done
 
2319
IFS=$as_save_IFS
 
2320
 
 
2321
fi
 
2322
fi
 
2323
AWK=$ac_cv_prog_AWK
 
2324
if test -n "$AWK"; then
 
2325
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2326
$as_echo "$AWK" >&6; }
 
2327
else
 
2328
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2329
$as_echo "no" >&6; }
 
2330
fi
 
2331
 
 
2332
 
 
2333
  test -n "$AWK" && break
 
2334
done
 
2335
 
 
2336
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2337
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2338
set x ${MAKE-make}
 
2339
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2340
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2341
  $as_echo_n "(cached) " >&6
 
2342
else
 
2343
  cat >conftest.make <<\_ACEOF
 
2344
SHELL = /bin/sh
 
2345
all:
 
2346
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2347
_ACEOF
 
2348
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2349
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2350
  *@@@%%%=?*=@@@%%%*)
 
2351
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2352
  *)
 
2353
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2354
esac
 
2355
rm -f conftest.make
 
2356
fi
 
2357
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2358
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2359
$as_echo "yes" >&6; }
 
2360
  SET_MAKE=
 
2361
else
 
2362
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2363
$as_echo "no" >&6; }
 
2364
  SET_MAKE="MAKE=${MAKE-make}"
 
2365
fi
 
2366
 
 
2367
rm -rf .tst 2>/dev/null
 
2368
mkdir .tst 2>/dev/null
 
2369
if test -d .tst; then
 
2370
  am__leading_dot=.
 
2371
else
 
2372
  am__leading_dot=_
 
2373
fi
 
2374
rmdir .tst 2>/dev/null
 
2375
 
 
2376
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2377
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2378
  # is not polluted with repeated "-I."
 
2379
  am__isrc=' -I$(srcdir)'
 
2380
  # test to see if srcdir already configured
 
2381
  if test -f $srcdir/config.status; then
 
2382
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2383
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2384
   { (exit 1); exit 1; }; }
 
2385
  fi
 
2386
fi
 
2387
 
 
2388
# test whether we have cygpath
 
2389
if test -z "$CYGPATH_W"; then
 
2390
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2391
    CYGPATH_W='cygpath -w'
 
2392
  else
 
2393
    CYGPATH_W=echo
 
2394
  fi
 
2395
fi
 
2396
 
 
2397
 
 
2398
# Define the identity of the package.
 
2399
 PACKAGE='libltdl'
 
2400
 VERSION='2.2.6'
 
2401
 
 
2402
 
 
2403
cat >>confdefs.h <<_ACEOF
 
2404
#define PACKAGE "$PACKAGE"
 
2405
_ACEOF
 
2406
 
 
2407
 
 
2408
cat >>confdefs.h <<_ACEOF
 
2409
#define VERSION "$VERSION"
 
2410
_ACEOF
 
2411
 
 
2412
# Some tools Automake needs.
 
2413
 
 
2414
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2415
 
 
2416
 
 
2417
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2418
 
 
2419
 
 
2420
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2421
 
 
2422
 
 
2423
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2424
 
 
2425
 
 
2426
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2427
 
 
2428
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2429
 
 
2430
# Installed binaries are usually stripped using `strip' when the user
 
2431
# run `make install-strip'.  However `strip' might not be the right
 
2432
# tool to use in cross-compilation environments, therefore Automake
 
2433
# will honor the `STRIP' environment variable to overrule this program.
 
2434
if test "$cross_compiling" != no; then
 
2435
  if test -n "$ac_tool_prefix"; then
 
2436
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2437
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2438
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2439
$as_echo_n "checking for $ac_word... " >&6; }
 
2440
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2441
  $as_echo_n "(cached) " >&6
 
2442
else
 
2443
  if test -n "$STRIP"; then
 
2444
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2445
else
 
2446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2447
for as_dir in $PATH
 
2448
do
 
2449
  IFS=$as_save_IFS
 
2450
  test -z "$as_dir" && as_dir=.
 
2451
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2453
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2454
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2455
    break 2
 
2456
  fi
 
2457
done
 
2458
done
 
2459
IFS=$as_save_IFS
 
2460
 
 
2461
fi
 
2462
fi
 
2463
STRIP=$ac_cv_prog_STRIP
 
2464
if test -n "$STRIP"; then
 
2465
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2466
$as_echo "$STRIP" >&6; }
 
2467
else
 
2468
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2469
$as_echo "no" >&6; }
 
2470
fi
 
2471
 
 
2472
 
 
2473
fi
 
2474
if test -z "$ac_cv_prog_STRIP"; then
 
2475
  ac_ct_STRIP=$STRIP
 
2476
  # Extract the first word of "strip", so it can be a program name with args.
 
2477
set dummy strip; ac_word=$2
 
2478
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2479
$as_echo_n "checking for $ac_word... " >&6; }
 
2480
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2481
  $as_echo_n "(cached) " >&6
 
2482
else
 
2483
  if test -n "$ac_ct_STRIP"; then
 
2484
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2485
else
 
2486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2487
for as_dir in $PATH
 
2488
do
 
2489
  IFS=$as_save_IFS
 
2490
  test -z "$as_dir" && as_dir=.
 
2491
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2492
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2493
    ac_cv_prog_ac_ct_STRIP="strip"
 
2494
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2495
    break 2
 
2496
  fi
 
2497
done
 
2498
done
 
2499
IFS=$as_save_IFS
 
2500
 
 
2501
fi
 
2502
fi
 
2503
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2504
if test -n "$ac_ct_STRIP"; then
 
2505
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2506
$as_echo "$ac_ct_STRIP" >&6; }
 
2507
else
 
2508
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2509
$as_echo "no" >&6; }
 
2510
fi
 
2511
 
 
2512
  if test "x$ac_ct_STRIP" = x; then
 
2513
    STRIP=":"
 
2514
  else
 
2515
    case $cross_compiling:$ac_tool_warned in
 
2516
yes:)
 
2517
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2518
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2519
ac_tool_warned=yes ;;
 
2520
esac
 
2521
    STRIP=$ac_ct_STRIP
 
2522
  fi
 
2523
else
 
2524
  STRIP="$ac_cv_prog_STRIP"
 
2525
fi
 
2526
 
 
2527
fi
 
2528
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2529
 
 
2530
# We need awk for the "check" target.  The system "awk" is bad on
 
2531
# some platforms.
 
2532
# Always define AMTAR for backward compatibility.
 
2533
 
 
2534
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2535
 
 
2536
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2537
 
 
2538
 
 
2539
 
 
2540
 
 
2541
 
 
2542
 
 
2543
 
 
2544
## ------------------------------- ##
 
2545
## Libtool specific configuration. ##
 
2546
## ------------------------------- ##
 
2547
pkgdatadir='${datadir}'"/${PACKAGE}"
 
2548
 
 
2549
 
 
2550
## ----------------------- ##
 
2551
## Libtool initialisation. ##
 
2552
## ----------------------- ##
 
2553
case `pwd` in
 
2554
  *\ * | *\     *)
 
2555
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2556
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2557
esac
 
2558
 
 
2559
 
 
2560
 
 
2561
macro_version='2.2.6'
 
2562
macro_revision='1.3012'
 
2563
 
 
2564
 
 
2565
 
 
2566
 
 
2567
 
 
2568
 
 
2569
 
 
2570
 
 
2571
 
 
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
ltmain="$ac_aux_dir/ltmain.sh"
 
2577
 
 
2578
# Make sure we can run config.sub.
 
2579
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2580
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2581
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2582
   { (exit 1); exit 1; }; }
 
2583
 
 
2584
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2585
$as_echo_n "checking build system type... " >&6; }
 
2586
if test "${ac_cv_build+set}" = set; then
 
2587
  $as_echo_n "(cached) " >&6
 
2588
else
 
2589
  ac_build_alias=$build_alias
 
2590
test "x$ac_build_alias" = x &&
 
2591
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2592
test "x$ac_build_alias" = x &&
 
2593
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2594
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2595
   { (exit 1); exit 1; }; }
 
2596
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2597
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2598
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2599
   { (exit 1); exit 1; }; }
 
2600
 
 
2601
fi
 
2602
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2603
$as_echo "$ac_cv_build" >&6; }
 
2604
case $ac_cv_build in
 
2605
*-*-*) ;;
 
2606
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2607
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2608
   { (exit 1); exit 1; }; };;
 
2609
esac
 
2610
build=$ac_cv_build
 
2611
ac_save_IFS=$IFS; IFS='-'
 
2612
set x $ac_cv_build
 
2613
shift
 
2614
build_cpu=$1
 
2615
build_vendor=$2
 
2616
shift; shift
 
2617
# Remember, the first character of IFS is used to create $*,
 
2618
# except with old shells:
 
2619
build_os=$*
 
2620
IFS=$ac_save_IFS
 
2621
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2622
 
 
2623
 
 
2624
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2625
$as_echo_n "checking host system type... " >&6; }
 
2626
if test "${ac_cv_host+set}" = set; then
 
2627
  $as_echo_n "(cached) " >&6
 
2628
else
 
2629
  if test "x$host_alias" = x; then
 
2630
  ac_cv_host=$ac_cv_build
 
2631
else
 
2632
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2633
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2634
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2635
   { (exit 1); exit 1; }; }
 
2636
fi
 
2637
 
 
2638
fi
 
2639
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2640
$as_echo "$ac_cv_host" >&6; }
 
2641
case $ac_cv_host in
 
2642
*-*-*) ;;
 
2643
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2644
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2645
   { (exit 1); exit 1; }; };;
 
2646
esac
 
2647
host=$ac_cv_host
 
2648
ac_save_IFS=$IFS; IFS='-'
 
2649
set x $ac_cv_host
 
2650
shift
 
2651
host_cpu=$1
 
2652
host_vendor=$2
 
2653
shift; shift
 
2654
# Remember, the first character of IFS is used to create $*,
 
2655
# except with old shells:
 
2656
host_os=$*
 
2657
IFS=$ac_save_IFS
 
2658
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2659
 
 
2660
 
 
2661
DEPDIR="${am__leading_dot}deps"
 
2662
 
 
2663
ac_config_commands="$ac_config_commands depfiles"
 
2664
 
 
2665
 
 
2666
am_make=${MAKE-make}
 
2667
cat > confinc << 'END'
 
2668
am__doit:
 
2669
        @echo done
 
2670
.PHONY: am__doit
 
2671
END
 
2672
# If we don't find an include directive, just comment out the code.
 
2673
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2674
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2675
am__include="#"
 
2676
am__quote=
 
2677
_am_result=none
 
2678
# First try GNU make style include.
 
2679
echo "include confinc" > confmf
 
2680
# We grep out `Entering directory' and `Leaving directory'
 
2681
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2682
# In particular we don't look at `^make:' because GNU make might
 
2683
# be invoked under some other name (usually "gmake"), in which
 
2684
# case it prints its new name instead of `make'.
 
2685
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2686
   am__include=include
 
2687
   am__quote=
 
2688
   _am_result=GNU
 
2689
fi
 
2690
# Now try BSD make style include.
 
2691
if test "$am__include" = "#"; then
 
2692
   echo '.include "confinc"' > confmf
 
2693
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2694
      am__include=.include
 
2695
      am__quote="\""
 
2696
      _am_result=BSD
 
2697
   fi
 
2698
fi
 
2699
 
 
2700
 
 
2701
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
2702
$as_echo "$_am_result" >&6; }
 
2703
rm -f confinc confmf
 
2704
 
 
2705
# Check whether --enable-dependency-tracking was given.
 
2706
if test "${enable_dependency_tracking+set}" = set; then
 
2707
  enableval=$enable_dependency_tracking;
 
2708
fi
 
2709
 
 
2710
if test "x$enable_dependency_tracking" != xno; then
 
2711
  am_depcomp="$ac_aux_dir/depcomp"
 
2712
  AMDEPBACKSLASH='\'
 
2713
fi
 
2714
 if test "x$enable_dependency_tracking" != xno; then
 
2715
  AMDEP_TRUE=
 
2716
  AMDEP_FALSE='#'
 
2717
else
 
2718
  AMDEP_TRUE='#'
 
2719
  AMDEP_FALSE=
 
2720
fi
 
2721
 
 
2722
 
 
2723
ac_ext=c
 
2724
ac_cpp='$CPP $CPPFLAGS'
 
2725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2728
if test -n "$ac_tool_prefix"; then
 
2729
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2730
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2731
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2732
$as_echo_n "checking for $ac_word... " >&6; }
 
2733
if test "${ac_cv_prog_CC+set}" = set; then
 
2734
  $as_echo_n "(cached) " >&6
 
2735
else
 
2736
  if test -n "$CC"; then
 
2737
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2738
else
 
2739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2740
for as_dir in $PATH
 
2741
do
 
2742
  IFS=$as_save_IFS
 
2743
  test -z "$as_dir" && as_dir=.
 
2744
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2745
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2746
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2747
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2748
    break 2
 
2749
  fi
 
2750
done
 
2751
done
 
2752
IFS=$as_save_IFS
 
2753
 
 
2754
fi
 
2755
fi
 
2756
CC=$ac_cv_prog_CC
 
2757
if test -n "$CC"; then
 
2758
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2759
$as_echo "$CC" >&6; }
 
2760
else
 
2761
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2762
$as_echo "no" >&6; }
 
2763
fi
 
2764
 
 
2765
 
 
2766
fi
 
2767
if test -z "$ac_cv_prog_CC"; then
 
2768
  ac_ct_CC=$CC
 
2769
  # Extract the first word of "gcc", so it can be a program name with args.
 
2770
set dummy gcc; ac_word=$2
 
2771
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2772
$as_echo_n "checking for $ac_word... " >&6; }
 
2773
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2774
  $as_echo_n "(cached) " >&6
 
2775
else
 
2776
  if test -n "$ac_ct_CC"; then
 
2777
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2778
else
 
2779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2780
for as_dir in $PATH
 
2781
do
 
2782
  IFS=$as_save_IFS
 
2783
  test -z "$as_dir" && as_dir=.
 
2784
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2785
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2786
    ac_cv_prog_ac_ct_CC="gcc"
 
2787
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2788
    break 2
 
2789
  fi
 
2790
done
 
2791
done
 
2792
IFS=$as_save_IFS
 
2793
 
 
2794
fi
 
2795
fi
 
2796
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2797
if test -n "$ac_ct_CC"; then
 
2798
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2799
$as_echo "$ac_ct_CC" >&6; }
 
2800
else
 
2801
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2802
$as_echo "no" >&6; }
 
2803
fi
 
2804
 
 
2805
  if test "x$ac_ct_CC" = x; then
 
2806
    CC=""
 
2807
  else
 
2808
    case $cross_compiling:$ac_tool_warned in
 
2809
yes:)
 
2810
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2811
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2812
ac_tool_warned=yes ;;
 
2813
esac
 
2814
    CC=$ac_ct_CC
 
2815
  fi
 
2816
else
 
2817
  CC="$ac_cv_prog_CC"
 
2818
fi
 
2819
 
 
2820
if test -z "$CC"; then
 
2821
          if test -n "$ac_tool_prefix"; then
 
2822
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2823
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2824
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2825
$as_echo_n "checking for $ac_word... " >&6; }
 
2826
if test "${ac_cv_prog_CC+set}" = set; then
 
2827
  $as_echo_n "(cached) " >&6
 
2828
else
 
2829
  if test -n "$CC"; then
 
2830
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2831
else
 
2832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2833
for as_dir in $PATH
 
2834
do
 
2835
  IFS=$as_save_IFS
 
2836
  test -z "$as_dir" && as_dir=.
 
2837
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2839
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2840
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2841
    break 2
 
2842
  fi
 
2843
done
 
2844
done
 
2845
IFS=$as_save_IFS
 
2846
 
 
2847
fi
 
2848
fi
 
2849
CC=$ac_cv_prog_CC
 
2850
if test -n "$CC"; then
 
2851
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2852
$as_echo "$CC" >&6; }
 
2853
else
 
2854
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2855
$as_echo "no" >&6; }
 
2856
fi
 
2857
 
 
2858
 
 
2859
  fi
 
2860
fi
 
2861
if test -z "$CC"; then
 
2862
  # Extract the first word of "cc", so it can be a program name with args.
 
2863
set dummy cc; ac_word=$2
 
2864
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2865
$as_echo_n "checking for $ac_word... " >&6; }
 
2866
if test "${ac_cv_prog_CC+set}" = set; then
 
2867
  $as_echo_n "(cached) " >&6
 
2868
else
 
2869
  if test -n "$CC"; then
 
2870
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2871
else
 
2872
  ac_prog_rejected=no
 
2873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2874
for as_dir in $PATH
 
2875
do
 
2876
  IFS=$as_save_IFS
 
2877
  test -z "$as_dir" && as_dir=.
 
2878
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2879
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2880
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2881
       ac_prog_rejected=yes
 
2882
       continue
 
2883
     fi
 
2884
    ac_cv_prog_CC="cc"
 
2885
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2886
    break 2
 
2887
  fi
 
2888
done
 
2889
done
 
2890
IFS=$as_save_IFS
 
2891
 
 
2892
if test $ac_prog_rejected = yes; then
 
2893
  # We found a bogon in the path, so make sure we never use it.
 
2894
  set dummy $ac_cv_prog_CC
 
2895
  shift
 
2896
  if test $# != 0; then
 
2897
    # We chose a different compiler from the bogus one.
 
2898
    # However, it has the same basename, so the bogon will be chosen
 
2899
    # first if we set CC to just the basename; use the full file name.
 
2900
    shift
 
2901
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2902
  fi
 
2903
fi
 
2904
fi
 
2905
fi
 
2906
CC=$ac_cv_prog_CC
 
2907
if test -n "$CC"; then
 
2908
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2909
$as_echo "$CC" >&6; }
 
2910
else
 
2911
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2912
$as_echo "no" >&6; }
 
2913
fi
 
2914
 
 
2915
 
 
2916
fi
 
2917
if test -z "$CC"; then
 
2918
  if test -n "$ac_tool_prefix"; then
 
2919
  for ac_prog in cl.exe
 
2920
  do
 
2921
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2922
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2923
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2924
$as_echo_n "checking for $ac_word... " >&6; }
 
2925
if test "${ac_cv_prog_CC+set}" = set; then
 
2926
  $as_echo_n "(cached) " >&6
 
2927
else
 
2928
  if test -n "$CC"; then
 
2929
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2930
else
 
2931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2932
for as_dir in $PATH
 
2933
do
 
2934
  IFS=$as_save_IFS
 
2935
  test -z "$as_dir" && as_dir=.
 
2936
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2937
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2938
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2939
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2940
    break 2
 
2941
  fi
 
2942
done
 
2943
done
 
2944
IFS=$as_save_IFS
 
2945
 
 
2946
fi
 
2947
fi
 
2948
CC=$ac_cv_prog_CC
 
2949
if test -n "$CC"; then
 
2950
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2951
$as_echo "$CC" >&6; }
 
2952
else
 
2953
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2954
$as_echo "no" >&6; }
 
2955
fi
 
2956
 
 
2957
 
 
2958
    test -n "$CC" && break
 
2959
  done
 
2960
fi
 
2961
if test -z "$CC"; then
 
2962
  ac_ct_CC=$CC
 
2963
  for ac_prog in cl.exe
 
2964
do
 
2965
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2966
set dummy $ac_prog; ac_word=$2
 
2967
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2968
$as_echo_n "checking for $ac_word... " >&6; }
 
2969
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2970
  $as_echo_n "(cached) " >&6
 
2971
else
 
2972
  if test -n "$ac_ct_CC"; then
 
2973
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2974
else
 
2975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2976
for as_dir in $PATH
 
2977
do
 
2978
  IFS=$as_save_IFS
 
2979
  test -z "$as_dir" && as_dir=.
 
2980
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2981
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2982
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2983
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2984
    break 2
 
2985
  fi
 
2986
done
 
2987
done
 
2988
IFS=$as_save_IFS
 
2989
 
 
2990
fi
 
2991
fi
 
2992
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2993
if test -n "$ac_ct_CC"; then
 
2994
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2995
$as_echo "$ac_ct_CC" >&6; }
 
2996
else
 
2997
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2998
$as_echo "no" >&6; }
 
2999
fi
 
3000
 
 
3001
 
 
3002
  test -n "$ac_ct_CC" && break
 
3003
done
 
3004
 
 
3005
  if test "x$ac_ct_CC" = x; then
 
3006
    CC=""
 
3007
  else
 
3008
    case $cross_compiling:$ac_tool_warned in
 
3009
yes:)
 
3010
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3011
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3012
ac_tool_warned=yes ;;
 
3013
esac
 
3014
    CC=$ac_ct_CC
 
3015
  fi
 
3016
fi
 
3017
 
 
3018
fi
 
3019
 
 
3020
 
 
3021
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3022
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3023
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3024
See \`config.log' for more details." >&5
 
3025
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3026
See \`config.log' for more details." >&2;}
 
3027
   { (exit 1); exit 1; }; }; }
 
3028
 
 
3029
# Provide some information about the compiler.
 
3030
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3031
set X $ac_compile
 
3032
ac_compiler=$2
 
3033
{ (ac_try="$ac_compiler --version >&5"
 
3034
case "(($ac_try" in
 
3035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3036
  *) ac_try_echo=$ac_try;;
 
3037
esac
 
3038
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3039
$as_echo "$ac_try_echo") >&5
 
3040
  (eval "$ac_compiler --version >&5") 2>&5
 
3041
  ac_status=$?
 
3042
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3043
  (exit $ac_status); }
 
3044
{ (ac_try="$ac_compiler -v >&5"
 
3045
case "(($ac_try" in
 
3046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3047
  *) ac_try_echo=$ac_try;;
 
3048
esac
 
3049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3050
$as_echo "$ac_try_echo") >&5
 
3051
  (eval "$ac_compiler -v >&5") 2>&5
 
3052
  ac_status=$?
 
3053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3054
  (exit $ac_status); }
 
3055
{ (ac_try="$ac_compiler -V >&5"
 
3056
case "(($ac_try" in
 
3057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3058
  *) ac_try_echo=$ac_try;;
 
3059
esac
 
3060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3061
$as_echo "$ac_try_echo") >&5
 
3062
  (eval "$ac_compiler -V >&5") 2>&5
 
3063
  ac_status=$?
 
3064
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3065
  (exit $ac_status); }
 
3066
 
 
3067
cat >conftest.$ac_ext <<_ACEOF
 
3068
/* confdefs.h.  */
 
3069
_ACEOF
 
3070
cat confdefs.h >>conftest.$ac_ext
 
3071
cat >>conftest.$ac_ext <<_ACEOF
 
3072
/* end confdefs.h.  */
 
3073
 
 
3074
int
 
3075
main ()
 
3076
{
 
3077
 
 
3078
  ;
 
3079
  return 0;
 
3080
}
 
3081
_ACEOF
 
3082
ac_clean_files_save=$ac_clean_files
 
3083
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3084
# Try to create an executable without -o first, disregard a.out.
 
3085
# It will help us diagnose broken compilers, and finding out an intuition
 
3086
# of exeext.
 
3087
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3088
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3089
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3090
 
 
3091
# The possible output files:
 
3092
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3093
 
 
3094
ac_rmfiles=
 
3095
for ac_file in $ac_files
 
3096
do
 
3097
  case $ac_file in
 
3098
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3099
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3100
  esac
 
3101
done
 
3102
rm -f $ac_rmfiles
 
3103
 
 
3104
if { (ac_try="$ac_link_default"
 
3105
case "(($ac_try" in
 
3106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3107
  *) ac_try_echo=$ac_try;;
 
3108
esac
 
3109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3110
$as_echo "$ac_try_echo") >&5
 
3111
  (eval "$ac_link_default") 2>&5
 
3112
  ac_status=$?
 
3113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3114
  (exit $ac_status); }; then
 
3115
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3116
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3117
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3118
# so that the user can short-circuit this test for compilers unknown to
 
3119
# Autoconf.
 
3120
for ac_file in $ac_files ''
 
3121
do
 
3122
  test -f "$ac_file" || continue
 
3123
  case $ac_file in
 
3124
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3125
        ;;
 
3126
    [ab].out )
 
3127
        # We found the default executable, but exeext='' is most
 
3128
        # certainly right.
 
3129
        break;;
 
3130
    *.* )
 
3131
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3132
        then :; else
 
3133
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3134
        fi
 
3135
        # We set ac_cv_exeext here because the later test for it is not
 
3136
        # safe: cross compilers may not add the suffix if given an `-o'
 
3137
        # argument, so we may need to know it at that point already.
 
3138
        # Even if this section looks crufty: it has the advantage of
 
3139
        # actually working.
 
3140
        break;;
 
3141
    * )
 
3142
        break;;
 
3143
  esac
 
3144
done
 
3145
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3146
 
 
3147
else
 
3148
  ac_file=''
 
3149
fi
 
3150
 
 
3151
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3152
$as_echo "$ac_file" >&6; }
 
3153
if test -z "$ac_file"; then
 
3154
  $as_echo "$as_me: failed program was:" >&5
 
3155
sed 's/^/| /' conftest.$ac_ext >&5
 
3156
 
 
3157
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3158
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3159
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3160
See \`config.log' for more details." >&5
 
3161
$as_echo "$as_me: error: C compiler cannot create executables
 
3162
See \`config.log' for more details." >&2;}
 
3163
   { (exit 77); exit 77; }; }; }
 
3164
fi
 
3165
 
 
3166
ac_exeext=$ac_cv_exeext
 
3167
 
 
3168
# Check that the compiler produces executables we can run.  If not, either
 
3169
# the compiler is broken, or we cross compile.
 
3170
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3171
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3172
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3173
# If not cross compiling, check that we can run a simple program.
 
3174
if test "$cross_compiling" != yes; then
 
3175
  if { ac_try='./$ac_file'
 
3176
  { (case "(($ac_try" in
 
3177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3178
  *) ac_try_echo=$ac_try;;
 
3179
esac
 
3180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3181
$as_echo "$ac_try_echo") >&5
 
3182
  (eval "$ac_try") 2>&5
 
3183
  ac_status=$?
 
3184
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3185
  (exit $ac_status); }; }; then
 
3186
    cross_compiling=no
 
3187
  else
 
3188
    if test "$cross_compiling" = maybe; then
 
3189
        cross_compiling=yes
 
3190
    else
 
3191
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3192
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3193
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3194
If you meant to cross compile, use \`--host'.
 
3195
See \`config.log' for more details." >&5
 
3196
$as_echo "$as_me: error: cannot run C compiled programs.
 
3197
If you meant to cross compile, use \`--host'.
 
3198
See \`config.log' for more details." >&2;}
 
3199
   { (exit 1); exit 1; }; }; }
 
3200
    fi
 
3201
  fi
 
3202
fi
 
3203
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3204
$as_echo "yes" >&6; }
 
3205
 
 
3206
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3207
ac_clean_files=$ac_clean_files_save
 
3208
# Check that the compiler produces executables we can run.  If not, either
 
3209
# the compiler is broken, or we cross compile.
 
3210
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3211
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3212
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3213
$as_echo "$cross_compiling" >&6; }
 
3214
 
 
3215
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3216
$as_echo_n "checking for suffix of executables... " >&6; }
 
3217
if { (ac_try="$ac_link"
 
3218
case "(($ac_try" in
 
3219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3220
  *) ac_try_echo=$ac_try;;
 
3221
esac
 
3222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3223
$as_echo "$ac_try_echo") >&5
 
3224
  (eval "$ac_link") 2>&5
 
3225
  ac_status=$?
 
3226
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3227
  (exit $ac_status); }; then
 
3228
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3229
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3230
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3231
# `rm'.
 
3232
for ac_file in conftest.exe conftest conftest.*; do
 
3233
  test -f "$ac_file" || continue
 
3234
  case $ac_file in
 
3235
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3236
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3237
          break;;
 
3238
    * ) break;;
 
3239
  esac
 
3240
done
 
3241
else
 
3242
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3243
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3244
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3245
See \`config.log' for more details." >&5
 
3246
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3247
See \`config.log' for more details." >&2;}
 
3248
   { (exit 1); exit 1; }; }; }
 
3249
fi
 
3250
 
 
3251
rm -f conftest$ac_cv_exeext
 
3252
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3253
$as_echo "$ac_cv_exeext" >&6; }
 
3254
 
 
3255
rm -f conftest.$ac_ext
 
3256
EXEEXT=$ac_cv_exeext
 
3257
ac_exeext=$EXEEXT
 
3258
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3259
$as_echo_n "checking for suffix of object files... " >&6; }
 
3260
if test "${ac_cv_objext+set}" = set; then
 
3261
  $as_echo_n "(cached) " >&6
 
3262
else
 
3263
  cat >conftest.$ac_ext <<_ACEOF
 
3264
/* confdefs.h.  */
 
3265
_ACEOF
 
3266
cat confdefs.h >>conftest.$ac_ext
 
3267
cat >>conftest.$ac_ext <<_ACEOF
 
3268
/* end confdefs.h.  */
 
3269
 
 
3270
int
 
3271
main ()
 
3272
{
 
3273
 
 
3274
  ;
 
3275
  return 0;
 
3276
}
 
3277
_ACEOF
 
3278
rm -f conftest.o conftest.obj
 
3279
if { (ac_try="$ac_compile"
 
3280
case "(($ac_try" in
 
3281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3282
  *) ac_try_echo=$ac_try;;
 
3283
esac
 
3284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3285
$as_echo "$ac_try_echo") >&5
 
3286
  (eval "$ac_compile") 2>&5
 
3287
  ac_status=$?
 
3288
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); }; then
 
3290
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3291
  test -f "$ac_file" || continue;
 
3292
  case $ac_file in
 
3293
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3294
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3295
       break;;
 
3296
  esac
 
3297
done
 
3298
else
 
3299
  $as_echo "$as_me: failed program was:" >&5
 
3300
sed 's/^/| /' conftest.$ac_ext >&5
 
3301
 
 
3302
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3303
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3304
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3305
See \`config.log' for more details." >&5
 
3306
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3307
See \`config.log' for more details." >&2;}
 
3308
   { (exit 1); exit 1; }; }; }
 
3309
fi
 
3310
 
 
3311
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3312
fi
 
3313
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3314
$as_echo "$ac_cv_objext" >&6; }
 
3315
OBJEXT=$ac_cv_objext
 
3316
ac_objext=$OBJEXT
 
3317
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3318
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3319
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3320
  $as_echo_n "(cached) " >&6
 
3321
else
 
3322
  cat >conftest.$ac_ext <<_ACEOF
 
3323
/* confdefs.h.  */
 
3324
_ACEOF
 
3325
cat confdefs.h >>conftest.$ac_ext
 
3326
cat >>conftest.$ac_ext <<_ACEOF
 
3327
/* end confdefs.h.  */
 
3328
 
 
3329
int
 
3330
main ()
 
3331
{
 
3332
#ifndef __GNUC__
 
3333
       choke me
 
3334
#endif
 
3335
 
 
3336
  ;
 
3337
  return 0;
 
3338
}
 
3339
_ACEOF
 
3340
rm -f conftest.$ac_objext
 
3341
if { (ac_try="$ac_compile"
 
3342
case "(($ac_try" in
 
3343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3344
  *) ac_try_echo=$ac_try;;
 
3345
esac
 
3346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3347
$as_echo "$ac_try_echo") >&5
 
3348
  (eval "$ac_compile") 2>conftest.er1
 
3349
  ac_status=$?
 
3350
  grep -v '^ *+' conftest.er1 >conftest.err
 
3351
  rm -f conftest.er1
 
3352
  cat conftest.err >&5
 
3353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3354
  (exit $ac_status); } && {
 
3355
         test -z "$ac_c_werror_flag" ||
 
3356
         test ! -s conftest.err
 
3357
       } && test -s conftest.$ac_objext; then
 
3358
  ac_compiler_gnu=yes
 
3359
else
 
3360
  $as_echo "$as_me: failed program was:" >&5
 
3361
sed 's/^/| /' conftest.$ac_ext >&5
 
3362
 
 
3363
        ac_compiler_gnu=no
 
3364
fi
 
3365
 
 
3366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3367
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3368
 
 
3369
fi
 
3370
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3371
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3372
if test $ac_compiler_gnu = yes; then
 
3373
  GCC=yes
 
3374
else
 
3375
  GCC=
 
3376
fi
 
3377
ac_test_CFLAGS=${CFLAGS+set}
 
3378
ac_save_CFLAGS=$CFLAGS
 
3379
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3380
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3381
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3382
  $as_echo_n "(cached) " >&6
 
3383
else
 
3384
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3385
   ac_c_werror_flag=yes
 
3386
   ac_cv_prog_cc_g=no
 
3387
   CFLAGS="-g"
 
3388
   cat >conftest.$ac_ext <<_ACEOF
 
3389
/* confdefs.h.  */
 
3390
_ACEOF
 
3391
cat confdefs.h >>conftest.$ac_ext
 
3392
cat >>conftest.$ac_ext <<_ACEOF
 
3393
/* end confdefs.h.  */
 
3394
 
 
3395
int
 
3396
main ()
 
3397
{
 
3398
 
 
3399
  ;
 
3400
  return 0;
 
3401
}
 
3402
_ACEOF
 
3403
rm -f conftest.$ac_objext
 
3404
if { (ac_try="$ac_compile"
 
3405
case "(($ac_try" in
 
3406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3407
  *) ac_try_echo=$ac_try;;
 
3408
esac
 
3409
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3410
$as_echo "$ac_try_echo") >&5
 
3411
  (eval "$ac_compile") 2>conftest.er1
 
3412
  ac_status=$?
 
3413
  grep -v '^ *+' conftest.er1 >conftest.err
 
3414
  rm -f conftest.er1
 
3415
  cat conftest.err >&5
 
3416
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3417
  (exit $ac_status); } && {
 
3418
         test -z "$ac_c_werror_flag" ||
 
3419
         test ! -s conftest.err
 
3420
       } && test -s conftest.$ac_objext; then
 
3421
  ac_cv_prog_cc_g=yes
 
3422
else
 
3423
  $as_echo "$as_me: failed program was:" >&5
 
3424
sed 's/^/| /' conftest.$ac_ext >&5
 
3425
 
 
3426
        CFLAGS=""
 
3427
      cat >conftest.$ac_ext <<_ACEOF
 
3428
/* confdefs.h.  */
 
3429
_ACEOF
 
3430
cat confdefs.h >>conftest.$ac_ext
 
3431
cat >>conftest.$ac_ext <<_ACEOF
 
3432
/* end confdefs.h.  */
 
3433
 
 
3434
int
 
3435
main ()
 
3436
{
 
3437
 
 
3438
  ;
 
3439
  return 0;
 
3440
}
 
3441
_ACEOF
 
3442
rm -f conftest.$ac_objext
 
3443
if { (ac_try="$ac_compile"
 
3444
case "(($ac_try" in
 
3445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3446
  *) ac_try_echo=$ac_try;;
 
3447
esac
 
3448
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3449
$as_echo "$ac_try_echo") >&5
 
3450
  (eval "$ac_compile") 2>conftest.er1
 
3451
  ac_status=$?
 
3452
  grep -v '^ *+' conftest.er1 >conftest.err
 
3453
  rm -f conftest.er1
 
3454
  cat conftest.err >&5
 
3455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3456
  (exit $ac_status); } && {
 
3457
         test -z "$ac_c_werror_flag" ||
 
3458
         test ! -s conftest.err
 
3459
       } && test -s conftest.$ac_objext; then
 
3460
  :
 
3461
else
 
3462
  $as_echo "$as_me: failed program was:" >&5
 
3463
sed 's/^/| /' conftest.$ac_ext >&5
 
3464
 
 
3465
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3466
         CFLAGS="-g"
 
3467
         cat >conftest.$ac_ext <<_ACEOF
 
3468
/* confdefs.h.  */
 
3469
_ACEOF
 
3470
cat confdefs.h >>conftest.$ac_ext
 
3471
cat >>conftest.$ac_ext <<_ACEOF
 
3472
/* end confdefs.h.  */
 
3473
 
 
3474
int
 
3475
main ()
 
3476
{
 
3477
 
 
3478
  ;
 
3479
  return 0;
 
3480
}
 
3481
_ACEOF
 
3482
rm -f conftest.$ac_objext
 
3483
if { (ac_try="$ac_compile"
 
3484
case "(($ac_try" in
 
3485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3486
  *) ac_try_echo=$ac_try;;
 
3487
esac
 
3488
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3489
$as_echo "$ac_try_echo") >&5
 
3490
  (eval "$ac_compile") 2>conftest.er1
 
3491
  ac_status=$?
 
3492
  grep -v '^ *+' conftest.er1 >conftest.err
 
3493
  rm -f conftest.er1
 
3494
  cat conftest.err >&5
 
3495
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3496
  (exit $ac_status); } && {
 
3497
         test -z "$ac_c_werror_flag" ||
 
3498
         test ! -s conftest.err
 
3499
       } && test -s conftest.$ac_objext; then
 
3500
  ac_cv_prog_cc_g=yes
 
3501
else
 
3502
  $as_echo "$as_me: failed program was:" >&5
 
3503
sed 's/^/| /' conftest.$ac_ext >&5
 
3504
 
 
3505
 
 
3506
fi
 
3507
 
 
3508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3509
fi
 
3510
 
 
3511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3512
fi
 
3513
 
 
3514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3515
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3516
fi
 
3517
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3518
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3519
if test "$ac_test_CFLAGS" = set; then
 
3520
  CFLAGS=$ac_save_CFLAGS
 
3521
elif test $ac_cv_prog_cc_g = yes; then
 
3522
  if test "$GCC" = yes; then
 
3523
    CFLAGS="-g -O2"
 
3524
  else
 
3525
    CFLAGS="-g"
 
3526
  fi
 
3527
else
 
3528
  if test "$GCC" = yes; then
 
3529
    CFLAGS="-O2"
 
3530
  else
 
3531
    CFLAGS=
 
3532
  fi
 
3533
fi
 
3534
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3535
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3536
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3537
  $as_echo_n "(cached) " >&6
 
3538
else
 
3539
  ac_cv_prog_cc_c89=no
 
3540
ac_save_CC=$CC
 
3541
cat >conftest.$ac_ext <<_ACEOF
 
3542
/* confdefs.h.  */
 
3543
_ACEOF
 
3544
cat confdefs.h >>conftest.$ac_ext
 
3545
cat >>conftest.$ac_ext <<_ACEOF
 
3546
/* end confdefs.h.  */
 
3547
#include <stdarg.h>
 
3548
#include <stdio.h>
 
3549
#include <sys/types.h>
 
3550
#include <sys/stat.h>
 
3551
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3552
struct buf { int x; };
 
3553
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3554
static char *e (p, i)
 
3555
     char **p;
 
3556
     int i;
 
3557
{
 
3558
  return p[i];
 
3559
}
 
3560
static char *f (char * (*g) (char **, int), char **p, ...)
 
3561
{
 
3562
  char *s;
 
3563
  va_list v;
 
3564
  va_start (v,p);
 
3565
  s = g (p, va_arg (v,int));
 
3566
  va_end (v);
 
3567
  return s;
 
3568
}
 
3569
 
 
3570
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3571
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3572
   These don't provoke an error unfortunately, instead are silently treated
 
3573
   as 'x'.  The following induces an error, until -std is added to get
 
3574
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3575
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3576
   that's true only with -std.  */
 
3577
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3578
 
 
3579
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3580
   inside strings and character constants.  */
 
3581
#define FOO(x) 'x'
 
3582
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3583
 
 
3584
int test (int i, double x);
 
3585
struct s1 {int (*f) (int a);};
 
3586
struct s2 {int (*f) (double a);};
 
3587
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3588
int argc;
 
3589
char **argv;
 
3590
int
 
3591
main ()
 
3592
{
 
3593
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3594
  ;
 
3595
  return 0;
 
3596
}
 
3597
_ACEOF
 
3598
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3599
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3600
do
 
3601
  CC="$ac_save_CC $ac_arg"
 
3602
  rm -f conftest.$ac_objext
 
3603
if { (ac_try="$ac_compile"
 
3604
case "(($ac_try" in
 
3605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3606
  *) ac_try_echo=$ac_try;;
 
3607
esac
 
3608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3609
$as_echo "$ac_try_echo") >&5
 
3610
  (eval "$ac_compile") 2>conftest.er1
 
3611
  ac_status=$?
 
3612
  grep -v '^ *+' conftest.er1 >conftest.err
 
3613
  rm -f conftest.er1
 
3614
  cat conftest.err >&5
 
3615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3616
  (exit $ac_status); } && {
 
3617
         test -z "$ac_c_werror_flag" ||
 
3618
         test ! -s conftest.err
 
3619
       } && test -s conftest.$ac_objext; then
 
3620
  ac_cv_prog_cc_c89=$ac_arg
 
3621
else
 
3622
  $as_echo "$as_me: failed program was:" >&5
 
3623
sed 's/^/| /' conftest.$ac_ext >&5
 
3624
 
 
3625
 
 
3626
fi
 
3627
 
 
3628
rm -f core conftest.err conftest.$ac_objext
 
3629
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3630
done
 
3631
rm -f conftest.$ac_ext
 
3632
CC=$ac_save_CC
 
3633
 
 
3634
fi
 
3635
# AC_CACHE_VAL
 
3636
case "x$ac_cv_prog_cc_c89" in
 
3637
  x)
 
3638
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3639
$as_echo "none needed" >&6; } ;;
 
3640
  xno)
 
3641
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3642
$as_echo "unsupported" >&6; } ;;
 
3643
  *)
 
3644
    CC="$CC $ac_cv_prog_cc_c89"
 
3645
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3646
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3647
esac
 
3648
 
 
3649
 
 
3650
ac_ext=c
 
3651
ac_cpp='$CPP $CPPFLAGS'
 
3652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3655
 
 
3656
depcc="$CC"   am_compiler_list=
 
3657
 
 
3658
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3659
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3660
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3661
  $as_echo_n "(cached) " >&6
 
3662
else
 
3663
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3664
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3665
  # making bogus files that we don't know about and never remove.  For
 
3666
  # instance it was reported that on HP-UX the gcc test will end up
 
3667
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3668
  # in D'.
 
3669
  mkdir conftest.dir
 
3670
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3671
  # using a relative directory.
 
3672
  cp "$am_depcomp" conftest.dir
 
3673
  cd conftest.dir
 
3674
  # We will build objects and dependencies in a subdirectory because
 
3675
  # it helps to detect inapplicable dependency modes.  For instance
 
3676
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3677
  # side effect of compilation, but ICC will put the dependencies in
 
3678
  # the current directory while Tru64 will put them in the object
 
3679
  # directory.
 
3680
  mkdir sub
 
3681
 
 
3682
  am_cv_CC_dependencies_compiler_type=none
 
3683
  if test "$am_compiler_list" = ""; then
 
3684
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3685
  fi
 
3686
  for depmode in $am_compiler_list; do
 
3687
    # Setup a source with many dependencies, because some compilers
 
3688
    # like to wrap large dependency lists on column 80 (with \), and
 
3689
    # we should not choose a depcomp mode which is confused by this.
 
3690
    #
 
3691
    # We need to recreate these files for each test, as the compiler may
 
3692
    # overwrite some of them when testing with obscure command lines.
 
3693
    # This happens at least with the AIX C compiler.
 
3694
    : > sub/conftest.c
 
3695
    for i in 1 2 3 4 5 6; do
 
3696
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3697
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3698
      # Solaris 8's {/usr,}/bin/sh.
 
3699
      touch sub/conftst$i.h
 
3700
    done
 
3701
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3702
 
 
3703
    case $depmode in
 
3704
    nosideeffect)
 
3705
      # after this tag, mechanisms are not by side-effect, so they'll
 
3706
      # only be used when explicitly requested
 
3707
      if test "x$enable_dependency_tracking" = xyes; then
 
3708
        continue
 
3709
      else
 
3710
        break
 
3711
      fi
 
3712
      ;;
 
3713
    none) break ;;
 
3714
    esac
 
3715
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3716
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3717
    # handle `-M -o', and we need to detect this.
 
3718
    if depmode=$depmode \
 
3719
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3720
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3721
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3722
         >/dev/null 2>conftest.err &&
 
3723
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3724
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3725
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3726
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3727
      # icc doesn't choke on unknown options, it will just issue warnings
 
3728
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3729
      # that says an option was ignored or not supported.
 
3730
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3731
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3732
      # The diagnosis changed in icc 8.0:
 
3733
      #   icc: Command line remark: option '-MP' not supported
 
3734
      if (grep 'ignoring option' conftest.err ||
 
3735
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3736
        am_cv_CC_dependencies_compiler_type=$depmode
 
3737
        break
 
3738
      fi
 
3739
    fi
 
3740
  done
 
3741
 
 
3742
  cd ..
 
3743
  rm -rf conftest.dir
 
3744
else
 
3745
  am_cv_CC_dependencies_compiler_type=none
 
3746
fi
 
3747
 
 
3748
fi
 
3749
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3750
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3751
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3752
 
 
3753
 if
 
3754
  test "x$enable_dependency_tracking" != xno \
 
3755
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3756
  am__fastdepCC_TRUE=
 
3757
  am__fastdepCC_FALSE='#'
 
3758
else
 
3759
  am__fastdepCC_TRUE='#'
 
3760
  am__fastdepCC_FALSE=
 
3761
fi
 
3762
 
 
3763
 
 
3764
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3765
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3766
if test "${ac_cv_path_SED+set}" = set; then
 
3767
  $as_echo_n "(cached) " >&6
 
3768
else
 
3769
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3770
     for ac_i in 1 2 3 4 5 6 7; do
 
3771
       ac_script="$ac_script$as_nl$ac_script"
 
3772
     done
 
3773
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3774
     $as_unset ac_script || ac_script=
 
3775
     if test -z "$SED"; then
 
3776
  ac_path_SED_found=false
 
3777
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3778
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3779
for as_dir in $PATH
 
3780
do
 
3781
  IFS=$as_save_IFS
 
3782
  test -z "$as_dir" && as_dir=.
 
3783
  for ac_prog in sed gsed; do
 
3784
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3785
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3786
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3787
# Check for GNU ac_path_SED and select it if it is found.
 
3788
  # Check for GNU $ac_path_SED
 
3789
case `"$ac_path_SED" --version 2>&1` in
 
3790
*GNU*)
 
3791
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3792
*)
 
3793
  ac_count=0
 
3794
  $as_echo_n 0123456789 >"conftest.in"
 
3795
  while :
 
3796
  do
 
3797
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3798
    mv "conftest.tmp" "conftest.in"
 
3799
    cp "conftest.in" "conftest.nl"
 
3800
    $as_echo '' >> "conftest.nl"
 
3801
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3802
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3803
    ac_count=`expr $ac_count + 1`
 
3804
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3805
      # Best one so far, save it but keep looking for a better one
 
3806
      ac_cv_path_SED="$ac_path_SED"
 
3807
      ac_path_SED_max=$ac_count
 
3808
    fi
 
3809
    # 10*(2^10) chars as input seems more than enough
 
3810
    test $ac_count -gt 10 && break
 
3811
  done
 
3812
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3813
esac
 
3814
 
 
3815
      $ac_path_SED_found && break 3
 
3816
    done
 
3817
  done
 
3818
done
 
3819
IFS=$as_save_IFS
 
3820
  if test -z "$ac_cv_path_SED"; then
 
3821
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
3822
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
3823
   { (exit 1); exit 1; }; }
 
3824
  fi
 
3825
else
 
3826
  ac_cv_path_SED=$SED
 
3827
fi
 
3828
 
 
3829
fi
 
3830
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
3831
$as_echo "$ac_cv_path_SED" >&6; }
 
3832
 SED="$ac_cv_path_SED"
 
3833
  rm -f conftest.sed
 
3834
 
 
3835
test -z "$SED" && SED=sed
 
3836
Xsed="$SED -e 1s/^X//"
 
3837
 
 
3838
 
 
3839
 
 
3840
 
 
3841
 
 
3842
 
 
3843
 
 
3844
 
 
3845
 
 
3846
 
 
3847
 
 
3848
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3849
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3850
if test "${ac_cv_path_GREP+set}" = set; then
 
3851
  $as_echo_n "(cached) " >&6
 
3852
else
 
3853
  if test -z "$GREP"; then
 
3854
  ac_path_GREP_found=false
 
3855
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3856
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3857
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3858
do
 
3859
  IFS=$as_save_IFS
 
3860
  test -z "$as_dir" && as_dir=.
 
3861
  for ac_prog in grep ggrep; do
 
3862
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3863
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3864
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3865
# Check for GNU ac_path_GREP and select it if it is found.
 
3866
  # Check for GNU $ac_path_GREP
 
3867
case `"$ac_path_GREP" --version 2>&1` in
 
3868
*GNU*)
 
3869
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3870
*)
 
3871
  ac_count=0
 
3872
  $as_echo_n 0123456789 >"conftest.in"
 
3873
  while :
 
3874
  do
 
3875
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3876
    mv "conftest.tmp" "conftest.in"
 
3877
    cp "conftest.in" "conftest.nl"
 
3878
    $as_echo 'GREP' >> "conftest.nl"
 
3879
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3880
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3881
    ac_count=`expr $ac_count + 1`
 
3882
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3883
      # Best one so far, save it but keep looking for a better one
 
3884
      ac_cv_path_GREP="$ac_path_GREP"
 
3885
      ac_path_GREP_max=$ac_count
 
3886
    fi
 
3887
    # 10*(2^10) chars as input seems more than enough
 
3888
    test $ac_count -gt 10 && break
 
3889
  done
 
3890
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3891
esac
 
3892
 
 
3893
      $ac_path_GREP_found && break 3
 
3894
    done
 
3895
  done
 
3896
done
 
3897
IFS=$as_save_IFS
 
3898
  if test -z "$ac_cv_path_GREP"; then
 
3899
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3900
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3901
   { (exit 1); exit 1; }; }
 
3902
  fi
 
3903
else
 
3904
  ac_cv_path_GREP=$GREP
 
3905
fi
 
3906
 
 
3907
fi
 
3908
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3909
$as_echo "$ac_cv_path_GREP" >&6; }
 
3910
 GREP="$ac_cv_path_GREP"
 
3911
 
 
3912
 
 
3913
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3914
$as_echo_n "checking for egrep... " >&6; }
 
3915
if test "${ac_cv_path_EGREP+set}" = set; then
 
3916
  $as_echo_n "(cached) " >&6
 
3917
else
 
3918
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3919
   then ac_cv_path_EGREP="$GREP -E"
 
3920
   else
 
3921
     if test -z "$EGREP"; then
 
3922
  ac_path_EGREP_found=false
 
3923
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3924
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3925
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3926
do
 
3927
  IFS=$as_save_IFS
 
3928
  test -z "$as_dir" && as_dir=.
 
3929
  for ac_prog in egrep; do
 
3930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3931
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3932
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3933
# Check for GNU ac_path_EGREP and select it if it is found.
 
3934
  # Check for GNU $ac_path_EGREP
 
3935
case `"$ac_path_EGREP" --version 2>&1` in
 
3936
*GNU*)
 
3937
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3938
*)
 
3939
  ac_count=0
 
3940
  $as_echo_n 0123456789 >"conftest.in"
 
3941
  while :
 
3942
  do
 
3943
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3944
    mv "conftest.tmp" "conftest.in"
 
3945
    cp "conftest.in" "conftest.nl"
 
3946
    $as_echo 'EGREP' >> "conftest.nl"
 
3947
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3948
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3949
    ac_count=`expr $ac_count + 1`
 
3950
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3951
      # Best one so far, save it but keep looking for a better one
 
3952
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3953
      ac_path_EGREP_max=$ac_count
 
3954
    fi
 
3955
    # 10*(2^10) chars as input seems more than enough
 
3956
    test $ac_count -gt 10 && break
 
3957
  done
 
3958
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3959
esac
 
3960
 
 
3961
      $ac_path_EGREP_found && break 3
 
3962
    done
 
3963
  done
 
3964
done
 
3965
IFS=$as_save_IFS
 
3966
  if test -z "$ac_cv_path_EGREP"; then
 
3967
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3968
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3969
   { (exit 1); exit 1; }; }
 
3970
  fi
 
3971
else
 
3972
  ac_cv_path_EGREP=$EGREP
 
3973
fi
 
3974
 
 
3975
   fi
 
3976
fi
 
3977
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3978
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3979
 EGREP="$ac_cv_path_EGREP"
 
3980
 
 
3981
 
 
3982
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
3983
$as_echo_n "checking for fgrep... " >&6; }
 
3984
if test "${ac_cv_path_FGREP+set}" = set; then
 
3985
  $as_echo_n "(cached) " >&6
 
3986
else
 
3987
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
3988
   then ac_cv_path_FGREP="$GREP -F"
 
3989
   else
 
3990
     if test -z "$FGREP"; then
 
3991
  ac_path_FGREP_found=false
 
3992
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3993
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3994
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3995
do
 
3996
  IFS=$as_save_IFS
 
3997
  test -z "$as_dir" && as_dir=.
 
3998
  for ac_prog in fgrep; do
 
3999
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4000
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4001
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4002
# Check for GNU ac_path_FGREP and select it if it is found.
 
4003
  # Check for GNU $ac_path_FGREP
 
4004
case `"$ac_path_FGREP" --version 2>&1` in
 
4005
*GNU*)
 
4006
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4007
*)
 
4008
  ac_count=0
 
4009
  $as_echo_n 0123456789 >"conftest.in"
 
4010
  while :
 
4011
  do
 
4012
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4013
    mv "conftest.tmp" "conftest.in"
 
4014
    cp "conftest.in" "conftest.nl"
 
4015
    $as_echo 'FGREP' >> "conftest.nl"
 
4016
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4017
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4018
    ac_count=`expr $ac_count + 1`
 
4019
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4020
      # Best one so far, save it but keep looking for a better one
 
4021
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4022
      ac_path_FGREP_max=$ac_count
 
4023
    fi
 
4024
    # 10*(2^10) chars as input seems more than enough
 
4025
    test $ac_count -gt 10 && break
 
4026
  done
 
4027
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4028
esac
 
4029
 
 
4030
      $ac_path_FGREP_found && break 3
 
4031
    done
 
4032
  done
 
4033
done
 
4034
IFS=$as_save_IFS
 
4035
  if test -z "$ac_cv_path_FGREP"; then
 
4036
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4037
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4038
   { (exit 1); exit 1; }; }
 
4039
  fi
 
4040
else
 
4041
  ac_cv_path_FGREP=$FGREP
 
4042
fi
 
4043
 
 
4044
   fi
 
4045
fi
 
4046
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4047
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4048
 FGREP="$ac_cv_path_FGREP"
 
4049
 
 
4050
 
 
4051
test -z "$GREP" && GREP=grep
 
4052
 
 
4053
 
 
4054
 
 
4055
 
 
4056
 
 
4057
 
 
4058
 
 
4059
 
 
4060
 
 
4061
 
 
4062
 
 
4063
 
 
4064
 
 
4065
 
 
4066
 
 
4067
 
 
4068
 
 
4069
 
 
4070
 
 
4071
# Check whether --with-gnu-ld was given.
 
4072
if test "${with_gnu_ld+set}" = set; then
 
4073
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4074
else
 
4075
  with_gnu_ld=no
 
4076
fi
 
4077
 
 
4078
ac_prog=ld
 
4079
if test "$GCC" = yes; then
 
4080
  # Check if gcc -print-prog-name=ld gives a path.
 
4081
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4082
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4083
  case $host in
 
4084
  *-*-mingw*)
 
4085
    # gcc leaves a trailing carriage return which upsets mingw
 
4086
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4087
  *)
 
4088
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4089
  esac
 
4090
  case $ac_prog in
 
4091
    # Accept absolute paths.
 
4092
    [\\/]* | ?:[\\/]*)
 
4093
      re_direlt='/[^/][^/]*/\.\./'
 
4094
      # Canonicalize the pathname of ld
 
4095
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4096
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4097
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4098
      done
 
4099
      test -z "$LD" && LD="$ac_prog"
 
4100
      ;;
 
4101
  "")
 
4102
    # If it fails, then pretend we aren't using GCC.
 
4103
    ac_prog=ld
 
4104
    ;;
 
4105
  *)
 
4106
    # If it is relative, then search for the first ld in PATH.
 
4107
    with_gnu_ld=unknown
 
4108
    ;;
 
4109
  esac
 
4110
elif test "$with_gnu_ld" = yes; then
 
4111
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4112
$as_echo_n "checking for GNU ld... " >&6; }
 
4113
else
 
4114
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4115
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4116
fi
 
4117
if test "${lt_cv_path_LD+set}" = set; then
 
4118
  $as_echo_n "(cached) " >&6
 
4119
else
 
4120
  if test -z "$LD"; then
 
4121
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4122
  for ac_dir in $PATH; do
 
4123
    IFS="$lt_save_ifs"
 
4124
    test -z "$ac_dir" && ac_dir=.
 
4125
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4126
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4127
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4128
      # but apparently some variants of GNU ld only accept -v.
 
4129
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4130
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4131
      *GNU* | *'with BFD'*)
 
4132
        test "$with_gnu_ld" != no && break
 
4133
        ;;
 
4134
      *)
 
4135
        test "$with_gnu_ld" != yes && break
 
4136
        ;;
 
4137
      esac
 
4138
    fi
 
4139
  done
 
4140
  IFS="$lt_save_ifs"
 
4141
else
 
4142
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4143
fi
 
4144
fi
 
4145
 
 
4146
LD="$lt_cv_path_LD"
 
4147
if test -n "$LD"; then
 
4148
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4149
$as_echo "$LD" >&6; }
 
4150
else
 
4151
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4152
$as_echo "no" >&6; }
 
4153
fi
 
4154
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4155
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4156
   { (exit 1); exit 1; }; }
 
4157
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4158
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4159
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4160
  $as_echo_n "(cached) " >&6
 
4161
else
 
4162
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4163
case `$LD -v 2>&1 </dev/null` in
 
4164
*GNU* | *'with BFD'*)
 
4165
  lt_cv_prog_gnu_ld=yes
 
4166
  ;;
 
4167
*)
 
4168
  lt_cv_prog_gnu_ld=no
 
4169
  ;;
 
4170
esac
 
4171
fi
 
4172
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4173
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4174
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4175
 
 
4176
 
 
4177
 
 
4178
 
 
4179
 
 
4180
 
 
4181
 
 
4182
 
 
4183
 
 
4184
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4185
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4186
if test "${lt_cv_path_NM+set}" = set; then
 
4187
  $as_echo_n "(cached) " >&6
 
4188
else
 
4189
  if test -n "$NM"; then
 
4190
  # Let the user override the test.
 
4191
  lt_cv_path_NM="$NM"
 
4192
else
 
4193
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4194
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4195
    lt_nm_to_check="$lt_nm_to_check nm"
 
4196
  fi
 
4197
  for lt_tmp_nm in $lt_nm_to_check; do
 
4198
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4199
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4200
      IFS="$lt_save_ifs"
 
4201
      test -z "$ac_dir" && ac_dir=.
 
4202
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4203
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4204
        # Check to see if the nm accepts a BSD-compat flag.
 
4205
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4206
        #   nm: unknown option "B" ignored
 
4207
        # Tru64's nm complains that /dev/null is an invalid object file
 
4208
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4209
        */dev/null* | *'Invalid file or object type'*)
 
4210
          lt_cv_path_NM="$tmp_nm -B"
 
4211
          break
 
4212
          ;;
 
4213
        *)
 
4214
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4215
          */dev/null*)
 
4216
            lt_cv_path_NM="$tmp_nm -p"
 
4217
            break
 
4218
            ;;
 
4219
          *)
 
4220
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4221
            continue # so that we can try to find one that supports BSD flags
 
4222
            ;;
 
4223
          esac
 
4224
          ;;
 
4225
        esac
 
4226
      fi
 
4227
    done
 
4228
    IFS="$lt_save_ifs"
 
4229
  done
 
4230
  : ${lt_cv_path_NM=no}
 
4231
fi
 
4232
fi
 
4233
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4234
$as_echo "$lt_cv_path_NM" >&6; }
 
4235
if test "$lt_cv_path_NM" != "no"; then
 
4236
  NM="$lt_cv_path_NM"
 
4237
else
 
4238
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4239
  if test -n "$ac_tool_prefix"; then
 
4240
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4241
  do
 
4242
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4243
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4244
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4245
$as_echo_n "checking for $ac_word... " >&6; }
 
4246
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4247
  $as_echo_n "(cached) " >&6
 
4248
else
 
4249
  if test -n "$DUMPBIN"; then
 
4250
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4251
else
 
4252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4253
for as_dir in $PATH
 
4254
do
 
4255
  IFS=$as_save_IFS
 
4256
  test -z "$as_dir" && as_dir=.
 
4257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4259
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4260
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4261
    break 2
 
4262
  fi
 
4263
done
 
4264
done
 
4265
IFS=$as_save_IFS
 
4266
 
 
4267
fi
 
4268
fi
 
4269
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4270
if test -n "$DUMPBIN"; then
 
4271
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4272
$as_echo "$DUMPBIN" >&6; }
 
4273
else
 
4274
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4275
$as_echo "no" >&6; }
 
4276
fi
 
4277
 
 
4278
 
 
4279
    test -n "$DUMPBIN" && break
 
4280
  done
 
4281
fi
 
4282
if test -z "$DUMPBIN"; then
 
4283
  ac_ct_DUMPBIN=$DUMPBIN
 
4284
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4285
do
 
4286
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4287
set dummy $ac_prog; ac_word=$2
 
4288
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4289
$as_echo_n "checking for $ac_word... " >&6; }
 
4290
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4291
  $as_echo_n "(cached) " >&6
 
4292
else
 
4293
  if test -n "$ac_ct_DUMPBIN"; then
 
4294
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4295
else
 
4296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4297
for as_dir in $PATH
 
4298
do
 
4299
  IFS=$as_save_IFS
 
4300
  test -z "$as_dir" && as_dir=.
 
4301
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4302
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4303
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4304
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4305
    break 2
 
4306
  fi
 
4307
done
 
4308
done
 
4309
IFS=$as_save_IFS
 
4310
 
 
4311
fi
 
4312
fi
 
4313
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4314
if test -n "$ac_ct_DUMPBIN"; then
 
4315
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4316
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4317
else
 
4318
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4319
$as_echo "no" >&6; }
 
4320
fi
 
4321
 
 
4322
 
 
4323
  test -n "$ac_ct_DUMPBIN" && break
 
4324
done
 
4325
 
 
4326
  if test "x$ac_ct_DUMPBIN" = x; then
 
4327
    DUMPBIN=":"
 
4328
  else
 
4329
    case $cross_compiling:$ac_tool_warned in
 
4330
yes:)
 
4331
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4332
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4333
ac_tool_warned=yes ;;
 
4334
esac
 
4335
    DUMPBIN=$ac_ct_DUMPBIN
 
4336
  fi
 
4337
fi
 
4338
 
 
4339
 
 
4340
  if test "$DUMPBIN" != ":"; then
 
4341
    NM="$DUMPBIN"
 
4342
  fi
 
4343
fi
 
4344
test -z "$NM" && NM=nm
 
4345
 
 
4346
 
 
4347
 
 
4348
 
 
4349
 
 
4350
 
 
4351
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4352
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4353
if test "${lt_cv_nm_interface+set}" = set; then
 
4354
  $as_echo_n "(cached) " >&6
 
4355
else
 
4356
  lt_cv_nm_interface="BSD nm"
 
4357
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4358
  (eval echo "\"\$as_me:4358: $ac_compile\"" >&5)
 
4359
  (eval "$ac_compile" 2>conftest.err)
 
4360
  cat conftest.err >&5
 
4361
  (eval echo "\"\$as_me:4361: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4362
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4363
  cat conftest.err >&5
 
4364
  (eval echo "\"\$as_me:4364: output\"" >&5)
 
4365
  cat conftest.out >&5
 
4366
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4367
    lt_cv_nm_interface="MS dumpbin"
 
4368
  fi
 
4369
  rm -f conftest*
 
4370
fi
 
4371
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4372
$as_echo "$lt_cv_nm_interface" >&6; }
 
4373
 
 
4374
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4375
$as_echo_n "checking whether ln -s works... " >&6; }
 
4376
LN_S=$as_ln_s
 
4377
if test "$LN_S" = "ln -s"; then
 
4378
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4379
$as_echo "yes" >&6; }
 
4380
else
 
4381
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4382
$as_echo "no, using $LN_S" >&6; }
 
4383
fi
 
4384
 
 
4385
# find the maximum length of command line arguments
 
4386
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4387
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4388
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4389
  $as_echo_n "(cached) " >&6
 
4390
else
 
4391
    i=0
 
4392
  teststring="ABCD"
 
4393
 
 
4394
  case $build_os in
 
4395
  msdosdjgpp*)
 
4396
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4397
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4398
    # during glob expansion).  Even if it were fixed, the result of this
 
4399
    # check would be larger than it should be.
 
4400
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4401
    ;;
 
4402
 
 
4403
  gnu*)
 
4404
    # Under GNU Hurd, this test is not required because there is
 
4405
    # no limit to the length of command line arguments.
 
4406
    # Libtool will interpret -1 as no limit whatsoever
 
4407
    lt_cv_sys_max_cmd_len=-1;
 
4408
    ;;
 
4409
 
 
4410
  cygwin* | mingw* | cegcc*)
 
4411
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4412
    # about 5 minutes as the teststring grows exponentially.
 
4413
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4414
    # you end up with a "frozen" computer, even though with patience
 
4415
    # the test eventually succeeds (with a max line length of 256k).
 
4416
    # Instead, let's just punt: use the minimum linelength reported by
 
4417
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4418
    lt_cv_sys_max_cmd_len=8192;
 
4419
    ;;
 
4420
 
 
4421
  amigaos*)
 
4422
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4423
    # So we just punt and use a minimum line length of 8192.
 
4424
    lt_cv_sys_max_cmd_len=8192;
 
4425
    ;;
 
4426
 
 
4427
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4428
    # This has been around since 386BSD, at least.  Likely further.
 
4429
    if test -x /sbin/sysctl; then
 
4430
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4431
    elif test -x /usr/sbin/sysctl; then
 
4432
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4433
    else
 
4434
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4435
    fi
 
4436
    # And add a safety zone
 
4437
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4438
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4439
    ;;
 
4440
 
 
4441
  interix*)
 
4442
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4443
    lt_cv_sys_max_cmd_len=196608
 
4444
    ;;
 
4445
 
 
4446
  osf*)
 
4447
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4448
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4449
    # nice to cause kernel panics so lets avoid the loop below.
 
4450
    # First set a reasonable default.
 
4451
    lt_cv_sys_max_cmd_len=16384
 
4452
    #
 
4453
    if test -x /sbin/sysconfig; then
 
4454
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4455
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4456
      esac
 
4457
    fi
 
4458
    ;;
 
4459
  sco3.2v5*)
 
4460
    lt_cv_sys_max_cmd_len=102400
 
4461
    ;;
 
4462
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4463
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4464
    if test -n "$kargmax"; then
 
4465
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4466
    else
 
4467
      lt_cv_sys_max_cmd_len=32768
 
4468
    fi
 
4469
    ;;
 
4470
  *)
 
4471
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4472
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4473
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4474
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4475
    else
 
4476
      # Make teststring a little bigger before we do anything with it.
 
4477
      # a 1K string should be a reasonable start.
 
4478
      for i in 1 2 3 4 5 6 7 8 ; do
 
4479
        teststring=$teststring$teststring
 
4480
      done
 
4481
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4482
      # If test is not a shell built-in, we'll probably end up computing a
 
4483
      # maximum length that is only half of the actual maximum length, but
 
4484
      # we can't tell.
 
4485
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4486
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4487
              test $i != 17 # 1/2 MB should be enough
 
4488
      do
 
4489
        i=`expr $i + 1`
 
4490
        teststring=$teststring$teststring
 
4491
      done
 
4492
      # Only check the string length outside the loop.
 
4493
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4494
      teststring=
 
4495
      # Add a significant safety factor because C++ compilers can tack on
 
4496
      # massive amounts of additional arguments before passing them to the
 
4497
      # linker.  It appears as though 1/2 is a usable value.
 
4498
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4499
    fi
 
4500
    ;;
 
4501
  esac
 
4502
 
 
4503
fi
 
4504
 
 
4505
if test -n $lt_cv_sys_max_cmd_len ; then
 
4506
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4507
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4508
else
 
4509
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4510
$as_echo "none" >&6; }
 
4511
fi
 
4512
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4513
 
 
4514
 
 
4515
 
 
4516
 
 
4517
 
 
4518
 
 
4519
: ${CP="cp -f"}
 
4520
: ${MV="mv -f"}
 
4521
: ${RM="rm -f"}
 
4522
 
 
4523
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4524
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4525
# Try some XSI features
 
4526
xsi_shell=no
 
4527
( _lt_dummy="a/b/c"
 
4528
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4529
      = c,a/b,, \
 
4530
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4531
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4532
  && xsi_shell=yes
 
4533
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4534
$as_echo "$xsi_shell" >&6; }
 
4535
 
 
4536
 
 
4537
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4538
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4539
lt_shell_append=no
 
4540
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4541
    >/dev/null 2>&1 \
 
4542
  && lt_shell_append=yes
 
4543
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4544
$as_echo "$lt_shell_append" >&6; }
 
4545
 
 
4546
 
 
4547
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4548
  lt_unset=unset
 
4549
else
 
4550
  lt_unset=false
 
4551
fi
 
4552
 
 
4553
 
 
4554
 
 
4555
 
 
4556
 
 
4557
# test EBCDIC or ASCII
 
4558
case `echo X|tr X '\101'` in
 
4559
 A) # ASCII based system
 
4560
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4561
  lt_SP2NL='tr \040 \012'
 
4562
  lt_NL2SP='tr \015\012 \040\040'
 
4563
  ;;
 
4564
 *) # EBCDIC based system
 
4565
  lt_SP2NL='tr \100 \n'
 
4566
  lt_NL2SP='tr \r\n \100\100'
 
4567
  ;;
 
4568
esac
 
4569
 
 
4570
 
 
4571
 
 
4572
 
 
4573
 
 
4574
 
 
4575
 
 
4576
 
 
4577
 
 
4578
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4579
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4580
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4581
  $as_echo_n "(cached) " >&6
 
4582
else
 
4583
  lt_cv_ld_reload_flag='-r'
 
4584
fi
 
4585
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4586
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4587
reload_flag=$lt_cv_ld_reload_flag
 
4588
case $reload_flag in
 
4589
"" | " "*) ;;
 
4590
*) reload_flag=" $reload_flag" ;;
 
4591
esac
 
4592
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4593
case $host_os in
 
4594
  darwin*)
 
4595
    if test "$GCC" = yes; then
 
4596
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4597
    else
 
4598
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4599
    fi
 
4600
    ;;
 
4601
esac
 
4602
 
 
4603
 
 
4604
 
 
4605
 
 
4606
 
 
4607
 
 
4608
 
 
4609
 
 
4610
 
 
4611
if test -n "$ac_tool_prefix"; then
 
4612
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4613
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4614
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4615
$as_echo_n "checking for $ac_word... " >&6; }
 
4616
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4617
  $as_echo_n "(cached) " >&6
 
4618
else
 
4619
  if test -n "$OBJDUMP"; then
 
4620
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4621
else
 
4622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4623
for as_dir in $PATH
 
4624
do
 
4625
  IFS=$as_save_IFS
 
4626
  test -z "$as_dir" && as_dir=.
 
4627
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4628
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4629
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4630
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4631
    break 2
 
4632
  fi
 
4633
done
 
4634
done
 
4635
IFS=$as_save_IFS
 
4636
 
 
4637
fi
 
4638
fi
 
4639
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4640
if test -n "$OBJDUMP"; then
 
4641
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4642
$as_echo "$OBJDUMP" >&6; }
 
4643
else
 
4644
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4645
$as_echo "no" >&6; }
 
4646
fi
 
4647
 
 
4648
 
 
4649
fi
 
4650
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4651
  ac_ct_OBJDUMP=$OBJDUMP
 
4652
  # Extract the first word of "objdump", so it can be a program name with args.
 
4653
set dummy objdump; ac_word=$2
 
4654
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4655
$as_echo_n "checking for $ac_word... " >&6; }
 
4656
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4657
  $as_echo_n "(cached) " >&6
 
4658
else
 
4659
  if test -n "$ac_ct_OBJDUMP"; then
 
4660
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4661
else
 
4662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4663
for as_dir in $PATH
 
4664
do
 
4665
  IFS=$as_save_IFS
 
4666
  test -z "$as_dir" && as_dir=.
 
4667
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4669
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4670
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4671
    break 2
 
4672
  fi
 
4673
done
 
4674
done
 
4675
IFS=$as_save_IFS
 
4676
 
 
4677
fi
 
4678
fi
 
4679
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4680
if test -n "$ac_ct_OBJDUMP"; then
 
4681
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4682
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4683
else
 
4684
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4685
$as_echo "no" >&6; }
 
4686
fi
 
4687
 
 
4688
  if test "x$ac_ct_OBJDUMP" = x; then
 
4689
    OBJDUMP="false"
 
4690
  else
 
4691
    case $cross_compiling:$ac_tool_warned in
 
4692
yes:)
 
4693
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4695
ac_tool_warned=yes ;;
 
4696
esac
 
4697
    OBJDUMP=$ac_ct_OBJDUMP
 
4698
  fi
 
4699
else
 
4700
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4701
fi
 
4702
 
 
4703
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4704
 
 
4705
 
 
4706
 
 
4707
 
 
4708
 
 
4709
 
 
4710
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4711
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4712
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4713
  $as_echo_n "(cached) " >&6
 
4714
else
 
4715
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4716
lt_cv_file_magic_test_file=
 
4717
lt_cv_deplibs_check_method='unknown'
 
4718
# Need to set the preceding variable on all platforms that support
 
4719
# interlibrary dependencies.
 
4720
# 'none' -- dependencies not supported.
 
4721
# `unknown' -- same as none, but documents that we really don't know.
 
4722
# 'pass_all' -- all dependencies passed with no checks.
 
4723
# 'test_compile' -- check by making test program.
 
4724
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4725
# which responds to the $file_magic_cmd with a given extended regex.
 
4726
# If you have `file' or equivalent on your system and you're not sure
 
4727
# whether `pass_all' will *always* work, you probably want this one.
 
4728
 
 
4729
case $host_os in
 
4730
aix[4-9]*)
 
4731
  lt_cv_deplibs_check_method=pass_all
 
4732
  ;;
 
4733
 
 
4734
beos*)
 
4735
  lt_cv_deplibs_check_method=pass_all
 
4736
  ;;
 
4737
 
 
4738
bsdi[45]*)
 
4739
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4740
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4741
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4742
  ;;
 
4743
 
 
4744
cygwin*)
 
4745
  # func_win32_libid is a shell function defined in ltmain.sh
 
4746
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4747
  lt_cv_file_magic_cmd='func_win32_libid'
 
4748
  ;;
 
4749
 
 
4750
mingw* | pw32*)
 
4751
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4752
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4753
  # unless we find 'file', for example because we are cross-compiling.
 
4754
  if ( file / ) >/dev/null 2>&1; then
 
4755
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4756
    lt_cv_file_magic_cmd='func_win32_libid'
 
4757
  else
 
4758
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4759
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4760
  fi
 
4761
  ;;
 
4762
 
 
4763
cegcc)
 
4764
  # use the weaker test based on 'objdump'. See mingw*.
 
4765
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4766
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4767
  ;;
 
4768
 
 
4769
darwin* | rhapsody*)
 
4770
  lt_cv_deplibs_check_method=pass_all
 
4771
  ;;
 
4772
 
 
4773
freebsd* | dragonfly*)
 
4774
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4775
    case $host_cpu in
 
4776
    i*86 )
 
4777
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4778
      # Let's accept both of them until this is cleared up.
 
4779
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4780
      lt_cv_file_magic_cmd=/usr/bin/file
 
4781
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4782
      ;;
 
4783
    esac
 
4784
  else
 
4785
    lt_cv_deplibs_check_method=pass_all
 
4786
  fi
 
4787
  ;;
 
4788
 
 
4789
gnu*)
 
4790
  lt_cv_deplibs_check_method=pass_all
 
4791
  ;;
 
4792
 
 
4793
hpux10.20* | hpux11*)
 
4794
  lt_cv_file_magic_cmd=/usr/bin/file
 
4795
  case $host_cpu in
 
4796
  ia64*)
 
4797
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4798
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4799
    ;;
 
4800
  hppa*64*)
 
4801
    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]'
 
4802
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4803
    ;;
 
4804
  *)
 
4805
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4806
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4807
    ;;
 
4808
  esac
 
4809
  ;;
 
4810
 
 
4811
interix[3-9]*)
 
4812
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4813
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4814
  ;;
 
4815
 
 
4816
irix5* | irix6* | nonstopux*)
 
4817
  case $LD in
 
4818
  *-32|*"-32 ") libmagic=32-bit;;
 
4819
  *-n32|*"-n32 ") libmagic=N32;;
 
4820
  *-64|*"-64 ") libmagic=64-bit;;
 
4821
  *) libmagic=never-match;;
 
4822
  esac
 
4823
  lt_cv_deplibs_check_method=pass_all
 
4824
  ;;
 
4825
 
 
4826
# This must be Linux ELF.
 
4827
linux* | k*bsd*-gnu)
 
4828
  lt_cv_deplibs_check_method=pass_all
 
4829
  ;;
 
4830
 
 
4831
netbsd* | netbsdelf*-gnu)
 
4832
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4833
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4834
  else
 
4835
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4836
  fi
 
4837
  ;;
 
4838
 
 
4839
newos6*)
 
4840
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4841
  lt_cv_file_magic_cmd=/usr/bin/file
 
4842
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4843
  ;;
 
4844
 
 
4845
*nto* | *qnx*)
 
4846
  lt_cv_deplibs_check_method=pass_all
 
4847
  ;;
 
4848
 
 
4849
openbsd*)
 
4850
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4851
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4852
  else
 
4853
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4854
  fi
 
4855
  ;;
 
4856
 
 
4857
osf3* | osf4* | osf5*)
 
4858
  lt_cv_deplibs_check_method=pass_all
 
4859
  ;;
 
4860
 
 
4861
rdos*)
 
4862
  lt_cv_deplibs_check_method=pass_all
 
4863
  ;;
 
4864
 
 
4865
solaris*)
 
4866
  lt_cv_deplibs_check_method=pass_all
 
4867
  ;;
 
4868
 
 
4869
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4870
  lt_cv_deplibs_check_method=pass_all
 
4871
  ;;
 
4872
 
 
4873
sysv4 | sysv4.3*)
 
4874
  case $host_vendor in
 
4875
  motorola)
 
4876
    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]'
 
4877
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4878
    ;;
 
4879
  ncr)
 
4880
    lt_cv_deplibs_check_method=pass_all
 
4881
    ;;
 
4882
  sequent)
 
4883
    lt_cv_file_magic_cmd='/bin/file'
 
4884
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4885
    ;;
 
4886
  sni)
 
4887
    lt_cv_file_magic_cmd='/bin/file'
 
4888
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4889
    lt_cv_file_magic_test_file=/lib/libc.so
 
4890
    ;;
 
4891
  siemens)
 
4892
    lt_cv_deplibs_check_method=pass_all
 
4893
    ;;
 
4894
  pc)
 
4895
    lt_cv_deplibs_check_method=pass_all
 
4896
    ;;
 
4897
  esac
 
4898
  ;;
 
4899
 
 
4900
tpf*)
 
4901
  lt_cv_deplibs_check_method=pass_all
 
4902
  ;;
 
4903
esac
 
4904
 
 
4905
fi
 
4906
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4907
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4908
file_magic_cmd=$lt_cv_file_magic_cmd
 
4909
deplibs_check_method=$lt_cv_deplibs_check_method
 
4910
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4911
 
 
4912
 
 
4913
 
 
4914
 
 
4915
 
 
4916
 
 
4917
 
 
4918
 
 
4919
 
 
4920
 
 
4921
 
 
4922
 
 
4923
if test -n "$ac_tool_prefix"; then
 
4924
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
4925
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
4926
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4927
$as_echo_n "checking for $ac_word... " >&6; }
 
4928
if test "${ac_cv_prog_AR+set}" = set; then
 
4929
  $as_echo_n "(cached) " >&6
 
4930
else
 
4931
  if test -n "$AR"; then
 
4932
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4933
else
 
4934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4935
for as_dir in $PATH
 
4936
do
 
4937
  IFS=$as_save_IFS
 
4938
  test -z "$as_dir" && as_dir=.
 
4939
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4941
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4942
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4943
    break 2
 
4944
  fi
 
4945
done
 
4946
done
 
4947
IFS=$as_save_IFS
 
4948
 
 
4949
fi
 
4950
fi
 
4951
AR=$ac_cv_prog_AR
 
4952
if test -n "$AR"; then
 
4953
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
4954
$as_echo "$AR" >&6; }
 
4955
else
 
4956
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4957
$as_echo "no" >&6; }
 
4958
fi
 
4959
 
 
4960
 
 
4961
fi
 
4962
if test -z "$ac_cv_prog_AR"; then
 
4963
  ac_ct_AR=$AR
 
4964
  # Extract the first word of "ar", so it can be a program name with args.
 
4965
set dummy ar; ac_word=$2
 
4966
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4967
$as_echo_n "checking for $ac_word... " >&6; }
 
4968
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
4969
  $as_echo_n "(cached) " >&6
 
4970
else
 
4971
  if test -n "$ac_ct_AR"; then
 
4972
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4973
else
 
4974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4975
for as_dir in $PATH
 
4976
do
 
4977
  IFS=$as_save_IFS
 
4978
  test -z "$as_dir" && as_dir=.
 
4979
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4981
    ac_cv_prog_ac_ct_AR="ar"
 
4982
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4983
    break 2
 
4984
  fi
 
4985
done
 
4986
done
 
4987
IFS=$as_save_IFS
 
4988
 
 
4989
fi
 
4990
fi
 
4991
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
4992
if test -n "$ac_ct_AR"; then
 
4993
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
4994
$as_echo "$ac_ct_AR" >&6; }
 
4995
else
 
4996
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4997
$as_echo "no" >&6; }
 
4998
fi
 
4999
 
 
5000
  if test "x$ac_ct_AR" = x; then
 
5001
    AR="false"
 
5002
  else
 
5003
    case $cross_compiling:$ac_tool_warned in
 
5004
yes:)
 
5005
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5006
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5007
ac_tool_warned=yes ;;
 
5008
esac
 
5009
    AR=$ac_ct_AR
 
5010
  fi
 
5011
else
 
5012
  AR="$ac_cv_prog_AR"
 
5013
fi
 
5014
 
 
5015
test -z "$AR" && AR=ar
 
5016
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5017
 
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
if test -n "$ac_tool_prefix"; then
 
5029
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5030
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5031
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5032
$as_echo_n "checking for $ac_word... " >&6; }
 
5033
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5034
  $as_echo_n "(cached) " >&6
 
5035
else
 
5036
  if test -n "$STRIP"; then
 
5037
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5038
else
 
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5040
for as_dir in $PATH
 
5041
do
 
5042
  IFS=$as_save_IFS
 
5043
  test -z "$as_dir" && as_dir=.
 
5044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5045
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5046
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5047
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5048
    break 2
 
5049
  fi
 
5050
done
 
5051
done
 
5052
IFS=$as_save_IFS
 
5053
 
 
5054
fi
 
5055
fi
 
5056
STRIP=$ac_cv_prog_STRIP
 
5057
if test -n "$STRIP"; then
 
5058
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5059
$as_echo "$STRIP" >&6; }
 
5060
else
 
5061
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5062
$as_echo "no" >&6; }
 
5063
fi
 
5064
 
 
5065
 
 
5066
fi
 
5067
if test -z "$ac_cv_prog_STRIP"; then
 
5068
  ac_ct_STRIP=$STRIP
 
5069
  # Extract the first word of "strip", so it can be a program name with args.
 
5070
set dummy strip; ac_word=$2
 
5071
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5072
$as_echo_n "checking for $ac_word... " >&6; }
 
5073
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5074
  $as_echo_n "(cached) " >&6
 
5075
else
 
5076
  if test -n "$ac_ct_STRIP"; then
 
5077
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5078
else
 
5079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5080
for as_dir in $PATH
 
5081
do
 
5082
  IFS=$as_save_IFS
 
5083
  test -z "$as_dir" && as_dir=.
 
5084
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5085
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5086
    ac_cv_prog_ac_ct_STRIP="strip"
 
5087
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5088
    break 2
 
5089
  fi
 
5090
done
 
5091
done
 
5092
IFS=$as_save_IFS
 
5093
 
 
5094
fi
 
5095
fi
 
5096
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5097
if test -n "$ac_ct_STRIP"; then
 
5098
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5099
$as_echo "$ac_ct_STRIP" >&6; }
 
5100
else
 
5101
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5102
$as_echo "no" >&6; }
 
5103
fi
 
5104
 
 
5105
  if test "x$ac_ct_STRIP" = x; then
 
5106
    STRIP=":"
 
5107
  else
 
5108
    case $cross_compiling:$ac_tool_warned in
 
5109
yes:)
 
5110
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5111
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5112
ac_tool_warned=yes ;;
 
5113
esac
 
5114
    STRIP=$ac_ct_STRIP
 
5115
  fi
 
5116
else
 
5117
  STRIP="$ac_cv_prog_STRIP"
 
5118
fi
 
5119
 
 
5120
test -z "$STRIP" && STRIP=:
 
5121
 
 
5122
 
 
5123
 
 
5124
 
 
5125
 
 
5126
 
 
5127
if test -n "$ac_tool_prefix"; then
 
5128
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5129
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5130
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5131
$as_echo_n "checking for $ac_word... " >&6; }
 
5132
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5133
  $as_echo_n "(cached) " >&6
 
5134
else
 
5135
  if test -n "$RANLIB"; then
 
5136
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5137
else
 
5138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5139
for as_dir in $PATH
 
5140
do
 
5141
  IFS=$as_save_IFS
 
5142
  test -z "$as_dir" && as_dir=.
 
5143
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5144
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5145
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5146
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5147
    break 2
 
5148
  fi
 
5149
done
 
5150
done
 
5151
IFS=$as_save_IFS
 
5152
 
 
5153
fi
 
5154
fi
 
5155
RANLIB=$ac_cv_prog_RANLIB
 
5156
if test -n "$RANLIB"; then
 
5157
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5158
$as_echo "$RANLIB" >&6; }
 
5159
else
 
5160
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5161
$as_echo "no" >&6; }
 
5162
fi
 
5163
 
 
5164
 
 
5165
fi
 
5166
if test -z "$ac_cv_prog_RANLIB"; then
 
5167
  ac_ct_RANLIB=$RANLIB
 
5168
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5169
set dummy ranlib; ac_word=$2
 
5170
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5171
$as_echo_n "checking for $ac_word... " >&6; }
 
5172
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5173
  $as_echo_n "(cached) " >&6
 
5174
else
 
5175
  if test -n "$ac_ct_RANLIB"; then
 
5176
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5177
else
 
5178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5179
for as_dir in $PATH
 
5180
do
 
5181
  IFS=$as_save_IFS
 
5182
  test -z "$as_dir" && as_dir=.
 
5183
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5185
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5186
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5187
    break 2
 
5188
  fi
 
5189
done
 
5190
done
 
5191
IFS=$as_save_IFS
 
5192
 
 
5193
fi
 
5194
fi
 
5195
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5196
if test -n "$ac_ct_RANLIB"; then
 
5197
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5198
$as_echo "$ac_ct_RANLIB" >&6; }
 
5199
else
 
5200
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5201
$as_echo "no" >&6; }
 
5202
fi
 
5203
 
 
5204
  if test "x$ac_ct_RANLIB" = x; then
 
5205
    RANLIB=":"
 
5206
  else
 
5207
    case $cross_compiling:$ac_tool_warned in
 
5208
yes:)
 
5209
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5210
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5211
ac_tool_warned=yes ;;
 
5212
esac
 
5213
    RANLIB=$ac_ct_RANLIB
 
5214
  fi
 
5215
else
 
5216
  RANLIB="$ac_cv_prog_RANLIB"
 
5217
fi
 
5218
 
 
5219
test -z "$RANLIB" && RANLIB=:
 
5220
 
 
5221
 
 
5222
 
 
5223
 
 
5224
 
 
5225
 
 
5226
# Determine commands to create old-style static archives.
 
5227
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5228
old_postinstall_cmds='chmod 644 $oldlib'
 
5229
old_postuninstall_cmds=
 
5230
 
 
5231
if test -n "$RANLIB"; then
 
5232
  case $host_os in
 
5233
  openbsd*)
 
5234
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5235
    ;;
 
5236
  *)
 
5237
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5238
    ;;
 
5239
  esac
 
5240
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5241
fi
 
5242
 
 
5243
 
 
5244
 
 
5245
 
 
5246
 
 
5247
 
 
5248
 
 
5249
 
 
5250
 
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
 
 
5268
 
 
5269
 
 
5270
 
 
5271
 
 
5272
 
 
5273
 
 
5274
 
 
5275
 
 
5276
# If no C compiler was specified, use CC.
 
5277
LTCC=${LTCC-"$CC"}
 
5278
 
 
5279
# If no C compiler flags were specified, use CFLAGS.
 
5280
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5281
 
 
5282
# Allow CC to be a program name with arguments.
 
5283
compiler=$CC
 
5284
 
 
5285
 
 
5286
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5287
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5288
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5289
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5290
  $as_echo_n "(cached) " >&6
 
5291
else
 
5292
 
 
5293
# These are sane defaults that work on at least a few old systems.
 
5294
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5295
 
 
5296
# Character class describing NM global symbol codes.
 
5297
symcode='[BCDEGRST]'
 
5298
 
 
5299
# Regexp to match symbols that can be accessed directly from C.
 
5300
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5301
 
 
5302
# Define system-specific variables.
 
5303
case $host_os in
 
5304
aix*)
 
5305
  symcode='[BCDT]'
 
5306
  ;;
 
5307
cygwin* | mingw* | pw32* | cegcc*)
 
5308
  symcode='[ABCDGISTW]'
 
5309
  ;;
 
5310
hpux*)
 
5311
  if test "$host_cpu" = ia64; then
 
5312
    symcode='[ABCDEGRST]'
 
5313
  fi
 
5314
  ;;
 
5315
irix* | nonstopux*)
 
5316
  symcode='[BCDEGRST]'
 
5317
  ;;
 
5318
osf*)
 
5319
  symcode='[BCDEGQRST]'
 
5320
  ;;
 
5321
solaris*)
 
5322
  symcode='[BDRT]'
 
5323
  ;;
 
5324
sco3.2v5*)
 
5325
  symcode='[DT]'
 
5326
  ;;
 
5327
sysv4.2uw2*)
 
5328
  symcode='[DT]'
 
5329
  ;;
 
5330
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5331
  symcode='[ABDT]'
 
5332
  ;;
 
5333
sysv4)
 
5334
  symcode='[DFNSTU]'
 
5335
  ;;
 
5336
esac
 
5337
 
 
5338
# If we're using GNU nm, then use its standard symbol codes.
 
5339
case `$NM -V 2>&1` in
 
5340
*GNU* | *'with BFD'*)
 
5341
  symcode='[ABCDGIRSTW]' ;;
 
5342
esac
 
5343
 
 
5344
# Transform an extracted symbol line into a proper C declaration.
 
5345
# Some systems (esp. on ia64) link data and code symbols differently,
 
5346
# so use this general approach.
 
5347
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5348
 
 
5349
# Transform an extracted symbol line into symbol name and symbol address
 
5350
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5351
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5352
 
 
5353
# Handle CRLF in mingw tool chain
 
5354
opt_cr=
 
5355
case $build_os in
 
5356
mingw*)
 
5357
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5358
  ;;
 
5359
esac
 
5360
 
 
5361
# Try without a prefix underscore, then with it.
 
5362
for ac_symprfx in "" "_"; do
 
5363
 
 
5364
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5365
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5366
 
 
5367
  # Write the raw and C identifiers.
 
5368
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5369
    # Fake it for dumpbin and say T for any non-static function
 
5370
    # and D for any global variable.
 
5371
    # Also find C++ and __fastcall symbols from MSVC++,
 
5372
    # which start with @ or ?.
 
5373
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5374
"     {last_section=section; section=\$ 3};"\
 
5375
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5376
"     \$ 0!~/External *\|/{next};"\
 
5377
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5378
"     {if(hide[section]) next};"\
 
5379
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5380
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5381
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5382
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5383
"     ' prfx=^$ac_symprfx"
 
5384
  else
 
5385
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5386
  fi
 
5387
 
 
5388
  # Check to see that the pipe works correctly.
 
5389
  pipe_works=no
 
5390
 
 
5391
  rm -f conftest*
 
5392
  cat > conftest.$ac_ext <<_LT_EOF
 
5393
#ifdef __cplusplus
 
5394
extern "C" {
 
5395
#endif
 
5396
char nm_test_var;
 
5397
void nm_test_func(void);
 
5398
void nm_test_func(void){}
 
5399
#ifdef __cplusplus
 
5400
}
 
5401
#endif
 
5402
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5403
_LT_EOF
 
5404
 
 
5405
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5406
  (eval $ac_compile) 2>&5
 
5407
  ac_status=$?
 
5408
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5409
  (exit $ac_status); }; then
 
5410
    # Now try to grab the symbols.
 
5411
    nlist=conftest.nm
 
5412
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5413
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5414
  ac_status=$?
 
5415
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5416
  (exit $ac_status); } && test -s "$nlist"; then
 
5417
      # Try sorting and uniquifying the output.
 
5418
      if sort "$nlist" | uniq > "$nlist"T; then
 
5419
        mv -f "$nlist"T "$nlist"
 
5420
      else
 
5421
        rm -f "$nlist"T
 
5422
      fi
 
5423
 
 
5424
      # Make sure that we snagged all the symbols we need.
 
5425
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5426
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5427
          cat <<_LT_EOF > conftest.$ac_ext
 
5428
#ifdef __cplusplus
 
5429
extern "C" {
 
5430
#endif
 
5431
 
 
5432
_LT_EOF
 
5433
          # Now generate the symbol file.
 
5434
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5435
 
 
5436
          cat <<_LT_EOF >> conftest.$ac_ext
 
5437
 
 
5438
/* The mapping between symbol names and symbols.  */
 
5439
const struct {
 
5440
  const char *name;
 
5441
  void       *address;
 
5442
}
 
5443
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5444
{
 
5445
  { "@PROGRAM@", (void *) 0 },
 
5446
_LT_EOF
 
5447
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5448
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5449
  {0, (void *) 0}
 
5450
};
 
5451
 
 
5452
/* This works around a problem in FreeBSD linker */
 
5453
#ifdef FREEBSD_WORKAROUND
 
5454
static const void *lt_preloaded_setup() {
 
5455
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5456
}
 
5457
#endif
 
5458
 
 
5459
#ifdef __cplusplus
 
5460
}
 
5461
#endif
 
5462
_LT_EOF
 
5463
          # Now try linking the two files.
 
5464
          mv conftest.$ac_objext conftstm.$ac_objext
 
5465
          lt_save_LIBS="$LIBS"
 
5466
          lt_save_CFLAGS="$CFLAGS"
 
5467
          LIBS="conftstm.$ac_objext"
 
5468
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5469
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5470
  (eval $ac_link) 2>&5
 
5471
  ac_status=$?
 
5472
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5473
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5474
            pipe_works=yes
 
5475
          fi
 
5476
          LIBS="$lt_save_LIBS"
 
5477
          CFLAGS="$lt_save_CFLAGS"
 
5478
        else
 
5479
          echo "cannot find nm_test_func in $nlist" >&5
 
5480
        fi
 
5481
      else
 
5482
        echo "cannot find nm_test_var in $nlist" >&5
 
5483
      fi
 
5484
    else
 
5485
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5486
    fi
 
5487
  else
 
5488
    echo "$progname: failed program was:" >&5
 
5489
    cat conftest.$ac_ext >&5
 
5490
  fi
 
5491
  rm -rf conftest* conftst*
 
5492
 
 
5493
  # Do not use the global_symbol_pipe unless it works.
 
5494
  if test "$pipe_works" = yes; then
 
5495
    break
 
5496
  else
 
5497
    lt_cv_sys_global_symbol_pipe=
 
5498
  fi
 
5499
done
 
5500
 
 
5501
fi
 
5502
 
 
5503
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5504
  lt_cv_sys_global_symbol_to_cdecl=
 
5505
fi
 
5506
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5507
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
5508
$as_echo "failed" >&6; }
 
5509
else
 
5510
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
5511
$as_echo "ok" >&6; }
 
5512
fi
 
5513
 
 
5514
 
 
5515
 
 
5516
 
 
5517
 
 
5518
 
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
# Check whether --enable-libtool-lock was given.
 
5537
if test "${enable_libtool_lock+set}" = set; then
 
5538
  enableval=$enable_libtool_lock;
 
5539
fi
 
5540
 
 
5541
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5542
 
 
5543
# Some flags need to be propagated to the compiler or linker for good
 
5544
# libtool support.
 
5545
case $host in
 
5546
ia64-*-hpux*)
 
5547
  # Find out which ABI we are using.
 
5548
  echo 'int i;' > conftest.$ac_ext
 
5549
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5550
  (eval $ac_compile) 2>&5
 
5551
  ac_status=$?
 
5552
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5553
  (exit $ac_status); }; then
 
5554
    case `/usr/bin/file conftest.$ac_objext` in
 
5555
      *ELF-32*)
 
5556
        HPUX_IA64_MODE="32"
 
5557
        ;;
 
5558
      *ELF-64*)
 
5559
        HPUX_IA64_MODE="64"
 
5560
        ;;
 
5561
    esac
 
5562
  fi
 
5563
  rm -rf conftest*
 
5564
  ;;
 
5565
*-*-irix6*)
 
5566
  # Find out which ABI we are using.
 
5567
  echo '#line 5567 "configure"' > conftest.$ac_ext
 
5568
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5569
  (eval $ac_compile) 2>&5
 
5570
  ac_status=$?
 
5571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); }; then
 
5573
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5574
      case `/usr/bin/file conftest.$ac_objext` in
 
5575
        *32-bit*)
 
5576
          LD="${LD-ld} -melf32bsmip"
 
5577
          ;;
 
5578
        *N32*)
 
5579
          LD="${LD-ld} -melf32bmipn32"
 
5580
          ;;
 
5581
        *64-bit*)
 
5582
          LD="${LD-ld} -melf64bmip"
 
5583
        ;;
 
5584
      esac
 
5585
    else
 
5586
      case `/usr/bin/file conftest.$ac_objext` in
 
5587
        *32-bit*)
 
5588
          LD="${LD-ld} -32"
 
5589
          ;;
 
5590
        *N32*)
 
5591
          LD="${LD-ld} -n32"
 
5592
          ;;
 
5593
        *64-bit*)
 
5594
          LD="${LD-ld} -64"
 
5595
          ;;
 
5596
      esac
 
5597
    fi
 
5598
  fi
 
5599
  rm -rf conftest*
 
5600
  ;;
 
5601
 
 
5602
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5603
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5604
  # Find out which ABI we are using.
 
5605
  echo 'int i;' > conftest.$ac_ext
 
5606
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5607
  (eval $ac_compile) 2>&5
 
5608
  ac_status=$?
 
5609
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5610
  (exit $ac_status); }; then
 
5611
    case `/usr/bin/file conftest.o` in
 
5612
      *32-bit*)
 
5613
        case $host in
 
5614
          x86_64-*kfreebsd*-gnu)
 
5615
            LD="${LD-ld} -m elf_i386_fbsd"
 
5616
            ;;
 
5617
          x86_64-*linux*)
 
5618
            LD="${LD-ld} -m elf_i386"
 
5619
            ;;
 
5620
          ppc64-*linux*|powerpc64-*linux*)
 
5621
            LD="${LD-ld} -m elf32ppclinux"
 
5622
            ;;
 
5623
          s390x-*linux*)
 
5624
            LD="${LD-ld} -m elf_s390"
 
5625
            ;;
 
5626
          sparc64-*linux*)
 
5627
            LD="${LD-ld} -m elf32_sparc"
 
5628
            ;;
 
5629
        esac
 
5630
        ;;
 
5631
      *64-bit*)
 
5632
        case $host in
 
5633
          x86_64-*kfreebsd*-gnu)
 
5634
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5635
            ;;
 
5636
          x86_64-*linux*)
 
5637
            LD="${LD-ld} -m elf_x86_64"
 
5638
            ;;
 
5639
          ppc*-*linux*|powerpc*-*linux*)
 
5640
            LD="${LD-ld} -m elf64ppc"
 
5641
            ;;
 
5642
          s390*-*linux*|s390*-*tpf*)
 
5643
            LD="${LD-ld} -m elf64_s390"
 
5644
            ;;
 
5645
          sparc*-*linux*)
 
5646
            LD="${LD-ld} -m elf64_sparc"
 
5647
            ;;
 
5648
        esac
 
5649
        ;;
 
5650
    esac
 
5651
  fi
 
5652
  rm -rf conftest*
 
5653
  ;;
 
5654
 
 
5655
*-*-sco3.2v5*)
 
5656
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5657
  SAVE_CFLAGS="$CFLAGS"
 
5658
  CFLAGS="$CFLAGS -belf"
 
5659
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5660
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5661
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5662
  $as_echo_n "(cached) " >&6
 
5663
else
 
5664
  ac_ext=c
 
5665
ac_cpp='$CPP $CPPFLAGS'
 
5666
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5667
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5668
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5669
 
 
5670
     cat >conftest.$ac_ext <<_ACEOF
 
5671
/* confdefs.h.  */
 
5672
_ACEOF
 
5673
cat confdefs.h >>conftest.$ac_ext
 
5674
cat >>conftest.$ac_ext <<_ACEOF
 
5675
/* end confdefs.h.  */
 
5676
 
 
5677
int
 
5678
main ()
 
5679
{
 
5680
 
 
5681
  ;
 
5682
  return 0;
 
5683
}
 
5684
_ACEOF
 
5685
rm -f conftest.$ac_objext conftest$ac_exeext
 
5686
if { (ac_try="$ac_link"
 
5687
case "(($ac_try" in
 
5688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5689
  *) ac_try_echo=$ac_try;;
 
5690
esac
 
5691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5692
$as_echo "$ac_try_echo") >&5
 
5693
  (eval "$ac_link") 2>conftest.er1
 
5694
  ac_status=$?
 
5695
  grep -v '^ *+' conftest.er1 >conftest.err
 
5696
  rm -f conftest.er1
 
5697
  cat conftest.err >&5
 
5698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5699
  (exit $ac_status); } && {
 
5700
         test -z "$ac_c_werror_flag" ||
 
5701
         test ! -s conftest.err
 
5702
       } && test -s conftest$ac_exeext && {
 
5703
         test "$cross_compiling" = yes ||
 
5704
         $as_test_x conftest$ac_exeext
 
5705
       }; then
 
5706
  lt_cv_cc_needs_belf=yes
 
5707
else
 
5708
  $as_echo "$as_me: failed program was:" >&5
 
5709
sed 's/^/| /' conftest.$ac_ext >&5
 
5710
 
 
5711
        lt_cv_cc_needs_belf=no
 
5712
fi
 
5713
 
 
5714
rm -rf conftest.dSYM
 
5715
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5716
      conftest$ac_exeext conftest.$ac_ext
 
5717
     ac_ext=c
 
5718
ac_cpp='$CPP $CPPFLAGS'
 
5719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5722
 
 
5723
fi
 
5724
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5725
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5726
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5727
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5728
    CFLAGS="$SAVE_CFLAGS"
 
5729
  fi
 
5730
  ;;
 
5731
sparc*-*solaris*)
 
5732
  # Find out which ABI we are using.
 
5733
  echo 'int i;' > conftest.$ac_ext
 
5734
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5735
  (eval $ac_compile) 2>&5
 
5736
  ac_status=$?
 
5737
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5738
  (exit $ac_status); }; then
 
5739
    case `/usr/bin/file conftest.o` in
 
5740
    *64-bit*)
 
5741
      case $lt_cv_prog_gnu_ld in
 
5742
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5743
      *)
 
5744
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5745
          LD="${LD-ld} -64"
 
5746
        fi
 
5747
        ;;
 
5748
      esac
 
5749
      ;;
 
5750
    esac
 
5751
  fi
 
5752
  rm -rf conftest*
 
5753
  ;;
 
5754
esac
 
5755
 
 
5756
need_locks="$enable_libtool_lock"
 
5757
 
 
5758
 
 
5759
  case $host_os in
 
5760
    rhapsody* | darwin*)
 
5761
    if test -n "$ac_tool_prefix"; then
 
5762
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
5763
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
5764
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5765
$as_echo_n "checking for $ac_word... " >&6; }
 
5766
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
5767
  $as_echo_n "(cached) " >&6
 
5768
else
 
5769
  if test -n "$DSYMUTIL"; then
 
5770
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
5771
else
 
5772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5773
for as_dir in $PATH
 
5774
do
 
5775
  IFS=$as_save_IFS
 
5776
  test -z "$as_dir" && as_dir=.
 
5777
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5778
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5779
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
5780
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5781
    break 2
 
5782
  fi
 
5783
done
 
5784
done
 
5785
IFS=$as_save_IFS
 
5786
 
 
5787
fi
 
5788
fi
 
5789
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
5790
if test -n "$DSYMUTIL"; then
 
5791
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
5792
$as_echo "$DSYMUTIL" >&6; }
 
5793
else
 
5794
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5795
$as_echo "no" >&6; }
 
5796
fi
 
5797
 
 
5798
 
 
5799
fi
 
5800
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
5801
  ac_ct_DSYMUTIL=$DSYMUTIL
 
5802
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
5803
set dummy dsymutil; ac_word=$2
 
5804
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5805
$as_echo_n "checking for $ac_word... " >&6; }
 
5806
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
5807
  $as_echo_n "(cached) " >&6
 
5808
else
 
5809
  if test -n "$ac_ct_DSYMUTIL"; then
 
5810
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
5811
else
 
5812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5813
for as_dir in $PATH
 
5814
do
 
5815
  IFS=$as_save_IFS
 
5816
  test -z "$as_dir" && as_dir=.
 
5817
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5819
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
5820
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5821
    break 2
 
5822
  fi
 
5823
done
 
5824
done
 
5825
IFS=$as_save_IFS
 
5826
 
 
5827
fi
 
5828
fi
 
5829
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
5830
if test -n "$ac_ct_DSYMUTIL"; then
 
5831
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
5832
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
5833
else
 
5834
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5835
$as_echo "no" >&6; }
 
5836
fi
 
5837
 
 
5838
  if test "x$ac_ct_DSYMUTIL" = x; then
 
5839
    DSYMUTIL=":"
 
5840
  else
 
5841
    case $cross_compiling:$ac_tool_warned in
 
5842
yes:)
 
5843
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5844
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5845
ac_tool_warned=yes ;;
 
5846
esac
 
5847
    DSYMUTIL=$ac_ct_DSYMUTIL
 
5848
  fi
 
5849
else
 
5850
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
5851
fi
 
5852
 
 
5853
    if test -n "$ac_tool_prefix"; then
 
5854
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
5855
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
5856
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5857
$as_echo_n "checking for $ac_word... " >&6; }
 
5858
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
5859
  $as_echo_n "(cached) " >&6
 
5860
else
 
5861
  if test -n "$NMEDIT"; then
 
5862
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
5863
else
 
5864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5865
for as_dir in $PATH
 
5866
do
 
5867
  IFS=$as_save_IFS
 
5868
  test -z "$as_dir" && as_dir=.
 
5869
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5871
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
5872
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5873
    break 2
 
5874
  fi
 
5875
done
 
5876
done
 
5877
IFS=$as_save_IFS
 
5878
 
 
5879
fi
 
5880
fi
 
5881
NMEDIT=$ac_cv_prog_NMEDIT
 
5882
if test -n "$NMEDIT"; then
 
5883
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
5884
$as_echo "$NMEDIT" >&6; }
 
5885
else
 
5886
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5887
$as_echo "no" >&6; }
 
5888
fi
 
5889
 
 
5890
 
 
5891
fi
 
5892
if test -z "$ac_cv_prog_NMEDIT"; then
 
5893
  ac_ct_NMEDIT=$NMEDIT
 
5894
  # Extract the first word of "nmedit", so it can be a program name with args.
 
5895
set dummy nmedit; ac_word=$2
 
5896
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5897
$as_echo_n "checking for $ac_word... " >&6; }
 
5898
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
5899
  $as_echo_n "(cached) " >&6
 
5900
else
 
5901
  if test -n "$ac_ct_NMEDIT"; then
 
5902
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
5903
else
 
5904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5905
for as_dir in $PATH
 
5906
do
 
5907
  IFS=$as_save_IFS
 
5908
  test -z "$as_dir" && as_dir=.
 
5909
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5911
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
5912
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5913
    break 2
 
5914
  fi
 
5915
done
 
5916
done
 
5917
IFS=$as_save_IFS
 
5918
 
 
5919
fi
 
5920
fi
 
5921
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
5922
if test -n "$ac_ct_NMEDIT"; then
 
5923
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
5924
$as_echo "$ac_ct_NMEDIT" >&6; }
 
5925
else
 
5926
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5927
$as_echo "no" >&6; }
 
5928
fi
 
5929
 
 
5930
  if test "x$ac_ct_NMEDIT" = x; then
 
5931
    NMEDIT=":"
 
5932
  else
 
5933
    case $cross_compiling:$ac_tool_warned in
 
5934
yes:)
 
5935
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5936
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5937
ac_tool_warned=yes ;;
 
5938
esac
 
5939
    NMEDIT=$ac_ct_NMEDIT
 
5940
  fi
 
5941
else
 
5942
  NMEDIT="$ac_cv_prog_NMEDIT"
 
5943
fi
 
5944
 
 
5945
    if test -n "$ac_tool_prefix"; then
 
5946
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
5947
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
5948
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5949
$as_echo_n "checking for $ac_word... " >&6; }
 
5950
if test "${ac_cv_prog_LIPO+set}" = set; then
 
5951
  $as_echo_n "(cached) " >&6
 
5952
else
 
5953
  if test -n "$LIPO"; then
 
5954
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
5955
else
 
5956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5957
for as_dir in $PATH
 
5958
do
 
5959
  IFS=$as_save_IFS
 
5960
  test -z "$as_dir" && as_dir=.
 
5961
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5963
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
5964
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5965
    break 2
 
5966
  fi
 
5967
done
 
5968
done
 
5969
IFS=$as_save_IFS
 
5970
 
 
5971
fi
 
5972
fi
 
5973
LIPO=$ac_cv_prog_LIPO
 
5974
if test -n "$LIPO"; then
 
5975
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
5976
$as_echo "$LIPO" >&6; }
 
5977
else
 
5978
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5979
$as_echo "no" >&6; }
 
5980
fi
 
5981
 
 
5982
 
 
5983
fi
 
5984
if test -z "$ac_cv_prog_LIPO"; then
 
5985
  ac_ct_LIPO=$LIPO
 
5986
  # Extract the first word of "lipo", so it can be a program name with args.
 
5987
set dummy lipo; ac_word=$2
 
5988
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5989
$as_echo_n "checking for $ac_word... " >&6; }
 
5990
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
5991
  $as_echo_n "(cached) " >&6
 
5992
else
 
5993
  if test -n "$ac_ct_LIPO"; then
 
5994
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
5995
else
 
5996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5997
for as_dir in $PATH
 
5998
do
 
5999
  IFS=$as_save_IFS
 
6000
  test -z "$as_dir" && as_dir=.
 
6001
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6002
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6003
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6004
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6005
    break 2
 
6006
  fi
 
6007
done
 
6008
done
 
6009
IFS=$as_save_IFS
 
6010
 
 
6011
fi
 
6012
fi
 
6013
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6014
if test -n "$ac_ct_LIPO"; then
 
6015
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6016
$as_echo "$ac_ct_LIPO" >&6; }
 
6017
else
 
6018
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6019
$as_echo "no" >&6; }
 
6020
fi
 
6021
 
 
6022
  if test "x$ac_ct_LIPO" = x; then
 
6023
    LIPO=":"
 
6024
  else
 
6025
    case $cross_compiling:$ac_tool_warned in
 
6026
yes:)
 
6027
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6028
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6029
ac_tool_warned=yes ;;
 
6030
esac
 
6031
    LIPO=$ac_ct_LIPO
 
6032
  fi
 
6033
else
 
6034
  LIPO="$ac_cv_prog_LIPO"
 
6035
fi
 
6036
 
 
6037
    if test -n "$ac_tool_prefix"; then
 
6038
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6039
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6040
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6041
$as_echo_n "checking for $ac_word... " >&6; }
 
6042
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6043
  $as_echo_n "(cached) " >&6
 
6044
else
 
6045
  if test -n "$OTOOL"; then
 
6046
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6047
else
 
6048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6049
for as_dir in $PATH
 
6050
do
 
6051
  IFS=$as_save_IFS
 
6052
  test -z "$as_dir" && as_dir=.
 
6053
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6055
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6056
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6057
    break 2
 
6058
  fi
 
6059
done
 
6060
done
 
6061
IFS=$as_save_IFS
 
6062
 
 
6063
fi
 
6064
fi
 
6065
OTOOL=$ac_cv_prog_OTOOL
 
6066
if test -n "$OTOOL"; then
 
6067
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6068
$as_echo "$OTOOL" >&6; }
 
6069
else
 
6070
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6071
$as_echo "no" >&6; }
 
6072
fi
 
6073
 
 
6074
 
 
6075
fi
 
6076
if test -z "$ac_cv_prog_OTOOL"; then
 
6077
  ac_ct_OTOOL=$OTOOL
 
6078
  # Extract the first word of "otool", so it can be a program name with args.
 
6079
set dummy otool; ac_word=$2
 
6080
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6081
$as_echo_n "checking for $ac_word... " >&6; }
 
6082
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6083
  $as_echo_n "(cached) " >&6
 
6084
else
 
6085
  if test -n "$ac_ct_OTOOL"; then
 
6086
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6087
else
 
6088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6089
for as_dir in $PATH
 
6090
do
 
6091
  IFS=$as_save_IFS
 
6092
  test -z "$as_dir" && as_dir=.
 
6093
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6094
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6095
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6096
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6097
    break 2
 
6098
  fi
 
6099
done
 
6100
done
 
6101
IFS=$as_save_IFS
 
6102
 
 
6103
fi
 
6104
fi
 
6105
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6106
if test -n "$ac_ct_OTOOL"; then
 
6107
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6108
$as_echo "$ac_ct_OTOOL" >&6; }
 
6109
else
 
6110
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6111
$as_echo "no" >&6; }
 
6112
fi
 
6113
 
 
6114
  if test "x$ac_ct_OTOOL" = x; then
 
6115
    OTOOL=":"
 
6116
  else
 
6117
    case $cross_compiling:$ac_tool_warned in
 
6118
yes:)
 
6119
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6120
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6121
ac_tool_warned=yes ;;
 
6122
esac
 
6123
    OTOOL=$ac_ct_OTOOL
 
6124
  fi
 
6125
else
 
6126
  OTOOL="$ac_cv_prog_OTOOL"
 
6127
fi
 
6128
 
 
6129
    if test -n "$ac_tool_prefix"; then
 
6130
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6131
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6132
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6133
$as_echo_n "checking for $ac_word... " >&6; }
 
6134
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6135
  $as_echo_n "(cached) " >&6
 
6136
else
 
6137
  if test -n "$OTOOL64"; then
 
6138
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6139
else
 
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6141
for as_dir in $PATH
 
6142
do
 
6143
  IFS=$as_save_IFS
 
6144
  test -z "$as_dir" && as_dir=.
 
6145
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6147
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6148
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6149
    break 2
 
6150
  fi
 
6151
done
 
6152
done
 
6153
IFS=$as_save_IFS
 
6154
 
 
6155
fi
 
6156
fi
 
6157
OTOOL64=$ac_cv_prog_OTOOL64
 
6158
if test -n "$OTOOL64"; then
 
6159
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6160
$as_echo "$OTOOL64" >&6; }
 
6161
else
 
6162
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6163
$as_echo "no" >&6; }
 
6164
fi
 
6165
 
 
6166
 
 
6167
fi
 
6168
if test -z "$ac_cv_prog_OTOOL64"; then
 
6169
  ac_ct_OTOOL64=$OTOOL64
 
6170
  # Extract the first word of "otool64", so it can be a program name with args.
 
6171
set dummy otool64; ac_word=$2
 
6172
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6173
$as_echo_n "checking for $ac_word... " >&6; }
 
6174
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6175
  $as_echo_n "(cached) " >&6
 
6176
else
 
6177
  if test -n "$ac_ct_OTOOL64"; then
 
6178
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6179
else
 
6180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6181
for as_dir in $PATH
 
6182
do
 
6183
  IFS=$as_save_IFS
 
6184
  test -z "$as_dir" && as_dir=.
 
6185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6186
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6187
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6188
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6189
    break 2
 
6190
  fi
 
6191
done
 
6192
done
 
6193
IFS=$as_save_IFS
 
6194
 
 
6195
fi
 
6196
fi
 
6197
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6198
if test -n "$ac_ct_OTOOL64"; then
 
6199
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6200
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6201
else
 
6202
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6203
$as_echo "no" >&6; }
 
6204
fi
 
6205
 
 
6206
  if test "x$ac_ct_OTOOL64" = x; then
 
6207
    OTOOL64=":"
 
6208
  else
 
6209
    case $cross_compiling:$ac_tool_warned in
 
6210
yes:)
 
6211
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6212
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6213
ac_tool_warned=yes ;;
 
6214
esac
 
6215
    OTOOL64=$ac_ct_OTOOL64
 
6216
  fi
 
6217
else
 
6218
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6219
fi
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
 
 
6236
 
 
6237
 
 
6238
 
 
6239
 
 
6240
 
 
6241
 
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
 
 
6247
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6248
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6249
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6250
  $as_echo_n "(cached) " >&6
 
6251
else
 
6252
  lt_cv_apple_cc_single_mod=no
 
6253
      if test -z "${LT_MULTI_MODULE}"; then
 
6254
        # By default we will add the -single_module flag. You can override
 
6255
        # by either setting the environment variable LT_MULTI_MODULE
 
6256
        # non-empty at configure time, or by adding -multi_module to the
 
6257
        # link flags.
 
6258
        rm -rf libconftest.dylib*
 
6259
        echo "int foo(void){return 1;}" > conftest.c
 
6260
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6261
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6262
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6263
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6264
        _lt_result=$?
 
6265
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6266
          lt_cv_apple_cc_single_mod=yes
 
6267
        else
 
6268
          cat conftest.err >&5
 
6269
        fi
 
6270
        rm -rf libconftest.dylib*
 
6271
        rm -f conftest.*
 
6272
      fi
 
6273
fi
 
6274
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6275
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6276
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6277
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6278
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6279
  $as_echo_n "(cached) " >&6
 
6280
else
 
6281
  lt_cv_ld_exported_symbols_list=no
 
6282
      save_LDFLAGS=$LDFLAGS
 
6283
      echo "_main" > conftest.sym
 
6284
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6285
      cat >conftest.$ac_ext <<_ACEOF
 
6286
/* confdefs.h.  */
 
6287
_ACEOF
 
6288
cat confdefs.h >>conftest.$ac_ext
 
6289
cat >>conftest.$ac_ext <<_ACEOF
 
6290
/* end confdefs.h.  */
 
6291
 
 
6292
int
 
6293
main ()
 
6294
{
 
6295
 
 
6296
  ;
 
6297
  return 0;
 
6298
}
 
6299
_ACEOF
 
6300
rm -f conftest.$ac_objext conftest$ac_exeext
 
6301
if { (ac_try="$ac_link"
 
6302
case "(($ac_try" in
 
6303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6304
  *) ac_try_echo=$ac_try;;
 
6305
esac
 
6306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6307
$as_echo "$ac_try_echo") >&5
 
6308
  (eval "$ac_link") 2>conftest.er1
 
6309
  ac_status=$?
 
6310
  grep -v '^ *+' conftest.er1 >conftest.err
 
6311
  rm -f conftest.er1
 
6312
  cat conftest.err >&5
 
6313
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6314
  (exit $ac_status); } && {
 
6315
         test -z "$ac_c_werror_flag" ||
 
6316
         test ! -s conftest.err
 
6317
       } && test -s conftest$ac_exeext && {
 
6318
         test "$cross_compiling" = yes ||
 
6319
         $as_test_x conftest$ac_exeext
 
6320
       }; then
 
6321
  lt_cv_ld_exported_symbols_list=yes
 
6322
else
 
6323
  $as_echo "$as_me: failed program was:" >&5
 
6324
sed 's/^/| /' conftest.$ac_ext >&5
 
6325
 
 
6326
        lt_cv_ld_exported_symbols_list=no
 
6327
fi
 
6328
 
 
6329
rm -rf conftest.dSYM
 
6330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6331
      conftest$ac_exeext conftest.$ac_ext
 
6332
        LDFLAGS="$save_LDFLAGS"
 
6333
 
 
6334
fi
 
6335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
6336
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6337
    case $host_os in
 
6338
    rhapsody* | darwin1.[012])
 
6339
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6340
    darwin1.*)
 
6341
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6342
    darwin*) # darwin 5.x on
 
6343
      # if running on 10.5 or later, the deployment target defaults
 
6344
      # to the OS version, if on x86, and 10.4, the deployment
 
6345
      # target defaults to 10.4. Don't you love it?
 
6346
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6347
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6348
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6349
        10.[012]*)
 
6350
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6351
        10.*)
 
6352
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6353
      esac
 
6354
    ;;
 
6355
  esac
 
6356
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6357
      _lt_dar_single_mod='$single_module'
 
6358
    fi
 
6359
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6360
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6361
    else
 
6362
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6363
    fi
 
6364
    if test "$DSYMUTIL" != ":"; then
 
6365
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6366
    else
 
6367
      _lt_dsymutil=
 
6368
    fi
 
6369
    ;;
 
6370
  esac
 
6371
 
 
6372
ac_ext=c
 
6373
ac_cpp='$CPP $CPPFLAGS'
 
6374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6377
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6378
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6379
# On Suns, sometimes $CPP names a directory.
 
6380
if test -n "$CPP" && test -d "$CPP"; then
 
6381
  CPP=
 
6382
fi
 
6383
if test -z "$CPP"; then
 
6384
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6385
  $as_echo_n "(cached) " >&6
 
6386
else
 
6387
      # Double quotes because CPP needs to be expanded
 
6388
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6389
    do
 
6390
      ac_preproc_ok=false
 
6391
for ac_c_preproc_warn_flag in '' yes
 
6392
do
 
6393
  # Use a header file that comes with gcc, so configuring glibc
 
6394
  # with a fresh cross-compiler works.
 
6395
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6396
  # <limits.h> exists even on freestanding compilers.
 
6397
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6398
  # not just through cpp. "Syntax error" is here to catch this case.
 
6399
  cat >conftest.$ac_ext <<_ACEOF
 
6400
/* confdefs.h.  */
 
6401
_ACEOF
 
6402
cat confdefs.h >>conftest.$ac_ext
 
6403
cat >>conftest.$ac_ext <<_ACEOF
 
6404
/* end confdefs.h.  */
 
6405
#ifdef __STDC__
 
6406
# include <limits.h>
 
6407
#else
 
6408
# include <assert.h>
 
6409
#endif
 
6410
                     Syntax error
 
6411
_ACEOF
 
6412
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6413
case "(($ac_try" in
 
6414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6415
  *) ac_try_echo=$ac_try;;
 
6416
esac
 
6417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6418
$as_echo "$ac_try_echo") >&5
 
6419
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6420
  ac_status=$?
 
6421
  grep -v '^ *+' conftest.er1 >conftest.err
 
6422
  rm -f conftest.er1
 
6423
  cat conftest.err >&5
 
6424
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6425
  (exit $ac_status); } >/dev/null && {
 
6426
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6427
         test ! -s conftest.err
 
6428
       }; then
 
6429
  :
 
6430
else
 
6431
  $as_echo "$as_me: failed program was:" >&5
 
6432
sed 's/^/| /' conftest.$ac_ext >&5
 
6433
 
 
6434
  # Broken: fails on valid input.
 
6435
continue
 
6436
fi
 
6437
 
 
6438
rm -f conftest.err conftest.$ac_ext
 
6439
 
 
6440
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6441
  # can be detected and how.
 
6442
  cat >conftest.$ac_ext <<_ACEOF
 
6443
/* confdefs.h.  */
 
6444
_ACEOF
 
6445
cat confdefs.h >>conftest.$ac_ext
 
6446
cat >>conftest.$ac_ext <<_ACEOF
 
6447
/* end confdefs.h.  */
 
6448
#include <ac_nonexistent.h>
 
6449
_ACEOF
 
6450
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6451
case "(($ac_try" in
 
6452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6453
  *) ac_try_echo=$ac_try;;
 
6454
esac
 
6455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6456
$as_echo "$ac_try_echo") >&5
 
6457
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6458
  ac_status=$?
 
6459
  grep -v '^ *+' conftest.er1 >conftest.err
 
6460
  rm -f conftest.er1
 
6461
  cat conftest.err >&5
 
6462
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6463
  (exit $ac_status); } >/dev/null && {
 
6464
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6465
         test ! -s conftest.err
 
6466
       }; then
 
6467
  # Broken: success on invalid input.
 
6468
continue
 
6469
else
 
6470
  $as_echo "$as_me: failed program was:" >&5
 
6471
sed 's/^/| /' conftest.$ac_ext >&5
 
6472
 
 
6473
  # Passes both tests.
 
6474
ac_preproc_ok=:
 
6475
break
 
6476
fi
 
6477
 
 
6478
rm -f conftest.err conftest.$ac_ext
 
6479
 
 
6480
done
 
6481
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6482
rm -f conftest.err conftest.$ac_ext
 
6483
if $ac_preproc_ok; then
 
6484
  break
 
6485
fi
 
6486
 
 
6487
    done
 
6488
    ac_cv_prog_CPP=$CPP
 
6489
 
 
6490
fi
 
6491
  CPP=$ac_cv_prog_CPP
 
6492
else
 
6493
  ac_cv_prog_CPP=$CPP
 
6494
fi
 
6495
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6496
$as_echo "$CPP" >&6; }
 
6497
ac_preproc_ok=false
 
6498
for ac_c_preproc_warn_flag in '' yes
 
6499
do
 
6500
  # Use a header file that comes with gcc, so configuring glibc
 
6501
  # with a fresh cross-compiler works.
 
6502
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6503
  # <limits.h> exists even on freestanding compilers.
 
6504
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6505
  # not just through cpp. "Syntax error" is here to catch this case.
 
6506
  cat >conftest.$ac_ext <<_ACEOF
 
6507
/* confdefs.h.  */
 
6508
_ACEOF
 
6509
cat confdefs.h >>conftest.$ac_ext
 
6510
cat >>conftest.$ac_ext <<_ACEOF
 
6511
/* end confdefs.h.  */
 
6512
#ifdef __STDC__
 
6513
# include <limits.h>
 
6514
#else
 
6515
# include <assert.h>
 
6516
#endif
 
6517
                     Syntax error
 
6518
_ACEOF
 
6519
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6520
case "(($ac_try" in
 
6521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6522
  *) ac_try_echo=$ac_try;;
 
6523
esac
 
6524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6525
$as_echo "$ac_try_echo") >&5
 
6526
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6527
  ac_status=$?
 
6528
  grep -v '^ *+' conftest.er1 >conftest.err
 
6529
  rm -f conftest.er1
 
6530
  cat conftest.err >&5
 
6531
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6532
  (exit $ac_status); } >/dev/null && {
 
6533
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6534
         test ! -s conftest.err
 
6535
       }; then
 
6536
  :
 
6537
else
 
6538
  $as_echo "$as_me: failed program was:" >&5
 
6539
sed 's/^/| /' conftest.$ac_ext >&5
 
6540
 
 
6541
  # Broken: fails on valid input.
 
6542
continue
 
6543
fi
 
6544
 
 
6545
rm -f conftest.err conftest.$ac_ext
 
6546
 
 
6547
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6548
  # can be detected and how.
 
6549
  cat >conftest.$ac_ext <<_ACEOF
 
6550
/* confdefs.h.  */
 
6551
_ACEOF
 
6552
cat confdefs.h >>conftest.$ac_ext
 
6553
cat >>conftest.$ac_ext <<_ACEOF
 
6554
/* end confdefs.h.  */
 
6555
#include <ac_nonexistent.h>
 
6556
_ACEOF
 
6557
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6558
case "(($ac_try" in
 
6559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6560
  *) ac_try_echo=$ac_try;;
 
6561
esac
 
6562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6563
$as_echo "$ac_try_echo") >&5
 
6564
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6565
  ac_status=$?
 
6566
  grep -v '^ *+' conftest.er1 >conftest.err
 
6567
  rm -f conftest.er1
 
6568
  cat conftest.err >&5
 
6569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6570
  (exit $ac_status); } >/dev/null && {
 
6571
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6572
         test ! -s conftest.err
 
6573
       }; then
 
6574
  # Broken: success on invalid input.
 
6575
continue
 
6576
else
 
6577
  $as_echo "$as_me: failed program was:" >&5
 
6578
sed 's/^/| /' conftest.$ac_ext >&5
 
6579
 
 
6580
  # Passes both tests.
 
6581
ac_preproc_ok=:
 
6582
break
 
6583
fi
 
6584
 
 
6585
rm -f conftest.err conftest.$ac_ext
 
6586
 
 
6587
done
 
6588
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6589
rm -f conftest.err conftest.$ac_ext
 
6590
if $ac_preproc_ok; then
 
6591
  :
 
6592
else
 
6593
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6594
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6595
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
6596
See \`config.log' for more details." >&5
 
6597
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
6598
See \`config.log' for more details." >&2;}
 
6599
   { (exit 1); exit 1; }; }; }
 
6600
fi
 
6601
 
 
6602
ac_ext=c
 
6603
ac_cpp='$CPP $CPPFLAGS'
 
6604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6607
 
 
6608
 
 
6609
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6610
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6611
if test "${ac_cv_header_stdc+set}" = set; then
 
6612
  $as_echo_n "(cached) " >&6
 
6613
else
 
6614
  cat >conftest.$ac_ext <<_ACEOF
 
6615
/* confdefs.h.  */
 
6616
_ACEOF
 
6617
cat confdefs.h >>conftest.$ac_ext
 
6618
cat >>conftest.$ac_ext <<_ACEOF
 
6619
/* end confdefs.h.  */
 
6620
#include <stdlib.h>
 
6621
#include <stdarg.h>
 
6622
#include <string.h>
 
6623
#include <float.h>
 
6624
 
 
6625
int
 
6626
main ()
 
6627
{
 
6628
 
 
6629
  ;
 
6630
  return 0;
 
6631
}
 
6632
_ACEOF
 
6633
rm -f conftest.$ac_objext
 
6634
if { (ac_try="$ac_compile"
 
6635
case "(($ac_try" in
 
6636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6637
  *) ac_try_echo=$ac_try;;
 
6638
esac
 
6639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6640
$as_echo "$ac_try_echo") >&5
 
6641
  (eval "$ac_compile") 2>conftest.er1
 
6642
  ac_status=$?
 
6643
  grep -v '^ *+' conftest.er1 >conftest.err
 
6644
  rm -f conftest.er1
 
6645
  cat conftest.err >&5
 
6646
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6647
  (exit $ac_status); } && {
 
6648
         test -z "$ac_c_werror_flag" ||
 
6649
         test ! -s conftest.err
 
6650
       } && test -s conftest.$ac_objext; then
 
6651
  ac_cv_header_stdc=yes
 
6652
else
 
6653
  $as_echo "$as_me: failed program was:" >&5
 
6654
sed 's/^/| /' conftest.$ac_ext >&5
 
6655
 
 
6656
        ac_cv_header_stdc=no
 
6657
fi
 
6658
 
 
6659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6660
 
 
6661
if test $ac_cv_header_stdc = yes; then
 
6662
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6663
  cat >conftest.$ac_ext <<_ACEOF
 
6664
/* confdefs.h.  */
 
6665
_ACEOF
 
6666
cat confdefs.h >>conftest.$ac_ext
 
6667
cat >>conftest.$ac_ext <<_ACEOF
 
6668
/* end confdefs.h.  */
 
6669
#include <string.h>
 
6670
 
 
6671
_ACEOF
 
6672
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6673
  $EGREP "memchr" >/dev/null 2>&1; then
 
6674
  :
 
6675
else
 
6676
  ac_cv_header_stdc=no
 
6677
fi
 
6678
rm -f conftest*
 
6679
 
 
6680
fi
 
6681
 
 
6682
if test $ac_cv_header_stdc = yes; then
 
6683
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6684
  cat >conftest.$ac_ext <<_ACEOF
 
6685
/* confdefs.h.  */
 
6686
_ACEOF
 
6687
cat confdefs.h >>conftest.$ac_ext
 
6688
cat >>conftest.$ac_ext <<_ACEOF
 
6689
/* end confdefs.h.  */
 
6690
#include <stdlib.h>
 
6691
 
 
6692
_ACEOF
 
6693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6694
  $EGREP "free" >/dev/null 2>&1; then
 
6695
  :
 
6696
else
 
6697
  ac_cv_header_stdc=no
 
6698
fi
 
6699
rm -f conftest*
 
6700
 
 
6701
fi
 
6702
 
 
6703
if test $ac_cv_header_stdc = yes; then
 
6704
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6705
  if test "$cross_compiling" = yes; then
 
6706
  :
 
6707
else
 
6708
  cat >conftest.$ac_ext <<_ACEOF
 
6709
/* confdefs.h.  */
 
6710
_ACEOF
 
6711
cat confdefs.h >>conftest.$ac_ext
 
6712
cat >>conftest.$ac_ext <<_ACEOF
 
6713
/* end confdefs.h.  */
 
6714
#include <ctype.h>
 
6715
#include <stdlib.h>
 
6716
#if ((' ' & 0x0FF) == 0x020)
 
6717
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6718
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6719
#else
 
6720
# define ISLOWER(c) \
 
6721
                   (('a' <= (c) && (c) <= 'i') \
 
6722
                     || ('j' <= (c) && (c) <= 'r') \
 
6723
                     || ('s' <= (c) && (c) <= 'z'))
 
6724
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6725
#endif
 
6726
 
 
6727
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6728
int
 
6729
main ()
 
6730
{
 
6731
  int i;
 
6732
  for (i = 0; i < 256; i++)
 
6733
    if (XOR (islower (i), ISLOWER (i))
 
6734
        || toupper (i) != TOUPPER (i))
 
6735
      return 2;
 
6736
  return 0;
 
6737
}
 
6738
_ACEOF
 
6739
rm -f conftest$ac_exeext
 
6740
if { (ac_try="$ac_link"
 
6741
case "(($ac_try" in
 
6742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6743
  *) ac_try_echo=$ac_try;;
 
6744
esac
 
6745
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6746
$as_echo "$ac_try_echo") >&5
 
6747
  (eval "$ac_link") 2>&5
 
6748
  ac_status=$?
 
6749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6750
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6751
  { (case "(($ac_try" in
 
6752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6753
  *) ac_try_echo=$ac_try;;
 
6754
esac
 
6755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6756
$as_echo "$ac_try_echo") >&5
 
6757
  (eval "$ac_try") 2>&5
 
6758
  ac_status=$?
 
6759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6760
  (exit $ac_status); }; }; then
 
6761
  :
 
6762
else
 
6763
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6764
$as_echo "$as_me: failed program was:" >&5
 
6765
sed 's/^/| /' conftest.$ac_ext >&5
 
6766
 
 
6767
( exit $ac_status )
 
6768
ac_cv_header_stdc=no
 
6769
fi
 
6770
rm -rf conftest.dSYM
 
6771
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6772
fi
 
6773
 
 
6774
 
 
6775
fi
 
6776
fi
 
6777
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6778
$as_echo "$ac_cv_header_stdc" >&6; }
 
6779
if test $ac_cv_header_stdc = yes; then
 
6780
 
 
6781
cat >>confdefs.h <<\_ACEOF
 
6782
#define STDC_HEADERS 1
 
6783
_ACEOF
 
6784
 
 
6785
fi
 
6786
 
 
6787
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6788
 
 
6789
 
 
6790
 
 
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
 
6797
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6798
                  inttypes.h stdint.h unistd.h
 
6799
do
 
6800
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6801
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6802
$as_echo_n "checking for $ac_header... " >&6; }
 
6803
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6804
  $as_echo_n "(cached) " >&6
 
6805
else
 
6806
  cat >conftest.$ac_ext <<_ACEOF
 
6807
/* confdefs.h.  */
 
6808
_ACEOF
 
6809
cat confdefs.h >>conftest.$ac_ext
 
6810
cat >>conftest.$ac_ext <<_ACEOF
 
6811
/* end confdefs.h.  */
 
6812
$ac_includes_default
 
6813
 
 
6814
#include <$ac_header>
 
6815
_ACEOF
 
6816
rm -f conftest.$ac_objext
 
6817
if { (ac_try="$ac_compile"
 
6818
case "(($ac_try" in
 
6819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6820
  *) ac_try_echo=$ac_try;;
 
6821
esac
 
6822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6823
$as_echo "$ac_try_echo") >&5
 
6824
  (eval "$ac_compile") 2>conftest.er1
 
6825
  ac_status=$?
 
6826
  grep -v '^ *+' conftest.er1 >conftest.err
 
6827
  rm -f conftest.er1
 
6828
  cat conftest.err >&5
 
6829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6830
  (exit $ac_status); } && {
 
6831
         test -z "$ac_c_werror_flag" ||
 
6832
         test ! -s conftest.err
 
6833
       } && test -s conftest.$ac_objext; then
 
6834
  eval "$as_ac_Header=yes"
 
6835
else
 
6836
  $as_echo "$as_me: failed program was:" >&5
 
6837
sed 's/^/| /' conftest.$ac_ext >&5
 
6838
 
 
6839
        eval "$as_ac_Header=no"
 
6840
fi
 
6841
 
 
6842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6843
fi
 
6844
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6845
                 $as_echo "$as_val"'`
 
6846
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6847
$as_echo "$ac_res" >&6; }
 
6848
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6849
                 $as_echo "$as_val"'`
 
6850
   if test "x$as_val" = x""yes; then
 
6851
  cat >>confdefs.h <<_ACEOF
 
6852
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6853
_ACEOF
 
6854
 
 
6855
fi
 
6856
 
 
6857
done
 
6858
 
 
6859
 
 
6860
 
 
6861
for ac_header in dlfcn.h
 
6862
do
 
6863
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6864
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6865
$as_echo_n "checking for $ac_header... " >&6; }
 
6866
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6867
  $as_echo_n "(cached) " >&6
 
6868
else
 
6869
  cat >conftest.$ac_ext <<_ACEOF
 
6870
/* confdefs.h.  */
 
6871
_ACEOF
 
6872
cat confdefs.h >>conftest.$ac_ext
 
6873
cat >>conftest.$ac_ext <<_ACEOF
 
6874
/* end confdefs.h.  */
 
6875
$ac_includes_default
 
6876
 
 
6877
#include <$ac_header>
 
6878
_ACEOF
 
6879
rm -f conftest.$ac_objext
 
6880
if { (ac_try="$ac_compile"
 
6881
case "(($ac_try" in
 
6882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6883
  *) ac_try_echo=$ac_try;;
 
6884
esac
 
6885
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6886
$as_echo "$ac_try_echo") >&5
 
6887
  (eval "$ac_compile") 2>conftest.er1
 
6888
  ac_status=$?
 
6889
  grep -v '^ *+' conftest.er1 >conftest.err
 
6890
  rm -f conftest.er1
 
6891
  cat conftest.err >&5
 
6892
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6893
  (exit $ac_status); } && {
 
6894
         test -z "$ac_c_werror_flag" ||
 
6895
         test ! -s conftest.err
 
6896
       } && test -s conftest.$ac_objext; then
 
6897
  eval "$as_ac_Header=yes"
 
6898
else
 
6899
  $as_echo "$as_me: failed program was:" >&5
 
6900
sed 's/^/| /' conftest.$ac_ext >&5
 
6901
 
 
6902
        eval "$as_ac_Header=no"
 
6903
fi
 
6904
 
 
6905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6906
fi
 
6907
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6908
                 $as_echo "$as_val"'`
 
6909
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6910
$as_echo "$ac_res" >&6; }
 
6911
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6912
                 $as_echo "$as_val"'`
 
6913
   if test "x$as_val" = x""yes; then
 
6914
  cat >>confdefs.h <<_ACEOF
 
6915
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6916
_ACEOF
 
6917
 
 
6918
fi
 
6919
 
 
6920
done
 
6921
 
 
6922
 
 
6923
 
 
6924
# Set options
 
6925
enable_dlopen=yes
 
6926
enable_win32_dll=yes
 
6927
 
 
6928
case $host in
 
6929
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
6930
  if test -n "$ac_tool_prefix"; then
 
6931
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
6932
set dummy ${ac_tool_prefix}as; ac_word=$2
 
6933
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6934
$as_echo_n "checking for $ac_word... " >&6; }
 
6935
if test "${ac_cv_prog_AS+set}" = set; then
 
6936
  $as_echo_n "(cached) " >&6
 
6937
else
 
6938
  if test -n "$AS"; then
 
6939
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
6940
else
 
6941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6942
for as_dir in $PATH
 
6943
do
 
6944
  IFS=$as_save_IFS
 
6945
  test -z "$as_dir" && as_dir=.
 
6946
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6947
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6948
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
6949
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6950
    break 2
 
6951
  fi
 
6952
done
 
6953
done
 
6954
IFS=$as_save_IFS
 
6955
 
 
6956
fi
 
6957
fi
 
6958
AS=$ac_cv_prog_AS
 
6959
if test -n "$AS"; then
 
6960
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
6961
$as_echo "$AS" >&6; }
 
6962
else
 
6963
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6964
$as_echo "no" >&6; }
 
6965
fi
 
6966
 
 
6967
 
 
6968
fi
 
6969
if test -z "$ac_cv_prog_AS"; then
 
6970
  ac_ct_AS=$AS
 
6971
  # Extract the first word of "as", so it can be a program name with args.
 
6972
set dummy as; ac_word=$2
 
6973
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6974
$as_echo_n "checking for $ac_word... " >&6; }
 
6975
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
6976
  $as_echo_n "(cached) " >&6
 
6977
else
 
6978
  if test -n "$ac_ct_AS"; then
 
6979
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
6980
else
 
6981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6982
for as_dir in $PATH
 
6983
do
 
6984
  IFS=$as_save_IFS
 
6985
  test -z "$as_dir" && as_dir=.
 
6986
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6987
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6988
    ac_cv_prog_ac_ct_AS="as"
 
6989
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6990
    break 2
 
6991
  fi
 
6992
done
 
6993
done
 
6994
IFS=$as_save_IFS
 
6995
 
 
6996
fi
 
6997
fi
 
6998
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
6999
if test -n "$ac_ct_AS"; then
 
7000
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
7001
$as_echo "$ac_ct_AS" >&6; }
 
7002
else
 
7003
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7004
$as_echo "no" >&6; }
 
7005
fi
 
7006
 
 
7007
  if test "x$ac_ct_AS" = x; then
 
7008
    AS="false"
 
7009
  else
 
7010
    case $cross_compiling:$ac_tool_warned in
 
7011
yes:)
 
7012
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7013
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7014
ac_tool_warned=yes ;;
 
7015
esac
 
7016
    AS=$ac_ct_AS
 
7017
  fi
 
7018
else
 
7019
  AS="$ac_cv_prog_AS"
 
7020
fi
 
7021
 
 
7022
  if test -n "$ac_tool_prefix"; then
 
7023
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
7024
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
7025
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7026
$as_echo_n "checking for $ac_word... " >&6; }
 
7027
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
7028
  $as_echo_n "(cached) " >&6
 
7029
else
 
7030
  if test -n "$DLLTOOL"; then
 
7031
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
7032
else
 
7033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7034
for as_dir in $PATH
 
7035
do
 
7036
  IFS=$as_save_IFS
 
7037
  test -z "$as_dir" && as_dir=.
 
7038
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7039
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7040
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
7041
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7042
    break 2
 
7043
  fi
 
7044
done
 
7045
done
 
7046
IFS=$as_save_IFS
 
7047
 
 
7048
fi
 
7049
fi
 
7050
DLLTOOL=$ac_cv_prog_DLLTOOL
 
7051
if test -n "$DLLTOOL"; then
 
7052
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
7053
$as_echo "$DLLTOOL" >&6; }
 
7054
else
 
7055
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7056
$as_echo "no" >&6; }
 
7057
fi
 
7058
 
 
7059
 
 
7060
fi
 
7061
if test -z "$ac_cv_prog_DLLTOOL"; then
 
7062
  ac_ct_DLLTOOL=$DLLTOOL
 
7063
  # Extract the first word of "dlltool", so it can be a program name with args.
 
7064
set dummy dlltool; ac_word=$2
 
7065
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7066
$as_echo_n "checking for $ac_word... " >&6; }
 
7067
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
7068
  $as_echo_n "(cached) " >&6
 
7069
else
 
7070
  if test -n "$ac_ct_DLLTOOL"; then
 
7071
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
7072
else
 
7073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7074
for as_dir in $PATH
 
7075
do
 
7076
  IFS=$as_save_IFS
 
7077
  test -z "$as_dir" && as_dir=.
 
7078
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7079
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7080
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
7081
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7082
    break 2
 
7083
  fi
 
7084
done
 
7085
done
 
7086
IFS=$as_save_IFS
 
7087
 
 
7088
fi
 
7089
fi
 
7090
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
7091
if test -n "$ac_ct_DLLTOOL"; then
 
7092
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
7093
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
7094
else
 
7095
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7096
$as_echo "no" >&6; }
 
7097
fi
 
7098
 
 
7099
  if test "x$ac_ct_DLLTOOL" = x; then
 
7100
    DLLTOOL="false"
 
7101
  else
 
7102
    case $cross_compiling:$ac_tool_warned in
 
7103
yes:)
 
7104
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7105
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7106
ac_tool_warned=yes ;;
 
7107
esac
 
7108
    DLLTOOL=$ac_ct_DLLTOOL
 
7109
  fi
 
7110
else
 
7111
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
7112
fi
 
7113
 
 
7114
  if test -n "$ac_tool_prefix"; then
 
7115
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7116
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7117
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7118
$as_echo_n "checking for $ac_word... " >&6; }
 
7119
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
7120
  $as_echo_n "(cached) " >&6
 
7121
else
 
7122
  if test -n "$OBJDUMP"; then
 
7123
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7124
else
 
7125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7126
for as_dir in $PATH
 
7127
do
 
7128
  IFS=$as_save_IFS
 
7129
  test -z "$as_dir" && as_dir=.
 
7130
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7131
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7132
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7133
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7134
    break 2
 
7135
  fi
 
7136
done
 
7137
done
 
7138
IFS=$as_save_IFS
 
7139
 
 
7140
fi
 
7141
fi
 
7142
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7143
if test -n "$OBJDUMP"; then
 
7144
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
7145
$as_echo "$OBJDUMP" >&6; }
 
7146
else
 
7147
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7148
$as_echo "no" >&6; }
 
7149
fi
 
7150
 
 
7151
 
 
7152
fi
 
7153
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7154
  ac_ct_OBJDUMP=$OBJDUMP
 
7155
  # Extract the first word of "objdump", so it can be a program name with args.
 
7156
set dummy objdump; ac_word=$2
 
7157
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7158
$as_echo_n "checking for $ac_word... " >&6; }
 
7159
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
7160
  $as_echo_n "(cached) " >&6
 
7161
else
 
7162
  if test -n "$ac_ct_OBJDUMP"; then
 
7163
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7164
else
 
7165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7166
for as_dir in $PATH
 
7167
do
 
7168
  IFS=$as_save_IFS
 
7169
  test -z "$as_dir" && as_dir=.
 
7170
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7171
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7172
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7173
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7174
    break 2
 
7175
  fi
 
7176
done
 
7177
done
 
7178
IFS=$as_save_IFS
 
7179
 
 
7180
fi
 
7181
fi
 
7182
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7183
if test -n "$ac_ct_OBJDUMP"; then
 
7184
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
7185
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7186
else
 
7187
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7188
$as_echo "no" >&6; }
 
7189
fi
 
7190
 
 
7191
  if test "x$ac_ct_OBJDUMP" = x; then
 
7192
    OBJDUMP="false"
 
7193
  else
 
7194
    case $cross_compiling:$ac_tool_warned in
 
7195
yes:)
 
7196
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7198
ac_tool_warned=yes ;;
 
7199
esac
 
7200
    OBJDUMP=$ac_ct_OBJDUMP
 
7201
  fi
 
7202
else
 
7203
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7204
fi
 
7205
 
 
7206
  ;;
 
7207
esac
 
7208
 
 
7209
test -z "$AS" && AS=as
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7222
 
 
7223
 
 
7224
 
 
7225
 
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
            # Check whether --enable-shared was given.
 
7232
if test "${enable_shared+set}" = set; then
 
7233
  enableval=$enable_shared; p=${PACKAGE-default}
 
7234
    case $enableval in
 
7235
    yes) enable_shared=yes ;;
 
7236
    no) enable_shared=no ;;
 
7237
    *)
 
7238
      enable_shared=no
 
7239
      # Look at the argument we got.  We use all the common list separators.
 
7240
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7241
      for pkg in $enableval; do
 
7242
        IFS="$lt_save_ifs"
 
7243
        if test "X$pkg" = "X$p"; then
 
7244
          enable_shared=yes
 
7245
        fi
 
7246
      done
 
7247
      IFS="$lt_save_ifs"
 
7248
      ;;
 
7249
    esac
 
7250
else
 
7251
  enable_shared=yes
 
7252
fi
 
7253
 
 
7254
 
 
7255
 
 
7256
 
 
7257
 
 
7258
 
 
7259
 
 
7260
 
 
7261
 
 
7262
  # Check whether --enable-static was given.
 
7263
if test "${enable_static+set}" = set; then
 
7264
  enableval=$enable_static; p=${PACKAGE-default}
 
7265
    case $enableval in
 
7266
    yes) enable_static=yes ;;
 
7267
    no) enable_static=no ;;
 
7268
    *)
 
7269
     enable_static=no
 
7270
      # Look at the argument we got.  We use all the common list separators.
 
7271
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7272
      for pkg in $enableval; do
 
7273
        IFS="$lt_save_ifs"
 
7274
        if test "X$pkg" = "X$p"; then
 
7275
          enable_static=yes
 
7276
        fi
 
7277
      done
 
7278
      IFS="$lt_save_ifs"
 
7279
      ;;
 
7280
    esac
 
7281
else
 
7282
  enable_static=yes
 
7283
fi
 
7284
 
 
7285
 
 
7286
 
 
7287
 
 
7288
 
 
7289
 
 
7290
 
 
7291
 
 
7292
 
 
7293
 
 
7294
# Check whether --with-pic was given.
 
7295
if test "${with_pic+set}" = set; then
 
7296
  withval=$with_pic; pic_mode="$withval"
 
7297
else
 
7298
  pic_mode=default
 
7299
fi
 
7300
 
 
7301
 
 
7302
test -z "$pic_mode" && pic_mode=default
 
7303
 
 
7304
 
 
7305
 
 
7306
 
 
7307
 
 
7308
 
 
7309
 
 
7310
  # Check whether --enable-fast-install was given.
 
7311
if test "${enable_fast_install+set}" = set; then
 
7312
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7313
    case $enableval in
 
7314
    yes) enable_fast_install=yes ;;
 
7315
    no) enable_fast_install=no ;;
 
7316
    *)
 
7317
      enable_fast_install=no
 
7318
      # Look at the argument we got.  We use all the common list separators.
 
7319
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7320
      for pkg in $enableval; do
 
7321
        IFS="$lt_save_ifs"
 
7322
        if test "X$pkg" = "X$p"; then
 
7323
          enable_fast_install=yes
 
7324
        fi
 
7325
      done
 
7326
      IFS="$lt_save_ifs"
 
7327
      ;;
 
7328
    esac
 
7329
else
 
7330
  enable_fast_install=yes
 
7331
fi
 
7332
 
 
7333
 
 
7334
 
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
 
 
7340
 
 
7341
 
 
7342
 
 
7343
# This can be used to rebuild libtool when needed
 
7344
LIBTOOL_DEPS="$ltmain"
 
7345
 
 
7346
# Always use our own libtool.
 
7347
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7348
 
 
7349
 
 
7350
 
 
7351
 
 
7352
 
 
7353
 
 
7354
 
 
7355
 
 
7356
 
 
7357
 
 
7358
 
 
7359
 
 
7360
 
 
7361
 
 
7362
 
 
7363
 
 
7364
 
 
7365
 
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
 
 
7372
 
 
7373
test -z "$LN_S" && LN_S="ln -s"
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
 
 
7388
if test -n "${ZSH_VERSION+set}" ; then
 
7389
   setopt NO_GLOB_SUBST
 
7390
fi
 
7391
 
 
7392
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7393
$as_echo_n "checking for objdir... " >&6; }
 
7394
if test "${lt_cv_objdir+set}" = set; then
 
7395
  $as_echo_n "(cached) " >&6
 
7396
else
 
7397
  rm -f .libs 2>/dev/null
 
7398
mkdir .libs 2>/dev/null
 
7399
if test -d .libs; then
 
7400
  lt_cv_objdir=.libs
 
7401
else
 
7402
  # MS-DOS does not allow filenames that begin with a dot.
 
7403
  lt_cv_objdir=_libs
 
7404
fi
 
7405
rmdir .libs 2>/dev/null
 
7406
fi
 
7407
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7408
$as_echo "$lt_cv_objdir" >&6; }
 
7409
objdir=$lt_cv_objdir
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
cat >>confdefs.h <<_ACEOF
 
7416
#define LT_OBJDIR "$lt_cv_objdir/"
 
7417
_ACEOF
 
7418
 
 
7419
 
 
7420
 
 
7421
 
 
7422
 
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
 
7435
case $host_os in
 
7436
aix3*)
 
7437
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7438
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7439
  # vanish in a puff of smoke.
 
7440
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7441
    COLLECT_NAMES=
 
7442
    export COLLECT_NAMES
 
7443
  fi
 
7444
  ;;
 
7445
esac
 
7446
 
 
7447
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7448
# metacharacters that are still active within double-quoted strings.
 
7449
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7450
 
 
7451
# Same as above, but do not quote variable references.
 
7452
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7453
 
 
7454
# Sed substitution to delay expansion of an escaped shell variable in a
 
7455
# double_quote_subst'ed string.
 
7456
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7457
 
 
7458
# Sed substitution to delay expansion of an escaped single quote.
 
7459
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7460
 
 
7461
# Sed substitution to avoid accidental globbing in evaled expressions
 
7462
no_glob_subst='s/\*/\\\*/g'
 
7463
 
 
7464
# Global variables:
 
7465
ofile=libtool
 
7466
can_build_shared=yes
 
7467
 
 
7468
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7469
# which needs '.lib').
 
7470
libext=a
 
7471
 
 
7472
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7473
 
 
7474
old_CC="$CC"
 
7475
old_CFLAGS="$CFLAGS"
 
7476
 
 
7477
# Set sane defaults for various variables
 
7478
test -z "$CC" && CC=cc
 
7479
test -z "$LTCC" && LTCC=$CC
 
7480
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7481
test -z "$LD" && LD=ld
 
7482
test -z "$ac_objext" && ac_objext=o
 
7483
 
 
7484
for cc_temp in $compiler""; do
 
7485
  case $cc_temp in
 
7486
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7487
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7488
    \-*) ;;
 
7489
    *) break;;
 
7490
  esac
 
7491
done
 
7492
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7493
 
 
7494
 
 
7495
# Only perform the check for file, if the check method requires it
 
7496
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7497
case $deplibs_check_method in
 
7498
file_magic*)
 
7499
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7500
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7501
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7502
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7503
  $as_echo_n "(cached) " >&6
 
7504
else
 
7505
  case $MAGIC_CMD in
 
7506
[\\/*] |  ?:[\\/]*)
 
7507
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7508
  ;;
 
7509
*)
 
7510
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7511
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7512
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7513
  for ac_dir in $ac_dummy; do
 
7514
    IFS="$lt_save_ifs"
 
7515
    test -z "$ac_dir" && ac_dir=.
 
7516
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7517
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7518
      if test -n "$file_magic_test_file"; then
 
7519
        case $deplibs_check_method in
 
7520
        "file_magic "*)
 
7521
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7522
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7523
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7524
            $EGREP "$file_magic_regex" > /dev/null; then
 
7525
            :
 
7526
          else
 
7527
            cat <<_LT_EOF 1>&2
 
7528
 
 
7529
*** Warning: the command libtool uses to detect shared libraries,
 
7530
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7531
*** The result is that libtool may fail to recognize shared libraries
 
7532
*** as such.  This will affect the creation of libtool libraries that
 
7533
*** depend on shared libraries, but programs linked with such libtool
 
7534
*** libraries will work regardless of this problem.  Nevertheless, you
 
7535
*** may want to report the problem to your system manager and/or to
 
7536
*** bug-libtool@gnu.org
 
7537
 
 
7538
_LT_EOF
 
7539
          fi ;;
 
7540
        esac
 
7541
      fi
 
7542
      break
 
7543
    fi
 
7544
  done
 
7545
  IFS="$lt_save_ifs"
 
7546
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7547
  ;;
 
7548
esac
 
7549
fi
 
7550
 
 
7551
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7552
if test -n "$MAGIC_CMD"; then
 
7553
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7554
$as_echo "$MAGIC_CMD" >&6; }
 
7555
else
 
7556
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7557
$as_echo "no" >&6; }
 
7558
fi
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7565
  if test -n "$ac_tool_prefix"; then
 
7566
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7567
$as_echo_n "checking for file... " >&6; }
 
7568
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7569
  $as_echo_n "(cached) " >&6
 
7570
else
 
7571
  case $MAGIC_CMD in
 
7572
[\\/*] |  ?:[\\/]*)
 
7573
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7574
  ;;
 
7575
*)
 
7576
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7577
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7578
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7579
  for ac_dir in $ac_dummy; do
 
7580
    IFS="$lt_save_ifs"
 
7581
    test -z "$ac_dir" && ac_dir=.
 
7582
    if test -f $ac_dir/file; then
 
7583
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7584
      if test -n "$file_magic_test_file"; then
 
7585
        case $deplibs_check_method in
 
7586
        "file_magic "*)
 
7587
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7588
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7589
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7590
            $EGREP "$file_magic_regex" > /dev/null; then
 
7591
            :
 
7592
          else
 
7593
            cat <<_LT_EOF 1>&2
 
7594
 
 
7595
*** Warning: the command libtool uses to detect shared libraries,
 
7596
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7597
*** The result is that libtool may fail to recognize shared libraries
 
7598
*** as such.  This will affect the creation of libtool libraries that
 
7599
*** depend on shared libraries, but programs linked with such libtool
 
7600
*** libraries will work regardless of this problem.  Nevertheless, you
 
7601
*** may want to report the problem to your system manager and/or to
 
7602
*** bug-libtool@gnu.org
 
7603
 
 
7604
_LT_EOF
 
7605
          fi ;;
 
7606
        esac
 
7607
      fi
 
7608
      break
 
7609
    fi
 
7610
  done
 
7611
  IFS="$lt_save_ifs"
 
7612
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7613
  ;;
 
7614
esac
 
7615
fi
 
7616
 
 
7617
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7618
if test -n "$MAGIC_CMD"; then
 
7619
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7620
$as_echo "$MAGIC_CMD" >&6; }
 
7621
else
 
7622
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7623
$as_echo "no" >&6; }
 
7624
fi
 
7625
 
 
7626
 
 
7627
  else
 
7628
    MAGIC_CMD=:
 
7629
  fi
 
7630
fi
 
7631
 
 
7632
  fi
 
7633
  ;;
 
7634
esac
 
7635
 
 
7636
# Use C for the default configuration in the libtool script
 
7637
 
 
7638
lt_save_CC="$CC"
 
7639
ac_ext=c
 
7640
ac_cpp='$CPP $CPPFLAGS'
 
7641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7644
 
 
7645
 
 
7646
# Source file extension for C test sources.
 
7647
ac_ext=c
 
7648
 
 
7649
# Object file extension for compiled C test sources.
 
7650
objext=o
 
7651
objext=$objext
 
7652
 
 
7653
# Code to be used in simple compile tests
 
7654
lt_simple_compile_test_code="int some_variable = 0;"
 
7655
 
 
7656
# Code to be used in simple link tests
 
7657
lt_simple_link_test_code='int main(){return(0);}'
 
7658
 
 
7659
 
 
7660
 
 
7661
 
 
7662
 
 
7663
 
 
7664
 
 
7665
# If no C compiler was specified, use CC.
 
7666
LTCC=${LTCC-"$CC"}
 
7667
 
 
7668
# If no C compiler flags were specified, use CFLAGS.
 
7669
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7670
 
 
7671
# Allow CC to be a program name with arguments.
 
7672
compiler=$CC
 
7673
 
 
7674
# Save the default compiler, since it gets overwritten when the other
 
7675
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7676
compiler_DEFAULT=$CC
 
7677
 
 
7678
# save warnings/boilerplate of simple test code
 
7679
ac_outfile=conftest.$ac_objext
 
7680
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7681
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7682
_lt_compiler_boilerplate=`cat conftest.err`
 
7683
$RM conftest*
 
7684
 
 
7685
ac_outfile=conftest.$ac_objext
 
7686
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7687
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7688
_lt_linker_boilerplate=`cat conftest.err`
 
7689
$RM -r conftest*
 
7690
 
 
7691
 
 
7692
## CAVEAT EMPTOR:
 
7693
## There is no encapsulation within the following macros, do not change
 
7694
## the running order or otherwise move them around unless you know exactly
 
7695
## what you are doing...
 
7696
if test -n "$compiler"; then
 
7697
 
 
7698
lt_prog_compiler_no_builtin_flag=
 
7699
 
 
7700
if test "$GCC" = yes; then
 
7701
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7702
 
 
7703
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7704
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7705
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7706
  $as_echo_n "(cached) " >&6
 
7707
else
 
7708
  lt_cv_prog_compiler_rtti_exceptions=no
 
7709
   ac_outfile=conftest.$ac_objext
 
7710
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7711
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7712
   # Insert the option either (1) after the last *FLAGS variable, or
 
7713
   # (2) before a word containing "conftest.", or (3) at the end.
 
7714
   # Note that $ac_compile itself does not contain backslashes and begins
 
7715
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7716
   # The option is referenced via a variable to avoid confusing sed.
 
7717
   lt_compile=`echo "$ac_compile" | $SED \
 
7718
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7719
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7720
   -e 's:$: $lt_compiler_flag:'`
 
7721
   (eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
 
7722
   (eval "$lt_compile" 2>conftest.err)
 
7723
   ac_status=$?
 
7724
   cat conftest.err >&5
 
7725
   echo "$as_me:7725: \$? = $ac_status" >&5
 
7726
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7727
     # The compiler can only warn and ignore the option if not recognized
 
7728
     # So say no if there are warnings other than the usual output.
 
7729
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7730
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7731
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7732
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7733
     fi
 
7734
   fi
 
7735
   $RM conftest*
 
7736
 
 
7737
fi
 
7738
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7739
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7740
 
 
7741
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7742
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7743
else
 
7744
    :
 
7745
fi
 
7746
 
 
7747
fi
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
  lt_prog_compiler_wl=
 
7755
lt_prog_compiler_pic=
 
7756
lt_prog_compiler_static=
 
7757
 
 
7758
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7759
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7760
 
 
7761
  if test "$GCC" = yes; then
 
7762
    lt_prog_compiler_wl='-Wl,'
 
7763
    lt_prog_compiler_static='-static'
 
7764
 
 
7765
    case $host_os in
 
7766
      aix*)
 
7767
      # All AIX code is PIC.
 
7768
      if test "$host_cpu" = ia64; then
 
7769
        # AIX 5 now supports IA64 processor
 
7770
        lt_prog_compiler_static='-Bstatic'
 
7771
      fi
 
7772
      ;;
 
7773
 
 
7774
    amigaos*)
 
7775
      case $host_cpu in
 
7776
      powerpc)
 
7777
            # see comment about AmigaOS4 .so support
 
7778
            lt_prog_compiler_pic='-fPIC'
 
7779
        ;;
 
7780
      m68k)
 
7781
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7782
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7783
            # like `-m68040'.
 
7784
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7785
        ;;
 
7786
      esac
 
7787
      ;;
 
7788
 
 
7789
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7790
      # PIC is the default for these OSes.
 
7791
      ;;
 
7792
 
 
7793
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7794
      # This hack is so that the source file can tell whether it is being
 
7795
      # built for inclusion in a dll (and should export symbols for example).
 
7796
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7797
      # (--disable-auto-import) libraries
 
7798
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7799
      ;;
 
7800
 
 
7801
    darwin* | rhapsody*)
 
7802
      # PIC is the default on this platform
 
7803
      # Common symbols not allowed in MH_DYLIB files
 
7804
      lt_prog_compiler_pic='-fno-common'
 
7805
      ;;
 
7806
 
 
7807
    hpux*)
 
7808
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7809
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7810
      # sets the default TLS model and affects inlining.
 
7811
      case $host_cpu in
 
7812
      hppa*64*)
 
7813
        # +Z the default
 
7814
        ;;
 
7815
      *)
 
7816
        lt_prog_compiler_pic='-fPIC'
 
7817
        ;;
 
7818
      esac
 
7819
      ;;
 
7820
 
 
7821
    interix[3-9]*)
 
7822
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7823
      # Instead, we relocate shared libraries at runtime.
 
7824
      ;;
 
7825
 
 
7826
    msdosdjgpp*)
 
7827
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7828
      # on systems that don't support them.
 
7829
      lt_prog_compiler_can_build_shared=no
 
7830
      enable_shared=no
 
7831
      ;;
 
7832
 
 
7833
    *nto* | *qnx*)
 
7834
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7835
      # it will coredump.
 
7836
      lt_prog_compiler_pic='-fPIC -shared'
 
7837
      ;;
 
7838
 
 
7839
    sysv4*MP*)
 
7840
      if test -d /usr/nec; then
 
7841
        lt_prog_compiler_pic=-Kconform_pic
 
7842
      fi
 
7843
      ;;
 
7844
 
 
7845
    *)
 
7846
      lt_prog_compiler_pic='-fPIC'
 
7847
      ;;
 
7848
    esac
 
7849
  else
 
7850
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7851
    case $host_os in
 
7852
    aix*)
 
7853
      lt_prog_compiler_wl='-Wl,'
 
7854
      if test "$host_cpu" = ia64; then
 
7855
        # AIX 5 now supports IA64 processor
 
7856
        lt_prog_compiler_static='-Bstatic'
 
7857
      else
 
7858
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7859
      fi
 
7860
      ;;
 
7861
 
 
7862
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7863
      # This hack is so that the source file can tell whether it is being
 
7864
      # built for inclusion in a dll (and should export symbols for example).
 
7865
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7866
      ;;
 
7867
 
 
7868
    hpux9* | hpux10* | hpux11*)
 
7869
      lt_prog_compiler_wl='-Wl,'
 
7870
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7871
      # not for PA HP-UX.
 
7872
      case $host_cpu in
 
7873
      hppa*64*|ia64*)
 
7874
        # +Z the default
 
7875
        ;;
 
7876
      *)
 
7877
        lt_prog_compiler_pic='+Z'
 
7878
        ;;
 
7879
      esac
 
7880
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7881
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7882
      ;;
 
7883
 
 
7884
    irix5* | irix6* | nonstopux*)
 
7885
      lt_prog_compiler_wl='-Wl,'
 
7886
      # PIC (with -KPIC) is the default.
 
7887
      lt_prog_compiler_static='-non_shared'
 
7888
      ;;
 
7889
 
 
7890
    linux* | k*bsd*-gnu)
 
7891
      case $cc_basename in
 
7892
      # old Intel for x86_64 which still supported -KPIC.
 
7893
      ecc*)
 
7894
        lt_prog_compiler_wl='-Wl,'
 
7895
        lt_prog_compiler_pic='-KPIC'
 
7896
        lt_prog_compiler_static='-static'
 
7897
        ;;
 
7898
      # icc used to be incompatible with GCC.
 
7899
      # ICC 10 doesn't accept -KPIC any more.
 
7900
      icc* | ifort*)
 
7901
        lt_prog_compiler_wl='-Wl,'
 
7902
        lt_prog_compiler_pic='-fPIC'
 
7903
        lt_prog_compiler_static='-static'
 
7904
        ;;
 
7905
      # Lahey Fortran 8.1.
 
7906
      lf95*)
 
7907
        lt_prog_compiler_wl='-Wl,'
 
7908
        lt_prog_compiler_pic='--shared'
 
7909
        lt_prog_compiler_static='--static'
 
7910
        ;;
 
7911
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7912
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7913
        # which looks to be a dead project)
 
7914
        lt_prog_compiler_wl='-Wl,'
 
7915
        lt_prog_compiler_pic='-fpic'
 
7916
        lt_prog_compiler_static='-Bstatic'
 
7917
        ;;
 
7918
      ccc*)
 
7919
        lt_prog_compiler_wl='-Wl,'
 
7920
        # All Alpha code is PIC.
 
7921
        lt_prog_compiler_static='-non_shared'
 
7922
        ;;
 
7923
      xl*)
 
7924
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7925
        lt_prog_compiler_wl='-Wl,'
 
7926
        lt_prog_compiler_pic='-qpic'
 
7927
        lt_prog_compiler_static='-qstaticlink'
 
7928
        ;;
 
7929
      *)
 
7930
        case `$CC -V 2>&1 | sed 5q` in
 
7931
        *Sun\ C*)
 
7932
          # Sun C 5.9
 
7933
          lt_prog_compiler_pic='-KPIC'
 
7934
          lt_prog_compiler_static='-Bstatic'
 
7935
          lt_prog_compiler_wl='-Wl,'
 
7936
          ;;
 
7937
        *Sun\ F*)
 
7938
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7939
          lt_prog_compiler_pic='-KPIC'
 
7940
          lt_prog_compiler_static='-Bstatic'
 
7941
          lt_prog_compiler_wl=''
 
7942
          ;;
 
7943
        esac
 
7944
        ;;
 
7945
      esac
 
7946
      ;;
 
7947
 
 
7948
    newsos6)
 
7949
      lt_prog_compiler_pic='-KPIC'
 
7950
      lt_prog_compiler_static='-Bstatic'
 
7951
      ;;
 
7952
 
 
7953
    *nto* | *qnx*)
 
7954
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7955
      # it will coredump.
 
7956
      lt_prog_compiler_pic='-fPIC -shared'
 
7957
      ;;
 
7958
 
 
7959
    osf3* | osf4* | osf5*)
 
7960
      lt_prog_compiler_wl='-Wl,'
 
7961
      # All OSF/1 code is PIC.
 
7962
      lt_prog_compiler_static='-non_shared'
 
7963
      ;;
 
7964
 
 
7965
    rdos*)
 
7966
      lt_prog_compiler_static='-non_shared'
 
7967
      ;;
 
7968
 
 
7969
    solaris*)
 
7970
      lt_prog_compiler_pic='-KPIC'
 
7971
      lt_prog_compiler_static='-Bstatic'
 
7972
      case $cc_basename in
 
7973
      f77* | f90* | f95*)
 
7974
        lt_prog_compiler_wl='-Qoption ld ';;
 
7975
      *)
 
7976
        lt_prog_compiler_wl='-Wl,';;
 
7977
      esac
 
7978
      ;;
 
7979
 
 
7980
    sunos4*)
 
7981
      lt_prog_compiler_wl='-Qoption ld '
 
7982
      lt_prog_compiler_pic='-PIC'
 
7983
      lt_prog_compiler_static='-Bstatic'
 
7984
      ;;
 
7985
 
 
7986
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7987
      lt_prog_compiler_wl='-Wl,'
 
7988
      lt_prog_compiler_pic='-KPIC'
 
7989
      lt_prog_compiler_static='-Bstatic'
 
7990
      ;;
 
7991
 
 
7992
    sysv4*MP*)
 
7993
      if test -d /usr/nec ;then
 
7994
        lt_prog_compiler_pic='-Kconform_pic'
 
7995
        lt_prog_compiler_static='-Bstatic'
 
7996
      fi
 
7997
      ;;
 
7998
 
 
7999
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8000
      lt_prog_compiler_wl='-Wl,'
 
8001
      lt_prog_compiler_pic='-KPIC'
 
8002
      lt_prog_compiler_static='-Bstatic'
 
8003
      ;;
 
8004
 
 
8005
    unicos*)
 
8006
      lt_prog_compiler_wl='-Wl,'
 
8007
      lt_prog_compiler_can_build_shared=no
 
8008
      ;;
 
8009
 
 
8010
    uts4*)
 
8011
      lt_prog_compiler_pic='-pic'
 
8012
      lt_prog_compiler_static='-Bstatic'
 
8013
      ;;
 
8014
 
 
8015
    *)
 
8016
      lt_prog_compiler_can_build_shared=no
 
8017
      ;;
 
8018
    esac
 
8019
  fi
 
8020
 
 
8021
case $host_os in
 
8022
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8023
  *djgpp*)
 
8024
    lt_prog_compiler_pic=
 
8025
    ;;
 
8026
  *)
 
8027
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8028
    ;;
 
8029
esac
 
8030
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8031
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8032
 
 
8033
 
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
#
 
8039
# Check to make sure the PIC flag actually works.
 
8040
#
 
8041
if test -n "$lt_prog_compiler_pic"; then
 
8042
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8043
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8044
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8045
  $as_echo_n "(cached) " >&6
 
8046
else
 
8047
  lt_cv_prog_compiler_pic_works=no
 
8048
   ac_outfile=conftest.$ac_objext
 
8049
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8050
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8051
   # Insert the option either (1) after the last *FLAGS variable, or
 
8052
   # (2) before a word containing "conftest.", or (3) at the end.
 
8053
   # Note that $ac_compile itself does not contain backslashes and begins
 
8054
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8055
   # The option is referenced via a variable to avoid confusing sed.
 
8056
   lt_compile=`echo "$ac_compile" | $SED \
 
8057
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8058
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8059
   -e 's:$: $lt_compiler_flag:'`
 
8060
   (eval echo "\"\$as_me:8060: $lt_compile\"" >&5)
 
8061
   (eval "$lt_compile" 2>conftest.err)
 
8062
   ac_status=$?
 
8063
   cat conftest.err >&5
 
8064
   echo "$as_me:8064: \$? = $ac_status" >&5
 
8065
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8066
     # The compiler can only warn and ignore the option if not recognized
 
8067
     # So say no if there are warnings other than the usual output.
 
8068
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8069
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8070
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8071
       lt_cv_prog_compiler_pic_works=yes
 
8072
     fi
 
8073
   fi
 
8074
   $RM conftest*
 
8075
 
 
8076
fi
 
8077
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8078
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8079
 
 
8080
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8081
    case $lt_prog_compiler_pic in
 
8082
     "" | " "*) ;;
 
8083
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8084
     esac
 
8085
else
 
8086
    lt_prog_compiler_pic=
 
8087
     lt_prog_compiler_can_build_shared=no
 
8088
fi
 
8089
 
 
8090
fi
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
 
8096
 
 
8097
#
 
8098
# Check to make sure the static flag actually works.
 
8099
#
 
8100
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8101
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8102
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8103
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8104
  $as_echo_n "(cached) " >&6
 
8105
else
 
8106
  lt_cv_prog_compiler_static_works=no
 
8107
   save_LDFLAGS="$LDFLAGS"
 
8108
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8109
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8110
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8111
     # The linker can only warn and ignore the option if not recognized
 
8112
     # So say no if there are warnings
 
8113
     if test -s conftest.err; then
 
8114
       # Append any errors to the config.log.
 
8115
       cat conftest.err 1>&5
 
8116
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8117
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8118
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8119
         lt_cv_prog_compiler_static_works=yes
 
8120
       fi
 
8121
     else
 
8122
       lt_cv_prog_compiler_static_works=yes
 
8123
     fi
 
8124
   fi
 
8125
   $RM -r conftest*
 
8126
   LDFLAGS="$save_LDFLAGS"
 
8127
 
 
8128
fi
 
8129
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8130
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8131
 
 
8132
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8133
    :
 
8134
else
 
8135
    lt_prog_compiler_static=
 
8136
fi
 
8137
 
 
8138
 
 
8139
 
 
8140
 
 
8141
 
 
8142
 
 
8143
 
 
8144
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8145
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8146
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8147
  $as_echo_n "(cached) " >&6
 
8148
else
 
8149
  lt_cv_prog_compiler_c_o=no
 
8150
   $RM -r conftest 2>/dev/null
 
8151
   mkdir conftest
 
8152
   cd conftest
 
8153
   mkdir out
 
8154
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8155
 
 
8156
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8157
   # Insert the option either (1) after the last *FLAGS variable, or
 
8158
   # (2) before a word containing "conftest.", or (3) at the end.
 
8159
   # Note that $ac_compile itself does not contain backslashes and begins
 
8160
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8161
   lt_compile=`echo "$ac_compile" | $SED \
 
8162
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8164
   -e 's:$: $lt_compiler_flag:'`
 
8165
   (eval echo "\"\$as_me:8165: $lt_compile\"" >&5)
 
8166
   (eval "$lt_compile" 2>out/conftest.err)
 
8167
   ac_status=$?
 
8168
   cat out/conftest.err >&5
 
8169
   echo "$as_me:8169: \$? = $ac_status" >&5
 
8170
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8171
   then
 
8172
     # The compiler can only warn and ignore the option if not recognized
 
8173
     # So say no if there are warnings
 
8174
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8175
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8176
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8177
       lt_cv_prog_compiler_c_o=yes
 
8178
     fi
 
8179
   fi
 
8180
   chmod u+w . 2>&5
 
8181
   $RM conftest*
 
8182
   # SGI C++ compiler will create directory out/ii_files/ for
 
8183
   # template instantiation
 
8184
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8185
   $RM out/* && rmdir out
 
8186
   cd ..
 
8187
   $RM -r conftest
 
8188
   $RM conftest*
 
8189
 
 
8190
fi
 
8191
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8192
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8193
 
 
8194
 
 
8195
 
 
8196
 
 
8197
 
 
8198
 
 
8199
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8200
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8201
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8202
  $as_echo_n "(cached) " >&6
 
8203
else
 
8204
  lt_cv_prog_compiler_c_o=no
 
8205
   $RM -r conftest 2>/dev/null
 
8206
   mkdir conftest
 
8207
   cd conftest
 
8208
   mkdir out
 
8209
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8210
 
 
8211
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8212
   # Insert the option either (1) after the last *FLAGS variable, or
 
8213
   # (2) before a word containing "conftest.", or (3) at the end.
 
8214
   # Note that $ac_compile itself does not contain backslashes and begins
 
8215
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8216
   lt_compile=`echo "$ac_compile" | $SED \
 
8217
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8218
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8219
   -e 's:$: $lt_compiler_flag:'`
 
8220
   (eval echo "\"\$as_me:8220: $lt_compile\"" >&5)
 
8221
   (eval "$lt_compile" 2>out/conftest.err)
 
8222
   ac_status=$?
 
8223
   cat out/conftest.err >&5
 
8224
   echo "$as_me:8224: \$? = $ac_status" >&5
 
8225
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8226
   then
 
8227
     # The compiler can only warn and ignore the option if not recognized
 
8228
     # So say no if there are warnings
 
8229
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8230
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8231
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8232
       lt_cv_prog_compiler_c_o=yes
 
8233
     fi
 
8234
   fi
 
8235
   chmod u+w . 2>&5
 
8236
   $RM conftest*
 
8237
   # SGI C++ compiler will create directory out/ii_files/ for
 
8238
   # template instantiation
 
8239
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8240
   $RM out/* && rmdir out
 
8241
   cd ..
 
8242
   $RM -r conftest
 
8243
   $RM conftest*
 
8244
 
 
8245
fi
 
8246
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8247
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8248
 
 
8249
 
 
8250
 
 
8251
 
 
8252
hard_links="nottested"
 
8253
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8254
  # do not overwrite the value of need_locks provided by the user
 
8255
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8256
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8257
  hard_links=yes
 
8258
  $RM conftest*
 
8259
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8260
  touch conftest.a
 
8261
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8262
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8263
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8264
$as_echo "$hard_links" >&6; }
 
8265
  if test "$hard_links" = no; then
 
8266
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8267
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8268
    need_locks=warn
 
8269
  fi
 
8270
else
 
8271
  need_locks=no
 
8272
fi
 
8273
 
 
8274
 
 
8275
 
 
8276
 
 
8277
 
 
8278
 
 
8279
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8280
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8281
 
 
8282
  runpath_var=
 
8283
  allow_undefined_flag=
 
8284
  always_export_symbols=no
 
8285
  archive_cmds=
 
8286
  archive_expsym_cmds=
 
8287
  compiler_needs_object=no
 
8288
  enable_shared_with_static_runtimes=no
 
8289
  export_dynamic_flag_spec=
 
8290
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8291
  hardcode_automatic=no
 
8292
  hardcode_direct=no
 
8293
  hardcode_direct_absolute=no
 
8294
  hardcode_libdir_flag_spec=
 
8295
  hardcode_libdir_flag_spec_ld=
 
8296
  hardcode_libdir_separator=
 
8297
  hardcode_minus_L=no
 
8298
  hardcode_shlibpath_var=unsupported
 
8299
  inherit_rpath=no
 
8300
  link_all_deplibs=unknown
 
8301
  module_cmds=
 
8302
  module_expsym_cmds=
 
8303
  old_archive_from_new_cmds=
 
8304
  old_archive_from_expsyms_cmds=
 
8305
  thread_safe_flag_spec=
 
8306
  whole_archive_flag_spec=
 
8307
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8308
  # included in the symbol list
 
8309
  include_expsyms=
 
8310
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8311
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8312
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8313
  # as well as any symbol that contains `d'.
 
8314
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8315
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8316
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8317
  # the symbol is explicitly referenced.  Since portable code cannot
 
8318
  # rely on this symbol name, it's probably fine to never include it in
 
8319
  # preloaded symbol tables.
 
8320
  # Exclude shared library initialization/finalization symbols.
 
8321
  extract_expsyms_cmds=
 
8322
 
 
8323
  case $host_os in
 
8324
  cygwin* | mingw* | pw32* | cegcc*)
 
8325
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8326
    # When not using gcc, we currently assume that we are using
 
8327
    # Microsoft Visual C++.
 
8328
    if test "$GCC" != yes; then
 
8329
      with_gnu_ld=no
 
8330
    fi
 
8331
    ;;
 
8332
  interix*)
 
8333
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8334
    with_gnu_ld=yes
 
8335
    ;;
 
8336
  openbsd*)
 
8337
    with_gnu_ld=no
 
8338
    ;;
 
8339
  linux* | k*bsd*-gnu)
 
8340
    link_all_deplibs=no
 
8341
    ;;
 
8342
  esac
 
8343
 
 
8344
  ld_shlibs=yes
 
8345
  if test "$with_gnu_ld" = yes; then
 
8346
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8347
    wlarc='${wl}'
 
8348
 
 
8349
    # Set some defaults for GNU ld with shared library support. These
 
8350
    # are reset later if shared libraries are not supported. Putting them
 
8351
    # here allows them to be overridden if necessary.
 
8352
    runpath_var=LD_RUN_PATH
 
8353
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8354
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8355
    # ancient GNU ld didn't support --whole-archive et. al.
 
8356
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8357
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8358
    else
 
8359
      whole_archive_flag_spec=
 
8360
    fi
 
8361
    supports_anon_versioning=no
 
8362
    case `$LD -v 2>&1` in
 
8363
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8364
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8365
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8366
      *\ 2.11.*) ;; # other 2.11 versions
 
8367
      *) supports_anon_versioning=yes ;;
 
8368
    esac
 
8369
 
 
8370
    # See if GNU ld supports shared libraries.
 
8371
    case $host_os in
 
8372
    aix[3-9]*)
 
8373
      # On AIX/PPC, the GNU linker is very broken
 
8374
      if test "$host_cpu" != ia64; then
 
8375
        ld_shlibs=no
 
8376
        cat <<_LT_EOF 1>&2
 
8377
 
 
8378
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8379
*** to be unable to reliably create shared libraries on AIX.
 
8380
*** Therefore, libtool is disabling shared libraries support.  If you
 
8381
*** really care for shared libraries, you may want to modify your PATH
 
8382
*** so that a non-GNU linker is found, and then restart.
 
8383
 
 
8384
_LT_EOF
 
8385
      fi
 
8386
      ;;
 
8387
 
 
8388
    amigaos*)
 
8389
      case $host_cpu in
 
8390
      powerpc)
 
8391
            # see comment about AmigaOS4 .so support
 
8392
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8393
            archive_expsym_cmds=''
 
8394
        ;;
 
8395
      m68k)
 
8396
            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)'
 
8397
            hardcode_libdir_flag_spec='-L$libdir'
 
8398
            hardcode_minus_L=yes
 
8399
        ;;
 
8400
      esac
 
8401
      ;;
 
8402
 
 
8403
    beos*)
 
8404
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8405
        allow_undefined_flag=unsupported
 
8406
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8407
        # support --undefined.  This deserves some investigation.  FIXME
 
8408
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8409
      else
 
8410
        ld_shlibs=no
 
8411
      fi
 
8412
      ;;
 
8413
 
 
8414
    cygwin* | mingw* | pw32* | cegcc*)
 
8415
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8416
      # as there is no search path for DLLs.
 
8417
      hardcode_libdir_flag_spec='-L$libdir'
 
8418
      allow_undefined_flag=unsupported
 
8419
      always_export_symbols=no
 
8420
      enable_shared_with_static_runtimes=yes
 
8421
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8422
 
 
8423
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8424
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8425
        # If the export-symbols file already is a .def file (1st line
 
8426
        # is EXPORTS), use it as is; otherwise, prepend...
 
8427
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8428
          cp $export_symbols $output_objdir/$soname.def;
 
8429
        else
 
8430
          echo EXPORTS > $output_objdir/$soname.def;
 
8431
          cat $export_symbols >> $output_objdir/$soname.def;
 
8432
        fi~
 
8433
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8434
      else
 
8435
        ld_shlibs=no
 
8436
      fi
 
8437
      ;;
 
8438
 
 
8439
    interix[3-9]*)
 
8440
      hardcode_direct=no
 
8441
      hardcode_shlibpath_var=no
 
8442
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8443
      export_dynamic_flag_spec='${wl}-E'
 
8444
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8445
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8446
      # default) and relocated if they conflict, which is a slow very memory
 
8447
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8448
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8449
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8450
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8451
      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'
 
8452
      ;;
 
8453
 
 
8454
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8455
      tmp_diet=no
 
8456
      if test "$host_os" = linux-dietlibc; then
 
8457
        case $cc_basename in
 
8458
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8459
        esac
 
8460
      fi
 
8461
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8462
         && test "$tmp_diet" = no
 
8463
      then
 
8464
        tmp_addflag=
 
8465
        tmp_sharedflag='-shared'
 
8466
        case $cc_basename,$host_cpu in
 
8467
        pgcc*)                          # Portland Group C compiler
 
8468
          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'
 
8469
          tmp_addflag=' $pic_flag'
 
8470
          ;;
 
8471
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8472
          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'
 
8473
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8474
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8475
          tmp_addflag=' -i_dynamic' ;;
 
8476
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8477
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8478
        ifc* | ifort*)                  # Intel Fortran compiler
 
8479
          tmp_addflag=' -nofor_main' ;;
 
8480
        lf95*)                          # Lahey Fortran 8.1
 
8481
          whole_archive_flag_spec=
 
8482
          tmp_sharedflag='--shared' ;;
 
8483
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8484
          tmp_sharedflag='-qmkshrobj'
 
8485
          tmp_addflag= ;;
 
8486
        esac
 
8487
        case `$CC -V 2>&1 | sed 5q` in
 
8488
        *Sun\ C*)                       # Sun C 5.9
 
8489
          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'
 
8490
          compiler_needs_object=yes
 
8491
          tmp_sharedflag='-G' ;;
 
8492
        *Sun\ F*)                       # Sun Fortran 8.3
 
8493
          tmp_sharedflag='-G' ;;
 
8494
        esac
 
8495
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8496
 
 
8497
        if test "x$supports_anon_versioning" = xyes; then
 
8498
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8499
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8500
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8501
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8502
        fi
 
8503
 
 
8504
        case $cc_basename in
 
8505
        xlf*)
 
8506
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8507
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8508
          hardcode_libdir_flag_spec=
 
8509
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8510
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8511
          if test "x$supports_anon_versioning" = xyes; then
 
8512
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8513
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8514
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8515
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8516
          fi
 
8517
          ;;
 
8518
        esac
 
8519
      else
 
8520
        ld_shlibs=no
 
8521
      fi
 
8522
      ;;
 
8523
 
 
8524
    netbsd* | netbsdelf*-gnu)
 
8525
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8526
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8527
        wlarc=
 
8528
      else
 
8529
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8530
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8531
      fi
 
8532
      ;;
 
8533
 
 
8534
    solaris*)
 
8535
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8536
        ld_shlibs=no
 
8537
        cat <<_LT_EOF 1>&2
 
8538
 
 
8539
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8540
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8541
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8542
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8543
*** your PATH or compiler configuration so that the native linker is
 
8544
*** used, and then restart.
 
8545
 
 
8546
_LT_EOF
 
8547
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8548
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8549
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8550
      else
 
8551
        ld_shlibs=no
 
8552
      fi
 
8553
      ;;
 
8554
 
 
8555
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8556
      case `$LD -v 2>&1` in
 
8557
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8558
        ld_shlibs=no
 
8559
        cat <<_LT_EOF 1>&2
 
8560
 
 
8561
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8562
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8563
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8564
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8565
*** your PATH or compiler configuration so that the native linker is
 
8566
*** used, and then restart.
 
8567
 
 
8568
_LT_EOF
 
8569
        ;;
 
8570
        *)
 
8571
          # For security reasons, it is highly recommended that you always
 
8572
          # use absolute paths for naming shared libraries, and exclude the
 
8573
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8574
          # requires that you compile everything twice, which is a pain.
 
8575
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8576
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8577
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8578
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8579
          else
 
8580
            ld_shlibs=no
 
8581
          fi
 
8582
        ;;
 
8583
      esac
 
8584
      ;;
 
8585
 
 
8586
    sunos4*)
 
8587
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8588
      wlarc=
 
8589
      hardcode_direct=yes
 
8590
      hardcode_shlibpath_var=no
 
8591
      ;;
 
8592
 
 
8593
    *)
 
8594
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8595
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8596
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8597
      else
 
8598
        ld_shlibs=no
 
8599
      fi
 
8600
      ;;
 
8601
    esac
 
8602
 
 
8603
    if test "$ld_shlibs" = no; then
 
8604
      runpath_var=
 
8605
      hardcode_libdir_flag_spec=
 
8606
      export_dynamic_flag_spec=
 
8607
      whole_archive_flag_spec=
 
8608
    fi
 
8609
  else
 
8610
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8611
    case $host_os in
 
8612
    aix3*)
 
8613
      allow_undefined_flag=unsupported
 
8614
      always_export_symbols=yes
 
8615
      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'
 
8616
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8617
      # are no directories specified by -L.
 
8618
      hardcode_minus_L=yes
 
8619
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8620
        # Neither direct hardcoding nor static linking is supported with a
 
8621
        # broken collect2.
 
8622
        hardcode_direct=unsupported
 
8623
      fi
 
8624
      ;;
 
8625
 
 
8626
    aix[4-9]*)
 
8627
      if test "$host_cpu" = ia64; then
 
8628
        # On IA64, the linker does run time linking by default, so we don't
 
8629
        # have to do anything special.
 
8630
        aix_use_runtimelinking=no
 
8631
        exp_sym_flag='-Bexport'
 
8632
        no_entry_flag=""
 
8633
      else
 
8634
        # If we're using GNU nm, then we don't want the "-C" option.
 
8635
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8636
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8637
          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'
 
8638
        else
 
8639
          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'
 
8640
        fi
 
8641
        aix_use_runtimelinking=no
 
8642
 
 
8643
        # Test if we are trying to use run time linking or normal
 
8644
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8645
        # need to do runtime linking.
 
8646
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8647
          for ld_flag in $LDFLAGS; do
 
8648
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8649
            aix_use_runtimelinking=yes
 
8650
            break
 
8651
          fi
 
8652
          done
 
8653
          ;;
 
8654
        esac
 
8655
 
 
8656
        exp_sym_flag='-bexport'
 
8657
        no_entry_flag='-bnoentry'
 
8658
      fi
 
8659
 
 
8660
      # When large executables or shared objects are built, AIX ld can
 
8661
      # have problems creating the table of contents.  If linking a library
 
8662
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8663
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8664
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8665
 
 
8666
      archive_cmds=''
 
8667
      hardcode_direct=yes
 
8668
      hardcode_direct_absolute=yes
 
8669
      hardcode_libdir_separator=':'
 
8670
      link_all_deplibs=yes
 
8671
      file_list_spec='${wl}-f,'
 
8672
 
 
8673
      if test "$GCC" = yes; then
 
8674
        case $host_os in aix4.[012]|aix4.[012].*)
 
8675
        # We only want to do this on AIX 4.2 and lower, the check
 
8676
        # below for broken collect2 doesn't work under 4.3+
 
8677
          collect2name=`${CC} -print-prog-name=collect2`
 
8678
          if test -f "$collect2name" &&
 
8679
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8680
          then
 
8681
          # We have reworked collect2
 
8682
          :
 
8683
          else
 
8684
          # We have old collect2
 
8685
          hardcode_direct=unsupported
 
8686
          # It fails to find uninstalled libraries when the uninstalled
 
8687
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8688
          # to unsupported forces relinking
 
8689
          hardcode_minus_L=yes
 
8690
          hardcode_libdir_flag_spec='-L$libdir'
 
8691
          hardcode_libdir_separator=
 
8692
          fi
 
8693
          ;;
 
8694
        esac
 
8695
        shared_flag='-shared'
 
8696
        if test "$aix_use_runtimelinking" = yes; then
 
8697
          shared_flag="$shared_flag "'${wl}-G'
 
8698
        fi
 
8699
        link_all_deplibs=no
 
8700
      else
 
8701
        # not using gcc
 
8702
        if test "$host_cpu" = ia64; then
 
8703
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8704
        # chokes on -Wl,-G. The following line is correct:
 
8705
          shared_flag='-G'
 
8706
        else
 
8707
          if test "$aix_use_runtimelinking" = yes; then
 
8708
            shared_flag='${wl}-G'
 
8709
          else
 
8710
            shared_flag='${wl}-bM:SRE'
 
8711
          fi
 
8712
        fi
 
8713
      fi
 
8714
 
 
8715
      export_dynamic_flag_spec='${wl}-bexpall'
 
8716
      # It seems that -bexpall does not export symbols beginning with
 
8717
      # underscore (_), so it is better to generate a list of symbols to export.
 
8718
      always_export_symbols=yes
 
8719
      if test "$aix_use_runtimelinking" = yes; then
 
8720
        # Warning - without using the other runtime loading flags (-brtl),
 
8721
        # -berok will link without error, but may produce a broken library.
 
8722
        allow_undefined_flag='-berok'
 
8723
        # Determine the default libpath from the value encoded in an
 
8724
        # empty executable.
 
8725
        cat >conftest.$ac_ext <<_ACEOF
 
8726
/* confdefs.h.  */
 
8727
_ACEOF
 
8728
cat confdefs.h >>conftest.$ac_ext
 
8729
cat >>conftest.$ac_ext <<_ACEOF
 
8730
/* end confdefs.h.  */
 
8731
 
 
8732
int
 
8733
main ()
 
8734
{
 
8735
 
 
8736
  ;
 
8737
  return 0;
 
8738
}
 
8739
_ACEOF
 
8740
rm -f conftest.$ac_objext conftest$ac_exeext
 
8741
if { (ac_try="$ac_link"
 
8742
case "(($ac_try" in
 
8743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8744
  *) ac_try_echo=$ac_try;;
 
8745
esac
 
8746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8747
$as_echo "$ac_try_echo") >&5
 
8748
  (eval "$ac_link") 2>conftest.er1
 
8749
  ac_status=$?
 
8750
  grep -v '^ *+' conftest.er1 >conftest.err
 
8751
  rm -f conftest.er1
 
8752
  cat conftest.err >&5
 
8753
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8754
  (exit $ac_status); } && {
 
8755
         test -z "$ac_c_werror_flag" ||
 
8756
         test ! -s conftest.err
 
8757
       } && test -s conftest$ac_exeext && {
 
8758
         test "$cross_compiling" = yes ||
 
8759
         $as_test_x conftest$ac_exeext
 
8760
       }; then
 
8761
 
 
8762
lt_aix_libpath_sed='
 
8763
    /Import File Strings/,/^$/ {
 
8764
        /^0/ {
 
8765
            s/^0  *\(.*\)$/\1/
 
8766
            p
 
8767
        }
 
8768
    }'
 
8769
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8770
# Check for a 64-bit object if we didn't find anything.
 
8771
if test -z "$aix_libpath"; then
 
8772
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8773
fi
 
8774
else
 
8775
  $as_echo "$as_me: failed program was:" >&5
 
8776
sed 's/^/| /' conftest.$ac_ext >&5
 
8777
 
 
8778
 
 
8779
fi
 
8780
 
 
8781
rm -rf conftest.dSYM
 
8782
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8783
      conftest$ac_exeext conftest.$ac_ext
 
8784
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8785
 
 
8786
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8787
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8788
      else
 
8789
        if test "$host_cpu" = ia64; then
 
8790
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8791
          allow_undefined_flag="-z nodefs"
 
8792
          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"
 
8793
        else
 
8794
         # Determine the default libpath from the value encoded in an
 
8795
         # empty executable.
 
8796
         cat >conftest.$ac_ext <<_ACEOF
 
8797
/* confdefs.h.  */
 
8798
_ACEOF
 
8799
cat confdefs.h >>conftest.$ac_ext
 
8800
cat >>conftest.$ac_ext <<_ACEOF
 
8801
/* end confdefs.h.  */
 
8802
 
 
8803
int
 
8804
main ()
 
8805
{
 
8806
 
 
8807
  ;
 
8808
  return 0;
 
8809
}
 
8810
_ACEOF
 
8811
rm -f conftest.$ac_objext conftest$ac_exeext
 
8812
if { (ac_try="$ac_link"
 
8813
case "(($ac_try" in
 
8814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8815
  *) ac_try_echo=$ac_try;;
 
8816
esac
 
8817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8818
$as_echo "$ac_try_echo") >&5
 
8819
  (eval "$ac_link") 2>conftest.er1
 
8820
  ac_status=$?
 
8821
  grep -v '^ *+' conftest.er1 >conftest.err
 
8822
  rm -f conftest.er1
 
8823
  cat conftest.err >&5
 
8824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8825
  (exit $ac_status); } && {
 
8826
         test -z "$ac_c_werror_flag" ||
 
8827
         test ! -s conftest.err
 
8828
       } && test -s conftest$ac_exeext && {
 
8829
         test "$cross_compiling" = yes ||
 
8830
         $as_test_x conftest$ac_exeext
 
8831
       }; then
 
8832
 
 
8833
lt_aix_libpath_sed='
 
8834
    /Import File Strings/,/^$/ {
 
8835
        /^0/ {
 
8836
            s/^0  *\(.*\)$/\1/
 
8837
            p
 
8838
        }
 
8839
    }'
 
8840
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8841
# Check for a 64-bit object if we didn't find anything.
 
8842
if test -z "$aix_libpath"; then
 
8843
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8844
fi
 
8845
else
 
8846
  $as_echo "$as_me: failed program was:" >&5
 
8847
sed 's/^/| /' conftest.$ac_ext >&5
 
8848
 
 
8849
 
 
8850
fi
 
8851
 
 
8852
rm -rf conftest.dSYM
 
8853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8854
      conftest$ac_exeext conftest.$ac_ext
 
8855
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8856
 
 
8857
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8858
          # Warning - without using the other run time loading flags,
 
8859
          # -berok will link without error, but may produce a broken library.
 
8860
          no_undefined_flag=' ${wl}-bernotok'
 
8861
          allow_undefined_flag=' ${wl}-berok'
 
8862
          # Exported symbols can be pulled into shared objects from archives
 
8863
          whole_archive_flag_spec='$convenience'
 
8864
          archive_cmds_need_lc=yes
 
8865
          # This is similar to how AIX traditionally builds its shared libraries.
 
8866
          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'
 
8867
        fi
 
8868
      fi
 
8869
      ;;
 
8870
 
 
8871
    amigaos*)
 
8872
      case $host_cpu in
 
8873
      powerpc)
 
8874
            # see comment about AmigaOS4 .so support
 
8875
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8876
            archive_expsym_cmds=''
 
8877
        ;;
 
8878
      m68k)
 
8879
            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)'
 
8880
            hardcode_libdir_flag_spec='-L$libdir'
 
8881
            hardcode_minus_L=yes
 
8882
        ;;
 
8883
      esac
 
8884
      ;;
 
8885
 
 
8886
    bsdi[45]*)
 
8887
      export_dynamic_flag_spec=-rdynamic
 
8888
      ;;
 
8889
 
 
8890
    cygwin* | mingw* | pw32* | cegcc*)
 
8891
      # When not using gcc, we currently assume that we are using
 
8892
      # Microsoft Visual C++.
 
8893
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8894
      # no search path for DLLs.
 
8895
      hardcode_libdir_flag_spec=' '
 
8896
      allow_undefined_flag=unsupported
 
8897
      # Tell ltmain to make .lib files, not .a files.
 
8898
      libext=lib
 
8899
      # Tell ltmain to make .dll files, not .so files.
 
8900
      shrext_cmds=".dll"
 
8901
      # FIXME: Setting linknames here is a bad hack.
 
8902
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8903
      # The linker will automatically build a .lib file if we build a DLL.
 
8904
      old_archive_from_new_cmds='true'
 
8905
      # FIXME: Should let the user specify the lib program.
 
8906
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8907
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8908
      enable_shared_with_static_runtimes=yes
 
8909
      ;;
 
8910
 
 
8911
    darwin* | rhapsody*)
 
8912
 
 
8913
 
 
8914
  archive_cmds_need_lc=no
 
8915
  hardcode_direct=no
 
8916
  hardcode_automatic=yes
 
8917
  hardcode_shlibpath_var=unsupported
 
8918
  whole_archive_flag_spec=''
 
8919
  link_all_deplibs=yes
 
8920
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8921
  case $cc_basename in
 
8922
     ifort*) _lt_dar_can_shared=yes ;;
 
8923
     *) _lt_dar_can_shared=$GCC ;;
 
8924
  esac
 
8925
  if test "$_lt_dar_can_shared" = "yes"; then
 
8926
    output_verbose_link_cmd=echo
 
8927
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8928
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8929
    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}"
 
8930
    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}"
 
8931
 
 
8932
  else
 
8933
  ld_shlibs=no
 
8934
  fi
 
8935
 
 
8936
      ;;
 
8937
 
 
8938
    dgux*)
 
8939
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8940
      hardcode_libdir_flag_spec='-L$libdir'
 
8941
      hardcode_shlibpath_var=no
 
8942
      ;;
 
8943
 
 
8944
    freebsd1*)
 
8945
      ld_shlibs=no
 
8946
      ;;
 
8947
 
 
8948
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8949
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8950
    # does not break anything, and helps significantly (at the cost of a little
 
8951
    # extra space).
 
8952
    freebsd2.2*)
 
8953
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8954
      hardcode_libdir_flag_spec='-R$libdir'
 
8955
      hardcode_direct=yes
 
8956
      hardcode_shlibpath_var=no
 
8957
      ;;
 
8958
 
 
8959
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8960
    freebsd2*)
 
8961
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8962
      hardcode_direct=yes
 
8963
      hardcode_minus_L=yes
 
8964
      hardcode_shlibpath_var=no
 
8965
      ;;
 
8966
 
 
8967
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8968
    freebsd* | dragonfly*)
 
8969
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8970
      hardcode_libdir_flag_spec='-R$libdir'
 
8971
      hardcode_direct=yes
 
8972
      hardcode_shlibpath_var=no
 
8973
      ;;
 
8974
 
 
8975
    hpux9*)
 
8976
      if test "$GCC" = yes; then
 
8977
        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'
 
8978
      else
 
8979
        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'
 
8980
      fi
 
8981
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8982
      hardcode_libdir_separator=:
 
8983
      hardcode_direct=yes
 
8984
 
 
8985
      # hardcode_minus_L: Not really in the search PATH,
 
8986
      # but as the default location of the library.
 
8987
      hardcode_minus_L=yes
 
8988
      export_dynamic_flag_spec='${wl}-E'
 
8989
      ;;
 
8990
 
 
8991
    hpux10*)
 
8992
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8993
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8994
      else
 
8995
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8996
      fi
 
8997
      if test "$with_gnu_ld" = no; then
 
8998
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8999
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9000
        hardcode_libdir_separator=:
 
9001
        hardcode_direct=yes
 
9002
        hardcode_direct_absolute=yes
 
9003
        export_dynamic_flag_spec='${wl}-E'
 
9004
        # hardcode_minus_L: Not really in the search PATH,
 
9005
        # but as the default location of the library.
 
9006
        hardcode_minus_L=yes
 
9007
      fi
 
9008
      ;;
 
9009
 
 
9010
    hpux11*)
 
9011
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9012
        case $host_cpu in
 
9013
        hppa*64*)
 
9014
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9015
          ;;
 
9016
        ia64*)
 
9017
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9018
          ;;
 
9019
        *)
 
9020
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9021
          ;;
 
9022
        esac
 
9023
      else
 
9024
        case $host_cpu in
 
9025
        hppa*64*)
 
9026
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9027
          ;;
 
9028
        ia64*)
 
9029
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9030
          ;;
 
9031
        *)
 
9032
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9033
          ;;
 
9034
        esac
 
9035
      fi
 
9036
      if test "$with_gnu_ld" = no; then
 
9037
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9038
        hardcode_libdir_separator=:
 
9039
 
 
9040
        case $host_cpu in
 
9041
        hppa*64*|ia64*)
 
9042
          hardcode_direct=no
 
9043
          hardcode_shlibpath_var=no
 
9044
          ;;
 
9045
        *)
 
9046
          hardcode_direct=yes
 
9047
          hardcode_direct_absolute=yes
 
9048
          export_dynamic_flag_spec='${wl}-E'
 
9049
 
 
9050
          # hardcode_minus_L: Not really in the search PATH,
 
9051
          # but as the default location of the library.
 
9052
          hardcode_minus_L=yes
 
9053
          ;;
 
9054
        esac
 
9055
      fi
 
9056
      ;;
 
9057
 
 
9058
    irix5* | irix6* | nonstopux*)
 
9059
      if test "$GCC" = yes; then
 
9060
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9061
        # Try to use the -exported_symbol ld option, if it does not
 
9062
        # work, assume that -exports_file does not work either and
 
9063
        # implicitly export all symbols.
 
9064
        save_LDFLAGS="$LDFLAGS"
 
9065
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9066
        cat >conftest.$ac_ext <<_ACEOF
 
9067
int foo(void) {}
 
9068
_ACEOF
 
9069
rm -f conftest.$ac_objext conftest$ac_exeext
 
9070
if { (ac_try="$ac_link"
 
9071
case "(($ac_try" in
 
9072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9073
  *) ac_try_echo=$ac_try;;
 
9074
esac
 
9075
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9076
$as_echo "$ac_try_echo") >&5
 
9077
  (eval "$ac_link") 2>conftest.er1
 
9078
  ac_status=$?
 
9079
  grep -v '^ *+' conftest.er1 >conftest.err
 
9080
  rm -f conftest.er1
 
9081
  cat conftest.err >&5
 
9082
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9083
  (exit $ac_status); } && {
 
9084
         test -z "$ac_c_werror_flag" ||
 
9085
         test ! -s conftest.err
 
9086
       } && test -s conftest$ac_exeext && {
 
9087
         test "$cross_compiling" = yes ||
 
9088
         $as_test_x conftest$ac_exeext
 
9089
       }; then
 
9090
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9091
 
 
9092
else
 
9093
  $as_echo "$as_me: failed program was:" >&5
 
9094
sed 's/^/| /' conftest.$ac_ext >&5
 
9095
 
 
9096
 
 
9097
fi
 
9098
 
 
9099
rm -rf conftest.dSYM
 
9100
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9101
      conftest$ac_exeext conftest.$ac_ext
 
9102
        LDFLAGS="$save_LDFLAGS"
 
9103
      else
 
9104
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9105
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9106
      fi
 
9107
      archive_cmds_need_lc='no'
 
9108
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9109
      hardcode_libdir_separator=:
 
9110
      inherit_rpath=yes
 
9111
      link_all_deplibs=yes
 
9112
      ;;
 
9113
 
 
9114
    netbsd* | netbsdelf*-gnu)
 
9115
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9116
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9117
      else
 
9118
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9119
      fi
 
9120
      hardcode_libdir_flag_spec='-R$libdir'
 
9121
      hardcode_direct=yes
 
9122
      hardcode_shlibpath_var=no
 
9123
      ;;
 
9124
 
 
9125
    newsos6)
 
9126
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9127
      hardcode_direct=yes
 
9128
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9129
      hardcode_libdir_separator=:
 
9130
      hardcode_shlibpath_var=no
 
9131
      ;;
 
9132
 
 
9133
    *nto* | *qnx*)
 
9134
      ;;
 
9135
 
 
9136
    openbsd*)
 
9137
      if test -f /usr/libexec/ld.so; then
 
9138
        hardcode_direct=yes
 
9139
        hardcode_shlibpath_var=no
 
9140
        hardcode_direct_absolute=yes
 
9141
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9142
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9143
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9144
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9145
          export_dynamic_flag_spec='${wl}-E'
 
9146
        else
 
9147
          case $host_os in
 
9148
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9149
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9150
             hardcode_libdir_flag_spec='-R$libdir'
 
9151
             ;;
 
9152
           *)
 
9153
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9154
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9155
             ;;
 
9156
          esac
 
9157
        fi
 
9158
      else
 
9159
        ld_shlibs=no
 
9160
      fi
 
9161
      ;;
 
9162
 
 
9163
    os2*)
 
9164
      hardcode_libdir_flag_spec='-L$libdir'
 
9165
      hardcode_minus_L=yes
 
9166
      allow_undefined_flag=unsupported
 
9167
      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'
 
9168
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9169
      ;;
 
9170
 
 
9171
    osf3*)
 
9172
      if test "$GCC" = yes; then
 
9173
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9174
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9175
      else
 
9176
        allow_undefined_flag=' -expect_unresolved \*'
 
9177
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9178
      fi
 
9179
      archive_cmds_need_lc='no'
 
9180
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9181
      hardcode_libdir_separator=:
 
9182
      ;;
 
9183
 
 
9184
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9185
      if test "$GCC" = yes; then
 
9186
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9187
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9188
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9189
      else
 
9190
        allow_undefined_flag=' -expect_unresolved \*'
 
9191
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9192
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9193
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9194
 
 
9195
        # Both c and cxx compiler support -rpath directly
 
9196
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9197
      fi
 
9198
      archive_cmds_need_lc='no'
 
9199
      hardcode_libdir_separator=:
 
9200
      ;;
 
9201
 
 
9202
    solaris*)
 
9203
      no_undefined_flag=' -z defs'
 
9204
      if test "$GCC" = yes; then
 
9205
        wlarc='${wl}'
 
9206
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9207
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9208
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9209
      else
 
9210
        case `$CC -V 2>&1` in
 
9211
        *"Compilers 5.0"*)
 
9212
          wlarc=''
 
9213
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9214
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9215
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9216
          ;;
 
9217
        *)
 
9218
          wlarc='${wl}'
 
9219
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9220
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9221
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9222
          ;;
 
9223
        esac
 
9224
      fi
 
9225
      hardcode_libdir_flag_spec='-R$libdir'
 
9226
      hardcode_shlibpath_var=no
 
9227
      case $host_os in
 
9228
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9229
      *)
 
9230
        # The compiler driver will combine and reorder linker options,
 
9231
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9232
        # but is careful enough not to reorder.
 
9233
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9234
        if test "$GCC" = yes; then
 
9235
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9236
        else
 
9237
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9238
        fi
 
9239
        ;;
 
9240
      esac
 
9241
      link_all_deplibs=yes
 
9242
      ;;
 
9243
 
 
9244
    sunos4*)
 
9245
      if test "x$host_vendor" = xsequent; then
 
9246
        # Use $CC to link under sequent, because it throws in some extra .o
 
9247
        # files that make .init and .fini sections work.
 
9248
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9249
      else
 
9250
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9251
      fi
 
9252
      hardcode_libdir_flag_spec='-L$libdir'
 
9253
      hardcode_direct=yes
 
9254
      hardcode_minus_L=yes
 
9255
      hardcode_shlibpath_var=no
 
9256
      ;;
 
9257
 
 
9258
    sysv4)
 
9259
      case $host_vendor in
 
9260
        sni)
 
9261
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9262
          hardcode_direct=yes # is this really true???
 
9263
        ;;
 
9264
        siemens)
 
9265
          ## LD is ld it makes a PLAMLIB
 
9266
          ## CC just makes a GrossModule.
 
9267
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9268
          reload_cmds='$CC -r -o $output$reload_objs'
 
9269
          hardcode_direct=no
 
9270
        ;;
 
9271
        motorola)
 
9272
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9273
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9274
        ;;
 
9275
      esac
 
9276
      runpath_var='LD_RUN_PATH'
 
9277
      hardcode_shlibpath_var=no
 
9278
      ;;
 
9279
 
 
9280
    sysv4.3*)
 
9281
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9282
      hardcode_shlibpath_var=no
 
9283
      export_dynamic_flag_spec='-Bexport'
 
9284
      ;;
 
9285
 
 
9286
    sysv4*MP*)
 
9287
      if test -d /usr/nec; then
 
9288
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9289
        hardcode_shlibpath_var=no
 
9290
        runpath_var=LD_RUN_PATH
 
9291
        hardcode_runpath_var=yes
 
9292
        ld_shlibs=yes
 
9293
      fi
 
9294
      ;;
 
9295
 
 
9296
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9297
      no_undefined_flag='${wl}-z,text'
 
9298
      archive_cmds_need_lc=no
 
9299
      hardcode_shlibpath_var=no
 
9300
      runpath_var='LD_RUN_PATH'
 
9301
 
 
9302
      if test "$GCC" = yes; then
 
9303
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9304
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9305
      else
 
9306
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9307
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9308
      fi
 
9309
      ;;
 
9310
 
 
9311
    sysv5* | sco3.2v5* | sco5v6*)
 
9312
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9313
      # link with -lc, and that would cause any symbols used from libc to
 
9314
      # always be unresolved, which means just about no library would
 
9315
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9316
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9317
      # as -z defs.
 
9318
      no_undefined_flag='${wl}-z,text'
 
9319
      allow_undefined_flag='${wl}-z,nodefs'
 
9320
      archive_cmds_need_lc=no
 
9321
      hardcode_shlibpath_var=no
 
9322
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9323
      hardcode_libdir_separator=':'
 
9324
      link_all_deplibs=yes
 
9325
      export_dynamic_flag_spec='${wl}-Bexport'
 
9326
      runpath_var='LD_RUN_PATH'
 
9327
 
 
9328
      if test "$GCC" = yes; then
 
9329
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9330
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9331
      else
 
9332
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9333
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9334
      fi
 
9335
      ;;
 
9336
 
 
9337
    uts4*)
 
9338
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9339
      hardcode_libdir_flag_spec='-L$libdir'
 
9340
      hardcode_shlibpath_var=no
 
9341
      ;;
 
9342
 
 
9343
    *)
 
9344
      ld_shlibs=no
 
9345
      ;;
 
9346
    esac
 
9347
 
 
9348
    if test x$host_vendor = xsni; then
 
9349
      case $host in
 
9350
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9351
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9352
        ;;
 
9353
      esac
 
9354
    fi
 
9355
  fi
 
9356
 
 
9357
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9358
$as_echo "$ld_shlibs" >&6; }
 
9359
test "$ld_shlibs" = no && can_build_shared=no
 
9360
 
 
9361
with_gnu_ld=$with_gnu_ld
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
#
 
9378
# Do we need to explicitly link libc?
 
9379
#
 
9380
case "x$archive_cmds_need_lc" in
 
9381
x|xyes)
 
9382
  # Assume -lc should be added
 
9383
  archive_cmds_need_lc=yes
 
9384
 
 
9385
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9386
    case $archive_cmds in
 
9387
    *'~'*)
 
9388
      # FIXME: we may have to deal with multi-command sequences.
 
9389
      ;;
 
9390
    '$CC '*)
 
9391
      # Test whether the compiler implicitly links with -lc since on some
 
9392
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9393
      # to ld, don't add -lc before -lgcc.
 
9394
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9395
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9396
      $RM conftest*
 
9397
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9398
 
 
9399
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9400
  (eval $ac_compile) 2>&5
 
9401
  ac_status=$?
 
9402
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9403
  (exit $ac_status); } 2>conftest.err; then
 
9404
        soname=conftest
 
9405
        lib=conftest
 
9406
        libobjs=conftest.$ac_objext
 
9407
        deplibs=
 
9408
        wl=$lt_prog_compiler_wl
 
9409
        pic_flag=$lt_prog_compiler_pic
 
9410
        compiler_flags=-v
 
9411
        linker_flags=-v
 
9412
        verstring=
 
9413
        output_objdir=.
 
9414
        libname=conftest
 
9415
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9416
        allow_undefined_flag=
 
9417
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9418
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9419
  ac_status=$?
 
9420
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9421
  (exit $ac_status); }
 
9422
        then
 
9423
          archive_cmds_need_lc=no
 
9424
        else
 
9425
          archive_cmds_need_lc=yes
 
9426
        fi
 
9427
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9428
      else
 
9429
        cat conftest.err 1>&5
 
9430
      fi
 
9431
      $RM conftest*
 
9432
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9433
$as_echo "$archive_cmds_need_lc" >&6; }
 
9434
      ;;
 
9435
    esac
 
9436
  fi
 
9437
  ;;
 
9438
esac
 
9439
 
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
 
 
9448
 
 
9449
 
 
9450
 
 
9451
 
 
9452
 
 
9453
 
 
9454
 
 
9455
 
 
9456
 
 
9457
 
 
9458
 
 
9459
 
 
9460
 
 
9461
 
 
9462
 
 
9463
 
 
9464
 
 
9465
 
 
9466
 
 
9467
 
 
9468
 
 
9469
 
 
9470
 
 
9471
 
 
9472
 
 
9473
 
 
9474
 
 
9475
 
 
9476
 
 
9477
 
 
9478
 
 
9479
 
 
9480
 
 
9481
 
 
9482
 
 
9483
 
 
9484
 
 
9485
 
 
9486
 
 
9487
 
 
9488
 
 
9489
 
 
9490
 
 
9491
 
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
 
 
9501
 
 
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
 
 
9522
 
 
9523
 
 
9524
 
 
9525
 
 
9526
 
 
9527
 
 
9528
 
 
9529
 
 
9530
 
 
9531
 
 
9532
 
 
9533
 
 
9534
 
 
9535
 
 
9536
 
 
9537
 
 
9538
 
 
9539
 
 
9540
 
 
9541
 
 
9542
 
 
9543
 
 
9544
 
 
9545
 
 
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
 
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
 
 
9569
 
 
9570
 
 
9571
 
 
9572
 
 
9573
 
 
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
9582
 
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9597
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9598
 
 
9599
if test "$GCC" = yes; then
 
9600
  case $host_os in
 
9601
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9602
    *) lt_awk_arg="/^libraries:/" ;;
 
9603
  esac
 
9604
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9605
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9606
    # if the path contains ";" then we assume it to be the separator
 
9607
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9608
    # assumed that no part of a normal pathname contains ";" but that should
 
9609
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9610
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9611
  else
 
9612
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9613
  fi
 
9614
  # Ok, now we have the path, separated by spaces, we can step through it
 
9615
  # and add multilib dir if necessary.
 
9616
  lt_tmp_lt_search_path_spec=
 
9617
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9618
  for lt_sys_path in $lt_search_path_spec; do
 
9619
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9620
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9621
    else
 
9622
      test -d "$lt_sys_path" && \
 
9623
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9624
    fi
 
9625
  done
 
9626
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9627
BEGIN {RS=" "; FS="/|\n";} {
 
9628
  lt_foo="";
 
9629
  lt_count=0;
 
9630
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9631
    if ($lt_i != "" && $lt_i != ".") {
 
9632
      if ($lt_i == "..") {
 
9633
        lt_count++;
 
9634
      } else {
 
9635
        if (lt_count == 0) {
 
9636
          lt_foo="/" $lt_i lt_foo;
 
9637
        } else {
 
9638
          lt_count--;
 
9639
        }
 
9640
      }
 
9641
    }
 
9642
  }
 
9643
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9644
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9645
}'`
 
9646
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9647
else
 
9648
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9649
fi
 
9650
library_names_spec=
 
9651
libname_spec='lib$name'
 
9652
soname_spec=
 
9653
shrext_cmds=".so"
 
9654
postinstall_cmds=
 
9655
postuninstall_cmds=
 
9656
finish_cmds=
 
9657
finish_eval=
 
9658
shlibpath_var=
 
9659
shlibpath_overrides_runpath=unknown
 
9660
version_type=none
 
9661
dynamic_linker="$host_os ld.so"
 
9662
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9663
need_lib_prefix=unknown
 
9664
hardcode_into_libs=no
 
9665
 
 
9666
# when you set need_version to no, make sure it does not cause -set_version
 
9667
# flags to be left without arguments
 
9668
need_version=unknown
 
9669
 
 
9670
case $host_os in
 
9671
aix3*)
 
9672
  version_type=linux
 
9673
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9674
  shlibpath_var=LIBPATH
 
9675
 
 
9676
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9677
  soname_spec='${libname}${release}${shared_ext}$major'
 
9678
  ;;
 
9679
 
 
9680
aix[4-9]*)
 
9681
  version_type=linux
 
9682
  need_lib_prefix=no
 
9683
  need_version=no
 
9684
  hardcode_into_libs=yes
 
9685
  if test "$host_cpu" = ia64; then
 
9686
    # AIX 5 supports IA64
 
9687
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9688
    shlibpath_var=LD_LIBRARY_PATH
 
9689
  else
 
9690
    # With GCC up to 2.95.x, collect2 would create an import file
 
9691
    # for dependence libraries.  The import file would start with
 
9692
    # the line `#! .'.  This would cause the generated library to
 
9693
    # depend on `.', always an invalid library.  This was fixed in
 
9694
    # development snapshots of GCC prior to 3.0.
 
9695
    case $host_os in
 
9696
      aix4 | aix4.[01] | aix4.[01].*)
 
9697
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9698
           echo ' yes '
 
9699
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9700
        :
 
9701
      else
 
9702
        can_build_shared=no
 
9703
      fi
 
9704
      ;;
 
9705
    esac
 
9706
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9707
    # soname into executable. Probably we can add versioning support to
 
9708
    # collect2, so additional links can be useful in future.
 
9709
    if test "$aix_use_runtimelinking" = yes; then
 
9710
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9711
      # instead of lib<name>.a to let people know that these are not
 
9712
      # typical AIX shared libraries.
 
9713
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9714
    else
 
9715
      # We preserve .a as extension for shared libraries through AIX4.2
 
9716
      # and later when we are not doing run time linking.
 
9717
      library_names_spec='${libname}${release}.a $libname.a'
 
9718
      soname_spec='${libname}${release}${shared_ext}$major'
 
9719
    fi
 
9720
    shlibpath_var=LIBPATH
 
9721
  fi
 
9722
  ;;
 
9723
 
 
9724
amigaos*)
 
9725
  case $host_cpu in
 
9726
  powerpc)
 
9727
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9728
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9729
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9730
    ;;
 
9731
  m68k)
 
9732
    library_names_spec='$libname.ixlibrary $libname.a'
 
9733
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9734
    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'
 
9735
    ;;
 
9736
  esac
 
9737
  ;;
 
9738
 
 
9739
beos*)
 
9740
  library_names_spec='${libname}${shared_ext}'
 
9741
  dynamic_linker="$host_os ld.so"
 
9742
  shlibpath_var=LIBRARY_PATH
 
9743
  ;;
 
9744
 
 
9745
bsdi[45]*)
 
9746
  version_type=linux
 
9747
  need_version=no
 
9748
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9749
  soname_spec='${libname}${release}${shared_ext}$major'
 
9750
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9751
  shlibpath_var=LD_LIBRARY_PATH
 
9752
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9753
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9754
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9755
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9756
  # libtool to hard-code these into programs
 
9757
  ;;
 
9758
 
 
9759
cygwin* | mingw* | pw32* | cegcc*)
 
9760
  version_type=windows
 
9761
  shrext_cmds=".dll"
 
9762
  need_version=no
 
9763
  need_lib_prefix=no
 
9764
 
 
9765
  case $GCC,$host_os in
 
9766
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9767
    library_names_spec='$libname.dll.a'
 
9768
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9769
    postinstall_cmds='base_file=`basename \${file}`~
 
9770
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9771
      dldir=$destdir/`dirname \$dlpath`~
 
9772
      test -d \$dldir || mkdir -p \$dldir~
 
9773
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9774
      chmod a+x \$dldir/$dlname~
 
9775
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9776
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9777
      fi'
 
9778
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9779
      dlpath=$dir/\$dldll~
 
9780
       $RM \$dlpath'
 
9781
    shlibpath_overrides_runpath=yes
 
9782
 
 
9783
    case $host_os in
 
9784
    cygwin*)
 
9785
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9786
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9787
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9788
      ;;
 
9789
    mingw* | cegcc*)
 
9790
      # MinGW DLLs use traditional 'lib' prefix
 
9791
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9792
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9793
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9794
        # It is most probably a Windows format PATH printed by
 
9795
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9796
        # path with ; separators, and with drive letters. We can handle the
 
9797
        # drive letters (cygwin fileutils understands them), so leave them,
 
9798
        # especially as we might pass files found there to a mingw objdump,
 
9799
        # which wouldn't understand a cygwinified path. Ahh.
 
9800
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9801
      else
 
9802
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9803
      fi
 
9804
      ;;
 
9805
    pw32*)
 
9806
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9807
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9808
      ;;
 
9809
    esac
 
9810
    ;;
 
9811
 
 
9812
  *)
 
9813
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9814
    ;;
 
9815
  esac
 
9816
  dynamic_linker='Win32 ld.exe'
 
9817
  # FIXME: first we should search . and the directory the executable is in
 
9818
  shlibpath_var=PATH
 
9819
  ;;
 
9820
 
 
9821
darwin* | rhapsody*)
 
9822
  dynamic_linker="$host_os dyld"
 
9823
  version_type=darwin
 
9824
  need_lib_prefix=no
 
9825
  need_version=no
 
9826
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9827
  soname_spec='${libname}${release}${major}$shared_ext'
 
9828
  shlibpath_overrides_runpath=yes
 
9829
  shlibpath_var=DYLD_LIBRARY_PATH
 
9830
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9831
 
 
9832
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9833
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9834
  ;;
 
9835
 
 
9836
dgux*)
 
9837
  version_type=linux
 
9838
  need_lib_prefix=no
 
9839
  need_version=no
 
9840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9841
  soname_spec='${libname}${release}${shared_ext}$major'
 
9842
  shlibpath_var=LD_LIBRARY_PATH
 
9843
  ;;
 
9844
 
 
9845
freebsd1*)
 
9846
  dynamic_linker=no
 
9847
  ;;
 
9848
 
 
9849
freebsd* | dragonfly*)
 
9850
  # DragonFly does not have aout.  When/if they implement a new
 
9851
  # versioning mechanism, adjust this.
 
9852
  if test -x /usr/bin/objformat; then
 
9853
    objformat=`/usr/bin/objformat`
 
9854
  else
 
9855
    case $host_os in
 
9856
    freebsd[123]*) objformat=aout ;;
 
9857
    *) objformat=elf ;;
 
9858
    esac
 
9859
  fi
 
9860
  version_type=freebsd-$objformat
 
9861
  case $version_type in
 
9862
    freebsd-elf*)
 
9863
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9864
      need_version=no
 
9865
      need_lib_prefix=no
 
9866
      ;;
 
9867
    freebsd-*)
 
9868
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9869
      need_version=yes
 
9870
      ;;
 
9871
  esac
 
9872
  shlibpath_var=LD_LIBRARY_PATH
 
9873
  case $host_os in
 
9874
  freebsd2*)
 
9875
    shlibpath_overrides_runpath=yes
 
9876
    ;;
 
9877
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9878
    shlibpath_overrides_runpath=yes
 
9879
    hardcode_into_libs=yes
 
9880
    ;;
 
9881
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9882
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9883
    shlibpath_overrides_runpath=no
 
9884
    hardcode_into_libs=yes
 
9885
    ;;
 
9886
  *) # from 4.6 on, and DragonFly
 
9887
    shlibpath_overrides_runpath=yes
 
9888
    hardcode_into_libs=yes
 
9889
    ;;
 
9890
  esac
 
9891
  ;;
 
9892
 
 
9893
gnu*)
 
9894
  version_type=linux
 
9895
  need_lib_prefix=no
 
9896
  need_version=no
 
9897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9898
  soname_spec='${libname}${release}${shared_ext}$major'
 
9899
  shlibpath_var=LD_LIBRARY_PATH
 
9900
  hardcode_into_libs=yes
 
9901
  ;;
 
9902
 
 
9903
hpux9* | hpux10* | hpux11*)
 
9904
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9905
  # link against other versions.
 
9906
  version_type=sunos
 
9907
  need_lib_prefix=no
 
9908
  need_version=no
 
9909
  case $host_cpu in
 
9910
  ia64*)
 
9911
    shrext_cmds='.so'
 
9912
    hardcode_into_libs=yes
 
9913
    dynamic_linker="$host_os dld.so"
 
9914
    shlibpath_var=LD_LIBRARY_PATH
 
9915
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9916
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9917
    soname_spec='${libname}${release}${shared_ext}$major'
 
9918
    if test "X$HPUX_IA64_MODE" = X32; then
 
9919
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9920
    else
 
9921
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9922
    fi
 
9923
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9924
    ;;
 
9925
  hppa*64*)
 
9926
    shrext_cmds='.sl'
 
9927
    hardcode_into_libs=yes
 
9928
    dynamic_linker="$host_os dld.sl"
 
9929
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9930
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9931
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9932
    soname_spec='${libname}${release}${shared_ext}$major'
 
9933
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9934
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9935
    ;;
 
9936
  *)
 
9937
    shrext_cmds='.sl'
 
9938
    dynamic_linker="$host_os dld.sl"
 
9939
    shlibpath_var=SHLIB_PATH
 
9940
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9941
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9942
    soname_spec='${libname}${release}${shared_ext}$major'
 
9943
    ;;
 
9944
  esac
 
9945
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9946
  postinstall_cmds='chmod 555 $lib'
 
9947
  ;;
 
9948
 
 
9949
interix[3-9]*)
 
9950
  version_type=linux
 
9951
  need_lib_prefix=no
 
9952
  need_version=no
 
9953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9954
  soname_spec='${libname}${release}${shared_ext}$major'
 
9955
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9956
  shlibpath_var=LD_LIBRARY_PATH
 
9957
  shlibpath_overrides_runpath=no
 
9958
  hardcode_into_libs=yes
 
9959
  ;;
 
9960
 
 
9961
irix5* | irix6* | nonstopux*)
 
9962
  case $host_os in
 
9963
    nonstopux*) version_type=nonstopux ;;
 
9964
    *)
 
9965
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9966
                version_type=linux
 
9967
        else
 
9968
                version_type=irix
 
9969
        fi ;;
 
9970
  esac
 
9971
  need_lib_prefix=no
 
9972
  need_version=no
 
9973
  soname_spec='${libname}${release}${shared_ext}$major'
 
9974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9975
  case $host_os in
 
9976
  irix5* | nonstopux*)
 
9977
    libsuff= shlibsuff=
 
9978
    ;;
 
9979
  *)
 
9980
    case $LD in # libtool.m4 will add one of these switches to LD
 
9981
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9982
      libsuff= shlibsuff= libmagic=32-bit;;
 
9983
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9984
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9985
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9986
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9987
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9988
    esac
 
9989
    ;;
 
9990
  esac
 
9991
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9992
  shlibpath_overrides_runpath=no
 
9993
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9994
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9995
  hardcode_into_libs=yes
 
9996
  ;;
 
9997
 
 
9998
# No shared lib support for Linux oldld, aout, or coff.
 
9999
linux*oldld* | linux*aout* | linux*coff*)
 
10000
  dynamic_linker=no
 
10001
  ;;
 
10002
 
 
10003
# This must be Linux ELF.
 
10004
linux* | k*bsd*-gnu)
 
10005
  version_type=linux
 
10006
  need_lib_prefix=no
 
10007
  need_version=no
 
10008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10009
  soname_spec='${libname}${release}${shared_ext}$major'
 
10010
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10011
  shlibpath_var=LD_LIBRARY_PATH
 
10012
  shlibpath_overrides_runpath=no
 
10013
  # Some binutils ld are patched to set DT_RUNPATH
 
10014
  save_LDFLAGS=$LDFLAGS
 
10015
  save_libdir=$libdir
 
10016
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10017
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10018
  cat >conftest.$ac_ext <<_ACEOF
 
10019
/* confdefs.h.  */
 
10020
_ACEOF
 
10021
cat confdefs.h >>conftest.$ac_ext
 
10022
cat >>conftest.$ac_ext <<_ACEOF
 
10023
/* end confdefs.h.  */
 
10024
 
 
10025
int
 
10026
main ()
 
10027
{
 
10028
 
 
10029
  ;
 
10030
  return 0;
 
10031
}
 
10032
_ACEOF
 
10033
rm -f conftest.$ac_objext conftest$ac_exeext
 
10034
if { (ac_try="$ac_link"
 
10035
case "(($ac_try" in
 
10036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10037
  *) ac_try_echo=$ac_try;;
 
10038
esac
 
10039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10040
$as_echo "$ac_try_echo") >&5
 
10041
  (eval "$ac_link") 2>conftest.er1
 
10042
  ac_status=$?
 
10043
  grep -v '^ *+' conftest.er1 >conftest.err
 
10044
  rm -f conftest.er1
 
10045
  cat conftest.err >&5
 
10046
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10047
  (exit $ac_status); } && {
 
10048
         test -z "$ac_c_werror_flag" ||
 
10049
         test ! -s conftest.err
 
10050
       } && test -s conftest$ac_exeext && {
 
10051
         test "$cross_compiling" = yes ||
 
10052
         $as_test_x conftest$ac_exeext
 
10053
       }; then
 
10054
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10055
  shlibpath_overrides_runpath=yes
 
10056
fi
 
10057
 
 
10058
else
 
10059
  $as_echo "$as_me: failed program was:" >&5
 
10060
sed 's/^/| /' conftest.$ac_ext >&5
 
10061
 
 
10062
 
 
10063
fi
 
10064
 
 
10065
rm -rf conftest.dSYM
 
10066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10067
      conftest$ac_exeext conftest.$ac_ext
 
10068
  LDFLAGS=$save_LDFLAGS
 
10069
  libdir=$save_libdir
 
10070
 
 
10071
  # This implies no fast_install, which is unacceptable.
 
10072
  # Some rework will be needed to allow for fast_install
 
10073
  # before this can be enabled.
 
10074
  hardcode_into_libs=yes
 
10075
 
 
10076
  # Append ld.so.conf contents to the search path
 
10077
  if test -f /etc/ld.so.conf; then
 
10078
    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' ' '`
 
10079
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10080
  fi
 
10081
 
 
10082
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10083
  # powerpc, because MkLinux only supported shared libraries with the
 
10084
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10085
  # most powerpc-linux boxes support dynamic linking these days and
 
10086
  # people can always --disable-shared, the test was removed, and we
 
10087
  # assume the GNU/Linux dynamic linker is in use.
 
10088
  dynamic_linker='GNU/Linux ld.so'
 
10089
  ;;
 
10090
 
 
10091
netbsdelf*-gnu)
 
10092
  version_type=linux
 
10093
  need_lib_prefix=no
 
10094
  need_version=no
 
10095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10096
  soname_spec='${libname}${release}${shared_ext}$major'
 
10097
  shlibpath_var=LD_LIBRARY_PATH
 
10098
  shlibpath_overrides_runpath=no
 
10099
  hardcode_into_libs=yes
 
10100
  dynamic_linker='NetBSD ld.elf_so'
 
10101
  ;;
 
10102
 
 
10103
netbsd*)
 
10104
  version_type=sunos
 
10105
  need_lib_prefix=no
 
10106
  need_version=no
 
10107
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10108
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10109
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10110
    dynamic_linker='NetBSD (a.out) ld.so'
 
10111
  else
 
10112
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10113
    soname_spec='${libname}${release}${shared_ext}$major'
 
10114
    dynamic_linker='NetBSD ld.elf_so'
 
10115
  fi
 
10116
  shlibpath_var=LD_LIBRARY_PATH
 
10117
  shlibpath_overrides_runpath=yes
 
10118
  hardcode_into_libs=yes
 
10119
  ;;
 
10120
 
 
10121
newsos6)
 
10122
  version_type=linux
 
10123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10124
  shlibpath_var=LD_LIBRARY_PATH
 
10125
  shlibpath_overrides_runpath=yes
 
10126
  ;;
 
10127
 
 
10128
*nto* | *qnx*)
 
10129
  version_type=qnx
 
10130
  need_lib_prefix=no
 
10131
  need_version=no
 
10132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10133
  soname_spec='${libname}${release}${shared_ext}$major'
 
10134
  shlibpath_var=LD_LIBRARY_PATH
 
10135
  shlibpath_overrides_runpath=no
 
10136
  hardcode_into_libs=yes
 
10137
  dynamic_linker='ldqnx.so'
 
10138
  ;;
 
10139
 
 
10140
openbsd*)
 
10141
  version_type=sunos
 
10142
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10143
  need_lib_prefix=no
 
10144
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10145
  case $host_os in
 
10146
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10147
    *)                          need_version=no  ;;
 
10148
  esac
 
10149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10150
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10151
  shlibpath_var=LD_LIBRARY_PATH
 
10152
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10153
    case $host_os in
 
10154
      openbsd2.[89] | openbsd2.[89].*)
 
10155
        shlibpath_overrides_runpath=no
 
10156
        ;;
 
10157
      *)
 
10158
        shlibpath_overrides_runpath=yes
 
10159
        ;;
 
10160
      esac
 
10161
  else
 
10162
    shlibpath_overrides_runpath=yes
 
10163
  fi
 
10164
  ;;
 
10165
 
 
10166
os2*)
 
10167
  libname_spec='$name'
 
10168
  shrext_cmds=".dll"
 
10169
  need_lib_prefix=no
 
10170
  library_names_spec='$libname${shared_ext} $libname.a'
 
10171
  dynamic_linker='OS/2 ld.exe'
 
10172
  shlibpath_var=LIBPATH
 
10173
  ;;
 
10174
 
 
10175
osf3* | osf4* | osf5*)
 
10176
  version_type=osf
 
10177
  need_lib_prefix=no
 
10178
  need_version=no
 
10179
  soname_spec='${libname}${release}${shared_ext}$major'
 
10180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10181
  shlibpath_var=LD_LIBRARY_PATH
 
10182
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10183
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10184
  ;;
 
10185
 
 
10186
rdos*)
 
10187
  dynamic_linker=no
 
10188
  ;;
 
10189
 
 
10190
solaris*)
 
10191
  version_type=linux
 
10192
  need_lib_prefix=no
 
10193
  need_version=no
 
10194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10195
  soname_spec='${libname}${release}${shared_ext}$major'
 
10196
  shlibpath_var=LD_LIBRARY_PATH
 
10197
  shlibpath_overrides_runpath=yes
 
10198
  hardcode_into_libs=yes
 
10199
  # ldd complains unless libraries are executable
 
10200
  postinstall_cmds='chmod +x $lib'
 
10201
  ;;
 
10202
 
 
10203
sunos4*)
 
10204
  version_type=sunos
 
10205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10206
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10207
  shlibpath_var=LD_LIBRARY_PATH
 
10208
  shlibpath_overrides_runpath=yes
 
10209
  if test "$with_gnu_ld" = yes; then
 
10210
    need_lib_prefix=no
 
10211
  fi
 
10212
  need_version=yes
 
10213
  ;;
 
10214
 
 
10215
sysv4 | sysv4.3*)
 
10216
  version_type=linux
 
10217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10218
  soname_spec='${libname}${release}${shared_ext}$major'
 
10219
  shlibpath_var=LD_LIBRARY_PATH
 
10220
  case $host_vendor in
 
10221
    sni)
 
10222
      shlibpath_overrides_runpath=no
 
10223
      need_lib_prefix=no
 
10224
      runpath_var=LD_RUN_PATH
 
10225
      ;;
 
10226
    siemens)
 
10227
      need_lib_prefix=no
 
10228
      ;;
 
10229
    motorola)
 
10230
      need_lib_prefix=no
 
10231
      need_version=no
 
10232
      shlibpath_overrides_runpath=no
 
10233
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10234
      ;;
 
10235
  esac
 
10236
  ;;
 
10237
 
 
10238
sysv4*MP*)
 
10239
  if test -d /usr/nec ;then
 
10240
    version_type=linux
 
10241
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10242
    soname_spec='$libname${shared_ext}.$major'
 
10243
    shlibpath_var=LD_LIBRARY_PATH
 
10244
  fi
 
10245
  ;;
 
10246
 
 
10247
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10248
  version_type=freebsd-elf
 
10249
  need_lib_prefix=no
 
10250
  need_version=no
 
10251
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10252
  soname_spec='${libname}${release}${shared_ext}$major'
 
10253
  shlibpath_var=LD_LIBRARY_PATH
 
10254
  shlibpath_overrides_runpath=yes
 
10255
  hardcode_into_libs=yes
 
10256
  if test "$with_gnu_ld" = yes; then
 
10257
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10258
  else
 
10259
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10260
    case $host_os in
 
10261
      sco3.2v5*)
 
10262
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10263
        ;;
 
10264
    esac
 
10265
  fi
 
10266
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10267
  ;;
 
10268
 
 
10269
tpf*)
 
10270
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10271
  version_type=linux
 
10272
  need_lib_prefix=no
 
10273
  need_version=no
 
10274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10275
  shlibpath_var=LD_LIBRARY_PATH
 
10276
  shlibpath_overrides_runpath=no
 
10277
  hardcode_into_libs=yes
 
10278
  ;;
 
10279
 
 
10280
uts4*)
 
10281
  version_type=linux
 
10282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10283
  soname_spec='${libname}${release}${shared_ext}$major'
 
10284
  shlibpath_var=LD_LIBRARY_PATH
 
10285
  ;;
 
10286
 
 
10287
*)
 
10288
  dynamic_linker=no
 
10289
  ;;
 
10290
esac
 
10291
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10292
$as_echo "$dynamic_linker" >&6; }
 
10293
test "$dynamic_linker" = no && can_build_shared=no
 
10294
 
 
10295
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10296
if test "$GCC" = yes; then
 
10297
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10298
fi
 
10299
 
 
10300
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10301
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10302
fi
 
10303
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10304
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10305
fi
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10394
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10395
hardcode_action=
 
10396
if test -n "$hardcode_libdir_flag_spec" ||
 
10397
   test -n "$runpath_var" ||
 
10398
   test "X$hardcode_automatic" = "Xyes" ; then
 
10399
 
 
10400
  # We can hardcode non-existent directories.
 
10401
  if test "$hardcode_direct" != no &&
 
10402
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10403
     # have to relink, otherwise we might link with an installed library
 
10404
     # when we should be linking with a yet-to-be-installed one
 
10405
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10406
     test "$hardcode_minus_L" != no; then
 
10407
    # Linking always hardcodes the temporary library directory.
 
10408
    hardcode_action=relink
 
10409
  else
 
10410
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10411
    hardcode_action=immediate
 
10412
  fi
 
10413
else
 
10414
  # We cannot hardcode anything, or else we can only hardcode existing
 
10415
  # directories.
 
10416
  hardcode_action=unsupported
 
10417
fi
 
10418
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10419
$as_echo "$hardcode_action" >&6; }
 
10420
 
 
10421
if test "$hardcode_action" = relink ||
 
10422
   test "$inherit_rpath" = yes; then
 
10423
  # Fast installation is not supported
 
10424
  enable_fast_install=no
 
10425
elif test "$shlibpath_overrides_runpath" = yes ||
 
10426
     test "$enable_shared" = no; then
 
10427
  # Fast installation is not necessary
 
10428
  enable_fast_install=needless
 
10429
fi
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
  if test "x$enable_dlopen" != xyes; then
 
10437
  enable_dlopen=unknown
 
10438
  enable_dlopen_self=unknown
 
10439
  enable_dlopen_self_static=unknown
 
10440
else
 
10441
  lt_cv_dlopen=no
 
10442
  lt_cv_dlopen_libs=
 
10443
 
 
10444
  case $host_os in
 
10445
  beos*)
 
10446
    lt_cv_dlopen="load_add_on"
 
10447
    lt_cv_dlopen_libs=
 
10448
    lt_cv_dlopen_self=yes
 
10449
    ;;
 
10450
 
 
10451
  mingw* | pw32* | cegcc*)
 
10452
    lt_cv_dlopen="LoadLibrary"
 
10453
    lt_cv_dlopen_libs=
 
10454
    ;;
 
10455
 
 
10456
  cygwin*)
 
10457
    lt_cv_dlopen="dlopen"
 
10458
    lt_cv_dlopen_libs=
 
10459
    ;;
 
10460
 
 
10461
  darwin*)
 
10462
  # if libdl is installed we need to link against it
 
10463
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10464
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10465
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10466
  $as_echo_n "(cached) " >&6
 
10467
else
 
10468
  ac_check_lib_save_LIBS=$LIBS
 
10469
LIBS="-ldl  $LIBS"
 
10470
cat >conftest.$ac_ext <<_ACEOF
 
10471
/* confdefs.h.  */
 
10472
_ACEOF
 
10473
cat confdefs.h >>conftest.$ac_ext
 
10474
cat >>conftest.$ac_ext <<_ACEOF
 
10475
/* end confdefs.h.  */
 
10476
 
 
10477
/* Override any GCC internal prototype to avoid an error.
 
10478
   Use char because int might match the return type of a GCC
 
10479
   builtin and then its argument prototype would still apply.  */
 
10480
#ifdef __cplusplus
 
10481
extern "C"
 
10482
#endif
 
10483
char dlopen ();
 
10484
int
 
10485
main ()
 
10486
{
 
10487
return dlopen ();
 
10488
  ;
 
10489
  return 0;
 
10490
}
 
10491
_ACEOF
 
10492
rm -f conftest.$ac_objext conftest$ac_exeext
 
10493
if { (ac_try="$ac_link"
 
10494
case "(($ac_try" in
 
10495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10496
  *) ac_try_echo=$ac_try;;
 
10497
esac
 
10498
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10499
$as_echo "$ac_try_echo") >&5
 
10500
  (eval "$ac_link") 2>conftest.er1
 
10501
  ac_status=$?
 
10502
  grep -v '^ *+' conftest.er1 >conftest.err
 
10503
  rm -f conftest.er1
 
10504
  cat conftest.err >&5
 
10505
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10506
  (exit $ac_status); } && {
 
10507
         test -z "$ac_c_werror_flag" ||
 
10508
         test ! -s conftest.err
 
10509
       } && test -s conftest$ac_exeext && {
 
10510
         test "$cross_compiling" = yes ||
 
10511
         $as_test_x conftest$ac_exeext
 
10512
       }; then
 
10513
  ac_cv_lib_dl_dlopen=yes
 
10514
else
 
10515
  $as_echo "$as_me: failed program was:" >&5
 
10516
sed 's/^/| /' conftest.$ac_ext >&5
 
10517
 
 
10518
        ac_cv_lib_dl_dlopen=no
 
10519
fi
 
10520
 
 
10521
rm -rf conftest.dSYM
 
10522
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10523
      conftest$ac_exeext conftest.$ac_ext
 
10524
LIBS=$ac_check_lib_save_LIBS
 
10525
fi
 
10526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10527
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10528
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10529
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10530
else
 
10531
 
 
10532
    lt_cv_dlopen="dyld"
 
10533
    lt_cv_dlopen_libs=
 
10534
    lt_cv_dlopen_self=yes
 
10535
 
 
10536
fi
 
10537
 
 
10538
    ;;
 
10539
 
 
10540
  *)
 
10541
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10542
$as_echo_n "checking for shl_load... " >&6; }
 
10543
if test "${ac_cv_func_shl_load+set}" = set; then
 
10544
  $as_echo_n "(cached) " >&6
 
10545
else
 
10546
  cat >conftest.$ac_ext <<_ACEOF
 
10547
/* confdefs.h.  */
 
10548
_ACEOF
 
10549
cat confdefs.h >>conftest.$ac_ext
 
10550
cat >>conftest.$ac_ext <<_ACEOF
 
10551
/* end confdefs.h.  */
 
10552
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10553
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10554
#define shl_load innocuous_shl_load
 
10555
 
 
10556
/* System header to define __stub macros and hopefully few prototypes,
 
10557
    which can conflict with char shl_load (); below.
 
10558
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10559
    <limits.h> exists even on freestanding compilers.  */
 
10560
 
 
10561
#ifdef __STDC__
 
10562
# include <limits.h>
 
10563
#else
 
10564
# include <assert.h>
 
10565
#endif
 
10566
 
 
10567
#undef shl_load
 
10568
 
 
10569
/* Override any GCC internal prototype to avoid an error.
 
10570
   Use char because int might match the return type of a GCC
 
10571
   builtin and then its argument prototype would still apply.  */
 
10572
#ifdef __cplusplus
 
10573
extern "C"
 
10574
#endif
 
10575
char shl_load ();
 
10576
/* The GNU C library defines this for functions which it implements
 
10577
    to always fail with ENOSYS.  Some functions are actually named
 
10578
    something starting with __ and the normal name is an alias.  */
 
10579
#if defined __stub_shl_load || defined __stub___shl_load
 
10580
choke me
 
10581
#endif
 
10582
 
 
10583
int
 
10584
main ()
 
10585
{
 
10586
return shl_load ();
 
10587
  ;
 
10588
  return 0;
 
10589
}
 
10590
_ACEOF
 
10591
rm -f conftest.$ac_objext conftest$ac_exeext
 
10592
if { (ac_try="$ac_link"
 
10593
case "(($ac_try" in
 
10594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10595
  *) ac_try_echo=$ac_try;;
 
10596
esac
 
10597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10598
$as_echo "$ac_try_echo") >&5
 
10599
  (eval "$ac_link") 2>conftest.er1
 
10600
  ac_status=$?
 
10601
  grep -v '^ *+' conftest.er1 >conftest.err
 
10602
  rm -f conftest.er1
 
10603
  cat conftest.err >&5
 
10604
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10605
  (exit $ac_status); } && {
 
10606
         test -z "$ac_c_werror_flag" ||
 
10607
         test ! -s conftest.err
 
10608
       } && test -s conftest$ac_exeext && {
 
10609
         test "$cross_compiling" = yes ||
 
10610
         $as_test_x conftest$ac_exeext
 
10611
       }; then
 
10612
  ac_cv_func_shl_load=yes
 
10613
else
 
10614
  $as_echo "$as_me: failed program was:" >&5
 
10615
sed 's/^/| /' conftest.$ac_ext >&5
 
10616
 
 
10617
        ac_cv_func_shl_load=no
 
10618
fi
 
10619
 
 
10620
rm -rf conftest.dSYM
 
10621
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10622
      conftest$ac_exeext conftest.$ac_ext
 
10623
fi
 
10624
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10625
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10626
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10627
  lt_cv_dlopen="shl_load"
 
10628
else
 
10629
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10630
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10631
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10632
  $as_echo_n "(cached) " >&6
 
10633
else
 
10634
  ac_check_lib_save_LIBS=$LIBS
 
10635
LIBS="-ldld  $LIBS"
 
10636
cat >conftest.$ac_ext <<_ACEOF
 
10637
/* confdefs.h.  */
 
10638
_ACEOF
 
10639
cat confdefs.h >>conftest.$ac_ext
 
10640
cat >>conftest.$ac_ext <<_ACEOF
 
10641
/* end confdefs.h.  */
 
10642
 
 
10643
/* Override any GCC internal prototype to avoid an error.
 
10644
   Use char because int might match the return type of a GCC
 
10645
   builtin and then its argument prototype would still apply.  */
 
10646
#ifdef __cplusplus
 
10647
extern "C"
 
10648
#endif
 
10649
char shl_load ();
 
10650
int
 
10651
main ()
 
10652
{
 
10653
return shl_load ();
 
10654
  ;
 
10655
  return 0;
 
10656
}
 
10657
_ACEOF
 
10658
rm -f conftest.$ac_objext conftest$ac_exeext
 
10659
if { (ac_try="$ac_link"
 
10660
case "(($ac_try" in
 
10661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10662
  *) ac_try_echo=$ac_try;;
 
10663
esac
 
10664
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10665
$as_echo "$ac_try_echo") >&5
 
10666
  (eval "$ac_link") 2>conftest.er1
 
10667
  ac_status=$?
 
10668
  grep -v '^ *+' conftest.er1 >conftest.err
 
10669
  rm -f conftest.er1
 
10670
  cat conftest.err >&5
 
10671
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10672
  (exit $ac_status); } && {
 
10673
         test -z "$ac_c_werror_flag" ||
 
10674
         test ! -s conftest.err
 
10675
       } && test -s conftest$ac_exeext && {
 
10676
         test "$cross_compiling" = yes ||
 
10677
         $as_test_x conftest$ac_exeext
 
10678
       }; then
 
10679
  ac_cv_lib_dld_shl_load=yes
 
10680
else
 
10681
  $as_echo "$as_me: failed program was:" >&5
 
10682
sed 's/^/| /' conftest.$ac_ext >&5
 
10683
 
 
10684
        ac_cv_lib_dld_shl_load=no
 
10685
fi
 
10686
 
 
10687
rm -rf conftest.dSYM
 
10688
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10689
      conftest$ac_exeext conftest.$ac_ext
 
10690
LIBS=$ac_check_lib_save_LIBS
 
10691
fi
 
10692
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10693
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10694
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10695
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10696
else
 
10697
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10698
$as_echo_n "checking for dlopen... " >&6; }
 
10699
if test "${ac_cv_func_dlopen+set}" = set; then
 
10700
  $as_echo_n "(cached) " >&6
 
10701
else
 
10702
  cat >conftest.$ac_ext <<_ACEOF
 
10703
/* confdefs.h.  */
 
10704
_ACEOF
 
10705
cat confdefs.h >>conftest.$ac_ext
 
10706
cat >>conftest.$ac_ext <<_ACEOF
 
10707
/* end confdefs.h.  */
 
10708
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10709
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10710
#define dlopen innocuous_dlopen
 
10711
 
 
10712
/* System header to define __stub macros and hopefully few prototypes,
 
10713
    which can conflict with char dlopen (); below.
 
10714
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10715
    <limits.h> exists even on freestanding compilers.  */
 
10716
 
 
10717
#ifdef __STDC__
 
10718
# include <limits.h>
 
10719
#else
 
10720
# include <assert.h>
 
10721
#endif
 
10722
 
 
10723
#undef dlopen
 
10724
 
 
10725
/* Override any GCC internal prototype to avoid an error.
 
10726
   Use char because int might match the return type of a GCC
 
10727
   builtin and then its argument prototype would still apply.  */
 
10728
#ifdef __cplusplus
 
10729
extern "C"
 
10730
#endif
 
10731
char dlopen ();
 
10732
/* The GNU C library defines this for functions which it implements
 
10733
    to always fail with ENOSYS.  Some functions are actually named
 
10734
    something starting with __ and the normal name is an alias.  */
 
10735
#if defined __stub_dlopen || defined __stub___dlopen
 
10736
choke me
 
10737
#endif
 
10738
 
 
10739
int
 
10740
main ()
 
10741
{
 
10742
return dlopen ();
 
10743
  ;
 
10744
  return 0;
 
10745
}
 
10746
_ACEOF
 
10747
rm -f conftest.$ac_objext conftest$ac_exeext
 
10748
if { (ac_try="$ac_link"
 
10749
case "(($ac_try" in
 
10750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10751
  *) ac_try_echo=$ac_try;;
 
10752
esac
 
10753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10754
$as_echo "$ac_try_echo") >&5
 
10755
  (eval "$ac_link") 2>conftest.er1
 
10756
  ac_status=$?
 
10757
  grep -v '^ *+' conftest.er1 >conftest.err
 
10758
  rm -f conftest.er1
 
10759
  cat conftest.err >&5
 
10760
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10761
  (exit $ac_status); } && {
 
10762
         test -z "$ac_c_werror_flag" ||
 
10763
         test ! -s conftest.err
 
10764
       } && test -s conftest$ac_exeext && {
 
10765
         test "$cross_compiling" = yes ||
 
10766
         $as_test_x conftest$ac_exeext
 
10767
       }; then
 
10768
  ac_cv_func_dlopen=yes
 
10769
else
 
10770
  $as_echo "$as_me: failed program was:" >&5
 
10771
sed 's/^/| /' conftest.$ac_ext >&5
 
10772
 
 
10773
        ac_cv_func_dlopen=no
 
10774
fi
 
10775
 
 
10776
rm -rf conftest.dSYM
 
10777
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10778
      conftest$ac_exeext conftest.$ac_ext
 
10779
fi
 
10780
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10781
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10782
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10783
  lt_cv_dlopen="dlopen"
 
10784
else
 
10785
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10786
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10787
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10788
  $as_echo_n "(cached) " >&6
 
10789
else
 
10790
  ac_check_lib_save_LIBS=$LIBS
 
10791
LIBS="-ldl  $LIBS"
 
10792
cat >conftest.$ac_ext <<_ACEOF
 
10793
/* confdefs.h.  */
 
10794
_ACEOF
 
10795
cat confdefs.h >>conftest.$ac_ext
 
10796
cat >>conftest.$ac_ext <<_ACEOF
 
10797
/* end confdefs.h.  */
 
10798
 
 
10799
/* Override any GCC internal prototype to avoid an error.
 
10800
   Use char because int might match the return type of a GCC
 
10801
   builtin and then its argument prototype would still apply.  */
 
10802
#ifdef __cplusplus
 
10803
extern "C"
 
10804
#endif
 
10805
char dlopen ();
 
10806
int
 
10807
main ()
 
10808
{
 
10809
return dlopen ();
 
10810
  ;
 
10811
  return 0;
 
10812
}
 
10813
_ACEOF
 
10814
rm -f conftest.$ac_objext conftest$ac_exeext
 
10815
if { (ac_try="$ac_link"
 
10816
case "(($ac_try" in
 
10817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10818
  *) ac_try_echo=$ac_try;;
 
10819
esac
 
10820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10821
$as_echo "$ac_try_echo") >&5
 
10822
  (eval "$ac_link") 2>conftest.er1
 
10823
  ac_status=$?
 
10824
  grep -v '^ *+' conftest.er1 >conftest.err
 
10825
  rm -f conftest.er1
 
10826
  cat conftest.err >&5
 
10827
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10828
  (exit $ac_status); } && {
 
10829
         test -z "$ac_c_werror_flag" ||
 
10830
         test ! -s conftest.err
 
10831
       } && test -s conftest$ac_exeext && {
 
10832
         test "$cross_compiling" = yes ||
 
10833
         $as_test_x conftest$ac_exeext
 
10834
       }; then
 
10835
  ac_cv_lib_dl_dlopen=yes
 
10836
else
 
10837
  $as_echo "$as_me: failed program was:" >&5
 
10838
sed 's/^/| /' conftest.$ac_ext >&5
 
10839
 
 
10840
        ac_cv_lib_dl_dlopen=no
 
10841
fi
 
10842
 
 
10843
rm -rf conftest.dSYM
 
10844
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10845
      conftest$ac_exeext conftest.$ac_ext
 
10846
LIBS=$ac_check_lib_save_LIBS
 
10847
fi
 
10848
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10849
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10850
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10851
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10852
else
 
10853
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10854
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10855
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10856
  $as_echo_n "(cached) " >&6
 
10857
else
 
10858
  ac_check_lib_save_LIBS=$LIBS
 
10859
LIBS="-lsvld  $LIBS"
 
10860
cat >conftest.$ac_ext <<_ACEOF
 
10861
/* confdefs.h.  */
 
10862
_ACEOF
 
10863
cat confdefs.h >>conftest.$ac_ext
 
10864
cat >>conftest.$ac_ext <<_ACEOF
 
10865
/* end confdefs.h.  */
 
10866
 
 
10867
/* Override any GCC internal prototype to avoid an error.
 
10868
   Use char because int might match the return type of a GCC
 
10869
   builtin and then its argument prototype would still apply.  */
 
10870
#ifdef __cplusplus
 
10871
extern "C"
 
10872
#endif
 
10873
char dlopen ();
 
10874
int
 
10875
main ()
 
10876
{
 
10877
return dlopen ();
 
10878
  ;
 
10879
  return 0;
 
10880
}
 
10881
_ACEOF
 
10882
rm -f conftest.$ac_objext conftest$ac_exeext
 
10883
if { (ac_try="$ac_link"
 
10884
case "(($ac_try" in
 
10885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10886
  *) ac_try_echo=$ac_try;;
 
10887
esac
 
10888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10889
$as_echo "$ac_try_echo") >&5
 
10890
  (eval "$ac_link") 2>conftest.er1
 
10891
  ac_status=$?
 
10892
  grep -v '^ *+' conftest.er1 >conftest.err
 
10893
  rm -f conftest.er1
 
10894
  cat conftest.err >&5
 
10895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10896
  (exit $ac_status); } && {
 
10897
         test -z "$ac_c_werror_flag" ||
 
10898
         test ! -s conftest.err
 
10899
       } && test -s conftest$ac_exeext && {
 
10900
         test "$cross_compiling" = yes ||
 
10901
         $as_test_x conftest$ac_exeext
 
10902
       }; then
 
10903
  ac_cv_lib_svld_dlopen=yes
 
10904
else
 
10905
  $as_echo "$as_me: failed program was:" >&5
 
10906
sed 's/^/| /' conftest.$ac_ext >&5
 
10907
 
 
10908
        ac_cv_lib_svld_dlopen=no
 
10909
fi
 
10910
 
 
10911
rm -rf conftest.dSYM
 
10912
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10913
      conftest$ac_exeext conftest.$ac_ext
 
10914
LIBS=$ac_check_lib_save_LIBS
 
10915
fi
 
10916
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10917
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10918
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10919
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10920
else
 
10921
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10922
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10923
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10924
  $as_echo_n "(cached) " >&6
 
10925
else
 
10926
  ac_check_lib_save_LIBS=$LIBS
 
10927
LIBS="-ldld  $LIBS"
 
10928
cat >conftest.$ac_ext <<_ACEOF
 
10929
/* confdefs.h.  */
 
10930
_ACEOF
 
10931
cat confdefs.h >>conftest.$ac_ext
 
10932
cat >>conftest.$ac_ext <<_ACEOF
 
10933
/* end confdefs.h.  */
 
10934
 
 
10935
/* Override any GCC internal prototype to avoid an error.
 
10936
   Use char because int might match the return type of a GCC
 
10937
   builtin and then its argument prototype would still apply.  */
 
10938
#ifdef __cplusplus
 
10939
extern "C"
 
10940
#endif
 
10941
char dld_link ();
 
10942
int
 
10943
main ()
 
10944
{
 
10945
return dld_link ();
 
10946
  ;
 
10947
  return 0;
 
10948
}
 
10949
_ACEOF
 
10950
rm -f conftest.$ac_objext conftest$ac_exeext
 
10951
if { (ac_try="$ac_link"
 
10952
case "(($ac_try" in
 
10953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10954
  *) ac_try_echo=$ac_try;;
 
10955
esac
 
10956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10957
$as_echo "$ac_try_echo") >&5
 
10958
  (eval "$ac_link") 2>conftest.er1
 
10959
  ac_status=$?
 
10960
  grep -v '^ *+' conftest.er1 >conftest.err
 
10961
  rm -f conftest.er1
 
10962
  cat conftest.err >&5
 
10963
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10964
  (exit $ac_status); } && {
 
10965
         test -z "$ac_c_werror_flag" ||
 
10966
         test ! -s conftest.err
 
10967
       } && test -s conftest$ac_exeext && {
 
10968
         test "$cross_compiling" = yes ||
 
10969
         $as_test_x conftest$ac_exeext
 
10970
       }; then
 
10971
  ac_cv_lib_dld_dld_link=yes
 
10972
else
 
10973
  $as_echo "$as_me: failed program was:" >&5
 
10974
sed 's/^/| /' conftest.$ac_ext >&5
 
10975
 
 
10976
        ac_cv_lib_dld_dld_link=no
 
10977
fi
 
10978
 
 
10979
rm -rf conftest.dSYM
 
10980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10981
      conftest$ac_exeext conftest.$ac_ext
 
10982
LIBS=$ac_check_lib_save_LIBS
 
10983
fi
 
10984
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10985
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10986
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10987
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10988
fi
 
10989
 
 
10990
 
 
10991
fi
 
10992
 
 
10993
 
 
10994
fi
 
10995
 
 
10996
 
 
10997
fi
 
10998
 
 
10999
 
 
11000
fi
 
11001
 
 
11002
 
 
11003
fi
 
11004
 
 
11005
    ;;
 
11006
  esac
 
11007
 
 
11008
  if test "x$lt_cv_dlopen" != xno; then
 
11009
    enable_dlopen=yes
 
11010
  else
 
11011
    enable_dlopen=no
 
11012
  fi
 
11013
 
 
11014
  case $lt_cv_dlopen in
 
11015
  dlopen)
 
11016
    save_CPPFLAGS="$CPPFLAGS"
 
11017
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11018
 
 
11019
    save_LDFLAGS="$LDFLAGS"
 
11020
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11021
 
 
11022
    save_LIBS="$LIBS"
 
11023
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11024
 
 
11025
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11026
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11027
if test "${lt_cv_dlopen_self+set}" = set; then
 
11028
  $as_echo_n "(cached) " >&6
 
11029
else
 
11030
          if test "$cross_compiling" = yes; then :
 
11031
  lt_cv_dlopen_self=cross
 
11032
else
 
11033
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11034
  lt_status=$lt_dlunknown
 
11035
  cat > conftest.$ac_ext <<_LT_EOF
 
11036
#line 11036 "configure"
 
11037
#include "confdefs.h"
 
11038
 
 
11039
#if HAVE_DLFCN_H
 
11040
#include <dlfcn.h>
 
11041
#endif
 
11042
 
 
11043
#include <stdio.h>
 
11044
 
 
11045
#ifdef RTLD_GLOBAL
 
11046
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11047
#else
 
11048
#  ifdef DL_GLOBAL
 
11049
#    define LT_DLGLOBAL         DL_GLOBAL
 
11050
#  else
 
11051
#    define LT_DLGLOBAL         0
 
11052
#  endif
 
11053
#endif
 
11054
 
 
11055
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11056
   find out it does not work in some platform. */
 
11057
#ifndef LT_DLLAZY_OR_NOW
 
11058
#  ifdef RTLD_LAZY
 
11059
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11060
#  else
 
11061
#    ifdef DL_LAZY
 
11062
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11063
#    else
 
11064
#      ifdef RTLD_NOW
 
11065
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11066
#      else
 
11067
#        ifdef DL_NOW
 
11068
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11069
#        else
 
11070
#          define LT_DLLAZY_OR_NOW      0
 
11071
#        endif
 
11072
#      endif
 
11073
#    endif
 
11074
#  endif
 
11075
#endif
 
11076
 
 
11077
void fnord() { int i=42;}
 
11078
int main ()
 
11079
{
 
11080
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11081
  int status = $lt_dlunknown;
 
11082
 
 
11083
  if (self)
 
11084
    {
 
11085
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11086
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11087
      /* dlclose (self); */
 
11088
    }
 
11089
  else
 
11090
    puts (dlerror ());
 
11091
 
 
11092
  return status;
 
11093
}
 
11094
_LT_EOF
 
11095
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11096
  (eval $ac_link) 2>&5
 
11097
  ac_status=$?
 
11098
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11099
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11100
    (./conftest; exit; ) >&5 2>/dev/null
 
11101
    lt_status=$?
 
11102
    case x$lt_status in
 
11103
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11104
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11105
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11106
    esac
 
11107
  else :
 
11108
    # compilation failed
 
11109
    lt_cv_dlopen_self=no
 
11110
  fi
 
11111
fi
 
11112
rm -fr conftest*
 
11113
 
 
11114
 
 
11115
fi
 
11116
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11117
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11118
 
 
11119
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11120
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11121
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11122
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11123
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11124
  $as_echo_n "(cached) " >&6
 
11125
else
 
11126
          if test "$cross_compiling" = yes; then :
 
11127
  lt_cv_dlopen_self_static=cross
 
11128
else
 
11129
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11130
  lt_status=$lt_dlunknown
 
11131
  cat > conftest.$ac_ext <<_LT_EOF
 
11132
#line 11132 "configure"
 
11133
#include "confdefs.h"
 
11134
 
 
11135
#if HAVE_DLFCN_H
 
11136
#include <dlfcn.h>
 
11137
#endif
 
11138
 
 
11139
#include <stdio.h>
 
11140
 
 
11141
#ifdef RTLD_GLOBAL
 
11142
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11143
#else
 
11144
#  ifdef DL_GLOBAL
 
11145
#    define LT_DLGLOBAL         DL_GLOBAL
 
11146
#  else
 
11147
#    define LT_DLGLOBAL         0
 
11148
#  endif
 
11149
#endif
 
11150
 
 
11151
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11152
   find out it does not work in some platform. */
 
11153
#ifndef LT_DLLAZY_OR_NOW
 
11154
#  ifdef RTLD_LAZY
 
11155
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11156
#  else
 
11157
#    ifdef DL_LAZY
 
11158
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11159
#    else
 
11160
#      ifdef RTLD_NOW
 
11161
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11162
#      else
 
11163
#        ifdef DL_NOW
 
11164
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11165
#        else
 
11166
#          define LT_DLLAZY_OR_NOW      0
 
11167
#        endif
 
11168
#      endif
 
11169
#    endif
 
11170
#  endif
 
11171
#endif
 
11172
 
 
11173
void fnord() { int i=42;}
 
11174
int main ()
 
11175
{
 
11176
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11177
  int status = $lt_dlunknown;
 
11178
 
 
11179
  if (self)
 
11180
    {
 
11181
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11182
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11183
      /* dlclose (self); */
 
11184
    }
 
11185
  else
 
11186
    puts (dlerror ());
 
11187
 
 
11188
  return status;
 
11189
}
 
11190
_LT_EOF
 
11191
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11192
  (eval $ac_link) 2>&5
 
11193
  ac_status=$?
 
11194
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11195
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11196
    (./conftest; exit; ) >&5 2>/dev/null
 
11197
    lt_status=$?
 
11198
    case x$lt_status in
 
11199
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11200
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11201
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11202
    esac
 
11203
  else :
 
11204
    # compilation failed
 
11205
    lt_cv_dlopen_self_static=no
 
11206
  fi
 
11207
fi
 
11208
rm -fr conftest*
 
11209
 
 
11210
 
 
11211
fi
 
11212
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11213
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11214
    fi
 
11215
 
 
11216
    CPPFLAGS="$save_CPPFLAGS"
 
11217
    LDFLAGS="$save_LDFLAGS"
 
11218
    LIBS="$save_LIBS"
 
11219
    ;;
 
11220
  esac
 
11221
 
 
11222
  case $lt_cv_dlopen_self in
 
11223
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11224
  *) enable_dlopen_self=unknown ;;
 
11225
  esac
 
11226
 
 
11227
  case $lt_cv_dlopen_self_static in
 
11228
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11229
  *) enable_dlopen_self_static=unknown ;;
 
11230
  esac
 
11231
fi
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
striplib=
 
11250
old_striplib=
 
11251
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11252
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11253
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11254
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11255
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11256
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11257
$as_echo "yes" >&6; }
 
11258
else
 
11259
# FIXME - insert some real tests, host_os isn't really good enough
 
11260
  case $host_os in
 
11261
  darwin*)
 
11262
    if test -n "$STRIP" ; then
 
11263
      striplib="$STRIP -x"
 
11264
      old_striplib="$STRIP -S"
 
11265
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11266
$as_echo "yes" >&6; }
 
11267
    else
 
11268
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11269
$as_echo "no" >&6; }
 
11270
    fi
 
11271
    ;;
 
11272
  *)
 
11273
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11274
$as_echo "no" >&6; }
 
11275
    ;;
 
11276
  esac
 
11277
fi
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
 
 
11283
 
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
  # Report which library types will actually be built
 
11291
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11292
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11293
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11294
$as_echo "$can_build_shared" >&6; }
 
11295
 
 
11296
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11297
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11298
  test "$can_build_shared" = "no" && enable_shared=no
 
11299
 
 
11300
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11301
  # are all built from PIC.
 
11302
  case $host_os in
 
11303
  aix3*)
 
11304
    test "$enable_shared" = yes && enable_static=no
 
11305
    if test -n "$RANLIB"; then
 
11306
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11307
      postinstall_cmds='$RANLIB $lib'
 
11308
    fi
 
11309
    ;;
 
11310
 
 
11311
  aix[4-9]*)
 
11312
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11313
      test "$enable_shared" = yes && enable_static=no
 
11314
    fi
 
11315
    ;;
 
11316
  esac
 
11317
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11318
$as_echo "$enable_shared" >&6; }
 
11319
 
 
11320
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11321
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11322
  # Make sure either enable_shared or enable_static is yes.
 
11323
  test "$enable_shared" = yes || enable_static=yes
 
11324
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11325
$as_echo "$enable_static" >&6; }
 
11326
 
 
11327
 
 
11328
 
 
11329
 
 
11330
fi
 
11331
ac_ext=c
 
11332
ac_cpp='$CPP $CPPFLAGS'
 
11333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11336
 
 
11337
CC="$lt_save_CC"
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
 
11349
 
 
11350
 
 
11351
        ac_config_commands="$ac_config_commands libtool"
 
11352
 
 
11353
 
 
11354
 
 
11355
 
 
11356
# Only expand once:
 
11357
 
 
11358
 
 
11359
{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
 
11360
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
 
11361
if test "${libltdl_cv_shlibext+set}" = set; then
 
11362
  $as_echo_n "(cached) " >&6
 
11363
else
 
11364
 
 
11365
module=yes
 
11366
eval libltdl_cv_shlibext=$shrext_cmds
 
11367
 
 
11368
fi
 
11369
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
 
11370
$as_echo "$libltdl_cv_shlibext" >&6; }
 
11371
if test -n "$libltdl_cv_shlibext"; then
 
11372
 
 
11373
cat >>confdefs.h <<_ACEOF
 
11374
#define LT_MODULE_EXT "$libltdl_cv_shlibext"
 
11375
_ACEOF
 
11376
 
 
11377
fi
 
11378
 
 
11379
{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
 
11380
$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
 
11381
if test "${lt_cv_module_path_var+set}" = set; then
 
11382
  $as_echo_n "(cached) " >&6
 
11383
else
 
11384
  lt_cv_module_path_var="$shlibpath_var"
 
11385
fi
 
11386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
 
11387
$as_echo "$lt_cv_module_path_var" >&6; }
 
11388
if test -n "$lt_cv_module_path_var"; then
 
11389
 
 
11390
cat >>confdefs.h <<_ACEOF
 
11391
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
 
11392
_ACEOF
 
11393
 
 
11394
fi
 
11395
 
 
11396
{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
 
11397
$as_echo_n "checking for the default library search path... " >&6; }
 
11398
if test "${lt_cv_sys_dlsearch_path+set}" = set; then
 
11399
  $as_echo_n "(cached) " >&6
 
11400
else
 
11401
  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
 
11402
fi
 
11403
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
 
11404
$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
 
11405
if test -n "$lt_cv_sys_dlsearch_path"; then
 
11406
  sys_dlsearch_path=
 
11407
  for dir in $lt_cv_sys_dlsearch_path; do
 
11408
    if test -z "$sys_dlsearch_path"; then
 
11409
      sys_dlsearch_path="$dir"
 
11410
    else
 
11411
      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
 
11412
    fi
 
11413
  done
 
11414
 
 
11415
cat >>confdefs.h <<_ACEOF
 
11416
#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
 
11417
_ACEOF
 
11418
 
 
11419
fi
 
11420
 
 
11421
 
 
11422
LT_DLLOADERS=
 
11423
 
 
11424
 
 
11425
ac_ext=c
 
11426
ac_cpp='$CPP $CPPFLAGS'
 
11427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11430
 
 
11431
 
 
11432
LIBADD_DLOPEN=
 
11433
{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
11434
$as_echo_n "checking for library containing dlopen... " >&6; }
 
11435
if test "${ac_cv_search_dlopen+set}" = set; then
 
11436
  $as_echo_n "(cached) " >&6
 
11437
else
 
11438
  ac_func_search_save_LIBS=$LIBS
 
11439
cat >conftest.$ac_ext <<_ACEOF
 
11440
/* confdefs.h.  */
 
11441
_ACEOF
 
11442
cat confdefs.h >>conftest.$ac_ext
 
11443
cat >>conftest.$ac_ext <<_ACEOF
 
11444
/* end confdefs.h.  */
 
11445
 
 
11446
/* Override any GCC internal prototype to avoid an error.
 
11447
   Use char because int might match the return type of a GCC
 
11448
   builtin and then its argument prototype would still apply.  */
 
11449
#ifdef __cplusplus
 
11450
extern "C"
 
11451
#endif
 
11452
char dlopen ();
 
11453
int
 
11454
main ()
 
11455
{
 
11456
return dlopen ();
 
11457
  ;
 
11458
  return 0;
 
11459
}
 
11460
_ACEOF
 
11461
for ac_lib in '' dl; do
 
11462
  if test -z "$ac_lib"; then
 
11463
    ac_res="none required"
 
11464
  else
 
11465
    ac_res=-l$ac_lib
 
11466
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11467
  fi
 
11468
  rm -f conftest.$ac_objext conftest$ac_exeext
 
11469
if { (ac_try="$ac_link"
 
11470
case "(($ac_try" in
 
11471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11472
  *) ac_try_echo=$ac_try;;
 
11473
esac
 
11474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11475
$as_echo "$ac_try_echo") >&5
 
11476
  (eval "$ac_link") 2>conftest.er1
 
11477
  ac_status=$?
 
11478
  grep -v '^ *+' conftest.er1 >conftest.err
 
11479
  rm -f conftest.er1
 
11480
  cat conftest.err >&5
 
11481
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11482
  (exit $ac_status); } && {
 
11483
         test -z "$ac_c_werror_flag" ||
 
11484
         test ! -s conftest.err
 
11485
       } && test -s conftest$ac_exeext && {
 
11486
         test "$cross_compiling" = yes ||
 
11487
         $as_test_x conftest$ac_exeext
 
11488
       }; then
 
11489
  ac_cv_search_dlopen=$ac_res
 
11490
else
 
11491
  $as_echo "$as_me: failed program was:" >&5
 
11492
sed 's/^/| /' conftest.$ac_ext >&5
 
11493
 
 
11494
 
 
11495
fi
 
11496
 
 
11497
rm -rf conftest.dSYM
 
11498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11499
      conftest$ac_exeext
 
11500
  if test "${ac_cv_search_dlopen+set}" = set; then
 
11501
  break
 
11502
fi
 
11503
done
 
11504
if test "${ac_cv_search_dlopen+set}" = set; then
 
11505
  :
 
11506
else
 
11507
  ac_cv_search_dlopen=no
 
11508
fi
 
11509
rm conftest.$ac_ext
 
11510
LIBS=$ac_func_search_save_LIBS
 
11511
fi
 
11512
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
11513
$as_echo "$ac_cv_search_dlopen" >&6; }
 
11514
ac_res=$ac_cv_search_dlopen
 
11515
if test "$ac_res" != no; then
 
11516
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11517
 
 
11518
cat >>confdefs.h <<\_ACEOF
 
11519
#define HAVE_LIBDL 1
 
11520
_ACEOF
 
11521
 
 
11522
        if test "$ac_cv_search_dlopen" != "none required" ; then
 
11523
          LIBADD_DLOPEN="-ldl"
 
11524
        fi
 
11525
        libltdl_cv_lib_dl_dlopen="yes"
 
11526
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
11527
else
 
11528
  cat >conftest.$ac_ext <<_ACEOF
 
11529
/* confdefs.h.  */
 
11530
_ACEOF
 
11531
cat confdefs.h >>conftest.$ac_ext
 
11532
cat >>conftest.$ac_ext <<_ACEOF
 
11533
/* end confdefs.h.  */
 
11534
#if HAVE_DLFCN_H
 
11535
#  include <dlfcn.h>
 
11536
#endif
 
11537
 
 
11538
int
 
11539
main ()
 
11540
{
 
11541
dlopen(0, 0);
 
11542
  ;
 
11543
  return 0;
 
11544
}
 
11545
_ACEOF
 
11546
rm -f conftest.$ac_objext conftest$ac_exeext
 
11547
if { (ac_try="$ac_link"
 
11548
case "(($ac_try" in
 
11549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11550
  *) ac_try_echo=$ac_try;;
 
11551
esac
 
11552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11553
$as_echo "$ac_try_echo") >&5
 
11554
  (eval "$ac_link") 2>conftest.er1
 
11555
  ac_status=$?
 
11556
  grep -v '^ *+' conftest.er1 >conftest.err
 
11557
  rm -f conftest.er1
 
11558
  cat conftest.err >&5
 
11559
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11560
  (exit $ac_status); } && {
 
11561
         test -z "$ac_c_werror_flag" ||
 
11562
         test ! -s conftest.err
 
11563
       } && test -s conftest$ac_exeext && {
 
11564
         test "$cross_compiling" = yes ||
 
11565
         $as_test_x conftest$ac_exeext
 
11566
       }; then
 
11567
 
 
11568
cat >>confdefs.h <<\_ACEOF
 
11569
#define HAVE_LIBDL 1
 
11570
_ACEOF
 
11571
 
 
11572
            libltdl_cv_func_dlopen="yes"
 
11573
            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
11574
else
 
11575
  $as_echo "$as_me: failed program was:" >&5
 
11576
sed 's/^/| /' conftest.$ac_ext >&5
 
11577
 
 
11578
        { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11579
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11580
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11581
  $as_echo_n "(cached) " >&6
 
11582
else
 
11583
  ac_check_lib_save_LIBS=$LIBS
 
11584
LIBS="-lsvld  $LIBS"
 
11585
cat >conftest.$ac_ext <<_ACEOF
 
11586
/* confdefs.h.  */
 
11587
_ACEOF
 
11588
cat confdefs.h >>conftest.$ac_ext
 
11589
cat >>conftest.$ac_ext <<_ACEOF
 
11590
/* end confdefs.h.  */
 
11591
 
 
11592
/* Override any GCC internal prototype to avoid an error.
 
11593
   Use char because int might match the return type of a GCC
 
11594
   builtin and then its argument prototype would still apply.  */
 
11595
#ifdef __cplusplus
 
11596
extern "C"
 
11597
#endif
 
11598
char dlopen ();
 
11599
int
 
11600
main ()
 
11601
{
 
11602
return dlopen ();
 
11603
  ;
 
11604
  return 0;
 
11605
}
 
11606
_ACEOF
 
11607
rm -f conftest.$ac_objext conftest$ac_exeext
 
11608
if { (ac_try="$ac_link"
 
11609
case "(($ac_try" in
 
11610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11611
  *) ac_try_echo=$ac_try;;
 
11612
esac
 
11613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11614
$as_echo "$ac_try_echo") >&5
 
11615
  (eval "$ac_link") 2>conftest.er1
 
11616
  ac_status=$?
 
11617
  grep -v '^ *+' conftest.er1 >conftest.err
 
11618
  rm -f conftest.er1
 
11619
  cat conftest.err >&5
 
11620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11621
  (exit $ac_status); } && {
 
11622
         test -z "$ac_c_werror_flag" ||
 
11623
         test ! -s conftest.err
 
11624
       } && test -s conftest$ac_exeext && {
 
11625
         test "$cross_compiling" = yes ||
 
11626
         $as_test_x conftest$ac_exeext
 
11627
       }; then
 
11628
  ac_cv_lib_svld_dlopen=yes
 
11629
else
 
11630
  $as_echo "$as_me: failed program was:" >&5
 
11631
sed 's/^/| /' conftest.$ac_ext >&5
 
11632
 
 
11633
        ac_cv_lib_svld_dlopen=no
 
11634
fi
 
11635
 
 
11636
rm -rf conftest.dSYM
 
11637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11638
      conftest$ac_exeext conftest.$ac_ext
 
11639
LIBS=$ac_check_lib_save_LIBS
 
11640
fi
 
11641
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11642
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11643
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
11644
 
 
11645
cat >>confdefs.h <<\_ACEOF
 
11646
#define HAVE_LIBDL 1
 
11647
_ACEOF
 
11648
 
 
11649
                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
 
11650
                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
11651
fi
 
11652
 
 
11653
fi
 
11654
 
 
11655
rm -rf conftest.dSYM
 
11656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11657
      conftest$ac_exeext conftest.$ac_ext
 
11658
fi
 
11659
 
 
11660
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
 
11661
then
 
11662
  lt_save_LIBS="$LIBS"
 
11663
  LIBS="$LIBS $LIBADD_DLOPEN"
 
11664
 
 
11665
for ac_func in dlerror
 
11666
do
 
11667
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11668
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11669
$as_echo_n "checking for $ac_func... " >&6; }
 
11670
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11671
  $as_echo_n "(cached) " >&6
 
11672
else
 
11673
  cat >conftest.$ac_ext <<_ACEOF
 
11674
/* confdefs.h.  */
 
11675
_ACEOF
 
11676
cat confdefs.h >>conftest.$ac_ext
 
11677
cat >>conftest.$ac_ext <<_ACEOF
 
11678
/* end confdefs.h.  */
 
11679
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11680
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11681
#define $ac_func innocuous_$ac_func
 
11682
 
 
11683
/* System header to define __stub macros and hopefully few prototypes,
 
11684
    which can conflict with char $ac_func (); below.
 
11685
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11686
    <limits.h> exists even on freestanding compilers.  */
 
11687
 
 
11688
#ifdef __STDC__
 
11689
# include <limits.h>
 
11690
#else
 
11691
# include <assert.h>
 
11692
#endif
 
11693
 
 
11694
#undef $ac_func
 
11695
 
 
11696
/* Override any GCC internal prototype to avoid an error.
 
11697
   Use char because int might match the return type of a GCC
 
11698
   builtin and then its argument prototype would still apply.  */
 
11699
#ifdef __cplusplus
 
11700
extern "C"
 
11701
#endif
 
11702
char $ac_func ();
 
11703
/* The GNU C library defines this for functions which it implements
 
11704
    to always fail with ENOSYS.  Some functions are actually named
 
11705
    something starting with __ and the normal name is an alias.  */
 
11706
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11707
choke me
 
11708
#endif
 
11709
 
 
11710
int
 
11711
main ()
 
11712
{
 
11713
return $ac_func ();
 
11714
  ;
 
11715
  return 0;
 
11716
}
 
11717
_ACEOF
 
11718
rm -f conftest.$ac_objext conftest$ac_exeext
 
11719
if { (ac_try="$ac_link"
 
11720
case "(($ac_try" in
 
11721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11722
  *) ac_try_echo=$ac_try;;
 
11723
esac
 
11724
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11725
$as_echo "$ac_try_echo") >&5
 
11726
  (eval "$ac_link") 2>conftest.er1
 
11727
  ac_status=$?
 
11728
  grep -v '^ *+' conftest.er1 >conftest.err
 
11729
  rm -f conftest.er1
 
11730
  cat conftest.err >&5
 
11731
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11732
  (exit $ac_status); } && {
 
11733
         test -z "$ac_c_werror_flag" ||
 
11734
         test ! -s conftest.err
 
11735
       } && test -s conftest$ac_exeext && {
 
11736
         test "$cross_compiling" = yes ||
 
11737
         $as_test_x conftest$ac_exeext
 
11738
       }; then
 
11739
  eval "$as_ac_var=yes"
 
11740
else
 
11741
  $as_echo "$as_me: failed program was:" >&5
 
11742
sed 's/^/| /' conftest.$ac_ext >&5
 
11743
 
 
11744
        eval "$as_ac_var=no"
 
11745
fi
 
11746
 
 
11747
rm -rf conftest.dSYM
 
11748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11749
      conftest$ac_exeext conftest.$ac_ext
 
11750
fi
 
11751
ac_res=`eval 'as_val=${'$as_ac_var'}
 
11752
                 $as_echo "$as_val"'`
 
11753
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
11754
$as_echo "$ac_res" >&6; }
 
11755
as_val=`eval 'as_val=${'$as_ac_var'}
 
11756
                 $as_echo "$as_val"'`
 
11757
   if test "x$as_val" = x""yes; then
 
11758
  cat >>confdefs.h <<_ACEOF
 
11759
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11760
_ACEOF
 
11761
 
 
11762
fi
 
11763
done
 
11764
 
 
11765
  LIBS="$lt_save_LIBS"
 
11766
fi
 
11767
 
 
11768
 
 
11769
LIBADD_SHL_LOAD=
 
11770
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
11771
$as_echo_n "checking for shl_load... " >&6; }
 
11772
if test "${ac_cv_func_shl_load+set}" = set; then
 
11773
  $as_echo_n "(cached) " >&6
 
11774
else
 
11775
  cat >conftest.$ac_ext <<_ACEOF
 
11776
/* confdefs.h.  */
 
11777
_ACEOF
 
11778
cat confdefs.h >>conftest.$ac_ext
 
11779
cat >>conftest.$ac_ext <<_ACEOF
 
11780
/* end confdefs.h.  */
 
11781
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11782
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11783
#define shl_load innocuous_shl_load
 
11784
 
 
11785
/* System header to define __stub macros and hopefully few prototypes,
 
11786
    which can conflict with char shl_load (); below.
 
11787
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11788
    <limits.h> exists even on freestanding compilers.  */
 
11789
 
 
11790
#ifdef __STDC__
 
11791
# include <limits.h>
 
11792
#else
 
11793
# include <assert.h>
 
11794
#endif
 
11795
 
 
11796
#undef shl_load
 
11797
 
 
11798
/* Override any GCC internal prototype to avoid an error.
 
11799
   Use char because int might match the return type of a GCC
 
11800
   builtin and then its argument prototype would still apply.  */
 
11801
#ifdef __cplusplus
 
11802
extern "C"
 
11803
#endif
 
11804
char shl_load ();
 
11805
/* The GNU C library defines this for functions which it implements
 
11806
    to always fail with ENOSYS.  Some functions are actually named
 
11807
    something starting with __ and the normal name is an alias.  */
 
11808
#if defined __stub_shl_load || defined __stub___shl_load
 
11809
choke me
 
11810
#endif
 
11811
 
 
11812
int
 
11813
main ()
 
11814
{
 
11815
return shl_load ();
 
11816
  ;
 
11817
  return 0;
 
11818
}
 
11819
_ACEOF
 
11820
rm -f conftest.$ac_objext conftest$ac_exeext
 
11821
if { (ac_try="$ac_link"
 
11822
case "(($ac_try" in
 
11823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11824
  *) ac_try_echo=$ac_try;;
 
11825
esac
 
11826
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11827
$as_echo "$ac_try_echo") >&5
 
11828
  (eval "$ac_link") 2>conftest.er1
 
11829
  ac_status=$?
 
11830
  grep -v '^ *+' conftest.er1 >conftest.err
 
11831
  rm -f conftest.er1
 
11832
  cat conftest.err >&5
 
11833
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11834
  (exit $ac_status); } && {
 
11835
         test -z "$ac_c_werror_flag" ||
 
11836
         test ! -s conftest.err
 
11837
       } && test -s conftest$ac_exeext && {
 
11838
         test "$cross_compiling" = yes ||
 
11839
         $as_test_x conftest$ac_exeext
 
11840
       }; then
 
11841
  ac_cv_func_shl_load=yes
 
11842
else
 
11843
  $as_echo "$as_me: failed program was:" >&5
 
11844
sed 's/^/| /' conftest.$ac_ext >&5
 
11845
 
 
11846
        ac_cv_func_shl_load=no
 
11847
fi
 
11848
 
 
11849
rm -rf conftest.dSYM
 
11850
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11851
      conftest$ac_exeext conftest.$ac_ext
 
11852
fi
 
11853
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11854
$as_echo "$ac_cv_func_shl_load" >&6; }
 
11855
if test "x$ac_cv_func_shl_load" = x""yes; then
 
11856
 
 
11857
cat >>confdefs.h <<\_ACEOF
 
11858
#define HAVE_SHL_LOAD 1
 
11859
_ACEOF
 
11860
 
 
11861
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
 
11862
else
 
11863
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11864
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11865
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11866
  $as_echo_n "(cached) " >&6
 
11867
else
 
11868
  ac_check_lib_save_LIBS=$LIBS
 
11869
LIBS="-ldld  $LIBS"
 
11870
cat >conftest.$ac_ext <<_ACEOF
 
11871
/* confdefs.h.  */
 
11872
_ACEOF
 
11873
cat confdefs.h >>conftest.$ac_ext
 
11874
cat >>conftest.$ac_ext <<_ACEOF
 
11875
/* end confdefs.h.  */
 
11876
 
 
11877
/* Override any GCC internal prototype to avoid an error.
 
11878
   Use char because int might match the return type of a GCC
 
11879
   builtin and then its argument prototype would still apply.  */
 
11880
#ifdef __cplusplus
 
11881
extern "C"
 
11882
#endif
 
11883
char shl_load ();
 
11884
int
 
11885
main ()
 
11886
{
 
11887
return shl_load ();
 
11888
  ;
 
11889
  return 0;
 
11890
}
 
11891
_ACEOF
 
11892
rm -f conftest.$ac_objext conftest$ac_exeext
 
11893
if { (ac_try="$ac_link"
 
11894
case "(($ac_try" in
 
11895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11896
  *) ac_try_echo=$ac_try;;
 
11897
esac
 
11898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11899
$as_echo "$ac_try_echo") >&5
 
11900
  (eval "$ac_link") 2>conftest.er1
 
11901
  ac_status=$?
 
11902
  grep -v '^ *+' conftest.er1 >conftest.err
 
11903
  rm -f conftest.er1
 
11904
  cat conftest.err >&5
 
11905
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11906
  (exit $ac_status); } && {
 
11907
         test -z "$ac_c_werror_flag" ||
 
11908
         test ! -s conftest.err
 
11909
       } && test -s conftest$ac_exeext && {
 
11910
         test "$cross_compiling" = yes ||
 
11911
         $as_test_x conftest$ac_exeext
 
11912
       }; then
 
11913
  ac_cv_lib_dld_shl_load=yes
 
11914
else
 
11915
  $as_echo "$as_me: failed program was:" >&5
 
11916
sed 's/^/| /' conftest.$ac_ext >&5
 
11917
 
 
11918
        ac_cv_lib_dld_shl_load=no
 
11919
fi
 
11920
 
 
11921
rm -rf conftest.dSYM
 
11922
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11923
      conftest$ac_exeext conftest.$ac_ext
 
11924
LIBS=$ac_check_lib_save_LIBS
 
11925
fi
 
11926
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11927
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11928
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
11929
 
 
11930
cat >>confdefs.h <<\_ACEOF
 
11931
#define HAVE_SHL_LOAD 1
 
11932
_ACEOF
 
11933
 
 
11934
            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
 
11935
            LIBADD_SHL_LOAD="-ldld"
 
11936
fi
 
11937
 
 
11938
fi
 
11939
 
 
11940
 
 
11941
 
 
11942
case $host_os in
 
11943
darwin[1567].*)
 
11944
# We only want this for pre-Mac OS X 10.4.
 
11945
  { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
 
11946
$as_echo_n "checking for _dyld_func_lookup... " >&6; }
 
11947
if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
 
11948
  $as_echo_n "(cached) " >&6
 
11949
else
 
11950
  cat >conftest.$ac_ext <<_ACEOF
 
11951
/* confdefs.h.  */
 
11952
_ACEOF
 
11953
cat confdefs.h >>conftest.$ac_ext
 
11954
cat >>conftest.$ac_ext <<_ACEOF
 
11955
/* end confdefs.h.  */
 
11956
/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
 
11957
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11958
#define _dyld_func_lookup innocuous__dyld_func_lookup
 
11959
 
 
11960
/* System header to define __stub macros and hopefully few prototypes,
 
11961
    which can conflict with char _dyld_func_lookup (); below.
 
11962
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11963
    <limits.h> exists even on freestanding compilers.  */
 
11964
 
 
11965
#ifdef __STDC__
 
11966
# include <limits.h>
 
11967
#else
 
11968
# include <assert.h>
 
11969
#endif
 
11970
 
 
11971
#undef _dyld_func_lookup
 
11972
 
 
11973
/* Override any GCC internal prototype to avoid an error.
 
11974
   Use char because int might match the return type of a GCC
 
11975
   builtin and then its argument prototype would still apply.  */
 
11976
#ifdef __cplusplus
 
11977
extern "C"
 
11978
#endif
 
11979
char _dyld_func_lookup ();
 
11980
/* The GNU C library defines this for functions which it implements
 
11981
    to always fail with ENOSYS.  Some functions are actually named
 
11982
    something starting with __ and the normal name is an alias.  */
 
11983
#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
 
11984
choke me
 
11985
#endif
 
11986
 
 
11987
int
 
11988
main ()
 
11989
{
 
11990
return _dyld_func_lookup ();
 
11991
  ;
 
11992
  return 0;
 
11993
}
 
11994
_ACEOF
 
11995
rm -f conftest.$ac_objext conftest$ac_exeext
 
11996
if { (ac_try="$ac_link"
 
11997
case "(($ac_try" in
 
11998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11999
  *) ac_try_echo=$ac_try;;
 
12000
esac
 
12001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12002
$as_echo "$ac_try_echo") >&5
 
12003
  (eval "$ac_link") 2>conftest.er1
 
12004
  ac_status=$?
 
12005
  grep -v '^ *+' conftest.er1 >conftest.err
 
12006
  rm -f conftest.er1
 
12007
  cat conftest.err >&5
 
12008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12009
  (exit $ac_status); } && {
 
12010
         test -z "$ac_c_werror_flag" ||
 
12011
         test ! -s conftest.err
 
12012
       } && test -s conftest$ac_exeext && {
 
12013
         test "$cross_compiling" = yes ||
 
12014
         $as_test_x conftest$ac_exeext
 
12015
       }; then
 
12016
  ac_cv_func__dyld_func_lookup=yes
 
12017
else
 
12018
  $as_echo "$as_me: failed program was:" >&5
 
12019
sed 's/^/| /' conftest.$ac_ext >&5
 
12020
 
 
12021
        ac_cv_func__dyld_func_lookup=no
 
12022
fi
 
12023
 
 
12024
rm -rf conftest.dSYM
 
12025
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12026
      conftest$ac_exeext conftest.$ac_ext
 
12027
fi
 
12028
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
 
12029
$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
 
12030
if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
 
12031
 
 
12032
cat >>confdefs.h <<\_ACEOF
 
12033
#define HAVE_DYLD 1
 
12034
_ACEOF
 
12035
 
 
12036
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
 
12037
fi
 
12038
 
 
12039
  ;;
 
12040
beos*)
 
12041
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
 
12042
  ;;
 
12043
cygwin* | mingw* | os2* | pw32*)
 
12044
  { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
 
12045
$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
 
12046
if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
 
12047
  $as_echo_n "(cached) " >&6
 
12048
else
 
12049
  cat >conftest.$ac_ext <<_ACEOF
 
12050
/* confdefs.h.  */
 
12051
_ACEOF
 
12052
cat confdefs.h >>conftest.$ac_ext
 
12053
cat >>conftest.$ac_ext <<_ACEOF
 
12054
/* end confdefs.h.  */
 
12055
#include <sys/cygwin.h>
 
12056
 
 
12057
int
 
12058
main ()
 
12059
{
 
12060
#ifndef cygwin_conv_path
 
12061
  (void) cygwin_conv_path;
 
12062
#endif
 
12063
 
 
12064
  ;
 
12065
  return 0;
 
12066
}
 
12067
_ACEOF
 
12068
rm -f conftest.$ac_objext
 
12069
if { (ac_try="$ac_compile"
 
12070
case "(($ac_try" in
 
12071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12072
  *) ac_try_echo=$ac_try;;
 
12073
esac
 
12074
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12075
$as_echo "$ac_try_echo") >&5
 
12076
  (eval "$ac_compile") 2>conftest.er1
 
12077
  ac_status=$?
 
12078
  grep -v '^ *+' conftest.er1 >conftest.err
 
12079
  rm -f conftest.er1
 
12080
  cat conftest.err >&5
 
12081
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12082
  (exit $ac_status); } && {
 
12083
         test -z "$ac_c_werror_flag" ||
 
12084
         test ! -s conftest.err
 
12085
       } && test -s conftest.$ac_objext; then
 
12086
  ac_cv_have_decl_cygwin_conv_path=yes
 
12087
else
 
12088
  $as_echo "$as_me: failed program was:" >&5
 
12089
sed 's/^/| /' conftest.$ac_ext >&5
 
12090
 
 
12091
        ac_cv_have_decl_cygwin_conv_path=no
 
12092
fi
 
12093
 
 
12094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12095
fi
 
12096
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
 
12097
$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
 
12098
if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
 
12099
 
 
12100
cat >>confdefs.h <<_ACEOF
 
12101
#define HAVE_DECL_CYGWIN_CONV_PATH 1
 
12102
_ACEOF
 
12103
 
 
12104
 
 
12105
else
 
12106
  cat >>confdefs.h <<_ACEOF
 
12107
#define HAVE_DECL_CYGWIN_CONV_PATH 0
 
12108
_ACEOF
 
12109
 
 
12110
 
 
12111
fi
 
12112
 
 
12113
 
 
12114
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
 
12115
  ;;
 
12116
esac
 
12117
 
 
12118
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12119
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12120
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12121
  $as_echo_n "(cached) " >&6
 
12122
else
 
12123
  ac_check_lib_save_LIBS=$LIBS
 
12124
LIBS="-ldld  $LIBS"
 
12125
cat >conftest.$ac_ext <<_ACEOF
 
12126
/* confdefs.h.  */
 
12127
_ACEOF
 
12128
cat confdefs.h >>conftest.$ac_ext
 
12129
cat >>conftest.$ac_ext <<_ACEOF
 
12130
/* end confdefs.h.  */
 
12131
 
 
12132
/* Override any GCC internal prototype to avoid an error.
 
12133
   Use char because int might match the return type of a GCC
 
12134
   builtin and then its argument prototype would still apply.  */
 
12135
#ifdef __cplusplus
 
12136
extern "C"
 
12137
#endif
 
12138
char dld_link ();
 
12139
int
 
12140
main ()
 
12141
{
 
12142
return dld_link ();
 
12143
  ;
 
12144
  return 0;
 
12145
}
 
12146
_ACEOF
 
12147
rm -f conftest.$ac_objext conftest$ac_exeext
 
12148
if { (ac_try="$ac_link"
 
12149
case "(($ac_try" in
 
12150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12151
  *) ac_try_echo=$ac_try;;
 
12152
esac
 
12153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12154
$as_echo "$ac_try_echo") >&5
 
12155
  (eval "$ac_link") 2>conftest.er1
 
12156
  ac_status=$?
 
12157
  grep -v '^ *+' conftest.er1 >conftest.err
 
12158
  rm -f conftest.er1
 
12159
  cat conftest.err >&5
 
12160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12161
  (exit $ac_status); } && {
 
12162
         test -z "$ac_c_werror_flag" ||
 
12163
         test ! -s conftest.err
 
12164
       } && test -s conftest$ac_exeext && {
 
12165
         test "$cross_compiling" = yes ||
 
12166
         $as_test_x conftest$ac_exeext
 
12167
       }; then
 
12168
  ac_cv_lib_dld_dld_link=yes
 
12169
else
 
12170
  $as_echo "$as_me: failed program was:" >&5
 
12171
sed 's/^/| /' conftest.$ac_ext >&5
 
12172
 
 
12173
        ac_cv_lib_dld_dld_link=no
 
12174
fi
 
12175
 
 
12176
rm -rf conftest.dSYM
 
12177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12178
      conftest$ac_exeext conftest.$ac_ext
 
12179
LIBS=$ac_check_lib_save_LIBS
 
12180
fi
 
12181
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12182
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12183
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
12184
 
 
12185
cat >>confdefs.h <<\_ACEOF
 
12186
#define HAVE_DLD 1
 
12187
_ACEOF
 
12188
 
 
12189
                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
 
12190
fi
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
LT_DLPREOPEN=
 
12196
if test -n "$LT_DLLOADERS"
 
12197
then
 
12198
  for lt_loader in $LT_DLLOADERS; do
 
12199
    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
 
12200
  done
 
12201
 
 
12202
cat >>confdefs.h <<\_ACEOF
 
12203
#define HAVE_LIBDLLOADER 1
 
12204
_ACEOF
 
12205
 
 
12206
fi
 
12207
 
 
12208
 
 
12209
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
 
12210
 
 
12211
 
 
12212
ac_ext=c
 
12213
ac_cpp='$CPP $CPPFLAGS'
 
12214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12217
 
 
12218
 
 
12219
{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
 
12220
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
 
12221
if test "${lt_cv_sys_symbol_underscore+set}" = set; then
 
12222
  $as_echo_n "(cached) " >&6
 
12223
else
 
12224
  lt_cv_sys_symbol_underscore=no
 
12225
  cat > conftest.$ac_ext <<_LT_EOF
 
12226
void nm_test_func(){}
 
12227
int main(){nm_test_func;return 0;}
 
12228
_LT_EOF
 
12229
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12230
  (eval $ac_compile) 2>&5
 
12231
  ac_status=$?
 
12232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12233
  (exit $ac_status); }; then
 
12234
    # Now try to grab the symbols.
 
12235
    ac_nlist=conftest.nm
 
12236
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
 
12237
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
 
12238
  ac_status=$?
 
12239
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12240
  (exit $ac_status); } && test -s "$ac_nlist"; then
 
12241
      # See whether the symbols have a leading underscore.
 
12242
      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
 
12243
        lt_cv_sys_symbol_underscore=yes
 
12244
      else
 
12245
        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
 
12246
          :
 
12247
        else
 
12248
          echo "configure: cannot find nm_test_func in $ac_nlist" >&5
 
12249
        fi
 
12250
      fi
 
12251
    else
 
12252
      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
12253
    fi
 
12254
  else
 
12255
    echo "configure: failed program was:" >&5
 
12256
    cat conftest.c >&5
 
12257
  fi
 
12258
  rm -rf conftest*
 
12259
 
 
12260
fi
 
12261
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
 
12262
$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
 
12263
  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
 
12264
 
 
12265
 
 
12266
if test x"$lt_cv_sys_symbol_underscore" = xyes; then
 
12267
  if test x"$libltdl_cv_func_dlopen" = xyes ||
 
12268
     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
 
12269
        { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
 
12270
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
 
12271
if test "${libltdl_cv_need_uscore+set}" = set; then
 
12272
  $as_echo_n "(cached) " >&6
 
12273
else
 
12274
  libltdl_cv_need_uscore=unknown
 
12275
          save_LIBS="$LIBS"
 
12276
          LIBS="$LIBS $LIBADD_DLOPEN"
 
12277
          if test "$cross_compiling" = yes; then :
 
12278
  libltdl_cv_need_uscore=cross
 
12279
else
 
12280
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12281
  lt_status=$lt_dlunknown
 
12282
  cat > conftest.$ac_ext <<_LT_EOF
 
12283
#line 12283 "configure"
 
12284
#include "confdefs.h"
 
12285
 
 
12286
#if HAVE_DLFCN_H
 
12287
#include <dlfcn.h>
 
12288
#endif
 
12289
 
 
12290
#include <stdio.h>
 
12291
 
 
12292
#ifdef RTLD_GLOBAL
 
12293
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12294
#else
 
12295
#  ifdef DL_GLOBAL
 
12296
#    define LT_DLGLOBAL         DL_GLOBAL
 
12297
#  else
 
12298
#    define LT_DLGLOBAL         0
 
12299
#  endif
 
12300
#endif
 
12301
 
 
12302
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12303
   find out it does not work in some platform. */
 
12304
#ifndef LT_DLLAZY_OR_NOW
 
12305
#  ifdef RTLD_LAZY
 
12306
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12307
#  else
 
12308
#    ifdef DL_LAZY
 
12309
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12310
#    else
 
12311
#      ifdef RTLD_NOW
 
12312
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12313
#      else
 
12314
#        ifdef DL_NOW
 
12315
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12316
#        else
 
12317
#          define LT_DLLAZY_OR_NOW      0
 
12318
#        endif
 
12319
#      endif
 
12320
#    endif
 
12321
#  endif
 
12322
#endif
 
12323
 
 
12324
void fnord() { int i=42;}
 
12325
int main ()
 
12326
{
 
12327
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12328
  int status = $lt_dlunknown;
 
12329
 
 
12330
  if (self)
 
12331
    {
 
12332
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12333
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12334
      /* dlclose (self); */
 
12335
    }
 
12336
  else
 
12337
    puts (dlerror ());
 
12338
 
 
12339
  return status;
 
12340
}
 
12341
_LT_EOF
 
12342
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12343
  (eval $ac_link) 2>&5
 
12344
  ac_status=$?
 
12345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12346
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12347
    (./conftest; exit; ) >&5 2>/dev/null
 
12348
    lt_status=$?
 
12349
    case x$lt_status in
 
12350
      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
 
12351
      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
 
12352
      x$lt_dlunknown|x*)  ;;
 
12353
    esac
 
12354
  else :
 
12355
    # compilation failed
 
12356
 
 
12357
  fi
 
12358
fi
 
12359
rm -fr conftest*
 
12360
 
 
12361
          LIBS="$save_LIBS"
 
12362
 
 
12363
fi
 
12364
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
 
12365
$as_echo "$libltdl_cv_need_uscore" >&6; }
 
12366
  fi
 
12367
fi
 
12368
 
 
12369
if test x"$libltdl_cv_need_uscore" = xyes; then
 
12370
 
 
12371
cat >>confdefs.h <<\_ACEOF
 
12372
#define NEED_USCORE 1
 
12373
_ACEOF
 
12374
 
 
12375
fi
 
12376
 
 
12377
{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
 
12378
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
 
12379
if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
 
12380
  $as_echo_n "(cached) " >&6
 
12381
else
 
12382
  # PORTME does your system automatically load deplibs for dlopen?
 
12383
  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
 
12384
  # For now, we just catch OSes we know something about -- in the
 
12385
  # future, we'll try test this programmatically.
 
12386
  lt_cv_sys_dlopen_deplibs=unknown
 
12387
  case $host_os in
 
12388
  aix3*|aix4.1.*|aix4.2.*)
 
12389
    # Unknown whether this is true for these versions of AIX, but
 
12390
    # we want this `case' here to explicitly catch those versions.
 
12391
    lt_cv_sys_dlopen_deplibs=unknown
 
12392
    ;;
 
12393
  aix[4-9]*)
 
12394
    lt_cv_sys_dlopen_deplibs=yes
 
12395
    ;;
 
12396
  amigaos*)
 
12397
    case $host_cpu in
 
12398
    powerpc)
 
12399
      lt_cv_sys_dlopen_deplibs=no
 
12400
      ;;
 
12401
    esac
 
12402
    ;;
 
12403
  darwin*)
 
12404
    # Assuming the user has installed a libdl from somewhere, this is true
 
12405
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
 
12406
    lt_cv_sys_dlopen_deplibs=yes
 
12407
    ;;
 
12408
  freebsd* | dragonfly*)
 
12409
    lt_cv_sys_dlopen_deplibs=yes
 
12410
    ;;
 
12411
  gnu* | linux* | k*bsd*-gnu)
 
12412
    # GNU and its variants, using gnu ld.so (Glibc)
 
12413
    lt_cv_sys_dlopen_deplibs=yes
 
12414
    ;;
 
12415
  hpux10*|hpux11*)
 
12416
    lt_cv_sys_dlopen_deplibs=yes
 
12417
    ;;
 
12418
  interix*)
 
12419
    lt_cv_sys_dlopen_deplibs=yes
 
12420
    ;;
 
12421
  irix[12345]*|irix6.[01]*)
 
12422
    # Catch all versions of IRIX before 6.2, and indicate that we don't
 
12423
    # know how it worked for any of those versions.
 
12424
    lt_cv_sys_dlopen_deplibs=unknown
 
12425
    ;;
 
12426
  irix*)
 
12427
    # The case above catches anything before 6.2, and it's known that
 
12428
    # at 6.2 and later dlopen does load deplibs.
 
12429
    lt_cv_sys_dlopen_deplibs=yes
 
12430
    ;;
 
12431
  netbsd* | netbsdelf*-gnu)
 
12432
    lt_cv_sys_dlopen_deplibs=yes
 
12433
    ;;
 
12434
  openbsd*)
 
12435
    lt_cv_sys_dlopen_deplibs=yes
 
12436
    ;;
 
12437
  osf[1234]*)
 
12438
    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
 
12439
    # it did *not* use an RPATH in a shared library to find objects the
 
12440
    # library depends on, so we explicitly say `no'.
 
12441
    lt_cv_sys_dlopen_deplibs=no
 
12442
    ;;
 
12443
  osf5.0|osf5.0a|osf5.1)
 
12444
    # dlopen *does* load deplibs and with the right loader patch applied
 
12445
    # it even uses RPATH in a shared library to search for shared objects
 
12446
    # that the library depends on, but there's no easy way to know if that
 
12447
    # patch is installed.  Since this is the case, all we can really
 
12448
    # say is unknown -- it depends on the patch being installed.  If
 
12449
    # it is, this changes to `yes'.  Without it, it would be `no'.
 
12450
    lt_cv_sys_dlopen_deplibs=unknown
 
12451
    ;;
 
12452
  osf*)
 
12453
    # the two cases above should catch all versions of osf <= 5.1.  Read
 
12454
    # the comments above for what we know about them.
 
12455
    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
 
12456
    # is used to find them so we can finally say `yes'.
 
12457
    lt_cv_sys_dlopen_deplibs=yes
 
12458
    ;;
 
12459
  qnx*)
 
12460
    lt_cv_sys_dlopen_deplibs=yes
 
12461
    ;;
 
12462
  solaris*)
 
12463
    lt_cv_sys_dlopen_deplibs=yes
 
12464
    ;;
 
12465
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12466
    libltdl_cv_sys_dlopen_deplibs=yes
 
12467
    ;;
 
12468
  esac
 
12469
 
 
12470
fi
 
12471
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
 
12472
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
 
12473
if test "$lt_cv_sys_dlopen_deplibs" != yes; then
 
12474
 
 
12475
cat >>confdefs.h <<\_ACEOF
 
12476
#define LTDL_DLOPEN_DEPLIBS 1
 
12477
_ACEOF
 
12478
 
 
12479
fi
 
12480
 
 
12481
:
 
12482
 
 
12483
 
 
12484
for ac_header in argz.h
 
12485
do
 
12486
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12487
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12488
$as_echo_n "checking for $ac_header... " >&6; }
 
12489
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12490
  $as_echo_n "(cached) " >&6
 
12491
else
 
12492
  cat >conftest.$ac_ext <<_ACEOF
 
12493
/* confdefs.h.  */
 
12494
_ACEOF
 
12495
cat confdefs.h >>conftest.$ac_ext
 
12496
cat >>conftest.$ac_ext <<_ACEOF
 
12497
/* end confdefs.h.  */
 
12498
$ac_includes_default
 
12499
 
 
12500
#include <$ac_header>
 
12501
_ACEOF
 
12502
rm -f conftest.$ac_objext
 
12503
if { (ac_try="$ac_compile"
 
12504
case "(($ac_try" in
 
12505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12506
  *) ac_try_echo=$ac_try;;
 
12507
esac
 
12508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12509
$as_echo "$ac_try_echo") >&5
 
12510
  (eval "$ac_compile") 2>conftest.er1
 
12511
  ac_status=$?
 
12512
  grep -v '^ *+' conftest.er1 >conftest.err
 
12513
  rm -f conftest.er1
 
12514
  cat conftest.err >&5
 
12515
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12516
  (exit $ac_status); } && {
 
12517
         test -z "$ac_c_werror_flag" ||
 
12518
         test ! -s conftest.err
 
12519
       } && test -s conftest.$ac_objext; then
 
12520
  eval "$as_ac_Header=yes"
 
12521
else
 
12522
  $as_echo "$as_me: failed program was:" >&5
 
12523
sed 's/^/| /' conftest.$ac_ext >&5
 
12524
 
 
12525
        eval "$as_ac_Header=no"
 
12526
fi
 
12527
 
 
12528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12529
fi
 
12530
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12531
                 $as_echo "$as_val"'`
 
12532
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12533
$as_echo "$ac_res" >&6; }
 
12534
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12535
                 $as_echo "$as_val"'`
 
12536
   if test "x$as_val" = x""yes; then
 
12537
  cat >>confdefs.h <<_ACEOF
 
12538
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12539
_ACEOF
 
12540
 
 
12541
fi
 
12542
 
 
12543
done
 
12544
 
 
12545
 
 
12546
{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
 
12547
$as_echo_n "checking for error_t... " >&6; }
 
12548
if test "${ac_cv_type_error_t+set}" = set; then
 
12549
  $as_echo_n "(cached) " >&6
 
12550
else
 
12551
  ac_cv_type_error_t=no
 
12552
cat >conftest.$ac_ext <<_ACEOF
 
12553
/* confdefs.h.  */
 
12554
_ACEOF
 
12555
cat confdefs.h >>conftest.$ac_ext
 
12556
cat >>conftest.$ac_ext <<_ACEOF
 
12557
/* end confdefs.h.  */
 
12558
#if defined(HAVE_ARGZ_H)
 
12559
#  include <argz.h>
 
12560
#endif
 
12561
 
 
12562
int
 
12563
main ()
 
12564
{
 
12565
if (sizeof (error_t))
 
12566
       return 0;
 
12567
  ;
 
12568
  return 0;
 
12569
}
 
12570
_ACEOF
 
12571
rm -f conftest.$ac_objext
 
12572
if { (ac_try="$ac_compile"
 
12573
case "(($ac_try" in
 
12574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12575
  *) ac_try_echo=$ac_try;;
 
12576
esac
 
12577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12578
$as_echo "$ac_try_echo") >&5
 
12579
  (eval "$ac_compile") 2>conftest.er1
 
12580
  ac_status=$?
 
12581
  grep -v '^ *+' conftest.er1 >conftest.err
 
12582
  rm -f conftest.er1
 
12583
  cat conftest.err >&5
 
12584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12585
  (exit $ac_status); } && {
 
12586
         test -z "$ac_c_werror_flag" ||
 
12587
         test ! -s conftest.err
 
12588
       } && test -s conftest.$ac_objext; then
 
12589
  cat >conftest.$ac_ext <<_ACEOF
 
12590
/* confdefs.h.  */
 
12591
_ACEOF
 
12592
cat confdefs.h >>conftest.$ac_ext
 
12593
cat >>conftest.$ac_ext <<_ACEOF
 
12594
/* end confdefs.h.  */
 
12595
#if defined(HAVE_ARGZ_H)
 
12596
#  include <argz.h>
 
12597
#endif
 
12598
 
 
12599
int
 
12600
main ()
 
12601
{
 
12602
if (sizeof ((error_t)))
 
12603
          return 0;
 
12604
  ;
 
12605
  return 0;
 
12606
}
 
12607
_ACEOF
 
12608
rm -f conftest.$ac_objext
 
12609
if { (ac_try="$ac_compile"
 
12610
case "(($ac_try" in
 
12611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12612
  *) ac_try_echo=$ac_try;;
 
12613
esac
 
12614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12615
$as_echo "$ac_try_echo") >&5
 
12616
  (eval "$ac_compile") 2>conftest.er1
 
12617
  ac_status=$?
 
12618
  grep -v '^ *+' conftest.er1 >conftest.err
 
12619
  rm -f conftest.er1
 
12620
  cat conftest.err >&5
 
12621
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12622
  (exit $ac_status); } && {
 
12623
         test -z "$ac_c_werror_flag" ||
 
12624
         test ! -s conftest.err
 
12625
       } && test -s conftest.$ac_objext; then
 
12626
  :
 
12627
else
 
12628
  $as_echo "$as_me: failed program was:" >&5
 
12629
sed 's/^/| /' conftest.$ac_ext >&5
 
12630
 
 
12631
        ac_cv_type_error_t=yes
 
12632
fi
 
12633
 
 
12634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12635
else
 
12636
  $as_echo "$as_me: failed program was:" >&5
 
12637
sed 's/^/| /' conftest.$ac_ext >&5
 
12638
 
 
12639
 
 
12640
fi
 
12641
 
 
12642
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12643
fi
 
12644
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
 
12645
$as_echo "$ac_cv_type_error_t" >&6; }
 
12646
if test "x$ac_cv_type_error_t" = x""yes; then
 
12647
 
 
12648
cat >>confdefs.h <<_ACEOF
 
12649
#define HAVE_ERROR_T 1
 
12650
_ACEOF
 
12651
 
 
12652
 
 
12653
else
 
12654
 
 
12655
cat >>confdefs.h <<\_ACEOF
 
12656
#define error_t int
 
12657
_ACEOF
 
12658
 
 
12659
 
 
12660
cat >>confdefs.h <<\_ACEOF
 
12661
#define __error_t_defined 1
 
12662
_ACEOF
 
12663
 
 
12664
fi
 
12665
 
 
12666
 
 
12667
ARGZ_H=
 
12668
 
 
12669
 
 
12670
 
 
12671
 
 
12672
 
 
12673
 
 
12674
 
 
12675
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
 
12676
        argz_next argz_stringify
 
12677
do
 
12678
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12679
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12680
$as_echo_n "checking for $ac_func... " >&6; }
 
12681
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12682
  $as_echo_n "(cached) " >&6
 
12683
else
 
12684
  cat >conftest.$ac_ext <<_ACEOF
 
12685
/* confdefs.h.  */
 
12686
_ACEOF
 
12687
cat confdefs.h >>conftest.$ac_ext
 
12688
cat >>conftest.$ac_ext <<_ACEOF
 
12689
/* end confdefs.h.  */
 
12690
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12691
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12692
#define $ac_func innocuous_$ac_func
 
12693
 
 
12694
/* System header to define __stub macros and hopefully few prototypes,
 
12695
    which can conflict with char $ac_func (); below.
 
12696
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12697
    <limits.h> exists even on freestanding compilers.  */
 
12698
 
 
12699
#ifdef __STDC__
 
12700
# include <limits.h>
 
12701
#else
 
12702
# include <assert.h>
 
12703
#endif
 
12704
 
 
12705
#undef $ac_func
 
12706
 
 
12707
/* Override any GCC internal prototype to avoid an error.
 
12708
   Use char because int might match the return type of a GCC
 
12709
   builtin and then its argument prototype would still apply.  */
 
12710
#ifdef __cplusplus
 
12711
extern "C"
 
12712
#endif
 
12713
char $ac_func ();
 
12714
/* The GNU C library defines this for functions which it implements
 
12715
    to always fail with ENOSYS.  Some functions are actually named
 
12716
    something starting with __ and the normal name is an alias.  */
 
12717
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12718
choke me
 
12719
#endif
 
12720
 
 
12721
int
 
12722
main ()
 
12723
{
 
12724
return $ac_func ();
 
12725
  ;
 
12726
  return 0;
 
12727
}
 
12728
_ACEOF
 
12729
rm -f conftest.$ac_objext conftest$ac_exeext
 
12730
if { (ac_try="$ac_link"
 
12731
case "(($ac_try" in
 
12732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12733
  *) ac_try_echo=$ac_try;;
 
12734
esac
 
12735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12736
$as_echo "$ac_try_echo") >&5
 
12737
  (eval "$ac_link") 2>conftest.er1
 
12738
  ac_status=$?
 
12739
  grep -v '^ *+' conftest.er1 >conftest.err
 
12740
  rm -f conftest.er1
 
12741
  cat conftest.err >&5
 
12742
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12743
  (exit $ac_status); } && {
 
12744
         test -z "$ac_c_werror_flag" ||
 
12745
         test ! -s conftest.err
 
12746
       } && test -s conftest$ac_exeext && {
 
12747
         test "$cross_compiling" = yes ||
 
12748
         $as_test_x conftest$ac_exeext
 
12749
       }; then
 
12750
  eval "$as_ac_var=yes"
 
12751
else
 
12752
  $as_echo "$as_me: failed program was:" >&5
 
12753
sed 's/^/| /' conftest.$ac_ext >&5
 
12754
 
 
12755
        eval "$as_ac_var=no"
 
12756
fi
 
12757
 
 
12758
rm -rf conftest.dSYM
 
12759
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12760
      conftest$ac_exeext conftest.$ac_ext
 
12761
fi
 
12762
ac_res=`eval 'as_val=${'$as_ac_var'}
 
12763
                 $as_echo "$as_val"'`
 
12764
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12765
$as_echo "$ac_res" >&6; }
 
12766
as_val=`eval 'as_val=${'$as_ac_var'}
 
12767
                 $as_echo "$as_val"'`
 
12768
   if test "x$as_val" = x""yes; then
 
12769
  cat >>confdefs.h <<_ACEOF
 
12770
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12771
_ACEOF
 
12772
 
 
12773
else
 
12774
  ARGZ_H=argz.h; case " $LIBOBJS " in
 
12775
  *" argz.$ac_objext "* ) ;;
 
12776
  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
 
12777
 ;;
 
12778
esac
 
12779
 
 
12780
fi
 
12781
done
 
12782
 
 
12783
 
 
12784
if test -z "$ARGZ_H"; then
 
12785
  { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
 
12786
$as_echo_n "checking if argz actually works... " >&6; }
 
12787
if test "${lt_cv_sys_argz_works+set}" = set; then
 
12788
  $as_echo_n "(cached) " >&6
 
12789
else
 
12790
  case $host_os in #(
 
12791
         *cygwin*)
 
12792
           lt_cv_sys_argz_works=no
 
12793
           if test "$cross_compiling" != no; then
 
12794
             lt_cv_sys_argz_works="guessing no"
 
12795
           else
 
12796
             lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
 
12797
             save_IFS=$IFS
 
12798
             IFS=-.
 
12799
             set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
 
12800
             IFS=$save_IFS
 
12801
             lt_os_major=${2-0}
 
12802
             lt_os_minor=${3-0}
 
12803
             lt_os_micro=${4-0}
 
12804
             if test "$lt_os_major" -gt 1 \
 
12805
                || { test "$lt_os_major" -eq 1 \
 
12806
                  && { test "$lt_os_minor" -gt 5 \
 
12807
                    || { test "$lt_os_minor" -eq 5 \
 
12808
                      && test "$lt_os_micro" -gt 24; }; }; }; then
 
12809
               lt_cv_sys_argz_works=yes
 
12810
             fi
 
12811
           fi
 
12812
           ;; #(
 
12813
         *) lt_cv_sys_argz_works=yes ;;
 
12814
         esac
 
12815
fi
 
12816
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
 
12817
$as_echo "$lt_cv_sys_argz_works" >&6; }
 
12818
     if test $lt_cv_sys_argz_works = yes; then
 
12819
 
 
12820
cat >>confdefs.h <<\_ACEOF
 
12821
#define HAVE_WORKING_ARGZ 1
 
12822
_ACEOF
 
12823
 
 
12824
else
 
12825
  ARGZ_H=argz.h
 
12826
        case " $LIBOBJS " in
 
12827
  *" argz.$ac_objext "* ) ;;
 
12828
  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
 
12829
 ;;
 
12830
esac
 
12831
 
 
12832
fi
 
12833
 
 
12834
fi
 
12835
 
 
12836
 
 
12837
 
 
12838
 
 
12839
{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
 
12840
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
 
12841
if test "${libltdl_cv_preloaded_symbols+set}" = set; then
 
12842
  $as_echo_n "(cached) " >&6
 
12843
else
 
12844
  if test -n "$lt_cv_sys_global_symbol_pipe"; then
 
12845
    libltdl_cv_preloaded_symbols=yes
 
12846
  else
 
12847
    libltdl_cv_preloaded_symbols=no
 
12848
  fi
 
12849
 
 
12850
fi
 
12851
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
 
12852
$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
 
12853
if test x"$libltdl_cv_preloaded_symbols" = xyes; then
 
12854
 
 
12855
cat >>confdefs.h <<\_ACEOF
 
12856
#define HAVE_PRELOADED_SYMBOLS 1
 
12857
_ACEOF
 
12858
 
 
12859
fi
 
12860
 
 
12861
 
 
12862
 
 
12863
# Check whether --enable-ltdl-install was given.
 
12864
if test "${enable_ltdl_install+set}" = set; then
 
12865
  enableval=$enable_ltdl_install;
 
12866
fi
 
12867
 
 
12868
 
 
12869
case ,${enable_ltdl_install},${enable_ltdl_convenience} in
 
12870
  *yes*) ;;
 
12871
  *) enable_ltdl_convenience=yes ;;
 
12872
esac
 
12873
 
 
12874
 if test x"${enable_ltdl_install-no}" != xno; then
 
12875
  INSTALL_LTDL_TRUE=
 
12876
  INSTALL_LTDL_FALSE='#'
 
12877
else
 
12878
  INSTALL_LTDL_TRUE='#'
 
12879
  INSTALL_LTDL_FALSE=
 
12880
fi
 
12881
 
 
12882
  if test x"${enable_ltdl_convenience-no}" != xno; then
 
12883
  CONVENIENCE_LTDL_TRUE=
 
12884
  CONVENIENCE_LTDL_FALSE='#'
 
12885
else
 
12886
  CONVENIENCE_LTDL_TRUE='#'
 
12887
  CONVENIENCE_LTDL_FALSE=
 
12888
fi
 
12889
 
 
12890
 
 
12891
 
 
12892
 
 
12893
 
 
12894
 
 
12895
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
 
12896
# the user used.  This is so that ltdl.h can pick up the parent projects
 
12897
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
 
12898
# definitions required by ltdl.c.
 
12899
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
 
12900
 
 
12901
 
 
12902
 
 
12903
 
 
12904
 
 
12905
 
 
12906
 
 
12907
 
 
12908
 
 
12909
for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
 
12910
do
 
12911
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12912
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12913
$as_echo_n "checking for $ac_header... " >&6; }
 
12914
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12915
  $as_echo_n "(cached) " >&6
 
12916
else
 
12917
  cat >conftest.$ac_ext <<_ACEOF
 
12918
/* confdefs.h.  */
 
12919
_ACEOF
 
12920
cat confdefs.h >>conftest.$ac_ext
 
12921
cat >>conftest.$ac_ext <<_ACEOF
 
12922
/* end confdefs.h.  */
 
12923
$ac_includes_default
 
12924
 
 
12925
#include <$ac_header>
 
12926
_ACEOF
 
12927
rm -f conftest.$ac_objext
 
12928
if { (ac_try="$ac_compile"
 
12929
case "(($ac_try" in
 
12930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12931
  *) ac_try_echo=$ac_try;;
 
12932
esac
 
12933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12934
$as_echo "$ac_try_echo") >&5
 
12935
  (eval "$ac_compile") 2>conftest.er1
 
12936
  ac_status=$?
 
12937
  grep -v '^ *+' conftest.er1 >conftest.err
 
12938
  rm -f conftest.er1
 
12939
  cat conftest.err >&5
 
12940
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12941
  (exit $ac_status); } && {
 
12942
         test -z "$ac_c_werror_flag" ||
 
12943
         test ! -s conftest.err
 
12944
       } && test -s conftest.$ac_objext; then
 
12945
  eval "$as_ac_Header=yes"
 
12946
else
 
12947
  $as_echo "$as_me: failed program was:" >&5
 
12948
sed 's/^/| /' conftest.$ac_ext >&5
 
12949
 
 
12950
        eval "$as_ac_Header=no"
 
12951
fi
 
12952
 
 
12953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12954
fi
 
12955
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12956
                 $as_echo "$as_val"'`
 
12957
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12958
$as_echo "$ac_res" >&6; }
 
12959
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12960
                 $as_echo "$as_val"'`
 
12961
   if test "x$as_val" = x""yes; then
 
12962
  cat >>confdefs.h <<_ACEOF
 
12963
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12964
_ACEOF
 
12965
 
 
12966
fi
 
12967
 
 
12968
done
 
12969
 
 
12970
 
 
12971
 
 
12972
 
 
12973
 
 
12974
for ac_func in closedir opendir readdir
 
12975
do
 
12976
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12977
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12978
$as_echo_n "checking for $ac_func... " >&6; }
 
12979
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12980
  $as_echo_n "(cached) " >&6
 
12981
else
 
12982
  cat >conftest.$ac_ext <<_ACEOF
 
12983
/* confdefs.h.  */
 
12984
_ACEOF
 
12985
cat confdefs.h >>conftest.$ac_ext
 
12986
cat >>conftest.$ac_ext <<_ACEOF
 
12987
/* end confdefs.h.  */
 
12988
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12989
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12990
#define $ac_func innocuous_$ac_func
 
12991
 
 
12992
/* System header to define __stub macros and hopefully few prototypes,
 
12993
    which can conflict with char $ac_func (); below.
 
12994
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12995
    <limits.h> exists even on freestanding compilers.  */
 
12996
 
 
12997
#ifdef __STDC__
 
12998
# include <limits.h>
 
12999
#else
 
13000
# include <assert.h>
 
13001
#endif
 
13002
 
 
13003
#undef $ac_func
 
13004
 
 
13005
/* Override any GCC internal prototype to avoid an error.
 
13006
   Use char because int might match the return type of a GCC
 
13007
   builtin and then its argument prototype would still apply.  */
 
13008
#ifdef __cplusplus
 
13009
extern "C"
 
13010
#endif
 
13011
char $ac_func ();
 
13012
/* The GNU C library defines this for functions which it implements
 
13013
    to always fail with ENOSYS.  Some functions are actually named
 
13014
    something starting with __ and the normal name is an alias.  */
 
13015
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13016
choke me
 
13017
#endif
 
13018
 
 
13019
int
 
13020
main ()
 
13021
{
 
13022
return $ac_func ();
 
13023
  ;
 
13024
  return 0;
 
13025
}
 
13026
_ACEOF
 
13027
rm -f conftest.$ac_objext conftest$ac_exeext
 
13028
if { (ac_try="$ac_link"
 
13029
case "(($ac_try" in
 
13030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13031
  *) ac_try_echo=$ac_try;;
 
13032
esac
 
13033
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13034
$as_echo "$ac_try_echo") >&5
 
13035
  (eval "$ac_link") 2>conftest.er1
 
13036
  ac_status=$?
 
13037
  grep -v '^ *+' conftest.er1 >conftest.err
 
13038
  rm -f conftest.er1
 
13039
  cat conftest.err >&5
 
13040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13041
  (exit $ac_status); } && {
 
13042
         test -z "$ac_c_werror_flag" ||
 
13043
         test ! -s conftest.err
 
13044
       } && test -s conftest$ac_exeext && {
 
13045
         test "$cross_compiling" = yes ||
 
13046
         $as_test_x conftest$ac_exeext
 
13047
       }; then
 
13048
  eval "$as_ac_var=yes"
 
13049
else
 
13050
  $as_echo "$as_me: failed program was:" >&5
 
13051
sed 's/^/| /' conftest.$ac_ext >&5
 
13052
 
 
13053
        eval "$as_ac_var=no"
 
13054
fi
 
13055
 
 
13056
rm -rf conftest.dSYM
 
13057
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13058
      conftest$ac_exeext conftest.$ac_ext
 
13059
fi
 
13060
ac_res=`eval 'as_val=${'$as_ac_var'}
 
13061
                 $as_echo "$as_val"'`
 
13062
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13063
$as_echo "$ac_res" >&6; }
 
13064
as_val=`eval 'as_val=${'$as_ac_var'}
 
13065
                 $as_echo "$as_val"'`
 
13066
   if test "x$as_val" = x""yes; then
 
13067
  cat >>confdefs.h <<_ACEOF
 
13068
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13069
_ACEOF
 
13070
 
 
13071
else
 
13072
  case " $LIBOBJS " in
 
13073
  *" lt__dirent.$ac_objext "* ) ;;
 
13074
  *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
 
13075
 ;;
 
13076
esac
 
13077
 
 
13078
fi
 
13079
done
 
13080
 
 
13081
 
 
13082
 
 
13083
for ac_func in strlcat strlcpy
 
13084
do
 
13085
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13086
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13087
$as_echo_n "checking for $ac_func... " >&6; }
 
13088
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13089
  $as_echo_n "(cached) " >&6
 
13090
else
 
13091
  cat >conftest.$ac_ext <<_ACEOF
 
13092
/* confdefs.h.  */
 
13093
_ACEOF
 
13094
cat confdefs.h >>conftest.$ac_ext
 
13095
cat >>conftest.$ac_ext <<_ACEOF
 
13096
/* end confdefs.h.  */
 
13097
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13098
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13099
#define $ac_func innocuous_$ac_func
 
13100
 
 
13101
/* System header to define __stub macros and hopefully few prototypes,
 
13102
    which can conflict with char $ac_func (); below.
 
13103
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13104
    <limits.h> exists even on freestanding compilers.  */
 
13105
 
 
13106
#ifdef __STDC__
 
13107
# include <limits.h>
 
13108
#else
 
13109
# include <assert.h>
 
13110
#endif
 
13111
 
 
13112
#undef $ac_func
 
13113
 
 
13114
/* Override any GCC internal prototype to avoid an error.
 
13115
   Use char because int might match the return type of a GCC
 
13116
   builtin and then its argument prototype would still apply.  */
 
13117
#ifdef __cplusplus
 
13118
extern "C"
 
13119
#endif
 
13120
char $ac_func ();
 
13121
/* The GNU C library defines this for functions which it implements
 
13122
    to always fail with ENOSYS.  Some functions are actually named
 
13123
    something starting with __ and the normal name is an alias.  */
 
13124
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13125
choke me
 
13126
#endif
 
13127
 
 
13128
int
 
13129
main ()
 
13130
{
 
13131
return $ac_func ();
 
13132
  ;
 
13133
  return 0;
 
13134
}
 
13135
_ACEOF
 
13136
rm -f conftest.$ac_objext conftest$ac_exeext
 
13137
if { (ac_try="$ac_link"
 
13138
case "(($ac_try" in
 
13139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13140
  *) ac_try_echo=$ac_try;;
 
13141
esac
 
13142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13143
$as_echo "$ac_try_echo") >&5
 
13144
  (eval "$ac_link") 2>conftest.er1
 
13145
  ac_status=$?
 
13146
  grep -v '^ *+' conftest.er1 >conftest.err
 
13147
  rm -f conftest.er1
 
13148
  cat conftest.err >&5
 
13149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13150
  (exit $ac_status); } && {
 
13151
         test -z "$ac_c_werror_flag" ||
 
13152
         test ! -s conftest.err
 
13153
       } && test -s conftest$ac_exeext && {
 
13154
         test "$cross_compiling" = yes ||
 
13155
         $as_test_x conftest$ac_exeext
 
13156
       }; then
 
13157
  eval "$as_ac_var=yes"
 
13158
else
 
13159
  $as_echo "$as_me: failed program was:" >&5
 
13160
sed 's/^/| /' conftest.$ac_ext >&5
 
13161
 
 
13162
        eval "$as_ac_var=no"
 
13163
fi
 
13164
 
 
13165
rm -rf conftest.dSYM
 
13166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13167
      conftest$ac_exeext conftest.$ac_ext
 
13168
fi
 
13169
ac_res=`eval 'as_val=${'$as_ac_var'}
 
13170
                 $as_echo "$as_val"'`
 
13171
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13172
$as_echo "$ac_res" >&6; }
 
13173
as_val=`eval 'as_val=${'$as_ac_var'}
 
13174
                 $as_echo "$as_val"'`
 
13175
   if test "x$as_val" = x""yes; then
 
13176
  cat >>confdefs.h <<_ACEOF
 
13177
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13178
_ACEOF
 
13179
 
 
13180
else
 
13181
  case " $LIBOBJS " in
 
13182
  *" lt__strl.$ac_objext "* ) ;;
 
13183
  *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
 
13184
 ;;
 
13185
esac
 
13186
 
 
13187
fi
 
13188
done
 
13189
 
 
13190
 
 
13191
 
 
13192
cat >>confdefs.h <<_ACEOF
 
13193
#define LT_LIBEXT "$libext"
 
13194
_ACEOF
 
13195
 
 
13196
 
 
13197
name=ltdl
 
13198
LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
 
13199
 
 
13200
 
 
13201
 
 
13202
 
 
13203
## -------- ##
 
13204
## Outputs. ##
 
13205
## -------- ##
 
13206
ac_config_files="$ac_config_files Makefile"
 
13207
 
 
13208
cat >confcache <<\_ACEOF
 
13209
# This file is a shell script that caches the results of configure
 
13210
# tests run on this system so they can be shared between configure
 
13211
# scripts and configure runs, see configure's option --config-cache.
 
13212
# It is not useful on other systems.  If it contains results you don't
 
13213
# want to keep, you may remove or edit it.
 
13214
#
 
13215
# config.status only pays attention to the cache file if you give it
 
13216
# the --recheck option to rerun configure.
 
13217
#
 
13218
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13219
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13220
# following values.
 
13221
 
 
13222
_ACEOF
 
13223
 
 
13224
# The following way of writing the cache mishandles newlines in values,
 
13225
# but we know of no workaround that is simple, portable, and efficient.
 
13226
# So, we kill variables containing newlines.
 
13227
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13228
# and sets the high bit in the cache file unless we assign to the vars.
 
13229
(
 
13230
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13231
    eval ac_val=\$$ac_var
 
13232
    case $ac_val in #(
 
13233
    *${as_nl}*)
 
13234
      case $ac_var in #(
 
13235
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
13236
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13237
      esac
 
13238
      case $ac_var in #(
 
13239
      _ | IFS | as_nl) ;; #(
 
13240
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13241
      *) $as_unset $ac_var ;;
 
13242
      esac ;;
 
13243
    esac
 
13244
  done
 
13245
 
 
13246
  (set) 2>&1 |
 
13247
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13248
    *${as_nl}ac_space=\ *)
 
13249
      # `set' does not quote correctly, so add quotes (double-quote
 
13250
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13251
      sed -n \
 
13252
        "s/'/'\\\\''/g;
 
13253
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13254
      ;; #(
 
13255
    *)
 
13256
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13257
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13258
      ;;
 
13259
    esac |
 
13260
    sort
 
13261
) |
 
13262
  sed '
 
13263
     /^ac_cv_env_/b end
 
13264
     t clear
 
13265
     :clear
 
13266
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13267
     t end
 
13268
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13269
     :end' >>confcache
 
13270
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13271
  if test -w "$cache_file"; then
 
13272
    test "x$cache_file" != "x/dev/null" &&
 
13273
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
13274
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13275
    cat confcache >$cache_file
 
13276
  else
 
13277
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
13278
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13279
  fi
 
13280
fi
 
13281
rm -f confcache
 
13282
 
 
13283
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13284
# Let make expand exec_prefix.
 
13285
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13286
 
 
13287
DEFS=-DHAVE_CONFIG_H
 
13288
 
 
13289
ac_libobjs=
 
13290
ac_ltlibobjs=
 
13291
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13292
  # 1. Remove the extension, and $U if already installed.
 
13293
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13294
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13295
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13296
  #    will be set to the directory where LIBOBJS objects are built.
 
13297
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13298
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
13299
done
 
13300
LIBOBJS=$ac_libobjs
 
13301
 
 
13302
LTLIBOBJS=$ac_ltlibobjs
 
13303
 
 
13304
 
 
13305
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13306
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
13307
Usually this means the macro was only invoked conditionally." >&5
 
13308
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
13309
Usually this means the macro was only invoked conditionally." >&2;}
 
13310
   { (exit 1); exit 1; }; }
 
13311
fi
 
13312
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13313
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13314
Usually this means the macro was only invoked conditionally." >&5
 
13315
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13316
Usually this means the macro was only invoked conditionally." >&2;}
 
13317
   { (exit 1); exit 1; }; }
 
13318
fi
 
13319
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
 
13320
  { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
 
13321
Usually this means the macro was only invoked conditionally." >&5
 
13322
$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
 
13323
Usually this means the macro was only invoked conditionally." >&2;}
 
13324
   { (exit 1); exit 1; }; }
 
13325
fi
 
13326
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
 
13327
  { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
 
13328
Usually this means the macro was only invoked conditionally." >&5
 
13329
$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
 
13330
Usually this means the macro was only invoked conditionally." >&2;}
 
13331
   { (exit 1); exit 1; }; }
 
13332
fi
 
13333
LT_CONFIG_H=config.h
 
13334
 
 
13335
: ${CONFIG_STATUS=./config.status}
 
13336
ac_write_fail=0
 
13337
ac_clean_files_save=$ac_clean_files
 
13338
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13339
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
13340
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13341
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13342
#! $SHELL
 
13343
# Generated by $as_me.
 
13344
# Run this file to recreate the current configuration.
 
13345
# Compiler output produced by configure, useful for debugging
 
13346
# configure, is in config.log if it exists.
 
13347
 
 
13348
debug=false
 
13349
ac_cs_recheck=false
 
13350
ac_cs_silent=false
 
13351
SHELL=\${CONFIG_SHELL-$SHELL}
 
13352
_ACEOF
 
13353
 
 
13354
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13355
## --------------------- ##
 
13356
## M4sh Initialization.  ##
 
13357
## --------------------- ##
 
13358
 
 
13359
# Be more Bourne compatible
 
13360
DUALCASE=1; export DUALCASE # for MKS sh
 
13361
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13362
  emulate sh
 
13363
  NULLCMD=:
 
13364
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13365
  # is contrary to our usage.  Disable this feature.
 
13366
  alias -g '${1+"$@"}'='"$@"'
 
13367
  setopt NO_GLOB_SUBST
 
13368
else
 
13369
  case `(set -o) 2>/dev/null` in
 
13370
  *posix*) set -o posix ;;
 
13371
esac
 
13372
 
 
13373
fi
 
13374
 
 
13375
 
 
13376
 
 
13377
 
 
13378
# PATH needs CR
 
13379
# Avoid depending upon Character Ranges.
 
13380
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13381
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13382
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13383
as_cr_digits='0123456789'
 
13384
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13385
 
 
13386
as_nl='
 
13387
'
 
13388
export as_nl
 
13389
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13390
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13391
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13392
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13393
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13394
  as_echo='printf %s\n'
 
13395
  as_echo_n='printf %s'
 
13396
else
 
13397
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13398
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13399
    as_echo_n='/usr/ucb/echo -n'
 
13400
  else
 
13401
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13402
    as_echo_n_body='eval
 
13403
      arg=$1;
 
13404
      case $arg in
 
13405
      *"$as_nl"*)
 
13406
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13407
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13408
      esac;
 
13409
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13410
    '
 
13411
    export as_echo_n_body
 
13412
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13413
  fi
 
13414
  export as_echo_body
 
13415
  as_echo='sh -c $as_echo_body as_echo'
 
13416
fi
 
13417
 
 
13418
# The user is always right.
 
13419
if test "${PATH_SEPARATOR+set}" != set; then
 
13420
  PATH_SEPARATOR=:
 
13421
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13422
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13423
      PATH_SEPARATOR=';'
 
13424
  }
 
13425
fi
 
13426
 
 
13427
# Support unset when possible.
 
13428
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
13429
  as_unset=unset
 
13430
else
 
13431
  as_unset=false
 
13432
fi
 
13433
 
 
13434
 
 
13435
# IFS
 
13436
# We need space, tab and new line, in precisely that order.  Quoting is
 
13437
# there to prevent editors from complaining about space-tab.
 
13438
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13439
# splitting by setting IFS to empty value.)
 
13440
IFS=" ""        $as_nl"
 
13441
 
 
13442
# Find who we are.  Look in the path if we contain no directory separator.
 
13443
case $0 in
 
13444
  *[\\/]* ) as_myself=$0 ;;
 
13445
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13446
for as_dir in $PATH
 
13447
do
 
13448
  IFS=$as_save_IFS
 
13449
  test -z "$as_dir" && as_dir=.
 
13450
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13451
done
 
13452
IFS=$as_save_IFS
 
13453
 
 
13454
     ;;
 
13455
esac
 
13456
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13457
# in which case we are not to be found in the path.
 
13458
if test "x$as_myself" = x; then
 
13459
  as_myself=$0
 
13460
fi
 
13461
if test ! -f "$as_myself"; then
 
13462
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13463
  { (exit 1); exit 1; }
 
13464
fi
 
13465
 
 
13466
# Work around bugs in pre-3.0 UWIN ksh.
 
13467
for as_var in ENV MAIL MAILPATH
 
13468
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13469
done
 
13470
PS1='$ '
 
13471
PS2='> '
 
13472
PS4='+ '
 
13473
 
 
13474
# NLS nuisances.
 
13475
LC_ALL=C
 
13476
export LC_ALL
 
13477
LANGUAGE=C
 
13478
export LANGUAGE
 
13479
 
 
13480
# Required to use basename.
 
13481
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13482
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13483
  as_expr=expr
 
13484
else
 
13485
  as_expr=false
 
13486
fi
 
13487
 
 
13488
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13489
  as_basename=basename
 
13490
else
 
13491
  as_basename=false
 
13492
fi
 
13493
 
 
13494
 
 
13495
# Name of the executable.
 
13496
as_me=`$as_basename -- "$0" ||
 
13497
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13498
         X"$0" : 'X\(//\)$' \| \
 
13499
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13500
$as_echo X/"$0" |
 
13501
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13502
            s//\1/
 
13503
            q
 
13504
          }
 
13505
          /^X\/\(\/\/\)$/{
 
13506
            s//\1/
 
13507
            q
 
13508
          }
 
13509
          /^X\/\(\/\).*/{
 
13510
            s//\1/
 
13511
            q
 
13512
          }
 
13513
          s/.*/./; q'`
 
13514
 
 
13515
# CDPATH.
 
13516
$as_unset CDPATH
 
13517
 
 
13518
 
 
13519
 
 
13520
  as_lineno_1=$LINENO
 
13521
  as_lineno_2=$LINENO
 
13522
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13523
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
13524
 
 
13525
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
13526
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
13527
  # line-number line after each line using $LINENO; the second 'sed'
 
13528
  # does the real work.  The second script uses 'N' to pair each
 
13529
  # line-number line with the line containing $LINENO, and appends
 
13530
  # trailing '-' during substitution so that $LINENO is not a special
 
13531
  # case at line end.
 
13532
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
13533
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
13534
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
13535
  sed -n '
 
13536
    p
 
13537
    /[$]LINENO/=
 
13538
  ' <$as_myself |
 
13539
    sed '
 
13540
      s/[$]LINENO.*/&-/
 
13541
      t lineno
 
13542
      b
 
13543
      :lineno
 
13544
      N
 
13545
      :loop
 
13546
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
13547
      t loop
 
13548
      s/-\n.*//
 
13549
    ' >$as_me.lineno &&
 
13550
  chmod +x "$as_me.lineno" ||
 
13551
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
13552
   { (exit 1); exit 1; }; }
 
13553
 
 
13554
  # Don't try to exec as it changes $[0], causing all sort of problems
 
13555
  # (the dirname of $[0] is not the place where we might find the
 
13556
  # original and so on.  Autoconf is especially sensitive to this).
 
13557
  . "./$as_me.lineno"
 
13558
  # Exit status is that of the last command.
 
13559
  exit
 
13560
}
 
13561
 
 
13562
 
 
13563
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13564
  as_dirname=dirname
 
13565
else
 
13566
  as_dirname=false
 
13567
fi
 
13568
 
 
13569
ECHO_C= ECHO_N= ECHO_T=
 
13570
case `echo -n x` in
 
13571
-n*)
 
13572
  case `echo 'x\c'` in
 
13573
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13574
  *)   ECHO_C='\c';;
 
13575
  esac;;
 
13576
*)
 
13577
  ECHO_N='-n';;
 
13578
esac
 
13579
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13580
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13581
  as_expr=expr
 
13582
else
 
13583
  as_expr=false
 
13584
fi
 
13585
 
 
13586
rm -f conf$$ conf$$.exe conf$$.file
 
13587
if test -d conf$$.dir; then
 
13588
  rm -f conf$$.dir/conf$$.file
 
13589
else
 
13590
  rm -f conf$$.dir
 
13591
  mkdir conf$$.dir 2>/dev/null
 
13592
fi
 
13593
if (echo >conf$$.file) 2>/dev/null; then
 
13594
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13595
    as_ln_s='ln -s'
 
13596
    # ... but there are two gotchas:
 
13597
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13598
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13599
    # In both cases, we have to default to `cp -p'.
 
13600
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13601
      as_ln_s='cp -p'
 
13602
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13603
    as_ln_s=ln
 
13604
  else
 
13605
    as_ln_s='cp -p'
 
13606
  fi
 
13607
else
 
13608
  as_ln_s='cp -p'
 
13609
fi
 
13610
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13611
rmdir conf$$.dir 2>/dev/null
 
13612
 
 
13613
if mkdir -p . 2>/dev/null; then
 
13614
  as_mkdir_p=:
 
13615
else
 
13616
  test -d ./-p && rmdir ./-p
 
13617
  as_mkdir_p=false
 
13618
fi
 
13619
 
 
13620
if test -x / >/dev/null 2>&1; then
 
13621
  as_test_x='test -x'
 
13622
else
 
13623
  if ls -dL / >/dev/null 2>&1; then
 
13624
    as_ls_L_option=L
 
13625
  else
 
13626
    as_ls_L_option=
 
13627
  fi
 
13628
  as_test_x='
 
13629
    eval sh -c '\''
 
13630
      if test -d "$1"; then
 
13631
        test -d "$1/.";
 
13632
      else
 
13633
        case $1 in
 
13634
        -*)set "./$1";;
 
13635
        esac;
 
13636
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
13637
        ???[sx]*):;;*)false;;esac;fi
 
13638
    '\'' sh
 
13639
  '
 
13640
fi
 
13641
as_executable_p=$as_test_x
 
13642
 
 
13643
# Sed expression to map a string onto a valid CPP name.
 
13644
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13645
 
 
13646
# Sed expression to map a string onto a valid variable name.
 
13647
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13648
 
 
13649
 
 
13650
exec 6>&1
 
13651
 
 
13652
# Save the log message, to keep $[0] and so on meaningful, and to
 
13653
# report actual input values of CONFIG_FILES etc. instead of their
 
13654
# values after options handling.
 
13655
ac_log="
 
13656
This file was extended by libltdl $as_me 2.2.6, which was
 
13657
generated by GNU Autoconf 2.63.  Invocation command line was
 
13658
 
 
13659
  CONFIG_FILES    = $CONFIG_FILES
 
13660
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13661
  CONFIG_LINKS    = $CONFIG_LINKS
 
13662
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13663
  $ $0 $@
 
13664
 
 
13665
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13666
"
 
13667
 
 
13668
_ACEOF
 
13669
 
 
13670
case $ac_config_files in *"
 
13671
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13672
esac
 
13673
 
 
13674
case $ac_config_headers in *"
 
13675
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13676
esac
 
13677
 
 
13678
 
 
13679
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13680
# Files that config.status was made for.
 
13681
config_files="$ac_config_files"
 
13682
config_headers="$ac_config_headers"
 
13683
config_commands="$ac_config_commands"
 
13684
 
 
13685
_ACEOF
 
13686
 
 
13687
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13688
ac_cs_usage="\
 
13689
\`$as_me' instantiates files from templates according to the
 
13690
current configuration.
 
13691
 
 
13692
Usage: $0 [OPTION]... [FILE]...
 
13693
 
 
13694
  -h, --help       print this help, then exit
 
13695
  -V, --version    print version number and configuration settings, then exit
 
13696
  -q, --quiet, --silent
 
13697
                   do not print progress messages
 
13698
  -d, --debug      don't remove temporary files
 
13699
      --recheck    update $as_me by reconfiguring in the same conditions
 
13700
      --file=FILE[:TEMPLATE]
 
13701
                   instantiate the configuration file FILE
 
13702
      --header=FILE[:TEMPLATE]
 
13703
                   instantiate the configuration header FILE
 
13704
 
 
13705
Configuration files:
 
13706
$config_files
 
13707
 
 
13708
Configuration headers:
 
13709
$config_headers
 
13710
 
 
13711
Configuration commands:
 
13712
$config_commands
 
13713
 
 
13714
Report bugs to <bug-autoconf@gnu.org>."
 
13715
 
 
13716
_ACEOF
 
13717
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13718
ac_cs_version="\\
 
13719
libltdl config.status 2.2.6
 
13720
configured by $0, generated by GNU Autoconf 2.63,
 
13721
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
13722
 
 
13723
Copyright (C) 2008 Free Software Foundation, Inc.
 
13724
This config.status script is free software; the Free Software Foundation
 
13725
gives unlimited permission to copy, distribute and modify it."
 
13726
 
 
13727
ac_pwd='$ac_pwd'
 
13728
srcdir='$srcdir'
 
13729
INSTALL='$INSTALL'
 
13730
MKDIR_P='$MKDIR_P'
 
13731
AWK='$AWK'
 
13732
test -n "\$AWK" || AWK=awk
 
13733
_ACEOF
 
13734
 
 
13735
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13736
# The default lists apply if the user does not specify any file.
 
13737
ac_need_defaults=:
 
13738
while test $# != 0
 
13739
do
 
13740
  case $1 in
 
13741
  --*=*)
 
13742
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13743
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13744
    ac_shift=:
 
13745
    ;;
 
13746
  *)
 
13747
    ac_option=$1
 
13748
    ac_optarg=$2
 
13749
    ac_shift=shift
 
13750
    ;;
 
13751
  esac
 
13752
 
 
13753
  case $ac_option in
 
13754
  # Handling of the options.
 
13755
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13756
    ac_cs_recheck=: ;;
 
13757
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13758
    $as_echo "$ac_cs_version"; exit ;;
 
13759
  --debug | --debu | --deb | --de | --d | -d )
 
13760
    debug=: ;;
 
13761
  --file | --fil | --fi | --f )
 
13762
    $ac_shift
 
13763
    case $ac_optarg in
 
13764
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13765
    esac
 
13766
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
13767
    ac_need_defaults=false;;
 
13768
  --header | --heade | --head | --hea )
 
13769
    $ac_shift
 
13770
    case $ac_optarg in
 
13771
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13772
    esac
 
13773
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
13774
    ac_need_defaults=false;;
 
13775
  --he | --h)
 
13776
    # Conflict between --help and --header
 
13777
    { $as_echo "$as_me: error: ambiguous option: $1
 
13778
Try \`$0 --help' for more information." >&2
 
13779
   { (exit 1); exit 1; }; };;
 
13780
  --help | --hel | -h )
 
13781
    $as_echo "$ac_cs_usage"; exit ;;
 
13782
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13783
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13784
    ac_cs_silent=: ;;
 
13785
 
 
13786
  # This is an error.
 
13787
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
13788
Try \`$0 --help' for more information." >&2
 
13789
   { (exit 1); exit 1; }; } ;;
 
13790
 
 
13791
  *) ac_config_targets="$ac_config_targets $1"
 
13792
     ac_need_defaults=false ;;
 
13793
 
 
13794
  esac
 
13795
  shift
 
13796
done
 
13797
 
 
13798
ac_configure_extra_args=
 
13799
 
 
13800
if $ac_cs_silent; then
 
13801
  exec 6>/dev/null
 
13802
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13803
fi
 
13804
 
 
13805
_ACEOF
 
13806
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13807
if \$ac_cs_recheck; then
 
13808
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13809
  shift
 
13810
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13811
  CONFIG_SHELL='$SHELL'
 
13812
  export CONFIG_SHELL
 
13813
  exec "\$@"
 
13814
fi
 
13815
 
 
13816
_ACEOF
 
13817
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13818
exec 5>>config.log
 
13819
{
 
13820
  echo
 
13821
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13822
## Running $as_me. ##
 
13823
_ASBOX
 
13824
  $as_echo "$ac_log"
 
13825
} >&5
 
13826
 
 
13827
_ACEOF
 
13828
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13829
#
 
13830
# INIT-COMMANDS
 
13831
#
 
13832
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13833
 
 
13834
 
 
13835
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13836
# if CDPATH is set.
 
13837
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13838
 
 
13839
sed_quote_subst='$sed_quote_subst'
 
13840
double_quote_subst='$double_quote_subst'
 
13841
delay_variable_subst='$delay_variable_subst'
 
13842
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
13843
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
13844
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
13845
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
13846
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
13847
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
13848
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13849
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
13850
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
13851
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
13852
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
13853
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
13854
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
13855
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
13856
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
13857
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
13858
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
13859
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13860
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13861
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13862
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
13863
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
13864
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
13865
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
13866
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
13867
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
13868
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
13869
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
13870
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
13871
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13872
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13873
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
13874
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
13875
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
13876
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
13877
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
13878
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
13879
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13880
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13881
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13882
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
13883
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
13884
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
13885
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
13886
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
13887
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
13888
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
13889
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
13890
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
13891
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
13892
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
13893
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
13894
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13895
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
13896
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
13897
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13898
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
13899
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
13900
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
13901
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
13902
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
13903
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
13904
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
13905
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
13906
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13907
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13908
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
13909
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
13910
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13911
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13912
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
13913
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13914
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13915
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13916
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13917
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13918
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13919
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
13920
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13921
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13922
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13923
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
13924
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
13925
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
13926
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
13927
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
13928
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13929
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
13930
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
13931
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
13932
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
13933
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
13934
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13935
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
13936
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
13937
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13938
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13939
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
13940
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
13941
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
13942
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
13943
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13944
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13945
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
13946
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13947
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13948
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13949
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13950
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13951
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13952
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
13953
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
13954
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13955
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13956
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
13957
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
13958
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
13959
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13960
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
13961
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
13962
 
 
13963
LTCC='$LTCC'
 
13964
LTCFLAGS='$LTCFLAGS'
 
13965
compiler='$compiler_DEFAULT'
 
13966
 
 
13967
# Quote evaled strings.
 
13968
for var in SED \
 
13969
GREP \
 
13970
EGREP \
 
13971
FGREP \
 
13972
LD \
 
13973
NM \
 
13974
LN_S \
 
13975
lt_SP2NL \
 
13976
lt_NL2SP \
 
13977
reload_flag \
 
13978
deplibs_check_method \
 
13979
file_magic_cmd \
 
13980
AR \
 
13981
AR_FLAGS \
 
13982
STRIP \
 
13983
RANLIB \
 
13984
CC \
 
13985
CFLAGS \
 
13986
compiler \
 
13987
lt_cv_sys_global_symbol_pipe \
 
13988
lt_cv_sys_global_symbol_to_cdecl \
 
13989
lt_cv_sys_global_symbol_to_c_name_address \
 
13990
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13991
SHELL \
 
13992
ECHO \
 
13993
lt_prog_compiler_no_builtin_flag \
 
13994
lt_prog_compiler_wl \
 
13995
lt_prog_compiler_pic \
 
13996
lt_prog_compiler_static \
 
13997
lt_cv_prog_compiler_c_o \
 
13998
need_locks \
 
13999
DSYMUTIL \
 
14000
NMEDIT \
 
14001
LIPO \
 
14002
OTOOL \
 
14003
OTOOL64 \
 
14004
shrext_cmds \
 
14005
export_dynamic_flag_spec \
 
14006
whole_archive_flag_spec \
 
14007
compiler_needs_object \
 
14008
with_gnu_ld \
 
14009
allow_undefined_flag \
 
14010
no_undefined_flag \
 
14011
hardcode_libdir_flag_spec \
 
14012
hardcode_libdir_flag_spec_ld \
 
14013
hardcode_libdir_separator \
 
14014
fix_srcfile_path \
 
14015
exclude_expsyms \
 
14016
include_expsyms \
 
14017
file_list_spec \
 
14018
variables_saved_for_relink \
 
14019
libname_spec \
 
14020
library_names_spec \
 
14021
soname_spec \
 
14022
finish_eval \
 
14023
old_striplib \
 
14024
striplib; do
 
14025
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14026
    *[\\\\\\\`\\"\\\$]*)
 
14027
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14028
      ;;
 
14029
    *)
 
14030
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14031
      ;;
 
14032
    esac
 
14033
done
 
14034
 
 
14035
# Double-quote double-evaled strings.
 
14036
for var in reload_cmds \
 
14037
old_postinstall_cmds \
 
14038
old_postuninstall_cmds \
 
14039
old_archive_cmds \
 
14040
extract_expsyms_cmds \
 
14041
old_archive_from_new_cmds \
 
14042
old_archive_from_expsyms_cmds \
 
14043
archive_cmds \
 
14044
archive_expsym_cmds \
 
14045
module_cmds \
 
14046
module_expsym_cmds \
 
14047
export_symbols_cmds \
 
14048
prelink_cmds \
 
14049
postinstall_cmds \
 
14050
postuninstall_cmds \
 
14051
finish_cmds \
 
14052
sys_lib_search_path_spec \
 
14053
sys_lib_dlsearch_path_spec; do
 
14054
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14055
    *[\\\\\\\`\\"\\\$]*)
 
14056
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14057
      ;;
 
14058
    *)
 
14059
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14060
      ;;
 
14061
    esac
 
14062
done
 
14063
 
 
14064
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14065
case \$lt_ECHO in
 
14066
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14067
  ;;
 
14068
esac
 
14069
 
 
14070
ac_aux_dir='$ac_aux_dir'
 
14071
xsi_shell='$xsi_shell'
 
14072
lt_shell_append='$lt_shell_append'
 
14073
 
 
14074
# See if we are running on zsh, and set the options which allow our
 
14075
# commands through without removal of \ escapes INIT.
 
14076
if test -n "\${ZSH_VERSION+set}" ; then
 
14077
   setopt NO_GLOB_SUBST
 
14078
fi
 
14079
 
 
14080
 
 
14081
    PACKAGE='$PACKAGE'
 
14082
    VERSION='$VERSION'
 
14083
    TIMESTAMP='$TIMESTAMP'
 
14084
    RM='$RM'
 
14085
    ofile='$ofile'
 
14086
 
 
14087
 
 
14088
 
 
14089
 
 
14090
_ACEOF
 
14091
 
 
14092
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14093
 
 
14094
# Handling of arguments.
 
14095
for ac_config_target in $ac_config_targets
 
14096
do
 
14097
  case $ac_config_target in
 
14098
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
 
14099
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14100
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14101
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14102
 
 
14103
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
14104
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
14105
   { (exit 1); exit 1; }; };;
 
14106
  esac
 
14107
done
 
14108
 
 
14109
 
 
14110
# If the user did not use the arguments to specify the items to instantiate,
 
14111
# then the envvar interface is used.  Set only those that are not.
 
14112
# We use the long form for the default assignment because of an extremely
 
14113
# bizarre bug on SunOS 4.1.3.
 
14114
if $ac_need_defaults; then
 
14115
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14116
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14117
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14118
fi
 
14119
 
 
14120
# Have a temporary directory for convenience.  Make it in the build tree
 
14121
# simply because there is no reason against having it here, and in addition,
 
14122
# creating and moving files from /tmp can sometimes cause problems.
 
14123
# Hook for its removal unless debugging.
 
14124
# Note that there is a small window in which the directory will not be cleaned:
 
14125
# after its creation but before its name has been assigned to `$tmp'.
 
14126
$debug ||
 
14127
{
 
14128
  tmp=
 
14129
  trap 'exit_status=$?
 
14130
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14131
' 0
 
14132
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
14133
}
 
14134
# Create a (secure) tmp directory for tmp files.
 
14135
 
 
14136
{
 
14137
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14138
  test -n "$tmp" && test -d "$tmp"
 
14139
}  ||
 
14140
{
 
14141
  tmp=./conf$$-$RANDOM
 
14142
  (umask 077 && mkdir "$tmp")
 
14143
} ||
 
14144
{
 
14145
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
14146
   { (exit 1); exit 1; }
 
14147
}
 
14148
 
 
14149
# Set up the scripts for CONFIG_FILES section.
 
14150
# No need to generate them if there are no CONFIG_FILES.
 
14151
# This happens for instance with `./config.status config.h'.
 
14152
if test -n "$CONFIG_FILES"; then
 
14153
 
 
14154
 
 
14155
ac_cr='
 
 
b"'"
 
14156
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14157
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14158
  ac_cs_awk_cr='\\r'
 
14159
else
 
14160
  ac_cs_awk_cr=$ac_cr
 
14161
fi
 
14162
 
 
14163
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
14164
_ACEOF
 
14165
 
 
14166
 
 
14167
{
 
14168
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14169
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14170
  echo "_ACEOF"
 
14171
} >conf$$subs.sh ||
 
14172
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14173
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14174
   { (exit 1); exit 1; }; }
 
14175
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
14176
ac_delim='%!_!# '
 
14177
for ac_last_try in false false false false false :; do
 
14178
  . ./conf$$subs.sh ||
 
14179
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14180
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14181
   { (exit 1); exit 1; }; }
 
14182
 
 
14183
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14184
  if test $ac_delim_n = $ac_delim_num; then
 
14185
    break
 
14186
  elif $ac_last_try; then
 
14187
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14188
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14189
   { (exit 1); exit 1; }; }
 
14190
  else
 
14191
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14192
  fi
 
14193
done
 
14194
rm -f conf$$subs.sh
 
14195
 
 
14196
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14197
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
14198
_ACEOF
 
14199
sed -n '
 
14200
h
 
14201
s/^/S["/; s/!.*/"]=/
 
14202
p
 
14203
g
 
14204
s/^[^!]*!//
 
14205
:repl
 
14206
t repl
 
14207
s/'"$ac_delim"'$//
 
14208
t delim
 
14209
:nl
 
14210
h
 
14211
s/\(.\{148\}\).*/\1/
 
14212
t more1
 
14213
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14214
p
 
14215
n
 
14216
b repl
 
14217
:more1
 
14218
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14219
p
 
14220
g
 
14221
s/.\{148\}//
 
14222
t nl
 
14223
:delim
 
14224
h
 
14225
s/\(.\{148\}\).*/\1/
 
14226
t more2
 
14227
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14228
p
 
14229
b
 
14230
:more2
 
14231
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14232
p
 
14233
g
 
14234
s/.\{148\}//
 
14235
t delim
 
14236
' <conf$$subs.awk | sed '
 
14237
/^[^""]/{
 
14238
  N
 
14239
  s/\n//
 
14240
}
 
14241
' >>$CONFIG_STATUS || ac_write_fail=1
 
14242
rm -f conf$$subs.awk
 
14243
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14244
_ACAWK
 
14245
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
14246
  for (key in S) S_is_set[key] = 1
 
14247
  FS = ""
 
14248
 
 
14249
}
 
14250
{
 
14251
  line = $ 0
 
14252
  nfields = split(line, field, "@")
 
14253
  substed = 0
 
14254
  len = length(field[1])
 
14255
  for (i = 2; i < nfields; i++) {
 
14256
    key = field[i]
 
14257
    keylen = length(key)
 
14258
    if (S_is_set[key]) {
 
14259
      value = S[key]
 
14260
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14261
      len += length(value) + length(field[++i])
 
14262
      substed = 1
 
14263
    } else
 
14264
      len += 1 + keylen
 
14265
  }
 
14266
 
 
14267
  print line
 
14268
}
 
14269
 
 
14270
_ACAWK
 
14271
_ACEOF
 
14272
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14273
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14274
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14275
else
 
14276
  cat
 
14277
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
14278
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
14279
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
14280
   { (exit 1); exit 1; }; }
 
14281
_ACEOF
 
14282
 
 
14283
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
14284
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
14285
# trailing colons and then remove the whole line if VPATH becomes empty
 
14286
# (actually we leave an empty line to preserve line numbers).
 
14287
if test "x$srcdir" = x.; then
 
14288
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
14289
s/:*\$(srcdir):*/:/
 
14290
s/:*\${srcdir}:*/:/
 
14291
s/:*@srcdir@:*/:/
 
14292
s/^\([^=]*=[     ]*\):*/\1/
 
14293
s/:*$//
 
14294
s/^[^=]*=[       ]*$//
 
14295
}'
 
14296
fi
 
14297
 
 
14298
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14299
fi # test -n "$CONFIG_FILES"
 
14300
 
 
14301
# Set up the scripts for CONFIG_HEADERS section.
 
14302
# No need to generate them if there are no CONFIG_HEADERS.
 
14303
# This happens for instance with `./config.status Makefile'.
 
14304
if test -n "$CONFIG_HEADERS"; then
 
14305
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
14306
BEGIN {
 
14307
_ACEOF
 
14308
 
 
14309
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14310
# here-document in config.status, that substitutes the proper values into
 
14311
# config.h.in to produce config.h.
 
14312
 
 
14313
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14314
# handling of long lines.
 
14315
ac_delim='%!_!# '
 
14316
for ac_last_try in false false :; do
 
14317
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
14318
  if test -z "$ac_t"; then
 
14319
    break
 
14320
  elif $ac_last_try; then
 
14321
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
14322
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
14323
   { (exit 1); exit 1; }; }
 
14324
  else
 
14325
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14326
  fi
 
14327
done
 
14328
 
 
14329
# For the awk script, D is an array of macro values keyed by name,
 
14330
# likewise P contains macro parameters if any.  Preserve backslash
 
14331
# newline sequences.
 
14332
 
 
14333
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14334
sed -n '
 
14335
s/.\{148\}/&'"$ac_delim"'/g
 
14336
t rset
 
14337
:rset
 
14338
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14339
t def
 
14340
d
 
14341
:def
 
14342
s/\\$//
 
14343
t bsnl
 
14344
s/["\\]/\\&/g
 
14345
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14346
D["\1"]=" \3"/p
 
14347
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14348
d
 
14349
:bsnl
 
14350
s/["\\]/\\&/g
 
14351
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14352
D["\1"]=" \3\\\\\\n"\\/p
 
14353
t cont
 
14354
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14355
t cont
 
14356
d
 
14357
:cont
 
14358
n
 
14359
s/.\{148\}/&'"$ac_delim"'/g
 
14360
t clear
 
14361
:clear
 
14362
s/\\$//
 
14363
t bsnlc
 
14364
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14365
d
 
14366
:bsnlc
 
14367
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14368
b cont
 
14369
' <confdefs.h | sed '
 
14370
s/'"$ac_delim"'/"\\\
 
14371
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14372
 
 
14373
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14374
  for (key in D) D_is_set[key] = 1
 
14375
  FS = ""
 
14376
}
 
14377
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14378
  line = \$ 0
 
14379
  split(line, arg, " ")
 
14380
  if (arg[1] == "#") {
 
14381
    defundef = arg[2]
 
14382
    mac1 = arg[3]
 
14383
  } else {
 
14384
    defundef = substr(arg[1], 2)
 
14385
    mac1 = arg[2]
 
14386
  }
 
14387
  split(mac1, mac2, "(") #)
 
14388
  macro = mac2[1]
 
14389
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14390
  if (D_is_set[macro]) {
 
14391
    # Preserve the white space surrounding the "#".
 
14392
    print prefix "define", macro P[macro] D[macro]
 
14393
    next
 
14394
  } else {
 
14395
    # Replace #undef with comments.  This is necessary, for example,
 
14396
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14397
    # on some systems where configure will not decide to define it.
 
14398
    if (defundef == "undef") {
 
14399
      print "/*", prefix defundef, macro, "*/"
 
14400
      next
 
14401
    }
 
14402
  }
 
14403
}
 
14404
{ print }
 
14405
_ACAWK
 
14406
_ACEOF
 
14407
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14408
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
14409
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
14410
   { (exit 1); exit 1; }; }
 
14411
fi # test -n "$CONFIG_HEADERS"
 
14412
 
 
14413
 
 
14414
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14415
shift
 
14416
for ac_tag
 
14417
do
 
14418
  case $ac_tag in
 
14419
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14420
  esac
 
14421
  case $ac_mode$ac_tag in
 
14422
  :[FHL]*:*);;
 
14423
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
14424
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
14425
   { (exit 1); exit 1; }; };;
 
14426
  :[FH]-) ac_tag=-:-;;
 
14427
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14428
  esac
 
14429
  ac_save_IFS=$IFS
 
14430
  IFS=:
 
14431
  set x $ac_tag
 
14432
  IFS=$ac_save_IFS
 
14433
  shift
 
14434
  ac_file=$1
 
14435
  shift
 
14436
 
 
14437
  case $ac_mode in
 
14438
  :L) ac_source=$1;;
 
14439
  :[FH])
 
14440
    ac_file_inputs=
 
14441
    for ac_f
 
14442
    do
 
14443
      case $ac_f in
 
14444
      -) ac_f="$tmp/stdin";;
 
14445
      *) # Look for the file first in the build tree, then in the source tree
 
14446
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14447
         # because $ac_f cannot contain `:'.
 
14448
         test -f "$ac_f" ||
 
14449
           case $ac_f in
 
14450
           [\\/$]*) false;;
 
14451
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14452
           esac ||
 
14453
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
14454
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
14455
   { (exit 1); exit 1; }; };;
 
14456
      esac
 
14457
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14458
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
14459
    done
 
14460
 
 
14461
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14462
    # use $as_me), people would be surprised to read:
 
14463
    #    /* config.h.  Generated by config.status.  */
 
14464
    configure_input='Generated from '`
 
14465
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14466
        `' by configure.'
 
14467
    if test x"$ac_file" != x-; then
 
14468
      configure_input="$ac_file.  $configure_input"
 
14469
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
14470
$as_echo "$as_me: creating $ac_file" >&6;}
 
14471
    fi
 
14472
    # Neutralize special characters interpreted by sed in replacement strings.
 
14473
    case $configure_input in #(
 
14474
    *\&* | *\|* | *\\* )
 
14475
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14476
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14477
    *) ac_sed_conf_input=$configure_input;;
 
14478
    esac
 
14479
 
 
14480
    case $ac_tag in
 
14481
    *:-:* | *:-) cat >"$tmp/stdin" \
 
14482
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14483
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14484
   { (exit 1); exit 1; }; } ;;
 
14485
    esac
 
14486
    ;;
 
14487
  esac
 
14488
 
 
14489
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14490
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14491
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14492
         X"$ac_file" : 'X\(//\)$' \| \
 
14493
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14494
$as_echo X"$ac_file" |
 
14495
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14496
            s//\1/
 
14497
            q
 
14498
          }
 
14499
          /^X\(\/\/\)[^/].*/{
 
14500
            s//\1/
 
14501
            q
 
14502
          }
 
14503
          /^X\(\/\/\)$/{
 
14504
            s//\1/
 
14505
            q
 
14506
          }
 
14507
          /^X\(\/\).*/{
 
14508
            s//\1/
 
14509
            q
 
14510
          }
 
14511
          s/.*/./; q'`
 
14512
  { as_dir="$ac_dir"
 
14513
  case $as_dir in #(
 
14514
  -*) as_dir=./$as_dir;;
 
14515
  esac
 
14516
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
14517
    as_dirs=
 
14518
    while :; do
 
14519
      case $as_dir in #(
 
14520
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14521
      *) as_qdir=$as_dir;;
 
14522
      esac
 
14523
      as_dirs="'$as_qdir' $as_dirs"
 
14524
      as_dir=`$as_dirname -- "$as_dir" ||
 
14525
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14526
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14527
         X"$as_dir" : 'X\(//\)$' \| \
 
14528
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14529
$as_echo X"$as_dir" |
 
14530
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14531
            s//\1/
 
14532
            q
 
14533
          }
 
14534
          /^X\(\/\/\)[^/].*/{
 
14535
            s//\1/
 
14536
            q
 
14537
          }
 
14538
          /^X\(\/\/\)$/{
 
14539
            s//\1/
 
14540
            q
 
14541
          }
 
14542
          /^X\(\/\).*/{
 
14543
            s//\1/
 
14544
            q
 
14545
          }
 
14546
          s/.*/./; q'`
 
14547
      test -d "$as_dir" && break
 
14548
    done
 
14549
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14550
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
14551
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
14552
   { (exit 1); exit 1; }; }; }
 
14553
  ac_builddir=.
 
14554
 
 
14555
case "$ac_dir" in
 
14556
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14557
*)
 
14558
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14559
  # A ".." for each directory in $ac_dir_suffix.
 
14560
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14561
  case $ac_top_builddir_sub in
 
14562
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14563
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14564
  esac ;;
 
14565
esac
 
14566
ac_abs_top_builddir=$ac_pwd
 
14567
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14568
# for backward compatibility:
 
14569
ac_top_builddir=$ac_top_build_prefix
 
14570
 
 
14571
case $srcdir in
 
14572
  .)  # We are building in place.
 
14573
    ac_srcdir=.
 
14574
    ac_top_srcdir=$ac_top_builddir_sub
 
14575
    ac_abs_top_srcdir=$ac_pwd ;;
 
14576
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14577
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14578
    ac_top_srcdir=$srcdir
 
14579
    ac_abs_top_srcdir=$srcdir ;;
 
14580
  *) # Relative name.
 
14581
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14582
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14583
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14584
esac
 
14585
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14586
 
 
14587
 
 
14588
  case $ac_mode in
 
14589
  :F)
 
14590
  #
 
14591
  # CONFIG_FILE
 
14592
  #
 
14593
 
 
14594
  case $INSTALL in
 
14595
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14596
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14597
  esac
 
14598
  ac_MKDIR_P=$MKDIR_P
 
14599
  case $MKDIR_P in
 
14600
  [\\/$]* | ?:[\\/]* ) ;;
 
14601
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14602
  esac
 
14603
_ACEOF
 
14604
 
 
14605
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14606
# If the template does not know about datarootdir, expand it.
 
14607
# FIXME: This hack should be removed a few years after 2.60.
 
14608
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14609
 
 
14610
ac_sed_dataroot='
 
14611
/datarootdir/ {
 
14612
  p
 
14613
  q
 
14614
}
 
14615
/@datadir@/p
 
14616
/@docdir@/p
 
14617
/@infodir@/p
 
14618
/@localedir@/p
 
14619
/@mandir@/p
 
14620
'
 
14621
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14622
*datarootdir*) ac_datarootdir_seen=yes;;
 
14623
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14624
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14625
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14626
_ACEOF
 
14627
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14628
  ac_datarootdir_hack='
 
14629
  s&@datadir@&$datadir&g
 
14630
  s&@docdir@&$docdir&g
 
14631
  s&@infodir@&$infodir&g
 
14632
  s&@localedir@&$localedir&g
 
14633
  s&@mandir@&$mandir&g
 
14634
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
14635
esac
 
14636
_ACEOF
 
14637
 
 
14638
# Neutralize VPATH when `$srcdir' = `.'.
 
14639
# Shell code in configure.ac might set extrasub.
 
14640
# FIXME: do we really want to maintain this feature?
 
14641
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14642
ac_sed_extra="$ac_vpsub
 
14643
$extrasub
 
14644
_ACEOF
 
14645
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14646
:t
 
14647
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14648
s|@configure_input@|$ac_sed_conf_input|;t t
 
14649
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14650
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14651
s&@srcdir@&$ac_srcdir&;t t
 
14652
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14653
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14654
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14655
s&@builddir@&$ac_builddir&;t t
 
14656
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14657
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14658
s&@INSTALL@&$ac_INSTALL&;t t
 
14659
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14660
$ac_datarootdir_hack
 
14661
"
 
14662
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
14663
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14664
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14665
   { (exit 1); exit 1; }; }
 
14666
 
 
14667
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14668
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
14669
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
14670
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14671
which seems to be undefined.  Please make sure it is defined." >&5
 
14672
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14673
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14674
 
 
14675
  rm -f "$tmp/stdin"
 
14676
  case $ac_file in
 
14677
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
14678
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
14679
  esac \
 
14680
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14681
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14682
   { (exit 1); exit 1; }; }
 
14683
 ;;
 
14684
  :H)
 
14685
  #
 
14686
  # CONFIG_HEADER
 
14687
  #
 
14688
  if test x"$ac_file" != x-; then
 
14689
    {
 
14690
      $as_echo "/* $configure_input  */" \
 
14691
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
14692
    } >"$tmp/config.h" \
 
14693
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14694
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14695
   { (exit 1); exit 1; }; }
 
14696
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
14697
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
14698
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14699
    else
 
14700
      rm -f "$ac_file"
 
14701
      mv "$tmp/config.h" "$ac_file" \
 
14702
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14703
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14704
   { (exit 1); exit 1; }; }
 
14705
    fi
 
14706
  else
 
14707
    $as_echo "/* $configure_input  */" \
 
14708
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
14709
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
14710
$as_echo "$as_me: error: could not create -" >&2;}
 
14711
   { (exit 1); exit 1; }; }
 
14712
  fi
 
14713
# Compute "$ac_file"'s index in $config_headers.
 
14714
_am_arg="$ac_file"
 
14715
_am_stamp_count=1
 
14716
for _am_header in $config_headers :; do
 
14717
  case $_am_header in
 
14718
    $_am_arg | $_am_arg:* )
 
14719
      break ;;
 
14720
    * )
 
14721
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14722
  esac
 
14723
done
 
14724
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14725
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14726
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14727
         X"$_am_arg" : 'X\(//\)$' \| \
 
14728
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14729
$as_echo X"$_am_arg" |
 
14730
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14731
            s//\1/
 
14732
            q
 
14733
          }
 
14734
          /^X\(\/\/\)[^/].*/{
 
14735
            s//\1/
 
14736
            q
 
14737
          }
 
14738
          /^X\(\/\/\)$/{
 
14739
            s//\1/
 
14740
            q
 
14741
          }
 
14742
          /^X\(\/\).*/{
 
14743
            s//\1/
 
14744
            q
 
14745
          }
 
14746
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14747
 ;;
 
14748
 
 
14749
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
14750
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14751
 ;;
 
14752
  esac
 
14753
 
 
14754
 
 
14755
  case $ac_file$ac_mode in
 
14756
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
14757
  # Strip MF so we end up with the name of the file.
 
14758
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14759
  # Check whether this is an Automake generated Makefile or not.
 
14760
  # We used to match only the files named `Makefile.in', but
 
14761
  # some people rename them; so instead we look at the file content.
 
14762
  # Grep'ing the first line is not enough: some people post-process
 
14763
  # each Makefile.in and add a new line on top of each file to say so.
 
14764
  # Grep'ing the whole file is not good either: AIX grep has a line
 
14765
  # limit of 2048, but all sed's we know have understand at least 4000.
 
14766
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14767
    dirpart=`$as_dirname -- "$mf" ||
 
14768
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14769
         X"$mf" : 'X\(//\)[^/]' \| \
 
14770
         X"$mf" : 'X\(//\)$' \| \
 
14771
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14772
$as_echo X"$mf" |
 
14773
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14774
            s//\1/
 
14775
            q
 
14776
          }
 
14777
          /^X\(\/\/\)[^/].*/{
 
14778
            s//\1/
 
14779
            q
 
14780
          }
 
14781
          /^X\(\/\/\)$/{
 
14782
            s//\1/
 
14783
            q
 
14784
          }
 
14785
          /^X\(\/\).*/{
 
14786
            s//\1/
 
14787
            q
 
14788
          }
 
14789
          s/.*/./; q'`
 
14790
  else
 
14791
    continue
 
14792
  fi
 
14793
  # Extract the definition of DEPDIR, am__include, and am__quote
 
14794
  # from the Makefile without running `make'.
 
14795
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14796
  test -z "$DEPDIR" && continue
 
14797
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14798
  test -z "am__include" && continue
 
14799
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14800
  # When using ansi2knr, U may be empty or an underscore; expand it
 
14801
  U=`sed -n 's/^U = //p' < "$mf"`
 
14802
  # Find all dependency output files, they are included files with
 
14803
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14804
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
14805
  # expansion.
 
14806
  for file in `sed -n "
 
14807
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14808
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
14809
    # Make sure the directory exists.
 
14810
    test -f "$dirpart/$file" && continue
 
14811
    fdir=`$as_dirname -- "$file" ||
 
14812
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14813
         X"$file" : 'X\(//\)[^/]' \| \
 
14814
         X"$file" : 'X\(//\)$' \| \
 
14815
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14816
$as_echo X"$file" |
 
14817
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14818
            s//\1/
 
14819
            q
 
14820
          }
 
14821
          /^X\(\/\/\)[^/].*/{
 
14822
            s//\1/
 
14823
            q
 
14824
          }
 
14825
          /^X\(\/\/\)$/{
 
14826
            s//\1/
 
14827
            q
 
14828
          }
 
14829
          /^X\(\/\).*/{
 
14830
            s//\1/
 
14831
            q
 
14832
          }
 
14833
          s/.*/./; q'`
 
14834
    { as_dir=$dirpart/$fdir
 
14835
  case $as_dir in #(
 
14836
  -*) as_dir=./$as_dir;;
 
14837
  esac
 
14838
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
14839
    as_dirs=
 
14840
    while :; do
 
14841
      case $as_dir in #(
 
14842
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14843
      *) as_qdir=$as_dir;;
 
14844
      esac
 
14845
      as_dirs="'$as_qdir' $as_dirs"
 
14846
      as_dir=`$as_dirname -- "$as_dir" ||
 
14847
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14848
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14849
         X"$as_dir" : 'X\(//\)$' \| \
 
14850
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14851
$as_echo X"$as_dir" |
 
14852
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14853
            s//\1/
 
14854
            q
 
14855
          }
 
14856
          /^X\(\/\/\)[^/].*/{
 
14857
            s//\1/
 
14858
            q
 
14859
          }
 
14860
          /^X\(\/\/\)$/{
 
14861
            s//\1/
 
14862
            q
 
14863
          }
 
14864
          /^X\(\/\).*/{
 
14865
            s//\1/
 
14866
            q
 
14867
          }
 
14868
          s/.*/./; q'`
 
14869
      test -d "$as_dir" && break
 
14870
    done
 
14871
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14872
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
14873
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
14874
   { (exit 1); exit 1; }; }; }
 
14875
    # echo "creating $dirpart/$file"
 
14876
    echo '# dummy' > "$dirpart/$file"
 
14877
  done
 
14878
done
 
14879
 ;;
 
14880
    "libtool":C)
 
14881
 
 
14882
    # See if we are running on zsh, and set the options which allow our
 
14883
    # commands through without removal of \ escapes.
 
14884
    if test -n "${ZSH_VERSION+set}" ; then
 
14885
      setopt NO_GLOB_SUBST
 
14886
    fi
 
14887
 
 
14888
    cfgfile="${ofile}T"
 
14889
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14890
    $RM "$cfgfile"
 
14891
 
 
14892
    cat <<_LT_EOF >> "$cfgfile"
 
14893
#! $SHELL
 
14894
 
 
14895
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14896
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14897
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14898
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14899
#
 
14900
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14901
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
14902
#   Written by Gordon Matzigkeit, 1996
 
14903
#
 
14904
#   This file is part of GNU Libtool.
 
14905
#
 
14906
# GNU Libtool is free software; you can redistribute it and/or
 
14907
# modify it under the terms of the GNU General Public License as
 
14908
# published by the Free Software Foundation; either version 2 of
 
14909
# the License, or (at your option) any later version.
 
14910
#
 
14911
# As a special exception to the GNU General Public License,
 
14912
# if you distribute this file as part of a program or library that
 
14913
# is built using GNU Libtool, you may include this file under the
 
14914
# same distribution terms that you use for the rest of that program.
 
14915
#
 
14916
# GNU Libtool is distributed in the hope that it will be useful,
 
14917
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14918
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14919
# GNU General Public License for more details.
 
14920
#
 
14921
# You should have received a copy of the GNU General Public License
 
14922
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14923
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14924
# obtained by writing to the Free Software Foundation, Inc.,
 
14925
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14926
 
 
14927
 
 
14928
# The names of the tagged configurations supported by this script.
 
14929
available_tags=""
 
14930
 
 
14931
# ### BEGIN LIBTOOL CONFIG
 
14932
 
 
14933
# Which release of libtool.m4 was used?
 
14934
macro_version=$macro_version
 
14935
macro_revision=$macro_revision
 
14936
 
 
14937
# Assembler program.
 
14938
AS=$AS
 
14939
 
 
14940
# DLL creation program.
 
14941
DLLTOOL=$DLLTOOL
 
14942
 
 
14943
# Object dumper program.
 
14944
OBJDUMP=$OBJDUMP
 
14945
 
 
14946
# Whether or not to build shared libraries.
 
14947
build_libtool_libs=$enable_shared
 
14948
 
 
14949
# Whether or not to build static libraries.
 
14950
build_old_libs=$enable_static
 
14951
 
 
14952
# What type of objects to build.
 
14953
pic_mode=$pic_mode
 
14954
 
 
14955
# Whether or not to optimize for fast installation.
 
14956
fast_install=$enable_fast_install
 
14957
 
 
14958
# The host system.
 
14959
host_alias=$host_alias
 
14960
host=$host
 
14961
host_os=$host_os
 
14962
 
 
14963
# The build system.
 
14964
build_alias=$build_alias
 
14965
build=$build
 
14966
build_os=$build_os
 
14967
 
 
14968
# A sed program that does not truncate output.
 
14969
SED=$lt_SED
 
14970
 
 
14971
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14972
Xsed="\$SED -e 1s/^X//"
 
14973
 
 
14974
# A grep program that handles long lines.
 
14975
GREP=$lt_GREP
 
14976
 
 
14977
# An ERE matcher.
 
14978
EGREP=$lt_EGREP
 
14979
 
 
14980
# A literal string matcher.
 
14981
FGREP=$lt_FGREP
 
14982
 
 
14983
# A BSD- or MS-compatible name lister.
 
14984
NM=$lt_NM
 
14985
 
 
14986
# Whether we need soft or hard links.
 
14987
LN_S=$lt_LN_S
 
14988
 
 
14989
# What is the maximum length of a command?
 
14990
max_cmd_len=$max_cmd_len
 
14991
 
 
14992
# Object file suffix (normally "o").
 
14993
objext=$ac_objext
 
14994
 
 
14995
# Executable file suffix (normally "").
 
14996
exeext=$exeext
 
14997
 
 
14998
# whether the shell understands "unset".
 
14999
lt_unset=$lt_unset
 
15000
 
 
15001
# turn spaces into newlines.
 
15002
SP2NL=$lt_lt_SP2NL
 
15003
 
 
15004
# turn newlines into spaces.
 
15005
NL2SP=$lt_lt_NL2SP
 
15006
 
 
15007
# How to create reloadable object files.
 
15008
reload_flag=$lt_reload_flag
 
15009
reload_cmds=$lt_reload_cmds
 
15010
 
 
15011
# Method to check whether dependent libraries are shared objects.
 
15012
deplibs_check_method=$lt_deplibs_check_method
 
15013
 
 
15014
# Command to use when deplibs_check_method == "file_magic".
 
15015
file_magic_cmd=$lt_file_magic_cmd
 
15016
 
 
15017
# The archiver.
 
15018
AR=$lt_AR
 
15019
AR_FLAGS=$lt_AR_FLAGS
 
15020
 
 
15021
# A symbol stripping program.
 
15022
STRIP=$lt_STRIP
 
15023
 
 
15024
# Commands used to install an old-style archive.
 
15025
RANLIB=$lt_RANLIB
 
15026
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15027
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15028
 
 
15029
# A C compiler.
 
15030
LTCC=$lt_CC
 
15031
 
 
15032
# LTCC compiler flags.
 
15033
LTCFLAGS=$lt_CFLAGS
 
15034
 
 
15035
# Take the output of nm and produce a listing of raw symbols and C names.
 
15036
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15037
 
 
15038
# Transform the output of nm in a proper C declaration.
 
15039
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15040
 
 
15041
# Transform the output of nm in a C name address pair.
 
15042
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15043
 
 
15044
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15045
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15046
 
 
15047
# The name of the directory that contains temporary libtool files.
 
15048
objdir=$objdir
 
15049
 
 
15050
# Shell to use when invoking shell scripts.
 
15051
SHELL=$lt_SHELL
 
15052
 
 
15053
# An echo program that does not interpret backslashes.
 
15054
ECHO=$lt_ECHO
 
15055
 
 
15056
# Used to examine libraries when file_magic_cmd begins with "file".
 
15057
MAGIC_CMD=$MAGIC_CMD
 
15058
 
 
15059
# Must we lock files when doing compilation?
 
15060
need_locks=$lt_need_locks
 
15061
 
 
15062
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15063
DSYMUTIL=$lt_DSYMUTIL
 
15064
 
 
15065
# Tool to change global to local symbols on Mac OS X.
 
15066
NMEDIT=$lt_NMEDIT
 
15067
 
 
15068
# Tool to manipulate fat objects and archives on Mac OS X.
 
15069
LIPO=$lt_LIPO
 
15070
 
 
15071
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15072
OTOOL=$lt_OTOOL
 
15073
 
 
15074
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15075
OTOOL64=$lt_OTOOL64
 
15076
 
 
15077
# Old archive suffix (normally "a").
 
15078
libext=$libext
 
15079
 
 
15080
# Shared library suffix (normally ".so").
 
15081
shrext_cmds=$lt_shrext_cmds
 
15082
 
 
15083
# The commands to extract the exported symbol list from a shared archive.
 
15084
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15085
 
 
15086
# Variables whose values should be saved in libtool wrapper scripts and
 
15087
# restored at link time.
 
15088
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15089
 
 
15090
# Do we need the "lib" prefix for modules?
 
15091
need_lib_prefix=$need_lib_prefix
 
15092
 
 
15093
# Do we need a version for libraries?
 
15094
need_version=$need_version
 
15095
 
 
15096
# Library versioning type.
 
15097
version_type=$version_type
 
15098
 
 
15099
# Shared library runtime path variable.
 
15100
runpath_var=$runpath_var
 
15101
 
 
15102
# Shared library path variable.
 
15103
shlibpath_var=$shlibpath_var
 
15104
 
 
15105
# Is shlibpath searched before the hard-coded library search path?
 
15106
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15107
 
 
15108
# Format of library name prefix.
 
15109
libname_spec=$lt_libname_spec
 
15110
 
 
15111
# List of archive names.  First name is the real one, the rest are links.
 
15112
# The last name is the one that the linker finds with -lNAME
 
15113
library_names_spec=$lt_library_names_spec
 
15114
 
 
15115
# The coded name of the library, if different from the real name.
 
15116
soname_spec=$lt_soname_spec
 
15117
 
 
15118
# Command to use after installation of a shared archive.
 
15119
postinstall_cmds=$lt_postinstall_cmds
 
15120
 
 
15121
# Command to use after uninstallation of a shared archive.
 
15122
postuninstall_cmds=$lt_postuninstall_cmds
 
15123
 
 
15124
# Commands used to finish a libtool library installation in a directory.
 
15125
finish_cmds=$lt_finish_cmds
 
15126
 
 
15127
# As "finish_cmds", except a single script fragment to be evaled but
 
15128
# not shown.
 
15129
finish_eval=$lt_finish_eval
 
15130
 
 
15131
# Whether we should hardcode library paths into libraries.
 
15132
hardcode_into_libs=$hardcode_into_libs
 
15133
 
 
15134
# Compile-time system search path for libraries.
 
15135
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15136
 
 
15137
# Run-time system search path for libraries.
 
15138
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15139
 
 
15140
# Whether dlopen is supported.
 
15141
dlopen_support=$enable_dlopen
 
15142
 
 
15143
# Whether dlopen of programs is supported.
 
15144
dlopen_self=$enable_dlopen_self
 
15145
 
 
15146
# Whether dlopen of statically linked programs is supported.
 
15147
dlopen_self_static=$enable_dlopen_self_static
 
15148
 
 
15149
# Commands to strip libraries.
 
15150
old_striplib=$lt_old_striplib
 
15151
striplib=$lt_striplib
 
15152
 
 
15153
 
 
15154
# The linker used to build libraries.
 
15155
LD=$lt_LD
 
15156
 
 
15157
# Commands used to build an old-style archive.
 
15158
old_archive_cmds=$lt_old_archive_cmds
 
15159
 
 
15160
# A language specific compiler.
 
15161
CC=$lt_compiler
 
15162
 
 
15163
# Is the compiler the GNU compiler?
 
15164
with_gcc=$GCC
 
15165
 
 
15166
# Compiler flag to turn off builtin functions.
 
15167
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15168
 
 
15169
# How to pass a linker flag through the compiler.
 
15170
wl=$lt_lt_prog_compiler_wl
 
15171
 
 
15172
# Additional compiler flags for building library objects.
 
15173
pic_flag=$lt_lt_prog_compiler_pic
 
15174
 
 
15175
# Compiler flag to prevent dynamic linking.
 
15176
link_static_flag=$lt_lt_prog_compiler_static
 
15177
 
 
15178
# Does compiler simultaneously support -c and -o options?
 
15179
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15180
 
 
15181
# Whether or not to add -lc for building shared libraries.
 
15182
build_libtool_need_lc=$archive_cmds_need_lc
 
15183
 
 
15184
# Whether or not to disallow shared libs when runtime libs are static.
 
15185
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15186
 
 
15187
# Compiler flag to allow reflexive dlopens.
 
15188
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15189
 
 
15190
# Compiler flag to generate shared objects directly from archives.
 
15191
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15192
 
 
15193
# Whether the compiler copes with passing no objects directly.
 
15194
compiler_needs_object=$lt_compiler_needs_object
 
15195
 
 
15196
# Create an old-style archive from a shared archive.
 
15197
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15198
 
 
15199
# Create a temporary old-style archive to link instead of a shared archive.
 
15200
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15201
 
 
15202
# Commands used to build a shared archive.
 
15203
archive_cmds=$lt_archive_cmds
 
15204
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15205
 
 
15206
# Commands used to build a loadable module if different from building
 
15207
# a shared archive.
 
15208
module_cmds=$lt_module_cmds
 
15209
module_expsym_cmds=$lt_module_expsym_cmds
 
15210
 
 
15211
# Whether we are building with GNU ld or not.
 
15212
with_gnu_ld=$lt_with_gnu_ld
 
15213
 
 
15214
# Flag that allows shared libraries with undefined symbols to be built.
 
15215
allow_undefined_flag=$lt_allow_undefined_flag
 
15216
 
 
15217
# Flag that enforces no undefined symbols.
 
15218
no_undefined_flag=$lt_no_undefined_flag
 
15219
 
 
15220
# Flag to hardcode \$libdir into a binary during linking.
 
15221
# This must work even if \$libdir does not exist
 
15222
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15223
 
 
15224
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15225
# during linking.  This must work even if \$libdir does not exist.
 
15226
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15227
 
 
15228
# Whether we need a single "-rpath" flag with a separated argument.
 
15229
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15230
 
 
15231
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15232
# DIR into the resulting binary.
 
15233
hardcode_direct=$hardcode_direct
 
15234
 
 
15235
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15236
# DIR into the resulting binary and the resulting library dependency is
 
15237
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15238
# library is relocated.
 
15239
hardcode_direct_absolute=$hardcode_direct_absolute
 
15240
 
 
15241
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15242
# into the resulting binary.
 
15243
hardcode_minus_L=$hardcode_minus_L
 
15244
 
 
15245
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15246
# into the resulting binary.
 
15247
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15248
 
 
15249
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15250
# into the library and all subsequent libraries and executables linked
 
15251
# against it.
 
15252
hardcode_automatic=$hardcode_automatic
 
15253
 
 
15254
# Set to yes if linker adds runtime paths of dependent libraries
 
15255
# to runtime path list.
 
15256
inherit_rpath=$inherit_rpath
 
15257
 
 
15258
# Whether libtool must link a program against all its dependency libraries.
 
15259
link_all_deplibs=$link_all_deplibs
 
15260
 
 
15261
# Fix the shell variable \$srcfile for the compiler.
 
15262
fix_srcfile_path=$lt_fix_srcfile_path
 
15263
 
 
15264
# Set to "yes" if exported symbols are required.
 
15265
always_export_symbols=$always_export_symbols
 
15266
 
 
15267
# The commands to list exported symbols.
 
15268
export_symbols_cmds=$lt_export_symbols_cmds
 
15269
 
 
15270
# Symbols that should not be listed in the preloaded symbols.
 
15271
exclude_expsyms=$lt_exclude_expsyms
 
15272
 
 
15273
# Symbols that must always be exported.
 
15274
include_expsyms=$lt_include_expsyms
 
15275
 
 
15276
# Commands necessary for linking programs (against libraries) with templates.
 
15277
prelink_cmds=$lt_prelink_cmds
 
15278
 
 
15279
# Specify filename containing input files.
 
15280
file_list_spec=$lt_file_list_spec
 
15281
 
 
15282
# How to hardcode a shared library path into an executable.
 
15283
hardcode_action=$hardcode_action
 
15284
 
 
15285
# ### END LIBTOOL CONFIG
 
15286
 
 
15287
_LT_EOF
 
15288
 
 
15289
  case $host_os in
 
15290
  aix3*)
 
15291
    cat <<\_LT_EOF >> "$cfgfile"
 
15292
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15293
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15294
# vanish in a puff of smoke.
 
15295
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15296
  COLLECT_NAMES=
 
15297
  export COLLECT_NAMES
 
15298
fi
 
15299
_LT_EOF
 
15300
    ;;
 
15301
  esac
 
15302
 
 
15303
 
 
15304
ltmain="$ac_aux_dir/ltmain.sh"
 
15305
 
 
15306
 
 
15307
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15308
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15309
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15310
  # is reportedly fixed, but why not run on old versions too?
 
15311
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
15312
    || (rm -f "$cfgfile"; exit 1)
 
15313
 
 
15314
  case $xsi_shell in
 
15315
  yes)
 
15316
    cat << \_LT_EOF >> "$cfgfile"
 
15317
 
 
15318
# func_dirname file append nondir_replacement
 
15319
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15320
# otherwise set result to NONDIR_REPLACEMENT.
 
15321
func_dirname ()
 
15322
{
 
15323
  case ${1} in
 
15324
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15325
    *  ) func_dirname_result="${3}" ;;
 
15326
  esac
 
15327
}
 
15328
 
 
15329
# func_basename file
 
15330
func_basename ()
 
15331
{
 
15332
  func_basename_result="${1##*/}"
 
15333
}
 
15334
 
 
15335
# func_dirname_and_basename file append nondir_replacement
 
15336
# perform func_basename and func_dirname in a single function
 
15337
# call:
 
15338
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
15339
#             add APPEND to the result, otherwise set result
 
15340
#             to NONDIR_REPLACEMENT.
 
15341
#             value returned in "$func_dirname_result"
 
15342
#   basename: Compute filename of FILE.
 
15343
#             value retuned in "$func_basename_result"
 
15344
# Implementation must be kept synchronized with func_dirname
 
15345
# and func_basename. For efficiency, we do not delegate to
 
15346
# those functions but instead duplicate the functionality here.
 
15347
func_dirname_and_basename ()
 
15348
{
 
15349
  case ${1} in
 
15350
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15351
    *  ) func_dirname_result="${3}" ;;
 
15352
  esac
 
15353
  func_basename_result="${1##*/}"
 
15354
}
 
15355
 
 
15356
# func_stripname prefix suffix name
 
15357
# strip PREFIX and SUFFIX off of NAME.
 
15358
# PREFIX and SUFFIX must not contain globbing or regex special
 
15359
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15360
# dot (in which case that matches only a dot).
 
15361
func_stripname ()
 
15362
{
 
15363
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
15364
  # positional parameters, so assign one to ordinary parameter first.
 
15365
  func_stripname_result=${3}
 
15366
  func_stripname_result=${func_stripname_result#"${1}"}
 
15367
  func_stripname_result=${func_stripname_result%"${2}"}
 
15368
}
 
15369
 
 
15370
# func_opt_split
 
15371
func_opt_split ()
 
15372
{
 
15373
  func_opt_split_opt=${1%%=*}
 
15374
  func_opt_split_arg=${1#*=}
 
15375
}
 
15376
 
 
15377
# func_lo2o object
 
15378
func_lo2o ()
 
15379
{
 
15380
  case ${1} in
 
15381
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
15382
    *)    func_lo2o_result=${1} ;;
 
15383
  esac
 
15384
}
 
15385
 
 
15386
# func_xform libobj-or-source
 
15387
func_xform ()
 
15388
{
 
15389
  func_xform_result=${1%.*}.lo
 
15390
}
 
15391
 
 
15392
# func_arith arithmetic-term...
 
15393
func_arith ()
 
15394
{
 
15395
  func_arith_result=$(( $* ))
 
15396
}
 
15397
 
 
15398
# func_len string
 
15399
# STRING may not start with a hyphen.
 
15400
func_len ()
 
15401
{
 
15402
  func_len_result=${#1}
 
15403
}
 
15404
 
 
15405
_LT_EOF
 
15406
    ;;
 
15407
  *) # Bourne compatible functions.
 
15408
    cat << \_LT_EOF >> "$cfgfile"
 
15409
 
 
15410
# func_dirname file append nondir_replacement
 
15411
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15412
# otherwise set result to NONDIR_REPLACEMENT.
 
15413
func_dirname ()
 
15414
{
 
15415
  # Extract subdirectory from the argument.
 
15416
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
15417
  if test "X$func_dirname_result" = "X${1}"; then
 
15418
    func_dirname_result="${3}"
 
15419
  else
 
15420
    func_dirname_result="$func_dirname_result${2}"
 
15421
  fi
 
15422
}
 
15423
 
 
15424
# func_basename file
 
15425
func_basename ()
 
15426
{
 
15427
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
15428
}
 
15429
 
 
15430
 
 
15431
# func_stripname prefix suffix name
 
15432
# strip PREFIX and SUFFIX off of NAME.
 
15433
# PREFIX and SUFFIX must not contain globbing or regex special
 
15434
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15435
# dot (in which case that matches only a dot).
 
15436
# func_strip_suffix prefix name
 
15437
func_stripname ()
 
15438
{
 
15439
  case ${2} in
 
15440
    .*) func_stripname_result=`$ECHO "X${3}" \
 
15441
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
15442
    *)  func_stripname_result=`$ECHO "X${3}" \
 
15443
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
15444
  esac
 
15445
}
 
15446
 
 
15447
# sed scripts:
 
15448
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
15449
my_sed_long_arg='1s/^-[^=]*=//'
 
15450
 
 
15451
# func_opt_split
 
15452
func_opt_split ()
 
15453
{
 
15454
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
15455
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
15456
}
 
15457
 
 
15458
# func_lo2o object
 
15459
func_lo2o ()
 
15460
{
 
15461
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
15462
}
 
15463
 
 
15464
# func_xform libobj-or-source
 
15465
func_xform ()
 
15466
{
 
15467
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
15468
}
 
15469
 
 
15470
# func_arith arithmetic-term...
 
15471
func_arith ()
 
15472
{
 
15473
  func_arith_result=`expr "$@"`
 
15474
}
 
15475
 
 
15476
# func_len string
 
15477
# STRING may not start with a hyphen.
 
15478
func_len ()
 
15479
{
 
15480
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
15481
}
 
15482
 
 
15483
_LT_EOF
 
15484
esac
 
15485
 
 
15486
case $lt_shell_append in
 
15487
  yes)
 
15488
    cat << \_LT_EOF >> "$cfgfile"
 
15489
 
 
15490
# func_append var value
 
15491
# Append VALUE to the end of shell variable VAR.
 
15492
func_append ()
 
15493
{
 
15494
  eval "$1+=\$2"
 
15495
}
 
15496
_LT_EOF
 
15497
    ;;
 
15498
  *)
 
15499
    cat << \_LT_EOF >> "$cfgfile"
 
15500
 
 
15501
# func_append var value
 
15502
# Append VALUE to the end of shell variable VAR.
 
15503
func_append ()
 
15504
{
 
15505
  eval "$1=\$$1\$2"
 
15506
}
 
15507
 
 
15508
_LT_EOF
 
15509
    ;;
 
15510
  esac
 
15511
 
 
15512
 
 
15513
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
15514
    || (rm -f "$cfgfile"; exit 1)
 
15515
 
 
15516
  mv -f "$cfgfile" "$ofile" ||
 
15517
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15518
  chmod +x "$ofile"
 
15519
 
 
15520
 ;;
 
15521
 
 
15522
  esac
 
15523
done # for ac_tag
 
15524
 
 
15525
 
 
15526
{ (exit 0); exit 0; }
 
15527
_ACEOF
 
15528
chmod +x $CONFIG_STATUS
 
15529
ac_clean_files=$ac_clean_files_save
 
15530
 
 
15531
test $ac_write_fail = 0 ||
 
15532
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
15533
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
15534
   { (exit 1); exit 1; }; }
 
15535
 
 
15536
 
 
15537
# configure is writing to config.log, and then calls config.status.
 
15538
# config.status does its own redirection, appending to config.log.
 
15539
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15540
# by configure, so config.status won't be able to write to it; its
 
15541
# output is simply discarded.  So we exec the FD to /dev/null,
 
15542
# effectively closing config.log, so it can be properly (re)opened and
 
15543
# appended to by config.status.  When coming back to configure, we
 
15544
# need to make the FD available again.
 
15545
if test "$no_create" != yes; then
 
15546
  ac_cs_success=:
 
15547
  ac_config_status_args=
 
15548
  test "$silent" = yes &&
 
15549
    ac_config_status_args="$ac_config_status_args --quiet"
 
15550
  exec 5>/dev/null
 
15551
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15552
  exec 5>>config.log
 
15553
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15554
  # would make configure fail if this is the last instruction.
 
15555
  $ac_cs_success || { (exit 1); exit 1; }
 
15556
fi
 
15557
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15558
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15559
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15560
fi
 
15561