~ubuntu-branches/ubuntu/precise/libvdpau/precise-updates

« back to all changes in this revision

Viewing changes to .pc/autoreconf_-fi.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2010-02-25 20:08:17 UTC
  • mfrom: (1.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100225200817-0or2vb57cqobnona
Tags: 0.4-3
Enable dri2 feature. Requires x11proto-dri2-dev (>= 2.2) and libxext-dev.

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.64 for libvdpau 0.4.
 
4
#
 
5
# Report bugs to <xorg@lists.freedesktop.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
9
# Foundation, Inc.
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (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
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
232
$0: xorg@lists.freedesktop.org about your system, including
 
233
$0: any error possibly output before this message. Then
 
234
$0: install a modern shell, or manually run the script
 
235
$0: under such a shell if you do have one."
 
236
  fi
 
237
  exit 1
 
238
fi
 
239
fi
 
240
fi
 
241
SHELL=${CONFIG_SHELL-/bin/sh}
 
242
export SHELL
 
243
# Unset more variables known to interfere with behavior of common tools.
 
244
CLICOLOR_FORCE= GREP_OPTIONS=
 
245
unset CLICOLOR_FORCE GREP_OPTIONS
 
246
 
 
247
## --------------------- ##
 
248
## M4sh Shell Functions. ##
 
249
## --------------------- ##
 
250
# as_fn_unset VAR
 
251
# ---------------
 
252
# Portably unset VAR.
 
253
as_fn_unset ()
 
254
{
 
255
  { eval $1=; unset $1;}
 
256
}
 
257
as_unset=as_fn_unset
 
258
 
 
259
# as_fn_set_status STATUS
 
260
# -----------------------
 
261
# Set $? to STATUS, without forking.
 
262
as_fn_set_status ()
 
263
{
 
264
  return $1
 
265
} # as_fn_set_status
 
266
 
 
267
# as_fn_exit STATUS
 
268
# -----------------
 
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
270
as_fn_exit ()
 
271
{
 
272
  set +e
 
273
  as_fn_set_status $1
 
274
  exit $1
 
275
} # as_fn_exit
 
276
 
 
277
# as_fn_mkdir_p
 
278
# -------------
 
279
# Create "$as_dir" as a directory, including parents if necessary.
 
280
as_fn_mkdir_p ()
 
281
{
 
282
 
 
283
  case $as_dir in #(
 
284
  -*) as_dir=./$as_dir;;
 
285
  esac
 
286
  test -d "$as_dir" || eval $as_mkdir_p || {
 
287
    as_dirs=
 
288
    while :; do
 
289
      case $as_dir in #(
 
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
291
      *) as_qdir=$as_dir;;
 
292
      esac
 
293
      as_dirs="'$as_qdir' $as_dirs"
 
294
      as_dir=`$as_dirname -- "$as_dir" ||
 
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
297
         X"$as_dir" : 'X\(//\)$' \| \
 
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
299
$as_echo X"$as_dir" |
 
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
301
            s//\1/
 
302
            q
 
303
          }
 
304
          /^X\(\/\/\)[^/].*/{
 
305
            s//\1/
 
306
            q
 
307
          }
 
308
          /^X\(\/\/\)$/{
 
309
            s//\1/
 
310
            q
 
311
          }
 
312
          /^X\(\/\).*/{
 
313
            s//\1/
 
314
            q
 
315
          }
 
316
          s/.*/./; q'`
 
317
      test -d "$as_dir" && break
 
318
    done
 
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
321
 
 
322
 
 
323
} # as_fn_mkdir_p
 
324
# as_fn_append VAR VALUE
 
325
# ----------------------
 
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
327
# advantage of any shell optimizations that allow amortized linear growth over
 
328
# repeated appends, instead of the typical quadratic growth present in naive
 
329
# implementations.
 
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
331
  eval 'as_fn_append ()
 
332
  {
 
333
    eval $1+=\$2
 
334
  }'
 
335
else
 
336
  as_fn_append ()
 
337
  {
 
338
    eval $1=\$$1\$2
 
339
  }
 
340
fi # as_fn_append
 
341
 
 
342
# as_fn_arith ARG...
 
343
# ------------------
 
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
346
# must be portable across $(()) and expr.
 
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
348
  eval 'as_fn_arith ()
 
349
  {
 
350
    as_val=$(( $* ))
 
351
  }'
 
352
else
 
353
  as_fn_arith ()
 
354
  {
 
355
    as_val=`expr "$@" || test $? -eq 1`
 
356
  }
 
357
fi # as_fn_arith
 
358
 
 
359
 
 
360
# as_fn_error ERROR [LINENO LOG_FD]
 
361
# ---------------------------------
 
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
364
# script with status $?, using 1 if that was 0.
 
365
as_fn_error ()
 
366
{
 
367
  as_status=$?; test $as_status -eq 0 && as_status=1
 
368
  if test "$3"; then
 
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
371
  fi
 
372
  $as_echo "$as_me: error: $1" >&2
 
373
  as_fn_exit $as_status
 
374
} # as_fn_error
 
375
 
 
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
378
  as_expr=expr
 
379
else
 
380
  as_expr=false
 
381
fi
 
382
 
 
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
384
  as_basename=basename
 
385
else
 
386
  as_basename=false
 
387
fi
 
388
 
 
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
390
  as_dirname=dirname
 
391
else
 
392
  as_dirname=false
 
393
fi
 
394
 
 
395
as_me=`$as_basename -- "$0" ||
 
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
397
         X"$0" : 'X\(//\)$' \| \
 
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
399
$as_echo X/"$0" |
 
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
401
            s//\1/
 
402
            q
 
403
          }
 
404
          /^X\/\(\/\/\)$/{
 
405
            s//\1/
 
406
            q
 
407
          }
 
408
          /^X\/\(\/\).*/{
 
409
            s//\1/
 
410
            q
 
411
          }
 
412
          s/.*/./; q'`
 
413
 
 
414
# Avoid depending upon Character Ranges.
 
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
418
as_cr_digits='0123456789'
 
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
420
 
 
421
 
 
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
427
  sed -n '
 
428
    p
 
429
    /[$]LINENO/=
 
430
  ' <$as_myself |
 
431
    sed '
 
432
      s/[$]LINENO.*/&-/
 
433
      t lineno
 
434
      b
 
435
      :lineno
 
436
      N
 
437
      :loop
 
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
439
      t loop
 
440
      s/-\n.*//
 
441
    ' >$as_me.lineno &&
 
442
  chmod +x "$as_me.lineno" ||
 
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
444
 
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
 
446
  # (the dirname of $[0] is not the place where we might find the
 
447
  # original and so on.  Autoconf is especially sensitive to this).
 
448
  . "./$as_me.lineno"
 
449
  # Exit status is that of the last command.
 
450
  exit
 
451
}
 
452
 
 
453
ECHO_C= ECHO_N= ECHO_T=
 
454
case `echo -n x` in #(((((
 
455
-n*)
 
456
  case `echo 'xy\c'` in
 
457
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
458
  xy)  ECHO_C='\c';;
 
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
460
       ECHO_T=' ';;
 
461
  esac;;
 
462
*)
 
463
  ECHO_N='-n';;
 
464
esac
 
465
 
 
466
rm -f conf$$ conf$$.exe conf$$.file
 
467
if test -d conf$$.dir; then
 
468
  rm -f conf$$.dir/conf$$.file
 
469
else
 
470
  rm -f conf$$.dir
 
471
  mkdir conf$$.dir 2>/dev/null
 
472
fi
 
473
if (echo >conf$$.file) 2>/dev/null; then
 
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
475
    as_ln_s='ln -s'
 
476
    # ... but there are two gotchas:
 
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
479
    # In both cases, we have to default to `cp -p'.
 
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
481
      as_ln_s='cp -p'
 
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
483
    as_ln_s=ln
 
484
  else
 
485
    as_ln_s='cp -p'
 
486
  fi
 
487
else
 
488
  as_ln_s='cp -p'
 
489
fi
 
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
491
rmdir conf$$.dir 2>/dev/null
 
492
 
 
493
if mkdir -p . 2>/dev/null; then
 
494
  as_mkdir_p='mkdir -p "$as_dir"'
 
495
else
 
496
  test -d ./-p && rmdir ./-p
 
497
  as_mkdir_p=false
 
498
fi
 
499
 
 
500
if test -x / >/dev/null 2>&1; then
 
501
  as_test_x='test -x'
 
502
else
 
503
  if ls -dL / >/dev/null 2>&1; then
 
504
    as_ls_L_option=L
 
505
  else
 
506
    as_ls_L_option=
 
507
  fi
 
508
  as_test_x='
 
509
    eval sh -c '\''
 
510
      if test -d "$1"; then
 
511
        test -d "$1/.";
 
512
      else
 
513
        case $1 in #(
 
514
        -*)set "./$1";;
 
515
        esac;
 
516
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
517
        ???[sx]*):;;*)false;;esac;fi
 
518
    '\'' sh
 
519
  '
 
520
fi
 
521
as_executable_p=$as_test_x
 
522
 
 
523
# Sed expression to map a string onto a valid CPP name.
 
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
525
 
 
526
# Sed expression to map a string onto a valid variable name.
 
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
528
 
 
529
 
 
530
 
 
531
# Check that we are running under the correct shell.
 
532
SHELL=${CONFIG_SHELL-/bin/sh}
 
533
 
 
534
case X$lt_ECHO in
 
535
X*--fallback-echo)
 
536
  # Remove one level of quotation (which was required for Make).
 
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
538
  ;;
 
539
esac
 
540
 
 
541
ECHO=${lt_ECHO-echo}
 
542
if test "X$1" = X--no-reexec; then
 
543
  # Discard the --no-reexec flag, and continue.
 
544
  shift
 
545
elif test "X$1" = X--fallback-echo; then
 
546
  # Avoid inline document here, it may be left over
 
547
  :
 
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
549
  # Yippee, $ECHO works!
 
550
  :
 
551
else
 
552
  # Restart under the correct shell.
 
553
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
554
fi
 
555
 
 
556
if test "X$1" = X--fallback-echo; then
 
557
  # used as fallback echo
 
558
  shift
 
559
  cat <<_LT_EOF
 
560
$*
 
561
_LT_EOF
 
562
  exit 0
 
563
fi
 
564
 
 
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
566
# if CDPATH is set.
 
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
568
 
 
569
if test -z "$lt_ECHO"; then
 
570
  if test "X${echo_test_string+set}" != Xset; then
 
571
    # find a string as large as possible, as long as the shell can cope with it
 
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
575
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
576
      then
 
577
        break
 
578
      fi
 
579
    done
 
580
  fi
 
581
 
 
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
585
    :
 
586
  else
 
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
588
    # backslashes.  This makes it impossible to quote backslashes using
 
589
    #   echo "$something" | sed 's/\\/\\\\/g'
 
590
    #
 
591
    # So, first we look for a working echo in the user's PATH.
 
592
 
 
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
594
    for dir in $PATH /usr/ucb; do
 
595
      IFS="$lt_save_ifs"
 
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
600
        ECHO="$dir/echo"
 
601
        break
 
602
      fi
 
603
    done
 
604
    IFS="$lt_save_ifs"
 
605
 
 
606
    if test "X$ECHO" = Xecho; then
 
607
      # We didn't find a better echo, so look for alternatives.
 
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
611
        # This shell has a builtin print -r that does the trick.
 
612
        ECHO='print -r'
 
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
614
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
615
        # If we have ksh, try running configure again with it.
 
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
617
        export ORIGINAL_CONFIG_SHELL
 
618
        CONFIG_SHELL=/bin/ksh
 
619
        export CONFIG_SHELL
 
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
621
      else
 
622
        # Try using printf.
 
623
        ECHO='printf %s\n'
 
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
625
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
626
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
627
          # Cool, printf works
 
628
          :
 
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
630
             test "X$echo_testing_string" = 'X\t' &&
 
631
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
633
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
634
          export CONFIG_SHELL
 
635
          SHELL="$CONFIG_SHELL"
 
636
          export SHELL
 
637
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
639
             test "X$echo_testing_string" = 'X\t' &&
 
640
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
642
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
643
        else
 
644
          # maybe with a smaller string...
 
645
          prev=:
 
646
 
 
647
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
648
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
649
            then
 
650
              break
 
651
            fi
 
652
            prev="$cmd"
 
653
          done
 
654
 
 
655
          if test "$prev" != 'sed 50q "$0"'; then
 
656
            echo_test_string=`eval $prev`
 
657
            export echo_test_string
 
658
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
659
          else
 
660
            # Oops.  We lost completely, so just stick with echo.
 
661
            ECHO=echo
 
662
          fi
 
663
        fi
 
664
      fi
 
665
    fi
 
666
  fi
 
667
fi
 
668
 
 
669
# Copy echo and quote the copy suitably for passing to libtool from
 
670
# the Makefile, instead of quoting the original, which is used later.
 
671
lt_ECHO=$ECHO
 
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
674
fi
 
675
 
 
676
 
 
677
 
 
678
 
 
679
exec 7<&0 </dev/null 6>&1
 
680
 
 
681
# Name of the host.
 
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
683
# so uname gets run too.
 
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
685
 
 
686
#
 
687
# Initializations.
 
688
#
 
689
ac_default_prefix=/usr/local
 
690
ac_clean_files=
 
691
ac_config_libobj_dir=.
 
692
LIBOBJS=
 
693
cross_compiling=no
 
694
subdirs=
 
695
MFLAGS=
 
696
MAKEFLAGS=
 
697
 
 
698
# Identity of this package.
 
699
PACKAGE_NAME='libvdpau'
 
700
PACKAGE_TARNAME='libvdpau'
 
701
PACKAGE_VERSION='0.4'
 
702
PACKAGE_STRING='libvdpau 0.4'
 
703
PACKAGE_BUGREPORT='xorg@lists.freedesktop.org'
 
704
PACKAGE_URL=''
 
705
 
 
706
# Factoring default headers for most tests.
 
707
ac_includes_default="\
 
708
#include <stdio.h>
 
709
#ifdef HAVE_SYS_TYPES_H
 
710
# include <sys/types.h>
 
711
#endif
 
712
#ifdef HAVE_SYS_STAT_H
 
713
# include <sys/stat.h>
 
714
#endif
 
715
#ifdef STDC_HEADERS
 
716
# include <stdlib.h>
 
717
# include <stddef.h>
 
718
#else
 
719
# ifdef HAVE_STDLIB_H
 
720
#  include <stdlib.h>
 
721
# endif
 
722
#endif
 
723
#ifdef HAVE_STRING_H
 
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
725
#  include <memory.h>
 
726
# endif
 
727
# include <string.h>
 
728
#endif
 
729
#ifdef HAVE_STRINGS_H
 
730
# include <strings.h>
 
731
#endif
 
732
#ifdef HAVE_INTTYPES_H
 
733
# include <inttypes.h>
 
734
#endif
 
735
#ifdef HAVE_STDINT_H
 
736
# include <stdint.h>
 
737
#endif
 
738
#ifdef HAVE_UNISTD_H
 
739
# include <unistd.h>
 
740
#endif"
 
741
 
 
742
ac_subst_vars='am__EXEEXT_FALSE
 
743
am__EXEEXT_TRUE
 
744
LTLIBOBJS
 
745
LIBOBJS
 
746
distcleancheck_listfiles
 
747
CHANGELOG_CMD
 
748
moduledir
 
749
ENABLE_DOCS_FALSE
 
750
ENABLE_DOCS_TRUE
 
751
PDFTEX
 
752
DOT
 
753
DOXYGEN
 
754
DLOPEN_LIBS
 
755
DRI2_FALSE
 
756
DRI2_TRUE
 
757
XEXT_LIBS
 
758
XEXT_CFLAGS
 
759
dri2proto_LIBS
 
760
dri2proto_CFLAGS
 
761
X11_LIBS
 
762
X11_CFLAGS
 
763
PKG_CONFIG
 
764
CXXCPP
 
765
CPP
 
766
OTOOL64
 
767
OTOOL
 
768
LIPO
 
769
NMEDIT
 
770
DSYMUTIL
 
771
lt_ECHO
 
772
RANLIB
 
773
AR
 
774
OBJDUMP
 
775
LN_S
 
776
NM
 
777
ac_ct_DUMPBIN
 
778
DUMPBIN
 
779
LD
 
780
FGREP
 
781
EGREP
 
782
GREP
 
783
SED
 
784
host_os
 
785
host_vendor
 
786
host_cpu
 
787
host
 
788
build_os
 
789
build_vendor
 
790
build_cpu
 
791
build
 
792
LIBTOOL
 
793
am__fastdepCXX_FALSE
 
794
am__fastdepCXX_TRUE
 
795
CXXDEPMODE
 
796
ac_ct_CXX
 
797
CXXFLAGS
 
798
CXX
 
799
am__fastdepCC_FALSE
 
800
am__fastdepCC_TRUE
 
801
CCDEPMODE
 
802
AMDEPBACKSLASH
 
803
AMDEP_FALSE
 
804
AMDEP_TRUE
 
805
am__quote
 
806
am__include
 
807
DEPDIR
 
808
OBJEXT
 
809
EXEEXT
 
810
ac_ct_CC
 
811
CPPFLAGS
 
812
LDFLAGS
 
813
CFLAGS
 
814
CC
 
815
MAINT
 
816
MAINTAINER_MODE_FALSE
 
817
MAINTAINER_MODE_TRUE
 
818
am__untar
 
819
am__tar
 
820
AMTAR
 
821
am__leading_dot
 
822
SET_MAKE
 
823
AWK
 
824
mkdir_p
 
825
MKDIR_P
 
826
INSTALL_STRIP_PROGRAM
 
827
STRIP
 
828
install_sh
 
829
MAKEINFO
 
830
AUTOHEADER
 
831
AUTOMAKE
 
832
AUTOCONF
 
833
ACLOCAL
 
834
VERSION
 
835
PACKAGE
 
836
CYGPATH_W
 
837
am__isrc
 
838
INSTALL_DATA
 
839
INSTALL_SCRIPT
 
840
INSTALL_PROGRAM
 
841
target_alias
 
842
host_alias
 
843
build_alias
 
844
LIBS
 
845
ECHO_T
 
846
ECHO_N
 
847
ECHO_C
 
848
DEFS
 
849
mandir
 
850
localedir
 
851
libdir
 
852
psdir
 
853
pdfdir
 
854
dvidir
 
855
htmldir
 
856
infodir
 
857
docdir
 
858
oldincludedir
 
859
includedir
 
860
localstatedir
 
861
sharedstatedir
 
862
sysconfdir
 
863
datadir
 
864
datarootdir
 
865
libexecdir
 
866
sbindir
 
867
bindir
 
868
program_transform_name
 
869
prefix
 
870
exec_prefix
 
871
PACKAGE_URL
 
872
PACKAGE_BUGREPORT
 
873
PACKAGE_STRING
 
874
PACKAGE_VERSION
 
875
PACKAGE_TARNAME
 
876
PACKAGE_NAME
 
877
PATH_SEPARATOR
 
878
SHELL'
 
879
ac_subst_files=''
 
880
ac_user_opts='
 
881
enable_option_checking
 
882
enable_maintainer_mode
 
883
enable_static
 
884
enable_dependency_tracking
 
885
enable_shared
 
886
with_pic
 
887
enable_fast_install
 
888
with_gnu_ld
 
889
enable_libtool_lock
 
890
enable_dri2
 
891
enable_documentation
 
892
with_module_dir
 
893
'
 
894
      ac_precious_vars='build_alias
 
895
host_alias
 
896
target_alias
 
897
CC
 
898
CFLAGS
 
899
LDFLAGS
 
900
LIBS
 
901
CPPFLAGS
 
902
CXX
 
903
CXXFLAGS
 
904
CCC
 
905
CPP
 
906
CXXCPP
 
907
PKG_CONFIG
 
908
X11_CFLAGS
 
909
X11_LIBS
 
910
dri2proto_CFLAGS
 
911
dri2proto_LIBS
 
912
XEXT_CFLAGS
 
913
XEXT_LIBS'
 
914
 
 
915
 
 
916
# Initialize some variables set by options.
 
917
ac_init_help=
 
918
ac_init_version=false
 
919
ac_unrecognized_opts=
 
920
ac_unrecognized_sep=
 
921
# The variables have the same names as the options, with
 
922
# dashes changed to underlines.
 
923
cache_file=/dev/null
 
924
exec_prefix=NONE
 
925
no_create=
 
926
no_recursion=
 
927
prefix=NONE
 
928
program_prefix=NONE
 
929
program_suffix=NONE
 
930
program_transform_name=s,x,x,
 
931
silent=
 
932
site=
 
933
srcdir=
 
934
verbose=
 
935
x_includes=NONE
 
936
x_libraries=NONE
 
937
 
 
938
# Installation directory options.
 
939
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
940
# and all the variables that are supposed to be based on exec_prefix
 
941
# by default will actually change.
 
942
# Use braces instead of parens because sh, perl, etc. also accept them.
 
943
# (The list follows the same order as the GNU Coding Standards.)
 
944
bindir='${exec_prefix}/bin'
 
945
sbindir='${exec_prefix}/sbin'
 
946
libexecdir='${exec_prefix}/libexec'
 
947
datarootdir='${prefix}/share'
 
948
datadir='${datarootdir}'
 
949
sysconfdir='${prefix}/etc'
 
950
sharedstatedir='${prefix}/com'
 
951
localstatedir='${prefix}/var'
 
952
includedir='${prefix}/include'
 
953
oldincludedir='/usr/include'
 
954
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
955
infodir='${datarootdir}/info'
 
956
htmldir='${docdir}'
 
957
dvidir='${docdir}'
 
958
pdfdir='${docdir}'
 
959
psdir='${docdir}'
 
960
libdir='${exec_prefix}/lib'
 
961
localedir='${datarootdir}/locale'
 
962
mandir='${datarootdir}/man'
 
963
 
 
964
ac_prev=
 
965
ac_dashdash=
 
966
for ac_option
 
967
do
 
968
  # If the previous option needs an argument, assign it.
 
969
  if test -n "$ac_prev"; then
 
970
    eval $ac_prev=\$ac_option
 
971
    ac_prev=
 
972
    continue
 
973
  fi
 
974
 
 
975
  case $ac_option in
 
976
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
977
  *)    ac_optarg=yes ;;
 
978
  esac
 
979
 
 
980
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
981
 
 
982
  case $ac_dashdash$ac_option in
 
983
  --)
 
984
    ac_dashdash=yes ;;
 
985
 
 
986
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
987
    ac_prev=bindir ;;
 
988
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
989
    bindir=$ac_optarg ;;
 
990
 
 
991
  -build | --build | --buil | --bui | --bu)
 
992
    ac_prev=build_alias ;;
 
993
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
994
    build_alias=$ac_optarg ;;
 
995
 
 
996
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
997
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
998
    ac_prev=cache_file ;;
 
999
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1000
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1001
    cache_file=$ac_optarg ;;
 
1002
 
 
1003
  --config-cache | -C)
 
1004
    cache_file=config.cache ;;
 
1005
 
 
1006
  -datadir | --datadir | --datadi | --datad)
 
1007
    ac_prev=datadir ;;
 
1008
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1009
    datadir=$ac_optarg ;;
 
1010
 
 
1011
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1012
  | --dataroo | --dataro | --datar)
 
1013
    ac_prev=datarootdir ;;
 
1014
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1015
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1016
    datarootdir=$ac_optarg ;;
 
1017
 
 
1018
  -disable-* | --disable-*)
 
1019
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1020
    # Reject names that are not valid shell variable names.
 
1021
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1022
      as_fn_error "invalid feature name: $ac_useropt"
 
1023
    ac_useropt_orig=$ac_useropt
 
1024
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1025
    case $ac_user_opts in
 
1026
      *"
 
1027
"enable_$ac_useropt"
 
1028
"*) ;;
 
1029
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1030
         ac_unrecognized_sep=', ';;
 
1031
    esac
 
1032
    eval enable_$ac_useropt=no ;;
 
1033
 
 
1034
  -docdir | --docdir | --docdi | --doc | --do)
 
1035
    ac_prev=docdir ;;
 
1036
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1037
    docdir=$ac_optarg ;;
 
1038
 
 
1039
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1040
    ac_prev=dvidir ;;
 
1041
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1042
    dvidir=$ac_optarg ;;
 
1043
 
 
1044
  -enable-* | --enable-*)
 
1045
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1046
    # Reject names that are not valid shell variable names.
 
1047
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1048
      as_fn_error "invalid feature name: $ac_useropt"
 
1049
    ac_useropt_orig=$ac_useropt
 
1050
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1051
    case $ac_user_opts in
 
1052
      *"
 
1053
"enable_$ac_useropt"
 
1054
"*) ;;
 
1055
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1056
         ac_unrecognized_sep=', ';;
 
1057
    esac
 
1058
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1059
 
 
1060
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1061
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1062
  | --exec | --exe | --ex)
 
1063
    ac_prev=exec_prefix ;;
 
1064
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1065
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1066
  | --exec=* | --exe=* | --ex=*)
 
1067
    exec_prefix=$ac_optarg ;;
 
1068
 
 
1069
  -gas | --gas | --ga | --g)
 
1070
    # Obsolete; use --with-gas.
 
1071
    with_gas=yes ;;
 
1072
 
 
1073
  -help | --help | --hel | --he | -h)
 
1074
    ac_init_help=long ;;
 
1075
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1076
    ac_init_help=recursive ;;
 
1077
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1078
    ac_init_help=short ;;
 
1079
 
 
1080
  -host | --host | --hos | --ho)
 
1081
    ac_prev=host_alias ;;
 
1082
  -host=* | --host=* | --hos=* | --ho=*)
 
1083
    host_alias=$ac_optarg ;;
 
1084
 
 
1085
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1086
    ac_prev=htmldir ;;
 
1087
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1088
  | --ht=*)
 
1089
    htmldir=$ac_optarg ;;
 
1090
 
 
1091
  -includedir | --includedir | --includedi | --included | --include \
 
1092
  | --includ | --inclu | --incl | --inc)
 
1093
    ac_prev=includedir ;;
 
1094
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1095
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1096
    includedir=$ac_optarg ;;
 
1097
 
 
1098
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1099
    ac_prev=infodir ;;
 
1100
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1101
    infodir=$ac_optarg ;;
 
1102
 
 
1103
  -libdir | --libdir | --libdi | --libd)
 
1104
    ac_prev=libdir ;;
 
1105
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1106
    libdir=$ac_optarg ;;
 
1107
 
 
1108
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1109
  | --libexe | --libex | --libe)
 
1110
    ac_prev=libexecdir ;;
 
1111
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1112
  | --libexe=* | --libex=* | --libe=*)
 
1113
    libexecdir=$ac_optarg ;;
 
1114
 
 
1115
  -localedir | --localedir | --localedi | --localed | --locale)
 
1116
    ac_prev=localedir ;;
 
1117
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1118
    localedir=$ac_optarg ;;
 
1119
 
 
1120
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1121
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1122
    ac_prev=localstatedir ;;
 
1123
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1124
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1125
    localstatedir=$ac_optarg ;;
 
1126
 
 
1127
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1128
    ac_prev=mandir ;;
 
1129
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1130
    mandir=$ac_optarg ;;
 
1131
 
 
1132
  -nfp | --nfp | --nf)
 
1133
    # Obsolete; use --without-fp.
 
1134
    with_fp=no ;;
 
1135
 
 
1136
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1137
  | --no-cr | --no-c | -n)
 
1138
    no_create=yes ;;
 
1139
 
 
1140
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1141
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1142
    no_recursion=yes ;;
 
1143
 
 
1144
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1145
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1146
  | --oldin | --oldi | --old | --ol | --o)
 
1147
    ac_prev=oldincludedir ;;
 
1148
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1149
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1150
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1151
    oldincludedir=$ac_optarg ;;
 
1152
 
 
1153
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1154
    ac_prev=prefix ;;
 
1155
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1156
    prefix=$ac_optarg ;;
 
1157
 
 
1158
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1159
  | --program-pre | --program-pr | --program-p)
 
1160
    ac_prev=program_prefix ;;
 
1161
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1162
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1163
    program_prefix=$ac_optarg ;;
 
1164
 
 
1165
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1166
  | --program-suf | --program-su | --program-s)
 
1167
    ac_prev=program_suffix ;;
 
1168
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1169
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1170
    program_suffix=$ac_optarg ;;
 
1171
 
 
1172
  -program-transform-name | --program-transform-name \
 
1173
  | --program-transform-nam | --program-transform-na \
 
1174
  | --program-transform-n | --program-transform- \
 
1175
  | --program-transform | --program-transfor \
 
1176
  | --program-transfo | --program-transf \
 
1177
  | --program-trans | --program-tran \
 
1178
  | --progr-tra | --program-tr | --program-t)
 
1179
    ac_prev=program_transform_name ;;
 
1180
  -program-transform-name=* | --program-transform-name=* \
 
1181
  | --program-transform-nam=* | --program-transform-na=* \
 
1182
  | --program-transform-n=* | --program-transform-=* \
 
1183
  | --program-transform=* | --program-transfor=* \
 
1184
  | --program-transfo=* | --program-transf=* \
 
1185
  | --program-trans=* | --program-tran=* \
 
1186
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1187
    program_transform_name=$ac_optarg ;;
 
1188
 
 
1189
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1190
    ac_prev=pdfdir ;;
 
1191
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1192
    pdfdir=$ac_optarg ;;
 
1193
 
 
1194
  -psdir | --psdir | --psdi | --psd | --ps)
 
1195
    ac_prev=psdir ;;
 
1196
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1197
    psdir=$ac_optarg ;;
 
1198
 
 
1199
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1200
  | -silent | --silent | --silen | --sile | --sil)
 
1201
    silent=yes ;;
 
1202
 
 
1203
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1204
    ac_prev=sbindir ;;
 
1205
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1206
  | --sbi=* | --sb=*)
 
1207
    sbindir=$ac_optarg ;;
 
1208
 
 
1209
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1210
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1211
  | --sharedst | --shareds | --shared | --share | --shar \
 
1212
  | --sha | --sh)
 
1213
    ac_prev=sharedstatedir ;;
 
1214
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1215
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1216
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1217
  | --sha=* | --sh=*)
 
1218
    sharedstatedir=$ac_optarg ;;
 
1219
 
 
1220
  -site | --site | --sit)
 
1221
    ac_prev=site ;;
 
1222
  -site=* | --site=* | --sit=*)
 
1223
    site=$ac_optarg ;;
 
1224
 
 
1225
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1226
    ac_prev=srcdir ;;
 
1227
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1228
    srcdir=$ac_optarg ;;
 
1229
 
 
1230
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1231
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1232
    ac_prev=sysconfdir ;;
 
1233
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1234
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1235
    sysconfdir=$ac_optarg ;;
 
1236
 
 
1237
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1238
    ac_prev=target_alias ;;
 
1239
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1240
    target_alias=$ac_optarg ;;
 
1241
 
 
1242
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1243
    verbose=yes ;;
 
1244
 
 
1245
  -version | --version | --versio | --versi | --vers | -V)
 
1246
    ac_init_version=: ;;
 
1247
 
 
1248
  -with-* | --with-*)
 
1249
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1250
    # Reject names that are not valid shell variable names.
 
1251
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1252
      as_fn_error "invalid package name: $ac_useropt"
 
1253
    ac_useropt_orig=$ac_useropt
 
1254
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1255
    case $ac_user_opts in
 
1256
      *"
 
1257
"with_$ac_useropt"
 
1258
"*) ;;
 
1259
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1260
         ac_unrecognized_sep=', ';;
 
1261
    esac
 
1262
    eval with_$ac_useropt=\$ac_optarg ;;
 
1263
 
 
1264
  -without-* | --without-*)
 
1265
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1266
    # Reject names that are not valid shell variable names.
 
1267
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1268
      as_fn_error "invalid package name: $ac_useropt"
 
1269
    ac_useropt_orig=$ac_useropt
 
1270
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1271
    case $ac_user_opts in
 
1272
      *"
 
1273
"with_$ac_useropt"
 
1274
"*) ;;
 
1275
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1276
         ac_unrecognized_sep=', ';;
 
1277
    esac
 
1278
    eval with_$ac_useropt=no ;;
 
1279
 
 
1280
  --x)
 
1281
    # Obsolete; use --with-x.
 
1282
    with_x=yes ;;
 
1283
 
 
1284
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1285
  | --x-incl | --x-inc | --x-in | --x-i)
 
1286
    ac_prev=x_includes ;;
 
1287
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1288
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1289
    x_includes=$ac_optarg ;;
 
1290
 
 
1291
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1292
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1293
    ac_prev=x_libraries ;;
 
1294
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1295
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1296
    x_libraries=$ac_optarg ;;
 
1297
 
 
1298
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1299
Try \`$0 --help' for more information."
 
1300
    ;;
 
1301
 
 
1302
  *=*)
 
1303
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1304
    # Reject names that are not valid shell variable names.
 
1305
    case $ac_envvar in #(
 
1306
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1307
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1308
    esac
 
1309
    eval $ac_envvar=\$ac_optarg
 
1310
    export $ac_envvar ;;
 
1311
 
 
1312
  *)
 
1313
    # FIXME: should be removed in autoconf 3.0.
 
1314
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1315
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1316
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1317
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1318
    ;;
 
1319
 
 
1320
  esac
 
1321
done
 
1322
 
 
1323
if test -n "$ac_prev"; then
 
1324
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1325
  as_fn_error "missing argument to $ac_option"
 
1326
fi
 
1327
 
 
1328
if test -n "$ac_unrecognized_opts"; then
 
1329
  case $enable_option_checking in
 
1330
    no) ;;
 
1331
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1332
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1333
  esac
 
1334
fi
 
1335
 
 
1336
# Check all directory arguments for consistency.
 
1337
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1338
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1339
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1340
                libdir localedir mandir
 
1341
do
 
1342
  eval ac_val=\$$ac_var
 
1343
  # Remove trailing slashes.
 
1344
  case $ac_val in
 
1345
    */ )
 
1346
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1347
      eval $ac_var=\$ac_val;;
 
1348
  esac
 
1349
  # Be sure to have absolute directory names.
 
1350
  case $ac_val in
 
1351
    [\\/$]* | ?:[\\/]* )  continue;;
 
1352
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1353
  esac
 
1354
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1355
done
 
1356
 
 
1357
# There might be people who depend on the old broken behavior: `$host'
 
1358
# used to hold the argument of --host etc.
 
1359
# FIXME: To remove some day.
 
1360
build=$build_alias
 
1361
host=$host_alias
 
1362
target=$target_alias
 
1363
 
 
1364
# FIXME: To remove some day.
 
1365
if test "x$host_alias" != x; then
 
1366
  if test "x$build_alias" = x; then
 
1367
    cross_compiling=maybe
 
1368
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1369
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1370
  elif test "x$build_alias" != "x$host_alias"; then
 
1371
    cross_compiling=yes
 
1372
  fi
 
1373
fi
 
1374
 
 
1375
ac_tool_prefix=
 
1376
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1377
 
 
1378
test "$silent" = yes && exec 6>/dev/null
 
1379
 
 
1380
 
 
1381
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1382
ac_ls_di=`ls -di .` &&
 
1383
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1384
  as_fn_error "working directory cannot be determined"
 
1385
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1386
  as_fn_error "pwd does not report name of working directory"
 
1387
 
 
1388
 
 
1389
# Find the source files, if location was not specified.
 
1390
if test -z "$srcdir"; then
 
1391
  ac_srcdir_defaulted=yes
 
1392
  # Try the directory containing this script, then the parent directory.
 
1393
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1394
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1395
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1396
         X"$as_myself" : 'X\(//\)$' \| \
 
1397
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1398
$as_echo X"$as_myself" |
 
1399
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1400
            s//\1/
 
1401
            q
 
1402
          }
 
1403
          /^X\(\/\/\)[^/].*/{
 
1404
            s//\1/
 
1405
            q
 
1406
          }
 
1407
          /^X\(\/\/\)$/{
 
1408
            s//\1/
 
1409
            q
 
1410
          }
 
1411
          /^X\(\/\).*/{
 
1412
            s//\1/
 
1413
            q
 
1414
          }
 
1415
          s/.*/./; q'`
 
1416
  srcdir=$ac_confdir
 
1417
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1418
    srcdir=..
 
1419
  fi
 
1420
else
 
1421
  ac_srcdir_defaulted=no
 
1422
fi
 
1423
if test ! -r "$srcdir/$ac_unique_file"; then
 
1424
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1425
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1426
fi
 
1427
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1428
ac_abs_confdir=`(
 
1429
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1430
        pwd)`
 
1431
# When building in place, set srcdir=.
 
1432
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1433
  srcdir=.
 
1434
fi
 
1435
# Remove unnecessary trailing slashes from srcdir.
 
1436
# Double slashes in file names in object file debugging info
 
1437
# mess up M-x gdb in Emacs.
 
1438
case $srcdir in
 
1439
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1440
esac
 
1441
for ac_var in $ac_precious_vars; do
 
1442
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1443
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1444
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1445
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1446
done
 
1447
 
 
1448
#
 
1449
# Report the --help message.
 
1450
#
 
1451
if test "$ac_init_help" = "long"; then
 
1452
  # Omit some internal or obsolete options to make the list less imposing.
 
1453
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1454
  cat <<_ACEOF
 
1455
\`configure' configures libvdpau 0.4 to adapt to many kinds of systems.
 
1456
 
 
1457
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1458
 
 
1459
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1460
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1461
 
 
1462
Defaults for the options are specified in brackets.
 
1463
 
 
1464
Configuration:
 
1465
  -h, --help              display this help and exit
 
1466
      --help=short        display options specific to this package
 
1467
      --help=recursive    display the short help of all the included packages
 
1468
  -V, --version           display version information and exit
 
1469
  -q, --quiet, --silent   do not print \`checking...' messages
 
1470
      --cache-file=FILE   cache test results in FILE [disabled]
 
1471
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1472
  -n, --no-create         do not create output files
 
1473
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1474
 
 
1475
Installation directories:
 
1476
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1477
                          [$ac_default_prefix]
 
1478
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1479
                          [PREFIX]
 
1480
 
 
1481
By default, \`make install' will install all the files in
 
1482
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1483
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1484
for instance \`--prefix=\$HOME'.
 
1485
 
 
1486
For better control, use the options below.
 
1487
 
 
1488
Fine tuning of the installation directories:
 
1489
  --bindir=DIR            user executables [EPREFIX/bin]
 
1490
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1491
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1492
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1493
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1494
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1495
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1496
  --includedir=DIR        C header files [PREFIX/include]
 
1497
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1498
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1499
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1500
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1501
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1502
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1503
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libvdpau]
 
1504
  --htmldir=DIR           html documentation [DOCDIR]
 
1505
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1506
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1507
  --psdir=DIR             ps documentation [DOCDIR]
 
1508
_ACEOF
 
1509
 
 
1510
  cat <<\_ACEOF
 
1511
 
 
1512
Program names:
 
1513
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1514
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1515
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1516
 
 
1517
System types:
 
1518
  --build=BUILD     configure for building on BUILD [guessed]
 
1519
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1520
_ACEOF
 
1521
fi
 
1522
 
 
1523
if test -n "$ac_init_help"; then
 
1524
  case $ac_init_help in
 
1525
     short | recursive ) echo "Configuration of libvdpau 0.4:";;
 
1526
   esac
 
1527
  cat <<\_ACEOF
 
1528
 
 
1529
Optional Features:
 
1530
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1531
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1532
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1533
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1534
                          (and sometimes confusing) to the casual installer
 
1535
  --enable-static[=PKGS]  build static libraries [default=no]
 
1536
  --disable-dependency-tracking  speeds up one-time build
 
1537
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1538
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1539
  --enable-fast-install[=PKGS]
 
1540
                          optimize for fast installation [default=yes]
 
1541
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1542
  --disable-dri2          Disable driver name query through DRI2 (default:
 
1543
                          auto)
 
1544
  --disable-documentation Disable Doxygen documentation (default: auto)
 
1545
 
 
1546
Optional Packages:
 
1547
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1548
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1549
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1550
                          both]
 
1551
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1552
  --with-module-dir=DIR   Default module directory [default=LIBDIR/vdpau]
 
1553
 
 
1554
Some influential environment variables:
 
1555
  CC          C compiler command
 
1556
  CFLAGS      C compiler flags
 
1557
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1558
              nonstandard directory <lib dir>
 
1559
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1560
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1561
              you have headers in a nonstandard directory <include dir>
 
1562
  CXX         C++ compiler command
 
1563
  CXXFLAGS    C++ compiler flags
 
1564
  CPP         C preprocessor
 
1565
  CXXCPP      C++ preprocessor
 
1566
  PKG_CONFIG  path to pkg-config utility
 
1567
  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
 
1568
  X11_LIBS    linker flags for X11, overriding pkg-config
 
1569
  dri2proto_CFLAGS
 
1570
              C compiler flags for dri2proto, overriding pkg-config
 
1571
  dri2proto_LIBS
 
1572
              linker flags for dri2proto, overriding pkg-config
 
1573
  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
 
1574
  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
 
1575
 
 
1576
Use these variables to override the choices made by `configure' or to help
 
1577
it to find libraries and programs with nonstandard names/locations.
 
1578
 
 
1579
Report bugs to <xorg@lists.freedesktop.org>.
 
1580
_ACEOF
 
1581
ac_status=$?
 
1582
fi
 
1583
 
 
1584
if test "$ac_init_help" = "recursive"; then
 
1585
  # If there are subdirs, report their specific --help.
 
1586
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1587
    test -d "$ac_dir" ||
 
1588
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1589
      continue
 
1590
    ac_builddir=.
 
1591
 
 
1592
case "$ac_dir" in
 
1593
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1594
*)
 
1595
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1596
  # A ".." for each directory in $ac_dir_suffix.
 
1597
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1598
  case $ac_top_builddir_sub in
 
1599
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1600
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1601
  esac ;;
 
1602
esac
 
1603
ac_abs_top_builddir=$ac_pwd
 
1604
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1605
# for backward compatibility:
 
1606
ac_top_builddir=$ac_top_build_prefix
 
1607
 
 
1608
case $srcdir in
 
1609
  .)  # We are building in place.
 
1610
    ac_srcdir=.
 
1611
    ac_top_srcdir=$ac_top_builddir_sub
 
1612
    ac_abs_top_srcdir=$ac_pwd ;;
 
1613
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1614
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1615
    ac_top_srcdir=$srcdir
 
1616
    ac_abs_top_srcdir=$srcdir ;;
 
1617
  *) # Relative name.
 
1618
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1619
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1620
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1621
esac
 
1622
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1623
 
 
1624
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1625
    # Check for guested configure.
 
1626
    if test -f "$ac_srcdir/configure.gnu"; then
 
1627
      echo &&
 
1628
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1629
    elif test -f "$ac_srcdir/configure"; then
 
1630
      echo &&
 
1631
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1632
    else
 
1633
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1634
    fi || ac_status=$?
 
1635
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1636
  done
 
1637
fi
 
1638
 
 
1639
test -n "$ac_init_help" && exit $ac_status
 
1640
if $ac_init_version; then
 
1641
  cat <<\_ACEOF
 
1642
libvdpau configure 0.4
 
1643
generated by GNU Autoconf 2.64
 
1644
 
 
1645
Copyright (C) 2009 Free Software Foundation, Inc.
 
1646
This configure script is free software; the Free Software Foundation
 
1647
gives unlimited permission to copy, distribute and modify it.
 
1648
_ACEOF
 
1649
  exit
 
1650
fi
 
1651
 
 
1652
## ------------------------ ##
 
1653
## Autoconf initialization. ##
 
1654
## ------------------------ ##
 
1655
 
 
1656
# ac_fn_c_try_compile LINENO
 
1657
# --------------------------
 
1658
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1659
ac_fn_c_try_compile ()
 
1660
{
 
1661
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1662
  rm -f conftest.$ac_objext
 
1663
  if { { ac_try="$ac_compile"
 
1664
case "(($ac_try" in
 
1665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1666
  *) ac_try_echo=$ac_try;;
 
1667
esac
 
1668
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1669
$as_echo "$ac_try_echo"; } >&5
 
1670
  (eval "$ac_compile") 2>conftest.err
 
1671
  ac_status=$?
 
1672
  if test -s conftest.err; then
 
1673
    grep -v '^ *+' conftest.err >conftest.er1
 
1674
    cat conftest.er1 >&5
 
1675
    mv -f conftest.er1 conftest.err
 
1676
  fi
 
1677
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1678
  test $ac_status = 0; } && {
 
1679
         test -z "$ac_c_werror_flag" ||
 
1680
         test ! -s conftest.err
 
1681
       } && test -s conftest.$ac_objext; then :
 
1682
  ac_retval=0
 
1683
else
 
1684
  $as_echo "$as_me: failed program was:" >&5
 
1685
sed 's/^/| /' conftest.$ac_ext >&5
 
1686
 
 
1687
        ac_retval=1
 
1688
fi
 
1689
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1690
  return $ac_retval
 
1691
 
 
1692
} # ac_fn_c_try_compile
 
1693
 
 
1694
# ac_fn_cxx_try_compile LINENO
 
1695
# ----------------------------
 
1696
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1697
ac_fn_cxx_try_compile ()
 
1698
{
 
1699
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1700
  rm -f conftest.$ac_objext
 
1701
  if { { ac_try="$ac_compile"
 
1702
case "(($ac_try" in
 
1703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1704
  *) ac_try_echo=$ac_try;;
 
1705
esac
 
1706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1707
$as_echo "$ac_try_echo"; } >&5
 
1708
  (eval "$ac_compile") 2>conftest.err
 
1709
  ac_status=$?
 
1710
  if test -s conftest.err; then
 
1711
    grep -v '^ *+' conftest.err >conftest.er1
 
1712
    cat conftest.er1 >&5
 
1713
    mv -f conftest.er1 conftest.err
 
1714
  fi
 
1715
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1716
  test $ac_status = 0; } && {
 
1717
         test -z "$ac_cxx_werror_flag" ||
 
1718
         test ! -s conftest.err
 
1719
       } && test -s conftest.$ac_objext; then :
 
1720
  ac_retval=0
 
1721
else
 
1722
  $as_echo "$as_me: failed program was:" >&5
 
1723
sed 's/^/| /' conftest.$ac_ext >&5
 
1724
 
 
1725
        ac_retval=1
 
1726
fi
 
1727
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1728
  return $ac_retval
 
1729
 
 
1730
} # ac_fn_cxx_try_compile
 
1731
 
 
1732
# ac_fn_c_try_link LINENO
 
1733
# -----------------------
 
1734
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1735
ac_fn_c_try_link ()
 
1736
{
 
1737
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1738
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1739
  if { { ac_try="$ac_link"
 
1740
case "(($ac_try" in
 
1741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1742
  *) ac_try_echo=$ac_try;;
 
1743
esac
 
1744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1745
$as_echo "$ac_try_echo"; } >&5
 
1746
  (eval "$ac_link") 2>conftest.err
 
1747
  ac_status=$?
 
1748
  if test -s conftest.err; then
 
1749
    grep -v '^ *+' conftest.err >conftest.er1
 
1750
    cat conftest.er1 >&5
 
1751
    mv -f conftest.er1 conftest.err
 
1752
  fi
 
1753
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1754
  test $ac_status = 0; } && {
 
1755
         test -z "$ac_c_werror_flag" ||
 
1756
         test ! -s conftest.err
 
1757
       } && test -s conftest$ac_exeext && {
 
1758
         test "$cross_compiling" = yes ||
 
1759
         $as_test_x conftest$ac_exeext
 
1760
       }; then :
 
1761
  ac_retval=0
 
1762
else
 
1763
  $as_echo "$as_me: failed program was:" >&5
 
1764
sed 's/^/| /' conftest.$ac_ext >&5
 
1765
 
 
1766
        ac_retval=1
 
1767
fi
 
1768
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1769
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1770
  # interfere with the next link command; also delete a directory that is
 
1771
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1772
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1773
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1774
  return $ac_retval
 
1775
 
 
1776
} # ac_fn_c_try_link
 
1777
 
 
1778
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1779
# -------------------------------------------------------
 
1780
# Tests whether HEADER exists and can be compiled using the include files in
 
1781
# INCLUDES, setting the cache variable VAR accordingly.
 
1782
ac_fn_c_check_header_compile ()
 
1783
{
 
1784
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1785
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1786
$as_echo_n "checking for $2... " >&6; }
 
1787
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1788
  $as_echo_n "(cached) " >&6
 
1789
else
 
1790
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1791
/* end confdefs.h.  */
 
1792
$4
 
1793
#include <$2>
 
1794
_ACEOF
 
1795
if ac_fn_c_try_compile "$LINENO"; then :
 
1796
  eval "$3=yes"
 
1797
else
 
1798
  eval "$3=no"
 
1799
fi
 
1800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1801
fi
 
1802
eval ac_res=\$$3
 
1803
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1804
$as_echo "$ac_res" >&6; }
 
1805
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1806
 
 
1807
} # ac_fn_c_check_header_compile
 
1808
 
 
1809
# ac_fn_c_try_cpp LINENO
 
1810
# ----------------------
 
1811
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1812
ac_fn_c_try_cpp ()
 
1813
{
 
1814
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1815
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1816
case "(($ac_try" in
 
1817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1818
  *) ac_try_echo=$ac_try;;
 
1819
esac
 
1820
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1821
$as_echo "$ac_try_echo"; } >&5
 
1822
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1823
  ac_status=$?
 
1824
  if test -s conftest.err; then
 
1825
    grep -v '^ *+' conftest.err >conftest.er1
 
1826
    cat conftest.er1 >&5
 
1827
    mv -f conftest.er1 conftest.err
 
1828
  fi
 
1829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1830
  test $ac_status = 0; } >/dev/null && {
 
1831
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1832
         test ! -s conftest.err
 
1833
       }; then :
 
1834
  ac_retval=0
 
1835
else
 
1836
  $as_echo "$as_me: failed program was:" >&5
 
1837
sed 's/^/| /' conftest.$ac_ext >&5
 
1838
 
 
1839
    ac_retval=1
 
1840
fi
 
1841
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1842
  return $ac_retval
 
1843
 
 
1844
} # ac_fn_c_try_cpp
 
1845
 
 
1846
# ac_fn_c_try_run LINENO
 
1847
# ----------------------
 
1848
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1849
# that executables *can* be run.
 
1850
ac_fn_c_try_run ()
 
1851
{
 
1852
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1853
  if { { ac_try="$ac_link"
 
1854
case "(($ac_try" in
 
1855
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1856
  *) ac_try_echo=$ac_try;;
 
1857
esac
 
1858
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1859
$as_echo "$ac_try_echo"; } >&5
 
1860
  (eval "$ac_link") 2>&5
 
1861
  ac_status=$?
 
1862
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1863
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1864
  { { case "(($ac_try" in
 
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1866
  *) ac_try_echo=$ac_try;;
 
1867
esac
 
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1869
$as_echo "$ac_try_echo"; } >&5
 
1870
  (eval "$ac_try") 2>&5
 
1871
  ac_status=$?
 
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1873
  test $ac_status = 0; }; }; then :
 
1874
  ac_retval=0
 
1875
else
 
1876
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1877
       $as_echo "$as_me: failed program was:" >&5
 
1878
sed 's/^/| /' conftest.$ac_ext >&5
 
1879
 
 
1880
       ac_retval=$ac_status
 
1881
fi
 
1882
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1883
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1884
  return $ac_retval
 
1885
 
 
1886
} # ac_fn_c_try_run
 
1887
 
 
1888
# ac_fn_c_check_func LINENO FUNC VAR
 
1889
# ----------------------------------
 
1890
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1891
ac_fn_c_check_func ()
 
1892
{
 
1893
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1894
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1895
$as_echo_n "checking for $2... " >&6; }
 
1896
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1897
  $as_echo_n "(cached) " >&6
 
1898
else
 
1899
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1900
/* end confdefs.h.  */
 
1901
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1902
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1903
#define $2 innocuous_$2
 
1904
 
 
1905
/* System header to define __stub macros and hopefully few prototypes,
 
1906
    which can conflict with char $2 (); below.
 
1907
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1908
    <limits.h> exists even on freestanding compilers.  */
 
1909
 
 
1910
#ifdef __STDC__
 
1911
# include <limits.h>
 
1912
#else
 
1913
# include <assert.h>
 
1914
#endif
 
1915
 
 
1916
#undef $2
 
1917
 
 
1918
/* Override any GCC internal prototype to avoid an error.
 
1919
   Use char because int might match the return type of a GCC
 
1920
   builtin and then its argument prototype would still apply.  */
 
1921
#ifdef __cplusplus
 
1922
extern "C"
 
1923
#endif
 
1924
char $2 ();
 
1925
/* The GNU C library defines this for functions which it implements
 
1926
    to always fail with ENOSYS.  Some functions are actually named
 
1927
    something starting with __ and the normal name is an alias.  */
 
1928
#if defined __stub_$2 || defined __stub___$2
 
1929
choke me
 
1930
#endif
 
1931
 
 
1932
int
 
1933
main ()
 
1934
{
 
1935
return $2 ();
 
1936
  ;
 
1937
  return 0;
 
1938
}
 
1939
_ACEOF
 
1940
if ac_fn_c_try_link "$LINENO"; then :
 
1941
  eval "$3=yes"
 
1942
else
 
1943
  eval "$3=no"
 
1944
fi
 
1945
rm -f core conftest.err conftest.$ac_objext \
 
1946
    conftest$ac_exeext conftest.$ac_ext
 
1947
fi
 
1948
eval ac_res=\$$3
 
1949
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1950
$as_echo "$ac_res" >&6; }
 
1951
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1952
 
 
1953
} # ac_fn_c_check_func
 
1954
 
 
1955
# ac_fn_cxx_try_cpp LINENO
 
1956
# ------------------------
 
1957
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1958
ac_fn_cxx_try_cpp ()
 
1959
{
 
1960
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1961
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1962
case "(($ac_try" in
 
1963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1964
  *) ac_try_echo=$ac_try;;
 
1965
esac
 
1966
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1967
$as_echo "$ac_try_echo"; } >&5
 
1968
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1969
  ac_status=$?
 
1970
  if test -s conftest.err; then
 
1971
    grep -v '^ *+' conftest.err >conftest.er1
 
1972
    cat conftest.er1 >&5
 
1973
    mv -f conftest.er1 conftest.err
 
1974
  fi
 
1975
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1976
  test $ac_status = 0; } >/dev/null && {
 
1977
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1978
         test ! -s conftest.err
 
1979
       }; then :
 
1980
  ac_retval=0
 
1981
else
 
1982
  $as_echo "$as_me: failed program was:" >&5
 
1983
sed 's/^/| /' conftest.$ac_ext >&5
 
1984
 
 
1985
    ac_retval=1
 
1986
fi
 
1987
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1988
  return $ac_retval
 
1989
 
 
1990
} # ac_fn_cxx_try_cpp
 
1991
 
 
1992
# ac_fn_cxx_try_link LINENO
 
1993
# -------------------------
 
1994
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1995
ac_fn_cxx_try_link ()
 
1996
{
 
1997
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1998
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1999
  if { { ac_try="$ac_link"
 
2000
case "(($ac_try" in
 
2001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2002
  *) ac_try_echo=$ac_try;;
 
2003
esac
 
2004
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2005
$as_echo "$ac_try_echo"; } >&5
 
2006
  (eval "$ac_link") 2>conftest.err
 
2007
  ac_status=$?
 
2008
  if test -s conftest.err; then
 
2009
    grep -v '^ *+' conftest.err >conftest.er1
 
2010
    cat conftest.er1 >&5
 
2011
    mv -f conftest.er1 conftest.err
 
2012
  fi
 
2013
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2014
  test $ac_status = 0; } && {
 
2015
         test -z "$ac_cxx_werror_flag" ||
 
2016
         test ! -s conftest.err
 
2017
       } && test -s conftest$ac_exeext && {
 
2018
         test "$cross_compiling" = yes ||
 
2019
         $as_test_x conftest$ac_exeext
 
2020
       }; then :
 
2021
  ac_retval=0
 
2022
else
 
2023
  $as_echo "$as_me: failed program was:" >&5
 
2024
sed 's/^/| /' conftest.$ac_ext >&5
 
2025
 
 
2026
        ac_retval=1
 
2027
fi
 
2028
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2029
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2030
  # interfere with the next link command; also delete a directory that is
 
2031
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2032
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2033
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2034
  return $ac_retval
 
2035
 
 
2036
} # ac_fn_cxx_try_link
 
2037
cat >config.log <<_ACEOF
 
2038
This file contains any messages produced by compilers while
 
2039
running configure, to aid debugging if configure makes a mistake.
 
2040
 
 
2041
It was created by libvdpau $as_me 0.4, which was
 
2042
generated by GNU Autoconf 2.64.  Invocation command line was
 
2043
 
 
2044
  $ $0 $@
 
2045
 
 
2046
_ACEOF
 
2047
exec 5>>config.log
 
2048
{
 
2049
cat <<_ASUNAME
 
2050
## --------- ##
 
2051
## Platform. ##
 
2052
## --------- ##
 
2053
 
 
2054
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2055
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2056
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2057
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2058
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2059
 
 
2060
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2061
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2062
 
 
2063
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2064
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2065
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2066
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2067
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2068
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2069
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2070
 
 
2071
_ASUNAME
 
2072
 
 
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2074
for as_dir in $PATH
 
2075
do
 
2076
  IFS=$as_save_IFS
 
2077
  test -z "$as_dir" && as_dir=.
 
2078
    $as_echo "PATH: $as_dir"
 
2079
  done
 
2080
IFS=$as_save_IFS
 
2081
 
 
2082
} >&5
 
2083
 
 
2084
cat >&5 <<_ACEOF
 
2085
 
 
2086
 
 
2087
## ----------- ##
 
2088
## Core tests. ##
 
2089
## ----------- ##
 
2090
 
 
2091
_ACEOF
 
2092
 
 
2093
 
 
2094
# Keep a trace of the command line.
 
2095
# Strip out --no-create and --no-recursion so they do not pile up.
 
2096
# Strip out --silent because we don't want to record it for future runs.
 
2097
# Also quote any args containing shell meta-characters.
 
2098
# Make two passes to allow for proper duplicate-argument suppression.
 
2099
ac_configure_args=
 
2100
ac_configure_args0=
 
2101
ac_configure_args1=
 
2102
ac_must_keep_next=false
 
2103
for ac_pass in 1 2
 
2104
do
 
2105
  for ac_arg
 
2106
  do
 
2107
    case $ac_arg in
 
2108
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2109
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2110
    | -silent | --silent | --silen | --sile | --sil)
 
2111
      continue ;;
 
2112
    *\'*)
 
2113
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2114
    esac
 
2115
    case $ac_pass in
 
2116
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2117
    2)
 
2118
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2119
      if test $ac_must_keep_next = true; then
 
2120
        ac_must_keep_next=false # Got value, back to normal.
 
2121
      else
 
2122
        case $ac_arg in
 
2123
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2124
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2125
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2126
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2127
            case "$ac_configure_args0 " in
 
2128
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2129
            esac
 
2130
            ;;
 
2131
          -* ) ac_must_keep_next=true ;;
 
2132
        esac
 
2133
      fi
 
2134
      as_fn_append ac_configure_args " '$ac_arg'"
 
2135
      ;;
 
2136
    esac
 
2137
  done
 
2138
done
 
2139
{ ac_configure_args0=; unset ac_configure_args0;}
 
2140
{ ac_configure_args1=; unset ac_configure_args1;}
 
2141
 
 
2142
# When interrupted or exit'd, cleanup temporary files, and complete
 
2143
# config.log.  We remove comments because anyway the quotes in there
 
2144
# would cause problems or look ugly.
 
2145
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2146
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2147
trap 'exit_status=$?
 
2148
  # Save into config.log some information that might help in debugging.
 
2149
  {
 
2150
    echo
 
2151
 
 
2152
    cat <<\_ASBOX
 
2153
## ---------------- ##
 
2154
## Cache variables. ##
 
2155
## ---------------- ##
 
2156
_ASBOX
 
2157
    echo
 
2158
    # The following way of writing the cache mishandles newlines in values,
 
2159
(
 
2160
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2161
    eval ac_val=\$$ac_var
 
2162
    case $ac_val in #(
 
2163
    *${as_nl}*)
 
2164
      case $ac_var in #(
 
2165
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2166
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2167
      esac
 
2168
      case $ac_var in #(
 
2169
      _ | IFS | as_nl) ;; #(
 
2170
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2171
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2172
      esac ;;
 
2173
    esac
 
2174
  done
 
2175
  (set) 2>&1 |
 
2176
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2177
    *${as_nl}ac_space=\ *)
 
2178
      sed -n \
 
2179
        "s/'\''/'\''\\\\'\'''\''/g;
 
2180
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2181
      ;; #(
 
2182
    *)
 
2183
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2184
      ;;
 
2185
    esac |
 
2186
    sort
 
2187
)
 
2188
    echo
 
2189
 
 
2190
    cat <<\_ASBOX
 
2191
## ----------------- ##
 
2192
## Output variables. ##
 
2193
## ----------------- ##
 
2194
_ASBOX
 
2195
    echo
 
2196
    for ac_var in $ac_subst_vars
 
2197
    do
 
2198
      eval ac_val=\$$ac_var
 
2199
      case $ac_val in
 
2200
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2201
      esac
 
2202
      $as_echo "$ac_var='\''$ac_val'\''"
 
2203
    done | sort
 
2204
    echo
 
2205
 
 
2206
    if test -n "$ac_subst_files"; then
 
2207
      cat <<\_ASBOX
 
2208
## ------------------- ##
 
2209
## File substitutions. ##
 
2210
## ------------------- ##
 
2211
_ASBOX
 
2212
      echo
 
2213
      for ac_var in $ac_subst_files
 
2214
      do
 
2215
        eval ac_val=\$$ac_var
 
2216
        case $ac_val in
 
2217
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2218
        esac
 
2219
        $as_echo "$ac_var='\''$ac_val'\''"
 
2220
      done | sort
 
2221
      echo
 
2222
    fi
 
2223
 
 
2224
    if test -s confdefs.h; then
 
2225
      cat <<\_ASBOX
 
2226
## ----------- ##
 
2227
## confdefs.h. ##
 
2228
## ----------- ##
 
2229
_ASBOX
 
2230
      echo
 
2231
      cat confdefs.h
 
2232
      echo
 
2233
    fi
 
2234
    test "$ac_signal" != 0 &&
 
2235
      $as_echo "$as_me: caught signal $ac_signal"
 
2236
    $as_echo "$as_me: exit $exit_status"
 
2237
  } >&5
 
2238
  rm -f core *.core core.conftest.* &&
 
2239
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2240
    exit $exit_status
 
2241
' 0
 
2242
for ac_signal in 1 2 13 15; do
 
2243
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2244
done
 
2245
ac_signal=0
 
2246
 
 
2247
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2248
rm -f -r conftest* confdefs.h
 
2249
 
 
2250
$as_echo "/* confdefs.h */" > confdefs.h
 
2251
 
 
2252
# Predefined preprocessor variables.
 
2253
 
 
2254
cat >>confdefs.h <<_ACEOF
 
2255
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2256
_ACEOF
 
2257
 
 
2258
cat >>confdefs.h <<_ACEOF
 
2259
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2260
_ACEOF
 
2261
 
 
2262
cat >>confdefs.h <<_ACEOF
 
2263
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2264
_ACEOF
 
2265
 
 
2266
cat >>confdefs.h <<_ACEOF
 
2267
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2268
_ACEOF
 
2269
 
 
2270
cat >>confdefs.h <<_ACEOF
 
2271
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2272
_ACEOF
 
2273
 
 
2274
cat >>confdefs.h <<_ACEOF
 
2275
#define PACKAGE_URL "$PACKAGE_URL"
 
2276
_ACEOF
 
2277
 
 
2278
 
 
2279
# Let the site file select an alternate cache file if it wants to.
 
2280
# Prefer an explicitly selected file to automatically selected ones.
 
2281
ac_site_file1=NONE
 
2282
ac_site_file2=NONE
 
2283
if test -n "$CONFIG_SITE"; then
 
2284
  ac_site_file1=$CONFIG_SITE
 
2285
elif test "x$prefix" != xNONE; then
 
2286
  ac_site_file1=$prefix/share/config.site
 
2287
  ac_site_file2=$prefix/etc/config.site
 
2288
else
 
2289
  ac_site_file1=$ac_default_prefix/share/config.site
 
2290
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2291
fi
 
2292
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2293
do
 
2294
  test "x$ac_site_file" = xNONE && continue
 
2295
  if test -r "$ac_site_file"; then
 
2296
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2297
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2298
    sed 's/^/| /' "$ac_site_file" >&5
 
2299
    . "$ac_site_file"
 
2300
  fi
 
2301
done
 
2302
 
 
2303
if test -r "$cache_file"; then
 
2304
  # Some versions of bash will fail to source /dev/null (special
 
2305
  # files actually), so we avoid doing that.
 
2306
  if test -f "$cache_file"; then
 
2307
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2308
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2309
    case $cache_file in
 
2310
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2311
      *)                      . "./$cache_file";;
 
2312
    esac
 
2313
  fi
 
2314
else
 
2315
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2316
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2317
  >$cache_file
 
2318
fi
 
2319
 
 
2320
# Check that the precious variables saved in the cache have kept the same
 
2321
# value.
 
2322
ac_cache_corrupted=false
 
2323
for ac_var in $ac_precious_vars; do
 
2324
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2325
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2326
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2327
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2328
  case $ac_old_set,$ac_new_set in
 
2329
    set,)
 
2330
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2331
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2332
      ac_cache_corrupted=: ;;
 
2333
    ,set)
 
2334
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2335
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2336
      ac_cache_corrupted=: ;;
 
2337
    ,);;
 
2338
    *)
 
2339
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2340
        # differences in whitespace do not lead to failure.
 
2341
        ac_old_val_w=`echo x $ac_old_val`
 
2342
        ac_new_val_w=`echo x $ac_new_val`
 
2343
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2344
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2345
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2346
          ac_cache_corrupted=:
 
2347
        else
 
2348
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2349
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2350
          eval $ac_var=\$ac_old_val
 
2351
        fi
 
2352
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2353
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2354
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2355
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2356
      fi;;
 
2357
  esac
 
2358
  # Pass precious variables to config.status.
 
2359
  if test "$ac_new_set" = set; then
 
2360
    case $ac_new_val in
 
2361
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2362
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2363
    esac
 
2364
    case " $ac_configure_args " in
 
2365
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2366
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2367
    esac
 
2368
  fi
 
2369
done
 
2370
if $ac_cache_corrupted; then
 
2371
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2372
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2373
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2374
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2375
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2376
fi
 
2377
## -------------------- ##
 
2378
## Main body of script. ##
 
2379
## -------------------- ##
 
2380
 
 
2381
ac_ext=c
 
2382
ac_cpp='$CPP $CPPFLAGS'
 
2383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2386
 
 
2387
 
 
2388
am__api_version='1.11'
 
2389
 
 
2390
ac_aux_dir=
 
2391
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2392
  for ac_t in install-sh install.sh shtool; do
 
2393
    if test -f "$ac_dir/$ac_t"; then
 
2394
      ac_aux_dir=$ac_dir
 
2395
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2396
      break 2
 
2397
    fi
 
2398
  done
 
2399
done
 
2400
if test -z "$ac_aux_dir"; then
 
2401
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2402
fi
 
2403
 
 
2404
# These three variables are undocumented and unsupported,
 
2405
# and are intended to be withdrawn in a future Autoconf release.
 
2406
# They can cause serious problems if a builder's source tree is in a directory
 
2407
# whose full name contains unusual characters.
 
2408
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2409
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2410
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2411
 
 
2412
 
 
2413
# Find a good install program.  We prefer a C program (faster),
 
2414
# so one script is as good as another.  But avoid the broken or
 
2415
# incompatible versions:
 
2416
# SysV /etc/install, /usr/sbin/install
 
2417
# SunOS /usr/etc/install
 
2418
# IRIX /sbin/install
 
2419
# AIX /bin/install
 
2420
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2421
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2422
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2423
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2424
# OS/2's system install, which has a completely different semantic
 
2425
# ./install, which can be erroneously created by make from ./install.sh.
 
2426
# Reject install programs that cannot install multiple files.
 
2427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2428
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2429
if test -z "$INSTALL"; then
 
2430
if test "${ac_cv_path_install+set}" = set; then :
 
2431
  $as_echo_n "(cached) " >&6
 
2432
else
 
2433
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2434
for as_dir in $PATH
 
2435
do
 
2436
  IFS=$as_save_IFS
 
2437
  test -z "$as_dir" && as_dir=.
 
2438
    # Account for people who put trailing slashes in PATH elements.
 
2439
case $as_dir/ in #((
 
2440
  ./ | .// | /[cC]/* | \
 
2441
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2442
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2443
  /usr/ucb/* ) ;;
 
2444
  *)
 
2445
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2446
    # Don't use installbsd from OSF since it installs stuff as root
 
2447
    # by default.
 
2448
    for ac_prog in ginstall scoinst install; do
 
2449
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2450
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2451
          if test $ac_prog = install &&
 
2452
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2453
            # AIX install.  It has an incompatible calling convention.
 
2454
            :
 
2455
          elif test $ac_prog = install &&
 
2456
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2457
            # program-specific install script used by HP pwplus--don't use.
 
2458
            :
 
2459
          else
 
2460
            rm -rf conftest.one conftest.two conftest.dir
 
2461
            echo one > conftest.one
 
2462
            echo two > conftest.two
 
2463
            mkdir conftest.dir
 
2464
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2465
              test -s conftest.one && test -s conftest.two &&
 
2466
              test -s conftest.dir/conftest.one &&
 
2467
              test -s conftest.dir/conftest.two
 
2468
            then
 
2469
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2470
              break 3
 
2471
            fi
 
2472
          fi
 
2473
        fi
 
2474
      done
 
2475
    done
 
2476
    ;;
 
2477
esac
 
2478
 
 
2479
  done
 
2480
IFS=$as_save_IFS
 
2481
 
 
2482
rm -rf conftest.one conftest.two conftest.dir
 
2483
 
 
2484
fi
 
2485
  if test "${ac_cv_path_install+set}" = set; then
 
2486
    INSTALL=$ac_cv_path_install
 
2487
  else
 
2488
    # As a last resort, use the slow shell script.  Don't cache a
 
2489
    # value for INSTALL within a source directory, because that will
 
2490
    # break other packages using the cache if that directory is
 
2491
    # removed, or if the value is a relative name.
 
2492
    INSTALL=$ac_install_sh
 
2493
  fi
 
2494
fi
 
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2496
$as_echo "$INSTALL" >&6; }
 
2497
 
 
2498
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2499
# It thinks the first close brace ends the variable substitution.
 
2500
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2501
 
 
2502
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2503
 
 
2504
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2505
 
 
2506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2507
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2508
# Just in case
 
2509
sleep 1
 
2510
echo timestamp > conftest.file
 
2511
# Reject unsafe characters in $srcdir or the absolute working directory
 
2512
# name.  Accept space and tab only in the latter.
 
2513
am_lf='
 
2514
'
 
2515
case `pwd` in
 
2516
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2517
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2518
esac
 
2519
case $srcdir in
 
2520
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2521
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2522
esac
 
2523
 
 
2524
# Do `set' in a subshell so we don't clobber the current shell's
 
2525
# arguments.  Must try -L first in case configure is actually a
 
2526
# symlink; some systems play weird games with the mod time of symlinks
 
2527
# (eg FreeBSD returns the mod time of the symlink's containing
 
2528
# directory).
 
2529
if (
 
2530
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2531
   if test "$*" = "X"; then
 
2532
      # -L didn't work.
 
2533
      set X `ls -t "$srcdir/configure" conftest.file`
 
2534
   fi
 
2535
   rm -f conftest.file
 
2536
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2537
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2538
 
 
2539
      # If neither matched, then we have a broken ls.  This can happen
 
2540
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2541
      # broken ls alias from the environment.  This has actually
 
2542
      # happened.  Such a system could not be considered "sane".
 
2543
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2544
alias in your environment" "$LINENO" 5
 
2545
   fi
 
2546
 
 
2547
   test "$2" = conftest.file
 
2548
   )
 
2549
then
 
2550
   # Ok.
 
2551
   :
 
2552
else
 
2553
   as_fn_error "newly created file is older than distributed files!
 
2554
Check your system clock" "$LINENO" 5
 
2555
fi
 
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2557
$as_echo "yes" >&6; }
 
2558
test "$program_prefix" != NONE &&
 
2559
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2560
# Use a double $ so make ignores it.
 
2561
test "$program_suffix" != NONE &&
 
2562
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2563
# Double any \ or $.
 
2564
# By default was `s,x,x', remove it if useless.
 
2565
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2566
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2567
 
 
2568
# expand $ac_aux_dir to an absolute path
 
2569
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2570
 
 
2571
if test x"${MISSING+set}" != xset; then
 
2572
  case $am_aux_dir in
 
2573
  *\ * | *\     *)
 
2574
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2575
  *)
 
2576
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2577
  esac
 
2578
fi
 
2579
# Use eval to expand $SHELL
 
2580
if eval "$MISSING --run true"; then
 
2581
  am_missing_run="$MISSING --run "
 
2582
else
 
2583
  am_missing_run=
 
2584
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2585
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2586
fi
 
2587
 
 
2588
if test x"${install_sh}" != xset; then
 
2589
  case $am_aux_dir in
 
2590
  *\ * | *\     *)
 
2591
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2592
  *)
 
2593
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2594
  esac
 
2595
fi
 
2596
 
 
2597
# Installed binaries are usually stripped using `strip' when the user
 
2598
# run `make install-strip'.  However `strip' might not be the right
 
2599
# tool to use in cross-compilation environments, therefore Automake
 
2600
# will honor the `STRIP' environment variable to overrule this program.
 
2601
if test "$cross_compiling" != no; then
 
2602
  if test -n "$ac_tool_prefix"; then
 
2603
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2604
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2606
$as_echo_n "checking for $ac_word... " >&6; }
 
2607
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2608
  $as_echo_n "(cached) " >&6
 
2609
else
 
2610
  if test -n "$STRIP"; then
 
2611
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2612
else
 
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2614
for as_dir in $PATH
 
2615
do
 
2616
  IFS=$as_save_IFS
 
2617
  test -z "$as_dir" && as_dir=.
 
2618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2620
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2621
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2622
    break 2
 
2623
  fi
 
2624
done
 
2625
  done
 
2626
IFS=$as_save_IFS
 
2627
 
 
2628
fi
 
2629
fi
 
2630
STRIP=$ac_cv_prog_STRIP
 
2631
if test -n "$STRIP"; then
 
2632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2633
$as_echo "$STRIP" >&6; }
 
2634
else
 
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2636
$as_echo "no" >&6; }
 
2637
fi
 
2638
 
 
2639
 
 
2640
fi
 
2641
if test -z "$ac_cv_prog_STRIP"; then
 
2642
  ac_ct_STRIP=$STRIP
 
2643
  # Extract the first word of "strip", so it can be a program name with args.
 
2644
set dummy strip; ac_word=$2
 
2645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2646
$as_echo_n "checking for $ac_word... " >&6; }
 
2647
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2648
  $as_echo_n "(cached) " >&6
 
2649
else
 
2650
  if test -n "$ac_ct_STRIP"; then
 
2651
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2652
else
 
2653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2654
for as_dir in $PATH
 
2655
do
 
2656
  IFS=$as_save_IFS
 
2657
  test -z "$as_dir" && as_dir=.
 
2658
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2659
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2660
    ac_cv_prog_ac_ct_STRIP="strip"
 
2661
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2662
    break 2
 
2663
  fi
 
2664
done
 
2665
  done
 
2666
IFS=$as_save_IFS
 
2667
 
 
2668
fi
 
2669
fi
 
2670
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2671
if test -n "$ac_ct_STRIP"; then
 
2672
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2673
$as_echo "$ac_ct_STRIP" >&6; }
 
2674
else
 
2675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2676
$as_echo "no" >&6; }
 
2677
fi
 
2678
 
 
2679
  if test "x$ac_ct_STRIP" = x; then
 
2680
    STRIP=":"
 
2681
  else
 
2682
    case $cross_compiling:$ac_tool_warned in
 
2683
yes:)
 
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2685
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2686
ac_tool_warned=yes ;;
 
2687
esac
 
2688
    STRIP=$ac_ct_STRIP
 
2689
  fi
 
2690
else
 
2691
  STRIP="$ac_cv_prog_STRIP"
 
2692
fi
 
2693
 
 
2694
fi
 
2695
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2696
 
 
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2698
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2699
if test -z "$MKDIR_P"; then
 
2700
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2701
  $as_echo_n "(cached) " >&6
 
2702
else
 
2703
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2704
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2705
do
 
2706
  IFS=$as_save_IFS
 
2707
  test -z "$as_dir" && as_dir=.
 
2708
    for ac_prog in mkdir gmkdir; do
 
2709
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2710
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2711
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2712
             'mkdir (GNU coreutils) '* | \
 
2713
             'mkdir (coreutils) '* | \
 
2714
             'mkdir (fileutils) '4.1*)
 
2715
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2716
               break 3;;
 
2717
           esac
 
2718
         done
 
2719
       done
 
2720
  done
 
2721
IFS=$as_save_IFS
 
2722
 
 
2723
fi
 
2724
 
 
2725
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2726
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2727
  else
 
2728
    # As a last resort, use the slow shell script.  Don't cache a
 
2729
    # value for MKDIR_P within a source directory, because that will
 
2730
    # break other packages using the cache if that directory is
 
2731
    # removed, or if the value is a relative name.
 
2732
    test -d ./--version && rmdir ./--version
 
2733
    MKDIR_P="$ac_install_sh -d"
 
2734
  fi
 
2735
fi
 
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2737
$as_echo "$MKDIR_P" >&6; }
 
2738
 
 
2739
mkdir_p="$MKDIR_P"
 
2740
case $mkdir_p in
 
2741
  [\\/$]* | ?:[\\/]*) ;;
 
2742
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2743
esac
 
2744
 
 
2745
for ac_prog in gawk mawk nawk awk
 
2746
do
 
2747
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2748
set dummy $ac_prog; ac_word=$2
 
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2750
$as_echo_n "checking for $ac_word... " >&6; }
 
2751
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2752
  $as_echo_n "(cached) " >&6
 
2753
else
 
2754
  if test -n "$AWK"; then
 
2755
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2756
else
 
2757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2758
for as_dir in $PATH
 
2759
do
 
2760
  IFS=$as_save_IFS
 
2761
  test -z "$as_dir" && as_dir=.
 
2762
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2763
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2764
    ac_cv_prog_AWK="$ac_prog"
 
2765
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2766
    break 2
 
2767
  fi
 
2768
done
 
2769
  done
 
2770
IFS=$as_save_IFS
 
2771
 
 
2772
fi
 
2773
fi
 
2774
AWK=$ac_cv_prog_AWK
 
2775
if test -n "$AWK"; then
 
2776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2777
$as_echo "$AWK" >&6; }
 
2778
else
 
2779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2780
$as_echo "no" >&6; }
 
2781
fi
 
2782
 
 
2783
 
 
2784
  test -n "$AWK" && break
 
2785
done
 
2786
 
 
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2788
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2789
set x ${MAKE-make}
 
2790
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2791
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2792
  $as_echo_n "(cached) " >&6
 
2793
else
 
2794
  cat >conftest.make <<\_ACEOF
 
2795
SHELL = /bin/sh
 
2796
all:
 
2797
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2798
_ACEOF
 
2799
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2800
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2801
  *@@@%%%=?*=@@@%%%*)
 
2802
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2803
  *)
 
2804
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2805
esac
 
2806
rm -f conftest.make
 
2807
fi
 
2808
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2810
$as_echo "yes" >&6; }
 
2811
  SET_MAKE=
 
2812
else
 
2813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2814
$as_echo "no" >&6; }
 
2815
  SET_MAKE="MAKE=${MAKE-make}"
 
2816
fi
 
2817
 
 
2818
rm -rf .tst 2>/dev/null
 
2819
mkdir .tst 2>/dev/null
 
2820
if test -d .tst; then
 
2821
  am__leading_dot=.
 
2822
else
 
2823
  am__leading_dot=_
 
2824
fi
 
2825
rmdir .tst 2>/dev/null
 
2826
 
 
2827
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2828
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2829
  # is not polluted with repeated "-I."
 
2830
  am__isrc=' -I$(srcdir)'
 
2831
  # test to see if srcdir already configured
 
2832
  if test -f $srcdir/config.status; then
 
2833
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2834
  fi
 
2835
fi
 
2836
 
 
2837
# test whether we have cygpath
 
2838
if test -z "$CYGPATH_W"; then
 
2839
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2840
    CYGPATH_W='cygpath -w'
 
2841
  else
 
2842
    CYGPATH_W=echo
 
2843
  fi
 
2844
fi
 
2845
 
 
2846
 
 
2847
# Define the identity of the package.
 
2848
 PACKAGE='libvdpau'
 
2849
 VERSION='0.4'
 
2850
 
 
2851
 
 
2852
cat >>confdefs.h <<_ACEOF
 
2853
#define PACKAGE "$PACKAGE"
 
2854
_ACEOF
 
2855
 
 
2856
 
 
2857
cat >>confdefs.h <<_ACEOF
 
2858
#define VERSION "$VERSION"
 
2859
_ACEOF
 
2860
 
 
2861
# Some tools Automake needs.
 
2862
 
 
2863
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2864
 
 
2865
 
 
2866
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2867
 
 
2868
 
 
2869
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2870
 
 
2871
 
 
2872
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2873
 
 
2874
 
 
2875
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2876
 
 
2877
# We need awk for the "check" target.  The system "awk" is bad on
 
2878
# some platforms.
 
2879
# Always define AMTAR for backward compatibility.
 
2880
 
 
2881
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2882
 
 
2883
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2884
 
 
2885
 
 
2886
 
 
2887
 
 
2888
 
 
2889
 
 
2890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2891
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2892
    # Check whether --enable-maintainer-mode was given.
 
2893
if test "${enable_maintainer_mode+set}" = set; then :
 
2894
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2895
else
 
2896
  USE_MAINTAINER_MODE=no
 
2897
fi
 
2898
 
 
2899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2900
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2901
   if test $USE_MAINTAINER_MODE = yes; then
 
2902
  MAINTAINER_MODE_TRUE=
 
2903
  MAINTAINER_MODE_FALSE='#'
 
2904
else
 
2905
  MAINTAINER_MODE_TRUE='#'
 
2906
  MAINTAINER_MODE_FALSE=
 
2907
fi
 
2908
 
 
2909
  MAINT=$MAINTAINER_MODE_TRUE
 
2910
 
 
2911
 
 
2912
 
 
2913
ac_config_headers="$ac_config_headers config.h"
 
2914
 
 
2915
 
 
2916
# Disable static libraries by default.  Use --enable-static if you really want
 
2917
# them.
 
2918
# Check whether --enable-static was given.
 
2919
if test "${enable_static+set}" = set; then :
 
2920
  enableval=$enable_static; p=${PACKAGE-default}
 
2921
    case $enableval in
 
2922
    yes) enable_static=yes ;;
 
2923
    no) enable_static=no ;;
 
2924
    *)
 
2925
     enable_static=no
 
2926
      # Look at the argument we got.  We use all the common list separators.
 
2927
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2928
      for pkg in $enableval; do
 
2929
        IFS="$lt_save_ifs"
 
2930
        if test "X$pkg" = "X$p"; then
 
2931
          enable_static=yes
 
2932
        fi
 
2933
      done
 
2934
      IFS="$lt_save_ifs"
 
2935
      ;;
 
2936
    esac
 
2937
else
 
2938
  enable_static=no
 
2939
fi
 
2940
 
 
2941
 
 
2942
 
 
2943
 
 
2944
 
 
2945
 
 
2946
 
 
2947
 
 
2948
 
 
2949
 
 
2950
# Check for programs.
 
2951
ac_ext=c
 
2952
ac_cpp='$CPP $CPPFLAGS'
 
2953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2956
if test -n "$ac_tool_prefix"; then
 
2957
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2958
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2960
$as_echo_n "checking for $ac_word... " >&6; }
 
2961
if test "${ac_cv_prog_CC+set}" = set; then :
 
2962
  $as_echo_n "(cached) " >&6
 
2963
else
 
2964
  if test -n "$CC"; then
 
2965
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2966
else
 
2967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2968
for as_dir in $PATH
 
2969
do
 
2970
  IFS=$as_save_IFS
 
2971
  test -z "$as_dir" && as_dir=.
 
2972
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2974
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2975
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2976
    break 2
 
2977
  fi
 
2978
done
 
2979
  done
 
2980
IFS=$as_save_IFS
 
2981
 
 
2982
fi
 
2983
fi
 
2984
CC=$ac_cv_prog_CC
 
2985
if test -n "$CC"; then
 
2986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2987
$as_echo "$CC" >&6; }
 
2988
else
 
2989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2990
$as_echo "no" >&6; }
 
2991
fi
 
2992
 
 
2993
 
 
2994
fi
 
2995
if test -z "$ac_cv_prog_CC"; then
 
2996
  ac_ct_CC=$CC
 
2997
  # Extract the first word of "gcc", so it can be a program name with args.
 
2998
set dummy gcc; ac_word=$2
 
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3000
$as_echo_n "checking for $ac_word... " >&6; }
 
3001
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3002
  $as_echo_n "(cached) " >&6
 
3003
else
 
3004
  if test -n "$ac_ct_CC"; then
 
3005
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3006
else
 
3007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3008
for as_dir in $PATH
 
3009
do
 
3010
  IFS=$as_save_IFS
 
3011
  test -z "$as_dir" && as_dir=.
 
3012
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3014
    ac_cv_prog_ac_ct_CC="gcc"
 
3015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3016
    break 2
 
3017
  fi
 
3018
done
 
3019
  done
 
3020
IFS=$as_save_IFS
 
3021
 
 
3022
fi
 
3023
fi
 
3024
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3025
if test -n "$ac_ct_CC"; then
 
3026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3027
$as_echo "$ac_ct_CC" >&6; }
 
3028
else
 
3029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3030
$as_echo "no" >&6; }
 
3031
fi
 
3032
 
 
3033
  if test "x$ac_ct_CC" = x; then
 
3034
    CC=""
 
3035
  else
 
3036
    case $cross_compiling:$ac_tool_warned in
 
3037
yes:)
 
3038
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3039
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3040
ac_tool_warned=yes ;;
 
3041
esac
 
3042
    CC=$ac_ct_CC
 
3043
  fi
 
3044
else
 
3045
  CC="$ac_cv_prog_CC"
 
3046
fi
 
3047
 
 
3048
if test -z "$CC"; then
 
3049
          if test -n "$ac_tool_prefix"; then
 
3050
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3051
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3053
$as_echo_n "checking for $ac_word... " >&6; }
 
3054
if test "${ac_cv_prog_CC+set}" = set; then :
 
3055
  $as_echo_n "(cached) " >&6
 
3056
else
 
3057
  if test -n "$CC"; then
 
3058
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3059
else
 
3060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3061
for as_dir in $PATH
 
3062
do
 
3063
  IFS=$as_save_IFS
 
3064
  test -z "$as_dir" && as_dir=.
 
3065
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3067
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3068
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3069
    break 2
 
3070
  fi
 
3071
done
 
3072
  done
 
3073
IFS=$as_save_IFS
 
3074
 
 
3075
fi
 
3076
fi
 
3077
CC=$ac_cv_prog_CC
 
3078
if test -n "$CC"; then
 
3079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3080
$as_echo "$CC" >&6; }
 
3081
else
 
3082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3083
$as_echo "no" >&6; }
 
3084
fi
 
3085
 
 
3086
 
 
3087
  fi
 
3088
fi
 
3089
if test -z "$CC"; then
 
3090
  # Extract the first word of "cc", so it can be a program name with args.
 
3091
set dummy cc; ac_word=$2
 
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3093
$as_echo_n "checking for $ac_word... " >&6; }
 
3094
if test "${ac_cv_prog_CC+set}" = set; then :
 
3095
  $as_echo_n "(cached) " >&6
 
3096
else
 
3097
  if test -n "$CC"; then
 
3098
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3099
else
 
3100
  ac_prog_rejected=no
 
3101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3102
for as_dir in $PATH
 
3103
do
 
3104
  IFS=$as_save_IFS
 
3105
  test -z "$as_dir" && as_dir=.
 
3106
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3108
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3109
       ac_prog_rejected=yes
 
3110
       continue
 
3111
     fi
 
3112
    ac_cv_prog_CC="cc"
 
3113
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3114
    break 2
 
3115
  fi
 
3116
done
 
3117
  done
 
3118
IFS=$as_save_IFS
 
3119
 
 
3120
if test $ac_prog_rejected = yes; then
 
3121
  # We found a bogon in the path, so make sure we never use it.
 
3122
  set dummy $ac_cv_prog_CC
 
3123
  shift
 
3124
  if test $# != 0; then
 
3125
    # We chose a different compiler from the bogus one.
 
3126
    # However, it has the same basename, so the bogon will be chosen
 
3127
    # first if we set CC to just the basename; use the full file name.
 
3128
    shift
 
3129
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3130
  fi
 
3131
fi
 
3132
fi
 
3133
fi
 
3134
CC=$ac_cv_prog_CC
 
3135
if test -n "$CC"; then
 
3136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3137
$as_echo "$CC" >&6; }
 
3138
else
 
3139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3140
$as_echo "no" >&6; }
 
3141
fi
 
3142
 
 
3143
 
 
3144
fi
 
3145
if test -z "$CC"; then
 
3146
  if test -n "$ac_tool_prefix"; then
 
3147
  for ac_prog in cl.exe
 
3148
  do
 
3149
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3150
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3152
$as_echo_n "checking for $ac_word... " >&6; }
 
3153
if test "${ac_cv_prog_CC+set}" = set; then :
 
3154
  $as_echo_n "(cached) " >&6
 
3155
else
 
3156
  if test -n "$CC"; then
 
3157
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3158
else
 
3159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3160
for as_dir in $PATH
 
3161
do
 
3162
  IFS=$as_save_IFS
 
3163
  test -z "$as_dir" && as_dir=.
 
3164
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3166
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3168
    break 2
 
3169
  fi
 
3170
done
 
3171
  done
 
3172
IFS=$as_save_IFS
 
3173
 
 
3174
fi
 
3175
fi
 
3176
CC=$ac_cv_prog_CC
 
3177
if test -n "$CC"; then
 
3178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3179
$as_echo "$CC" >&6; }
 
3180
else
 
3181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3182
$as_echo "no" >&6; }
 
3183
fi
 
3184
 
 
3185
 
 
3186
    test -n "$CC" && break
 
3187
  done
 
3188
fi
 
3189
if test -z "$CC"; then
 
3190
  ac_ct_CC=$CC
 
3191
  for ac_prog in cl.exe
 
3192
do
 
3193
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3194
set dummy $ac_prog; ac_word=$2
 
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3196
$as_echo_n "checking for $ac_word... " >&6; }
 
3197
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3198
  $as_echo_n "(cached) " >&6
 
3199
else
 
3200
  if test -n "$ac_ct_CC"; then
 
3201
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3202
else
 
3203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3204
for as_dir in $PATH
 
3205
do
 
3206
  IFS=$as_save_IFS
 
3207
  test -z "$as_dir" && as_dir=.
 
3208
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3209
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3210
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3211
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3212
    break 2
 
3213
  fi
 
3214
done
 
3215
  done
 
3216
IFS=$as_save_IFS
 
3217
 
 
3218
fi
 
3219
fi
 
3220
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3221
if test -n "$ac_ct_CC"; then
 
3222
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3223
$as_echo "$ac_ct_CC" >&6; }
 
3224
else
 
3225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3226
$as_echo "no" >&6; }
 
3227
fi
 
3228
 
 
3229
 
 
3230
  test -n "$ac_ct_CC" && break
 
3231
done
 
3232
 
 
3233
  if test "x$ac_ct_CC" = x; then
 
3234
    CC=""
 
3235
  else
 
3236
    case $cross_compiling:$ac_tool_warned in
 
3237
yes:)
 
3238
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3239
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3240
ac_tool_warned=yes ;;
 
3241
esac
 
3242
    CC=$ac_ct_CC
 
3243
  fi
 
3244
fi
 
3245
 
 
3246
fi
 
3247
 
 
3248
 
 
3249
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3250
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3251
as_fn_error "no acceptable C compiler found in \$PATH
 
3252
See \`config.log' for more details." "$LINENO" 5; }
 
3253
 
 
3254
# Provide some information about the compiler.
 
3255
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3256
set X $ac_compile
 
3257
ac_compiler=$2
 
3258
for ac_option in --version -v -V -qversion; do
 
3259
  { { ac_try="$ac_compiler $ac_option >&5"
 
3260
case "(($ac_try" in
 
3261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3262
  *) ac_try_echo=$ac_try;;
 
3263
esac
 
3264
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3265
$as_echo "$ac_try_echo"; } >&5
 
3266
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3267
  ac_status=$?
 
3268
  if test -s conftest.err; then
 
3269
    sed '10a\
 
3270
... rest of stderr output deleted ...
 
3271
         10q' conftest.err >conftest.er1
 
3272
    cat conftest.er1 >&5
 
3273
    rm -f conftest.er1 conftest.err
 
3274
  fi
 
3275
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3276
  test $ac_status = 0; }
 
3277
done
 
3278
 
 
3279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3280
/* end confdefs.h.  */
 
3281
#include <stdio.h>
 
3282
int
 
3283
main ()
 
3284
{
 
3285
FILE *f = fopen ("conftest.out", "w");
 
3286
 return ferror (f) || fclose (f) != 0;
 
3287
 
 
3288
  ;
 
3289
  return 0;
 
3290
}
 
3291
_ACEOF
 
3292
ac_clean_files_save=$ac_clean_files
 
3293
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
3294
# Try to create an executable without -o first, disregard a.out.
 
3295
# It will help us diagnose broken compilers, and finding out an intuition
 
3296
# of exeext.
 
3297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3298
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3299
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3300
 
 
3301
# The possible output files:
 
3302
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3303
 
 
3304
ac_rmfiles=
 
3305
for ac_file in $ac_files
 
3306
do
 
3307
  case $ac_file in
 
3308
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3309
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3310
  esac
 
3311
done
 
3312
rm -f $ac_rmfiles
 
3313
 
 
3314
if { { ac_try="$ac_link_default"
 
3315
case "(($ac_try" in
 
3316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3317
  *) ac_try_echo=$ac_try;;
 
3318
esac
 
3319
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3320
$as_echo "$ac_try_echo"; } >&5
 
3321
  (eval "$ac_link_default") 2>&5
 
3322
  ac_status=$?
 
3323
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3324
  test $ac_status = 0; }; then :
 
3325
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3326
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3327
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3328
# so that the user can short-circuit this test for compilers unknown to
 
3329
# Autoconf.
 
3330
for ac_file in $ac_files ''
 
3331
do
 
3332
  test -f "$ac_file" || continue
 
3333
  case $ac_file in
 
3334
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3335
        ;;
 
3336
    [ab].out )
 
3337
        # We found the default executable, but exeext='' is most
 
3338
        # certainly right.
 
3339
        break;;
 
3340
    *.* )
 
3341
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3342
        then :; else
 
3343
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3344
        fi
 
3345
        # We set ac_cv_exeext here because the later test for it is not
 
3346
        # safe: cross compilers may not add the suffix if given an `-o'
 
3347
        # argument, so we may need to know it at that point already.
 
3348
        # Even if this section looks crufty: it has the advantage of
 
3349
        # actually working.
 
3350
        break;;
 
3351
    * )
 
3352
        break;;
 
3353
  esac
 
3354
done
 
3355
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3356
 
 
3357
else
 
3358
  ac_file=''
 
3359
fi
 
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3361
$as_echo "$ac_file" >&6; }
 
3362
if test -z "$ac_file"; then :
 
3363
  $as_echo "$as_me: failed program was:" >&5
 
3364
sed 's/^/| /' conftest.$ac_ext >&5
 
3365
 
 
3366
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3367
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3368
{ as_fn_set_status 77
 
3369
as_fn_error "C compiler cannot create executables
 
3370
See \`config.log' for more details." "$LINENO" 5; }; }
 
3371
fi
 
3372
ac_exeext=$ac_cv_exeext
 
3373
 
 
3374
# Check that the compiler produces executables we can run.  If not, either
 
3375
# the compiler is broken, or we cross compile.
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3377
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3378
# If not cross compiling, check that we can run a simple program.
 
3379
if test "$cross_compiling" != yes; then
 
3380
  if { ac_try='./$ac_file'
 
3381
  { { case "(($ac_try" in
 
3382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3383
  *) ac_try_echo=$ac_try;;
 
3384
esac
 
3385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3386
$as_echo "$ac_try_echo"; } >&5
 
3387
  (eval "$ac_try") 2>&5
 
3388
  ac_status=$?
 
3389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3390
  test $ac_status = 0; }; }; then
 
3391
    cross_compiling=no
 
3392
  else
 
3393
    if test "$cross_compiling" = maybe; then
 
3394
        cross_compiling=yes
 
3395
    else
 
3396
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3397
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3398
as_fn_error "cannot run C compiled programs.
 
3399
If you meant to cross compile, use \`--host'.
 
3400
See \`config.log' for more details." "$LINENO" 5; }
 
3401
    fi
 
3402
  fi
 
3403
fi
 
3404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3405
$as_echo "yes" >&6; }
 
3406
 
 
3407
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
3408
ac_clean_files=$ac_clean_files_save
 
3409
# Check that the compiler produces executables we can run.  If not, either
 
3410
# the compiler is broken, or we cross compile.
 
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3412
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3414
$as_echo "$cross_compiling" >&6; }
 
3415
 
 
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3417
$as_echo_n "checking for suffix of executables... " >&6; }
 
3418
if { { ac_try="$ac_link"
 
3419
case "(($ac_try" in
 
3420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3421
  *) ac_try_echo=$ac_try;;
 
3422
esac
 
3423
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3424
$as_echo "$ac_try_echo"; } >&5
 
3425
  (eval "$ac_link") 2>&5
 
3426
  ac_status=$?
 
3427
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3428
  test $ac_status = 0; }; then :
 
3429
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3430
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3431
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3432
# `rm'.
 
3433
for ac_file in conftest.exe conftest conftest.*; do
 
3434
  test -f "$ac_file" || continue
 
3435
  case $ac_file in
 
3436
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3437
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3438
          break;;
 
3439
    * ) break;;
 
3440
  esac
 
3441
done
 
3442
else
 
3443
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3444
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3445
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3446
See \`config.log' for more details." "$LINENO" 5; }
 
3447
fi
 
3448
rm -f conftest$ac_cv_exeext
 
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3450
$as_echo "$ac_cv_exeext" >&6; }
 
3451
 
 
3452
rm -f conftest.$ac_ext
 
3453
EXEEXT=$ac_cv_exeext
 
3454
ac_exeext=$EXEEXT
 
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3456
$as_echo_n "checking for suffix of object files... " >&6; }
 
3457
if test "${ac_cv_objext+set}" = set; then :
 
3458
  $as_echo_n "(cached) " >&6
 
3459
else
 
3460
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3461
/* end confdefs.h.  */
 
3462
 
 
3463
int
 
3464
main ()
 
3465
{
 
3466
 
 
3467
  ;
 
3468
  return 0;
 
3469
}
 
3470
_ACEOF
 
3471
rm -f conftest.o conftest.obj
 
3472
if { { ac_try="$ac_compile"
 
3473
case "(($ac_try" in
 
3474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3475
  *) ac_try_echo=$ac_try;;
 
3476
esac
 
3477
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3478
$as_echo "$ac_try_echo"; } >&5
 
3479
  (eval "$ac_compile") 2>&5
 
3480
  ac_status=$?
 
3481
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3482
  test $ac_status = 0; }; then :
 
3483
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3484
  test -f "$ac_file" || continue;
 
3485
  case $ac_file in
 
3486
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3487
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3488
       break;;
 
3489
  esac
 
3490
done
 
3491
else
 
3492
  $as_echo "$as_me: failed program was:" >&5
 
3493
sed 's/^/| /' conftest.$ac_ext >&5
 
3494
 
 
3495
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3496
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3497
as_fn_error "cannot compute suffix of object files: cannot compile
 
3498
See \`config.log' for more details." "$LINENO" 5; }
 
3499
fi
 
3500
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3501
fi
 
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3503
$as_echo "$ac_cv_objext" >&6; }
 
3504
OBJEXT=$ac_cv_objext
 
3505
ac_objext=$OBJEXT
 
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3507
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3508
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3509
  $as_echo_n "(cached) " >&6
 
3510
else
 
3511
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3512
/* end confdefs.h.  */
 
3513
 
 
3514
int
 
3515
main ()
 
3516
{
 
3517
#ifndef __GNUC__
 
3518
       choke me
 
3519
#endif
 
3520
 
 
3521
  ;
 
3522
  return 0;
 
3523
}
 
3524
_ACEOF
 
3525
if ac_fn_c_try_compile "$LINENO"; then :
 
3526
  ac_compiler_gnu=yes
 
3527
else
 
3528
  ac_compiler_gnu=no
 
3529
fi
 
3530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3531
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3532
 
 
3533
fi
 
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3535
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3536
if test $ac_compiler_gnu = yes; then
 
3537
  GCC=yes
 
3538
else
 
3539
  GCC=
 
3540
fi
 
3541
ac_test_CFLAGS=${CFLAGS+set}
 
3542
ac_save_CFLAGS=$CFLAGS
 
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3544
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3545
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3546
  $as_echo_n "(cached) " >&6
 
3547
else
 
3548
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3549
   ac_c_werror_flag=yes
 
3550
   ac_cv_prog_cc_g=no
 
3551
   CFLAGS="-g"
 
3552
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3553
/* end confdefs.h.  */
 
3554
 
 
3555
int
 
3556
main ()
 
3557
{
 
3558
 
 
3559
  ;
 
3560
  return 0;
 
3561
}
 
3562
_ACEOF
 
3563
if ac_fn_c_try_compile "$LINENO"; then :
 
3564
  ac_cv_prog_cc_g=yes
 
3565
else
 
3566
  CFLAGS=""
 
3567
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3568
/* end confdefs.h.  */
 
3569
 
 
3570
int
 
3571
main ()
 
3572
{
 
3573
 
 
3574
  ;
 
3575
  return 0;
 
3576
}
 
3577
_ACEOF
 
3578
if ac_fn_c_try_compile "$LINENO"; then :
 
3579
 
 
3580
else
 
3581
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3582
         CFLAGS="-g"
 
3583
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3584
/* end confdefs.h.  */
 
3585
 
 
3586
int
 
3587
main ()
 
3588
{
 
3589
 
 
3590
  ;
 
3591
  return 0;
 
3592
}
 
3593
_ACEOF
 
3594
if ac_fn_c_try_compile "$LINENO"; then :
 
3595
  ac_cv_prog_cc_g=yes
 
3596
fi
 
3597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3598
fi
 
3599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3600
fi
 
3601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3602
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3603
fi
 
3604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3605
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3606
if test "$ac_test_CFLAGS" = set; then
 
3607
  CFLAGS=$ac_save_CFLAGS
 
3608
elif test $ac_cv_prog_cc_g = yes; then
 
3609
  if test "$GCC" = yes; then
 
3610
    CFLAGS="-g -O2"
 
3611
  else
 
3612
    CFLAGS="-g"
 
3613
  fi
 
3614
else
 
3615
  if test "$GCC" = yes; then
 
3616
    CFLAGS="-O2"
 
3617
  else
 
3618
    CFLAGS=
 
3619
  fi
 
3620
fi
 
3621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3622
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3623
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3624
  $as_echo_n "(cached) " >&6
 
3625
else
 
3626
  ac_cv_prog_cc_c89=no
 
3627
ac_save_CC=$CC
 
3628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3629
/* end confdefs.h.  */
 
3630
#include <stdarg.h>
 
3631
#include <stdio.h>
 
3632
#include <sys/types.h>
 
3633
#include <sys/stat.h>
 
3634
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3635
struct buf { int x; };
 
3636
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3637
static char *e (p, i)
 
3638
     char **p;
 
3639
     int i;
 
3640
{
 
3641
  return p[i];
 
3642
}
 
3643
static char *f (char * (*g) (char **, int), char **p, ...)
 
3644
{
 
3645
  char *s;
 
3646
  va_list v;
 
3647
  va_start (v,p);
 
3648
  s = g (p, va_arg (v,int));
 
3649
  va_end (v);
 
3650
  return s;
 
3651
}
 
3652
 
 
3653
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3654
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3655
   These don't provoke an error unfortunately, instead are silently treated
 
3656
   as 'x'.  The following induces an error, until -std is added to get
 
3657
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3658
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3659
   that's true only with -std.  */
 
3660
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3661
 
 
3662
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3663
   inside strings and character constants.  */
 
3664
#define FOO(x) 'x'
 
3665
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3666
 
 
3667
int test (int i, double x);
 
3668
struct s1 {int (*f) (int a);};
 
3669
struct s2 {int (*f) (double a);};
 
3670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3671
int argc;
 
3672
char **argv;
 
3673
int
 
3674
main ()
 
3675
{
 
3676
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3677
  ;
 
3678
  return 0;
 
3679
}
 
3680
_ACEOF
 
3681
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3682
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3683
do
 
3684
  CC="$ac_save_CC $ac_arg"
 
3685
  if ac_fn_c_try_compile "$LINENO"; then :
 
3686
  ac_cv_prog_cc_c89=$ac_arg
 
3687
fi
 
3688
rm -f core conftest.err conftest.$ac_objext
 
3689
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3690
done
 
3691
rm -f conftest.$ac_ext
 
3692
CC=$ac_save_CC
 
3693
 
 
3694
fi
 
3695
# AC_CACHE_VAL
 
3696
case "x$ac_cv_prog_cc_c89" in
 
3697
  x)
 
3698
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3699
$as_echo "none needed" >&6; } ;;
 
3700
  xno)
 
3701
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3702
$as_echo "unsupported" >&6; } ;;
 
3703
  *)
 
3704
    CC="$CC $ac_cv_prog_cc_c89"
 
3705
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3706
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3707
esac
 
3708
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3709
 
 
3710
fi
 
3711
 
 
3712
ac_ext=c
 
3713
ac_cpp='$CPP $CPPFLAGS'
 
3714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3717
DEPDIR="${am__leading_dot}deps"
 
3718
 
 
3719
ac_config_commands="$ac_config_commands depfiles"
 
3720
 
 
3721
 
 
3722
am_make=${MAKE-make}
 
3723
cat > confinc << 'END'
 
3724
am__doit:
 
3725
        @echo this is the am__doit target
 
3726
.PHONY: am__doit
 
3727
END
 
3728
# If we don't find an include directive, just comment out the code.
 
3729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3730
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3731
am__include="#"
 
3732
am__quote=
 
3733
_am_result=none
 
3734
# First try GNU make style include.
 
3735
echo "include confinc" > confmf
 
3736
# Ignore all kinds of additional output from `make'.
 
3737
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3738
*the\ am__doit\ target*)
 
3739
  am__include=include
 
3740
  am__quote=
 
3741
  _am_result=GNU
 
3742
  ;;
 
3743
esac
 
3744
# Now try BSD make style include.
 
3745
if test "$am__include" = "#"; then
 
3746
   echo '.include "confinc"' > confmf
 
3747
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3748
   *the\ am__doit\ target*)
 
3749
     am__include=.include
 
3750
     am__quote="\""
 
3751
     _am_result=BSD
 
3752
     ;;
 
3753
   esac
 
3754
fi
 
3755
 
 
3756
 
 
3757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3758
$as_echo "$_am_result" >&6; }
 
3759
rm -f confinc confmf
 
3760
 
 
3761
# Check whether --enable-dependency-tracking was given.
 
3762
if test "${enable_dependency_tracking+set}" = set; then :
 
3763
  enableval=$enable_dependency_tracking;
 
3764
fi
 
3765
 
 
3766
if test "x$enable_dependency_tracking" != xno; then
 
3767
  am_depcomp="$ac_aux_dir/depcomp"
 
3768
  AMDEPBACKSLASH='\'
 
3769
fi
 
3770
 if test "x$enable_dependency_tracking" != xno; then
 
3771
  AMDEP_TRUE=
 
3772
  AMDEP_FALSE='#'
 
3773
else
 
3774
  AMDEP_TRUE='#'
 
3775
  AMDEP_FALSE=
 
3776
fi
 
3777
 
 
3778
 
 
3779
 
 
3780
depcc="$CC"   am_compiler_list=
 
3781
 
 
3782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3783
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3784
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3785
  $as_echo_n "(cached) " >&6
 
3786
else
 
3787
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3788
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3789
  # making bogus files that we don't know about and never remove.  For
 
3790
  # instance it was reported that on HP-UX the gcc test will end up
 
3791
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3792
  # in D'.
 
3793
  mkdir conftest.dir
 
3794
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3795
  # using a relative directory.
 
3796
  cp "$am_depcomp" conftest.dir
 
3797
  cd conftest.dir
 
3798
  # We will build objects and dependencies in a subdirectory because
 
3799
  # it helps to detect inapplicable dependency modes.  For instance
 
3800
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3801
  # side effect of compilation, but ICC will put the dependencies in
 
3802
  # the current directory while Tru64 will put them in the object
 
3803
  # directory.
 
3804
  mkdir sub
 
3805
 
 
3806
  am_cv_CC_dependencies_compiler_type=none
 
3807
  if test "$am_compiler_list" = ""; then
 
3808
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3809
  fi
 
3810
  am__universal=false
 
3811
  case " $depcc " in #(
 
3812
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3813
     esac
 
3814
 
 
3815
  for depmode in $am_compiler_list; do
 
3816
    # Setup a source with many dependencies, because some compilers
 
3817
    # like to wrap large dependency lists on column 80 (with \), and
 
3818
    # we should not choose a depcomp mode which is confused by this.
 
3819
    #
 
3820
    # We need to recreate these files for each test, as the compiler may
 
3821
    # overwrite some of them when testing with obscure command lines.
 
3822
    # This happens at least with the AIX C compiler.
 
3823
    : > sub/conftest.c
 
3824
    for i in 1 2 3 4 5 6; do
 
3825
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3826
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3827
      # Solaris 8's {/usr,}/bin/sh.
 
3828
      touch sub/conftst$i.h
 
3829
    done
 
3830
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3831
 
 
3832
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3833
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3834
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3835
    # versions had trouble with output in subdirs
 
3836
    am__obj=sub/conftest.${OBJEXT-o}
 
3837
    am__minus_obj="-o $am__obj"
 
3838
    case $depmode in
 
3839
    gcc)
 
3840
      # This depmode causes a compiler race in universal mode.
 
3841
      test "$am__universal" = false || continue
 
3842
      ;;
 
3843
    nosideeffect)
 
3844
      # after this tag, mechanisms are not by side-effect, so they'll
 
3845
      # only be used when explicitly requested
 
3846
      if test "x$enable_dependency_tracking" = xyes; then
 
3847
        continue
 
3848
      else
 
3849
        break
 
3850
      fi
 
3851
      ;;
 
3852
    msvisualcpp | msvcmsys)
 
3853
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3854
      # not run yet.  These depmodes are late enough in the game, and
 
3855
      # so weak that their functioning should not be impacted.
 
3856
      am__obj=conftest.${OBJEXT-o}
 
3857
      am__minus_obj=
 
3858
      ;;
 
3859
    none) break ;;
 
3860
    esac
 
3861
    if depmode=$depmode \
 
3862
       source=sub/conftest.c object=$am__obj \
 
3863
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3864
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3865
         >/dev/null 2>conftest.err &&
 
3866
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3867
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3868
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3869
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3870
      # icc doesn't choke on unknown options, it will just issue warnings
 
3871
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3872
      # that says an option was ignored or not supported.
 
3873
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3874
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3875
      # The diagnosis changed in icc 8.0:
 
3876
      #   icc: Command line remark: option '-MP' not supported
 
3877
      if (grep 'ignoring option' conftest.err ||
 
3878
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3879
        am_cv_CC_dependencies_compiler_type=$depmode
 
3880
        break
 
3881
      fi
 
3882
    fi
 
3883
  done
 
3884
 
 
3885
  cd ..
 
3886
  rm -rf conftest.dir
 
3887
else
 
3888
  am_cv_CC_dependencies_compiler_type=none
 
3889
fi
 
3890
 
 
3891
fi
 
3892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3893
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3894
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3895
 
 
3896
 if
 
3897
  test "x$enable_dependency_tracking" != xno \
 
3898
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3899
  am__fastdepCC_TRUE=
 
3900
  am__fastdepCC_FALSE='#'
 
3901
else
 
3902
  am__fastdepCC_TRUE='#'
 
3903
  am__fastdepCC_FALSE=
 
3904
fi
 
3905
 
 
3906
 
 
3907
ac_ext=cpp
 
3908
ac_cpp='$CXXCPP $CPPFLAGS'
 
3909
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3910
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3911
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3912
if test -z "$CXX"; then
 
3913
  if test -n "$CCC"; then
 
3914
    CXX=$CCC
 
3915
  else
 
3916
    if test -n "$ac_tool_prefix"; then
 
3917
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3918
  do
 
3919
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3920
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3922
$as_echo_n "checking for $ac_word... " >&6; }
 
3923
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3924
  $as_echo_n "(cached) " >&6
 
3925
else
 
3926
  if test -n "$CXX"; then
 
3927
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3928
else
 
3929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3930
for as_dir in $PATH
 
3931
do
 
3932
  IFS=$as_save_IFS
 
3933
  test -z "$as_dir" && as_dir=.
 
3934
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3935
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3936
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3937
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3938
    break 2
 
3939
  fi
 
3940
done
 
3941
  done
 
3942
IFS=$as_save_IFS
 
3943
 
 
3944
fi
 
3945
fi
 
3946
CXX=$ac_cv_prog_CXX
 
3947
if test -n "$CXX"; then
 
3948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3949
$as_echo "$CXX" >&6; }
 
3950
else
 
3951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3952
$as_echo "no" >&6; }
 
3953
fi
 
3954
 
 
3955
 
 
3956
    test -n "$CXX" && break
 
3957
  done
 
3958
fi
 
3959
if test -z "$CXX"; then
 
3960
  ac_ct_CXX=$CXX
 
3961
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3962
do
 
3963
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3964
set dummy $ac_prog; ac_word=$2
 
3965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3966
$as_echo_n "checking for $ac_word... " >&6; }
 
3967
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3968
  $as_echo_n "(cached) " >&6
 
3969
else
 
3970
  if test -n "$ac_ct_CXX"; then
 
3971
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3972
else
 
3973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3974
for as_dir in $PATH
 
3975
do
 
3976
  IFS=$as_save_IFS
 
3977
  test -z "$as_dir" && as_dir=.
 
3978
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3979
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3980
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3981
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3982
    break 2
 
3983
  fi
 
3984
done
 
3985
  done
 
3986
IFS=$as_save_IFS
 
3987
 
 
3988
fi
 
3989
fi
 
3990
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3991
if test -n "$ac_ct_CXX"; then
 
3992
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3993
$as_echo "$ac_ct_CXX" >&6; }
 
3994
else
 
3995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3996
$as_echo "no" >&6; }
 
3997
fi
 
3998
 
 
3999
 
 
4000
  test -n "$ac_ct_CXX" && break
 
4001
done
 
4002
 
 
4003
  if test "x$ac_ct_CXX" = x; then
 
4004
    CXX="g++"
 
4005
  else
 
4006
    case $cross_compiling:$ac_tool_warned in
 
4007
yes:)
 
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4009
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4010
ac_tool_warned=yes ;;
 
4011
esac
 
4012
    CXX=$ac_ct_CXX
 
4013
  fi
 
4014
fi
 
4015
 
 
4016
  fi
 
4017
fi
 
4018
# Provide some information about the compiler.
 
4019
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
4020
set X $ac_compile
 
4021
ac_compiler=$2
 
4022
for ac_option in --version -v -V -qversion; do
 
4023
  { { ac_try="$ac_compiler $ac_option >&5"
 
4024
case "(($ac_try" in
 
4025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4026
  *) ac_try_echo=$ac_try;;
 
4027
esac
 
4028
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4029
$as_echo "$ac_try_echo"; } >&5
 
4030
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4031
  ac_status=$?
 
4032
  if test -s conftest.err; then
 
4033
    sed '10a\
 
4034
... rest of stderr output deleted ...
 
4035
         10q' conftest.err >conftest.er1
 
4036
    cat conftest.er1 >&5
 
4037
    rm -f conftest.er1 conftest.err
 
4038
  fi
 
4039
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4040
  test $ac_status = 0; }
 
4041
done
 
4042
 
 
4043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
4044
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
4045
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
4046
  $as_echo_n "(cached) " >&6
 
4047
else
 
4048
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4049
/* end confdefs.h.  */
 
4050
 
 
4051
int
 
4052
main ()
 
4053
{
 
4054
#ifndef __GNUC__
 
4055
       choke me
 
4056
#endif
 
4057
 
 
4058
  ;
 
4059
  return 0;
 
4060
}
 
4061
_ACEOF
 
4062
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4063
  ac_compiler_gnu=yes
 
4064
else
 
4065
  ac_compiler_gnu=no
 
4066
fi
 
4067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4068
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4069
 
 
4070
fi
 
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
4072
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
4073
if test $ac_compiler_gnu = yes; then
 
4074
  GXX=yes
 
4075
else
 
4076
  GXX=
 
4077
fi
 
4078
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4079
ac_save_CXXFLAGS=$CXXFLAGS
 
4080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
4081
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
4082
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
4083
  $as_echo_n "(cached) " >&6
 
4084
else
 
4085
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4086
   ac_cxx_werror_flag=yes
 
4087
   ac_cv_prog_cxx_g=no
 
4088
   CXXFLAGS="-g"
 
4089
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4090
/* end confdefs.h.  */
 
4091
 
 
4092
int
 
4093
main ()
 
4094
{
 
4095
 
 
4096
  ;
 
4097
  return 0;
 
4098
}
 
4099
_ACEOF
 
4100
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4101
  ac_cv_prog_cxx_g=yes
 
4102
else
 
4103
  CXXFLAGS=""
 
4104
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4105
/* end confdefs.h.  */
 
4106
 
 
4107
int
 
4108
main ()
 
4109
{
 
4110
 
 
4111
  ;
 
4112
  return 0;
 
4113
}
 
4114
_ACEOF
 
4115
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4116
 
 
4117
else
 
4118
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4119
         CXXFLAGS="-g"
 
4120
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4121
/* end confdefs.h.  */
 
4122
 
 
4123
int
 
4124
main ()
 
4125
{
 
4126
 
 
4127
  ;
 
4128
  return 0;
 
4129
}
 
4130
_ACEOF
 
4131
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4132
  ac_cv_prog_cxx_g=yes
 
4133
fi
 
4134
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4135
fi
 
4136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4137
fi
 
4138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4139
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4140
fi
 
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
4142
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
4143
if test "$ac_test_CXXFLAGS" = set; then
 
4144
  CXXFLAGS=$ac_save_CXXFLAGS
 
4145
elif test $ac_cv_prog_cxx_g = yes; then
 
4146
  if test "$GXX" = yes; then
 
4147
    CXXFLAGS="-g -O2"
 
4148
  else
 
4149
    CXXFLAGS="-g"
 
4150
  fi
 
4151
else
 
4152
  if test "$GXX" = yes; then
 
4153
    CXXFLAGS="-O2"
 
4154
  else
 
4155
    CXXFLAGS=
 
4156
  fi
 
4157
fi
 
4158
ac_ext=c
 
4159
ac_cpp='$CPP $CPPFLAGS'
 
4160
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4161
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4162
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4163
 
 
4164
depcc="$CXX"  am_compiler_list=
 
4165
 
 
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4167
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4168
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
4169
  $as_echo_n "(cached) " >&6
 
4170
else
 
4171
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4172
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4173
  # making bogus files that we don't know about and never remove.  For
 
4174
  # instance it was reported that on HP-UX the gcc test will end up
 
4175
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4176
  # in D'.
 
4177
  mkdir conftest.dir
 
4178
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4179
  # using a relative directory.
 
4180
  cp "$am_depcomp" conftest.dir
 
4181
  cd conftest.dir
 
4182
  # We will build objects and dependencies in a subdirectory because
 
4183
  # it helps to detect inapplicable dependency modes.  For instance
 
4184
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4185
  # side effect of compilation, but ICC will put the dependencies in
 
4186
  # the current directory while Tru64 will put them in the object
 
4187
  # directory.
 
4188
  mkdir sub
 
4189
 
 
4190
  am_cv_CXX_dependencies_compiler_type=none
 
4191
  if test "$am_compiler_list" = ""; then
 
4192
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4193
  fi
 
4194
  am__universal=false
 
4195
  case " $depcc " in #(
 
4196
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4197
     esac
 
4198
 
 
4199
  for depmode in $am_compiler_list; do
 
4200
    # Setup a source with many dependencies, because some compilers
 
4201
    # like to wrap large dependency lists on column 80 (with \), and
 
4202
    # we should not choose a depcomp mode which is confused by this.
 
4203
    #
 
4204
    # We need to recreate these files for each test, as the compiler may
 
4205
    # overwrite some of them when testing with obscure command lines.
 
4206
    # This happens at least with the AIX C compiler.
 
4207
    : > sub/conftest.c
 
4208
    for i in 1 2 3 4 5 6; do
 
4209
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4210
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4211
      # Solaris 8's {/usr,}/bin/sh.
 
4212
      touch sub/conftst$i.h
 
4213
    done
 
4214
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4215
 
 
4216
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4217
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4218
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4219
    # versions had trouble with output in subdirs
 
4220
    am__obj=sub/conftest.${OBJEXT-o}
 
4221
    am__minus_obj="-o $am__obj"
 
4222
    case $depmode in
 
4223
    gcc)
 
4224
      # This depmode causes a compiler race in universal mode.
 
4225
      test "$am__universal" = false || continue
 
4226
      ;;
 
4227
    nosideeffect)
 
4228
      # after this tag, mechanisms are not by side-effect, so they'll
 
4229
      # only be used when explicitly requested
 
4230
      if test "x$enable_dependency_tracking" = xyes; then
 
4231
        continue
 
4232
      else
 
4233
        break
 
4234
      fi
 
4235
      ;;
 
4236
    msvisualcpp | msvcmsys)
 
4237
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4238
      # not run yet.  These depmodes are late enough in the game, and
 
4239
      # so weak that their functioning should not be impacted.
 
4240
      am__obj=conftest.${OBJEXT-o}
 
4241
      am__minus_obj=
 
4242
      ;;
 
4243
    none) break ;;
 
4244
    esac
 
4245
    if depmode=$depmode \
 
4246
       source=sub/conftest.c object=$am__obj \
 
4247
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4248
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4249
         >/dev/null 2>conftest.err &&
 
4250
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4251
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4252
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4253
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4254
      # icc doesn't choke on unknown options, it will just issue warnings
 
4255
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4256
      # that says an option was ignored or not supported.
 
4257
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4258
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4259
      # The diagnosis changed in icc 8.0:
 
4260
      #   icc: Command line remark: option '-MP' not supported
 
4261
      if (grep 'ignoring option' conftest.err ||
 
4262
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4263
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4264
        break
 
4265
      fi
 
4266
    fi
 
4267
  done
 
4268
 
 
4269
  cd ..
 
4270
  rm -rf conftest.dir
 
4271
else
 
4272
  am_cv_CXX_dependencies_compiler_type=none
 
4273
fi
 
4274
 
 
4275
fi
 
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4277
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4278
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4279
 
 
4280
 if
 
4281
  test "x$enable_dependency_tracking" != xno \
 
4282
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4283
  am__fastdepCXX_TRUE=
 
4284
  am__fastdepCXX_FALSE='#'
 
4285
else
 
4286
  am__fastdepCXX_TRUE='#'
 
4287
  am__fastdepCXX_FALSE=
 
4288
fi
 
4289
 
 
4290
 
 
4291
case `pwd` in
 
4292
  *\ * | *\     *)
 
4293
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4294
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4295
esac
 
4296
 
 
4297
 
 
4298
 
 
4299
macro_version='2.2.6'
 
4300
macro_revision='1.3012'
 
4301
 
 
4302
 
 
4303
 
 
4304
 
 
4305
 
 
4306
 
 
4307
 
 
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
ltmain="$ac_aux_dir/ltmain.sh"
 
4315
 
 
4316
# Make sure we can run config.sub.
 
4317
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4318
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4319
 
 
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4321
$as_echo_n "checking build system type... " >&6; }
 
4322
if test "${ac_cv_build+set}" = set; then :
 
4323
  $as_echo_n "(cached) " >&6
 
4324
else
 
4325
  ac_build_alias=$build_alias
 
4326
test "x$ac_build_alias" = x &&
 
4327
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4328
test "x$ac_build_alias" = x &&
 
4329
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4330
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4331
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4332
 
 
4333
fi
 
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4335
$as_echo "$ac_cv_build" >&6; }
 
4336
case $ac_cv_build in
 
4337
*-*-*) ;;
 
4338
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4339
esac
 
4340
build=$ac_cv_build
 
4341
ac_save_IFS=$IFS; IFS='-'
 
4342
set x $ac_cv_build
 
4343
shift
 
4344
build_cpu=$1
 
4345
build_vendor=$2
 
4346
shift; shift
 
4347
# Remember, the first character of IFS is used to create $*,
 
4348
# except with old shells:
 
4349
build_os=$*
 
4350
IFS=$ac_save_IFS
 
4351
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4352
 
 
4353
 
 
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4355
$as_echo_n "checking host system type... " >&6; }
 
4356
if test "${ac_cv_host+set}" = set; then :
 
4357
  $as_echo_n "(cached) " >&6
 
4358
else
 
4359
  if test "x$host_alias" = x; then
 
4360
  ac_cv_host=$ac_cv_build
 
4361
else
 
4362
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4363
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4364
fi
 
4365
 
 
4366
fi
 
4367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4368
$as_echo "$ac_cv_host" >&6; }
 
4369
case $ac_cv_host in
 
4370
*-*-*) ;;
 
4371
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4372
esac
 
4373
host=$ac_cv_host
 
4374
ac_save_IFS=$IFS; IFS='-'
 
4375
set x $ac_cv_host
 
4376
shift
 
4377
host_cpu=$1
 
4378
host_vendor=$2
 
4379
shift; shift
 
4380
# Remember, the first character of IFS is used to create $*,
 
4381
# except with old shells:
 
4382
host_os=$*
 
4383
IFS=$ac_save_IFS
 
4384
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4385
 
 
4386
 
 
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4388
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4389
if test "${ac_cv_path_SED+set}" = set; then :
 
4390
  $as_echo_n "(cached) " >&6
 
4391
else
 
4392
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4393
     for ac_i in 1 2 3 4 5 6 7; do
 
4394
       ac_script="$ac_script$as_nl$ac_script"
 
4395
     done
 
4396
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4397
     { ac_script=; unset ac_script;}
 
4398
     if test -z "$SED"; then
 
4399
  ac_path_SED_found=false
 
4400
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4401
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4402
for as_dir in $PATH
 
4403
do
 
4404
  IFS=$as_save_IFS
 
4405
  test -z "$as_dir" && as_dir=.
 
4406
    for ac_prog in sed gsed; do
 
4407
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4408
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4409
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4410
# Check for GNU ac_path_SED and select it if it is found.
 
4411
  # Check for GNU $ac_path_SED
 
4412
case `"$ac_path_SED" --version 2>&1` in
 
4413
*GNU*)
 
4414
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4415
*)
 
4416
  ac_count=0
 
4417
  $as_echo_n 0123456789 >"conftest.in"
 
4418
  while :
 
4419
  do
 
4420
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4421
    mv "conftest.tmp" "conftest.in"
 
4422
    cp "conftest.in" "conftest.nl"
 
4423
    $as_echo '' >> "conftest.nl"
 
4424
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4425
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4426
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4427
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4428
      # Best one so far, save it but keep looking for a better one
 
4429
      ac_cv_path_SED="$ac_path_SED"
 
4430
      ac_path_SED_max=$ac_count
 
4431
    fi
 
4432
    # 10*(2^10) chars as input seems more than enough
 
4433
    test $ac_count -gt 10 && break
 
4434
  done
 
4435
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4436
esac
 
4437
 
 
4438
      $ac_path_SED_found && break 3
 
4439
    done
 
4440
  done
 
4441
  done
 
4442
IFS=$as_save_IFS
 
4443
  if test -z "$ac_cv_path_SED"; then
 
4444
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4445
  fi
 
4446
else
 
4447
  ac_cv_path_SED=$SED
 
4448
fi
 
4449
 
 
4450
fi
 
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4452
$as_echo "$ac_cv_path_SED" >&6; }
 
4453
 SED="$ac_cv_path_SED"
 
4454
  rm -f conftest.sed
 
4455
 
 
4456
test -z "$SED" && SED=sed
 
4457
Xsed="$SED -e 1s/^X//"
 
4458
 
 
4459
 
 
4460
 
 
4461
 
 
4462
 
 
4463
 
 
4464
 
 
4465
 
 
4466
 
 
4467
 
 
4468
 
 
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4470
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4471
if test "${ac_cv_path_GREP+set}" = set; then :
 
4472
  $as_echo_n "(cached) " >&6
 
4473
else
 
4474
  if test -z "$GREP"; then
 
4475
  ac_path_GREP_found=false
 
4476
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4477
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4478
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4479
do
 
4480
  IFS=$as_save_IFS
 
4481
  test -z "$as_dir" && as_dir=.
 
4482
    for ac_prog in grep ggrep; do
 
4483
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4484
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4485
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4486
# Check for GNU ac_path_GREP and select it if it is found.
 
4487
  # Check for GNU $ac_path_GREP
 
4488
case `"$ac_path_GREP" --version 2>&1` in
 
4489
*GNU*)
 
4490
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4491
*)
 
4492
  ac_count=0
 
4493
  $as_echo_n 0123456789 >"conftest.in"
 
4494
  while :
 
4495
  do
 
4496
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4497
    mv "conftest.tmp" "conftest.in"
 
4498
    cp "conftest.in" "conftest.nl"
 
4499
    $as_echo 'GREP' >> "conftest.nl"
 
4500
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4501
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4502
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4503
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4504
      # Best one so far, save it but keep looking for a better one
 
4505
      ac_cv_path_GREP="$ac_path_GREP"
 
4506
      ac_path_GREP_max=$ac_count
 
4507
    fi
 
4508
    # 10*(2^10) chars as input seems more than enough
 
4509
    test $ac_count -gt 10 && break
 
4510
  done
 
4511
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4512
esac
 
4513
 
 
4514
      $ac_path_GREP_found && break 3
 
4515
    done
 
4516
  done
 
4517
  done
 
4518
IFS=$as_save_IFS
 
4519
  if test -z "$ac_cv_path_GREP"; then
 
4520
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4521
  fi
 
4522
else
 
4523
  ac_cv_path_GREP=$GREP
 
4524
fi
 
4525
 
 
4526
fi
 
4527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4528
$as_echo "$ac_cv_path_GREP" >&6; }
 
4529
 GREP="$ac_cv_path_GREP"
 
4530
 
 
4531
 
 
4532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4533
$as_echo_n "checking for egrep... " >&6; }
 
4534
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4535
  $as_echo_n "(cached) " >&6
 
4536
else
 
4537
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4538
   then ac_cv_path_EGREP="$GREP -E"
 
4539
   else
 
4540
     if test -z "$EGREP"; then
 
4541
  ac_path_EGREP_found=false
 
4542
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4543
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4544
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4545
do
 
4546
  IFS=$as_save_IFS
 
4547
  test -z "$as_dir" && as_dir=.
 
4548
    for ac_prog in egrep; do
 
4549
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4550
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4551
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4552
# Check for GNU ac_path_EGREP and select it if it is found.
 
4553
  # Check for GNU $ac_path_EGREP
 
4554
case `"$ac_path_EGREP" --version 2>&1` in
 
4555
*GNU*)
 
4556
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4557
*)
 
4558
  ac_count=0
 
4559
  $as_echo_n 0123456789 >"conftest.in"
 
4560
  while :
 
4561
  do
 
4562
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4563
    mv "conftest.tmp" "conftest.in"
 
4564
    cp "conftest.in" "conftest.nl"
 
4565
    $as_echo 'EGREP' >> "conftest.nl"
 
4566
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4567
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4568
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4569
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4570
      # Best one so far, save it but keep looking for a better one
 
4571
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4572
      ac_path_EGREP_max=$ac_count
 
4573
    fi
 
4574
    # 10*(2^10) chars as input seems more than enough
 
4575
    test $ac_count -gt 10 && break
 
4576
  done
 
4577
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4578
esac
 
4579
 
 
4580
      $ac_path_EGREP_found && break 3
 
4581
    done
 
4582
  done
 
4583
  done
 
4584
IFS=$as_save_IFS
 
4585
  if test -z "$ac_cv_path_EGREP"; then
 
4586
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4587
  fi
 
4588
else
 
4589
  ac_cv_path_EGREP=$EGREP
 
4590
fi
 
4591
 
 
4592
   fi
 
4593
fi
 
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4595
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4596
 EGREP="$ac_cv_path_EGREP"
 
4597
 
 
4598
 
 
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4600
$as_echo_n "checking for fgrep... " >&6; }
 
4601
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4602
  $as_echo_n "(cached) " >&6
 
4603
else
 
4604
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4605
   then ac_cv_path_FGREP="$GREP -F"
 
4606
   else
 
4607
     if test -z "$FGREP"; then
 
4608
  ac_path_FGREP_found=false
 
4609
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4610
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4611
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4612
do
 
4613
  IFS=$as_save_IFS
 
4614
  test -z "$as_dir" && as_dir=.
 
4615
    for ac_prog in fgrep; do
 
4616
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4617
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4618
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4619
# Check for GNU ac_path_FGREP and select it if it is found.
 
4620
  # Check for GNU $ac_path_FGREP
 
4621
case `"$ac_path_FGREP" --version 2>&1` in
 
4622
*GNU*)
 
4623
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4624
*)
 
4625
  ac_count=0
 
4626
  $as_echo_n 0123456789 >"conftest.in"
 
4627
  while :
 
4628
  do
 
4629
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4630
    mv "conftest.tmp" "conftest.in"
 
4631
    cp "conftest.in" "conftest.nl"
 
4632
    $as_echo 'FGREP' >> "conftest.nl"
 
4633
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4634
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4635
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4636
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4637
      # Best one so far, save it but keep looking for a better one
 
4638
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4639
      ac_path_FGREP_max=$ac_count
 
4640
    fi
 
4641
    # 10*(2^10) chars as input seems more than enough
 
4642
    test $ac_count -gt 10 && break
 
4643
  done
 
4644
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4645
esac
 
4646
 
 
4647
      $ac_path_FGREP_found && break 3
 
4648
    done
 
4649
  done
 
4650
  done
 
4651
IFS=$as_save_IFS
 
4652
  if test -z "$ac_cv_path_FGREP"; then
 
4653
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4654
  fi
 
4655
else
 
4656
  ac_cv_path_FGREP=$FGREP
 
4657
fi
 
4658
 
 
4659
   fi
 
4660
fi
 
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4662
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4663
 FGREP="$ac_cv_path_FGREP"
 
4664
 
 
4665
 
 
4666
test -z "$GREP" && GREP=grep
 
4667
 
 
4668
 
 
4669
 
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
 
4685
 
 
4686
# Check whether --with-gnu-ld was given.
 
4687
if test "${with_gnu_ld+set}" = set; then :
 
4688
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4689
else
 
4690
  with_gnu_ld=no
 
4691
fi
 
4692
 
 
4693
ac_prog=ld
 
4694
if test "$GCC" = yes; then
 
4695
  # Check if gcc -print-prog-name=ld gives a path.
 
4696
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4697
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4698
  case $host in
 
4699
  *-*-mingw*)
 
4700
    # gcc leaves a trailing carriage return which upsets mingw
 
4701
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4702
  *)
 
4703
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4704
  esac
 
4705
  case $ac_prog in
 
4706
    # Accept absolute paths.
 
4707
    [\\/]* | ?:[\\/]*)
 
4708
      re_direlt='/[^/][^/]*/\.\./'
 
4709
      # Canonicalize the pathname of ld
 
4710
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4711
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4712
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4713
      done
 
4714
      test -z "$LD" && LD="$ac_prog"
 
4715
      ;;
 
4716
  "")
 
4717
    # If it fails, then pretend we aren't using GCC.
 
4718
    ac_prog=ld
 
4719
    ;;
 
4720
  *)
 
4721
    # If it is relative, then search for the first ld in PATH.
 
4722
    with_gnu_ld=unknown
 
4723
    ;;
 
4724
  esac
 
4725
elif test "$with_gnu_ld" = yes; then
 
4726
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4727
$as_echo_n "checking for GNU ld... " >&6; }
 
4728
else
 
4729
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4730
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4731
fi
 
4732
if test "${lt_cv_path_LD+set}" = set; then :
 
4733
  $as_echo_n "(cached) " >&6
 
4734
else
 
4735
  if test -z "$LD"; then
 
4736
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4737
  for ac_dir in $PATH; do
 
4738
    IFS="$lt_save_ifs"
 
4739
    test -z "$ac_dir" && ac_dir=.
 
4740
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4741
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4742
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4743
      # but apparently some variants of GNU ld only accept -v.
 
4744
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4745
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4746
      *GNU* | *'with BFD'*)
 
4747
        test "$with_gnu_ld" != no && break
 
4748
        ;;
 
4749
      *)
 
4750
        test "$with_gnu_ld" != yes && break
 
4751
        ;;
 
4752
      esac
 
4753
    fi
 
4754
  done
 
4755
  IFS="$lt_save_ifs"
 
4756
else
 
4757
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4758
fi
 
4759
fi
 
4760
 
 
4761
LD="$lt_cv_path_LD"
 
4762
if test -n "$LD"; then
 
4763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4764
$as_echo "$LD" >&6; }
 
4765
else
 
4766
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4767
$as_echo "no" >&6; }
 
4768
fi
 
4769
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4771
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4772
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4773
  $as_echo_n "(cached) " >&6
 
4774
else
 
4775
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4776
case `$LD -v 2>&1 </dev/null` in
 
4777
*GNU* | *'with BFD'*)
 
4778
  lt_cv_prog_gnu_ld=yes
 
4779
  ;;
 
4780
*)
 
4781
  lt_cv_prog_gnu_ld=no
 
4782
  ;;
 
4783
esac
 
4784
fi
 
4785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4786
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4787
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4788
 
 
4789
 
 
4790
 
 
4791
 
 
4792
 
 
4793
 
 
4794
 
 
4795
 
 
4796
 
 
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4798
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4799
if test "${lt_cv_path_NM+set}" = set; then :
 
4800
  $as_echo_n "(cached) " >&6
 
4801
else
 
4802
  if test -n "$NM"; then
 
4803
  # Let the user override the test.
 
4804
  lt_cv_path_NM="$NM"
 
4805
else
 
4806
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4807
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4808
    lt_nm_to_check="$lt_nm_to_check nm"
 
4809
  fi
 
4810
  for lt_tmp_nm in $lt_nm_to_check; do
 
4811
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4812
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4813
      IFS="$lt_save_ifs"
 
4814
      test -z "$ac_dir" && ac_dir=.
 
4815
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4816
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4817
        # Check to see if the nm accepts a BSD-compat flag.
 
4818
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4819
        #   nm: unknown option "B" ignored
 
4820
        # Tru64's nm complains that /dev/null is an invalid object file
 
4821
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4822
        */dev/null* | *'Invalid file or object type'*)
 
4823
          lt_cv_path_NM="$tmp_nm -B"
 
4824
          break
 
4825
          ;;
 
4826
        *)
 
4827
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4828
          */dev/null*)
 
4829
            lt_cv_path_NM="$tmp_nm -p"
 
4830
            break
 
4831
            ;;
 
4832
          *)
 
4833
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4834
            continue # so that we can try to find one that supports BSD flags
 
4835
            ;;
 
4836
          esac
 
4837
          ;;
 
4838
        esac
 
4839
      fi
 
4840
    done
 
4841
    IFS="$lt_save_ifs"
 
4842
  done
 
4843
  : ${lt_cv_path_NM=no}
 
4844
fi
 
4845
fi
 
4846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4847
$as_echo "$lt_cv_path_NM" >&6; }
 
4848
if test "$lt_cv_path_NM" != "no"; then
 
4849
  NM="$lt_cv_path_NM"
 
4850
else
 
4851
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4852
  if test -n "$ac_tool_prefix"; then
 
4853
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4854
  do
 
4855
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4856
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4858
$as_echo_n "checking for $ac_word... " >&6; }
 
4859
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4860
  $as_echo_n "(cached) " >&6
 
4861
else
 
4862
  if test -n "$DUMPBIN"; then
 
4863
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4864
else
 
4865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4866
for as_dir in $PATH
 
4867
do
 
4868
  IFS=$as_save_IFS
 
4869
  test -z "$as_dir" && as_dir=.
 
4870
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4871
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4872
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4873
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4874
    break 2
 
4875
  fi
 
4876
done
 
4877
  done
 
4878
IFS=$as_save_IFS
 
4879
 
 
4880
fi
 
4881
fi
 
4882
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4883
if test -n "$DUMPBIN"; then
 
4884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4885
$as_echo "$DUMPBIN" >&6; }
 
4886
else
 
4887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4888
$as_echo "no" >&6; }
 
4889
fi
 
4890
 
 
4891
 
 
4892
    test -n "$DUMPBIN" && break
 
4893
  done
 
4894
fi
 
4895
if test -z "$DUMPBIN"; then
 
4896
  ac_ct_DUMPBIN=$DUMPBIN
 
4897
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4898
do
 
4899
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4900
set dummy $ac_prog; ac_word=$2
 
4901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4902
$as_echo_n "checking for $ac_word... " >&6; }
 
4903
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
4904
  $as_echo_n "(cached) " >&6
 
4905
else
 
4906
  if test -n "$ac_ct_DUMPBIN"; then
 
4907
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4908
else
 
4909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4910
for as_dir in $PATH
 
4911
do
 
4912
  IFS=$as_save_IFS
 
4913
  test -z "$as_dir" && as_dir=.
 
4914
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4916
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4917
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4918
    break 2
 
4919
  fi
 
4920
done
 
4921
  done
 
4922
IFS=$as_save_IFS
 
4923
 
 
4924
fi
 
4925
fi
 
4926
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4927
if test -n "$ac_ct_DUMPBIN"; then
 
4928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4929
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4930
else
 
4931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4932
$as_echo "no" >&6; }
 
4933
fi
 
4934
 
 
4935
 
 
4936
  test -n "$ac_ct_DUMPBIN" && break
 
4937
done
 
4938
 
 
4939
  if test "x$ac_ct_DUMPBIN" = x; then
 
4940
    DUMPBIN=":"
 
4941
  else
 
4942
    case $cross_compiling:$ac_tool_warned in
 
4943
yes:)
 
4944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4946
ac_tool_warned=yes ;;
 
4947
esac
 
4948
    DUMPBIN=$ac_ct_DUMPBIN
 
4949
  fi
 
4950
fi
 
4951
 
 
4952
 
 
4953
  if test "$DUMPBIN" != ":"; then
 
4954
    NM="$DUMPBIN"
 
4955
  fi
 
4956
fi
 
4957
test -z "$NM" && NM=nm
 
4958
 
 
4959
 
 
4960
 
 
4961
 
 
4962
 
 
4963
 
 
4964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4965
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4966
if test "${lt_cv_nm_interface+set}" = set; then :
 
4967
  $as_echo_n "(cached) " >&6
 
4968
else
 
4969
  lt_cv_nm_interface="BSD nm"
 
4970
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4971
  (eval echo "\"\$as_me:4971: $ac_compile\"" >&5)
 
4972
  (eval "$ac_compile" 2>conftest.err)
 
4973
  cat conftest.err >&5
 
4974
  (eval echo "\"\$as_me:4974: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4975
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4976
  cat conftest.err >&5
 
4977
  (eval echo "\"\$as_me:4977: output\"" >&5)
 
4978
  cat conftest.out >&5
 
4979
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4980
    lt_cv_nm_interface="MS dumpbin"
 
4981
  fi
 
4982
  rm -f conftest*
 
4983
fi
 
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4985
$as_echo "$lt_cv_nm_interface" >&6; }
 
4986
 
 
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4988
$as_echo_n "checking whether ln -s works... " >&6; }
 
4989
LN_S=$as_ln_s
 
4990
if test "$LN_S" = "ln -s"; then
 
4991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4992
$as_echo "yes" >&6; }
 
4993
else
 
4994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4995
$as_echo "no, using $LN_S" >&6; }
 
4996
fi
 
4997
 
 
4998
# find the maximum length of command line arguments
 
4999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5000
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5001
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5002
  $as_echo_n "(cached) " >&6
 
5003
else
 
5004
    i=0
 
5005
  teststring="ABCD"
 
5006
 
 
5007
  case $build_os in
 
5008
  msdosdjgpp*)
 
5009
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5010
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5011
    # during glob expansion).  Even if it were fixed, the result of this
 
5012
    # check would be larger than it should be.
 
5013
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5014
    ;;
 
5015
 
 
5016
  gnu*)
 
5017
    # Under GNU Hurd, this test is not required because there is
 
5018
    # no limit to the length of command line arguments.
 
5019
    # Libtool will interpret -1 as no limit whatsoever
 
5020
    lt_cv_sys_max_cmd_len=-1;
 
5021
    ;;
 
5022
 
 
5023
  cygwin* | mingw* | cegcc*)
 
5024
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5025
    # about 5 minutes as the teststring grows exponentially.
 
5026
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5027
    # you end up with a "frozen" computer, even though with patience
 
5028
    # the test eventually succeeds (with a max line length of 256k).
 
5029
    # Instead, let's just punt: use the minimum linelength reported by
 
5030
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5031
    lt_cv_sys_max_cmd_len=8192;
 
5032
    ;;
 
5033
 
 
5034
  amigaos*)
 
5035
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5036
    # So we just punt and use a minimum line length of 8192.
 
5037
    lt_cv_sys_max_cmd_len=8192;
 
5038
    ;;
 
5039
 
 
5040
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5041
    # This has been around since 386BSD, at least.  Likely further.
 
5042
    if test -x /sbin/sysctl; then
 
5043
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5044
    elif test -x /usr/sbin/sysctl; then
 
5045
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5046
    else
 
5047
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5048
    fi
 
5049
    # And add a safety zone
 
5050
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5051
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5052
    ;;
 
5053
 
 
5054
  interix*)
 
5055
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5056
    lt_cv_sys_max_cmd_len=196608
 
5057
    ;;
 
5058
 
 
5059
  osf*)
 
5060
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5061
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5062
    # nice to cause kernel panics so lets avoid the loop below.
 
5063
    # First set a reasonable default.
 
5064
    lt_cv_sys_max_cmd_len=16384
 
5065
    #
 
5066
    if test -x /sbin/sysconfig; then
 
5067
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5068
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5069
      esac
 
5070
    fi
 
5071
    ;;
 
5072
  sco3.2v5*)
 
5073
    lt_cv_sys_max_cmd_len=102400
 
5074
    ;;
 
5075
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5076
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5077
    if test -n "$kargmax"; then
 
5078
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5079
    else
 
5080
      lt_cv_sys_max_cmd_len=32768
 
5081
    fi
 
5082
    ;;
 
5083
  *)
 
5084
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5085
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5086
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5087
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5088
    else
 
5089
      # Make teststring a little bigger before we do anything with it.
 
5090
      # a 1K string should be a reasonable start.
 
5091
      for i in 1 2 3 4 5 6 7 8 ; do
 
5092
        teststring=$teststring$teststring
 
5093
      done
 
5094
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5095
      # If test is not a shell built-in, we'll probably end up computing a
 
5096
      # maximum length that is only half of the actual maximum length, but
 
5097
      # we can't tell.
 
5098
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5099
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5100
              test $i != 17 # 1/2 MB should be enough
 
5101
      do
 
5102
        i=`expr $i + 1`
 
5103
        teststring=$teststring$teststring
 
5104
      done
 
5105
      # Only check the string length outside the loop.
 
5106
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5107
      teststring=
 
5108
      # Add a significant safety factor because C++ compilers can tack on
 
5109
      # massive amounts of additional arguments before passing them to the
 
5110
      # linker.  It appears as though 1/2 is a usable value.
 
5111
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5112
    fi
 
5113
    ;;
 
5114
  esac
 
5115
 
 
5116
fi
 
5117
 
 
5118
if test -n $lt_cv_sys_max_cmd_len ; then
 
5119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5120
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5121
else
 
5122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5123
$as_echo "none" >&6; }
 
5124
fi
 
5125
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5126
 
 
5127
 
 
5128
 
 
5129
 
 
5130
 
 
5131
 
 
5132
: ${CP="cp -f"}
 
5133
: ${MV="mv -f"}
 
5134
: ${RM="rm -f"}
 
5135
 
 
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5137
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5138
# Try some XSI features
 
5139
xsi_shell=no
 
5140
( _lt_dummy="a/b/c"
 
5141
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5142
      = c,a/b,, \
 
5143
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5144
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5145
  && xsi_shell=yes
 
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5147
$as_echo "$xsi_shell" >&6; }
 
5148
 
 
5149
 
 
5150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5151
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5152
lt_shell_append=no
 
5153
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5154
    >/dev/null 2>&1 \
 
5155
  && lt_shell_append=yes
 
5156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5157
$as_echo "$lt_shell_append" >&6; }
 
5158
 
 
5159
 
 
5160
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5161
  lt_unset=unset
 
5162
else
 
5163
  lt_unset=false
 
5164
fi
 
5165
 
 
5166
 
 
5167
 
 
5168
 
 
5169
 
 
5170
# test EBCDIC or ASCII
 
5171
case `echo X|tr X '\101'` in
 
5172
 A) # ASCII based system
 
5173
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5174
  lt_SP2NL='tr \040 \012'
 
5175
  lt_NL2SP='tr \015\012 \040\040'
 
5176
  ;;
 
5177
 *) # EBCDIC based system
 
5178
  lt_SP2NL='tr \100 \n'
 
5179
  lt_NL2SP='tr \r\n \100\100'
 
5180
  ;;
 
5181
esac
 
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
 
 
5187
 
 
5188
 
 
5189
 
 
5190
 
 
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5192
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5193
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5194
  $as_echo_n "(cached) " >&6
 
5195
else
 
5196
  lt_cv_ld_reload_flag='-r'
 
5197
fi
 
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5199
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5200
reload_flag=$lt_cv_ld_reload_flag
 
5201
case $reload_flag in
 
5202
"" | " "*) ;;
 
5203
*) reload_flag=" $reload_flag" ;;
 
5204
esac
 
5205
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5206
case $host_os in
 
5207
  darwin*)
 
5208
    if test "$GCC" = yes; then
 
5209
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5210
    else
 
5211
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5212
    fi
 
5213
    ;;
 
5214
esac
 
5215
 
 
5216
 
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
 
 
5222
 
 
5223
 
 
5224
if test -n "$ac_tool_prefix"; then
 
5225
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5226
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5228
$as_echo_n "checking for $ac_word... " >&6; }
 
5229
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5230
  $as_echo_n "(cached) " >&6
 
5231
else
 
5232
  if test -n "$OBJDUMP"; then
 
5233
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5234
else
 
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5236
for as_dir in $PATH
 
5237
do
 
5238
  IFS=$as_save_IFS
 
5239
  test -z "$as_dir" && as_dir=.
 
5240
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5241
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5242
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5243
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5244
    break 2
 
5245
  fi
 
5246
done
 
5247
  done
 
5248
IFS=$as_save_IFS
 
5249
 
 
5250
fi
 
5251
fi
 
5252
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5253
if test -n "$OBJDUMP"; then
 
5254
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5255
$as_echo "$OBJDUMP" >&6; }
 
5256
else
 
5257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5258
$as_echo "no" >&6; }
 
5259
fi
 
5260
 
 
5261
 
 
5262
fi
 
5263
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5264
  ac_ct_OBJDUMP=$OBJDUMP
 
5265
  # Extract the first word of "objdump", so it can be a program name with args.
 
5266
set dummy objdump; ac_word=$2
 
5267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5268
$as_echo_n "checking for $ac_word... " >&6; }
 
5269
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5270
  $as_echo_n "(cached) " >&6
 
5271
else
 
5272
  if test -n "$ac_ct_OBJDUMP"; then
 
5273
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5274
else
 
5275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5276
for as_dir in $PATH
 
5277
do
 
5278
  IFS=$as_save_IFS
 
5279
  test -z "$as_dir" && as_dir=.
 
5280
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5281
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5282
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5283
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5284
    break 2
 
5285
  fi
 
5286
done
 
5287
  done
 
5288
IFS=$as_save_IFS
 
5289
 
 
5290
fi
 
5291
fi
 
5292
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5293
if test -n "$ac_ct_OBJDUMP"; then
 
5294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5295
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5296
else
 
5297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5298
$as_echo "no" >&6; }
 
5299
fi
 
5300
 
 
5301
  if test "x$ac_ct_OBJDUMP" = x; then
 
5302
    OBJDUMP="false"
 
5303
  else
 
5304
    case $cross_compiling:$ac_tool_warned in
 
5305
yes:)
 
5306
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5307
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5308
ac_tool_warned=yes ;;
 
5309
esac
 
5310
    OBJDUMP=$ac_ct_OBJDUMP
 
5311
  fi
 
5312
else
 
5313
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5314
fi
 
5315
 
 
5316
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5317
 
 
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5327
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5328
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5329
  $as_echo_n "(cached) " >&6
 
5330
else
 
5331
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5332
lt_cv_file_magic_test_file=
 
5333
lt_cv_deplibs_check_method='unknown'
 
5334
# Need to set the preceding variable on all platforms that support
 
5335
# interlibrary dependencies.
 
5336
# 'none' -- dependencies not supported.
 
5337
# `unknown' -- same as none, but documents that we really don't know.
 
5338
# 'pass_all' -- all dependencies passed with no checks.
 
5339
# 'test_compile' -- check by making test program.
 
5340
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5341
# which responds to the $file_magic_cmd with a given extended regex.
 
5342
# If you have `file' or equivalent on your system and you're not sure
 
5343
# whether `pass_all' will *always* work, you probably want this one.
 
5344
 
 
5345
case $host_os in
 
5346
aix[4-9]*)
 
5347
  lt_cv_deplibs_check_method=pass_all
 
5348
  ;;
 
5349
 
 
5350
beos*)
 
5351
  lt_cv_deplibs_check_method=pass_all
 
5352
  ;;
 
5353
 
 
5354
bsdi[45]*)
 
5355
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5356
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5357
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5358
  ;;
 
5359
 
 
5360
cygwin*)
 
5361
  # func_win32_libid is a shell function defined in ltmain.sh
 
5362
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5363
  lt_cv_file_magic_cmd='func_win32_libid'
 
5364
  ;;
 
5365
 
 
5366
mingw* | pw32*)
 
5367
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5368
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5369
  # unless we find 'file', for example because we are cross-compiling.
 
5370
  if ( file / ) >/dev/null 2>&1; then
 
5371
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5372
    lt_cv_file_magic_cmd='func_win32_libid'
 
5373
  else
 
5374
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5375
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5376
  fi
 
5377
  ;;
 
5378
 
 
5379
cegcc)
 
5380
  # use the weaker test based on 'objdump'. See mingw*.
 
5381
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5382
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5383
  ;;
 
5384
 
 
5385
darwin* | rhapsody*)
 
5386
  lt_cv_deplibs_check_method=pass_all
 
5387
  ;;
 
5388
 
 
5389
freebsd* | dragonfly*)
 
5390
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5391
    case $host_cpu in
 
5392
    i*86 )
 
5393
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5394
      # Let's accept both of them until this is cleared up.
 
5395
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5396
      lt_cv_file_magic_cmd=/usr/bin/file
 
5397
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5398
      ;;
 
5399
    esac
 
5400
  else
 
5401
    lt_cv_deplibs_check_method=pass_all
 
5402
  fi
 
5403
  ;;
 
5404
 
 
5405
gnu*)
 
5406
  lt_cv_deplibs_check_method=pass_all
 
5407
  ;;
 
5408
 
 
5409
hpux10.20* | hpux11*)
 
5410
  lt_cv_file_magic_cmd=/usr/bin/file
 
5411
  case $host_cpu in
 
5412
  ia64*)
 
5413
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5414
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5415
    ;;
 
5416
  hppa*64*)
 
5417
    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]'
 
5418
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5419
    ;;
 
5420
  *)
 
5421
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5422
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5423
    ;;
 
5424
  esac
 
5425
  ;;
 
5426
 
 
5427
interix[3-9]*)
 
5428
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5429
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5430
  ;;
 
5431
 
 
5432
irix5* | irix6* | nonstopux*)
 
5433
  case $LD in
 
5434
  *-32|*"-32 ") libmagic=32-bit;;
 
5435
  *-n32|*"-n32 ") libmagic=N32;;
 
5436
  *-64|*"-64 ") libmagic=64-bit;;
 
5437
  *) libmagic=never-match;;
 
5438
  esac
 
5439
  lt_cv_deplibs_check_method=pass_all
 
5440
  ;;
 
5441
 
 
5442
# This must be Linux ELF.
 
5443
linux* | k*bsd*-gnu)
 
5444
  lt_cv_deplibs_check_method=pass_all
 
5445
  ;;
 
5446
 
 
5447
netbsd* | netbsdelf*-gnu)
 
5448
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5449
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5450
  else
 
5451
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5452
  fi
 
5453
  ;;
 
5454
 
 
5455
newos6*)
 
5456
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5457
  lt_cv_file_magic_cmd=/usr/bin/file
 
5458
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5459
  ;;
 
5460
 
 
5461
*nto* | *qnx*)
 
5462
  lt_cv_deplibs_check_method=pass_all
 
5463
  ;;
 
5464
 
 
5465
openbsd*)
 
5466
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5467
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5468
  else
 
5469
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5470
  fi
 
5471
  ;;
 
5472
 
 
5473
osf3* | osf4* | osf5*)
 
5474
  lt_cv_deplibs_check_method=pass_all
 
5475
  ;;
 
5476
 
 
5477
rdos*)
 
5478
  lt_cv_deplibs_check_method=pass_all
 
5479
  ;;
 
5480
 
 
5481
solaris*)
 
5482
  lt_cv_deplibs_check_method=pass_all
 
5483
  ;;
 
5484
 
 
5485
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5486
  lt_cv_deplibs_check_method=pass_all
 
5487
  ;;
 
5488
 
 
5489
sysv4 | sysv4.3*)
 
5490
  case $host_vendor in
 
5491
  motorola)
 
5492
    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]'
 
5493
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5494
    ;;
 
5495
  ncr)
 
5496
    lt_cv_deplibs_check_method=pass_all
 
5497
    ;;
 
5498
  sequent)
 
5499
    lt_cv_file_magic_cmd='/bin/file'
 
5500
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5501
    ;;
 
5502
  sni)
 
5503
    lt_cv_file_magic_cmd='/bin/file'
 
5504
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5505
    lt_cv_file_magic_test_file=/lib/libc.so
 
5506
    ;;
 
5507
  siemens)
 
5508
    lt_cv_deplibs_check_method=pass_all
 
5509
    ;;
 
5510
  pc)
 
5511
    lt_cv_deplibs_check_method=pass_all
 
5512
    ;;
 
5513
  esac
 
5514
  ;;
 
5515
 
 
5516
tpf*)
 
5517
  lt_cv_deplibs_check_method=pass_all
 
5518
  ;;
 
5519
esac
 
5520
 
 
5521
fi
 
5522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5523
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5524
file_magic_cmd=$lt_cv_file_magic_cmd
 
5525
deplibs_check_method=$lt_cv_deplibs_check_method
 
5526
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
if test -n "$ac_tool_prefix"; then
 
5540
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5541
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5543
$as_echo_n "checking for $ac_word... " >&6; }
 
5544
if test "${ac_cv_prog_AR+set}" = set; then :
 
5545
  $as_echo_n "(cached) " >&6
 
5546
else
 
5547
  if test -n "$AR"; then
 
5548
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5549
else
 
5550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5551
for as_dir in $PATH
 
5552
do
 
5553
  IFS=$as_save_IFS
 
5554
  test -z "$as_dir" && as_dir=.
 
5555
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5556
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5557
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5558
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5559
    break 2
 
5560
  fi
 
5561
done
 
5562
  done
 
5563
IFS=$as_save_IFS
 
5564
 
 
5565
fi
 
5566
fi
 
5567
AR=$ac_cv_prog_AR
 
5568
if test -n "$AR"; then
 
5569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5570
$as_echo "$AR" >&6; }
 
5571
else
 
5572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5573
$as_echo "no" >&6; }
 
5574
fi
 
5575
 
 
5576
 
 
5577
fi
 
5578
if test -z "$ac_cv_prog_AR"; then
 
5579
  ac_ct_AR=$AR
 
5580
  # Extract the first word of "ar", so it can be a program name with args.
 
5581
set dummy ar; ac_word=$2
 
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5583
$as_echo_n "checking for $ac_word... " >&6; }
 
5584
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5585
  $as_echo_n "(cached) " >&6
 
5586
else
 
5587
  if test -n "$ac_ct_AR"; then
 
5588
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5589
else
 
5590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5591
for as_dir in $PATH
 
5592
do
 
5593
  IFS=$as_save_IFS
 
5594
  test -z "$as_dir" && as_dir=.
 
5595
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5597
    ac_cv_prog_ac_ct_AR="ar"
 
5598
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5599
    break 2
 
5600
  fi
 
5601
done
 
5602
  done
 
5603
IFS=$as_save_IFS
 
5604
 
 
5605
fi
 
5606
fi
 
5607
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5608
if test -n "$ac_ct_AR"; then
 
5609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5610
$as_echo "$ac_ct_AR" >&6; }
 
5611
else
 
5612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5613
$as_echo "no" >&6; }
 
5614
fi
 
5615
 
 
5616
  if test "x$ac_ct_AR" = x; then
 
5617
    AR="false"
 
5618
  else
 
5619
    case $cross_compiling:$ac_tool_warned in
 
5620
yes:)
 
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5622
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5623
ac_tool_warned=yes ;;
 
5624
esac
 
5625
    AR=$ac_ct_AR
 
5626
  fi
 
5627
else
 
5628
  AR="$ac_cv_prog_AR"
 
5629
fi
 
5630
 
 
5631
test -z "$AR" && AR=ar
 
5632
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
 
 
5641
 
 
5642
 
 
5643
 
 
5644
if test -n "$ac_tool_prefix"; then
 
5645
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5646
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5648
$as_echo_n "checking for $ac_word... " >&6; }
 
5649
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5650
  $as_echo_n "(cached) " >&6
 
5651
else
 
5652
  if test -n "$STRIP"; then
 
5653
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5654
else
 
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5656
for as_dir in $PATH
 
5657
do
 
5658
  IFS=$as_save_IFS
 
5659
  test -z "$as_dir" && as_dir=.
 
5660
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5662
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5663
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5664
    break 2
 
5665
  fi
 
5666
done
 
5667
  done
 
5668
IFS=$as_save_IFS
 
5669
 
 
5670
fi
 
5671
fi
 
5672
STRIP=$ac_cv_prog_STRIP
 
5673
if test -n "$STRIP"; then
 
5674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5675
$as_echo "$STRIP" >&6; }
 
5676
else
 
5677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5678
$as_echo "no" >&6; }
 
5679
fi
 
5680
 
 
5681
 
 
5682
fi
 
5683
if test -z "$ac_cv_prog_STRIP"; then
 
5684
  ac_ct_STRIP=$STRIP
 
5685
  # Extract the first word of "strip", so it can be a program name with args.
 
5686
set dummy strip; ac_word=$2
 
5687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5688
$as_echo_n "checking for $ac_word... " >&6; }
 
5689
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5690
  $as_echo_n "(cached) " >&6
 
5691
else
 
5692
  if test -n "$ac_ct_STRIP"; then
 
5693
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5694
else
 
5695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5696
for as_dir in $PATH
 
5697
do
 
5698
  IFS=$as_save_IFS
 
5699
  test -z "$as_dir" && as_dir=.
 
5700
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5702
    ac_cv_prog_ac_ct_STRIP="strip"
 
5703
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5704
    break 2
 
5705
  fi
 
5706
done
 
5707
  done
 
5708
IFS=$as_save_IFS
 
5709
 
 
5710
fi
 
5711
fi
 
5712
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5713
if test -n "$ac_ct_STRIP"; then
 
5714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5715
$as_echo "$ac_ct_STRIP" >&6; }
 
5716
else
 
5717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5718
$as_echo "no" >&6; }
 
5719
fi
 
5720
 
 
5721
  if test "x$ac_ct_STRIP" = x; then
 
5722
    STRIP=":"
 
5723
  else
 
5724
    case $cross_compiling:$ac_tool_warned in
 
5725
yes:)
 
5726
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5727
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5728
ac_tool_warned=yes ;;
 
5729
esac
 
5730
    STRIP=$ac_ct_STRIP
 
5731
  fi
 
5732
else
 
5733
  STRIP="$ac_cv_prog_STRIP"
 
5734
fi
 
5735
 
 
5736
test -z "$STRIP" && STRIP=:
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
if test -n "$ac_tool_prefix"; then
 
5744
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5745
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5747
$as_echo_n "checking for $ac_word... " >&6; }
 
5748
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5749
  $as_echo_n "(cached) " >&6
 
5750
else
 
5751
  if test -n "$RANLIB"; then
 
5752
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5753
else
 
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5755
for as_dir in $PATH
 
5756
do
 
5757
  IFS=$as_save_IFS
 
5758
  test -z "$as_dir" && as_dir=.
 
5759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5761
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5762
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5763
    break 2
 
5764
  fi
 
5765
done
 
5766
  done
 
5767
IFS=$as_save_IFS
 
5768
 
 
5769
fi
 
5770
fi
 
5771
RANLIB=$ac_cv_prog_RANLIB
 
5772
if test -n "$RANLIB"; then
 
5773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5774
$as_echo "$RANLIB" >&6; }
 
5775
else
 
5776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5777
$as_echo "no" >&6; }
 
5778
fi
 
5779
 
 
5780
 
 
5781
fi
 
5782
if test -z "$ac_cv_prog_RANLIB"; then
 
5783
  ac_ct_RANLIB=$RANLIB
 
5784
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5785
set dummy ranlib; ac_word=$2
 
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5787
$as_echo_n "checking for $ac_word... " >&6; }
 
5788
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5789
  $as_echo_n "(cached) " >&6
 
5790
else
 
5791
  if test -n "$ac_ct_RANLIB"; then
 
5792
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5793
else
 
5794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5795
for as_dir in $PATH
 
5796
do
 
5797
  IFS=$as_save_IFS
 
5798
  test -z "$as_dir" && as_dir=.
 
5799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5801
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5803
    break 2
 
5804
  fi
 
5805
done
 
5806
  done
 
5807
IFS=$as_save_IFS
 
5808
 
 
5809
fi
 
5810
fi
 
5811
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5812
if test -n "$ac_ct_RANLIB"; then
 
5813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5814
$as_echo "$ac_ct_RANLIB" >&6; }
 
5815
else
 
5816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5817
$as_echo "no" >&6; }
 
5818
fi
 
5819
 
 
5820
  if test "x$ac_ct_RANLIB" = x; then
 
5821
    RANLIB=":"
 
5822
  else
 
5823
    case $cross_compiling:$ac_tool_warned in
 
5824
yes:)
 
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5826
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5827
ac_tool_warned=yes ;;
 
5828
esac
 
5829
    RANLIB=$ac_ct_RANLIB
 
5830
  fi
 
5831
else
 
5832
  RANLIB="$ac_cv_prog_RANLIB"
 
5833
fi
 
5834
 
 
5835
test -z "$RANLIB" && RANLIB=:
 
5836
 
 
5837
 
 
5838
 
 
5839
 
 
5840
 
 
5841
 
 
5842
# Determine commands to create old-style static archives.
 
5843
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5844
old_postinstall_cmds='chmod 644 $oldlib'
 
5845
old_postuninstall_cmds=
 
5846
 
 
5847
if test -n "$RANLIB"; then
 
5848
  case $host_os in
 
5849
  openbsd*)
 
5850
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5851
    ;;
 
5852
  *)
 
5853
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5854
    ;;
 
5855
  esac
 
5856
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5857
fi
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
# If no C compiler was specified, use CC.
 
5893
LTCC=${LTCC-"$CC"}
 
5894
 
 
5895
# If no C compiler flags were specified, use CFLAGS.
 
5896
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5897
 
 
5898
# Allow CC to be a program name with arguments.
 
5899
compiler=$CC
 
5900
 
 
5901
 
 
5902
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5904
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5905
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
5906
  $as_echo_n "(cached) " >&6
 
5907
else
 
5908
 
 
5909
# These are sane defaults that work on at least a few old systems.
 
5910
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5911
 
 
5912
# Character class describing NM global symbol codes.
 
5913
symcode='[BCDEGRST]'
 
5914
 
 
5915
# Regexp to match symbols that can be accessed directly from C.
 
5916
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5917
 
 
5918
# Define system-specific variables.
 
5919
case $host_os in
 
5920
aix*)
 
5921
  symcode='[BCDT]'
 
5922
  ;;
 
5923
cygwin* | mingw* | pw32* | cegcc*)
 
5924
  symcode='[ABCDGISTW]'
 
5925
  ;;
 
5926
hpux*)
 
5927
  if test "$host_cpu" = ia64; then
 
5928
    symcode='[ABCDEGRST]'
 
5929
  fi
 
5930
  ;;
 
5931
irix* | nonstopux*)
 
5932
  symcode='[BCDEGRST]'
 
5933
  ;;
 
5934
osf*)
 
5935
  symcode='[BCDEGQRST]'
 
5936
  ;;
 
5937
solaris*)
 
5938
  symcode='[BDRT]'
 
5939
  ;;
 
5940
sco3.2v5*)
 
5941
  symcode='[DT]'
 
5942
  ;;
 
5943
sysv4.2uw2*)
 
5944
  symcode='[DT]'
 
5945
  ;;
 
5946
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5947
  symcode='[ABDT]'
 
5948
  ;;
 
5949
sysv4)
 
5950
  symcode='[DFNSTU]'
 
5951
  ;;
 
5952
esac
 
5953
 
 
5954
# If we're using GNU nm, then use its standard symbol codes.
 
5955
case `$NM -V 2>&1` in
 
5956
*GNU* | *'with BFD'*)
 
5957
  symcode='[ABCDGIRSTW]' ;;
 
5958
esac
 
5959
 
 
5960
# Transform an extracted symbol line into a proper C declaration.
 
5961
# Some systems (esp. on ia64) link data and code symbols differently,
 
5962
# so use this general approach.
 
5963
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5964
 
 
5965
# Transform an extracted symbol line into symbol name and symbol address
 
5966
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5967
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'"
 
5968
 
 
5969
# Handle CRLF in mingw tool chain
 
5970
opt_cr=
 
5971
case $build_os in
 
5972
mingw*)
 
5973
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5974
  ;;
 
5975
esac
 
5976
 
 
5977
# Try without a prefix underscore, then with it.
 
5978
for ac_symprfx in "" "_"; do
 
5979
 
 
5980
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5981
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5982
 
 
5983
  # Write the raw and C identifiers.
 
5984
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5985
    # Fake it for dumpbin and say T for any non-static function
 
5986
    # and D for any global variable.
 
5987
    # Also find C++ and __fastcall symbols from MSVC++,
 
5988
    # which start with @ or ?.
 
5989
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5990
"     {last_section=section; section=\$ 3};"\
 
5991
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5992
"     \$ 0!~/External *\|/{next};"\
 
5993
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5994
"     {if(hide[section]) next};"\
 
5995
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5996
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5997
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5998
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5999
"     ' prfx=^$ac_symprfx"
 
6000
  else
 
6001
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6002
  fi
 
6003
 
 
6004
  # Check to see that the pipe works correctly.
 
6005
  pipe_works=no
 
6006
 
 
6007
  rm -f conftest*
 
6008
  cat > conftest.$ac_ext <<_LT_EOF
 
6009
#ifdef __cplusplus
 
6010
extern "C" {
 
6011
#endif
 
6012
char nm_test_var;
 
6013
void nm_test_func(void);
 
6014
void nm_test_func(void){}
 
6015
#ifdef __cplusplus
 
6016
}
 
6017
#endif
 
6018
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6019
_LT_EOF
 
6020
 
 
6021
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6022
  (eval $ac_compile) 2>&5
 
6023
  ac_status=$?
 
6024
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6025
  test $ac_status = 0; }; then
 
6026
    # Now try to grab the symbols.
 
6027
    nlist=conftest.nm
 
6028
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6029
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6030
  ac_status=$?
 
6031
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6032
  test $ac_status = 0; } && test -s "$nlist"; then
 
6033
      # Try sorting and uniquifying the output.
 
6034
      if sort "$nlist" | uniq > "$nlist"T; then
 
6035
        mv -f "$nlist"T "$nlist"
 
6036
      else
 
6037
        rm -f "$nlist"T
 
6038
      fi
 
6039
 
 
6040
      # Make sure that we snagged all the symbols we need.
 
6041
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6042
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6043
          cat <<_LT_EOF > conftest.$ac_ext
 
6044
#ifdef __cplusplus
 
6045
extern "C" {
 
6046
#endif
 
6047
 
 
6048
_LT_EOF
 
6049
          # Now generate the symbol file.
 
6050
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6051
 
 
6052
          cat <<_LT_EOF >> conftest.$ac_ext
 
6053
 
 
6054
/* The mapping between symbol names and symbols.  */
 
6055
const struct {
 
6056
  const char *name;
 
6057
  void       *address;
 
6058
}
 
6059
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6060
{
 
6061
  { "@PROGRAM@", (void *) 0 },
 
6062
_LT_EOF
 
6063
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6064
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6065
  {0, (void *) 0}
 
6066
};
 
6067
 
 
6068
/* This works around a problem in FreeBSD linker */
 
6069
#ifdef FREEBSD_WORKAROUND
 
6070
static const void *lt_preloaded_setup() {
 
6071
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6072
}
 
6073
#endif
 
6074
 
 
6075
#ifdef __cplusplus
 
6076
}
 
6077
#endif
 
6078
_LT_EOF
 
6079
          # Now try linking the two files.
 
6080
          mv conftest.$ac_objext conftstm.$ac_objext
 
6081
          lt_save_LIBS="$LIBS"
 
6082
          lt_save_CFLAGS="$CFLAGS"
 
6083
          LIBS="conftstm.$ac_objext"
 
6084
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6085
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6086
  (eval $ac_link) 2>&5
 
6087
  ac_status=$?
 
6088
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6089
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6090
            pipe_works=yes
 
6091
          fi
 
6092
          LIBS="$lt_save_LIBS"
 
6093
          CFLAGS="$lt_save_CFLAGS"
 
6094
        else
 
6095
          echo "cannot find nm_test_func in $nlist" >&5
 
6096
        fi
 
6097
      else
 
6098
        echo "cannot find nm_test_var in $nlist" >&5
 
6099
      fi
 
6100
    else
 
6101
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6102
    fi
 
6103
  else
 
6104
    echo "$progname: failed program was:" >&5
 
6105
    cat conftest.$ac_ext >&5
 
6106
  fi
 
6107
  rm -rf conftest* conftst*
 
6108
 
 
6109
  # Do not use the global_symbol_pipe unless it works.
 
6110
  if test "$pipe_works" = yes; then
 
6111
    break
 
6112
  else
 
6113
    lt_cv_sys_global_symbol_pipe=
 
6114
  fi
 
6115
done
 
6116
 
 
6117
fi
 
6118
 
 
6119
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6120
  lt_cv_sys_global_symbol_to_cdecl=
 
6121
fi
 
6122
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6124
$as_echo "failed" >&6; }
 
6125
else
 
6126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6127
$as_echo "ok" >&6; }
 
6128
fi
 
6129
 
 
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
 
 
6140
 
 
6141
 
 
6142
 
 
6143
 
 
6144
 
 
6145
 
 
6146
 
 
6147
 
 
6148
 
 
6149
 
 
6150
 
 
6151
 
 
6152
# Check whether --enable-libtool-lock was given.
 
6153
if test "${enable_libtool_lock+set}" = set; then :
 
6154
  enableval=$enable_libtool_lock;
 
6155
fi
 
6156
 
 
6157
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6158
 
 
6159
# Some flags need to be propagated to the compiler or linker for good
 
6160
# libtool support.
 
6161
case $host in
 
6162
ia64-*-hpux*)
 
6163
  # Find out which ABI we are using.
 
6164
  echo 'int i;' > conftest.$ac_ext
 
6165
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6166
  (eval $ac_compile) 2>&5
 
6167
  ac_status=$?
 
6168
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6169
  test $ac_status = 0; }; then
 
6170
    case `/usr/bin/file conftest.$ac_objext` in
 
6171
      *ELF-32*)
 
6172
        HPUX_IA64_MODE="32"
 
6173
        ;;
 
6174
      *ELF-64*)
 
6175
        HPUX_IA64_MODE="64"
 
6176
        ;;
 
6177
    esac
 
6178
  fi
 
6179
  rm -rf conftest*
 
6180
  ;;
 
6181
*-*-irix6*)
 
6182
  # Find out which ABI we are using.
 
6183
  echo '#line 6183 "configure"' > conftest.$ac_ext
 
6184
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6185
  (eval $ac_compile) 2>&5
 
6186
  ac_status=$?
 
6187
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6188
  test $ac_status = 0; }; then
 
6189
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6190
      case `/usr/bin/file conftest.$ac_objext` in
 
6191
        *32-bit*)
 
6192
          LD="${LD-ld} -melf32bsmip"
 
6193
          ;;
 
6194
        *N32*)
 
6195
          LD="${LD-ld} -melf32bmipn32"
 
6196
          ;;
 
6197
        *64-bit*)
 
6198
          LD="${LD-ld} -melf64bmip"
 
6199
        ;;
 
6200
      esac
 
6201
    else
 
6202
      case `/usr/bin/file conftest.$ac_objext` in
 
6203
        *32-bit*)
 
6204
          LD="${LD-ld} -32"
 
6205
          ;;
 
6206
        *N32*)
 
6207
          LD="${LD-ld} -n32"
 
6208
          ;;
 
6209
        *64-bit*)
 
6210
          LD="${LD-ld} -64"
 
6211
          ;;
 
6212
      esac
 
6213
    fi
 
6214
  fi
 
6215
  rm -rf conftest*
 
6216
  ;;
 
6217
 
 
6218
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6219
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6220
  # Find out which ABI we are using.
 
6221
  echo 'int i;' > conftest.$ac_ext
 
6222
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6223
  (eval $ac_compile) 2>&5
 
6224
  ac_status=$?
 
6225
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6226
  test $ac_status = 0; }; then
 
6227
    case `/usr/bin/file conftest.o` in
 
6228
      *32-bit*)
 
6229
        case $host in
 
6230
          x86_64-*kfreebsd*-gnu)
 
6231
            LD="${LD-ld} -m elf_i386_fbsd"
 
6232
            ;;
 
6233
          x86_64-*linux*)
 
6234
            LD="${LD-ld} -m elf_i386"
 
6235
            ;;
 
6236
          ppc64-*linux*|powerpc64-*linux*)
 
6237
            LD="${LD-ld} -m elf32ppclinux"
 
6238
            ;;
 
6239
          s390x-*linux*)
 
6240
            LD="${LD-ld} -m elf_s390"
 
6241
            ;;
 
6242
          sparc64-*linux*)
 
6243
            LD="${LD-ld} -m elf32_sparc"
 
6244
            ;;
 
6245
        esac
 
6246
        ;;
 
6247
      *64-bit*)
 
6248
        case $host in
 
6249
          x86_64-*kfreebsd*-gnu)
 
6250
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6251
            ;;
 
6252
          x86_64-*linux*)
 
6253
            LD="${LD-ld} -m elf_x86_64"
 
6254
            ;;
 
6255
          ppc*-*linux*|powerpc*-*linux*)
 
6256
            LD="${LD-ld} -m elf64ppc"
 
6257
            ;;
 
6258
          s390*-*linux*|s390*-*tpf*)
 
6259
            LD="${LD-ld} -m elf64_s390"
 
6260
            ;;
 
6261
          sparc*-*linux*)
 
6262
            LD="${LD-ld} -m elf64_sparc"
 
6263
            ;;
 
6264
        esac
 
6265
        ;;
 
6266
    esac
 
6267
  fi
 
6268
  rm -rf conftest*
 
6269
  ;;
 
6270
 
 
6271
*-*-sco3.2v5*)
 
6272
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6273
  SAVE_CFLAGS="$CFLAGS"
 
6274
  CFLAGS="$CFLAGS -belf"
 
6275
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6276
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6277
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6278
  $as_echo_n "(cached) " >&6
 
6279
else
 
6280
  ac_ext=c
 
6281
ac_cpp='$CPP $CPPFLAGS'
 
6282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6285
 
 
6286
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6287
/* end confdefs.h.  */
 
6288
 
 
6289
int
 
6290
main ()
 
6291
{
 
6292
 
 
6293
  ;
 
6294
  return 0;
 
6295
}
 
6296
_ACEOF
 
6297
if ac_fn_c_try_link "$LINENO"; then :
 
6298
  lt_cv_cc_needs_belf=yes
 
6299
else
 
6300
  lt_cv_cc_needs_belf=no
 
6301
fi
 
6302
rm -f core conftest.err conftest.$ac_objext \
 
6303
    conftest$ac_exeext conftest.$ac_ext
 
6304
     ac_ext=c
 
6305
ac_cpp='$CPP $CPPFLAGS'
 
6306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6309
 
 
6310
fi
 
6311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6312
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6313
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6314
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6315
    CFLAGS="$SAVE_CFLAGS"
 
6316
  fi
 
6317
  ;;
 
6318
sparc*-*solaris*)
 
6319
  # Find out which ABI we are using.
 
6320
  echo 'int i;' > conftest.$ac_ext
 
6321
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6322
  (eval $ac_compile) 2>&5
 
6323
  ac_status=$?
 
6324
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6325
  test $ac_status = 0; }; then
 
6326
    case `/usr/bin/file conftest.o` in
 
6327
    *64-bit*)
 
6328
      case $lt_cv_prog_gnu_ld in
 
6329
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6330
      *)
 
6331
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6332
          LD="${LD-ld} -64"
 
6333
        fi
 
6334
        ;;
 
6335
      esac
 
6336
      ;;
 
6337
    esac
 
6338
  fi
 
6339
  rm -rf conftest*
 
6340
  ;;
 
6341
esac
 
6342
 
 
6343
need_locks="$enable_libtool_lock"
 
6344
 
 
6345
 
 
6346
  case $host_os in
 
6347
    rhapsody* | darwin*)
 
6348
    if test -n "$ac_tool_prefix"; then
 
6349
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6350
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6352
$as_echo_n "checking for $ac_word... " >&6; }
 
6353
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6354
  $as_echo_n "(cached) " >&6
 
6355
else
 
6356
  if test -n "$DSYMUTIL"; then
 
6357
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6358
else
 
6359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6360
for as_dir in $PATH
 
6361
do
 
6362
  IFS=$as_save_IFS
 
6363
  test -z "$as_dir" && as_dir=.
 
6364
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6366
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6367
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6368
    break 2
 
6369
  fi
 
6370
done
 
6371
  done
 
6372
IFS=$as_save_IFS
 
6373
 
 
6374
fi
 
6375
fi
 
6376
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6377
if test -n "$DSYMUTIL"; then
 
6378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6379
$as_echo "$DSYMUTIL" >&6; }
 
6380
else
 
6381
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6382
$as_echo "no" >&6; }
 
6383
fi
 
6384
 
 
6385
 
 
6386
fi
 
6387
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6388
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6389
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6390
set dummy dsymutil; ac_word=$2
 
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6392
$as_echo_n "checking for $ac_word... " >&6; }
 
6393
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6394
  $as_echo_n "(cached) " >&6
 
6395
else
 
6396
  if test -n "$ac_ct_DSYMUTIL"; then
 
6397
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6398
else
 
6399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6400
for as_dir in $PATH
 
6401
do
 
6402
  IFS=$as_save_IFS
 
6403
  test -z "$as_dir" && as_dir=.
 
6404
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6405
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6406
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6407
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6408
    break 2
 
6409
  fi
 
6410
done
 
6411
  done
 
6412
IFS=$as_save_IFS
 
6413
 
 
6414
fi
 
6415
fi
 
6416
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6417
if test -n "$ac_ct_DSYMUTIL"; then
 
6418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6419
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6420
else
 
6421
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6422
$as_echo "no" >&6; }
 
6423
fi
 
6424
 
 
6425
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6426
    DSYMUTIL=":"
 
6427
  else
 
6428
    case $cross_compiling:$ac_tool_warned in
 
6429
yes:)
 
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6431
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6432
ac_tool_warned=yes ;;
 
6433
esac
 
6434
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6435
  fi
 
6436
else
 
6437
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6438
fi
 
6439
 
 
6440
    if test -n "$ac_tool_prefix"; then
 
6441
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6442
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6444
$as_echo_n "checking for $ac_word... " >&6; }
 
6445
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6446
  $as_echo_n "(cached) " >&6
 
6447
else
 
6448
  if test -n "$NMEDIT"; then
 
6449
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6450
else
 
6451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6452
for as_dir in $PATH
 
6453
do
 
6454
  IFS=$as_save_IFS
 
6455
  test -z "$as_dir" && as_dir=.
 
6456
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6458
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6460
    break 2
 
6461
  fi
 
6462
done
 
6463
  done
 
6464
IFS=$as_save_IFS
 
6465
 
 
6466
fi
 
6467
fi
 
6468
NMEDIT=$ac_cv_prog_NMEDIT
 
6469
if test -n "$NMEDIT"; then
 
6470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6471
$as_echo "$NMEDIT" >&6; }
 
6472
else
 
6473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6474
$as_echo "no" >&6; }
 
6475
fi
 
6476
 
 
6477
 
 
6478
fi
 
6479
if test -z "$ac_cv_prog_NMEDIT"; then
 
6480
  ac_ct_NMEDIT=$NMEDIT
 
6481
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6482
set dummy nmedit; ac_word=$2
 
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6484
$as_echo_n "checking for $ac_word... " >&6; }
 
6485
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6486
  $as_echo_n "(cached) " >&6
 
6487
else
 
6488
  if test -n "$ac_ct_NMEDIT"; then
 
6489
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6490
else
 
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6492
for as_dir in $PATH
 
6493
do
 
6494
  IFS=$as_save_IFS
 
6495
  test -z "$as_dir" && as_dir=.
 
6496
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6498
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6500
    break 2
 
6501
  fi
 
6502
done
 
6503
  done
 
6504
IFS=$as_save_IFS
 
6505
 
 
6506
fi
 
6507
fi
 
6508
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6509
if test -n "$ac_ct_NMEDIT"; then
 
6510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6511
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6512
else
 
6513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6514
$as_echo "no" >&6; }
 
6515
fi
 
6516
 
 
6517
  if test "x$ac_ct_NMEDIT" = x; then
 
6518
    NMEDIT=":"
 
6519
  else
 
6520
    case $cross_compiling:$ac_tool_warned in
 
6521
yes:)
 
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6523
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6524
ac_tool_warned=yes ;;
 
6525
esac
 
6526
    NMEDIT=$ac_ct_NMEDIT
 
6527
  fi
 
6528
else
 
6529
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6530
fi
 
6531
 
 
6532
    if test -n "$ac_tool_prefix"; then
 
6533
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6534
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6536
$as_echo_n "checking for $ac_word... " >&6; }
 
6537
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6538
  $as_echo_n "(cached) " >&6
 
6539
else
 
6540
  if test -n "$LIPO"; then
 
6541
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6542
else
 
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6544
for as_dir in $PATH
 
6545
do
 
6546
  IFS=$as_save_IFS
 
6547
  test -z "$as_dir" && as_dir=.
 
6548
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6550
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6551
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6552
    break 2
 
6553
  fi
 
6554
done
 
6555
  done
 
6556
IFS=$as_save_IFS
 
6557
 
 
6558
fi
 
6559
fi
 
6560
LIPO=$ac_cv_prog_LIPO
 
6561
if test -n "$LIPO"; then
 
6562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6563
$as_echo "$LIPO" >&6; }
 
6564
else
 
6565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6566
$as_echo "no" >&6; }
 
6567
fi
 
6568
 
 
6569
 
 
6570
fi
 
6571
if test -z "$ac_cv_prog_LIPO"; then
 
6572
  ac_ct_LIPO=$LIPO
 
6573
  # Extract the first word of "lipo", so it can be a program name with args.
 
6574
set dummy lipo; ac_word=$2
 
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6576
$as_echo_n "checking for $ac_word... " >&6; }
 
6577
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6578
  $as_echo_n "(cached) " >&6
 
6579
else
 
6580
  if test -n "$ac_ct_LIPO"; then
 
6581
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6582
else
 
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6584
for as_dir in $PATH
 
6585
do
 
6586
  IFS=$as_save_IFS
 
6587
  test -z "$as_dir" && as_dir=.
 
6588
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6590
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6592
    break 2
 
6593
  fi
 
6594
done
 
6595
  done
 
6596
IFS=$as_save_IFS
 
6597
 
 
6598
fi
 
6599
fi
 
6600
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6601
if test -n "$ac_ct_LIPO"; then
 
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6603
$as_echo "$ac_ct_LIPO" >&6; }
 
6604
else
 
6605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6606
$as_echo "no" >&6; }
 
6607
fi
 
6608
 
 
6609
  if test "x$ac_ct_LIPO" = x; then
 
6610
    LIPO=":"
 
6611
  else
 
6612
    case $cross_compiling:$ac_tool_warned in
 
6613
yes:)
 
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6616
ac_tool_warned=yes ;;
 
6617
esac
 
6618
    LIPO=$ac_ct_LIPO
 
6619
  fi
 
6620
else
 
6621
  LIPO="$ac_cv_prog_LIPO"
 
6622
fi
 
6623
 
 
6624
    if test -n "$ac_tool_prefix"; then
 
6625
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6626
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6628
$as_echo_n "checking for $ac_word... " >&6; }
 
6629
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6630
  $as_echo_n "(cached) " >&6
 
6631
else
 
6632
  if test -n "$OTOOL"; then
 
6633
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6634
else
 
6635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6636
for as_dir in $PATH
 
6637
do
 
6638
  IFS=$as_save_IFS
 
6639
  test -z "$as_dir" && as_dir=.
 
6640
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6642
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6643
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6644
    break 2
 
6645
  fi
 
6646
done
 
6647
  done
 
6648
IFS=$as_save_IFS
 
6649
 
 
6650
fi
 
6651
fi
 
6652
OTOOL=$ac_cv_prog_OTOOL
 
6653
if test -n "$OTOOL"; then
 
6654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6655
$as_echo "$OTOOL" >&6; }
 
6656
else
 
6657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6658
$as_echo "no" >&6; }
 
6659
fi
 
6660
 
 
6661
 
 
6662
fi
 
6663
if test -z "$ac_cv_prog_OTOOL"; then
 
6664
  ac_ct_OTOOL=$OTOOL
 
6665
  # Extract the first word of "otool", so it can be a program name with args.
 
6666
set dummy otool; ac_word=$2
 
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6668
$as_echo_n "checking for $ac_word... " >&6; }
 
6669
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6670
  $as_echo_n "(cached) " >&6
 
6671
else
 
6672
  if test -n "$ac_ct_OTOOL"; then
 
6673
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6674
else
 
6675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6676
for as_dir in $PATH
 
6677
do
 
6678
  IFS=$as_save_IFS
 
6679
  test -z "$as_dir" && as_dir=.
 
6680
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6682
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6683
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6684
    break 2
 
6685
  fi
 
6686
done
 
6687
  done
 
6688
IFS=$as_save_IFS
 
6689
 
 
6690
fi
 
6691
fi
 
6692
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6693
if test -n "$ac_ct_OTOOL"; then
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6695
$as_echo "$ac_ct_OTOOL" >&6; }
 
6696
else
 
6697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6698
$as_echo "no" >&6; }
 
6699
fi
 
6700
 
 
6701
  if test "x$ac_ct_OTOOL" = x; then
 
6702
    OTOOL=":"
 
6703
  else
 
6704
    case $cross_compiling:$ac_tool_warned in
 
6705
yes:)
 
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6707
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6708
ac_tool_warned=yes ;;
 
6709
esac
 
6710
    OTOOL=$ac_ct_OTOOL
 
6711
  fi
 
6712
else
 
6713
  OTOOL="$ac_cv_prog_OTOOL"
 
6714
fi
 
6715
 
 
6716
    if test -n "$ac_tool_prefix"; then
 
6717
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6718
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6720
$as_echo_n "checking for $ac_word... " >&6; }
 
6721
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6722
  $as_echo_n "(cached) " >&6
 
6723
else
 
6724
  if test -n "$OTOOL64"; then
 
6725
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6726
else
 
6727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6728
for as_dir in $PATH
 
6729
do
 
6730
  IFS=$as_save_IFS
 
6731
  test -z "$as_dir" && as_dir=.
 
6732
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6734
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6735
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6736
    break 2
 
6737
  fi
 
6738
done
 
6739
  done
 
6740
IFS=$as_save_IFS
 
6741
 
 
6742
fi
 
6743
fi
 
6744
OTOOL64=$ac_cv_prog_OTOOL64
 
6745
if test -n "$OTOOL64"; then
 
6746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6747
$as_echo "$OTOOL64" >&6; }
 
6748
else
 
6749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6750
$as_echo "no" >&6; }
 
6751
fi
 
6752
 
 
6753
 
 
6754
fi
 
6755
if test -z "$ac_cv_prog_OTOOL64"; then
 
6756
  ac_ct_OTOOL64=$OTOOL64
 
6757
  # Extract the first word of "otool64", so it can be a program name with args.
 
6758
set dummy otool64; ac_word=$2
 
6759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6760
$as_echo_n "checking for $ac_word... " >&6; }
 
6761
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6762
  $as_echo_n "(cached) " >&6
 
6763
else
 
6764
  if test -n "$ac_ct_OTOOL64"; then
 
6765
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6766
else
 
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6768
for as_dir in $PATH
 
6769
do
 
6770
  IFS=$as_save_IFS
 
6771
  test -z "$as_dir" && as_dir=.
 
6772
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6774
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6775
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6776
    break 2
 
6777
  fi
 
6778
done
 
6779
  done
 
6780
IFS=$as_save_IFS
 
6781
 
 
6782
fi
 
6783
fi
 
6784
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6785
if test -n "$ac_ct_OTOOL64"; then
 
6786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6787
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6788
else
 
6789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6790
$as_echo "no" >&6; }
 
6791
fi
 
6792
 
 
6793
  if test "x$ac_ct_OTOOL64" = x; then
 
6794
    OTOOL64=":"
 
6795
  else
 
6796
    case $cross_compiling:$ac_tool_warned in
 
6797
yes:)
 
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6800
ac_tool_warned=yes ;;
 
6801
esac
 
6802
    OTOOL64=$ac_ct_OTOOL64
 
6803
  fi
 
6804
else
 
6805
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6806
fi
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
 
 
6818
 
 
6819
 
 
6820
 
 
6821
 
 
6822
 
 
6823
 
 
6824
 
 
6825
 
 
6826
 
 
6827
 
 
6828
 
 
6829
 
 
6830
 
 
6831
 
 
6832
 
 
6833
 
 
6834
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6835
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6836
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6837
  $as_echo_n "(cached) " >&6
 
6838
else
 
6839
  lt_cv_apple_cc_single_mod=no
 
6840
      if test -z "${LT_MULTI_MODULE}"; then
 
6841
        # By default we will add the -single_module flag. You can override
 
6842
        # by either setting the environment variable LT_MULTI_MODULE
 
6843
        # non-empty at configure time, or by adding -multi_module to the
 
6844
        # link flags.
 
6845
        rm -rf libconftest.dylib*
 
6846
        echo "int foo(void){return 1;}" > conftest.c
 
6847
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6848
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6849
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6850
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6851
        _lt_result=$?
 
6852
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6853
          lt_cv_apple_cc_single_mod=yes
 
6854
        else
 
6855
          cat conftest.err >&5
 
6856
        fi
 
6857
        rm -rf libconftest.dylib*
 
6858
        rm -f conftest.*
 
6859
      fi
 
6860
fi
 
6861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6862
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6863
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6864
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6865
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6866
  $as_echo_n "(cached) " >&6
 
6867
else
 
6868
  lt_cv_ld_exported_symbols_list=no
 
6869
      save_LDFLAGS=$LDFLAGS
 
6870
      echo "_main" > conftest.sym
 
6871
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6872
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6873
/* end confdefs.h.  */
 
6874
 
 
6875
int
 
6876
main ()
 
6877
{
 
6878
 
 
6879
  ;
 
6880
  return 0;
 
6881
}
 
6882
_ACEOF
 
6883
if ac_fn_c_try_link "$LINENO"; then :
 
6884
  lt_cv_ld_exported_symbols_list=yes
 
6885
else
 
6886
  lt_cv_ld_exported_symbols_list=no
 
6887
fi
 
6888
rm -f core conftest.err conftest.$ac_objext \
 
6889
    conftest$ac_exeext conftest.$ac_ext
 
6890
        LDFLAGS="$save_LDFLAGS"
 
6891
 
 
6892
fi
 
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6894
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6895
    case $host_os in
 
6896
    rhapsody* | darwin1.[012])
 
6897
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6898
    darwin1.*)
 
6899
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6900
    darwin*) # darwin 5.x on
 
6901
      # if running on 10.5 or later, the deployment target defaults
 
6902
      # to the OS version, if on x86, and 10.4, the deployment
 
6903
      # target defaults to 10.4. Don't you love it?
 
6904
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6905
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6906
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6907
        10.[012]*)
 
6908
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6909
        10.*)
 
6910
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6911
      esac
 
6912
    ;;
 
6913
  esac
 
6914
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6915
      _lt_dar_single_mod='$single_module'
 
6916
    fi
 
6917
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6918
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6919
    else
 
6920
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6921
    fi
 
6922
    if test "$DSYMUTIL" != ":"; then
 
6923
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6924
    else
 
6925
      _lt_dsymutil=
 
6926
    fi
 
6927
    ;;
 
6928
  esac
 
6929
 
 
6930
ac_ext=c
 
6931
ac_cpp='$CPP $CPPFLAGS'
 
6932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6936
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6937
# On Suns, sometimes $CPP names a directory.
 
6938
if test -n "$CPP" && test -d "$CPP"; then
 
6939
  CPP=
 
6940
fi
 
6941
if test -z "$CPP"; then
 
6942
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6943
  $as_echo_n "(cached) " >&6
 
6944
else
 
6945
      # Double quotes because CPP needs to be expanded
 
6946
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6947
    do
 
6948
      ac_preproc_ok=false
 
6949
for ac_c_preproc_warn_flag in '' yes
 
6950
do
 
6951
  # Use a header file that comes with gcc, so configuring glibc
 
6952
  # with a fresh cross-compiler works.
 
6953
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6954
  # <limits.h> exists even on freestanding compilers.
 
6955
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6956
  # not just through cpp. "Syntax error" is here to catch this case.
 
6957
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6958
/* end confdefs.h.  */
 
6959
#ifdef __STDC__
 
6960
# include <limits.h>
 
6961
#else
 
6962
# include <assert.h>
 
6963
#endif
 
6964
                     Syntax error
 
6965
_ACEOF
 
6966
if ac_fn_c_try_cpp "$LINENO"; then :
 
6967
 
 
6968
else
 
6969
  # Broken: fails on valid input.
 
6970
continue
 
6971
fi
 
6972
rm -f conftest.err conftest.$ac_ext
 
6973
 
 
6974
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6975
  # can be detected and how.
 
6976
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6977
/* end confdefs.h.  */
 
6978
#include <ac_nonexistent.h>
 
6979
_ACEOF
 
6980
if ac_fn_c_try_cpp "$LINENO"; then :
 
6981
  # Broken: success on invalid input.
 
6982
continue
 
6983
else
 
6984
  # Passes both tests.
 
6985
ac_preproc_ok=:
 
6986
break
 
6987
fi
 
6988
rm -f conftest.err conftest.$ac_ext
 
6989
 
 
6990
done
 
6991
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6992
rm -f conftest.err conftest.$ac_ext
 
6993
if $ac_preproc_ok; then :
 
6994
  break
 
6995
fi
 
6996
 
 
6997
    done
 
6998
    ac_cv_prog_CPP=$CPP
 
6999
 
 
7000
fi
 
7001
  CPP=$ac_cv_prog_CPP
 
7002
else
 
7003
  ac_cv_prog_CPP=$CPP
 
7004
fi
 
7005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7006
$as_echo "$CPP" >&6; }
 
7007
ac_preproc_ok=false
 
7008
for ac_c_preproc_warn_flag in '' yes
 
7009
do
 
7010
  # Use a header file that comes with gcc, so configuring glibc
 
7011
  # with a fresh cross-compiler works.
 
7012
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7013
  # <limits.h> exists even on freestanding compilers.
 
7014
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7015
  # not just through cpp. "Syntax error" is here to catch this case.
 
7016
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7017
/* end confdefs.h.  */
 
7018
#ifdef __STDC__
 
7019
# include <limits.h>
 
7020
#else
 
7021
# include <assert.h>
 
7022
#endif
 
7023
                     Syntax error
 
7024
_ACEOF
 
7025
if ac_fn_c_try_cpp "$LINENO"; then :
 
7026
 
 
7027
else
 
7028
  # Broken: fails on valid input.
 
7029
continue
 
7030
fi
 
7031
rm -f conftest.err conftest.$ac_ext
 
7032
 
 
7033
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7034
  # can be detected and how.
 
7035
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7036
/* end confdefs.h.  */
 
7037
#include <ac_nonexistent.h>
 
7038
_ACEOF
 
7039
if ac_fn_c_try_cpp "$LINENO"; then :
 
7040
  # Broken: success on invalid input.
 
7041
continue
 
7042
else
 
7043
  # Passes both tests.
 
7044
ac_preproc_ok=:
 
7045
break
 
7046
fi
 
7047
rm -f conftest.err conftest.$ac_ext
 
7048
 
 
7049
done
 
7050
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7051
rm -f conftest.err conftest.$ac_ext
 
7052
if $ac_preproc_ok; then :
 
7053
 
 
7054
else
 
7055
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7056
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7057
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
7058
See \`config.log' for more details." "$LINENO" 5; }
 
7059
fi
 
7060
 
 
7061
ac_ext=c
 
7062
ac_cpp='$CPP $CPPFLAGS'
 
7063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7066
 
 
7067
 
 
7068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7069
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7070
if test "${ac_cv_header_stdc+set}" = set; then :
 
7071
  $as_echo_n "(cached) " >&6
 
7072
else
 
7073
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7074
/* end confdefs.h.  */
 
7075
#include <stdlib.h>
 
7076
#include <stdarg.h>
 
7077
#include <string.h>
 
7078
#include <float.h>
 
7079
 
 
7080
int
 
7081
main ()
 
7082
{
 
7083
 
 
7084
  ;
 
7085
  return 0;
 
7086
}
 
7087
_ACEOF
 
7088
if ac_fn_c_try_compile "$LINENO"; then :
 
7089
  ac_cv_header_stdc=yes
 
7090
else
 
7091
  ac_cv_header_stdc=no
 
7092
fi
 
7093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7094
 
 
7095
if test $ac_cv_header_stdc = yes; then
 
7096
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7098
/* end confdefs.h.  */
 
7099
#include <string.h>
 
7100
 
 
7101
_ACEOF
 
7102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7103
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7104
 
 
7105
else
 
7106
  ac_cv_header_stdc=no
 
7107
fi
 
7108
rm -f conftest*
 
7109
 
 
7110
fi
 
7111
 
 
7112
if test $ac_cv_header_stdc = yes; then
 
7113
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7114
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7115
/* end confdefs.h.  */
 
7116
#include <stdlib.h>
 
7117
 
 
7118
_ACEOF
 
7119
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7120
  $EGREP "free" >/dev/null 2>&1; then :
 
7121
 
 
7122
else
 
7123
  ac_cv_header_stdc=no
 
7124
fi
 
7125
rm -f conftest*
 
7126
 
 
7127
fi
 
7128
 
 
7129
if test $ac_cv_header_stdc = yes; then
 
7130
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7131
  if test "$cross_compiling" = yes; then :
 
7132
  :
 
7133
else
 
7134
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7135
/* end confdefs.h.  */
 
7136
#include <ctype.h>
 
7137
#include <stdlib.h>
 
7138
#if ((' ' & 0x0FF) == 0x020)
 
7139
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7140
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7141
#else
 
7142
# define ISLOWER(c) \
 
7143
                   (('a' <= (c) && (c) <= 'i') \
 
7144
                     || ('j' <= (c) && (c) <= 'r') \
 
7145
                     || ('s' <= (c) && (c) <= 'z'))
 
7146
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7147
#endif
 
7148
 
 
7149
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7150
int
 
7151
main ()
 
7152
{
 
7153
  int i;
 
7154
  for (i = 0; i < 256; i++)
 
7155
    if (XOR (islower (i), ISLOWER (i))
 
7156
        || toupper (i) != TOUPPER (i))
 
7157
      return 2;
 
7158
  return 0;
 
7159
}
 
7160
_ACEOF
 
7161
if ac_fn_c_try_run "$LINENO"; then :
 
7162
 
 
7163
else
 
7164
  ac_cv_header_stdc=no
 
7165
fi
 
7166
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7167
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7168
fi
 
7169
 
 
7170
fi
 
7171
fi
 
7172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7173
$as_echo "$ac_cv_header_stdc" >&6; }
 
7174
if test $ac_cv_header_stdc = yes; then
 
7175
 
 
7176
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7177
 
 
7178
fi
 
7179
 
 
7180
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7181
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7182
                  inttypes.h stdint.h unistd.h
 
7183
do :
 
7184
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7185
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7186
"
 
7187
eval as_val=\$$as_ac_Header
 
7188
   if test "x$as_val" = x""yes; then :
 
7189
  cat >>confdefs.h <<_ACEOF
 
7190
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7191
_ACEOF
 
7192
 
 
7193
fi
 
7194
 
 
7195
done
 
7196
 
 
7197
 
 
7198
for ac_header in dlfcn.h
 
7199
do :
 
7200
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7201
"
 
7202
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7203
  cat >>confdefs.h <<_ACEOF
 
7204
#define HAVE_DLFCN_H 1
 
7205
_ACEOF
 
7206
 
 
7207
fi
 
7208
 
 
7209
done
 
7210
 
 
7211
 
 
7212
 
 
7213
ac_ext=cpp
 
7214
ac_cpp='$CXXCPP $CPPFLAGS'
 
7215
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7216
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7217
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7218
if test -z "$CXX"; then
 
7219
  if test -n "$CCC"; then
 
7220
    CXX=$CCC
 
7221
  else
 
7222
    if test -n "$ac_tool_prefix"; then
 
7223
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7224
  do
 
7225
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7226
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7228
$as_echo_n "checking for $ac_word... " >&6; }
 
7229
if test "${ac_cv_prog_CXX+set}" = set; then :
 
7230
  $as_echo_n "(cached) " >&6
 
7231
else
 
7232
  if test -n "$CXX"; then
 
7233
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7234
else
 
7235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7236
for as_dir in $PATH
 
7237
do
 
7238
  IFS=$as_save_IFS
 
7239
  test -z "$as_dir" && as_dir=.
 
7240
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7241
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7242
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7243
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7244
    break 2
 
7245
  fi
 
7246
done
 
7247
  done
 
7248
IFS=$as_save_IFS
 
7249
 
 
7250
fi
 
7251
fi
 
7252
CXX=$ac_cv_prog_CXX
 
7253
if test -n "$CXX"; then
 
7254
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
7255
$as_echo "$CXX" >&6; }
 
7256
else
 
7257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7258
$as_echo "no" >&6; }
 
7259
fi
 
7260
 
 
7261
 
 
7262
    test -n "$CXX" && break
 
7263
  done
 
7264
fi
 
7265
if test -z "$CXX"; then
 
7266
  ac_ct_CXX=$CXX
 
7267
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7268
do
 
7269
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7270
set dummy $ac_prog; ac_word=$2
 
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7272
$as_echo_n "checking for $ac_word... " >&6; }
 
7273
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
7274
  $as_echo_n "(cached) " >&6
 
7275
else
 
7276
  if test -n "$ac_ct_CXX"; then
 
7277
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7278
else
 
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7280
for as_dir in $PATH
 
7281
do
 
7282
  IFS=$as_save_IFS
 
7283
  test -z "$as_dir" && as_dir=.
 
7284
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7286
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7288
    break 2
 
7289
  fi
 
7290
done
 
7291
  done
 
7292
IFS=$as_save_IFS
 
7293
 
 
7294
fi
 
7295
fi
 
7296
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7297
if test -n "$ac_ct_CXX"; then
 
7298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
7299
$as_echo "$ac_ct_CXX" >&6; }
 
7300
else
 
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7302
$as_echo "no" >&6; }
 
7303
fi
 
7304
 
 
7305
 
 
7306
  test -n "$ac_ct_CXX" && break
 
7307
done
 
7308
 
 
7309
  if test "x$ac_ct_CXX" = x; then
 
7310
    CXX="g++"
 
7311
  else
 
7312
    case $cross_compiling:$ac_tool_warned in
 
7313
yes:)
 
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7315
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7316
ac_tool_warned=yes ;;
 
7317
esac
 
7318
    CXX=$ac_ct_CXX
 
7319
  fi
 
7320
fi
 
7321
 
 
7322
  fi
 
7323
fi
 
7324
# Provide some information about the compiler.
 
7325
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
7326
set X $ac_compile
 
7327
ac_compiler=$2
 
7328
for ac_option in --version -v -V -qversion; do
 
7329
  { { ac_try="$ac_compiler $ac_option >&5"
 
7330
case "(($ac_try" in
 
7331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7332
  *) ac_try_echo=$ac_try;;
 
7333
esac
 
7334
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7335
$as_echo "$ac_try_echo"; } >&5
 
7336
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
7337
  ac_status=$?
 
7338
  if test -s conftest.err; then
 
7339
    sed '10a\
 
7340
... rest of stderr output deleted ...
 
7341
         10q' conftest.err >conftest.er1
 
7342
    cat conftest.er1 >&5
 
7343
    rm -f conftest.er1 conftest.err
 
7344
  fi
 
7345
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7346
  test $ac_status = 0; }
 
7347
done
 
7348
 
 
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
7350
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
7351
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
7352
  $as_echo_n "(cached) " >&6
 
7353
else
 
7354
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7355
/* end confdefs.h.  */
 
7356
 
 
7357
int
 
7358
main ()
 
7359
{
 
7360
#ifndef __GNUC__
 
7361
       choke me
 
7362
#endif
 
7363
 
 
7364
  ;
 
7365
  return 0;
 
7366
}
 
7367
_ACEOF
 
7368
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7369
  ac_compiler_gnu=yes
 
7370
else
 
7371
  ac_compiler_gnu=no
 
7372
fi
 
7373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7374
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7375
 
 
7376
fi
 
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
7378
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
7379
if test $ac_compiler_gnu = yes; then
 
7380
  GXX=yes
 
7381
else
 
7382
  GXX=
 
7383
fi
 
7384
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7385
ac_save_CXXFLAGS=$CXXFLAGS
 
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
7387
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
7388
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
7389
  $as_echo_n "(cached) " >&6
 
7390
else
 
7391
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
7392
   ac_cxx_werror_flag=yes
 
7393
   ac_cv_prog_cxx_g=no
 
7394
   CXXFLAGS="-g"
 
7395
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7396
/* end confdefs.h.  */
 
7397
 
 
7398
int
 
7399
main ()
 
7400
{
 
7401
 
 
7402
  ;
 
7403
  return 0;
 
7404
}
 
7405
_ACEOF
 
7406
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7407
  ac_cv_prog_cxx_g=yes
 
7408
else
 
7409
  CXXFLAGS=""
 
7410
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7411
/* end confdefs.h.  */
 
7412
 
 
7413
int
 
7414
main ()
 
7415
{
 
7416
 
 
7417
  ;
 
7418
  return 0;
 
7419
}
 
7420
_ACEOF
 
7421
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7422
 
 
7423
else
 
7424
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7425
         CXXFLAGS="-g"
 
7426
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7427
/* end confdefs.h.  */
 
7428
 
 
7429
int
 
7430
main ()
 
7431
{
 
7432
 
 
7433
  ;
 
7434
  return 0;
 
7435
}
 
7436
_ACEOF
 
7437
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7438
  ac_cv_prog_cxx_g=yes
 
7439
fi
 
7440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7441
fi
 
7442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7443
fi
 
7444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7445
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7446
fi
 
7447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
7448
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
7449
if test "$ac_test_CXXFLAGS" = set; then
 
7450
  CXXFLAGS=$ac_save_CXXFLAGS
 
7451
elif test $ac_cv_prog_cxx_g = yes; then
 
7452
  if test "$GXX" = yes; then
 
7453
    CXXFLAGS="-g -O2"
 
7454
  else
 
7455
    CXXFLAGS="-g"
 
7456
  fi
 
7457
else
 
7458
  if test "$GXX" = yes; then
 
7459
    CXXFLAGS="-O2"
 
7460
  else
 
7461
    CXXFLAGS=
 
7462
  fi
 
7463
fi
 
7464
ac_ext=c
 
7465
ac_cpp='$CPP $CPPFLAGS'
 
7466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7469
 
 
7470
depcc="$CXX"  am_compiler_list=
 
7471
 
 
7472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
7473
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
7474
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
7475
  $as_echo_n "(cached) " >&6
 
7476
else
 
7477
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7478
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7479
  # making bogus files that we don't know about and never remove.  For
 
7480
  # instance it was reported that on HP-UX the gcc test will end up
 
7481
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7482
  # in D'.
 
7483
  mkdir conftest.dir
 
7484
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7485
  # using a relative directory.
 
7486
  cp "$am_depcomp" conftest.dir
 
7487
  cd conftest.dir
 
7488
  # We will build objects and dependencies in a subdirectory because
 
7489
  # it helps to detect inapplicable dependency modes.  For instance
 
7490
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7491
  # side effect of compilation, but ICC will put the dependencies in
 
7492
  # the current directory while Tru64 will put them in the object
 
7493
  # directory.
 
7494
  mkdir sub
 
7495
 
 
7496
  am_cv_CXX_dependencies_compiler_type=none
 
7497
  if test "$am_compiler_list" = ""; then
 
7498
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7499
  fi
 
7500
  am__universal=false
 
7501
  case " $depcc " in #(
 
7502
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
7503
     esac
 
7504
 
 
7505
  for depmode in $am_compiler_list; do
 
7506
    # Setup a source with many dependencies, because some compilers
 
7507
    # like to wrap large dependency lists on column 80 (with \), and
 
7508
    # we should not choose a depcomp mode which is confused by this.
 
7509
    #
 
7510
    # We need to recreate these files for each test, as the compiler may
 
7511
    # overwrite some of them when testing with obscure command lines.
 
7512
    # This happens at least with the AIX C compiler.
 
7513
    : > sub/conftest.c
 
7514
    for i in 1 2 3 4 5 6; do
 
7515
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7516
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7517
      # Solaris 8's {/usr,}/bin/sh.
 
7518
      touch sub/conftst$i.h
 
7519
    done
 
7520
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7521
 
 
7522
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7523
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7524
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
7525
    # versions had trouble with output in subdirs
 
7526
    am__obj=sub/conftest.${OBJEXT-o}
 
7527
    am__minus_obj="-o $am__obj"
 
7528
    case $depmode in
 
7529
    gcc)
 
7530
      # This depmode causes a compiler race in universal mode.
 
7531
      test "$am__universal" = false || continue
 
7532
      ;;
 
7533
    nosideeffect)
 
7534
      # after this tag, mechanisms are not by side-effect, so they'll
 
7535
      # only be used when explicitly requested
 
7536
      if test "x$enable_dependency_tracking" = xyes; then
 
7537
        continue
 
7538
      else
 
7539
        break
 
7540
      fi
 
7541
      ;;
 
7542
    msvisualcpp | msvcmsys)
 
7543
      # This compiler won't grok `-c -o', but also, the minuso test has
 
7544
      # not run yet.  These depmodes are late enough in the game, and
 
7545
      # so weak that their functioning should not be impacted.
 
7546
      am__obj=conftest.${OBJEXT-o}
 
7547
      am__minus_obj=
 
7548
      ;;
 
7549
    none) break ;;
 
7550
    esac
 
7551
    if depmode=$depmode \
 
7552
       source=sub/conftest.c object=$am__obj \
 
7553
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7554
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7555
         >/dev/null 2>conftest.err &&
 
7556
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7557
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7558
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7559
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7560
      # icc doesn't choke on unknown options, it will just issue warnings
 
7561
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7562
      # that says an option was ignored or not supported.
 
7563
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7564
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7565
      # The diagnosis changed in icc 8.0:
 
7566
      #   icc: Command line remark: option '-MP' not supported
 
7567
      if (grep 'ignoring option' conftest.err ||
 
7568
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7569
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7570
        break
 
7571
      fi
 
7572
    fi
 
7573
  done
 
7574
 
 
7575
  cd ..
 
7576
  rm -rf conftest.dir
 
7577
else
 
7578
  am_cv_CXX_dependencies_compiler_type=none
 
7579
fi
 
7580
 
 
7581
fi
 
7582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7583
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7584
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7585
 
 
7586
 if
 
7587
  test "x$enable_dependency_tracking" != xno \
 
7588
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7589
  am__fastdepCXX_TRUE=
 
7590
  am__fastdepCXX_FALSE='#'
 
7591
else
 
7592
  am__fastdepCXX_TRUE='#'
 
7593
  am__fastdepCXX_FALSE=
 
7594
fi
 
7595
 
 
7596
 
 
7597
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7598
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7599
    (test "X$CXX" != "Xg++"))) ; then
 
7600
  ac_ext=cpp
 
7601
ac_cpp='$CXXCPP $CPPFLAGS'
 
7602
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7603
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7604
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
7606
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
7607
if test -z "$CXXCPP"; then
 
7608
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
7609
  $as_echo_n "(cached) " >&6
 
7610
else
 
7611
      # Double quotes because CXXCPP needs to be expanded
 
7612
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7613
    do
 
7614
      ac_preproc_ok=false
 
7615
for ac_cxx_preproc_warn_flag in '' yes
 
7616
do
 
7617
  # Use a header file that comes with gcc, so configuring glibc
 
7618
  # with a fresh cross-compiler works.
 
7619
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7620
  # <limits.h> exists even on freestanding compilers.
 
7621
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7622
  # not just through cpp. "Syntax error" is here to catch this case.
 
7623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7624
/* end confdefs.h.  */
 
7625
#ifdef __STDC__
 
7626
# include <limits.h>
 
7627
#else
 
7628
# include <assert.h>
 
7629
#endif
 
7630
                     Syntax error
 
7631
_ACEOF
 
7632
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7633
 
 
7634
else
 
7635
  # Broken: fails on valid input.
 
7636
continue
 
7637
fi
 
7638
rm -f conftest.err conftest.$ac_ext
 
7639
 
 
7640
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7641
  # can be detected and how.
 
7642
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7643
/* end confdefs.h.  */
 
7644
#include <ac_nonexistent.h>
 
7645
_ACEOF
 
7646
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7647
  # Broken: success on invalid input.
 
7648
continue
 
7649
else
 
7650
  # Passes both tests.
 
7651
ac_preproc_ok=:
 
7652
break
 
7653
fi
 
7654
rm -f conftest.err conftest.$ac_ext
 
7655
 
 
7656
done
 
7657
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7658
rm -f conftest.err conftest.$ac_ext
 
7659
if $ac_preproc_ok; then :
 
7660
  break
 
7661
fi
 
7662
 
 
7663
    done
 
7664
    ac_cv_prog_CXXCPP=$CXXCPP
 
7665
 
 
7666
fi
 
7667
  CXXCPP=$ac_cv_prog_CXXCPP
 
7668
else
 
7669
  ac_cv_prog_CXXCPP=$CXXCPP
 
7670
fi
 
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
7672
$as_echo "$CXXCPP" >&6; }
 
7673
ac_preproc_ok=false
 
7674
for ac_cxx_preproc_warn_flag in '' yes
 
7675
do
 
7676
  # Use a header file that comes with gcc, so configuring glibc
 
7677
  # with a fresh cross-compiler works.
 
7678
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7679
  # <limits.h> exists even on freestanding compilers.
 
7680
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7681
  # not just through cpp. "Syntax error" is here to catch this case.
 
7682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7683
/* end confdefs.h.  */
 
7684
#ifdef __STDC__
 
7685
# include <limits.h>
 
7686
#else
 
7687
# include <assert.h>
 
7688
#endif
 
7689
                     Syntax error
 
7690
_ACEOF
 
7691
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7692
 
 
7693
else
 
7694
  # Broken: fails on valid input.
 
7695
continue
 
7696
fi
 
7697
rm -f conftest.err conftest.$ac_ext
 
7698
 
 
7699
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7700
  # can be detected and how.
 
7701
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7702
/* end confdefs.h.  */
 
7703
#include <ac_nonexistent.h>
 
7704
_ACEOF
 
7705
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7706
  # Broken: success on invalid input.
 
7707
continue
 
7708
else
 
7709
  # Passes both tests.
 
7710
ac_preproc_ok=:
 
7711
break
 
7712
fi
 
7713
rm -f conftest.err conftest.$ac_ext
 
7714
 
 
7715
done
 
7716
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7717
rm -f conftest.err conftest.$ac_ext
 
7718
if $ac_preproc_ok; then :
 
7719
 
 
7720
else
 
7721
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7722
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7723
_lt_caught_CXX_error=yes; }
 
7724
fi
 
7725
 
 
7726
ac_ext=c
 
7727
ac_cpp='$CPP $CPPFLAGS'
 
7728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7731
 
 
7732
else
 
7733
  _lt_caught_CXX_error=yes
 
7734
fi
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
 
 
7740
# Set options
 
7741
 
 
7742
 
 
7743
 
 
7744
        enable_dlopen=no
 
7745
 
 
7746
 
 
7747
  enable_win32_dll=no
 
7748
 
 
7749
 
 
7750
            # Check whether --enable-shared was given.
 
7751
if test "${enable_shared+set}" = set; then :
 
7752
  enableval=$enable_shared; p=${PACKAGE-default}
 
7753
    case $enableval in
 
7754
    yes) enable_shared=yes ;;
 
7755
    no) enable_shared=no ;;
 
7756
    *)
 
7757
      enable_shared=no
 
7758
      # Look at the argument we got.  We use all the common list separators.
 
7759
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7760
      for pkg in $enableval; do
 
7761
        IFS="$lt_save_ifs"
 
7762
        if test "X$pkg" = "X$p"; then
 
7763
          enable_shared=yes
 
7764
        fi
 
7765
      done
 
7766
      IFS="$lt_save_ifs"
 
7767
      ;;
 
7768
    esac
 
7769
else
 
7770
  enable_shared=yes
 
7771
fi
 
7772
 
 
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
 
 
7781
 
 
7782
 
 
7783
# Check whether --with-pic was given.
 
7784
if test "${with_pic+set}" = set; then :
 
7785
  withval=$with_pic; pic_mode="$withval"
 
7786
else
 
7787
  pic_mode=default
 
7788
fi
 
7789
 
 
7790
 
 
7791
test -z "$pic_mode" && pic_mode=default
 
7792
 
 
7793
 
 
7794
 
 
7795
 
 
7796
 
 
7797
 
 
7798
 
 
7799
  # Check whether --enable-fast-install was given.
 
7800
if test "${enable_fast_install+set}" = set; then :
 
7801
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7802
    case $enableval in
 
7803
    yes) enable_fast_install=yes ;;
 
7804
    no) enable_fast_install=no ;;
 
7805
    *)
 
7806
      enable_fast_install=no
 
7807
      # Look at the argument we got.  We use all the common list separators.
 
7808
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7809
      for pkg in $enableval; do
 
7810
        IFS="$lt_save_ifs"
 
7811
        if test "X$pkg" = "X$p"; then
 
7812
          enable_fast_install=yes
 
7813
        fi
 
7814
      done
 
7815
      IFS="$lt_save_ifs"
 
7816
      ;;
 
7817
    esac
 
7818
else
 
7819
  enable_fast_install=yes
 
7820
fi
 
7821
 
 
7822
 
 
7823
 
 
7824
 
 
7825
 
 
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
# This can be used to rebuild libtool when needed
 
7833
LIBTOOL_DEPS="$ltmain"
 
7834
 
 
7835
# Always use our own libtool.
 
7836
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
 
 
7860
 
 
7861
 
 
7862
test -z "$LN_S" && LN_S="ln -s"
 
7863
 
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
if test -n "${ZSH_VERSION+set}" ; then
 
7878
   setopt NO_GLOB_SUBST
 
7879
fi
 
7880
 
 
7881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7882
$as_echo_n "checking for objdir... " >&6; }
 
7883
if test "${lt_cv_objdir+set}" = set; then :
 
7884
  $as_echo_n "(cached) " >&6
 
7885
else
 
7886
  rm -f .libs 2>/dev/null
 
7887
mkdir .libs 2>/dev/null
 
7888
if test -d .libs; then
 
7889
  lt_cv_objdir=.libs
 
7890
else
 
7891
  # MS-DOS does not allow filenames that begin with a dot.
 
7892
  lt_cv_objdir=_libs
 
7893
fi
 
7894
rmdir .libs 2>/dev/null
 
7895
fi
 
7896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7897
$as_echo "$lt_cv_objdir" >&6; }
 
7898
objdir=$lt_cv_objdir
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
cat >>confdefs.h <<_ACEOF
 
7905
#define LT_OBJDIR "$lt_cv_objdir/"
 
7906
_ACEOF
 
7907
 
 
7908
 
 
7909
 
 
7910
 
 
7911
 
 
7912
 
 
7913
 
 
7914
 
 
7915
 
 
7916
 
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
case $host_os in
 
7925
aix3*)
 
7926
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7927
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7928
  # vanish in a puff of smoke.
 
7929
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7930
    COLLECT_NAMES=
 
7931
    export COLLECT_NAMES
 
7932
  fi
 
7933
  ;;
 
7934
esac
 
7935
 
 
7936
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7937
# metacharacters that are still active within double-quoted strings.
 
7938
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7939
 
 
7940
# Same as above, but do not quote variable references.
 
7941
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7942
 
 
7943
# Sed substitution to delay expansion of an escaped shell variable in a
 
7944
# double_quote_subst'ed string.
 
7945
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7946
 
 
7947
# Sed substitution to delay expansion of an escaped single quote.
 
7948
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7949
 
 
7950
# Sed substitution to avoid accidental globbing in evaled expressions
 
7951
no_glob_subst='s/\*/\\\*/g'
 
7952
 
 
7953
# Global variables:
 
7954
ofile=libtool
 
7955
can_build_shared=yes
 
7956
 
 
7957
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7958
# which needs '.lib').
 
7959
libext=a
 
7960
 
 
7961
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7962
 
 
7963
old_CC="$CC"
 
7964
old_CFLAGS="$CFLAGS"
 
7965
 
 
7966
# Set sane defaults for various variables
 
7967
test -z "$CC" && CC=cc
 
7968
test -z "$LTCC" && LTCC=$CC
 
7969
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7970
test -z "$LD" && LD=ld
 
7971
test -z "$ac_objext" && ac_objext=o
 
7972
 
 
7973
for cc_temp in $compiler""; do
 
7974
  case $cc_temp in
 
7975
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7976
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7977
    \-*) ;;
 
7978
    *) break;;
 
7979
  esac
 
7980
done
 
7981
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7982
 
 
7983
 
 
7984
# Only perform the check for file, if the check method requires it
 
7985
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7986
case $deplibs_check_method in
 
7987
file_magic*)
 
7988
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7989
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7990
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7991
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7992
  $as_echo_n "(cached) " >&6
 
7993
else
 
7994
  case $MAGIC_CMD in
 
7995
[\\/*] |  ?:[\\/]*)
 
7996
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7997
  ;;
 
7998
*)
 
7999
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8000
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8001
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8002
  for ac_dir in $ac_dummy; do
 
8003
    IFS="$lt_save_ifs"
 
8004
    test -z "$ac_dir" && ac_dir=.
 
8005
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8006
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8007
      if test -n "$file_magic_test_file"; then
 
8008
        case $deplibs_check_method in
 
8009
        "file_magic "*)
 
8010
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8011
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8012
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8013
            $EGREP "$file_magic_regex" > /dev/null; then
 
8014
            :
 
8015
          else
 
8016
            cat <<_LT_EOF 1>&2
 
8017
 
 
8018
*** Warning: the command libtool uses to detect shared libraries,
 
8019
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8020
*** The result is that libtool may fail to recognize shared libraries
 
8021
*** as such.  This will affect the creation of libtool libraries that
 
8022
*** depend on shared libraries, but programs linked with such libtool
 
8023
*** libraries will work regardless of this problem.  Nevertheless, you
 
8024
*** may want to report the problem to your system manager and/or to
 
8025
*** bug-libtool@gnu.org
 
8026
 
 
8027
_LT_EOF
 
8028
          fi ;;
 
8029
        esac
 
8030
      fi
 
8031
      break
 
8032
    fi
 
8033
  done
 
8034
  IFS="$lt_save_ifs"
 
8035
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8036
  ;;
 
8037
esac
 
8038
fi
 
8039
 
 
8040
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8041
if test -n "$MAGIC_CMD"; then
 
8042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8043
$as_echo "$MAGIC_CMD" >&6; }
 
8044
else
 
8045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8046
$as_echo "no" >&6; }
 
8047
fi
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8054
  if test -n "$ac_tool_prefix"; then
 
8055
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8056
$as_echo_n "checking for file... " >&6; }
 
8057
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8058
  $as_echo_n "(cached) " >&6
 
8059
else
 
8060
  case $MAGIC_CMD in
 
8061
[\\/*] |  ?:[\\/]*)
 
8062
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8063
  ;;
 
8064
*)
 
8065
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8066
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8067
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8068
  for ac_dir in $ac_dummy; do
 
8069
    IFS="$lt_save_ifs"
 
8070
    test -z "$ac_dir" && ac_dir=.
 
8071
    if test -f $ac_dir/file; then
 
8072
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8073
      if test -n "$file_magic_test_file"; then
 
8074
        case $deplibs_check_method in
 
8075
        "file_magic "*)
 
8076
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8077
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8078
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8079
            $EGREP "$file_magic_regex" > /dev/null; then
 
8080
            :
 
8081
          else
 
8082
            cat <<_LT_EOF 1>&2
 
8083
 
 
8084
*** Warning: the command libtool uses to detect shared libraries,
 
8085
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8086
*** The result is that libtool may fail to recognize shared libraries
 
8087
*** as such.  This will affect the creation of libtool libraries that
 
8088
*** depend on shared libraries, but programs linked with such libtool
 
8089
*** libraries will work regardless of this problem.  Nevertheless, you
 
8090
*** may want to report the problem to your system manager and/or to
 
8091
*** bug-libtool@gnu.org
 
8092
 
 
8093
_LT_EOF
 
8094
          fi ;;
 
8095
        esac
 
8096
      fi
 
8097
      break
 
8098
    fi
 
8099
  done
 
8100
  IFS="$lt_save_ifs"
 
8101
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8102
  ;;
 
8103
esac
 
8104
fi
 
8105
 
 
8106
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8107
if test -n "$MAGIC_CMD"; then
 
8108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8109
$as_echo "$MAGIC_CMD" >&6; }
 
8110
else
 
8111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8112
$as_echo "no" >&6; }
 
8113
fi
 
8114
 
 
8115
 
 
8116
  else
 
8117
    MAGIC_CMD=:
 
8118
  fi
 
8119
fi
 
8120
 
 
8121
  fi
 
8122
  ;;
 
8123
esac
 
8124
 
 
8125
# Use C for the default configuration in the libtool script
 
8126
 
 
8127
lt_save_CC="$CC"
 
8128
ac_ext=c
 
8129
ac_cpp='$CPP $CPPFLAGS'
 
8130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8133
 
 
8134
 
 
8135
# Source file extension for C test sources.
 
8136
ac_ext=c
 
8137
 
 
8138
# Object file extension for compiled C test sources.
 
8139
objext=o
 
8140
objext=$objext
 
8141
 
 
8142
# Code to be used in simple compile tests
 
8143
lt_simple_compile_test_code="int some_variable = 0;"
 
8144
 
 
8145
# Code to be used in simple link tests
 
8146
lt_simple_link_test_code='int main(){return(0);}'
 
8147
 
 
8148
 
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
# If no C compiler was specified, use CC.
 
8155
LTCC=${LTCC-"$CC"}
 
8156
 
 
8157
# If no C compiler flags were specified, use CFLAGS.
 
8158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8159
 
 
8160
# Allow CC to be a program name with arguments.
 
8161
compiler=$CC
 
8162
 
 
8163
# Save the default compiler, since it gets overwritten when the other
 
8164
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8165
compiler_DEFAULT=$CC
 
8166
 
 
8167
# save warnings/boilerplate of simple test code
 
8168
ac_outfile=conftest.$ac_objext
 
8169
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8170
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8171
_lt_compiler_boilerplate=`cat conftest.err`
 
8172
$RM conftest*
 
8173
 
 
8174
ac_outfile=conftest.$ac_objext
 
8175
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8176
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8177
_lt_linker_boilerplate=`cat conftest.err`
 
8178
$RM -r conftest*
 
8179
 
 
8180
 
 
8181
if test -n "$compiler"; then
 
8182
 
 
8183
lt_prog_compiler_no_builtin_flag=
 
8184
 
 
8185
if test "$GCC" = yes; then
 
8186
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8187
 
 
8188
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8189
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8190
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8191
  $as_echo_n "(cached) " >&6
 
8192
else
 
8193
  lt_cv_prog_compiler_rtti_exceptions=no
 
8194
   ac_outfile=conftest.$ac_objext
 
8195
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8196
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8197
   # Insert the option either (1) after the last *FLAGS variable, or
 
8198
   # (2) before a word containing "conftest.", or (3) at the end.
 
8199
   # Note that $ac_compile itself does not contain backslashes and begins
 
8200
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8201
   # The option is referenced via a variable to avoid confusing sed.
 
8202
   lt_compile=`echo "$ac_compile" | $SED \
 
8203
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8204
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8205
   -e 's:$: $lt_compiler_flag:'`
 
8206
   (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
 
8207
   (eval "$lt_compile" 2>conftest.err)
 
8208
   ac_status=$?
 
8209
   cat conftest.err >&5
 
8210
   echo "$as_me:8210: \$? = $ac_status" >&5
 
8211
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8212
     # The compiler can only warn and ignore the option if not recognized
 
8213
     # So say no if there are warnings other than the usual output.
 
8214
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8215
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8216
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8217
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8218
     fi
 
8219
   fi
 
8220
   $RM conftest*
 
8221
 
 
8222
fi
 
8223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8224
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8225
 
 
8226
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8227
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8228
else
 
8229
    :
 
8230
fi
 
8231
 
 
8232
fi
 
8233
 
 
8234
 
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
  lt_prog_compiler_wl=
 
8240
lt_prog_compiler_pic=
 
8241
lt_prog_compiler_static=
 
8242
 
 
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8244
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8245
 
 
8246
  if test "$GCC" = yes; then
 
8247
    lt_prog_compiler_wl='-Wl,'
 
8248
    lt_prog_compiler_static='-static'
 
8249
 
 
8250
    case $host_os in
 
8251
      aix*)
 
8252
      # All AIX code is PIC.
 
8253
      if test "$host_cpu" = ia64; then
 
8254
        # AIX 5 now supports IA64 processor
 
8255
        lt_prog_compiler_static='-Bstatic'
 
8256
      fi
 
8257
      ;;
 
8258
 
 
8259
    amigaos*)
 
8260
      case $host_cpu in
 
8261
      powerpc)
 
8262
            # see comment about AmigaOS4 .so support
 
8263
            lt_prog_compiler_pic='-fPIC'
 
8264
        ;;
 
8265
      m68k)
 
8266
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8267
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8268
            # like `-m68040'.
 
8269
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8270
        ;;
 
8271
      esac
 
8272
      ;;
 
8273
 
 
8274
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8275
      # PIC is the default for these OSes.
 
8276
      ;;
 
8277
 
 
8278
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8279
      # This hack is so that the source file can tell whether it is being
 
8280
      # built for inclusion in a dll (and should export symbols for example).
 
8281
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8282
      # (--disable-auto-import) libraries
 
8283
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8284
      ;;
 
8285
 
 
8286
    darwin* | rhapsody*)
 
8287
      # PIC is the default on this platform
 
8288
      # Common symbols not allowed in MH_DYLIB files
 
8289
      lt_prog_compiler_pic='-fno-common'
 
8290
      ;;
 
8291
 
 
8292
    hpux*)
 
8293
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8294
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8295
      # sets the default TLS model and affects inlining.
 
8296
      case $host_cpu in
 
8297
      hppa*64*)
 
8298
        # +Z the default
 
8299
        ;;
 
8300
      *)
 
8301
        lt_prog_compiler_pic='-fPIC'
 
8302
        ;;
 
8303
      esac
 
8304
      ;;
 
8305
 
 
8306
    interix[3-9]*)
 
8307
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8308
      # Instead, we relocate shared libraries at runtime.
 
8309
      ;;
 
8310
 
 
8311
    msdosdjgpp*)
 
8312
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8313
      # on systems that don't support them.
 
8314
      lt_prog_compiler_can_build_shared=no
 
8315
      enable_shared=no
 
8316
      ;;
 
8317
 
 
8318
    *nto* | *qnx*)
 
8319
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8320
      # it will coredump.
 
8321
      lt_prog_compiler_pic='-fPIC -shared'
 
8322
      ;;
 
8323
 
 
8324
    sysv4*MP*)
 
8325
      if test -d /usr/nec; then
 
8326
        lt_prog_compiler_pic=-Kconform_pic
 
8327
      fi
 
8328
      ;;
 
8329
 
 
8330
    *)
 
8331
      lt_prog_compiler_pic='-fPIC'
 
8332
      ;;
 
8333
    esac
 
8334
  else
 
8335
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8336
    case $host_os in
 
8337
    aix*)
 
8338
      lt_prog_compiler_wl='-Wl,'
 
8339
      if test "$host_cpu" = ia64; then
 
8340
        # AIX 5 now supports IA64 processor
 
8341
        lt_prog_compiler_static='-Bstatic'
 
8342
      else
 
8343
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8344
      fi
 
8345
      ;;
 
8346
 
 
8347
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8348
      # This hack is so that the source file can tell whether it is being
 
8349
      # built for inclusion in a dll (and should export symbols for example).
 
8350
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8351
      ;;
 
8352
 
 
8353
    hpux9* | hpux10* | hpux11*)
 
8354
      lt_prog_compiler_wl='-Wl,'
 
8355
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8356
      # not for PA HP-UX.
 
8357
      case $host_cpu in
 
8358
      hppa*64*|ia64*)
 
8359
        # +Z the default
 
8360
        ;;
 
8361
      *)
 
8362
        lt_prog_compiler_pic='+Z'
 
8363
        ;;
 
8364
      esac
 
8365
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8366
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8367
      ;;
 
8368
 
 
8369
    irix5* | irix6* | nonstopux*)
 
8370
      lt_prog_compiler_wl='-Wl,'
 
8371
      # PIC (with -KPIC) is the default.
 
8372
      lt_prog_compiler_static='-non_shared'
 
8373
      ;;
 
8374
 
 
8375
    linux* | k*bsd*-gnu)
 
8376
      case $cc_basename in
 
8377
      # old Intel for x86_64 which still supported -KPIC.
 
8378
      ecc*)
 
8379
        lt_prog_compiler_wl='-Wl,'
 
8380
        lt_prog_compiler_pic='-KPIC'
 
8381
        lt_prog_compiler_static='-static'
 
8382
        ;;
 
8383
      # icc used to be incompatible with GCC.
 
8384
      # ICC 10 doesn't accept -KPIC any more.
 
8385
      icc* | ifort*)
 
8386
        lt_prog_compiler_wl='-Wl,'
 
8387
        lt_prog_compiler_pic='-fPIC'
 
8388
        lt_prog_compiler_static='-static'
 
8389
        ;;
 
8390
      # Lahey Fortran 8.1.
 
8391
      lf95*)
 
8392
        lt_prog_compiler_wl='-Wl,'
 
8393
        lt_prog_compiler_pic='--shared'
 
8394
        lt_prog_compiler_static='--static'
 
8395
        ;;
 
8396
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8397
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8398
        # which looks to be a dead project)
 
8399
        lt_prog_compiler_wl='-Wl,'
 
8400
        lt_prog_compiler_pic='-fpic'
 
8401
        lt_prog_compiler_static='-Bstatic'
 
8402
        ;;
 
8403
      ccc*)
 
8404
        lt_prog_compiler_wl='-Wl,'
 
8405
        # All Alpha code is PIC.
 
8406
        lt_prog_compiler_static='-non_shared'
 
8407
        ;;
 
8408
      xl*)
 
8409
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8410
        lt_prog_compiler_wl='-Wl,'
 
8411
        lt_prog_compiler_pic='-qpic'
 
8412
        lt_prog_compiler_static='-qstaticlink'
 
8413
        ;;
 
8414
      *)
 
8415
        case `$CC -V 2>&1 | sed 5q` in
 
8416
        *Sun\ C*)
 
8417
          # Sun C 5.9
 
8418
          lt_prog_compiler_pic='-KPIC'
 
8419
          lt_prog_compiler_static='-Bstatic'
 
8420
          lt_prog_compiler_wl='-Wl,'
 
8421
          ;;
 
8422
        *Sun\ F*)
 
8423
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8424
          lt_prog_compiler_pic='-KPIC'
 
8425
          lt_prog_compiler_static='-Bstatic'
 
8426
          lt_prog_compiler_wl=''
 
8427
          ;;
 
8428
        esac
 
8429
        ;;
 
8430
      esac
 
8431
      ;;
 
8432
 
 
8433
    newsos6)
 
8434
      lt_prog_compiler_pic='-KPIC'
 
8435
      lt_prog_compiler_static='-Bstatic'
 
8436
      ;;
 
8437
 
 
8438
    *nto* | *qnx*)
 
8439
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8440
      # it will coredump.
 
8441
      lt_prog_compiler_pic='-fPIC -shared'
 
8442
      ;;
 
8443
 
 
8444
    osf3* | osf4* | osf5*)
 
8445
      lt_prog_compiler_wl='-Wl,'
 
8446
      # All OSF/1 code is PIC.
 
8447
      lt_prog_compiler_static='-non_shared'
 
8448
      ;;
 
8449
 
 
8450
    rdos*)
 
8451
      lt_prog_compiler_static='-non_shared'
 
8452
      ;;
 
8453
 
 
8454
    solaris*)
 
8455
      lt_prog_compiler_pic='-KPIC'
 
8456
      lt_prog_compiler_static='-Bstatic'
 
8457
      case $cc_basename in
 
8458
      f77* | f90* | f95*)
 
8459
        lt_prog_compiler_wl='-Qoption ld ';;
 
8460
      *)
 
8461
        lt_prog_compiler_wl='-Wl,';;
 
8462
      esac
 
8463
      ;;
 
8464
 
 
8465
    sunos4*)
 
8466
      lt_prog_compiler_wl='-Qoption ld '
 
8467
      lt_prog_compiler_pic='-PIC'
 
8468
      lt_prog_compiler_static='-Bstatic'
 
8469
      ;;
 
8470
 
 
8471
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8472
      lt_prog_compiler_wl='-Wl,'
 
8473
      lt_prog_compiler_pic='-KPIC'
 
8474
      lt_prog_compiler_static='-Bstatic'
 
8475
      ;;
 
8476
 
 
8477
    sysv4*MP*)
 
8478
      if test -d /usr/nec ;then
 
8479
        lt_prog_compiler_pic='-Kconform_pic'
 
8480
        lt_prog_compiler_static='-Bstatic'
 
8481
      fi
 
8482
      ;;
 
8483
 
 
8484
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8485
      lt_prog_compiler_wl='-Wl,'
 
8486
      lt_prog_compiler_pic='-KPIC'
 
8487
      lt_prog_compiler_static='-Bstatic'
 
8488
      ;;
 
8489
 
 
8490
    unicos*)
 
8491
      lt_prog_compiler_wl='-Wl,'
 
8492
      lt_prog_compiler_can_build_shared=no
 
8493
      ;;
 
8494
 
 
8495
    uts4*)
 
8496
      lt_prog_compiler_pic='-pic'
 
8497
      lt_prog_compiler_static='-Bstatic'
 
8498
      ;;
 
8499
 
 
8500
    *)
 
8501
      lt_prog_compiler_can_build_shared=no
 
8502
      ;;
 
8503
    esac
 
8504
  fi
 
8505
 
 
8506
case $host_os in
 
8507
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8508
  *djgpp*)
 
8509
    lt_prog_compiler_pic=
 
8510
    ;;
 
8511
  *)
 
8512
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8513
    ;;
 
8514
esac
 
8515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8516
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8517
 
 
8518
 
 
8519
 
 
8520
 
 
8521
 
 
8522
 
 
8523
#
 
8524
# Check to make sure the PIC flag actually works.
 
8525
#
 
8526
if test -n "$lt_prog_compiler_pic"; then
 
8527
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8528
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8529
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8530
  $as_echo_n "(cached) " >&6
 
8531
else
 
8532
  lt_cv_prog_compiler_pic_works=no
 
8533
   ac_outfile=conftest.$ac_objext
 
8534
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8535
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8536
   # Insert the option either (1) after the last *FLAGS variable, or
 
8537
   # (2) before a word containing "conftest.", or (3) at the end.
 
8538
   # Note that $ac_compile itself does not contain backslashes and begins
 
8539
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8540
   # The option is referenced via a variable to avoid confusing sed.
 
8541
   lt_compile=`echo "$ac_compile" | $SED \
 
8542
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8543
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8544
   -e 's:$: $lt_compiler_flag:'`
 
8545
   (eval echo "\"\$as_me:8545: $lt_compile\"" >&5)
 
8546
   (eval "$lt_compile" 2>conftest.err)
 
8547
   ac_status=$?
 
8548
   cat conftest.err >&5
 
8549
   echo "$as_me:8549: \$? = $ac_status" >&5
 
8550
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8551
     # The compiler can only warn and ignore the option if not recognized
 
8552
     # So say no if there are warnings other than the usual output.
 
8553
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8554
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8555
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8556
       lt_cv_prog_compiler_pic_works=yes
 
8557
     fi
 
8558
   fi
 
8559
   $RM conftest*
 
8560
 
 
8561
fi
 
8562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8563
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8564
 
 
8565
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8566
    case $lt_prog_compiler_pic in
 
8567
     "" | " "*) ;;
 
8568
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8569
     esac
 
8570
else
 
8571
    lt_prog_compiler_pic=
 
8572
     lt_prog_compiler_can_build_shared=no
 
8573
fi
 
8574
 
 
8575
fi
 
8576
 
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
#
 
8583
# Check to make sure the static flag actually works.
 
8584
#
 
8585
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8587
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8588
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8589
  $as_echo_n "(cached) " >&6
 
8590
else
 
8591
  lt_cv_prog_compiler_static_works=no
 
8592
   save_LDFLAGS="$LDFLAGS"
 
8593
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8594
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8595
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8596
     # The linker can only warn and ignore the option if not recognized
 
8597
     # So say no if there are warnings
 
8598
     if test -s conftest.err; then
 
8599
       # Append any errors to the config.log.
 
8600
       cat conftest.err 1>&5
 
8601
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8602
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8603
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8604
         lt_cv_prog_compiler_static_works=yes
 
8605
       fi
 
8606
     else
 
8607
       lt_cv_prog_compiler_static_works=yes
 
8608
     fi
 
8609
   fi
 
8610
   $RM -r conftest*
 
8611
   LDFLAGS="$save_LDFLAGS"
 
8612
 
 
8613
fi
 
8614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8615
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8616
 
 
8617
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8618
    :
 
8619
else
 
8620
    lt_prog_compiler_static=
 
8621
fi
 
8622
 
 
8623
 
 
8624
 
 
8625
 
 
8626
 
 
8627
 
 
8628
 
 
8629
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8630
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8631
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8632
  $as_echo_n "(cached) " >&6
 
8633
else
 
8634
  lt_cv_prog_compiler_c_o=no
 
8635
   $RM -r conftest 2>/dev/null
 
8636
   mkdir conftest
 
8637
   cd conftest
 
8638
   mkdir out
 
8639
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8640
 
 
8641
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8642
   # Insert the option either (1) after the last *FLAGS variable, or
 
8643
   # (2) before a word containing "conftest.", or (3) at the end.
 
8644
   # Note that $ac_compile itself does not contain backslashes and begins
 
8645
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8646
   lt_compile=`echo "$ac_compile" | $SED \
 
8647
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8648
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8649
   -e 's:$: $lt_compiler_flag:'`
 
8650
   (eval echo "\"\$as_me:8650: $lt_compile\"" >&5)
 
8651
   (eval "$lt_compile" 2>out/conftest.err)
 
8652
   ac_status=$?
 
8653
   cat out/conftest.err >&5
 
8654
   echo "$as_me:8654: \$? = $ac_status" >&5
 
8655
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8656
   then
 
8657
     # The compiler can only warn and ignore the option if not recognized
 
8658
     # So say no if there are warnings
 
8659
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8660
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8661
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8662
       lt_cv_prog_compiler_c_o=yes
 
8663
     fi
 
8664
   fi
 
8665
   chmod u+w . 2>&5
 
8666
   $RM conftest*
 
8667
   # SGI C++ compiler will create directory out/ii_files/ for
 
8668
   # template instantiation
 
8669
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8670
   $RM out/* && rmdir out
 
8671
   cd ..
 
8672
   $RM -r conftest
 
8673
   $RM conftest*
 
8674
 
 
8675
fi
 
8676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8677
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8678
 
 
8679
 
 
8680
 
 
8681
 
 
8682
 
 
8683
 
 
8684
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8685
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8686
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8687
  $as_echo_n "(cached) " >&6
 
8688
else
 
8689
  lt_cv_prog_compiler_c_o=no
 
8690
   $RM -r conftest 2>/dev/null
 
8691
   mkdir conftest
 
8692
   cd conftest
 
8693
   mkdir out
 
8694
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8695
 
 
8696
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8697
   # Insert the option either (1) after the last *FLAGS variable, or
 
8698
   # (2) before a word containing "conftest.", or (3) at the end.
 
8699
   # Note that $ac_compile itself does not contain backslashes and begins
 
8700
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8701
   lt_compile=`echo "$ac_compile" | $SED \
 
8702
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8703
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8704
   -e 's:$: $lt_compiler_flag:'`
 
8705
   (eval echo "\"\$as_me:8705: $lt_compile\"" >&5)
 
8706
   (eval "$lt_compile" 2>out/conftest.err)
 
8707
   ac_status=$?
 
8708
   cat out/conftest.err >&5
 
8709
   echo "$as_me:8709: \$? = $ac_status" >&5
 
8710
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8711
   then
 
8712
     # The compiler can only warn and ignore the option if not recognized
 
8713
     # So say no if there are warnings
 
8714
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8715
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8716
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8717
       lt_cv_prog_compiler_c_o=yes
 
8718
     fi
 
8719
   fi
 
8720
   chmod u+w . 2>&5
 
8721
   $RM conftest*
 
8722
   # SGI C++ compiler will create directory out/ii_files/ for
 
8723
   # template instantiation
 
8724
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8725
   $RM out/* && rmdir out
 
8726
   cd ..
 
8727
   $RM -r conftest
 
8728
   $RM conftest*
 
8729
 
 
8730
fi
 
8731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8732
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8733
 
 
8734
 
 
8735
 
 
8736
 
 
8737
hard_links="nottested"
 
8738
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8739
  # do not overwrite the value of need_locks provided by the user
 
8740
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8741
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8742
  hard_links=yes
 
8743
  $RM conftest*
 
8744
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8745
  touch conftest.a
 
8746
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8747
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8748
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8749
$as_echo "$hard_links" >&6; }
 
8750
  if test "$hard_links" = no; then
 
8751
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8752
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8753
    need_locks=warn
 
8754
  fi
 
8755
else
 
8756
  need_locks=no
 
8757
fi
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8765
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8766
 
 
8767
  runpath_var=
 
8768
  allow_undefined_flag=
 
8769
  always_export_symbols=no
 
8770
  archive_cmds=
 
8771
  archive_expsym_cmds=
 
8772
  compiler_needs_object=no
 
8773
  enable_shared_with_static_runtimes=no
 
8774
  export_dynamic_flag_spec=
 
8775
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8776
  hardcode_automatic=no
 
8777
  hardcode_direct=no
 
8778
  hardcode_direct_absolute=no
 
8779
  hardcode_libdir_flag_spec=
 
8780
  hardcode_libdir_flag_spec_ld=
 
8781
  hardcode_libdir_separator=
 
8782
  hardcode_minus_L=no
 
8783
  hardcode_shlibpath_var=unsupported
 
8784
  inherit_rpath=no
 
8785
  link_all_deplibs=unknown
 
8786
  module_cmds=
 
8787
  module_expsym_cmds=
 
8788
  old_archive_from_new_cmds=
 
8789
  old_archive_from_expsyms_cmds=
 
8790
  thread_safe_flag_spec=
 
8791
  whole_archive_flag_spec=
 
8792
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8793
  # included in the symbol list
 
8794
  include_expsyms=
 
8795
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8796
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8797
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8798
  # as well as any symbol that contains `d'.
 
8799
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8800
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8801
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8802
  # the symbol is explicitly referenced.  Since portable code cannot
 
8803
  # rely on this symbol name, it's probably fine to never include it in
 
8804
  # preloaded symbol tables.
 
8805
  # Exclude shared library initialization/finalization symbols.
 
8806
  extract_expsyms_cmds=
 
8807
 
 
8808
  case $host_os in
 
8809
  cygwin* | mingw* | pw32* | cegcc*)
 
8810
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8811
    # When not using gcc, we currently assume that we are using
 
8812
    # Microsoft Visual C++.
 
8813
    if test "$GCC" != yes; then
 
8814
      with_gnu_ld=no
 
8815
    fi
 
8816
    ;;
 
8817
  interix*)
 
8818
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8819
    with_gnu_ld=yes
 
8820
    ;;
 
8821
  openbsd*)
 
8822
    with_gnu_ld=no
 
8823
    ;;
 
8824
  linux* | k*bsd*-gnu)
 
8825
    link_all_deplibs=no
 
8826
    ;;
 
8827
  esac
 
8828
 
 
8829
  ld_shlibs=yes
 
8830
  if test "$with_gnu_ld" = yes; then
 
8831
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8832
    wlarc='${wl}'
 
8833
 
 
8834
    # Set some defaults for GNU ld with shared library support. These
 
8835
    # are reset later if shared libraries are not supported. Putting them
 
8836
    # here allows them to be overridden if necessary.
 
8837
    runpath_var=LD_RUN_PATH
 
8838
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8839
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8840
    # ancient GNU ld didn't support --whole-archive et. al.
 
8841
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8842
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8843
    else
 
8844
      whole_archive_flag_spec=
 
8845
    fi
 
8846
    supports_anon_versioning=no
 
8847
    case `$LD -v 2>&1` in
 
8848
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8849
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8850
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8851
      *\ 2.11.*) ;; # other 2.11 versions
 
8852
      *) supports_anon_versioning=yes ;;
 
8853
    esac
 
8854
 
 
8855
    # See if GNU ld supports shared libraries.
 
8856
    case $host_os in
 
8857
    aix[3-9]*)
 
8858
      # On AIX/PPC, the GNU linker is very broken
 
8859
      if test "$host_cpu" != ia64; then
 
8860
        ld_shlibs=no
 
8861
        cat <<_LT_EOF 1>&2
 
8862
 
 
8863
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8864
*** to be unable to reliably create shared libraries on AIX.
 
8865
*** Therefore, libtool is disabling shared libraries support.  If you
 
8866
*** really care for shared libraries, you may want to modify your PATH
 
8867
*** so that a non-GNU linker is found, and then restart.
 
8868
 
 
8869
_LT_EOF
 
8870
      fi
 
8871
      ;;
 
8872
 
 
8873
    amigaos*)
 
8874
      case $host_cpu in
 
8875
      powerpc)
 
8876
            # see comment about AmigaOS4 .so support
 
8877
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8878
            archive_expsym_cmds=''
 
8879
        ;;
 
8880
      m68k)
 
8881
            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)'
 
8882
            hardcode_libdir_flag_spec='-L$libdir'
 
8883
            hardcode_minus_L=yes
 
8884
        ;;
 
8885
      esac
 
8886
      ;;
 
8887
 
 
8888
    beos*)
 
8889
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8890
        allow_undefined_flag=unsupported
 
8891
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8892
        # support --undefined.  This deserves some investigation.  FIXME
 
8893
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8894
      else
 
8895
        ld_shlibs=no
 
8896
      fi
 
8897
      ;;
 
8898
 
 
8899
    cygwin* | mingw* | pw32* | cegcc*)
 
8900
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8901
      # as there is no search path for DLLs.
 
8902
      hardcode_libdir_flag_spec='-L$libdir'
 
8903
      allow_undefined_flag=unsupported
 
8904
      always_export_symbols=no
 
8905
      enable_shared_with_static_runtimes=yes
 
8906
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8907
 
 
8908
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8909
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8910
        # If the export-symbols file already is a .def file (1st line
 
8911
        # is EXPORTS), use it as is; otherwise, prepend...
 
8912
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8913
          cp $export_symbols $output_objdir/$soname.def;
 
8914
        else
 
8915
          echo EXPORTS > $output_objdir/$soname.def;
 
8916
          cat $export_symbols >> $output_objdir/$soname.def;
 
8917
        fi~
 
8918
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8919
      else
 
8920
        ld_shlibs=no
 
8921
      fi
 
8922
      ;;
 
8923
 
 
8924
    interix[3-9]*)
 
8925
      hardcode_direct=no
 
8926
      hardcode_shlibpath_var=no
 
8927
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8928
      export_dynamic_flag_spec='${wl}-E'
 
8929
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8930
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8931
      # default) and relocated if they conflict, which is a slow very memory
 
8932
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8933
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8934
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8935
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8936
      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'
 
8937
      ;;
 
8938
 
 
8939
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8940
      tmp_diet=no
 
8941
      if test "$host_os" = linux-dietlibc; then
 
8942
        case $cc_basename in
 
8943
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8944
        esac
 
8945
      fi
 
8946
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8947
         && test "$tmp_diet" = no
 
8948
      then
 
8949
        tmp_addflag=
 
8950
        tmp_sharedflag='-shared'
 
8951
        case $cc_basename,$host_cpu in
 
8952
        pgcc*)                          # Portland Group C compiler
 
8953
          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'
 
8954
          tmp_addflag=' $pic_flag'
 
8955
          ;;
 
8956
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8957
          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'
 
8958
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8959
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8960
          tmp_addflag=' -i_dynamic' ;;
 
8961
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8962
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8963
        ifc* | ifort*)                  # Intel Fortran compiler
 
8964
          tmp_addflag=' -nofor_main' ;;
 
8965
        lf95*)                          # Lahey Fortran 8.1
 
8966
          whole_archive_flag_spec=
 
8967
          tmp_sharedflag='--shared' ;;
 
8968
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8969
          tmp_sharedflag='-qmkshrobj'
 
8970
          tmp_addflag= ;;
 
8971
        esac
 
8972
        case `$CC -V 2>&1 | sed 5q` in
 
8973
        *Sun\ C*)                       # Sun C 5.9
 
8974
          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'
 
8975
          compiler_needs_object=yes
 
8976
          tmp_sharedflag='-G' ;;
 
8977
        *Sun\ F*)                       # Sun Fortran 8.3
 
8978
          tmp_sharedflag='-G' ;;
 
8979
        esac
 
8980
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8981
 
 
8982
        if test "x$supports_anon_versioning" = xyes; then
 
8983
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8984
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8985
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8986
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8987
        fi
 
8988
 
 
8989
        case $cc_basename in
 
8990
        xlf*)
 
8991
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8992
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8993
          hardcode_libdir_flag_spec=
 
8994
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8995
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8996
          if test "x$supports_anon_versioning" = xyes; then
 
8997
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8998
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8999
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9000
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9001
          fi
 
9002
          ;;
 
9003
        esac
 
9004
      else
 
9005
        ld_shlibs=no
 
9006
      fi
 
9007
      ;;
 
9008
 
 
9009
    netbsd* | netbsdelf*-gnu)
 
9010
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9011
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9012
        wlarc=
 
9013
      else
 
9014
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9015
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9016
      fi
 
9017
      ;;
 
9018
 
 
9019
    solaris*)
 
9020
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9021
        ld_shlibs=no
 
9022
        cat <<_LT_EOF 1>&2
 
9023
 
 
9024
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9025
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9026
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9027
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9028
*** your PATH or compiler configuration so that the native linker is
 
9029
*** used, and then restart.
 
9030
 
 
9031
_LT_EOF
 
9032
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9033
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9034
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9035
      else
 
9036
        ld_shlibs=no
 
9037
      fi
 
9038
      ;;
 
9039
 
 
9040
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9041
      case `$LD -v 2>&1` in
 
9042
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9043
        ld_shlibs=no
 
9044
        cat <<_LT_EOF 1>&2
 
9045
 
 
9046
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9047
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9048
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9049
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9050
*** your PATH or compiler configuration so that the native linker is
 
9051
*** used, and then restart.
 
9052
 
 
9053
_LT_EOF
 
9054
        ;;
 
9055
        *)
 
9056
          # For security reasons, it is highly recommended that you always
 
9057
          # use absolute paths for naming shared libraries, and exclude the
 
9058
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9059
          # requires that you compile everything twice, which is a pain.
 
9060
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9061
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9062
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9063
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9064
          else
 
9065
            ld_shlibs=no
 
9066
          fi
 
9067
        ;;
 
9068
      esac
 
9069
      ;;
 
9070
 
 
9071
    sunos4*)
 
9072
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9073
      wlarc=
 
9074
      hardcode_direct=yes
 
9075
      hardcode_shlibpath_var=no
 
9076
      ;;
 
9077
 
 
9078
    *)
 
9079
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9080
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9081
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9082
      else
 
9083
        ld_shlibs=no
 
9084
      fi
 
9085
      ;;
 
9086
    esac
 
9087
 
 
9088
    if test "$ld_shlibs" = no; then
 
9089
      runpath_var=
 
9090
      hardcode_libdir_flag_spec=
 
9091
      export_dynamic_flag_spec=
 
9092
      whole_archive_flag_spec=
 
9093
    fi
 
9094
  else
 
9095
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9096
    case $host_os in
 
9097
    aix3*)
 
9098
      allow_undefined_flag=unsupported
 
9099
      always_export_symbols=yes
 
9100
      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'
 
9101
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9102
      # are no directories specified by -L.
 
9103
      hardcode_minus_L=yes
 
9104
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9105
        # Neither direct hardcoding nor static linking is supported with a
 
9106
        # broken collect2.
 
9107
        hardcode_direct=unsupported
 
9108
      fi
 
9109
      ;;
 
9110
 
 
9111
    aix[4-9]*)
 
9112
      if test "$host_cpu" = ia64; then
 
9113
        # On IA64, the linker does run time linking by default, so we don't
 
9114
        # have to do anything special.
 
9115
        aix_use_runtimelinking=no
 
9116
        exp_sym_flag='-Bexport'
 
9117
        no_entry_flag=""
 
9118
      else
 
9119
        # If we're using GNU nm, then we don't want the "-C" option.
 
9120
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9121
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9122
          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'
 
9123
        else
 
9124
          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'
 
9125
        fi
 
9126
        aix_use_runtimelinking=no
 
9127
 
 
9128
        # Test if we are trying to use run time linking or normal
 
9129
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9130
        # need to do runtime linking.
 
9131
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9132
          for ld_flag in $LDFLAGS; do
 
9133
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9134
            aix_use_runtimelinking=yes
 
9135
            break
 
9136
          fi
 
9137
          done
 
9138
          ;;
 
9139
        esac
 
9140
 
 
9141
        exp_sym_flag='-bexport'
 
9142
        no_entry_flag='-bnoentry'
 
9143
      fi
 
9144
 
 
9145
      # When large executables or shared objects are built, AIX ld can
 
9146
      # have problems creating the table of contents.  If linking a library
 
9147
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9148
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9149
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9150
 
 
9151
      archive_cmds=''
 
9152
      hardcode_direct=yes
 
9153
      hardcode_direct_absolute=yes
 
9154
      hardcode_libdir_separator=':'
 
9155
      link_all_deplibs=yes
 
9156
      file_list_spec='${wl}-f,'
 
9157
 
 
9158
      if test "$GCC" = yes; then
 
9159
        case $host_os in aix4.[012]|aix4.[012].*)
 
9160
        # We only want to do this on AIX 4.2 and lower, the check
 
9161
        # below for broken collect2 doesn't work under 4.3+
 
9162
          collect2name=`${CC} -print-prog-name=collect2`
 
9163
          if test -f "$collect2name" &&
 
9164
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9165
          then
 
9166
          # We have reworked collect2
 
9167
          :
 
9168
          else
 
9169
          # We have old collect2
 
9170
          hardcode_direct=unsupported
 
9171
          # It fails to find uninstalled libraries when the uninstalled
 
9172
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9173
          # to unsupported forces relinking
 
9174
          hardcode_minus_L=yes
 
9175
          hardcode_libdir_flag_spec='-L$libdir'
 
9176
          hardcode_libdir_separator=
 
9177
          fi
 
9178
          ;;
 
9179
        esac
 
9180
        shared_flag='-shared'
 
9181
        if test "$aix_use_runtimelinking" = yes; then
 
9182
          shared_flag="$shared_flag "'${wl}-G'
 
9183
        fi
 
9184
        link_all_deplibs=no
 
9185
      else
 
9186
        # not using gcc
 
9187
        if test "$host_cpu" = ia64; then
 
9188
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9189
        # chokes on -Wl,-G. The following line is correct:
 
9190
          shared_flag='-G'
 
9191
        else
 
9192
          if test "$aix_use_runtimelinking" = yes; then
 
9193
            shared_flag='${wl}-G'
 
9194
          else
 
9195
            shared_flag='${wl}-bM:SRE'
 
9196
          fi
 
9197
        fi
 
9198
      fi
 
9199
 
 
9200
      export_dynamic_flag_spec='${wl}-bexpall'
 
9201
      # It seems that -bexpall does not export symbols beginning with
 
9202
      # underscore (_), so it is better to generate a list of symbols to export.
 
9203
      always_export_symbols=yes
 
9204
      if test "$aix_use_runtimelinking" = yes; then
 
9205
        # Warning - without using the other runtime loading flags (-brtl),
 
9206
        # -berok will link without error, but may produce a broken library.
 
9207
        allow_undefined_flag='-berok'
 
9208
        # Determine the default libpath from the value encoded in an
 
9209
        # empty executable.
 
9210
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9211
/* end confdefs.h.  */
 
9212
 
 
9213
int
 
9214
main ()
 
9215
{
 
9216
 
 
9217
  ;
 
9218
  return 0;
 
9219
}
 
9220
_ACEOF
 
9221
if ac_fn_c_try_link "$LINENO"; then :
 
9222
 
 
9223
lt_aix_libpath_sed='
 
9224
    /Import File Strings/,/^$/ {
 
9225
        /^0/ {
 
9226
            s/^0  *\(.*\)$/\1/
 
9227
            p
 
9228
        }
 
9229
    }'
 
9230
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9231
# Check for a 64-bit object if we didn't find anything.
 
9232
if test -z "$aix_libpath"; then
 
9233
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9234
fi
 
9235
fi
 
9236
rm -f core conftest.err conftest.$ac_objext \
 
9237
    conftest$ac_exeext conftest.$ac_ext
 
9238
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9239
 
 
9240
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9241
        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"
 
9242
      else
 
9243
        if test "$host_cpu" = ia64; then
 
9244
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9245
          allow_undefined_flag="-z nodefs"
 
9246
          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"
 
9247
        else
 
9248
         # Determine the default libpath from the value encoded in an
 
9249
         # empty executable.
 
9250
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9251
/* end confdefs.h.  */
 
9252
 
 
9253
int
 
9254
main ()
 
9255
{
 
9256
 
 
9257
  ;
 
9258
  return 0;
 
9259
}
 
9260
_ACEOF
 
9261
if ac_fn_c_try_link "$LINENO"; then :
 
9262
 
 
9263
lt_aix_libpath_sed='
 
9264
    /Import File Strings/,/^$/ {
 
9265
        /^0/ {
 
9266
            s/^0  *\(.*\)$/\1/
 
9267
            p
 
9268
        }
 
9269
    }'
 
9270
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9271
# Check for a 64-bit object if we didn't find anything.
 
9272
if test -z "$aix_libpath"; then
 
9273
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9274
fi
 
9275
fi
 
9276
rm -f core conftest.err conftest.$ac_objext \
 
9277
    conftest$ac_exeext conftest.$ac_ext
 
9278
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9279
 
 
9280
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9281
          # Warning - without using the other run time loading flags,
 
9282
          # -berok will link without error, but may produce a broken library.
 
9283
          no_undefined_flag=' ${wl}-bernotok'
 
9284
          allow_undefined_flag=' ${wl}-berok'
 
9285
          # Exported symbols can be pulled into shared objects from archives
 
9286
          whole_archive_flag_spec='$convenience'
 
9287
          archive_cmds_need_lc=yes
 
9288
          # This is similar to how AIX traditionally builds its shared libraries.
 
9289
          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'
 
9290
        fi
 
9291
      fi
 
9292
      ;;
 
9293
 
 
9294
    amigaos*)
 
9295
      case $host_cpu in
 
9296
      powerpc)
 
9297
            # see comment about AmigaOS4 .so support
 
9298
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9299
            archive_expsym_cmds=''
 
9300
        ;;
 
9301
      m68k)
 
9302
            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)'
 
9303
            hardcode_libdir_flag_spec='-L$libdir'
 
9304
            hardcode_minus_L=yes
 
9305
        ;;
 
9306
      esac
 
9307
      ;;
 
9308
 
 
9309
    bsdi[45]*)
 
9310
      export_dynamic_flag_spec=-rdynamic
 
9311
      ;;
 
9312
 
 
9313
    cygwin* | mingw* | pw32* | cegcc*)
 
9314
      # When not using gcc, we currently assume that we are using
 
9315
      # Microsoft Visual C++.
 
9316
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9317
      # no search path for DLLs.
 
9318
      hardcode_libdir_flag_spec=' '
 
9319
      allow_undefined_flag=unsupported
 
9320
      # Tell ltmain to make .lib files, not .a files.
 
9321
      libext=lib
 
9322
      # Tell ltmain to make .dll files, not .so files.
 
9323
      shrext_cmds=".dll"
 
9324
      # FIXME: Setting linknames here is a bad hack.
 
9325
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9326
      # The linker will automatically build a .lib file if we build a DLL.
 
9327
      old_archive_from_new_cmds='true'
 
9328
      # FIXME: Should let the user specify the lib program.
 
9329
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9330
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9331
      enable_shared_with_static_runtimes=yes
 
9332
      ;;
 
9333
 
 
9334
    darwin* | rhapsody*)
 
9335
 
 
9336
 
 
9337
  archive_cmds_need_lc=no
 
9338
  hardcode_direct=no
 
9339
  hardcode_automatic=yes
 
9340
  hardcode_shlibpath_var=unsupported
 
9341
  whole_archive_flag_spec=''
 
9342
  link_all_deplibs=yes
 
9343
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9344
  case $cc_basename in
 
9345
     ifort*) _lt_dar_can_shared=yes ;;
 
9346
     *) _lt_dar_can_shared=$GCC ;;
 
9347
  esac
 
9348
  if test "$_lt_dar_can_shared" = "yes"; then
 
9349
    output_verbose_link_cmd=echo
 
9350
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9351
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9352
    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}"
 
9353
    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}"
 
9354
 
 
9355
  else
 
9356
  ld_shlibs=no
 
9357
  fi
 
9358
 
 
9359
      ;;
 
9360
 
 
9361
    dgux*)
 
9362
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9363
      hardcode_libdir_flag_spec='-L$libdir'
 
9364
      hardcode_shlibpath_var=no
 
9365
      ;;
 
9366
 
 
9367
    freebsd1*)
 
9368
      ld_shlibs=no
 
9369
      ;;
 
9370
 
 
9371
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9372
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9373
    # does not break anything, and helps significantly (at the cost of a little
 
9374
    # extra space).
 
9375
    freebsd2.2*)
 
9376
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9377
      hardcode_libdir_flag_spec='-R$libdir'
 
9378
      hardcode_direct=yes
 
9379
      hardcode_shlibpath_var=no
 
9380
      ;;
 
9381
 
 
9382
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9383
    freebsd2*)
 
9384
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9385
      hardcode_direct=yes
 
9386
      hardcode_minus_L=yes
 
9387
      hardcode_shlibpath_var=no
 
9388
      ;;
 
9389
 
 
9390
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9391
    freebsd* | dragonfly*)
 
9392
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9393
      hardcode_libdir_flag_spec='-R$libdir'
 
9394
      hardcode_direct=yes
 
9395
      hardcode_shlibpath_var=no
 
9396
      ;;
 
9397
 
 
9398
    hpux9*)
 
9399
      if test "$GCC" = yes; then
 
9400
        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'
 
9401
      else
 
9402
        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'
 
9403
      fi
 
9404
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9405
      hardcode_libdir_separator=:
 
9406
      hardcode_direct=yes
 
9407
 
 
9408
      # hardcode_minus_L: Not really in the search PATH,
 
9409
      # but as the default location of the library.
 
9410
      hardcode_minus_L=yes
 
9411
      export_dynamic_flag_spec='${wl}-E'
 
9412
      ;;
 
9413
 
 
9414
    hpux10*)
 
9415
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9416
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9417
      else
 
9418
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9419
      fi
 
9420
      if test "$with_gnu_ld" = no; then
 
9421
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9422
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9423
        hardcode_libdir_separator=:
 
9424
        hardcode_direct=yes
 
9425
        hardcode_direct_absolute=yes
 
9426
        export_dynamic_flag_spec='${wl}-E'
 
9427
        # hardcode_minus_L: Not really in the search PATH,
 
9428
        # but as the default location of the library.
 
9429
        hardcode_minus_L=yes
 
9430
      fi
 
9431
      ;;
 
9432
 
 
9433
    hpux11*)
 
9434
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9435
        case $host_cpu in
 
9436
        hppa*64*)
 
9437
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9438
          ;;
 
9439
        ia64*)
 
9440
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9441
          ;;
 
9442
        *)
 
9443
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9444
          ;;
 
9445
        esac
 
9446
      else
 
9447
        case $host_cpu in
 
9448
        hppa*64*)
 
9449
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9450
          ;;
 
9451
        ia64*)
 
9452
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9453
          ;;
 
9454
        *)
 
9455
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9456
          ;;
 
9457
        esac
 
9458
      fi
 
9459
      if test "$with_gnu_ld" = no; then
 
9460
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9461
        hardcode_libdir_separator=:
 
9462
 
 
9463
        case $host_cpu in
 
9464
        hppa*64*|ia64*)
 
9465
          hardcode_direct=no
 
9466
          hardcode_shlibpath_var=no
 
9467
          ;;
 
9468
        *)
 
9469
          hardcode_direct=yes
 
9470
          hardcode_direct_absolute=yes
 
9471
          export_dynamic_flag_spec='${wl}-E'
 
9472
 
 
9473
          # hardcode_minus_L: Not really in the search PATH,
 
9474
          # but as the default location of the library.
 
9475
          hardcode_minus_L=yes
 
9476
          ;;
 
9477
        esac
 
9478
      fi
 
9479
      ;;
 
9480
 
 
9481
    irix5* | irix6* | nonstopux*)
 
9482
      if test "$GCC" = yes; then
 
9483
        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'
 
9484
        # Try to use the -exported_symbol ld option, if it does not
 
9485
        # work, assume that -exports_file does not work either and
 
9486
        # implicitly export all symbols.
 
9487
        save_LDFLAGS="$LDFLAGS"
 
9488
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9489
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9490
/* end confdefs.h.  */
 
9491
int foo(void) {}
 
9492
_ACEOF
 
9493
if ac_fn_c_try_link "$LINENO"; then :
 
9494
  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'
 
9495
 
 
9496
fi
 
9497
rm -f core conftest.err conftest.$ac_objext \
 
9498
    conftest$ac_exeext conftest.$ac_ext
 
9499
        LDFLAGS="$save_LDFLAGS"
 
9500
      else
 
9501
        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'
 
9502
        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'
 
9503
      fi
 
9504
      archive_cmds_need_lc='no'
 
9505
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9506
      hardcode_libdir_separator=:
 
9507
      inherit_rpath=yes
 
9508
      link_all_deplibs=yes
 
9509
      ;;
 
9510
 
 
9511
    netbsd* | netbsdelf*-gnu)
 
9512
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9513
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9514
      else
 
9515
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9516
      fi
 
9517
      hardcode_libdir_flag_spec='-R$libdir'
 
9518
      hardcode_direct=yes
 
9519
      hardcode_shlibpath_var=no
 
9520
      ;;
 
9521
 
 
9522
    newsos6)
 
9523
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9524
      hardcode_direct=yes
 
9525
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9526
      hardcode_libdir_separator=:
 
9527
      hardcode_shlibpath_var=no
 
9528
      ;;
 
9529
 
 
9530
    *nto* | *qnx*)
 
9531
      ;;
 
9532
 
 
9533
    openbsd*)
 
9534
      if test -f /usr/libexec/ld.so; then
 
9535
        hardcode_direct=yes
 
9536
        hardcode_shlibpath_var=no
 
9537
        hardcode_direct_absolute=yes
 
9538
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9539
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9540
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9541
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9542
          export_dynamic_flag_spec='${wl}-E'
 
9543
        else
 
9544
          case $host_os in
 
9545
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9546
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9547
             hardcode_libdir_flag_spec='-R$libdir'
 
9548
             ;;
 
9549
           *)
 
9550
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9551
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9552
             ;;
 
9553
          esac
 
9554
        fi
 
9555
      else
 
9556
        ld_shlibs=no
 
9557
      fi
 
9558
      ;;
 
9559
 
 
9560
    os2*)
 
9561
      hardcode_libdir_flag_spec='-L$libdir'
 
9562
      hardcode_minus_L=yes
 
9563
      allow_undefined_flag=unsupported
 
9564
      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'
 
9565
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9566
      ;;
 
9567
 
 
9568
    osf3*)
 
9569
      if test "$GCC" = yes; then
 
9570
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9571
        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'
 
9572
      else
 
9573
        allow_undefined_flag=' -expect_unresolved \*'
 
9574
        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'
 
9575
      fi
 
9576
      archive_cmds_need_lc='no'
 
9577
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9578
      hardcode_libdir_separator=:
 
9579
      ;;
 
9580
 
 
9581
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9582
      if test "$GCC" = yes; then
 
9583
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9584
        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'
 
9585
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9586
      else
 
9587
        allow_undefined_flag=' -expect_unresolved \*'
 
9588
        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'
 
9589
        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~
 
9590
        $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'
 
9591
 
 
9592
        # Both c and cxx compiler support -rpath directly
 
9593
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9594
      fi
 
9595
      archive_cmds_need_lc='no'
 
9596
      hardcode_libdir_separator=:
 
9597
      ;;
 
9598
 
 
9599
    solaris*)
 
9600
      no_undefined_flag=' -z defs'
 
9601
      if test "$GCC" = yes; then
 
9602
        wlarc='${wl}'
 
9603
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9604
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9605
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9606
      else
 
9607
        case `$CC -V 2>&1` in
 
9608
        *"Compilers 5.0"*)
 
9609
          wlarc=''
 
9610
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9611
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9612
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9613
          ;;
 
9614
        *)
 
9615
          wlarc='${wl}'
 
9616
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9617
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9618
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9619
          ;;
 
9620
        esac
 
9621
      fi
 
9622
      hardcode_libdir_flag_spec='-R$libdir'
 
9623
      hardcode_shlibpath_var=no
 
9624
      case $host_os in
 
9625
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9626
      *)
 
9627
        # The compiler driver will combine and reorder linker options,
 
9628
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9629
        # but is careful enough not to reorder.
 
9630
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9631
        if test "$GCC" = yes; then
 
9632
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9633
        else
 
9634
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9635
        fi
 
9636
        ;;
 
9637
      esac
 
9638
      link_all_deplibs=yes
 
9639
      ;;
 
9640
 
 
9641
    sunos4*)
 
9642
      if test "x$host_vendor" = xsequent; then
 
9643
        # Use $CC to link under sequent, because it throws in some extra .o
 
9644
        # files that make .init and .fini sections work.
 
9645
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9646
      else
 
9647
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9648
      fi
 
9649
      hardcode_libdir_flag_spec='-L$libdir'
 
9650
      hardcode_direct=yes
 
9651
      hardcode_minus_L=yes
 
9652
      hardcode_shlibpath_var=no
 
9653
      ;;
 
9654
 
 
9655
    sysv4)
 
9656
      case $host_vendor in
 
9657
        sni)
 
9658
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9659
          hardcode_direct=yes # is this really true???
 
9660
        ;;
 
9661
        siemens)
 
9662
          ## LD is ld it makes a PLAMLIB
 
9663
          ## CC just makes a GrossModule.
 
9664
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9665
          reload_cmds='$CC -r -o $output$reload_objs'
 
9666
          hardcode_direct=no
 
9667
        ;;
 
9668
        motorola)
 
9669
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9670
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9671
        ;;
 
9672
      esac
 
9673
      runpath_var='LD_RUN_PATH'
 
9674
      hardcode_shlibpath_var=no
 
9675
      ;;
 
9676
 
 
9677
    sysv4.3*)
 
9678
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9679
      hardcode_shlibpath_var=no
 
9680
      export_dynamic_flag_spec='-Bexport'
 
9681
      ;;
 
9682
 
 
9683
    sysv4*MP*)
 
9684
      if test -d /usr/nec; then
 
9685
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9686
        hardcode_shlibpath_var=no
 
9687
        runpath_var=LD_RUN_PATH
 
9688
        hardcode_runpath_var=yes
 
9689
        ld_shlibs=yes
 
9690
      fi
 
9691
      ;;
 
9692
 
 
9693
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9694
      no_undefined_flag='${wl}-z,text'
 
9695
      archive_cmds_need_lc=no
 
9696
      hardcode_shlibpath_var=no
 
9697
      runpath_var='LD_RUN_PATH'
 
9698
 
 
9699
      if test "$GCC" = yes; then
 
9700
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9701
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9702
      else
 
9703
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9704
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9705
      fi
 
9706
      ;;
 
9707
 
 
9708
    sysv5* | sco3.2v5* | sco5v6*)
 
9709
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9710
      # link with -lc, and that would cause any symbols used from libc to
 
9711
      # always be unresolved, which means just about no library would
 
9712
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9713
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9714
      # as -z defs.
 
9715
      no_undefined_flag='${wl}-z,text'
 
9716
      allow_undefined_flag='${wl}-z,nodefs'
 
9717
      archive_cmds_need_lc=no
 
9718
      hardcode_shlibpath_var=no
 
9719
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9720
      hardcode_libdir_separator=':'
 
9721
      link_all_deplibs=yes
 
9722
      export_dynamic_flag_spec='${wl}-Bexport'
 
9723
      runpath_var='LD_RUN_PATH'
 
9724
 
 
9725
      if test "$GCC" = yes; then
 
9726
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9727
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9728
      else
 
9729
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9730
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9731
      fi
 
9732
      ;;
 
9733
 
 
9734
    uts4*)
 
9735
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9736
      hardcode_libdir_flag_spec='-L$libdir'
 
9737
      hardcode_shlibpath_var=no
 
9738
      ;;
 
9739
 
 
9740
    *)
 
9741
      ld_shlibs=no
 
9742
      ;;
 
9743
    esac
 
9744
 
 
9745
    if test x$host_vendor = xsni; then
 
9746
      case $host in
 
9747
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9748
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9749
        ;;
 
9750
      esac
 
9751
    fi
 
9752
  fi
 
9753
 
 
9754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9755
$as_echo "$ld_shlibs" >&6; }
 
9756
test "$ld_shlibs" = no && can_build_shared=no
 
9757
 
 
9758
with_gnu_ld=$with_gnu_ld
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
#
 
9775
# Do we need to explicitly link libc?
 
9776
#
 
9777
case "x$archive_cmds_need_lc" in
 
9778
x|xyes)
 
9779
  # Assume -lc should be added
 
9780
  archive_cmds_need_lc=yes
 
9781
 
 
9782
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9783
    case $archive_cmds in
 
9784
    *'~'*)
 
9785
      # FIXME: we may have to deal with multi-command sequences.
 
9786
      ;;
 
9787
    '$CC '*)
 
9788
      # Test whether the compiler implicitly links with -lc since on some
 
9789
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9790
      # to ld, don't add -lc before -lgcc.
 
9791
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9792
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9793
      $RM conftest*
 
9794
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9795
 
 
9796
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9797
  (eval $ac_compile) 2>&5
 
9798
  ac_status=$?
 
9799
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9800
  test $ac_status = 0; } 2>conftest.err; then
 
9801
        soname=conftest
 
9802
        lib=conftest
 
9803
        libobjs=conftest.$ac_objext
 
9804
        deplibs=
 
9805
        wl=$lt_prog_compiler_wl
 
9806
        pic_flag=$lt_prog_compiler_pic
 
9807
        compiler_flags=-v
 
9808
        linker_flags=-v
 
9809
        verstring=
 
9810
        output_objdir=.
 
9811
        libname=conftest
 
9812
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9813
        allow_undefined_flag=
 
9814
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9815
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9816
  ac_status=$?
 
9817
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9818
  test $ac_status = 0; }
 
9819
        then
 
9820
          archive_cmds_need_lc=no
 
9821
        else
 
9822
          archive_cmds_need_lc=yes
 
9823
        fi
 
9824
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9825
      else
 
9826
        cat conftest.err 1>&5
 
9827
      fi
 
9828
      $RM conftest*
 
9829
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9830
$as_echo "$archive_cmds_need_lc" >&6; }
 
9831
      ;;
 
9832
    esac
 
9833
  fi
 
9834
  ;;
 
9835
esac
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
 
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
 
 
9964
 
 
9965
 
 
9966
 
 
9967
 
 
9968
 
 
9969
 
 
9970
 
 
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9994
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9995
 
 
9996
if test "$GCC" = yes; then
 
9997
  case $host_os in
 
9998
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9999
    *) lt_awk_arg="/^libraries:/" ;;
 
10000
  esac
 
10001
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10002
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10003
    # if the path contains ";" then we assume it to be the separator
 
10004
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10005
    # assumed that no part of a normal pathname contains ";" but that should
 
10006
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10007
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10008
  else
 
10009
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10010
  fi
 
10011
  # Ok, now we have the path, separated by spaces, we can step through it
 
10012
  # and add multilib dir if necessary.
 
10013
  lt_tmp_lt_search_path_spec=
 
10014
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10015
  for lt_sys_path in $lt_search_path_spec; do
 
10016
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10017
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10018
    else
 
10019
      test -d "$lt_sys_path" && \
 
10020
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10021
    fi
 
10022
  done
 
10023
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10024
BEGIN {RS=" "; FS="/|\n";} {
 
10025
  lt_foo="";
 
10026
  lt_count=0;
 
10027
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10028
    if ($lt_i != "" && $lt_i != ".") {
 
10029
      if ($lt_i == "..") {
 
10030
        lt_count++;
 
10031
      } else {
 
10032
        if (lt_count == 0) {
 
10033
          lt_foo="/" $lt_i lt_foo;
 
10034
        } else {
 
10035
          lt_count--;
 
10036
        }
 
10037
      }
 
10038
    }
 
10039
  }
 
10040
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10041
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10042
}'`
 
10043
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10044
else
 
10045
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10046
fi
 
10047
library_names_spec=
 
10048
libname_spec='lib$name'
 
10049
soname_spec=
 
10050
shrext_cmds=".so"
 
10051
postinstall_cmds=
 
10052
postuninstall_cmds=
 
10053
finish_cmds=
 
10054
finish_eval=
 
10055
shlibpath_var=
 
10056
shlibpath_overrides_runpath=unknown
 
10057
version_type=none
 
10058
dynamic_linker="$host_os ld.so"
 
10059
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10060
need_lib_prefix=unknown
 
10061
hardcode_into_libs=no
 
10062
 
 
10063
# when you set need_version to no, make sure it does not cause -set_version
 
10064
# flags to be left without arguments
 
10065
need_version=unknown
 
10066
 
 
10067
case $host_os in
 
10068
aix3*)
 
10069
  version_type=linux
 
10070
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10071
  shlibpath_var=LIBPATH
 
10072
 
 
10073
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10074
  soname_spec='${libname}${release}${shared_ext}$major'
 
10075
  ;;
 
10076
 
 
10077
aix[4-9]*)
 
10078
  version_type=linux
 
10079
  need_lib_prefix=no
 
10080
  need_version=no
 
10081
  hardcode_into_libs=yes
 
10082
  if test "$host_cpu" = ia64; then
 
10083
    # AIX 5 supports IA64
 
10084
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10085
    shlibpath_var=LD_LIBRARY_PATH
 
10086
  else
 
10087
    # With GCC up to 2.95.x, collect2 would create an import file
 
10088
    # for dependence libraries.  The import file would start with
 
10089
    # the line `#! .'.  This would cause the generated library to
 
10090
    # depend on `.', always an invalid library.  This was fixed in
 
10091
    # development snapshots of GCC prior to 3.0.
 
10092
    case $host_os in
 
10093
      aix4 | aix4.[01] | aix4.[01].*)
 
10094
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10095
           echo ' yes '
 
10096
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10097
        :
 
10098
      else
 
10099
        can_build_shared=no
 
10100
      fi
 
10101
      ;;
 
10102
    esac
 
10103
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10104
    # soname into executable. Probably we can add versioning support to
 
10105
    # collect2, so additional links can be useful in future.
 
10106
    if test "$aix_use_runtimelinking" = yes; then
 
10107
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10108
      # instead of lib<name>.a to let people know that these are not
 
10109
      # typical AIX shared libraries.
 
10110
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10111
    else
 
10112
      # We preserve .a as extension for shared libraries through AIX4.2
 
10113
      # and later when we are not doing run time linking.
 
10114
      library_names_spec='${libname}${release}.a $libname.a'
 
10115
      soname_spec='${libname}${release}${shared_ext}$major'
 
10116
    fi
 
10117
    shlibpath_var=LIBPATH
 
10118
  fi
 
10119
  ;;
 
10120
 
 
10121
amigaos*)
 
10122
  case $host_cpu in
 
10123
  powerpc)
 
10124
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10125
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10126
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10127
    ;;
 
10128
  m68k)
 
10129
    library_names_spec='$libname.ixlibrary $libname.a'
 
10130
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10131
    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'
 
10132
    ;;
 
10133
  esac
 
10134
  ;;
 
10135
 
 
10136
beos*)
 
10137
  library_names_spec='${libname}${shared_ext}'
 
10138
  dynamic_linker="$host_os ld.so"
 
10139
  shlibpath_var=LIBRARY_PATH
 
10140
  ;;
 
10141
 
 
10142
bsdi[45]*)
 
10143
  version_type=linux
 
10144
  need_version=no
 
10145
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10146
  soname_spec='${libname}${release}${shared_ext}$major'
 
10147
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10148
  shlibpath_var=LD_LIBRARY_PATH
 
10149
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10150
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10151
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10152
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10153
  # libtool to hard-code these into programs
 
10154
  ;;
 
10155
 
 
10156
cygwin* | mingw* | pw32* | cegcc*)
 
10157
  version_type=windows
 
10158
  shrext_cmds=".dll"
 
10159
  need_version=no
 
10160
  need_lib_prefix=no
 
10161
 
 
10162
  case $GCC,$host_os in
 
10163
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
10164
    library_names_spec='$libname.dll.a'
 
10165
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10166
    postinstall_cmds='base_file=`basename \${file}`~
 
10167
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10168
      dldir=$destdir/`dirname \$dlpath`~
 
10169
      test -d \$dldir || mkdir -p \$dldir~
 
10170
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10171
      chmod a+x \$dldir/$dlname~
 
10172
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10173
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10174
      fi'
 
10175
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10176
      dlpath=$dir/\$dldll~
 
10177
       $RM \$dlpath'
 
10178
    shlibpath_overrides_runpath=yes
 
10179
 
 
10180
    case $host_os in
 
10181
    cygwin*)
 
10182
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10183
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10184
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10185
      ;;
 
10186
    mingw* | cegcc*)
 
10187
      # MinGW DLLs use traditional 'lib' prefix
 
10188
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10189
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10190
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10191
        # It is most probably a Windows format PATH printed by
 
10192
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10193
        # path with ; separators, and with drive letters. We can handle the
 
10194
        # drive letters (cygwin fileutils understands them), so leave them,
 
10195
        # especially as we might pass files found there to a mingw objdump,
 
10196
        # which wouldn't understand a cygwinified path. Ahh.
 
10197
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10198
      else
 
10199
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10200
      fi
 
10201
      ;;
 
10202
    pw32*)
 
10203
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10204
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10205
      ;;
 
10206
    esac
 
10207
    ;;
 
10208
 
 
10209
  *)
 
10210
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10211
    ;;
 
10212
  esac
 
10213
  dynamic_linker='Win32 ld.exe'
 
10214
  # FIXME: first we should search . and the directory the executable is in
 
10215
  shlibpath_var=PATH
 
10216
  ;;
 
10217
 
 
10218
darwin* | rhapsody*)
 
10219
  dynamic_linker="$host_os dyld"
 
10220
  version_type=darwin
 
10221
  need_lib_prefix=no
 
10222
  need_version=no
 
10223
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10224
  soname_spec='${libname}${release}${major}$shared_ext'
 
10225
  shlibpath_overrides_runpath=yes
 
10226
  shlibpath_var=DYLD_LIBRARY_PATH
 
10227
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10228
 
 
10229
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10230
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10231
  ;;
 
10232
 
 
10233
dgux*)
 
10234
  version_type=linux
 
10235
  need_lib_prefix=no
 
10236
  need_version=no
 
10237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10238
  soname_spec='${libname}${release}${shared_ext}$major'
 
10239
  shlibpath_var=LD_LIBRARY_PATH
 
10240
  ;;
 
10241
 
 
10242
freebsd1*)
 
10243
  dynamic_linker=no
 
10244
  ;;
 
10245
 
 
10246
freebsd* | dragonfly*)
 
10247
  # DragonFly does not have aout.  When/if they implement a new
 
10248
  # versioning mechanism, adjust this.
 
10249
  if test -x /usr/bin/objformat; then
 
10250
    objformat=`/usr/bin/objformat`
 
10251
  else
 
10252
    case $host_os in
 
10253
    freebsd[123]*) objformat=aout ;;
 
10254
    *) objformat=elf ;;
 
10255
    esac
 
10256
  fi
 
10257
  version_type=freebsd-$objformat
 
10258
  case $version_type in
 
10259
    freebsd-elf*)
 
10260
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10261
      need_version=no
 
10262
      need_lib_prefix=no
 
10263
      ;;
 
10264
    freebsd-*)
 
10265
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10266
      need_version=yes
 
10267
      ;;
 
10268
  esac
 
10269
  shlibpath_var=LD_LIBRARY_PATH
 
10270
  case $host_os in
 
10271
  freebsd2*)
 
10272
    shlibpath_overrides_runpath=yes
 
10273
    ;;
 
10274
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10275
    shlibpath_overrides_runpath=yes
 
10276
    hardcode_into_libs=yes
 
10277
    ;;
 
10278
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10279
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10280
    shlibpath_overrides_runpath=no
 
10281
    hardcode_into_libs=yes
 
10282
    ;;
 
10283
  *) # from 4.6 on, and DragonFly
 
10284
    shlibpath_overrides_runpath=yes
 
10285
    hardcode_into_libs=yes
 
10286
    ;;
 
10287
  esac
 
10288
  ;;
 
10289
 
 
10290
gnu*)
 
10291
  version_type=linux
 
10292
  need_lib_prefix=no
 
10293
  need_version=no
 
10294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10295
  soname_spec='${libname}${release}${shared_ext}$major'
 
10296
  shlibpath_var=LD_LIBRARY_PATH
 
10297
  hardcode_into_libs=yes
 
10298
  ;;
 
10299
 
 
10300
hpux9* | hpux10* | hpux11*)
 
10301
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10302
  # link against other versions.
 
10303
  version_type=sunos
 
10304
  need_lib_prefix=no
 
10305
  need_version=no
 
10306
  case $host_cpu in
 
10307
  ia64*)
 
10308
    shrext_cmds='.so'
 
10309
    hardcode_into_libs=yes
 
10310
    dynamic_linker="$host_os dld.so"
 
10311
    shlibpath_var=LD_LIBRARY_PATH
 
10312
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10313
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10314
    soname_spec='${libname}${release}${shared_ext}$major'
 
10315
    if test "X$HPUX_IA64_MODE" = X32; then
 
10316
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10317
    else
 
10318
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10319
    fi
 
10320
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10321
    ;;
 
10322
  hppa*64*)
 
10323
    shrext_cmds='.sl'
 
10324
    hardcode_into_libs=yes
 
10325
    dynamic_linker="$host_os dld.sl"
 
10326
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10327
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10328
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10329
    soname_spec='${libname}${release}${shared_ext}$major'
 
10330
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10331
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10332
    ;;
 
10333
  *)
 
10334
    shrext_cmds='.sl'
 
10335
    dynamic_linker="$host_os dld.sl"
 
10336
    shlibpath_var=SHLIB_PATH
 
10337
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10338
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10339
    soname_spec='${libname}${release}${shared_ext}$major'
 
10340
    ;;
 
10341
  esac
 
10342
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10343
  postinstall_cmds='chmod 555 $lib'
 
10344
  ;;
 
10345
 
 
10346
interix[3-9]*)
 
10347
  version_type=linux
 
10348
  need_lib_prefix=no
 
10349
  need_version=no
 
10350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10351
  soname_spec='${libname}${release}${shared_ext}$major'
 
10352
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10353
  shlibpath_var=LD_LIBRARY_PATH
 
10354
  shlibpath_overrides_runpath=no
 
10355
  hardcode_into_libs=yes
 
10356
  ;;
 
10357
 
 
10358
irix5* | irix6* | nonstopux*)
 
10359
  case $host_os in
 
10360
    nonstopux*) version_type=nonstopux ;;
 
10361
    *)
 
10362
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10363
                version_type=linux
 
10364
        else
 
10365
                version_type=irix
 
10366
        fi ;;
 
10367
  esac
 
10368
  need_lib_prefix=no
 
10369
  need_version=no
 
10370
  soname_spec='${libname}${release}${shared_ext}$major'
 
10371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10372
  case $host_os in
 
10373
  irix5* | nonstopux*)
 
10374
    libsuff= shlibsuff=
 
10375
    ;;
 
10376
  *)
 
10377
    case $LD in # libtool.m4 will add one of these switches to LD
 
10378
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10379
      libsuff= shlibsuff= libmagic=32-bit;;
 
10380
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10381
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10382
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10383
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10384
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10385
    esac
 
10386
    ;;
 
10387
  esac
 
10388
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10389
  shlibpath_overrides_runpath=no
 
10390
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10391
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10392
  hardcode_into_libs=yes
 
10393
  ;;
 
10394
 
 
10395
# No shared lib support for Linux oldld, aout, or coff.
 
10396
linux*oldld* | linux*aout* | linux*coff*)
 
10397
  dynamic_linker=no
 
10398
  ;;
 
10399
 
 
10400
# This must be Linux ELF.
 
10401
linux* | k*bsd*-gnu)
 
10402
  version_type=linux
 
10403
  need_lib_prefix=no
 
10404
  need_version=no
 
10405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10406
  soname_spec='${libname}${release}${shared_ext}$major'
 
10407
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10408
  shlibpath_var=LD_LIBRARY_PATH
 
10409
  shlibpath_overrides_runpath=no
 
10410
  # Some binutils ld are patched to set DT_RUNPATH
 
10411
  save_LDFLAGS=$LDFLAGS
 
10412
  save_libdir=$libdir
 
10413
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10414
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10415
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10416
/* end confdefs.h.  */
 
10417
 
 
10418
int
 
10419
main ()
 
10420
{
 
10421
 
 
10422
  ;
 
10423
  return 0;
 
10424
}
 
10425
_ACEOF
 
10426
if ac_fn_c_try_link "$LINENO"; then :
 
10427
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10428
  shlibpath_overrides_runpath=yes
 
10429
fi
 
10430
fi
 
10431
rm -f core conftest.err conftest.$ac_objext \
 
10432
    conftest$ac_exeext conftest.$ac_ext
 
10433
  LDFLAGS=$save_LDFLAGS
 
10434
  libdir=$save_libdir
 
10435
 
 
10436
  # This implies no fast_install, which is unacceptable.
 
10437
  # Some rework will be needed to allow for fast_install
 
10438
  # before this can be enabled.
 
10439
  hardcode_into_libs=yes
 
10440
 
 
10441
  # Append ld.so.conf contents to the search path
 
10442
  if test -f /etc/ld.so.conf; then
 
10443
    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' ' '`
 
10444
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10445
  fi
 
10446
 
 
10447
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10448
  # powerpc, because MkLinux only supported shared libraries with the
 
10449
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10450
  # most powerpc-linux boxes support dynamic linking these days and
 
10451
  # people can always --disable-shared, the test was removed, and we
 
10452
  # assume the GNU/Linux dynamic linker is in use.
 
10453
  dynamic_linker='GNU/Linux ld.so'
 
10454
  ;;
 
10455
 
 
10456
netbsdelf*-gnu)
 
10457
  version_type=linux
 
10458
  need_lib_prefix=no
 
10459
  need_version=no
 
10460
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10461
  soname_spec='${libname}${release}${shared_ext}$major'
 
10462
  shlibpath_var=LD_LIBRARY_PATH
 
10463
  shlibpath_overrides_runpath=no
 
10464
  hardcode_into_libs=yes
 
10465
  dynamic_linker='NetBSD ld.elf_so'
 
10466
  ;;
 
10467
 
 
10468
netbsd*)
 
10469
  version_type=sunos
 
10470
  need_lib_prefix=no
 
10471
  need_version=no
 
10472
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10473
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10474
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10475
    dynamic_linker='NetBSD (a.out) ld.so'
 
10476
  else
 
10477
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10478
    soname_spec='${libname}${release}${shared_ext}$major'
 
10479
    dynamic_linker='NetBSD ld.elf_so'
 
10480
  fi
 
10481
  shlibpath_var=LD_LIBRARY_PATH
 
10482
  shlibpath_overrides_runpath=yes
 
10483
  hardcode_into_libs=yes
 
10484
  ;;
 
10485
 
 
10486
newsos6)
 
10487
  version_type=linux
 
10488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10489
  shlibpath_var=LD_LIBRARY_PATH
 
10490
  shlibpath_overrides_runpath=yes
 
10491
  ;;
 
10492
 
 
10493
*nto* | *qnx*)
 
10494
  version_type=qnx
 
10495
  need_lib_prefix=no
 
10496
  need_version=no
 
10497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10498
  soname_spec='${libname}${release}${shared_ext}$major'
 
10499
  shlibpath_var=LD_LIBRARY_PATH
 
10500
  shlibpath_overrides_runpath=no
 
10501
  hardcode_into_libs=yes
 
10502
  dynamic_linker='ldqnx.so'
 
10503
  ;;
 
10504
 
 
10505
openbsd*)
 
10506
  version_type=sunos
 
10507
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10508
  need_lib_prefix=no
 
10509
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10510
  case $host_os in
 
10511
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10512
    *)                          need_version=no  ;;
 
10513
  esac
 
10514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10515
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10516
  shlibpath_var=LD_LIBRARY_PATH
 
10517
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10518
    case $host_os in
 
10519
      openbsd2.[89] | openbsd2.[89].*)
 
10520
        shlibpath_overrides_runpath=no
 
10521
        ;;
 
10522
      *)
 
10523
        shlibpath_overrides_runpath=yes
 
10524
        ;;
 
10525
      esac
 
10526
  else
 
10527
    shlibpath_overrides_runpath=yes
 
10528
  fi
 
10529
  ;;
 
10530
 
 
10531
os2*)
 
10532
  libname_spec='$name'
 
10533
  shrext_cmds=".dll"
 
10534
  need_lib_prefix=no
 
10535
  library_names_spec='$libname${shared_ext} $libname.a'
 
10536
  dynamic_linker='OS/2 ld.exe'
 
10537
  shlibpath_var=LIBPATH
 
10538
  ;;
 
10539
 
 
10540
osf3* | osf4* | osf5*)
 
10541
  version_type=osf
 
10542
  need_lib_prefix=no
 
10543
  need_version=no
 
10544
  soname_spec='${libname}${release}${shared_ext}$major'
 
10545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10546
  shlibpath_var=LD_LIBRARY_PATH
 
10547
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10548
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10549
  ;;
 
10550
 
 
10551
rdos*)
 
10552
  dynamic_linker=no
 
10553
  ;;
 
10554
 
 
10555
solaris*)
 
10556
  version_type=linux
 
10557
  need_lib_prefix=no
 
10558
  need_version=no
 
10559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10560
  soname_spec='${libname}${release}${shared_ext}$major'
 
10561
  shlibpath_var=LD_LIBRARY_PATH
 
10562
  shlibpath_overrides_runpath=yes
 
10563
  hardcode_into_libs=yes
 
10564
  # ldd complains unless libraries are executable
 
10565
  postinstall_cmds='chmod +x $lib'
 
10566
  ;;
 
10567
 
 
10568
sunos4*)
 
10569
  version_type=sunos
 
10570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10571
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10572
  shlibpath_var=LD_LIBRARY_PATH
 
10573
  shlibpath_overrides_runpath=yes
 
10574
  if test "$with_gnu_ld" = yes; then
 
10575
    need_lib_prefix=no
 
10576
  fi
 
10577
  need_version=yes
 
10578
  ;;
 
10579
 
 
10580
sysv4 | sysv4.3*)
 
10581
  version_type=linux
 
10582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10583
  soname_spec='${libname}${release}${shared_ext}$major'
 
10584
  shlibpath_var=LD_LIBRARY_PATH
 
10585
  case $host_vendor in
 
10586
    sni)
 
10587
      shlibpath_overrides_runpath=no
 
10588
      need_lib_prefix=no
 
10589
      runpath_var=LD_RUN_PATH
 
10590
      ;;
 
10591
    siemens)
 
10592
      need_lib_prefix=no
 
10593
      ;;
 
10594
    motorola)
 
10595
      need_lib_prefix=no
 
10596
      need_version=no
 
10597
      shlibpath_overrides_runpath=no
 
10598
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10599
      ;;
 
10600
  esac
 
10601
  ;;
 
10602
 
 
10603
sysv4*MP*)
 
10604
  if test -d /usr/nec ;then
 
10605
    version_type=linux
 
10606
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10607
    soname_spec='$libname${shared_ext}.$major'
 
10608
    shlibpath_var=LD_LIBRARY_PATH
 
10609
  fi
 
10610
  ;;
 
10611
 
 
10612
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10613
  version_type=freebsd-elf
 
10614
  need_lib_prefix=no
 
10615
  need_version=no
 
10616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10617
  soname_spec='${libname}${release}${shared_ext}$major'
 
10618
  shlibpath_var=LD_LIBRARY_PATH
 
10619
  shlibpath_overrides_runpath=yes
 
10620
  hardcode_into_libs=yes
 
10621
  if test "$with_gnu_ld" = yes; then
 
10622
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10623
  else
 
10624
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10625
    case $host_os in
 
10626
      sco3.2v5*)
 
10627
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10628
        ;;
 
10629
    esac
 
10630
  fi
 
10631
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10632
  ;;
 
10633
 
 
10634
tpf*)
 
10635
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10636
  version_type=linux
 
10637
  need_lib_prefix=no
 
10638
  need_version=no
 
10639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10640
  shlibpath_var=LD_LIBRARY_PATH
 
10641
  shlibpath_overrides_runpath=no
 
10642
  hardcode_into_libs=yes
 
10643
  ;;
 
10644
 
 
10645
uts4*)
 
10646
  version_type=linux
 
10647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10648
  soname_spec='${libname}${release}${shared_ext}$major'
 
10649
  shlibpath_var=LD_LIBRARY_PATH
 
10650
  ;;
 
10651
 
 
10652
*)
 
10653
  dynamic_linker=no
 
10654
  ;;
 
10655
esac
 
10656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10657
$as_echo "$dynamic_linker" >&6; }
 
10658
test "$dynamic_linker" = no && can_build_shared=no
 
10659
 
 
10660
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10661
if test "$GCC" = yes; then
 
10662
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10663
fi
 
10664
 
 
10665
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10666
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10667
fi
 
10668
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10669
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10670
fi
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
 
 
10682
 
 
10683
 
 
10684
 
 
10685
 
 
10686
 
 
10687
 
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
 
 
10748
 
 
10749
 
 
10750
 
 
10751
 
 
10752
 
 
10753
 
 
10754
 
 
10755
 
 
10756
 
 
10757
 
 
10758
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10759
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10760
hardcode_action=
 
10761
if test -n "$hardcode_libdir_flag_spec" ||
 
10762
   test -n "$runpath_var" ||
 
10763
   test "X$hardcode_automatic" = "Xyes" ; then
 
10764
 
 
10765
  # We can hardcode non-existent directories.
 
10766
  if test "$hardcode_direct" != no &&
 
10767
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10768
     # have to relink, otherwise we might link with an installed library
 
10769
     # when we should be linking with a yet-to-be-installed one
 
10770
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10771
     test "$hardcode_minus_L" != no; then
 
10772
    # Linking always hardcodes the temporary library directory.
 
10773
    hardcode_action=relink
 
10774
  else
 
10775
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10776
    hardcode_action=immediate
 
10777
  fi
 
10778
else
 
10779
  # We cannot hardcode anything, or else we can only hardcode existing
 
10780
  # directories.
 
10781
  hardcode_action=unsupported
 
10782
fi
 
10783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10784
$as_echo "$hardcode_action" >&6; }
 
10785
 
 
10786
if test "$hardcode_action" = relink ||
 
10787
   test "$inherit_rpath" = yes; then
 
10788
  # Fast installation is not supported
 
10789
  enable_fast_install=no
 
10790
elif test "$shlibpath_overrides_runpath" = yes ||
 
10791
     test "$enable_shared" = no; then
 
10792
  # Fast installation is not necessary
 
10793
  enable_fast_install=needless
 
10794
fi
 
10795
 
 
10796
 
 
10797
 
 
10798
 
 
10799
 
 
10800
 
 
10801
  if test "x$enable_dlopen" != xyes; then
 
10802
  enable_dlopen=unknown
 
10803
  enable_dlopen_self=unknown
 
10804
  enable_dlopen_self_static=unknown
 
10805
else
 
10806
  lt_cv_dlopen=no
 
10807
  lt_cv_dlopen_libs=
 
10808
 
 
10809
  case $host_os in
 
10810
  beos*)
 
10811
    lt_cv_dlopen="load_add_on"
 
10812
    lt_cv_dlopen_libs=
 
10813
    lt_cv_dlopen_self=yes
 
10814
    ;;
 
10815
 
 
10816
  mingw* | pw32* | cegcc*)
 
10817
    lt_cv_dlopen="LoadLibrary"
 
10818
    lt_cv_dlopen_libs=
 
10819
    ;;
 
10820
 
 
10821
  cygwin*)
 
10822
    lt_cv_dlopen="dlopen"
 
10823
    lt_cv_dlopen_libs=
 
10824
    ;;
 
10825
 
 
10826
  darwin*)
 
10827
  # if libdl is installed we need to link against it
 
10828
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10829
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10830
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10831
  $as_echo_n "(cached) " >&6
 
10832
else
 
10833
  ac_check_lib_save_LIBS=$LIBS
 
10834
LIBS="-ldl  $LIBS"
 
10835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10836
/* end confdefs.h.  */
 
10837
 
 
10838
/* Override any GCC internal prototype to avoid an error.
 
10839
   Use char because int might match the return type of a GCC
 
10840
   builtin and then its argument prototype would still apply.  */
 
10841
#ifdef __cplusplus
 
10842
extern "C"
 
10843
#endif
 
10844
char dlopen ();
 
10845
int
 
10846
main ()
 
10847
{
 
10848
return dlopen ();
 
10849
  ;
 
10850
  return 0;
 
10851
}
 
10852
_ACEOF
 
10853
if ac_fn_c_try_link "$LINENO"; then :
 
10854
  ac_cv_lib_dl_dlopen=yes
 
10855
else
 
10856
  ac_cv_lib_dl_dlopen=no
 
10857
fi
 
10858
rm -f core conftest.err conftest.$ac_objext \
 
10859
    conftest$ac_exeext conftest.$ac_ext
 
10860
LIBS=$ac_check_lib_save_LIBS
 
10861
fi
 
10862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10863
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10864
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10865
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10866
else
 
10867
 
 
10868
    lt_cv_dlopen="dyld"
 
10869
    lt_cv_dlopen_libs=
 
10870
    lt_cv_dlopen_self=yes
 
10871
 
 
10872
fi
 
10873
 
 
10874
    ;;
 
10875
 
 
10876
  *)
 
10877
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10878
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10879
  lt_cv_dlopen="shl_load"
 
10880
else
 
10881
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10882
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10883
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10884
  $as_echo_n "(cached) " >&6
 
10885
else
 
10886
  ac_check_lib_save_LIBS=$LIBS
 
10887
LIBS="-ldld  $LIBS"
 
10888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10889
/* end confdefs.h.  */
 
10890
 
 
10891
/* Override any GCC internal prototype to avoid an error.
 
10892
   Use char because int might match the return type of a GCC
 
10893
   builtin and then its argument prototype would still apply.  */
 
10894
#ifdef __cplusplus
 
10895
extern "C"
 
10896
#endif
 
10897
char shl_load ();
 
10898
int
 
10899
main ()
 
10900
{
 
10901
return shl_load ();
 
10902
  ;
 
10903
  return 0;
 
10904
}
 
10905
_ACEOF
 
10906
if ac_fn_c_try_link "$LINENO"; then :
 
10907
  ac_cv_lib_dld_shl_load=yes
 
10908
else
 
10909
  ac_cv_lib_dld_shl_load=no
 
10910
fi
 
10911
rm -f core conftest.err conftest.$ac_objext \
 
10912
    conftest$ac_exeext conftest.$ac_ext
 
10913
LIBS=$ac_check_lib_save_LIBS
 
10914
fi
 
10915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10916
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10917
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10918
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10919
else
 
10920
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10921
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10922
  lt_cv_dlopen="dlopen"
 
10923
else
 
10924
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10925
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10926
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10927
  $as_echo_n "(cached) " >&6
 
10928
else
 
10929
  ac_check_lib_save_LIBS=$LIBS
 
10930
LIBS="-ldl  $LIBS"
 
10931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10932
/* end confdefs.h.  */
 
10933
 
 
10934
/* Override any GCC internal prototype to avoid an error.
 
10935
   Use char because int might match the return type of a GCC
 
10936
   builtin and then its argument prototype would still apply.  */
 
10937
#ifdef __cplusplus
 
10938
extern "C"
 
10939
#endif
 
10940
char dlopen ();
 
10941
int
 
10942
main ()
 
10943
{
 
10944
return dlopen ();
 
10945
  ;
 
10946
  return 0;
 
10947
}
 
10948
_ACEOF
 
10949
if ac_fn_c_try_link "$LINENO"; then :
 
10950
  ac_cv_lib_dl_dlopen=yes
 
10951
else
 
10952
  ac_cv_lib_dl_dlopen=no
 
10953
fi
 
10954
rm -f core conftest.err conftest.$ac_objext \
 
10955
    conftest$ac_exeext conftest.$ac_ext
 
10956
LIBS=$ac_check_lib_save_LIBS
 
10957
fi
 
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10959
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10960
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10961
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10962
else
 
10963
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10964
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10965
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10966
  $as_echo_n "(cached) " >&6
 
10967
else
 
10968
  ac_check_lib_save_LIBS=$LIBS
 
10969
LIBS="-lsvld  $LIBS"
 
10970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10971
/* end confdefs.h.  */
 
10972
 
 
10973
/* Override any GCC internal prototype to avoid an error.
 
10974
   Use char because int might match the return type of a GCC
 
10975
   builtin and then its argument prototype would still apply.  */
 
10976
#ifdef __cplusplus
 
10977
extern "C"
 
10978
#endif
 
10979
char dlopen ();
 
10980
int
 
10981
main ()
 
10982
{
 
10983
return dlopen ();
 
10984
  ;
 
10985
  return 0;
 
10986
}
 
10987
_ACEOF
 
10988
if ac_fn_c_try_link "$LINENO"; then :
 
10989
  ac_cv_lib_svld_dlopen=yes
 
10990
else
 
10991
  ac_cv_lib_svld_dlopen=no
 
10992
fi
 
10993
rm -f core conftest.err conftest.$ac_objext \
 
10994
    conftest$ac_exeext conftest.$ac_ext
 
10995
LIBS=$ac_check_lib_save_LIBS
 
10996
fi
 
10997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10998
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10999
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
11000
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11001
else
 
11002
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11003
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11004
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
11005
  $as_echo_n "(cached) " >&6
 
11006
else
 
11007
  ac_check_lib_save_LIBS=$LIBS
 
11008
LIBS="-ldld  $LIBS"
 
11009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11010
/* end confdefs.h.  */
 
11011
 
 
11012
/* Override any GCC internal prototype to avoid an error.
 
11013
   Use char because int might match the return type of a GCC
 
11014
   builtin and then its argument prototype would still apply.  */
 
11015
#ifdef __cplusplus
 
11016
extern "C"
 
11017
#endif
 
11018
char dld_link ();
 
11019
int
 
11020
main ()
 
11021
{
 
11022
return dld_link ();
 
11023
  ;
 
11024
  return 0;
 
11025
}
 
11026
_ACEOF
 
11027
if ac_fn_c_try_link "$LINENO"; then :
 
11028
  ac_cv_lib_dld_dld_link=yes
 
11029
else
 
11030
  ac_cv_lib_dld_dld_link=no
 
11031
fi
 
11032
rm -f core conftest.err conftest.$ac_objext \
 
11033
    conftest$ac_exeext conftest.$ac_ext
 
11034
LIBS=$ac_check_lib_save_LIBS
 
11035
fi
 
11036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11037
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11038
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
11039
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11040
fi
 
11041
 
 
11042
 
 
11043
fi
 
11044
 
 
11045
 
 
11046
fi
 
11047
 
 
11048
 
 
11049
fi
 
11050
 
 
11051
 
 
11052
fi
 
11053
 
 
11054
 
 
11055
fi
 
11056
 
 
11057
    ;;
 
11058
  esac
 
11059
 
 
11060
  if test "x$lt_cv_dlopen" != xno; then
 
11061
    enable_dlopen=yes
 
11062
  else
 
11063
    enable_dlopen=no
 
11064
  fi
 
11065
 
 
11066
  case $lt_cv_dlopen in
 
11067
  dlopen)
 
11068
    save_CPPFLAGS="$CPPFLAGS"
 
11069
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11070
 
 
11071
    save_LDFLAGS="$LDFLAGS"
 
11072
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11073
 
 
11074
    save_LIBS="$LIBS"
 
11075
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11076
 
 
11077
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11078
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11079
if test "${lt_cv_dlopen_self+set}" = set; then :
 
11080
  $as_echo_n "(cached) " >&6
 
11081
else
 
11082
          if test "$cross_compiling" = yes; then :
 
11083
  lt_cv_dlopen_self=cross
 
11084
else
 
11085
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11086
  lt_status=$lt_dlunknown
 
11087
  cat > conftest.$ac_ext <<_LT_EOF
 
11088
#line 11088 "configure"
 
11089
#include "confdefs.h"
 
11090
 
 
11091
#if HAVE_DLFCN_H
 
11092
#include <dlfcn.h>
 
11093
#endif
 
11094
 
 
11095
#include <stdio.h>
 
11096
 
 
11097
#ifdef RTLD_GLOBAL
 
11098
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11099
#else
 
11100
#  ifdef DL_GLOBAL
 
11101
#    define LT_DLGLOBAL         DL_GLOBAL
 
11102
#  else
 
11103
#    define LT_DLGLOBAL         0
 
11104
#  endif
 
11105
#endif
 
11106
 
 
11107
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11108
   find out it does not work in some platform. */
 
11109
#ifndef LT_DLLAZY_OR_NOW
 
11110
#  ifdef RTLD_LAZY
 
11111
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11112
#  else
 
11113
#    ifdef DL_LAZY
 
11114
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11115
#    else
 
11116
#      ifdef RTLD_NOW
 
11117
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11118
#      else
 
11119
#        ifdef DL_NOW
 
11120
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11121
#        else
 
11122
#          define LT_DLLAZY_OR_NOW      0
 
11123
#        endif
 
11124
#      endif
 
11125
#    endif
 
11126
#  endif
 
11127
#endif
 
11128
 
 
11129
void fnord() { int i=42;}
 
11130
int main ()
 
11131
{
 
11132
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11133
  int status = $lt_dlunknown;
 
11134
 
 
11135
  if (self)
 
11136
    {
 
11137
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11138
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11139
      /* dlclose (self); */
 
11140
    }
 
11141
  else
 
11142
    puts (dlerror ());
 
11143
 
 
11144
  return status;
 
11145
}
 
11146
_LT_EOF
 
11147
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11148
  (eval $ac_link) 2>&5
 
11149
  ac_status=$?
 
11150
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11151
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11152
    (./conftest; exit; ) >&5 2>/dev/null
 
11153
    lt_status=$?
 
11154
    case x$lt_status in
 
11155
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11156
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11157
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11158
    esac
 
11159
  else :
 
11160
    # compilation failed
 
11161
    lt_cv_dlopen_self=no
 
11162
  fi
 
11163
fi
 
11164
rm -fr conftest*
 
11165
 
 
11166
 
 
11167
fi
 
11168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11169
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11170
 
 
11171
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11172
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11173
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11174
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11175
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11176
  $as_echo_n "(cached) " >&6
 
11177
else
 
11178
          if test "$cross_compiling" = yes; then :
 
11179
  lt_cv_dlopen_self_static=cross
 
11180
else
 
11181
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11182
  lt_status=$lt_dlunknown
 
11183
  cat > conftest.$ac_ext <<_LT_EOF
 
11184
#line 11184 "configure"
 
11185
#include "confdefs.h"
 
11186
 
 
11187
#if HAVE_DLFCN_H
 
11188
#include <dlfcn.h>
 
11189
#endif
 
11190
 
 
11191
#include <stdio.h>
 
11192
 
 
11193
#ifdef RTLD_GLOBAL
 
11194
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11195
#else
 
11196
#  ifdef DL_GLOBAL
 
11197
#    define LT_DLGLOBAL         DL_GLOBAL
 
11198
#  else
 
11199
#    define LT_DLGLOBAL         0
 
11200
#  endif
 
11201
#endif
 
11202
 
 
11203
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11204
   find out it does not work in some platform. */
 
11205
#ifndef LT_DLLAZY_OR_NOW
 
11206
#  ifdef RTLD_LAZY
 
11207
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11208
#  else
 
11209
#    ifdef DL_LAZY
 
11210
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11211
#    else
 
11212
#      ifdef RTLD_NOW
 
11213
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11214
#      else
 
11215
#        ifdef DL_NOW
 
11216
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11217
#        else
 
11218
#          define LT_DLLAZY_OR_NOW      0
 
11219
#        endif
 
11220
#      endif
 
11221
#    endif
 
11222
#  endif
 
11223
#endif
 
11224
 
 
11225
void fnord() { int i=42;}
 
11226
int main ()
 
11227
{
 
11228
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11229
  int status = $lt_dlunknown;
 
11230
 
 
11231
  if (self)
 
11232
    {
 
11233
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11234
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11235
      /* dlclose (self); */
 
11236
    }
 
11237
  else
 
11238
    puts (dlerror ());
 
11239
 
 
11240
  return status;
 
11241
}
 
11242
_LT_EOF
 
11243
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11244
  (eval $ac_link) 2>&5
 
11245
  ac_status=$?
 
11246
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11247
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11248
    (./conftest; exit; ) >&5 2>/dev/null
 
11249
    lt_status=$?
 
11250
    case x$lt_status in
 
11251
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11252
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11253
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11254
    esac
 
11255
  else :
 
11256
    # compilation failed
 
11257
    lt_cv_dlopen_self_static=no
 
11258
  fi
 
11259
fi
 
11260
rm -fr conftest*
 
11261
 
 
11262
 
 
11263
fi
 
11264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11265
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11266
    fi
 
11267
 
 
11268
    CPPFLAGS="$save_CPPFLAGS"
 
11269
    LDFLAGS="$save_LDFLAGS"
 
11270
    LIBS="$save_LIBS"
 
11271
    ;;
 
11272
  esac
 
11273
 
 
11274
  case $lt_cv_dlopen_self in
 
11275
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11276
  *) enable_dlopen_self=unknown ;;
 
11277
  esac
 
11278
 
 
11279
  case $lt_cv_dlopen_self_static in
 
11280
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11281
  *) enable_dlopen_self_static=unknown ;;
 
11282
  esac
 
11283
fi
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
 
 
11294
 
 
11295
 
 
11296
 
 
11297
 
 
11298
 
 
11299
 
 
11300
 
 
11301
striplib=
 
11302
old_striplib=
 
11303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11304
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11305
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11306
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11307
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11308
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11309
$as_echo "yes" >&6; }
 
11310
else
 
11311
# FIXME - insert some real tests, host_os isn't really good enough
 
11312
  case $host_os in
 
11313
  darwin*)
 
11314
    if test -n "$STRIP" ; then
 
11315
      striplib="$STRIP -x"
 
11316
      old_striplib="$STRIP -S"
 
11317
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11318
$as_echo "yes" >&6; }
 
11319
    else
 
11320
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11321
$as_echo "no" >&6; }
 
11322
    fi
 
11323
    ;;
 
11324
  *)
 
11325
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11326
$as_echo "no" >&6; }
 
11327
    ;;
 
11328
  esac
 
11329
fi
 
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
 
 
11337
 
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
  # Report which library types will actually be built
 
11343
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11344
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11345
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11346
$as_echo "$can_build_shared" >&6; }
 
11347
 
 
11348
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11349
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11350
  test "$can_build_shared" = "no" && enable_shared=no
 
11351
 
 
11352
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11353
  # are all built from PIC.
 
11354
  case $host_os in
 
11355
  aix3*)
 
11356
    test "$enable_shared" = yes && enable_static=no
 
11357
    if test -n "$RANLIB"; then
 
11358
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11359
      postinstall_cmds='$RANLIB $lib'
 
11360
    fi
 
11361
    ;;
 
11362
 
 
11363
  aix[4-9]*)
 
11364
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11365
      test "$enable_shared" = yes && enable_static=no
 
11366
    fi
 
11367
    ;;
 
11368
  esac
 
11369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11370
$as_echo "$enable_shared" >&6; }
 
11371
 
 
11372
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11373
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11374
  # Make sure either enable_shared or enable_static is yes.
 
11375
  test "$enable_shared" = yes || enable_static=yes
 
11376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11377
$as_echo "$enable_static" >&6; }
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
fi
 
11383
ac_ext=c
 
11384
ac_cpp='$CPP $CPPFLAGS'
 
11385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11388
 
 
11389
CC="$lt_save_CC"
 
11390
 
 
11391
 
 
11392
ac_ext=cpp
 
11393
ac_cpp='$CXXCPP $CPPFLAGS'
 
11394
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11395
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11396
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11397
 
 
11398
archive_cmds_need_lc_CXX=no
 
11399
allow_undefined_flag_CXX=
 
11400
always_export_symbols_CXX=no
 
11401
archive_expsym_cmds_CXX=
 
11402
compiler_needs_object_CXX=no
 
11403
export_dynamic_flag_spec_CXX=
 
11404
hardcode_direct_CXX=no
 
11405
hardcode_direct_absolute_CXX=no
 
11406
hardcode_libdir_flag_spec_CXX=
 
11407
hardcode_libdir_flag_spec_ld_CXX=
 
11408
hardcode_libdir_separator_CXX=
 
11409
hardcode_minus_L_CXX=no
 
11410
hardcode_shlibpath_var_CXX=unsupported
 
11411
hardcode_automatic_CXX=no
 
11412
inherit_rpath_CXX=no
 
11413
module_cmds_CXX=
 
11414
module_expsym_cmds_CXX=
 
11415
link_all_deplibs_CXX=unknown
 
11416
old_archive_cmds_CXX=$old_archive_cmds
 
11417
no_undefined_flag_CXX=
 
11418
whole_archive_flag_spec_CXX=
 
11419
enable_shared_with_static_runtimes_CXX=no
 
11420
 
 
11421
# Source file extension for C++ test sources.
 
11422
ac_ext=cpp
 
11423
 
 
11424
# Object file extension for compiled C++ test sources.
 
11425
objext=o
 
11426
objext_CXX=$objext
 
11427
 
 
11428
# No sense in running all these tests if we already determined that
 
11429
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11430
# are currently assumed to apply to all compilers on this platform,
 
11431
# and will be corrupted by setting them based on a non-working compiler.
 
11432
if test "$_lt_caught_CXX_error" != yes; then
 
11433
  # Code to be used in simple compile tests
 
11434
  lt_simple_compile_test_code="int some_variable = 0;"
 
11435
 
 
11436
  # Code to be used in simple link tests
 
11437
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11438
 
 
11439
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
# If no C compiler was specified, use CC.
 
11447
LTCC=${LTCC-"$CC"}
 
11448
 
 
11449
# If no C compiler flags were specified, use CFLAGS.
 
11450
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11451
 
 
11452
# Allow CC to be a program name with arguments.
 
11453
compiler=$CC
 
11454
 
 
11455
 
 
11456
  # save warnings/boilerplate of simple test code
 
11457
  ac_outfile=conftest.$ac_objext
 
11458
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11459
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11460
_lt_compiler_boilerplate=`cat conftest.err`
 
11461
$RM conftest*
 
11462
 
 
11463
  ac_outfile=conftest.$ac_objext
 
11464
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11465
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11466
_lt_linker_boilerplate=`cat conftest.err`
 
11467
$RM -r conftest*
 
11468
 
 
11469
 
 
11470
  # Allow CC to be a program name with arguments.
 
11471
  lt_save_CC=$CC
 
11472
  lt_save_LD=$LD
 
11473
  lt_save_GCC=$GCC
 
11474
  GCC=$GXX
 
11475
  lt_save_with_gnu_ld=$with_gnu_ld
 
11476
  lt_save_path_LD=$lt_cv_path_LD
 
11477
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11478
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11479
  else
 
11480
    $as_unset lt_cv_prog_gnu_ld
 
11481
  fi
 
11482
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
11483
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
11484
  else
 
11485
    $as_unset lt_cv_path_LD
 
11486
  fi
 
11487
  test -z "${LDCXX+set}" || LD=$LDCXX
 
11488
  CC=${CXX-"c++"}
 
11489
  compiler=$CC
 
11490
  compiler_CXX=$CC
 
11491
  for cc_temp in $compiler""; do
 
11492
  case $cc_temp in
 
11493
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11494
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11495
    \-*) ;;
 
11496
    *) break;;
 
11497
  esac
 
11498
done
 
11499
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11500
 
 
11501
 
 
11502
  if test -n "$compiler"; then
 
11503
    # We don't want -fno-exception when compiling C++ code, so set the
 
11504
    # no_builtin_flag separately
 
11505
    if test "$GXX" = yes; then
 
11506
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11507
    else
 
11508
      lt_prog_compiler_no_builtin_flag_CXX=
 
11509
    fi
 
11510
 
 
11511
    if test "$GXX" = yes; then
 
11512
      # Set up default GNU C++ configuration
 
11513
 
 
11514
 
 
11515
 
 
11516
# Check whether --with-gnu-ld was given.
 
11517
if test "${with_gnu_ld+set}" = set; then :
 
11518
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11519
else
 
11520
  with_gnu_ld=no
 
11521
fi
 
11522
 
 
11523
ac_prog=ld
 
11524
if test "$GCC" = yes; then
 
11525
  # Check if gcc -print-prog-name=ld gives a path.
 
11526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
11527
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11528
  case $host in
 
11529
  *-*-mingw*)
 
11530
    # gcc leaves a trailing carriage return which upsets mingw
 
11531
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11532
  *)
 
11533
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11534
  esac
 
11535
  case $ac_prog in
 
11536
    # Accept absolute paths.
 
11537
    [\\/]* | ?:[\\/]*)
 
11538
      re_direlt='/[^/][^/]*/\.\./'
 
11539
      # Canonicalize the pathname of ld
 
11540
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
11541
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
11542
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
11543
      done
 
11544
      test -z "$LD" && LD="$ac_prog"
 
11545
      ;;
 
11546
  "")
 
11547
    # If it fails, then pretend we aren't using GCC.
 
11548
    ac_prog=ld
 
11549
    ;;
 
11550
  *)
 
11551
    # If it is relative, then search for the first ld in PATH.
 
11552
    with_gnu_ld=unknown
 
11553
    ;;
 
11554
  esac
 
11555
elif test "$with_gnu_ld" = yes; then
 
11556
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
11557
$as_echo_n "checking for GNU ld... " >&6; }
 
11558
else
 
11559
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
11560
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11561
fi
 
11562
if test "${lt_cv_path_LD+set}" = set; then :
 
11563
  $as_echo_n "(cached) " >&6
 
11564
else
 
11565
  if test -z "$LD"; then
 
11566
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11567
  for ac_dir in $PATH; do
 
11568
    IFS="$lt_save_ifs"
 
11569
    test -z "$ac_dir" && ac_dir=.
 
11570
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11571
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11572
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11573
      # but apparently some variants of GNU ld only accept -v.
 
11574
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11575
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11576
      *GNU* | *'with BFD'*)
 
11577
        test "$with_gnu_ld" != no && break
 
11578
        ;;
 
11579
      *)
 
11580
        test "$with_gnu_ld" != yes && break
 
11581
        ;;
 
11582
      esac
 
11583
    fi
 
11584
  done
 
11585
  IFS="$lt_save_ifs"
 
11586
else
 
11587
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11588
fi
 
11589
fi
 
11590
 
 
11591
LD="$lt_cv_path_LD"
 
11592
if test -n "$LD"; then
 
11593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
11594
$as_echo "$LD" >&6; }
 
11595
else
 
11596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11597
$as_echo "no" >&6; }
 
11598
fi
 
11599
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
11600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
11601
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11602
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
11603
  $as_echo_n "(cached) " >&6
 
11604
else
 
11605
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11606
case `$LD -v 2>&1 </dev/null` in
 
11607
*GNU* | *'with BFD'*)
 
11608
  lt_cv_prog_gnu_ld=yes
 
11609
  ;;
 
11610
*)
 
11611
  lt_cv_prog_gnu_ld=no
 
11612
  ;;
 
11613
esac
 
11614
fi
 
11615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
11616
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11617
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11618
 
 
11619
 
 
11620
 
 
11621
 
 
11622
 
 
11623
 
 
11624
 
 
11625
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11626
      # archiving commands below assume that GNU ld is being used.
 
11627
      if test "$with_gnu_ld" = yes; then
 
11628
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11629
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11630
 
 
11631
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11632
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11633
 
 
11634
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
11635
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11636
        #     investigate it a little bit more. (MM)
 
11637
        wlarc='${wl}'
 
11638
 
 
11639
        # ancient GNU ld didn't support --whole-archive et. al.
 
11640
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
11641
          $GREP 'no-whole-archive' > /dev/null; then
 
11642
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11643
        else
 
11644
          whole_archive_flag_spec_CXX=
 
11645
        fi
 
11646
      else
 
11647
        with_gnu_ld=no
 
11648
        wlarc=
 
11649
 
 
11650
        # A generic and very simple default shared library creation
 
11651
        # command for GNU C++ for the case where it uses the native
 
11652
        # linker, instead of GNU ld.  If possible, this setting should
 
11653
        # overridden to take advantage of the native linker features on
 
11654
        # the platform it is being used on.
 
11655
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11656
      fi
 
11657
 
 
11658
      # Commands to make compiler produce verbose output that lists
 
11659
      # what "hidden" libraries, object files and flags are used when
 
11660
      # linking a shared library.
 
11661
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
11662
 
 
11663
    else
 
11664
      GXX=no
 
11665
      with_gnu_ld=no
 
11666
      wlarc=
 
11667
    fi
 
11668
 
 
11669
    # PORTME: fill in a description of your system's C++ link characteristics
 
11670
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11671
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11672
    ld_shlibs_CXX=yes
 
11673
    case $host_os in
 
11674
      aix3*)
 
11675
        # FIXME: insert proper C++ library support
 
11676
        ld_shlibs_CXX=no
 
11677
        ;;
 
11678
      aix[4-9]*)
 
11679
        if test "$host_cpu" = ia64; then
 
11680
          # On IA64, the linker does run time linking by default, so we don't
 
11681
          # have to do anything special.
 
11682
          aix_use_runtimelinking=no
 
11683
          exp_sym_flag='-Bexport'
 
11684
          no_entry_flag=""
 
11685
        else
 
11686
          aix_use_runtimelinking=no
 
11687
 
 
11688
          # Test if we are trying to use run time linking or normal
 
11689
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11690
          # need to do runtime linking.
 
11691
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11692
            for ld_flag in $LDFLAGS; do
 
11693
              case $ld_flag in
 
11694
              *-brtl*)
 
11695
                aix_use_runtimelinking=yes
 
11696
                break
 
11697
                ;;
 
11698
              esac
 
11699
            done
 
11700
            ;;
 
11701
          esac
 
11702
 
 
11703
          exp_sym_flag='-bexport'
 
11704
          no_entry_flag='-bnoentry'
 
11705
        fi
 
11706
 
 
11707
        # When large executables or shared objects are built, AIX ld can
 
11708
        # have problems creating the table of contents.  If linking a library
 
11709
        # or program results in "error TOC overflow" add -mminimal-toc to
 
11710
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11711
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11712
 
 
11713
        archive_cmds_CXX=''
 
11714
        hardcode_direct_CXX=yes
 
11715
        hardcode_direct_absolute_CXX=yes
 
11716
        hardcode_libdir_separator_CXX=':'
 
11717
        link_all_deplibs_CXX=yes
 
11718
        file_list_spec_CXX='${wl}-f,'
 
11719
 
 
11720
        if test "$GXX" = yes; then
 
11721
          case $host_os in aix4.[012]|aix4.[012].*)
 
11722
          # We only want to do this on AIX 4.2 and lower, the check
 
11723
          # below for broken collect2 doesn't work under 4.3+
 
11724
          collect2name=`${CC} -print-prog-name=collect2`
 
11725
          if test -f "$collect2name" &&
 
11726
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
11727
          then
 
11728
            # We have reworked collect2
 
11729
            :
 
11730
          else
 
11731
            # We have old collect2
 
11732
            hardcode_direct_CXX=unsupported
 
11733
            # It fails to find uninstalled libraries when the uninstalled
 
11734
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
11735
            # to unsupported forces relinking
 
11736
            hardcode_minus_L_CXX=yes
 
11737
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11738
            hardcode_libdir_separator_CXX=
 
11739
          fi
 
11740
          esac
 
11741
          shared_flag='-shared'
 
11742
          if test "$aix_use_runtimelinking" = yes; then
 
11743
            shared_flag="$shared_flag "'${wl}-G'
 
11744
          fi
 
11745
        else
 
11746
          # not using gcc
 
11747
          if test "$host_cpu" = ia64; then
 
11748
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11749
          # chokes on -Wl,-G. The following line is correct:
 
11750
          shared_flag='-G'
 
11751
          else
 
11752
            if test "$aix_use_runtimelinking" = yes; then
 
11753
              shared_flag='${wl}-G'
 
11754
            else
 
11755
              shared_flag='${wl}-bM:SRE'
 
11756
            fi
 
11757
          fi
 
11758
        fi
 
11759
 
 
11760
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
11761
        # It seems that -bexpall does not export symbols beginning with
 
11762
        # underscore (_), so it is better to generate a list of symbols to
 
11763
        # export.
 
11764
        always_export_symbols_CXX=yes
 
11765
        if test "$aix_use_runtimelinking" = yes; then
 
11766
          # Warning - without using the other runtime loading flags (-brtl),
 
11767
          # -berok will link without error, but may produce a broken library.
 
11768
          allow_undefined_flag_CXX='-berok'
 
11769
          # Determine the default libpath from the value encoded in an empty
 
11770
          # executable.
 
11771
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11772
/* end confdefs.h.  */
 
11773
 
 
11774
int
 
11775
main ()
 
11776
{
 
11777
 
 
11778
  ;
 
11779
  return 0;
 
11780
}
 
11781
_ACEOF
 
11782
if ac_fn_cxx_try_link "$LINENO"; then :
 
11783
 
 
11784
lt_aix_libpath_sed='
 
11785
    /Import File Strings/,/^$/ {
 
11786
        /^0/ {
 
11787
            s/^0  *\(.*\)$/\1/
 
11788
            p
 
11789
        }
 
11790
    }'
 
11791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11792
# Check for a 64-bit object if we didn't find anything.
 
11793
if test -z "$aix_libpath"; then
 
11794
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11795
fi
 
11796
fi
 
11797
rm -f core conftest.err conftest.$ac_objext \
 
11798
    conftest$ac_exeext conftest.$ac_ext
 
11799
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11800
 
 
11801
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11802
 
 
11803
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11804
        else
 
11805
          if test "$host_cpu" = ia64; then
 
11806
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11807
            allow_undefined_flag_CXX="-z nodefs"
 
11808
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11809
          else
 
11810
            # Determine the default libpath from the value encoded in an
 
11811
            # empty executable.
 
11812
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11813
/* end confdefs.h.  */
 
11814
 
 
11815
int
 
11816
main ()
 
11817
{
 
11818
 
 
11819
  ;
 
11820
  return 0;
 
11821
}
 
11822
_ACEOF
 
11823
if ac_fn_cxx_try_link "$LINENO"; then :
 
11824
 
 
11825
lt_aix_libpath_sed='
 
11826
    /Import File Strings/,/^$/ {
 
11827
        /^0/ {
 
11828
            s/^0  *\(.*\)$/\1/
 
11829
            p
 
11830
        }
 
11831
    }'
 
11832
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11833
# Check for a 64-bit object if we didn't find anything.
 
11834
if test -z "$aix_libpath"; then
 
11835
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11836
fi
 
11837
fi
 
11838
rm -f core conftest.err conftest.$ac_objext \
 
11839
    conftest$ac_exeext conftest.$ac_ext
 
11840
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11841
 
 
11842
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11843
            # Warning - without using the other run time loading flags,
 
11844
            # -berok will link without error, but may produce a broken library.
 
11845
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
11846
            allow_undefined_flag_CXX=' ${wl}-berok'
 
11847
            # Exported symbols can be pulled into shared objects from archives
 
11848
            whole_archive_flag_spec_CXX='$convenience'
 
11849
            archive_cmds_need_lc_CXX=yes
 
11850
            # This is similar to how AIX traditionally builds its shared
 
11851
            # libraries.
 
11852
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11853
          fi
 
11854
        fi
 
11855
        ;;
 
11856
 
 
11857
      beos*)
 
11858
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11859
          allow_undefined_flag_CXX=unsupported
 
11860
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11861
          # support --undefined.  This deserves some investigation.  FIXME
 
11862
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11863
        else
 
11864
          ld_shlibs_CXX=no
 
11865
        fi
 
11866
        ;;
 
11867
 
 
11868
      chorus*)
 
11869
        case $cc_basename in
 
11870
          *)
 
11871
          # FIXME: insert proper C++ library support
 
11872
          ld_shlibs_CXX=no
 
11873
          ;;
 
11874
        esac
 
11875
        ;;
 
11876
 
 
11877
      cygwin* | mingw* | pw32* | cegcc*)
 
11878
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11879
        # as there is no search path for DLLs.
 
11880
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11881
        allow_undefined_flag_CXX=unsupported
 
11882
        always_export_symbols_CXX=no
 
11883
        enable_shared_with_static_runtimes_CXX=yes
 
11884
 
 
11885
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
11886
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11887
          # If the export-symbols file already is a .def file (1st line
 
11888
          # is EXPORTS), use it as is; otherwise, prepend...
 
11889
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11890
            cp $export_symbols $output_objdir/$soname.def;
 
11891
          else
 
11892
            echo EXPORTS > $output_objdir/$soname.def;
 
11893
            cat $export_symbols >> $output_objdir/$soname.def;
 
11894
          fi~
 
11895
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11896
        else
 
11897
          ld_shlibs_CXX=no
 
11898
        fi
 
11899
        ;;
 
11900
      darwin* | rhapsody*)
 
11901
 
 
11902
 
 
11903
  archive_cmds_need_lc_CXX=no
 
11904
  hardcode_direct_CXX=no
 
11905
  hardcode_automatic_CXX=yes
 
11906
  hardcode_shlibpath_var_CXX=unsupported
 
11907
  whole_archive_flag_spec_CXX=''
 
11908
  link_all_deplibs_CXX=yes
 
11909
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11910
  case $cc_basename in
 
11911
     ifort*) _lt_dar_can_shared=yes ;;
 
11912
     *) _lt_dar_can_shared=$GCC ;;
 
11913
  esac
 
11914
  if test "$_lt_dar_can_shared" = "yes"; then
 
11915
    output_verbose_link_cmd=echo
 
11916
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11917
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11918
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11919
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11920
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11921
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11922
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
11923
    fi
 
11924
 
 
11925
  else
 
11926
  ld_shlibs_CXX=no
 
11927
  fi
 
11928
 
 
11929
        ;;
 
11930
 
 
11931
      dgux*)
 
11932
        case $cc_basename in
 
11933
          ec++*)
 
11934
            # FIXME: insert proper C++ library support
 
11935
            ld_shlibs_CXX=no
 
11936
            ;;
 
11937
          ghcx*)
 
11938
            # Green Hills C++ Compiler
 
11939
            # FIXME: insert proper C++ library support
 
11940
            ld_shlibs_CXX=no
 
11941
            ;;
 
11942
          *)
 
11943
            # FIXME: insert proper C++ library support
 
11944
            ld_shlibs_CXX=no
 
11945
            ;;
 
11946
        esac
 
11947
        ;;
 
11948
 
 
11949
      freebsd[12]*)
 
11950
        # C++ shared libraries reported to be fairly broken before
 
11951
        # switch to ELF
 
11952
        ld_shlibs_CXX=no
 
11953
        ;;
 
11954
 
 
11955
      freebsd-elf*)
 
11956
        archive_cmds_need_lc_CXX=no
 
11957
        ;;
 
11958
 
 
11959
      freebsd* | dragonfly*)
 
11960
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11961
        # conventions
 
11962
        ld_shlibs_CXX=yes
 
11963
        ;;
 
11964
 
 
11965
      gnu*)
 
11966
        ;;
 
11967
 
 
11968
      hpux9*)
 
11969
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11970
        hardcode_libdir_separator_CXX=:
 
11971
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11972
        hardcode_direct_CXX=yes
 
11973
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11974
                                             # but as the default
 
11975
                                             # location of the library.
 
11976
 
 
11977
        case $cc_basename in
 
11978
          CC*)
 
11979
            # FIXME: insert proper C++ library support
 
11980
            ld_shlibs_CXX=no
 
11981
            ;;
 
11982
          aCC*)
 
11983
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11984
            # Commands to make compiler produce verbose output that lists
 
11985
            # what "hidden" libraries, object files and flags are used when
 
11986
            # linking a shared library.
 
11987
            #
 
11988
            # There doesn't appear to be a way to prevent this compiler from
 
11989
            # explicitly linking system object files so we need to strip them
 
11990
            # from the output so that they don't get included in the library
 
11991
            # dependencies.
 
11992
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
11993
            ;;
 
11994
          *)
 
11995
            if test "$GXX" = yes; then
 
11996
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11997
            else
 
11998
              # FIXME: insert proper C++ library support
 
11999
              ld_shlibs_CXX=no
 
12000
            fi
 
12001
            ;;
 
12002
        esac
 
12003
        ;;
 
12004
 
 
12005
      hpux10*|hpux11*)
 
12006
        if test $with_gnu_ld = no; then
 
12007
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12008
          hardcode_libdir_separator_CXX=:
 
12009
 
 
12010
          case $host_cpu in
 
12011
            hppa*64*|ia64*)
 
12012
              ;;
 
12013
            *)
 
12014
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12015
              ;;
 
12016
          esac
 
12017
        fi
 
12018
        case $host_cpu in
 
12019
          hppa*64*|ia64*)
 
12020
            hardcode_direct_CXX=no
 
12021
            hardcode_shlibpath_var_CXX=no
 
12022
            ;;
 
12023
          *)
 
12024
            hardcode_direct_CXX=yes
 
12025
            hardcode_direct_absolute_CXX=yes
 
12026
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12027
                                                 # but as the default
 
12028
                                                 # location of the library.
 
12029
            ;;
 
12030
        esac
 
12031
 
 
12032
        case $cc_basename in
 
12033
          CC*)
 
12034
            # FIXME: insert proper C++ library support
 
12035
            ld_shlibs_CXX=no
 
12036
            ;;
 
12037
          aCC*)
 
12038
            case $host_cpu in
 
12039
              hppa*64*)
 
12040
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12041
                ;;
 
12042
              ia64*)
 
12043
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12044
                ;;
 
12045
              *)
 
12046
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12047
                ;;
 
12048
            esac
 
12049
            # Commands to make compiler produce verbose output that lists
 
12050
            # what "hidden" libraries, object files and flags are used when
 
12051
            # linking a shared library.
 
12052
            #
 
12053
            # There doesn't appear to be a way to prevent this compiler from
 
12054
            # explicitly linking system object files so we need to strip them
 
12055
            # from the output so that they don't get included in the library
 
12056
            # dependencies.
 
12057
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12058
            ;;
 
12059
          *)
 
12060
            if test "$GXX" = yes; then
 
12061
              if test $with_gnu_ld = no; then
 
12062
                case $host_cpu in
 
12063
                  hppa*64*)
 
12064
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12065
                    ;;
 
12066
                  ia64*)
 
12067
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12068
                    ;;
 
12069
                  *)
 
12070
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12071
                    ;;
 
12072
                esac
 
12073
              fi
 
12074
            else
 
12075
              # FIXME: insert proper C++ library support
 
12076
              ld_shlibs_CXX=no
 
12077
            fi
 
12078
            ;;
 
12079
        esac
 
12080
        ;;
 
12081
 
 
12082
      interix[3-9]*)
 
12083
        hardcode_direct_CXX=no
 
12084
        hardcode_shlibpath_var_CXX=no
 
12085
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12086
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12087
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12088
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12089
        # default) and relocated if they conflict, which is a slow very memory
 
12090
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12091
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12092
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12093
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12094
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12095
        ;;
 
12096
      irix5* | irix6*)
 
12097
        case $cc_basename in
 
12098
          CC*)
 
12099
            # SGI C++
 
12100
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12101
 
 
12102
            # Archives containing C++ object files must be created using
 
12103
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12104
            # necessary to make sure instantiated templates are included
 
12105
            # in the archive.
 
12106
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12107
            ;;
 
12108
          *)
 
12109
            if test "$GXX" = yes; then
 
12110
              if test "$with_gnu_ld" = no; then
 
12111
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
 
12112
              else
 
12113
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
12114
              fi
 
12115
            fi
 
12116
            link_all_deplibs_CXX=yes
 
12117
            ;;
 
12118
        esac
 
12119
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12120
        hardcode_libdir_separator_CXX=:
 
12121
        inherit_rpath_CXX=yes
 
12122
        ;;
 
12123
 
 
12124
      linux* | k*bsd*-gnu)
 
12125
        case $cc_basename in
 
12126
          KCC*)
 
12127
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12128
 
 
12129
            # KCC will only create a shared library if the output file
 
12130
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12131
            # to its proper name (with version) after linking.
 
12132
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12133
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
12134
            # Commands to make compiler produce verbose output that lists
 
12135
            # what "hidden" libraries, object files and flags are used when
 
12136
            # linking a shared library.
 
12137
            #
 
12138
            # There doesn't appear to be a way to prevent this compiler from
 
12139
            # explicitly linking system object files so we need to strip them
 
12140
            # from the output so that they don't get included in the library
 
12141
            # dependencies.
 
12142
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12143
 
 
12144
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12145
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12146
 
 
12147
            # Archives containing C++ object files must be created using
 
12148
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12149
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12150
            ;;
 
12151
          icpc* | ecpc* )
 
12152
            # Intel C++
 
12153
            with_gnu_ld=yes
 
12154
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12155
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12156
            # earlier do not add the objects themselves.
 
12157
            case `$CC -V 2>&1` in
 
12158
              *"Version 7."*)
 
12159
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12160
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12161
                ;;
 
12162
              *)  # Version 8.0 or newer
 
12163
                tmp_idyn=
 
12164
                case $host_cpu in
 
12165
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12166
                esac
 
12167
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12168
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12169
                ;;
 
12170
            esac
 
12171
            archive_cmds_need_lc_CXX=no
 
12172
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12173
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12174
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12175
            ;;
 
12176
          pgCC* | pgcpp*)
 
12177
            # Portland Group C++ compiler
 
12178
            case `$CC -V` in
 
12179
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
12180
              prelink_cmds_CXX='tpldir=Template.dir~
 
12181
                rm -rf $tpldir~
 
12182
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12183
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
12184
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12185
                rm -rf $tpldir~
 
12186
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12187
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
12188
                $RANLIB $oldlib'
 
12189
              archive_cmds_CXX='tpldir=Template.dir~
 
12190
                rm -rf $tpldir~
 
12191
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12192
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12193
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12194
                rm -rf $tpldir~
 
12195
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12196
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12197
              ;;
 
12198
            *) # Version 6 will use weak symbols
 
12199
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12200
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12201
              ;;
 
12202
            esac
 
12203
 
 
12204
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12205
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12206
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12207
            ;;
 
12208
          cxx*)
 
12209
            # Compaq C++
 
12210
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12211
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
12212
 
 
12213
            runpath_var=LD_RUN_PATH
 
12214
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12215
            hardcode_libdir_separator_CXX=:
 
12216
 
 
12217
            # Commands to make compiler produce verbose output that lists
 
12218
            # what "hidden" libraries, object files and flags are used when
 
12219
            # linking a shared library.
 
12220
            #
 
12221
            # There doesn't appear to be a way to prevent this compiler from
 
12222
            # explicitly linking system object files so we need to strip them
 
12223
            # from the output so that they don't get included in the library
 
12224
            # dependencies.
 
12225
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12226
            ;;
 
12227
          xl*)
 
12228
            # IBM XL 8.0 on PPC, with GNU ld
 
12229
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12230
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12231
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12232
            if test "x$supports_anon_versioning" = xyes; then
 
12233
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12234
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12235
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12236
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12237
            fi
 
12238
            ;;
 
12239
          *)
 
12240
            case `$CC -V 2>&1 | sed 5q` in
 
12241
            *Sun\ C*)
 
12242
              # Sun C++ 5.9
 
12243
              no_undefined_flag_CXX=' -zdefs'
 
12244
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12245
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12246
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12247
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12248
              compiler_needs_object_CXX=yes
 
12249
 
 
12250
              # Not sure whether something based on
 
12251
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12252
              # would be better.
 
12253
              output_verbose_link_cmd='echo'
 
12254
 
 
12255
              # Archives containing C++ object files must be created using
 
12256
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12257
              # necessary to make sure instantiated templates are included
 
12258
              # in the archive.
 
12259
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12260
              ;;
 
12261
            esac
 
12262
            ;;
 
12263
        esac
 
12264
        ;;
 
12265
 
 
12266
      lynxos*)
 
12267
        # FIXME: insert proper C++ library support
 
12268
        ld_shlibs_CXX=no
 
12269
        ;;
 
12270
 
 
12271
      m88k*)
 
12272
        # FIXME: insert proper C++ library support
 
12273
        ld_shlibs_CXX=no
 
12274
        ;;
 
12275
 
 
12276
      mvs*)
 
12277
        case $cc_basename in
 
12278
          cxx*)
 
12279
            # FIXME: insert proper C++ library support
 
12280
            ld_shlibs_CXX=no
 
12281
            ;;
 
12282
          *)
 
12283
            # FIXME: insert proper C++ library support
 
12284
            ld_shlibs_CXX=no
 
12285
            ;;
 
12286
        esac
 
12287
        ;;
 
12288
 
 
12289
      netbsd*)
 
12290
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12291
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12292
          wlarc=
 
12293
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12294
          hardcode_direct_CXX=yes
 
12295
          hardcode_shlibpath_var_CXX=no
 
12296
        fi
 
12297
        # Workaround some broken pre-1.5 toolchains
 
12298
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12299
        ;;
 
12300
 
 
12301
      *nto* | *qnx*)
 
12302
        ld_shlibs_CXX=yes
 
12303
        ;;
 
12304
 
 
12305
      openbsd2*)
 
12306
        # C++ shared libraries are fairly broken
 
12307
        ld_shlibs_CXX=no
 
12308
        ;;
 
12309
 
 
12310
      openbsd*)
 
12311
        if test -f /usr/libexec/ld.so; then
 
12312
          hardcode_direct_CXX=yes
 
12313
          hardcode_shlibpath_var_CXX=no
 
12314
          hardcode_direct_absolute_CXX=yes
 
12315
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12316
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12317
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12318
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12319
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12320
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12321
          fi
 
12322
          output_verbose_link_cmd=echo
 
12323
        else
 
12324
          ld_shlibs_CXX=no
 
12325
        fi
 
12326
        ;;
 
12327
 
 
12328
      osf3* | osf4* | osf5*)
 
12329
        case $cc_basename in
 
12330
          KCC*)
 
12331
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12332
 
 
12333
            # KCC will only create a shared library if the output file
 
12334
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12335
            # to its proper name (with version) after linking.
 
12336
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12337
 
 
12338
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12339
            hardcode_libdir_separator_CXX=:
 
12340
 
 
12341
            # Archives containing C++ object files must be created using
 
12342
            # the KAI C++ compiler.
 
12343
            case $host in
 
12344
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12345
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12346
            esac
 
12347
            ;;
 
12348
          RCC*)
 
12349
            # Rational C++ 2.4.1
 
12350
            # FIXME: insert proper C++ library support
 
12351
            ld_shlibs_CXX=no
 
12352
            ;;
 
12353
          cxx*)
 
12354
            case $host in
 
12355
              osf3*)
 
12356
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12357
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12358
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12359
                ;;
 
12360
              *)
 
12361
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12362
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12363
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12364
                  echo "-hidden">> $lib.exp~
 
12365
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
12366
                  $RM $lib.exp'
 
12367
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12368
                ;;
 
12369
            esac
 
12370
 
 
12371
            hardcode_libdir_separator_CXX=:
 
12372
 
 
12373
            # Commands to make compiler produce verbose output that lists
 
12374
            # what "hidden" libraries, object files and flags are used when
 
12375
            # linking a shared library.
 
12376
            #
 
12377
            # There doesn't appear to be a way to prevent this compiler from
 
12378
            # explicitly linking system object files so we need to strip them
 
12379
            # from the output so that they don't get included in the library
 
12380
            # dependencies.
 
12381
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12382
            ;;
 
12383
          *)
 
12384
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12385
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12386
              case $host in
 
12387
                osf3*)
 
12388
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12389
                  ;;
 
12390
                *)
 
12391
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12392
                  ;;
 
12393
              esac
 
12394
 
 
12395
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12396
              hardcode_libdir_separator_CXX=:
 
12397
 
 
12398
              # Commands to make compiler produce verbose output that lists
 
12399
              # what "hidden" libraries, object files and flags are used when
 
12400
              # linking a shared library.
 
12401
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12402
 
 
12403
            else
 
12404
              # FIXME: insert proper C++ library support
 
12405
              ld_shlibs_CXX=no
 
12406
            fi
 
12407
            ;;
 
12408
        esac
 
12409
        ;;
 
12410
 
 
12411
      psos*)
 
12412
        # FIXME: insert proper C++ library support
 
12413
        ld_shlibs_CXX=no
 
12414
        ;;
 
12415
 
 
12416
      sunos4*)
 
12417
        case $cc_basename in
 
12418
          CC*)
 
12419
            # Sun C++ 4.x
 
12420
            # FIXME: insert proper C++ library support
 
12421
            ld_shlibs_CXX=no
 
12422
            ;;
 
12423
          lcc*)
 
12424
            # Lucid
 
12425
            # FIXME: insert proper C++ library support
 
12426
            ld_shlibs_CXX=no
 
12427
            ;;
 
12428
          *)
 
12429
            # FIXME: insert proper C++ library support
 
12430
            ld_shlibs_CXX=no
 
12431
            ;;
 
12432
        esac
 
12433
        ;;
 
12434
 
 
12435
      solaris*)
 
12436
        case $cc_basename in
 
12437
          CC*)
 
12438
            # Sun C++ 4.2, 5.x and Centerline C++
 
12439
            archive_cmds_need_lc_CXX=yes
 
12440
            no_undefined_flag_CXX=' -zdefs'
 
12441
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12442
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12443
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12444
 
 
12445
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12446
            hardcode_shlibpath_var_CXX=no
 
12447
            case $host_os in
 
12448
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12449
              *)
 
12450
                # The compiler driver will combine and reorder linker options,
 
12451
                # but understands `-z linker_flag'.
 
12452
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12453
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12454
                ;;
 
12455
            esac
 
12456
            link_all_deplibs_CXX=yes
 
12457
 
 
12458
            output_verbose_link_cmd='echo'
 
12459
 
 
12460
            # Archives containing C++ object files must be created using
 
12461
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12462
            # necessary to make sure instantiated templates are included
 
12463
            # in the archive.
 
12464
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12465
            ;;
 
12466
          gcx*)
 
12467
            # Green Hills C++ Compiler
 
12468
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12469
 
 
12470
            # The C++ compiler must be used to create the archive.
 
12471
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12472
            ;;
 
12473
          *)
 
12474
            # GNU C++ compiler with Solaris linker
 
12475
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12476
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12477
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
12478
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12479
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12480
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12481
 
 
12482
                # Commands to make compiler produce verbose output that lists
 
12483
                # what "hidden" libraries, object files and flags are used when
 
12484
                # linking a shared library.
 
12485
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12486
              else
 
12487
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12488
                # platform.
 
12489
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12490
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12491
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12492
 
 
12493
                # Commands to make compiler produce verbose output that lists
 
12494
                # what "hidden" libraries, object files and flags are used when
 
12495
                # linking a shared library.
 
12496
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12497
              fi
 
12498
 
 
12499
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12500
              case $host_os in
 
12501
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12502
                *)
 
12503
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12504
                  ;;
 
12505
              esac
 
12506
            fi
 
12507
            ;;
 
12508
        esac
 
12509
        ;;
 
12510
 
 
12511
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12512
      no_undefined_flag_CXX='${wl}-z,text'
 
12513
      archive_cmds_need_lc_CXX=no
 
12514
      hardcode_shlibpath_var_CXX=no
 
12515
      runpath_var='LD_RUN_PATH'
 
12516
 
 
12517
      case $cc_basename in
 
12518
        CC*)
 
12519
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12520
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12521
          ;;
 
12522
        *)
 
12523
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12524
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12525
          ;;
 
12526
      esac
 
12527
      ;;
 
12528
 
 
12529
      sysv5* | sco3.2v5* | sco5v6*)
 
12530
        # Note: We can NOT use -z defs as we might desire, because we do not
 
12531
        # link with -lc, and that would cause any symbols used from libc to
 
12532
        # always be unresolved, which means just about no library would
 
12533
        # ever link correctly.  If we're not using GNU ld we use -z text
 
12534
        # though, which does catch some bad symbols but isn't as heavy-handed
 
12535
        # as -z defs.
 
12536
        no_undefined_flag_CXX='${wl}-z,text'
 
12537
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12538
        archive_cmds_need_lc_CXX=no
 
12539
        hardcode_shlibpath_var_CXX=no
 
12540
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
12541
        hardcode_libdir_separator_CXX=':'
 
12542
        link_all_deplibs_CXX=yes
 
12543
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12544
        runpath_var='LD_RUN_PATH'
 
12545
 
 
12546
        case $cc_basename in
 
12547
          CC*)
 
12548
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12549
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12550
            ;;
 
12551
          *)
 
12552
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12553
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12554
            ;;
 
12555
        esac
 
12556
      ;;
 
12557
 
 
12558
      tandem*)
 
12559
        case $cc_basename in
 
12560
          NCC*)
 
12561
            # NonStop-UX NCC 3.20
 
12562
            # FIXME: insert proper C++ library support
 
12563
            ld_shlibs_CXX=no
 
12564
            ;;
 
12565
          *)
 
12566
            # FIXME: insert proper C++ library support
 
12567
            ld_shlibs_CXX=no
 
12568
            ;;
 
12569
        esac
 
12570
        ;;
 
12571
 
 
12572
      vxworks*)
 
12573
        # FIXME: insert proper C++ library support
 
12574
        ld_shlibs_CXX=no
 
12575
        ;;
 
12576
 
 
12577
      *)
 
12578
        # FIXME: insert proper C++ library support
 
12579
        ld_shlibs_CXX=no
 
12580
        ;;
 
12581
    esac
 
12582
 
 
12583
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
12584
$as_echo "$ld_shlibs_CXX" >&6; }
 
12585
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12586
 
 
12587
    GCC_CXX="$GXX"
 
12588
    LD_CXX="$LD"
 
12589
 
 
12590
    ## CAVEAT EMPTOR:
 
12591
    ## There is no encapsulation within the following macros, do not change
 
12592
    ## the running order or otherwise move them around unless you know exactly
 
12593
    ## what you are doing...
 
12594
    # Dependencies to place before and after the object being linked:
 
12595
predep_objects_CXX=
 
12596
postdep_objects_CXX=
 
12597
predeps_CXX=
 
12598
postdeps_CXX=
 
12599
compiler_lib_search_path_CXX=
 
12600
 
 
12601
cat > conftest.$ac_ext <<_LT_EOF
 
12602
class Foo
 
12603
{
 
12604
public:
 
12605
  Foo (void) { a = 0; }
 
12606
private:
 
12607
  int a;
 
12608
};
 
12609
_LT_EOF
 
12610
 
 
12611
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12612
  (eval $ac_compile) 2>&5
 
12613
  ac_status=$?
 
12614
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12615
  test $ac_status = 0; }; then
 
12616
  # Parse the compiler output and extract the necessary
 
12617
  # objects, libraries and library flags.
 
12618
 
 
12619
  # Sentinel used to keep track of whether or not we are before
 
12620
  # the conftest object file.
 
12621
  pre_test_object_deps_done=no
 
12622
 
 
12623
  for p in `eval "$output_verbose_link_cmd"`; do
 
12624
    case $p in
 
12625
 
 
12626
    -L* | -R* | -l*)
 
12627
       # Some compilers place space between "-{L,R}" and the path.
 
12628
       # Remove the space.
 
12629
       if test $p = "-L" ||
 
12630
          test $p = "-R"; then
 
12631
         prev=$p
 
12632
         continue
 
12633
       else
 
12634
         prev=
 
12635
       fi
 
12636
 
 
12637
       if test "$pre_test_object_deps_done" = no; then
 
12638
         case $p in
 
12639
         -L* | -R*)
 
12640
           # Internal compiler library paths should come after those
 
12641
           # provided the user.  The postdeps already come after the
 
12642
           # user supplied libs so there is no need to process them.
 
12643
           if test -z "$compiler_lib_search_path_CXX"; then
 
12644
             compiler_lib_search_path_CXX="${prev}${p}"
 
12645
           else
 
12646
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12647
           fi
 
12648
           ;;
 
12649
         # The "-l" case would never come before the object being
 
12650
         # linked, so don't bother handling this case.
 
12651
         esac
 
12652
       else
 
12653
         if test -z "$postdeps_CXX"; then
 
12654
           postdeps_CXX="${prev}${p}"
 
12655
         else
 
12656
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12657
         fi
 
12658
       fi
 
12659
       ;;
 
12660
 
 
12661
    *.$objext)
 
12662
       # This assumes that the test object file only shows up
 
12663
       # once in the compiler output.
 
12664
       if test "$p" = "conftest.$objext"; then
 
12665
         pre_test_object_deps_done=yes
 
12666
         continue
 
12667
       fi
 
12668
 
 
12669
       if test "$pre_test_object_deps_done" = no; then
 
12670
         if test -z "$predep_objects_CXX"; then
 
12671
           predep_objects_CXX="$p"
 
12672
         else
 
12673
           predep_objects_CXX="$predep_objects_CXX $p"
 
12674
         fi
 
12675
       else
 
12676
         if test -z "$postdep_objects_CXX"; then
 
12677
           postdep_objects_CXX="$p"
 
12678
         else
 
12679
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12680
         fi
 
12681
       fi
 
12682
       ;;
 
12683
 
 
12684
    *) ;; # Ignore the rest.
 
12685
 
 
12686
    esac
 
12687
  done
 
12688
 
 
12689
  # Clean up.
 
12690
  rm -f a.out a.exe
 
12691
else
 
12692
  echo "libtool.m4: error: problem compiling CXX test program"
 
12693
fi
 
12694
 
 
12695
$RM -f confest.$objext
 
12696
 
 
12697
# PORTME: override above test on systems where it is broken
 
12698
case $host_os in
 
12699
interix[3-9]*)
 
12700
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12701
  # hack all around it, let's just trust "g++" to DTRT.
 
12702
  predep_objects_CXX=
 
12703
  postdep_objects_CXX=
 
12704
  postdeps_CXX=
 
12705
  ;;
 
12706
 
 
12707
linux*)
 
12708
  case `$CC -V 2>&1 | sed 5q` in
 
12709
  *Sun\ C*)
 
12710
    # Sun C++ 5.9
 
12711
 
 
12712
    # The more standards-conforming stlport4 library is
 
12713
    # incompatible with the Cstd library. Avoid specifying
 
12714
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12715
    # -library=stlport4 depends on it.
 
12716
    case " $CXX $CXXFLAGS " in
 
12717
    *" -library=stlport4 "*)
 
12718
      solaris_use_stlport4=yes
 
12719
      ;;
 
12720
    esac
 
12721
 
 
12722
    if test "$solaris_use_stlport4" != yes; then
 
12723
      postdeps_CXX='-library=Cstd -library=Crun'
 
12724
    fi
 
12725
    ;;
 
12726
  esac
 
12727
  ;;
 
12728
 
 
12729
solaris*)
 
12730
  case $cc_basename in
 
12731
  CC*)
 
12732
    # The more standards-conforming stlport4 library is
 
12733
    # incompatible with the Cstd library. Avoid specifying
 
12734
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12735
    # -library=stlport4 depends on it.
 
12736
    case " $CXX $CXXFLAGS " in
 
12737
    *" -library=stlport4 "*)
 
12738
      solaris_use_stlport4=yes
 
12739
      ;;
 
12740
    esac
 
12741
 
 
12742
    # Adding this requires a known-good setup of shared libraries for
 
12743
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12744
    # archive will be linked into the output, leading to subtle bugs.
 
12745
    if test "$solaris_use_stlport4" != yes; then
 
12746
      postdeps_CXX='-library=Cstd -library=Crun'
 
12747
    fi
 
12748
    ;;
 
12749
  esac
 
12750
  ;;
 
12751
esac
 
12752
 
 
12753
 
 
12754
case " $postdeps_CXX " in
 
12755
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12756
esac
 
12757
 compiler_lib_search_dirs_CXX=
 
12758
if test -n "${compiler_lib_search_path_CXX}"; then
 
12759
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12760
fi
 
12761
 
 
12762
 
 
12763
 
 
12764
 
 
12765
 
 
12766
 
 
12767
 
 
12768
 
 
12769
 
 
12770
 
 
12771
 
 
12772
 
 
12773
 
 
12774
 
 
12775
 
 
12776
 
 
12777
 
 
12778
 
 
12779
 
 
12780
 
 
12781
 
 
12782
 
 
12783
 
 
12784
 
 
12785
 
 
12786
 
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
    lt_prog_compiler_wl_CXX=
 
12793
lt_prog_compiler_pic_CXX=
 
12794
lt_prog_compiler_static_CXX=
 
12795
 
 
12796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
12797
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12798
 
 
12799
  # C++ specific cases for pic, static, wl, etc.
 
12800
  if test "$GXX" = yes; then
 
12801
    lt_prog_compiler_wl_CXX='-Wl,'
 
12802
    lt_prog_compiler_static_CXX='-static'
 
12803
 
 
12804
    case $host_os in
 
12805
    aix*)
 
12806
      # All AIX code is PIC.
 
12807
      if test "$host_cpu" = ia64; then
 
12808
        # AIX 5 now supports IA64 processor
 
12809
        lt_prog_compiler_static_CXX='-Bstatic'
 
12810
      fi
 
12811
      ;;
 
12812
 
 
12813
    amigaos*)
 
12814
      case $host_cpu in
 
12815
      powerpc)
 
12816
            # see comment about AmigaOS4 .so support
 
12817
            lt_prog_compiler_pic_CXX='-fPIC'
 
12818
        ;;
 
12819
      m68k)
 
12820
            # FIXME: we need at least 68020 code to build shared libraries, but
 
12821
            # adding the `-m68020' flag to GCC prevents building anything better,
 
12822
            # like `-m68040'.
 
12823
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12824
        ;;
 
12825
      esac
 
12826
      ;;
 
12827
 
 
12828
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12829
      # PIC is the default for these OSes.
 
12830
      ;;
 
12831
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
12832
      # This hack is so that the source file can tell whether it is being
 
12833
      # built for inclusion in a dll (and should export symbols for example).
 
12834
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12835
      # (--disable-auto-import) libraries
 
12836
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12837
      ;;
 
12838
    darwin* | rhapsody*)
 
12839
      # PIC is the default on this platform
 
12840
      # Common symbols not allowed in MH_DYLIB files
 
12841
      lt_prog_compiler_pic_CXX='-fno-common'
 
12842
      ;;
 
12843
    *djgpp*)
 
12844
      # DJGPP does not support shared libraries at all
 
12845
      lt_prog_compiler_pic_CXX=
 
12846
      ;;
 
12847
    interix[3-9]*)
 
12848
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12849
      # Instead, we relocate shared libraries at runtime.
 
12850
      ;;
 
12851
    sysv4*MP*)
 
12852
      if test -d /usr/nec; then
 
12853
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12854
      fi
 
12855
      ;;
 
12856
    hpux*)
 
12857
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
12858
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
12859
      # sets the default TLS model and affects inlining.
 
12860
      case $host_cpu in
 
12861
      hppa*64*)
 
12862
        ;;
 
12863
      *)
 
12864
        lt_prog_compiler_pic_CXX='-fPIC'
 
12865
        ;;
 
12866
      esac
 
12867
      ;;
 
12868
    *qnx* | *nto*)
 
12869
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
12870
      # it will coredump.
 
12871
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
12872
      ;;
 
12873
    *)
 
12874
      lt_prog_compiler_pic_CXX='-fPIC'
 
12875
      ;;
 
12876
    esac
 
12877
  else
 
12878
    case $host_os in
 
12879
      aix[4-9]*)
 
12880
        # All AIX code is PIC.
 
12881
        if test "$host_cpu" = ia64; then
 
12882
          # AIX 5 now supports IA64 processor
 
12883
          lt_prog_compiler_static_CXX='-Bstatic'
 
12884
        else
 
12885
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12886
        fi
 
12887
        ;;
 
12888
      chorus*)
 
12889
        case $cc_basename in
 
12890
        cxch68*)
 
12891
          # Green Hills C++ Compiler
 
12892
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12893
          ;;
 
12894
        esac
 
12895
        ;;
 
12896
      dgux*)
 
12897
        case $cc_basename in
 
12898
          ec++*)
 
12899
            lt_prog_compiler_pic_CXX='-KPIC'
 
12900
            ;;
 
12901
          ghcx*)
 
12902
            # Green Hills C++ Compiler
 
12903
            lt_prog_compiler_pic_CXX='-pic'
 
12904
            ;;
 
12905
          *)
 
12906
            ;;
 
12907
        esac
 
12908
        ;;
 
12909
      freebsd* | dragonfly*)
 
12910
        # FreeBSD uses GNU C++
 
12911
        ;;
 
12912
      hpux9* | hpux10* | hpux11*)
 
12913
        case $cc_basename in
 
12914
          CC*)
 
12915
            lt_prog_compiler_wl_CXX='-Wl,'
 
12916
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12917
            if test "$host_cpu" != ia64; then
 
12918
              lt_prog_compiler_pic_CXX='+Z'
 
12919
            fi
 
12920
            ;;
 
12921
          aCC*)
 
12922
            lt_prog_compiler_wl_CXX='-Wl,'
 
12923
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12924
            case $host_cpu in
 
12925
            hppa*64*|ia64*)
 
12926
              # +Z the default
 
12927
              ;;
 
12928
            *)
 
12929
              lt_prog_compiler_pic_CXX='+Z'
 
12930
              ;;
 
12931
            esac
 
12932
            ;;
 
12933
          *)
 
12934
            ;;
 
12935
        esac
 
12936
        ;;
 
12937
      interix*)
 
12938
        # This is c89, which is MS Visual C++ (no shared libs)
 
12939
        # Anyone wants to do a port?
 
12940
        ;;
 
12941
      irix5* | irix6* | nonstopux*)
 
12942
        case $cc_basename in
 
12943
          CC*)
 
12944
            lt_prog_compiler_wl_CXX='-Wl,'
 
12945
            lt_prog_compiler_static_CXX='-non_shared'
 
12946
            # CC pic flag -KPIC is the default.
 
12947
            ;;
 
12948
          *)
 
12949
            ;;
 
12950
        esac
 
12951
        ;;
 
12952
      linux* | k*bsd*-gnu)
 
12953
        case $cc_basename in
 
12954
          KCC*)
 
12955
            # KAI C++ Compiler
 
12956
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12957
            lt_prog_compiler_pic_CXX='-fPIC'
 
12958
            ;;
 
12959
          ecpc* )
 
12960
            # old Intel C++ for x86_64 which still supported -KPIC.
 
12961
            lt_prog_compiler_wl_CXX='-Wl,'
 
12962
            lt_prog_compiler_pic_CXX='-KPIC'
 
12963
            lt_prog_compiler_static_CXX='-static'
 
12964
            ;;
 
12965
          icpc* )
 
12966
            # Intel C++, used to be incompatible with GCC.
 
12967
            # ICC 10 doesn't accept -KPIC any more.
 
12968
            lt_prog_compiler_wl_CXX='-Wl,'
 
12969
            lt_prog_compiler_pic_CXX='-fPIC'
 
12970
            lt_prog_compiler_static_CXX='-static'
 
12971
            ;;
 
12972
          pgCC* | pgcpp*)
 
12973
            # Portland Group C++ compiler
 
12974
            lt_prog_compiler_wl_CXX='-Wl,'
 
12975
            lt_prog_compiler_pic_CXX='-fpic'
 
12976
            lt_prog_compiler_static_CXX='-Bstatic'
 
12977
            ;;
 
12978
          cxx*)
 
12979
            # Compaq C++
 
12980
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12981
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12982
            lt_prog_compiler_pic_CXX=
 
12983
            lt_prog_compiler_static_CXX='-non_shared'
 
12984
            ;;
 
12985
          xlc* | xlC*)
 
12986
            # IBM XL 8.0 on PPC
 
12987
            lt_prog_compiler_wl_CXX='-Wl,'
 
12988
            lt_prog_compiler_pic_CXX='-qpic'
 
12989
            lt_prog_compiler_static_CXX='-qstaticlink'
 
12990
            ;;
 
12991
          *)
 
12992
            case `$CC -V 2>&1 | sed 5q` in
 
12993
            *Sun\ C*)
 
12994
              # Sun C++ 5.9
 
12995
              lt_prog_compiler_pic_CXX='-KPIC'
 
12996
              lt_prog_compiler_static_CXX='-Bstatic'
 
12997
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12998
              ;;
 
12999
            esac
 
13000
            ;;
 
13001
        esac
 
13002
        ;;
 
13003
      lynxos*)
 
13004
        ;;
 
13005
      m88k*)
 
13006
        ;;
 
13007
      mvs*)
 
13008
        case $cc_basename in
 
13009
          cxx*)
 
13010
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13011
            ;;
 
13012
          *)
 
13013
            ;;
 
13014
        esac
 
13015
        ;;
 
13016
      netbsd* | netbsdelf*-gnu)
 
13017
        ;;
 
13018
      *qnx* | *nto*)
 
13019
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13020
        # it will coredump.
 
13021
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13022
        ;;
 
13023
      osf3* | osf4* | osf5*)
 
13024
        case $cc_basename in
 
13025
          KCC*)
 
13026
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13027
            ;;
 
13028
          RCC*)
 
13029
            # Rational C++ 2.4.1
 
13030
            lt_prog_compiler_pic_CXX='-pic'
 
13031
            ;;
 
13032
          cxx*)
 
13033
            # Digital/Compaq C++
 
13034
            lt_prog_compiler_wl_CXX='-Wl,'
 
13035
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13036
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13037
            lt_prog_compiler_pic_CXX=
 
13038
            lt_prog_compiler_static_CXX='-non_shared'
 
13039
            ;;
 
13040
          *)
 
13041
            ;;
 
13042
        esac
 
13043
        ;;
 
13044
      psos*)
 
13045
        ;;
 
13046
      solaris*)
 
13047
        case $cc_basename in
 
13048
          CC*)
 
13049
            # Sun C++ 4.2, 5.x and Centerline C++
 
13050
            lt_prog_compiler_pic_CXX='-KPIC'
 
13051
            lt_prog_compiler_static_CXX='-Bstatic'
 
13052
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13053
            ;;
 
13054
          gcx*)
 
13055
            # Green Hills C++ Compiler
 
13056
            lt_prog_compiler_pic_CXX='-PIC'
 
13057
            ;;
 
13058
          *)
 
13059
            ;;
 
13060
        esac
 
13061
        ;;
 
13062
      sunos4*)
 
13063
        case $cc_basename in
 
13064
          CC*)
 
13065
            # Sun C++ 4.x
 
13066
            lt_prog_compiler_pic_CXX='-pic'
 
13067
            lt_prog_compiler_static_CXX='-Bstatic'
 
13068
            ;;
 
13069
          lcc*)
 
13070
            # Lucid
 
13071
            lt_prog_compiler_pic_CXX='-pic'
 
13072
            ;;
 
13073
          *)
 
13074
            ;;
 
13075
        esac
 
13076
        ;;
 
13077
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13078
        case $cc_basename in
 
13079
          CC*)
 
13080
            lt_prog_compiler_wl_CXX='-Wl,'
 
13081
            lt_prog_compiler_pic_CXX='-KPIC'
 
13082
            lt_prog_compiler_static_CXX='-Bstatic'
 
13083
            ;;
 
13084
        esac
 
13085
        ;;
 
13086
      tandem*)
 
13087
        case $cc_basename in
 
13088
          NCC*)
 
13089
            # NonStop-UX NCC 3.20
 
13090
            lt_prog_compiler_pic_CXX='-KPIC'
 
13091
            ;;
 
13092
          *)
 
13093
            ;;
 
13094
        esac
 
13095
        ;;
 
13096
      vxworks*)
 
13097
        ;;
 
13098
      *)
 
13099
        lt_prog_compiler_can_build_shared_CXX=no
 
13100
        ;;
 
13101
    esac
 
13102
  fi
 
13103
 
 
13104
case $host_os in
 
13105
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13106
  *djgpp*)
 
13107
    lt_prog_compiler_pic_CXX=
 
13108
    ;;
 
13109
  *)
 
13110
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13111
    ;;
 
13112
esac
 
13113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
 
13114
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13115
 
 
13116
 
 
13117
 
 
13118
#
 
13119
# Check to make sure the PIC flag actually works.
 
13120
#
 
13121
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13122
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13123
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13124
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
13125
  $as_echo_n "(cached) " >&6
 
13126
else
 
13127
  lt_cv_prog_compiler_pic_works_CXX=no
 
13128
   ac_outfile=conftest.$ac_objext
 
13129
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13130
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13131
   # Insert the option either (1) after the last *FLAGS variable, or
 
13132
   # (2) before a word containing "conftest.", or (3) at the end.
 
13133
   # Note that $ac_compile itself does not contain backslashes and begins
 
13134
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13135
   # The option is referenced via a variable to avoid confusing sed.
 
13136
   lt_compile=`echo "$ac_compile" | $SED \
 
13137
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13138
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13139
   -e 's:$: $lt_compiler_flag:'`
 
13140
   (eval echo "\"\$as_me:13140: $lt_compile\"" >&5)
 
13141
   (eval "$lt_compile" 2>conftest.err)
 
13142
   ac_status=$?
 
13143
   cat conftest.err >&5
 
13144
   echo "$as_me:13144: \$? = $ac_status" >&5
 
13145
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13146
     # The compiler can only warn and ignore the option if not recognized
 
13147
     # So say no if there are warnings other than the usual output.
 
13148
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13149
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13150
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13151
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13152
     fi
 
13153
   fi
 
13154
   $RM conftest*
 
13155
 
 
13156
fi
 
13157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13158
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13159
 
 
13160
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13161
    case $lt_prog_compiler_pic_CXX in
 
13162
     "" | " "*) ;;
 
13163
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13164
     esac
 
13165
else
 
13166
    lt_prog_compiler_pic_CXX=
 
13167
     lt_prog_compiler_can_build_shared_CXX=no
 
13168
fi
 
13169
 
 
13170
fi
 
13171
 
 
13172
 
 
13173
 
 
13174
#
 
13175
# Check to make sure the static flag actually works.
 
13176
#
 
13177
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13179
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13180
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
13181
  $as_echo_n "(cached) " >&6
 
13182
else
 
13183
  lt_cv_prog_compiler_static_works_CXX=no
 
13184
   save_LDFLAGS="$LDFLAGS"
 
13185
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13186
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13187
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13188
     # The linker can only warn and ignore the option if not recognized
 
13189
     # So say no if there are warnings
 
13190
     if test -s conftest.err; then
 
13191
       # Append any errors to the config.log.
 
13192
       cat conftest.err 1>&5
 
13193
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13194
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13195
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13196
         lt_cv_prog_compiler_static_works_CXX=yes
 
13197
       fi
 
13198
     else
 
13199
       lt_cv_prog_compiler_static_works_CXX=yes
 
13200
     fi
 
13201
   fi
 
13202
   $RM -r conftest*
 
13203
   LDFLAGS="$save_LDFLAGS"
 
13204
 
 
13205
fi
 
13206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13207
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13208
 
 
13209
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13210
    :
 
13211
else
 
13212
    lt_prog_compiler_static_CXX=
 
13213
fi
 
13214
 
 
13215
 
 
13216
 
 
13217
 
 
13218
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13219
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13220
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13221
  $as_echo_n "(cached) " >&6
 
13222
else
 
13223
  lt_cv_prog_compiler_c_o_CXX=no
 
13224
   $RM -r conftest 2>/dev/null
 
13225
   mkdir conftest
 
13226
   cd conftest
 
13227
   mkdir out
 
13228
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13229
 
 
13230
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13231
   # Insert the option either (1) after the last *FLAGS variable, or
 
13232
   # (2) before a word containing "conftest.", or (3) at the end.
 
13233
   # Note that $ac_compile itself does not contain backslashes and begins
 
13234
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13235
   lt_compile=`echo "$ac_compile" | $SED \
 
13236
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13237
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13238
   -e 's:$: $lt_compiler_flag:'`
 
13239
   (eval echo "\"\$as_me:13239: $lt_compile\"" >&5)
 
13240
   (eval "$lt_compile" 2>out/conftest.err)
 
13241
   ac_status=$?
 
13242
   cat out/conftest.err >&5
 
13243
   echo "$as_me:13243: \$? = $ac_status" >&5
 
13244
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13245
   then
 
13246
     # The compiler can only warn and ignore the option if not recognized
 
13247
     # So say no if there are warnings
 
13248
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13249
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13250
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13251
       lt_cv_prog_compiler_c_o_CXX=yes
 
13252
     fi
 
13253
   fi
 
13254
   chmod u+w . 2>&5
 
13255
   $RM conftest*
 
13256
   # SGI C++ compiler will create directory out/ii_files/ for
 
13257
   # template instantiation
 
13258
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13259
   $RM out/* && rmdir out
 
13260
   cd ..
 
13261
   $RM -r conftest
 
13262
   $RM conftest*
 
13263
 
 
13264
fi
 
13265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13266
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13267
 
 
13268
 
 
13269
 
 
13270
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13271
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13272
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13273
  $as_echo_n "(cached) " >&6
 
13274
else
 
13275
  lt_cv_prog_compiler_c_o_CXX=no
 
13276
   $RM -r conftest 2>/dev/null
 
13277
   mkdir conftest
 
13278
   cd conftest
 
13279
   mkdir out
 
13280
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13281
 
 
13282
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13283
   # Insert the option either (1) after the last *FLAGS variable, or
 
13284
   # (2) before a word containing "conftest.", or (3) at the end.
 
13285
   # Note that $ac_compile itself does not contain backslashes and begins
 
13286
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13287
   lt_compile=`echo "$ac_compile" | $SED \
 
13288
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13289
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13290
   -e 's:$: $lt_compiler_flag:'`
 
13291
   (eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
 
13292
   (eval "$lt_compile" 2>out/conftest.err)
 
13293
   ac_status=$?
 
13294
   cat out/conftest.err >&5
 
13295
   echo "$as_me:13295: \$? = $ac_status" >&5
 
13296
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13297
   then
 
13298
     # The compiler can only warn and ignore the option if not recognized
 
13299
     # So say no if there are warnings
 
13300
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13301
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13302
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13303
       lt_cv_prog_compiler_c_o_CXX=yes
 
13304
     fi
 
13305
   fi
 
13306
   chmod u+w . 2>&5
 
13307
   $RM conftest*
 
13308
   # SGI C++ compiler will create directory out/ii_files/ for
 
13309
   # template instantiation
 
13310
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13311
   $RM out/* && rmdir out
 
13312
   cd ..
 
13313
   $RM -r conftest
 
13314
   $RM conftest*
 
13315
 
 
13316
fi
 
13317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13318
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
hard_links="nottested"
 
13324
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13325
  # do not overwrite the value of need_locks provided by the user
 
13326
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
13327
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13328
  hard_links=yes
 
13329
  $RM conftest*
 
13330
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13331
  touch conftest.a
 
13332
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13333
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
13335
$as_echo "$hard_links" >&6; }
 
13336
  if test "$hard_links" = no; then
 
13337
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13338
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13339
    need_locks=warn
 
13340
  fi
 
13341
else
 
13342
  need_locks=no
 
13343
fi
 
13344
 
 
13345
 
 
13346
 
 
13347
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13348
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13349
 
 
13350
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13351
  case $host_os in
 
13352
  aix[4-9]*)
 
13353
    # If we're using GNU nm, then we don't want the "-C" option.
 
13354
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13355
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
13356
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
13357
    else
 
13358
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
13359
    fi
 
13360
    ;;
 
13361
  pw32*)
 
13362
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13363
  ;;
 
13364
  cygwin* | mingw* | cegcc*)
 
13365
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
13366
  ;;
 
13367
  linux* | k*bsd*-gnu)
 
13368
    link_all_deplibs_CXX=no
 
13369
  ;;
 
13370
  *)
 
13371
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13372
  ;;
 
13373
  esac
 
13374
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13375
 
 
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13377
$as_echo "$ld_shlibs_CXX" >&6; }
 
13378
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13379
 
 
13380
with_gnu_ld_CXX=$with_gnu_ld
 
13381
 
 
13382
 
 
13383
 
 
13384
 
 
13385
 
 
13386
 
 
13387
#
 
13388
# Do we need to explicitly link libc?
 
13389
#
 
13390
case "x$archive_cmds_need_lc_CXX" in
 
13391
x|xyes)
 
13392
  # Assume -lc should be added
 
13393
  archive_cmds_need_lc_CXX=yes
 
13394
 
 
13395
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13396
    case $archive_cmds_CXX in
 
13397
    *'~'*)
 
13398
      # FIXME: we may have to deal with multi-command sequences.
 
13399
      ;;
 
13400
    '$CC '*)
 
13401
      # Test whether the compiler implicitly links with -lc since on some
 
13402
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13403
      # to ld, don't add -lc before -lgcc.
 
13404
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
13405
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13406
      $RM conftest*
 
13407
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13408
 
 
13409
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13410
  (eval $ac_compile) 2>&5
 
13411
  ac_status=$?
 
13412
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13413
  test $ac_status = 0; } 2>conftest.err; then
 
13414
        soname=conftest
 
13415
        lib=conftest
 
13416
        libobjs=conftest.$ac_objext
 
13417
        deplibs=
 
13418
        wl=$lt_prog_compiler_wl_CXX
 
13419
        pic_flag=$lt_prog_compiler_pic_CXX
 
13420
        compiler_flags=-v
 
13421
        linker_flags=-v
 
13422
        verstring=
 
13423
        output_objdir=.
 
13424
        libname=conftest
 
13425
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13426
        allow_undefined_flag_CXX=
 
13427
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
13428
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13429
  ac_status=$?
 
13430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13431
  test $ac_status = 0; }
 
13432
        then
 
13433
          archive_cmds_need_lc_CXX=no
 
13434
        else
 
13435
          archive_cmds_need_lc_CXX=yes
 
13436
        fi
 
13437
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13438
      else
 
13439
        cat conftest.err 1>&5
 
13440
      fi
 
13441
      $RM conftest*
 
13442
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
 
13443
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13444
      ;;
 
13445
    esac
 
13446
  fi
 
13447
  ;;
 
13448
esac
 
13449
 
 
13450
 
 
13451
 
 
13452
 
 
13453
 
 
13454
 
 
13455
 
 
13456
 
 
13457
 
 
13458
 
 
13459
 
 
13460
 
 
13461
 
 
13462
 
 
13463
 
 
13464
 
 
13465
 
 
13466
 
 
13467
 
 
13468
 
 
13469
 
 
13470
 
 
13471
 
 
13472
 
 
13473
 
 
13474
 
 
13475
 
 
13476
 
 
13477
 
 
13478
 
 
13479
 
 
13480
 
 
13481
 
 
13482
 
 
13483
 
 
13484
 
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
 
 
13493
 
 
13494
 
 
13495
 
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
 
 
13501
 
 
13502
 
 
13503
 
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
13514
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13515
 
 
13516
library_names_spec=
 
13517
libname_spec='lib$name'
 
13518
soname_spec=
 
13519
shrext_cmds=".so"
 
13520
postinstall_cmds=
 
13521
postuninstall_cmds=
 
13522
finish_cmds=
 
13523
finish_eval=
 
13524
shlibpath_var=
 
13525
shlibpath_overrides_runpath=unknown
 
13526
version_type=none
 
13527
dynamic_linker="$host_os ld.so"
 
13528
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13529
need_lib_prefix=unknown
 
13530
hardcode_into_libs=no
 
13531
 
 
13532
# when you set need_version to no, make sure it does not cause -set_version
 
13533
# flags to be left without arguments
 
13534
need_version=unknown
 
13535
 
 
13536
case $host_os in
 
13537
aix3*)
 
13538
  version_type=linux
 
13539
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13540
  shlibpath_var=LIBPATH
 
13541
 
 
13542
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13543
  soname_spec='${libname}${release}${shared_ext}$major'
 
13544
  ;;
 
13545
 
 
13546
aix[4-9]*)
 
13547
  version_type=linux
 
13548
  need_lib_prefix=no
 
13549
  need_version=no
 
13550
  hardcode_into_libs=yes
 
13551
  if test "$host_cpu" = ia64; then
 
13552
    # AIX 5 supports IA64
 
13553
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13554
    shlibpath_var=LD_LIBRARY_PATH
 
13555
  else
 
13556
    # With GCC up to 2.95.x, collect2 would create an import file
 
13557
    # for dependence libraries.  The import file would start with
 
13558
    # the line `#! .'.  This would cause the generated library to
 
13559
    # depend on `.', always an invalid library.  This was fixed in
 
13560
    # development snapshots of GCC prior to 3.0.
 
13561
    case $host_os in
 
13562
      aix4 | aix4.[01] | aix4.[01].*)
 
13563
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13564
           echo ' yes '
 
13565
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
13566
        :
 
13567
      else
 
13568
        can_build_shared=no
 
13569
      fi
 
13570
      ;;
 
13571
    esac
 
13572
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13573
    # soname into executable. Probably we can add versioning support to
 
13574
    # collect2, so additional links can be useful in future.
 
13575
    if test "$aix_use_runtimelinking" = yes; then
 
13576
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13577
      # instead of lib<name>.a to let people know that these are not
 
13578
      # typical AIX shared libraries.
 
13579
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13580
    else
 
13581
      # We preserve .a as extension for shared libraries through AIX4.2
 
13582
      # and later when we are not doing run time linking.
 
13583
      library_names_spec='${libname}${release}.a $libname.a'
 
13584
      soname_spec='${libname}${release}${shared_ext}$major'
 
13585
    fi
 
13586
    shlibpath_var=LIBPATH
 
13587
  fi
 
13588
  ;;
 
13589
 
 
13590
amigaos*)
 
13591
  case $host_cpu in
 
13592
  powerpc)
 
13593
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
13594
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
13595
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13596
    ;;
 
13597
  m68k)
 
13598
    library_names_spec='$libname.ixlibrary $libname.a'
 
13599
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13600
    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'
 
13601
    ;;
 
13602
  esac
 
13603
  ;;
 
13604
 
 
13605
beos*)
 
13606
  library_names_spec='${libname}${shared_ext}'
 
13607
  dynamic_linker="$host_os ld.so"
 
13608
  shlibpath_var=LIBRARY_PATH
 
13609
  ;;
 
13610
 
 
13611
bsdi[45]*)
 
13612
  version_type=linux
 
13613
  need_version=no
 
13614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13615
  soname_spec='${libname}${release}${shared_ext}$major'
 
13616
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13617
  shlibpath_var=LD_LIBRARY_PATH
 
13618
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13619
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13620
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13621
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13622
  # libtool to hard-code these into programs
 
13623
  ;;
 
13624
 
 
13625
cygwin* | mingw* | pw32* | cegcc*)
 
13626
  version_type=windows
 
13627
  shrext_cmds=".dll"
 
13628
  need_version=no
 
13629
  need_lib_prefix=no
 
13630
 
 
13631
  case $GCC,$host_os in
 
13632
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
13633
    library_names_spec='$libname.dll.a'
 
13634
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13635
    postinstall_cmds='base_file=`basename \${file}`~
 
13636
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
13637
      dldir=$destdir/`dirname \$dlpath`~
 
13638
      test -d \$dldir || mkdir -p \$dldir~
 
13639
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13640
      chmod a+x \$dldir/$dlname~
 
13641
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
13642
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
13643
      fi'
 
13644
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13645
      dlpath=$dir/\$dldll~
 
13646
       $RM \$dlpath'
 
13647
    shlibpath_overrides_runpath=yes
 
13648
 
 
13649
    case $host_os in
 
13650
    cygwin*)
 
13651
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13652
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13653
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13654
      ;;
 
13655
    mingw* | cegcc*)
 
13656
      # MinGW DLLs use traditional 'lib' prefix
 
13657
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13658
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13659
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
13660
        # It is most probably a Windows format PATH printed by
 
13661
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13662
        # path with ; separators, and with drive letters. We can handle the
 
13663
        # drive letters (cygwin fileutils understands them), so leave them,
 
13664
        # especially as we might pass files found there to a mingw objdump,
 
13665
        # which wouldn't understand a cygwinified path. Ahh.
 
13666
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13667
      else
 
13668
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13669
      fi
 
13670
      ;;
 
13671
    pw32*)
 
13672
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13673
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13674
      ;;
 
13675
    esac
 
13676
    ;;
 
13677
 
 
13678
  *)
 
13679
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13680
    ;;
 
13681
  esac
 
13682
  dynamic_linker='Win32 ld.exe'
 
13683
  # FIXME: first we should search . and the directory the executable is in
 
13684
  shlibpath_var=PATH
 
13685
  ;;
 
13686
 
 
13687
darwin* | rhapsody*)
 
13688
  dynamic_linker="$host_os dyld"
 
13689
  version_type=darwin
 
13690
  need_lib_prefix=no
 
13691
  need_version=no
 
13692
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13693
  soname_spec='${libname}${release}${major}$shared_ext'
 
13694
  shlibpath_overrides_runpath=yes
 
13695
  shlibpath_var=DYLD_LIBRARY_PATH
 
13696
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13697
 
 
13698
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13699
  ;;
 
13700
 
 
13701
dgux*)
 
13702
  version_type=linux
 
13703
  need_lib_prefix=no
 
13704
  need_version=no
 
13705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13706
  soname_spec='${libname}${release}${shared_ext}$major'
 
13707
  shlibpath_var=LD_LIBRARY_PATH
 
13708
  ;;
 
13709
 
 
13710
freebsd1*)
 
13711
  dynamic_linker=no
 
13712
  ;;
 
13713
 
 
13714
freebsd* | dragonfly*)
 
13715
  # DragonFly does not have aout.  When/if they implement a new
 
13716
  # versioning mechanism, adjust this.
 
13717
  if test -x /usr/bin/objformat; then
 
13718
    objformat=`/usr/bin/objformat`
 
13719
  else
 
13720
    case $host_os in
 
13721
    freebsd[123]*) objformat=aout ;;
 
13722
    *) objformat=elf ;;
 
13723
    esac
 
13724
  fi
 
13725
  version_type=freebsd-$objformat
 
13726
  case $version_type in
 
13727
    freebsd-elf*)
 
13728
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13729
      need_version=no
 
13730
      need_lib_prefix=no
 
13731
      ;;
 
13732
    freebsd-*)
 
13733
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13734
      need_version=yes
 
13735
      ;;
 
13736
  esac
 
13737
  shlibpath_var=LD_LIBRARY_PATH
 
13738
  case $host_os in
 
13739
  freebsd2*)
 
13740
    shlibpath_overrides_runpath=yes
 
13741
    ;;
 
13742
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13743
    shlibpath_overrides_runpath=yes
 
13744
    hardcode_into_libs=yes
 
13745
    ;;
 
13746
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13747
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13748
    shlibpath_overrides_runpath=no
 
13749
    hardcode_into_libs=yes
 
13750
    ;;
 
13751
  *) # from 4.6 on, and DragonFly
 
13752
    shlibpath_overrides_runpath=yes
 
13753
    hardcode_into_libs=yes
 
13754
    ;;
 
13755
  esac
 
13756
  ;;
 
13757
 
 
13758
gnu*)
 
13759
  version_type=linux
 
13760
  need_lib_prefix=no
 
13761
  need_version=no
 
13762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13763
  soname_spec='${libname}${release}${shared_ext}$major'
 
13764
  shlibpath_var=LD_LIBRARY_PATH
 
13765
  hardcode_into_libs=yes
 
13766
  ;;
 
13767
 
 
13768
hpux9* | hpux10* | hpux11*)
 
13769
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13770
  # link against other versions.
 
13771
  version_type=sunos
 
13772
  need_lib_prefix=no
 
13773
  need_version=no
 
13774
  case $host_cpu in
 
13775
  ia64*)
 
13776
    shrext_cmds='.so'
 
13777
    hardcode_into_libs=yes
 
13778
    dynamic_linker="$host_os dld.so"
 
13779
    shlibpath_var=LD_LIBRARY_PATH
 
13780
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13781
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13782
    soname_spec='${libname}${release}${shared_ext}$major'
 
13783
    if test "X$HPUX_IA64_MODE" = X32; then
 
13784
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13785
    else
 
13786
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13787
    fi
 
13788
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13789
    ;;
 
13790
  hppa*64*)
 
13791
    shrext_cmds='.sl'
 
13792
    hardcode_into_libs=yes
 
13793
    dynamic_linker="$host_os dld.sl"
 
13794
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13795
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13796
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13797
    soname_spec='${libname}${release}${shared_ext}$major'
 
13798
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13799
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13800
    ;;
 
13801
  *)
 
13802
    shrext_cmds='.sl'
 
13803
    dynamic_linker="$host_os dld.sl"
 
13804
    shlibpath_var=SHLIB_PATH
 
13805
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13806
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13807
    soname_spec='${libname}${release}${shared_ext}$major'
 
13808
    ;;
 
13809
  esac
 
13810
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13811
  postinstall_cmds='chmod 555 $lib'
 
13812
  ;;
 
13813
 
 
13814
interix[3-9]*)
 
13815
  version_type=linux
 
13816
  need_lib_prefix=no
 
13817
  need_version=no
 
13818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13819
  soname_spec='${libname}${release}${shared_ext}$major'
 
13820
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13821
  shlibpath_var=LD_LIBRARY_PATH
 
13822
  shlibpath_overrides_runpath=no
 
13823
  hardcode_into_libs=yes
 
13824
  ;;
 
13825
 
 
13826
irix5* | irix6* | nonstopux*)
 
13827
  case $host_os in
 
13828
    nonstopux*) version_type=nonstopux ;;
 
13829
    *)
 
13830
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13831
                version_type=linux
 
13832
        else
 
13833
                version_type=irix
 
13834
        fi ;;
 
13835
  esac
 
13836
  need_lib_prefix=no
 
13837
  need_version=no
 
13838
  soname_spec='${libname}${release}${shared_ext}$major'
 
13839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13840
  case $host_os in
 
13841
  irix5* | nonstopux*)
 
13842
    libsuff= shlibsuff=
 
13843
    ;;
 
13844
  *)
 
13845
    case $LD in # libtool.m4 will add one of these switches to LD
 
13846
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13847
      libsuff= shlibsuff= libmagic=32-bit;;
 
13848
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13849
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13850
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13851
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13852
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13853
    esac
 
13854
    ;;
 
13855
  esac
 
13856
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13857
  shlibpath_overrides_runpath=no
 
13858
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13859
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13860
  hardcode_into_libs=yes
 
13861
  ;;
 
13862
 
 
13863
# No shared lib support for Linux oldld, aout, or coff.
 
13864
linux*oldld* | linux*aout* | linux*coff*)
 
13865
  dynamic_linker=no
 
13866
  ;;
 
13867
 
 
13868
# This must be Linux ELF.
 
13869
linux* | k*bsd*-gnu)
 
13870
  version_type=linux
 
13871
  need_lib_prefix=no
 
13872
  need_version=no
 
13873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13874
  soname_spec='${libname}${release}${shared_ext}$major'
 
13875
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13876
  shlibpath_var=LD_LIBRARY_PATH
 
13877
  shlibpath_overrides_runpath=no
 
13878
  # Some binutils ld are patched to set DT_RUNPATH
 
13879
  save_LDFLAGS=$LDFLAGS
 
13880
  save_libdir=$libdir
 
13881
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
13882
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
13883
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13884
/* end confdefs.h.  */
 
13885
 
 
13886
int
 
13887
main ()
 
13888
{
 
13889
 
 
13890
  ;
 
13891
  return 0;
 
13892
}
 
13893
_ACEOF
 
13894
if ac_fn_cxx_try_link "$LINENO"; then :
 
13895
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
13896
  shlibpath_overrides_runpath=yes
 
13897
fi
 
13898
fi
 
13899
rm -f core conftest.err conftest.$ac_objext \
 
13900
    conftest$ac_exeext conftest.$ac_ext
 
13901
  LDFLAGS=$save_LDFLAGS
 
13902
  libdir=$save_libdir
 
13903
 
 
13904
  # This implies no fast_install, which is unacceptable.
 
13905
  # Some rework will be needed to allow for fast_install
 
13906
  # before this can be enabled.
 
13907
  hardcode_into_libs=yes
 
13908
 
 
13909
  # Append ld.so.conf contents to the search path
 
13910
  if test -f /etc/ld.so.conf; then
 
13911
    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' ' '`
 
13912
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13913
  fi
 
13914
 
 
13915
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13916
  # powerpc, because MkLinux only supported shared libraries with the
 
13917
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13918
  # most powerpc-linux boxes support dynamic linking these days and
 
13919
  # people can always --disable-shared, the test was removed, and we
 
13920
  # assume the GNU/Linux dynamic linker is in use.
 
13921
  dynamic_linker='GNU/Linux ld.so'
 
13922
  ;;
 
13923
 
 
13924
netbsdelf*-gnu)
 
13925
  version_type=linux
 
13926
  need_lib_prefix=no
 
13927
  need_version=no
 
13928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13929
  soname_spec='${libname}${release}${shared_ext}$major'
 
13930
  shlibpath_var=LD_LIBRARY_PATH
 
13931
  shlibpath_overrides_runpath=no
 
13932
  hardcode_into_libs=yes
 
13933
  dynamic_linker='NetBSD ld.elf_so'
 
13934
  ;;
 
13935
 
 
13936
netbsd*)
 
13937
  version_type=sunos
 
13938
  need_lib_prefix=no
 
13939
  need_version=no
 
13940
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13941
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13942
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13943
    dynamic_linker='NetBSD (a.out) ld.so'
 
13944
  else
 
13945
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13946
    soname_spec='${libname}${release}${shared_ext}$major'
 
13947
    dynamic_linker='NetBSD ld.elf_so'
 
13948
  fi
 
13949
  shlibpath_var=LD_LIBRARY_PATH
 
13950
  shlibpath_overrides_runpath=yes
 
13951
  hardcode_into_libs=yes
 
13952
  ;;
 
13953
 
 
13954
newsos6)
 
13955
  version_type=linux
 
13956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13957
  shlibpath_var=LD_LIBRARY_PATH
 
13958
  shlibpath_overrides_runpath=yes
 
13959
  ;;
 
13960
 
 
13961
*nto* | *qnx*)
 
13962
  version_type=qnx
 
13963
  need_lib_prefix=no
 
13964
  need_version=no
 
13965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13966
  soname_spec='${libname}${release}${shared_ext}$major'
 
13967
  shlibpath_var=LD_LIBRARY_PATH
 
13968
  shlibpath_overrides_runpath=no
 
13969
  hardcode_into_libs=yes
 
13970
  dynamic_linker='ldqnx.so'
 
13971
  ;;
 
13972
 
 
13973
openbsd*)
 
13974
  version_type=sunos
 
13975
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13976
  need_lib_prefix=no
 
13977
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13978
  case $host_os in
 
13979
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
13980
    *)                          need_version=no  ;;
 
13981
  esac
 
13982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13983
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13984
  shlibpath_var=LD_LIBRARY_PATH
 
13985
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13986
    case $host_os in
 
13987
      openbsd2.[89] | openbsd2.[89].*)
 
13988
        shlibpath_overrides_runpath=no
 
13989
        ;;
 
13990
      *)
 
13991
        shlibpath_overrides_runpath=yes
 
13992
        ;;
 
13993
      esac
 
13994
  else
 
13995
    shlibpath_overrides_runpath=yes
 
13996
  fi
 
13997
  ;;
 
13998
 
 
13999
os2*)
 
14000
  libname_spec='$name'
 
14001
  shrext_cmds=".dll"
 
14002
  need_lib_prefix=no
 
14003
  library_names_spec='$libname${shared_ext} $libname.a'
 
14004
  dynamic_linker='OS/2 ld.exe'
 
14005
  shlibpath_var=LIBPATH
 
14006
  ;;
 
14007
 
 
14008
osf3* | osf4* | osf5*)
 
14009
  version_type=osf
 
14010
  need_lib_prefix=no
 
14011
  need_version=no
 
14012
  soname_spec='${libname}${release}${shared_ext}$major'
 
14013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14014
  shlibpath_var=LD_LIBRARY_PATH
 
14015
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14016
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14017
  ;;
 
14018
 
 
14019
rdos*)
 
14020
  dynamic_linker=no
 
14021
  ;;
 
14022
 
 
14023
solaris*)
 
14024
  version_type=linux
 
14025
  need_lib_prefix=no
 
14026
  need_version=no
 
14027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14028
  soname_spec='${libname}${release}${shared_ext}$major'
 
14029
  shlibpath_var=LD_LIBRARY_PATH
 
14030
  shlibpath_overrides_runpath=yes
 
14031
  hardcode_into_libs=yes
 
14032
  # ldd complains unless libraries are executable
 
14033
  postinstall_cmds='chmod +x $lib'
 
14034
  ;;
 
14035
 
 
14036
sunos4*)
 
14037
  version_type=sunos
 
14038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14039
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14040
  shlibpath_var=LD_LIBRARY_PATH
 
14041
  shlibpath_overrides_runpath=yes
 
14042
  if test "$with_gnu_ld" = yes; then
 
14043
    need_lib_prefix=no
 
14044
  fi
 
14045
  need_version=yes
 
14046
  ;;
 
14047
 
 
14048
sysv4 | sysv4.3*)
 
14049
  version_type=linux
 
14050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14051
  soname_spec='${libname}${release}${shared_ext}$major'
 
14052
  shlibpath_var=LD_LIBRARY_PATH
 
14053
  case $host_vendor in
 
14054
    sni)
 
14055
      shlibpath_overrides_runpath=no
 
14056
      need_lib_prefix=no
 
14057
      runpath_var=LD_RUN_PATH
 
14058
      ;;
 
14059
    siemens)
 
14060
      need_lib_prefix=no
 
14061
      ;;
 
14062
    motorola)
 
14063
      need_lib_prefix=no
 
14064
      need_version=no
 
14065
      shlibpath_overrides_runpath=no
 
14066
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14067
      ;;
 
14068
  esac
 
14069
  ;;
 
14070
 
 
14071
sysv4*MP*)
 
14072
  if test -d /usr/nec ;then
 
14073
    version_type=linux
 
14074
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14075
    soname_spec='$libname${shared_ext}.$major'
 
14076
    shlibpath_var=LD_LIBRARY_PATH
 
14077
  fi
 
14078
  ;;
 
14079
 
 
14080
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14081
  version_type=freebsd-elf
 
14082
  need_lib_prefix=no
 
14083
  need_version=no
 
14084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14085
  soname_spec='${libname}${release}${shared_ext}$major'
 
14086
  shlibpath_var=LD_LIBRARY_PATH
 
14087
  shlibpath_overrides_runpath=yes
 
14088
  hardcode_into_libs=yes
 
14089
  if test "$with_gnu_ld" = yes; then
 
14090
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14091
  else
 
14092
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14093
    case $host_os in
 
14094
      sco3.2v5*)
 
14095
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14096
        ;;
 
14097
    esac
 
14098
  fi
 
14099
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14100
  ;;
 
14101
 
 
14102
tpf*)
 
14103
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14104
  version_type=linux
 
14105
  need_lib_prefix=no
 
14106
  need_version=no
 
14107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14108
  shlibpath_var=LD_LIBRARY_PATH
 
14109
  shlibpath_overrides_runpath=no
 
14110
  hardcode_into_libs=yes
 
14111
  ;;
 
14112
 
 
14113
uts4*)
 
14114
  version_type=linux
 
14115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14116
  soname_spec='${libname}${release}${shared_ext}$major'
 
14117
  shlibpath_var=LD_LIBRARY_PATH
 
14118
  ;;
 
14119
 
 
14120
*)
 
14121
  dynamic_linker=no
 
14122
  ;;
 
14123
esac
 
14124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
14125
$as_echo "$dynamic_linker" >&6; }
 
14126
test "$dynamic_linker" = no && can_build_shared=no
 
14127
 
 
14128
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14129
if test "$GCC" = yes; then
 
14130
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14131
fi
 
14132
 
 
14133
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14134
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14135
fi
 
14136
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14137
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14138
fi
 
14139
 
 
14140
 
 
14141
 
 
14142
 
 
14143
 
 
14144
 
 
14145
 
 
14146
 
 
14147
 
 
14148
 
 
14149
 
 
14150
 
 
14151
 
 
14152
 
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
 
 
14163
 
 
14164
 
 
14165
 
 
14166
 
 
14167
 
 
14168
 
 
14169
 
 
14170
 
 
14171
 
 
14172
 
 
14173
 
 
14174
 
 
14175
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
14176
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14177
hardcode_action_CXX=
 
14178
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14179
   test -n "$runpath_var_CXX" ||
 
14180
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14181
 
 
14182
  # We can hardcode non-existent directories.
 
14183
  if test "$hardcode_direct_CXX" != no &&
 
14184
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14185
     # have to relink, otherwise we might link with an installed library
 
14186
     # when we should be linking with a yet-to-be-installed one
 
14187
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14188
     test "$hardcode_minus_L_CXX" != no; then
 
14189
    # Linking always hardcodes the temporary library directory.
 
14190
    hardcode_action_CXX=relink
 
14191
  else
 
14192
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14193
    hardcode_action_CXX=immediate
 
14194
  fi
 
14195
else
 
14196
  # We cannot hardcode anything, or else we can only hardcode existing
 
14197
  # directories.
 
14198
  hardcode_action_CXX=unsupported
 
14199
fi
 
14200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
14201
$as_echo "$hardcode_action_CXX" >&6; }
 
14202
 
 
14203
if test "$hardcode_action_CXX" = relink ||
 
14204
   test "$inherit_rpath_CXX" = yes; then
 
14205
  # Fast installation is not supported
 
14206
  enable_fast_install=no
 
14207
elif test "$shlibpath_overrides_runpath" = yes ||
 
14208
     test "$enable_shared" = no; then
 
14209
  # Fast installation is not necessary
 
14210
  enable_fast_install=needless
 
14211
fi
 
14212
 
 
14213
 
 
14214
 
 
14215
 
 
14216
 
 
14217
 
 
14218
 
 
14219
  fi # test -n "$compiler"
 
14220
 
 
14221
  CC=$lt_save_CC
 
14222
  LDCXX=$LD
 
14223
  LD=$lt_save_LD
 
14224
  GCC=$lt_save_GCC
 
14225
  with_gnu_ld=$lt_save_with_gnu_ld
 
14226
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14227
  lt_cv_path_LD=$lt_save_path_LD
 
14228
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14229
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14230
fi # test "$_lt_caught_CXX_error" != yes
 
14231
 
 
14232
ac_ext=c
 
14233
ac_cpp='$CPP $CPPFLAGS'
 
14234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14237
 
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
 
 
14245
 
 
14246
 
 
14247
 
 
14248
 
 
14249
 
 
14250
        ac_config_commands="$ac_config_commands libtool"
 
14251
 
 
14252
 
 
14253
 
 
14254
 
 
14255
# Only expand once:
 
14256
 
 
14257
 
 
14258
 
 
14259
# Checks for dependencies.
 
14260
 
 
14261
 
 
14262
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
14263
        if test -n "$ac_tool_prefix"; then
 
14264
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
14265
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
14266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14267
$as_echo_n "checking for $ac_word... " >&6; }
 
14268
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
14269
  $as_echo_n "(cached) " >&6
 
14270
else
 
14271
  case $PKG_CONFIG in
 
14272
  [\\/]* | ?:[\\/]*)
 
14273
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14274
  ;;
 
14275
  *)
 
14276
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14277
for as_dir in $PATH
 
14278
do
 
14279
  IFS=$as_save_IFS
 
14280
  test -z "$as_dir" && as_dir=.
 
14281
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14283
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14285
    break 2
 
14286
  fi
 
14287
done
 
14288
  done
 
14289
IFS=$as_save_IFS
 
14290
 
 
14291
  ;;
 
14292
esac
 
14293
fi
 
14294
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14295
if test -n "$PKG_CONFIG"; then
 
14296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
14297
$as_echo "$PKG_CONFIG" >&6; }
 
14298
else
 
14299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14300
$as_echo "no" >&6; }
 
14301
fi
 
14302
 
 
14303
 
 
14304
fi
 
14305
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
14306
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
14307
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
14308
set dummy pkg-config; ac_word=$2
 
14309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14310
$as_echo_n "checking for $ac_word... " >&6; }
 
14311
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
14312
  $as_echo_n "(cached) " >&6
 
14313
else
 
14314
  case $ac_pt_PKG_CONFIG in
 
14315
  [\\/]* | ?:[\\/]*)
 
14316
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
14317
  ;;
 
14318
  *)
 
14319
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14320
for as_dir in $PATH
 
14321
do
 
14322
  IFS=$as_save_IFS
 
14323
  test -z "$as_dir" && as_dir=.
 
14324
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14326
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14327
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14328
    break 2
 
14329
  fi
 
14330
done
 
14331
  done
 
14332
IFS=$as_save_IFS
 
14333
 
 
14334
  ;;
 
14335
esac
 
14336
fi
 
14337
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
14338
if test -n "$ac_pt_PKG_CONFIG"; then
 
14339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
14340
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
14341
else
 
14342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14343
$as_echo "no" >&6; }
 
14344
fi
 
14345
 
 
14346
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
14347
    PKG_CONFIG=""
 
14348
  else
 
14349
    case $cross_compiling:$ac_tool_warned in
 
14350
yes:)
 
14351
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14352
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14353
ac_tool_warned=yes ;;
 
14354
esac
 
14355
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
14356
  fi
 
14357
else
 
14358
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
14359
fi
 
14360
 
 
14361
fi
 
14362
if test -n "$PKG_CONFIG"; then
 
14363
        _pkg_min_version=0.9.0
 
14364
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
14365
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
14366
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
14367
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14368
$as_echo "yes" >&6; }
 
14369
        else
 
14370
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14371
$as_echo "no" >&6; }
 
14372
                PKG_CONFIG=""
 
14373
        fi
 
14374
 
 
14375
fi
 
14376
 
 
14377
pkg_failed=no
 
14378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
 
14379
$as_echo_n "checking for X11... " >&6; }
 
14380
 
 
14381
if test -n "$PKG_CONFIG"; then
 
14382
    if test -n "$X11_CFLAGS"; then
 
14383
        pkg_cv_X11_CFLAGS="$X11_CFLAGS"
 
14384
    else
 
14385
        if test -n "$PKG_CONFIG" && \
 
14386
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
 
14387
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
14388
  ac_status=$?
 
14389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14390
  test $ac_status = 0; }; then
 
14391
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
 
14392
else
 
14393
  pkg_failed=yes
 
14394
fi
 
14395
    fi
 
14396
else
 
14397
        pkg_failed=untried
 
14398
fi
 
14399
if test -n "$PKG_CONFIG"; then
 
14400
    if test -n "$X11_LIBS"; then
 
14401
        pkg_cv_X11_LIBS="$X11_LIBS"
 
14402
    else
 
14403
        if test -n "$PKG_CONFIG" && \
 
14404
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
 
14405
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
14406
  ac_status=$?
 
14407
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14408
  test $ac_status = 0; }; then
 
14409
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
 
14410
else
 
14411
  pkg_failed=yes
 
14412
fi
 
14413
    fi
 
14414
else
 
14415
        pkg_failed=untried
 
14416
fi
 
14417
 
 
14418
 
 
14419
 
 
14420
if test $pkg_failed = yes; then
 
14421
 
 
14422
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14423
        _pkg_short_errors_supported=yes
 
14424
else
 
14425
        _pkg_short_errors_supported=no
 
14426
fi
 
14427
        if test $_pkg_short_errors_supported = yes; then
 
14428
                X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
 
14429
        else
 
14430
                X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
 
14431
        fi
 
14432
        # Put the nasty error message in config.log where it belongs
 
14433
        echo "$X11_PKG_ERRORS" >&5
 
14434
 
 
14435
        as_fn_error "Package requirements (x11) were not met:
 
14436
 
 
14437
$X11_PKG_ERRORS
 
14438
 
 
14439
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14440
installed software in a non-standard prefix.
 
14441
 
 
14442
Alternatively, you may set the environment variables X11_CFLAGS
 
14443
and X11_LIBS to avoid the need to call pkg-config.
 
14444
See the pkg-config man page for more details.
 
14445
" "$LINENO" 5
 
14446
elif test $pkg_failed = untried; then
 
14447
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14448
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14449
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14450
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14451
path to pkg-config.
 
14452
 
 
14453
Alternatively, you may set the environment variables X11_CFLAGS
 
14454
and X11_LIBS to avoid the need to call pkg-config.
 
14455
See the pkg-config man page for more details.
 
14456
 
 
14457
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14458
See \`config.log' for more details." "$LINENO" 5; }
 
14459
else
 
14460
        X11_CFLAGS=$pkg_cv_X11_CFLAGS
 
14461
        X11_LIBS=$pkg_cv_X11_LIBS
 
14462
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14463
$as_echo "yes" >&6; }
 
14464
        :
 
14465
fi
 
14466
 
 
14467
 
 
14468
 
 
14469
# Check for optional dependencies.
 
14470
# Check whether --enable-dri2 was given.
 
14471
if test "${enable_dri2+set}" = set; then :
 
14472
  enableval=$enable_dri2; DRI2=$enableval
 
14473
else
 
14474
  DRI2=auto
 
14475
fi
 
14476
 
 
14477
 
 
14478
pkg_failed=no
 
14479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dri2proto" >&5
 
14480
$as_echo_n "checking for dri2proto... " >&6; }
 
14481
 
 
14482
if test -n "$PKG_CONFIG"; then
 
14483
    if test -n "$dri2proto_CFLAGS"; then
 
14484
        pkg_cv_dri2proto_CFLAGS="$dri2proto_CFLAGS"
 
14485
    else
 
14486
        if test -n "$PKG_CONFIG" && \
 
14487
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
 
14488
  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
 
14489
  ac_status=$?
 
14490
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14491
  test $ac_status = 0; }; then
 
14492
  pkg_cv_dri2proto_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.2" 2>/dev/null`
 
14493
else
 
14494
  pkg_failed=yes
 
14495
fi
 
14496
    fi
 
14497
else
 
14498
        pkg_failed=untried
 
14499
fi
 
14500
if test -n "$PKG_CONFIG"; then
 
14501
    if test -n "$dri2proto_LIBS"; then
 
14502
        pkg_cv_dri2proto_LIBS="$dri2proto_LIBS"
 
14503
    else
 
14504
        if test -n "$PKG_CONFIG" && \
 
14505
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
 
14506
  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
 
14507
  ac_status=$?
 
14508
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14509
  test $ac_status = 0; }; then
 
14510
  pkg_cv_dri2proto_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.2" 2>/dev/null`
 
14511
else
 
14512
  pkg_failed=yes
 
14513
fi
 
14514
    fi
 
14515
else
 
14516
        pkg_failed=untried
 
14517
fi
 
14518
 
 
14519
 
 
14520
 
 
14521
if test $pkg_failed = yes; then
 
14522
 
 
14523
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14524
        _pkg_short_errors_supported=yes
 
14525
else
 
14526
        _pkg_short_errors_supported=no
 
14527
fi
 
14528
        if test $_pkg_short_errors_supported = yes; then
 
14529
                dri2proto_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dri2proto >= 2.2"`
 
14530
        else
 
14531
                dri2proto_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dri2proto >= 2.2"`
 
14532
        fi
 
14533
        # Put the nasty error message in config.log where it belongs
 
14534
        echo "$dri2proto_PKG_ERRORS" >&5
 
14535
 
 
14536
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14537
$as_echo "no" >&6; }
 
14538
                HAVE_DRI2PROTO=no
 
14539
elif test $pkg_failed = untried; then
 
14540
        HAVE_DRI2PROTO=no
 
14541
else
 
14542
        dri2proto_CFLAGS=$pkg_cv_dri2proto_CFLAGS
 
14543
        dri2proto_LIBS=$pkg_cv_dri2proto_LIBS
 
14544
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14545
$as_echo "yes" >&6; }
 
14546
        HAVE_DRI2PROTO=yes
 
14547
fi
 
14548
case "$DRI2,$HAVE_DRI2PROTO" in
 
14549
    yes,no)
 
14550
        as_fn_error "DRI2 queries require dri2proto >= 2.2" "$LINENO" 5
 
14551
        ;;
 
14552
    yes,yes | auto,yes)
 
14553
 
 
14554
$as_echo "#define DRI2 1" >>confdefs.h
 
14555
 
 
14556
        DRI2=yes
 
14557
 
 
14558
pkg_failed=no
 
14559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
 
14560
$as_echo_n "checking for XEXT... " >&6; }
 
14561
 
 
14562
if test -n "$PKG_CONFIG"; then
 
14563
    if test -n "$XEXT_CFLAGS"; then
 
14564
        pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
 
14565
    else
 
14566
        if test -n "$PKG_CONFIG" && \
 
14567
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
 
14568
  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
 
14569
  ac_status=$?
 
14570
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14571
  test $ac_status = 0; }; then
 
14572
  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
 
14573
else
 
14574
  pkg_failed=yes
 
14575
fi
 
14576
    fi
 
14577
else
 
14578
        pkg_failed=untried
 
14579
fi
 
14580
if test -n "$PKG_CONFIG"; then
 
14581
    if test -n "$XEXT_LIBS"; then
 
14582
        pkg_cv_XEXT_LIBS="$XEXT_LIBS"
 
14583
    else
 
14584
        if test -n "$PKG_CONFIG" && \
 
14585
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
 
14586
  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
 
14587
  ac_status=$?
 
14588
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14589
  test $ac_status = 0; }; then
 
14590
  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
 
14591
else
 
14592
  pkg_failed=yes
 
14593
fi
 
14594
    fi
 
14595
else
 
14596
        pkg_failed=untried
 
14597
fi
 
14598
 
 
14599
 
 
14600
 
 
14601
if test $pkg_failed = yes; then
 
14602
 
 
14603
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14604
        _pkg_short_errors_supported=yes
 
14605
else
 
14606
        _pkg_short_errors_supported=no
 
14607
fi
 
14608
        if test $_pkg_short_errors_supported = yes; then
 
14609
                XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
 
14610
        else
 
14611
                XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
 
14612
        fi
 
14613
        # Put the nasty error message in config.log where it belongs
 
14614
        echo "$XEXT_PKG_ERRORS" >&5
 
14615
 
 
14616
        as_fn_error "Package requirements (xext) were not met:
 
14617
 
 
14618
$XEXT_PKG_ERRORS
 
14619
 
 
14620
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14621
installed software in a non-standard prefix.
 
14622
 
 
14623
Alternatively, you may set the environment variables XEXT_CFLAGS
 
14624
and XEXT_LIBS to avoid the need to call pkg-config.
 
14625
See the pkg-config man page for more details.
 
14626
" "$LINENO" 5
 
14627
elif test $pkg_failed = untried; then
 
14628
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14629
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14630
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14631
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14632
path to pkg-config.
 
14633
 
 
14634
Alternatively, you may set the environment variables XEXT_CFLAGS
 
14635
and XEXT_LIBS to avoid the need to call pkg-config.
 
14636
See the pkg-config man page for more details.
 
14637
 
 
14638
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14639
See \`config.log' for more details." "$LINENO" 5; }
 
14640
else
 
14641
        XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
 
14642
        XEXT_LIBS=$pkg_cv_XEXT_LIBS
 
14643
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14644
$as_echo "yes" >&6; }
 
14645
        :
 
14646
fi
 
14647
 
 
14648
 
 
14649
        ;;
 
14650
esac
 
14651
 if test "x$DRI2" = xyes; then
 
14652
  DRI2_TRUE=
 
14653
  DRI2_FALSE='#'
 
14654
else
 
14655
  DRI2_TRUE='#'
 
14656
  DRI2_FALSE=
 
14657
fi
 
14658
 
 
14659
 
 
14660
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
14661
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
14662
 
 
14663
else
 
14664
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
14665
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
14666
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
14667
  $as_echo_n "(cached) " >&6
 
14668
else
 
14669
  ac_check_lib_save_LIBS=$LIBS
 
14670
LIBS="-ldl  $LIBS"
 
14671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14672
/* end confdefs.h.  */
 
14673
 
 
14674
/* Override any GCC internal prototype to avoid an error.
 
14675
   Use char because int might match the return type of a GCC
 
14676
   builtin and then its argument prototype would still apply.  */
 
14677
#ifdef __cplusplus
 
14678
extern "C"
 
14679
#endif
 
14680
char dlopen ();
 
14681
int
 
14682
main ()
 
14683
{
 
14684
return dlopen ();
 
14685
  ;
 
14686
  return 0;
 
14687
}
 
14688
_ACEOF
 
14689
if ac_fn_c_try_link "$LINENO"; then :
 
14690
  ac_cv_lib_dl_dlopen=yes
 
14691
else
 
14692
  ac_cv_lib_dl_dlopen=no
 
14693
fi
 
14694
rm -f core conftest.err conftest.$ac_objext \
 
14695
    conftest$ac_exeext conftest.$ac_ext
 
14696
LIBS=$ac_check_lib_save_LIBS
 
14697
fi
 
14698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
14699
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
14700
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
14701
  DLOPEN_LIBS="-ldl"
 
14702
fi
 
14703
 
 
14704
fi
 
14705
 
 
14706
 
 
14707
 
 
14708
# Check for Doxygen.
 
14709
# Check whether --enable-documentation was given.
 
14710
if test "${enable_documentation+set}" = set; then :
 
14711
  enableval=$enable_documentation; DOCS=$enableval
 
14712
else
 
14713
  DOCS=auto
 
14714
fi
 
14715
 
 
14716
if test "x$DOCS" != xno; then
 
14717
    if test -n "$ac_tool_prefix"; then
 
14718
  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
 
14719
set dummy ${ac_tool_prefix}doxygen; ac_word=$2
 
14720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14721
$as_echo_n "checking for $ac_word... " >&6; }
 
14722
if test "${ac_cv_prog_DOXYGEN+set}" = set; then :
 
14723
  $as_echo_n "(cached) " >&6
 
14724
else
 
14725
  if test -n "$DOXYGEN"; then
 
14726
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
14727
else
 
14728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14729
for as_dir in $PATH
 
14730
do
 
14731
  IFS=$as_save_IFS
 
14732
  test -z "$as_dir" && as_dir=.
 
14733
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14735
    ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
 
14736
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14737
    break 2
 
14738
  fi
 
14739
done
 
14740
  done
 
14741
IFS=$as_save_IFS
 
14742
 
 
14743
fi
 
14744
fi
 
14745
DOXYGEN=$ac_cv_prog_DOXYGEN
 
14746
if test -n "$DOXYGEN"; then
 
14747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
14748
$as_echo "$DOXYGEN" >&6; }
 
14749
else
 
14750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14751
$as_echo "no" >&6; }
 
14752
fi
 
14753
 
 
14754
 
 
14755
fi
 
14756
if test -z "$ac_cv_prog_DOXYGEN"; then
 
14757
  ac_ct_DOXYGEN=$DOXYGEN
 
14758
  # Extract the first word of "doxygen", so it can be a program name with args.
 
14759
set dummy doxygen; ac_word=$2
 
14760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14761
$as_echo_n "checking for $ac_word... " >&6; }
 
14762
if test "${ac_cv_prog_ac_ct_DOXYGEN+set}" = set; then :
 
14763
  $as_echo_n "(cached) " >&6
 
14764
else
 
14765
  if test -n "$ac_ct_DOXYGEN"; then
 
14766
  ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
 
14767
else
 
14768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14769
for as_dir in $PATH
 
14770
do
 
14771
  IFS=$as_save_IFS
 
14772
  test -z "$as_dir" && as_dir=.
 
14773
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14774
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14775
    ac_cv_prog_ac_ct_DOXYGEN="doxygen"
 
14776
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14777
    break 2
 
14778
  fi
 
14779
done
 
14780
  done
 
14781
IFS=$as_save_IFS
 
14782
 
 
14783
fi
 
14784
fi
 
14785
ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
 
14786
if test -n "$ac_ct_DOXYGEN"; then
 
14787
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
 
14788
$as_echo "$ac_ct_DOXYGEN" >&6; }
 
14789
else
 
14790
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14791
$as_echo "no" >&6; }
 
14792
fi
 
14793
 
 
14794
  if test "x$ac_ct_DOXYGEN" = x; then
 
14795
    DOXYGEN="no"
 
14796
  else
 
14797
    case $cross_compiling:$ac_tool_warned in
 
14798
yes:)
 
14799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14801
ac_tool_warned=yes ;;
 
14802
esac
 
14803
    DOXYGEN=$ac_ct_DOXYGEN
 
14804
  fi
 
14805
else
 
14806
  DOXYGEN="$ac_cv_prog_DOXYGEN"
 
14807
fi
 
14808
 
 
14809
    if test -n "$ac_tool_prefix"; then
 
14810
  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
 
14811
set dummy ${ac_tool_prefix}dot; ac_word=$2
 
14812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14813
$as_echo_n "checking for $ac_word... " >&6; }
 
14814
if test "${ac_cv_prog_DOT+set}" = set; then :
 
14815
  $as_echo_n "(cached) " >&6
 
14816
else
 
14817
  if test -n "$DOT"; then
 
14818
  ac_cv_prog_DOT="$DOT" # Let the user override the test.
 
14819
else
 
14820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14821
for as_dir in $PATH
 
14822
do
 
14823
  IFS=$as_save_IFS
 
14824
  test -z "$as_dir" && as_dir=.
 
14825
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14827
    ac_cv_prog_DOT="${ac_tool_prefix}dot"
 
14828
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14829
    break 2
 
14830
  fi
 
14831
done
 
14832
  done
 
14833
IFS=$as_save_IFS
 
14834
 
 
14835
fi
 
14836
fi
 
14837
DOT=$ac_cv_prog_DOT
 
14838
if test -n "$DOT"; then
 
14839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
 
14840
$as_echo "$DOT" >&6; }
 
14841
else
 
14842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14843
$as_echo "no" >&6; }
 
14844
fi
 
14845
 
 
14846
 
 
14847
fi
 
14848
if test -z "$ac_cv_prog_DOT"; then
 
14849
  ac_ct_DOT=$DOT
 
14850
  # Extract the first word of "dot", so it can be a program name with args.
 
14851
set dummy dot; ac_word=$2
 
14852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14853
$as_echo_n "checking for $ac_word... " >&6; }
 
14854
if test "${ac_cv_prog_ac_ct_DOT+set}" = set; then :
 
14855
  $as_echo_n "(cached) " >&6
 
14856
else
 
14857
  if test -n "$ac_ct_DOT"; then
 
14858
  ac_cv_prog_ac_ct_DOT="$ac_ct_DOT" # Let the user override the test.
 
14859
else
 
14860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14861
for as_dir in $PATH
 
14862
do
 
14863
  IFS=$as_save_IFS
 
14864
  test -z "$as_dir" && as_dir=.
 
14865
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14866
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14867
    ac_cv_prog_ac_ct_DOT="dot"
 
14868
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14869
    break 2
 
14870
  fi
 
14871
done
 
14872
  done
 
14873
IFS=$as_save_IFS
 
14874
 
 
14875
fi
 
14876
fi
 
14877
ac_ct_DOT=$ac_cv_prog_ac_ct_DOT
 
14878
if test -n "$ac_ct_DOT"; then
 
14879
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOT" >&5
 
14880
$as_echo "$ac_ct_DOT" >&6; }
 
14881
else
 
14882
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14883
$as_echo "no" >&6; }
 
14884
fi
 
14885
 
 
14886
  if test "x$ac_ct_DOT" = x; then
 
14887
    DOT="no"
 
14888
  else
 
14889
    case $cross_compiling:$ac_tool_warned in
 
14890
yes:)
 
14891
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14892
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14893
ac_tool_warned=yes ;;
 
14894
esac
 
14895
    DOT=$ac_ct_DOT
 
14896
  fi
 
14897
else
 
14898
  DOT="$ac_cv_prog_DOT"
 
14899
fi
 
14900
 
 
14901
    if test -n "$ac_tool_prefix"; then
 
14902
  # Extract the first word of "${ac_tool_prefix}pdftex", so it can be a program name with args.
 
14903
set dummy ${ac_tool_prefix}pdftex; ac_word=$2
 
14904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14905
$as_echo_n "checking for $ac_word... " >&6; }
 
14906
if test "${ac_cv_prog_PDFTEX+set}" = set; then :
 
14907
  $as_echo_n "(cached) " >&6
 
14908
else
 
14909
  if test -n "$PDFTEX"; then
 
14910
  ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
 
14911
else
 
14912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14913
for as_dir in $PATH
 
14914
do
 
14915
  IFS=$as_save_IFS
 
14916
  test -z "$as_dir" && as_dir=.
 
14917
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14919
    ac_cv_prog_PDFTEX="${ac_tool_prefix}pdftex"
 
14920
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14921
    break 2
 
14922
  fi
 
14923
done
 
14924
  done
 
14925
IFS=$as_save_IFS
 
14926
 
 
14927
fi
 
14928
fi
 
14929
PDFTEX=$ac_cv_prog_PDFTEX
 
14930
if test -n "$PDFTEX"; then
 
14931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFTEX" >&5
 
14932
$as_echo "$PDFTEX" >&6; }
 
14933
else
 
14934
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14935
$as_echo "no" >&6; }
 
14936
fi
 
14937
 
 
14938
 
 
14939
fi
 
14940
if test -z "$ac_cv_prog_PDFTEX"; then
 
14941
  ac_ct_PDFTEX=$PDFTEX
 
14942
  # Extract the first word of "pdftex", so it can be a program name with args.
 
14943
set dummy pdftex; ac_word=$2
 
14944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14945
$as_echo_n "checking for $ac_word... " >&6; }
 
14946
if test "${ac_cv_prog_ac_ct_PDFTEX+set}" = set; then :
 
14947
  $as_echo_n "(cached) " >&6
 
14948
else
 
14949
  if test -n "$ac_ct_PDFTEX"; then
 
14950
  ac_cv_prog_ac_ct_PDFTEX="$ac_ct_PDFTEX" # Let the user override the test.
 
14951
else
 
14952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14953
for as_dir in $PATH
 
14954
do
 
14955
  IFS=$as_save_IFS
 
14956
  test -z "$as_dir" && as_dir=.
 
14957
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14958
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14959
    ac_cv_prog_ac_ct_PDFTEX="pdftex"
 
14960
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14961
    break 2
 
14962
  fi
 
14963
done
 
14964
  done
 
14965
IFS=$as_save_IFS
 
14966
 
 
14967
fi
 
14968
fi
 
14969
ac_ct_PDFTEX=$ac_cv_prog_ac_ct_PDFTEX
 
14970
if test -n "$ac_ct_PDFTEX"; then
 
14971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PDFTEX" >&5
 
14972
$as_echo "$ac_ct_PDFTEX" >&6; }
 
14973
else
 
14974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14975
$as_echo "no" >&6; }
 
14976
fi
 
14977
 
 
14978
  if test "x$ac_ct_PDFTEX" = x; then
 
14979
    PDFTEX="no"
 
14980
  else
 
14981
    case $cross_compiling:$ac_tool_warned in
 
14982
yes:)
 
14983
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14984
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14985
ac_tool_warned=yes ;;
 
14986
esac
 
14987
    PDFTEX=$ac_ct_PDFTEX
 
14988
  fi
 
14989
else
 
14990
  PDFTEX="$ac_cv_prog_PDFTEX"
 
14991
fi
 
14992
 
 
14993
else
 
14994
    DOXYGEN=no
 
14995
    DOT=no
 
14996
    PDFTEX=no
 
14997
fi
 
14998
if test "x$DOCS" = xyes; then
 
14999
    if test "x$DOXYGEN" = xno; then
 
15000
        as_fn_error "Documentation enabled but doxygen was not found in your path" "$LINENO" 5
 
15001
    fi
 
15002
    if test "x$DOT" = xno; then
 
15003
        as_fn_error "Documentation enabled but dot was not found in your path.  Please install graphviz" "$LINENO" 5
 
15004
    fi
 
15005
    if test "x$PDFTEX" = xno; then
 
15006
        as_fn_error "Documentation enabled but pdftex was not found in your path" "$LINENO" 5
 
15007
    fi
 
15008
fi
 
15009
 if test "x$DOXYGEN" != xno -a "x$DOT" != xno -a "x$PDFTEX" != xno; then
 
15010
  ENABLE_DOCS_TRUE=
 
15011
  ENABLE_DOCS_FALSE='#'
 
15012
else
 
15013
  ENABLE_DOCS_TRUE='#'
 
15014
  ENABLE_DOCS_FALSE=
 
15015
fi
 
15016
 
 
15017
 
 
15018
 
 
15019
# Options
 
15020
 
 
15021
# Check whether --with-module-dir was given.
 
15022
if test "${with_module_dir+set}" = set; then :
 
15023
  withval=$with_module_dir; moduledir="$withval"
 
15024
else
 
15025
  moduledir="$libdir/vdpau"
 
15026
fi
 
15027
 
 
15028
 
 
15029
 
 
15030
 
 
15031
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
15032
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
15033
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
15034
 
 
15035
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
 
15036
 
 
15037
 
 
15038
 
 
15039
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile trace/Makefile vdpau.pc"
 
15040
 
 
15041
cat >confcache <<\_ACEOF
 
15042
# This file is a shell script that caches the results of configure
 
15043
# tests run on this system so they can be shared between configure
 
15044
# scripts and configure runs, see configure's option --config-cache.
 
15045
# It is not useful on other systems.  If it contains results you don't
 
15046
# want to keep, you may remove or edit it.
 
15047
#
 
15048
# config.status only pays attention to the cache file if you give it
 
15049
# the --recheck option to rerun configure.
 
15050
#
 
15051
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
15052
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
15053
# following values.
 
15054
 
 
15055
_ACEOF
 
15056
 
 
15057
# The following way of writing the cache mishandles newlines in values,
 
15058
# but we know of no workaround that is simple, portable, and efficient.
 
15059
# So, we kill variables containing newlines.
 
15060
# Ultrix sh set writes to stderr and can't be redirected directly,
 
15061
# and sets the high bit in the cache file unless we assign to the vars.
 
15062
(
 
15063
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
15064
    eval ac_val=\$$ac_var
 
15065
    case $ac_val in #(
 
15066
    *${as_nl}*)
 
15067
      case $ac_var in #(
 
15068
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
15069
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
15070
      esac
 
15071
      case $ac_var in #(
 
15072
      _ | IFS | as_nl) ;; #(
 
15073
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
15074
      *) { eval $ac_var=; unset $ac_var;} ;;
 
15075
      esac ;;
 
15076
    esac
 
15077
  done
 
15078
 
 
15079
  (set) 2>&1 |
 
15080
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
15081
    *${as_nl}ac_space=\ *)
 
15082
      # `set' does not quote correctly, so add quotes: double-quote
 
15083
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
15084
      sed -n \
 
15085
        "s/'/'\\\\''/g;
 
15086
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
15087
      ;; #(
 
15088
    *)
 
15089
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
15090
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
15091
      ;;
 
15092
    esac |
 
15093
    sort
 
15094
) |
 
15095
  sed '
 
15096
     /^ac_cv_env_/b end
 
15097
     t clear
 
15098
     :clear
 
15099
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
15100
     t end
 
15101
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
15102
     :end' >>confcache
 
15103
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
15104
  if test -w "$cache_file"; then
 
15105
    test "x$cache_file" != "x/dev/null" &&
 
15106
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
15107
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
15108
    cat confcache >$cache_file
 
15109
  else
 
15110
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
15111
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
15112
  fi
 
15113
fi
 
15114
rm -f confcache
 
15115
 
 
15116
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
15117
# Let make expand exec_prefix.
 
15118
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15119
 
 
15120
DEFS=-DHAVE_CONFIG_H
 
15121
 
 
15122
ac_libobjs=
 
15123
ac_ltlibobjs=
 
15124
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
15125
  # 1. Remove the extension, and $U if already installed.
 
15126
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
15127
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
15128
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
15129
  #    will be set to the directory where LIBOBJS objects are built.
 
15130
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
15131
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
15132
done
 
15133
LIBOBJS=$ac_libobjs
 
15134
 
 
15135
LTLIBOBJS=$ac_ltlibobjs
 
15136
 
 
15137
 
 
15138
 if test -n "$EXEEXT"; then
 
15139
  am__EXEEXT_TRUE=
 
15140
  am__EXEEXT_FALSE='#'
 
15141
else
 
15142
  am__EXEEXT_TRUE='#'
 
15143
  am__EXEEXT_FALSE=
 
15144
fi
 
15145
 
 
15146
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
15147
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
15148
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15149
fi
 
15150
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
15151
  as_fn_error "conditional \"AMDEP\" was never defined.
 
15152
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15153
fi
 
15154
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
15155
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
15156
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15157
fi
 
15158
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
15159
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
15160
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15161
fi
 
15162
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
15163
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
15164
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15165
fi
 
15166
if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
 
15167
  as_fn_error "conditional \"DRI2\" was never defined.
 
15168
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15169
fi
 
15170
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
 
15171
  as_fn_error "conditional \"ENABLE_DOCS\" was never defined.
 
15172
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15173
fi
 
15174
 
 
15175
: ${CONFIG_STATUS=./config.status}
 
15176
ac_write_fail=0
 
15177
ac_clean_files_save=$ac_clean_files
 
15178
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
15179
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
15180
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
15181
as_write_fail=0
 
15182
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
15183
#! $SHELL
 
15184
# Generated by $as_me.
 
15185
# Run this file to recreate the current configuration.
 
15186
# Compiler output produced by configure, useful for debugging
 
15187
# configure, is in config.log if it exists.
 
15188
 
 
15189
debug=false
 
15190
ac_cs_recheck=false
 
15191
ac_cs_silent=false
 
15192
 
 
15193
SHELL=\${CONFIG_SHELL-$SHELL}
 
15194
export SHELL
 
15195
_ASEOF
 
15196
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
15197
## -------------------- ##
 
15198
## M4sh Initialization. ##
 
15199
## -------------------- ##
 
15200
 
 
15201
# Be more Bourne compatible
 
15202
DUALCASE=1; export DUALCASE # for MKS sh
 
15203
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
15204
  emulate sh
 
15205
  NULLCMD=:
 
15206
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
15207
  # is contrary to our usage.  Disable this feature.
 
15208
  alias -g '${1+"$@"}'='"$@"'
 
15209
  setopt NO_GLOB_SUBST
 
15210
else
 
15211
  case `(set -o) 2>/dev/null` in #(
 
15212
  *posix*) :
 
15213
    set -o posix ;; #(
 
15214
  *) :
 
15215
     ;;
 
15216
esac
 
15217
fi
 
15218
 
 
15219
 
 
15220
as_nl='
 
15221
'
 
15222
export as_nl
 
15223
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
15224
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
15225
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
15226
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
15227
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
15228
# but without wasting forks for bash or zsh.
 
15229
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
15230
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15231
  as_echo='print -r --'
 
15232
  as_echo_n='print -rn --'
 
15233
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15234
  as_echo='printf %s\n'
 
15235
  as_echo_n='printf %s'
 
15236
else
 
15237
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
15238
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
15239
    as_echo_n='/usr/ucb/echo -n'
 
15240
  else
 
15241
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
15242
    as_echo_n_body='eval
 
15243
      arg=$1;
 
15244
      case $arg in #(
 
15245
      *"$as_nl"*)
 
15246
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
15247
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
15248
      esac;
 
15249
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
15250
    '
 
15251
    export as_echo_n_body
 
15252
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
15253
  fi
 
15254
  export as_echo_body
 
15255
  as_echo='sh -c $as_echo_body as_echo'
 
15256
fi
 
15257
 
 
15258
# The user is always right.
 
15259
if test "${PATH_SEPARATOR+set}" != set; then
 
15260
  PATH_SEPARATOR=:
 
15261
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
15262
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
15263
      PATH_SEPARATOR=';'
 
15264
  }
 
15265
fi
 
15266
 
 
15267
 
 
15268
# IFS
 
15269
# We need space, tab and new line, in precisely that order.  Quoting is
 
15270
# there to prevent editors from complaining about space-tab.
 
15271
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
15272
# splitting by setting IFS to empty value.)
 
15273
IFS=" ""        $as_nl"
 
15274
 
 
15275
# Find who we are.  Look in the path if we contain no directory separator.
 
15276
case $0 in #((
 
15277
  *[\\/]* ) as_myself=$0 ;;
 
15278
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15279
for as_dir in $PATH
 
15280
do
 
15281
  IFS=$as_save_IFS
 
15282
  test -z "$as_dir" && as_dir=.
 
15283
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
15284
  done
 
15285
IFS=$as_save_IFS
 
15286
 
 
15287
     ;;
 
15288
esac
 
15289
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
15290
# in which case we are not to be found in the path.
 
15291
if test "x$as_myself" = x; then
 
15292
  as_myself=$0
 
15293
fi
 
15294
if test ! -f "$as_myself"; then
 
15295
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
15296
  exit 1
 
15297
fi
 
15298
 
 
15299
# Unset variables that we do not need and which cause bugs (e.g. in
 
15300
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
15301
# suppresses any "Segmentation fault" message there.  '((' could
 
15302
# trigger a bug in pdksh 5.2.14.
 
15303
for as_var in BASH_ENV ENV MAIL MAILPATH
 
15304
do eval test x\${$as_var+set} = xset \
 
15305
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
15306
done
 
15307
PS1='$ '
 
15308
PS2='> '
 
15309
PS4='+ '
 
15310
 
 
15311
# NLS nuisances.
 
15312
LC_ALL=C
 
15313
export LC_ALL
 
15314
LANGUAGE=C
 
15315
export LANGUAGE
 
15316
 
 
15317
# CDPATH.
 
15318
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15319
 
 
15320
 
 
15321
# as_fn_error ERROR [LINENO LOG_FD]
 
15322
# ---------------------------------
 
15323
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
15324
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
15325
# script with status $?, using 1 if that was 0.
 
15326
as_fn_error ()
 
15327
{
 
15328
  as_status=$?; test $as_status -eq 0 && as_status=1
 
15329
  if test "$3"; then
 
15330
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
15331
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
15332
  fi
 
15333
  $as_echo "$as_me: error: $1" >&2
 
15334
  as_fn_exit $as_status
 
15335
} # as_fn_error
 
15336
 
 
15337
 
 
15338
# as_fn_set_status STATUS
 
15339
# -----------------------
 
15340
# Set $? to STATUS, without forking.
 
15341
as_fn_set_status ()
 
15342
{
 
15343
  return $1
 
15344
} # as_fn_set_status
 
15345
 
 
15346
# as_fn_exit STATUS
 
15347
# -----------------
 
15348
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
15349
as_fn_exit ()
 
15350
{
 
15351
  set +e
 
15352
  as_fn_set_status $1
 
15353
  exit $1
 
15354
} # as_fn_exit
 
15355
 
 
15356
# as_fn_unset VAR
 
15357
# ---------------
 
15358
# Portably unset VAR.
 
15359
as_fn_unset ()
 
15360
{
 
15361
  { eval $1=; unset $1;}
 
15362
}
 
15363
as_unset=as_fn_unset
 
15364
# as_fn_append VAR VALUE
 
15365
# ----------------------
 
15366
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
15367
# advantage of any shell optimizations that allow amortized linear growth over
 
15368
# repeated appends, instead of the typical quadratic growth present in naive
 
15369
# implementations.
 
15370
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
15371
  eval 'as_fn_append ()
 
15372
  {
 
15373
    eval $1+=\$2
 
15374
  }'
 
15375
else
 
15376
  as_fn_append ()
 
15377
  {
 
15378
    eval $1=\$$1\$2
 
15379
  }
 
15380
fi # as_fn_append
 
15381
 
 
15382
# as_fn_arith ARG...
 
15383
# ------------------
 
15384
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
15385
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
15386
# must be portable across $(()) and expr.
 
15387
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
15388
  eval 'as_fn_arith ()
 
15389
  {
 
15390
    as_val=$(( $* ))
 
15391
  }'
 
15392
else
 
15393
  as_fn_arith ()
 
15394
  {
 
15395
    as_val=`expr "$@" || test $? -eq 1`
 
15396
  }
 
15397
fi # as_fn_arith
 
15398
 
 
15399
 
 
15400
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
15401
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
15402
  as_expr=expr
 
15403
else
 
15404
  as_expr=false
 
15405
fi
 
15406
 
 
15407
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
15408
  as_basename=basename
 
15409
else
 
15410
  as_basename=false
 
15411
fi
 
15412
 
 
15413
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
15414
  as_dirname=dirname
 
15415
else
 
15416
  as_dirname=false
 
15417
fi
 
15418
 
 
15419
as_me=`$as_basename -- "$0" ||
 
15420
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
15421
         X"$0" : 'X\(//\)$' \| \
 
15422
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
15423
$as_echo X/"$0" |
 
15424
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
15425
            s//\1/
 
15426
            q
 
15427
          }
 
15428
          /^X\/\(\/\/\)$/{
 
15429
            s//\1/
 
15430
            q
 
15431
          }
 
15432
          /^X\/\(\/\).*/{
 
15433
            s//\1/
 
15434
            q
 
15435
          }
 
15436
          s/.*/./; q'`
 
15437
 
 
15438
# Avoid depending upon Character Ranges.
 
15439
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
15440
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
15441
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15442
as_cr_digits='0123456789'
 
15443
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
15444
 
 
15445
ECHO_C= ECHO_N= ECHO_T=
 
15446
case `echo -n x` in #(((((
 
15447
-n*)
 
15448
  case `echo 'xy\c'` in
 
15449
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
15450
  xy)  ECHO_C='\c';;
 
15451
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
15452
       ECHO_T=' ';;
 
15453
  esac;;
 
15454
*)
 
15455
  ECHO_N='-n';;
 
15456
esac
 
15457
 
 
15458
rm -f conf$$ conf$$.exe conf$$.file
 
15459
if test -d conf$$.dir; then
 
15460
  rm -f conf$$.dir/conf$$.file
 
15461
else
 
15462
  rm -f conf$$.dir
 
15463
  mkdir conf$$.dir 2>/dev/null
 
15464
fi
 
15465
if (echo >conf$$.file) 2>/dev/null; then
 
15466
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15467
    as_ln_s='ln -s'
 
15468
    # ... but there are two gotchas:
 
15469
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
15470
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
15471
    # In both cases, we have to default to `cp -p'.
 
15472
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
15473
      as_ln_s='cp -p'
 
15474
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
15475
    as_ln_s=ln
 
15476
  else
 
15477
    as_ln_s='cp -p'
 
15478
  fi
 
15479
else
 
15480
  as_ln_s='cp -p'
 
15481
fi
 
15482
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
15483
rmdir conf$$.dir 2>/dev/null
 
15484
 
 
15485
 
 
15486
# as_fn_mkdir_p
 
15487
# -------------
 
15488
# Create "$as_dir" as a directory, including parents if necessary.
 
15489
as_fn_mkdir_p ()
 
15490
{
 
15491
 
 
15492
  case $as_dir in #(
 
15493
  -*) as_dir=./$as_dir;;
 
15494
  esac
 
15495
  test -d "$as_dir" || eval $as_mkdir_p || {
 
15496
    as_dirs=
 
15497
    while :; do
 
15498
      case $as_dir in #(
 
15499
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
15500
      *) as_qdir=$as_dir;;
 
15501
      esac
 
15502
      as_dirs="'$as_qdir' $as_dirs"
 
15503
      as_dir=`$as_dirname -- "$as_dir" ||
 
15504
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15505
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15506
         X"$as_dir" : 'X\(//\)$' \| \
 
15507
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
15508
$as_echo X"$as_dir" |
 
15509
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15510
            s//\1/
 
15511
            q
 
15512
          }
 
15513
          /^X\(\/\/\)[^/].*/{
 
15514
            s//\1/
 
15515
            q
 
15516
          }
 
15517
          /^X\(\/\/\)$/{
 
15518
            s//\1/
 
15519
            q
 
15520
          }
 
15521
          /^X\(\/\).*/{
 
15522
            s//\1/
 
15523
            q
 
15524
          }
 
15525
          s/.*/./; q'`
 
15526
      test -d "$as_dir" && break
 
15527
    done
 
15528
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15529
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
15530
 
 
15531
 
 
15532
} # as_fn_mkdir_p
 
15533
if mkdir -p . 2>/dev/null; then
 
15534
  as_mkdir_p='mkdir -p "$as_dir"'
 
15535
else
 
15536
  test -d ./-p && rmdir ./-p
 
15537
  as_mkdir_p=false
 
15538
fi
 
15539
 
 
15540
if test -x / >/dev/null 2>&1; then
 
15541
  as_test_x='test -x'
 
15542
else
 
15543
  if ls -dL / >/dev/null 2>&1; then
 
15544
    as_ls_L_option=L
 
15545
  else
 
15546
    as_ls_L_option=
 
15547
  fi
 
15548
  as_test_x='
 
15549
    eval sh -c '\''
 
15550
      if test -d "$1"; then
 
15551
        test -d "$1/.";
 
15552
      else
 
15553
        case $1 in #(
 
15554
        -*)set "./$1";;
 
15555
        esac;
 
15556
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
15557
        ???[sx]*):;;*)false;;esac;fi
 
15558
    '\'' sh
 
15559
  '
 
15560
fi
 
15561
as_executable_p=$as_test_x
 
15562
 
 
15563
# Sed expression to map a string onto a valid CPP name.
 
15564
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
15565
 
 
15566
# Sed expression to map a string onto a valid variable name.
 
15567
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
15568
 
 
15569
 
 
15570
exec 6>&1
 
15571
## ----------------------------------- ##
 
15572
## Main body of $CONFIG_STATUS script. ##
 
15573
## ----------------------------------- ##
 
15574
_ASEOF
 
15575
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
15576
 
 
15577
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15578
# Save the log message, to keep $0 and so on meaningful, and to
 
15579
# report actual input values of CONFIG_FILES etc. instead of their
 
15580
# values after options handling.
 
15581
ac_log="
 
15582
This file was extended by libvdpau $as_me 0.4, which was
 
15583
generated by GNU Autoconf 2.64.  Invocation command line was
 
15584
 
 
15585
  CONFIG_FILES    = $CONFIG_FILES
 
15586
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
15587
  CONFIG_LINKS    = $CONFIG_LINKS
 
15588
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
15589
  $ $0 $@
 
15590
 
 
15591
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
15592
"
 
15593
 
 
15594
_ACEOF
 
15595
 
 
15596
case $ac_config_files in *"
 
15597
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
15598
esac
 
15599
 
 
15600
case $ac_config_headers in *"
 
15601
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
15602
esac
 
15603
 
 
15604
 
 
15605
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15606
# Files that config.status was made for.
 
15607
config_files="$ac_config_files"
 
15608
config_headers="$ac_config_headers"
 
15609
config_commands="$ac_config_commands"
 
15610
 
 
15611
_ACEOF
 
15612
 
 
15613
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15614
ac_cs_usage="\
 
15615
\`$as_me' instantiates files and other configuration actions
 
15616
from templates according to the current configuration.  Unless the files
 
15617
and actions are specified as TAGs, all are instantiated by default.
 
15618
 
 
15619
Usage: $0 [OPTION]... [TAG]...
 
15620
 
 
15621
  -h, --help       print this help, then exit
 
15622
  -V, --version    print version number and configuration settings, then exit
 
15623
  -q, --quiet, --silent
 
15624
                   do not print progress messages
 
15625
  -d, --debug      don't remove temporary files
 
15626
      --recheck    update $as_me by reconfiguring in the same conditions
 
15627
      --file=FILE[:TEMPLATE]
 
15628
                   instantiate the configuration file FILE
 
15629
      --header=FILE[:TEMPLATE]
 
15630
                   instantiate the configuration header FILE
 
15631
 
 
15632
Configuration files:
 
15633
$config_files
 
15634
 
 
15635
Configuration headers:
 
15636
$config_headers
 
15637
 
 
15638
Configuration commands:
 
15639
$config_commands
 
15640
 
 
15641
Report bugs to <xorg@lists.freedesktop.org>."
 
15642
 
 
15643
_ACEOF
 
15644
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15645
ac_cs_version="\\
 
15646
libvdpau config.status 0.4
 
15647
configured by $0, generated by GNU Autoconf 2.64,
 
15648
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
15649
 
 
15650
Copyright (C) 2009 Free Software Foundation, Inc.
 
15651
This config.status script is free software; the Free Software Foundation
 
15652
gives unlimited permission to copy, distribute and modify it."
 
15653
 
 
15654
ac_pwd='$ac_pwd'
 
15655
srcdir='$srcdir'
 
15656
INSTALL='$INSTALL'
 
15657
MKDIR_P='$MKDIR_P'
 
15658
AWK='$AWK'
 
15659
test -n "\$AWK" || AWK=awk
 
15660
_ACEOF
 
15661
 
 
15662
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15663
# The default lists apply if the user does not specify any file.
 
15664
ac_need_defaults=:
 
15665
while test $# != 0
 
15666
do
 
15667
  case $1 in
 
15668
  --*=*)
 
15669
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15670
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
15671
    ac_shift=:
 
15672
    ;;
 
15673
  *)
 
15674
    ac_option=$1
 
15675
    ac_optarg=$2
 
15676
    ac_shift=shift
 
15677
    ;;
 
15678
  esac
 
15679
 
 
15680
  case $ac_option in
 
15681
  # Handling of the options.
 
15682
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
15683
    ac_cs_recheck=: ;;
 
15684
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15685
    $as_echo "$ac_cs_version"; exit ;;
 
15686
  --debug | --debu | --deb | --de | --d | -d )
 
15687
    debug=: ;;
 
15688
  --file | --fil | --fi | --f )
 
15689
    $ac_shift
 
15690
    case $ac_optarg in
 
15691
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15692
    esac
 
15693
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
15694
    ac_need_defaults=false;;
 
15695
  --header | --heade | --head | --hea )
 
15696
    $ac_shift
 
15697
    case $ac_optarg in
 
15698
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15699
    esac
 
15700
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
15701
    ac_need_defaults=false;;
 
15702
  --he | --h)
 
15703
    # Conflict between --help and --header
 
15704
    as_fn_error "ambiguous option: \`$1'
 
15705
Try \`$0 --help' for more information.";;
 
15706
  --help | --hel | -h )
 
15707
    $as_echo "$ac_cs_usage"; exit ;;
 
15708
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15709
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15710
    ac_cs_silent=: ;;
 
15711
 
 
15712
  # This is an error.
 
15713
  -*) as_fn_error "unrecognized option: \`$1'
 
15714
Try \`$0 --help' for more information." ;;
 
15715
 
 
15716
  *) as_fn_append ac_config_targets " $1"
 
15717
     ac_need_defaults=false ;;
 
15718
 
 
15719
  esac
 
15720
  shift
 
15721
done
 
15722
 
 
15723
ac_configure_extra_args=
 
15724
 
 
15725
if $ac_cs_silent; then
 
15726
  exec 6>/dev/null
 
15727
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15728
fi
 
15729
 
 
15730
_ACEOF
 
15731
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15732
if \$ac_cs_recheck; then
 
15733
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15734
  shift
 
15735
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15736
  CONFIG_SHELL='$SHELL'
 
15737
  export CONFIG_SHELL
 
15738
  exec "\$@"
 
15739
fi
 
15740
 
 
15741
_ACEOF
 
15742
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15743
exec 5>>config.log
 
15744
{
 
15745
  echo
 
15746
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15747
## Running $as_me. ##
 
15748
_ASBOX
 
15749
  $as_echo "$ac_log"
 
15750
} >&5
 
15751
 
 
15752
_ACEOF
 
15753
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15754
#
 
15755
# INIT-COMMANDS
 
15756
#
 
15757
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
15758
 
 
15759
 
 
15760
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
15761
# if CDPATH is set.
 
15762
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15763
 
 
15764
sed_quote_subst='$sed_quote_subst'
 
15765
double_quote_subst='$double_quote_subst'
 
15766
delay_variable_subst='$delay_variable_subst'
 
15767
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15768
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15769
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
15770
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
15771
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
15772
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
15773
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15774
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
15775
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15776
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15777
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
15778
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15779
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
15780
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
15781
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15782
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15783
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15784
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
15785
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
15786
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
15787
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
15788
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
15789
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
15790
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
15791
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
15792
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
15793
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15794
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15795
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
15796
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
15797
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
15798
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
15799
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15800
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
15801
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
15802
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15803
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15804
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15805
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
15806
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15807
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
15808
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
15809
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
15810
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
15811
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"`'
 
15812
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"`'
 
15813
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
15814
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
15815
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
15816
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
15817
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15818
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
15819
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
15820
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15821
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
15822
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
15823
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
15824
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
15825
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
15826
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
15827
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
15828
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
15829
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15830
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15831
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
15832
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
15833
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15834
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15835
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
15836
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15837
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15838
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15839
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15840
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15841
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15842
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15843
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15844
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15845
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15846
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15847
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
15848
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
15849
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
15850
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
15851
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15852
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
15853
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15854
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
15855
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15856
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
15857
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15858
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15859
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15860
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15861
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15862
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
15863
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15864
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15865
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
15866
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15867
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15868
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15869
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15870
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15871
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15872
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15873
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15874
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15875
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
15876
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
15877
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15878
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15879
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
15880
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
15881
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
15882
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15883
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15884
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15885
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
15886
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15887
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15888
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15889
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15890
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15891
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15892
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15893
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15894
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15895
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15896
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15897
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15898
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15899
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15900
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15901
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15902
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15903
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15904
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15905
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15906
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15907
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15908
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15909
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15910
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15911
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15912
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15913
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15914
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15915
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15916
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15917
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15918
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15919
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15920
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15921
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15922
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15923
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15924
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15925
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15926
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15927
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15928
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15929
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15930
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15931
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15932
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15933
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15934
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15935
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15936
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15937
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15938
 
 
15939
LTCC='$LTCC'
 
15940
LTCFLAGS='$LTCFLAGS'
 
15941
compiler='$compiler_DEFAULT'
 
15942
 
 
15943
# Quote evaled strings.
 
15944
for var in SED \
 
15945
GREP \
 
15946
EGREP \
 
15947
FGREP \
 
15948
LD \
 
15949
NM \
 
15950
LN_S \
 
15951
lt_SP2NL \
 
15952
lt_NL2SP \
 
15953
reload_flag \
 
15954
OBJDUMP \
 
15955
deplibs_check_method \
 
15956
file_magic_cmd \
 
15957
AR \
 
15958
AR_FLAGS \
 
15959
STRIP \
 
15960
RANLIB \
 
15961
CC \
 
15962
CFLAGS \
 
15963
compiler \
 
15964
lt_cv_sys_global_symbol_pipe \
 
15965
lt_cv_sys_global_symbol_to_cdecl \
 
15966
lt_cv_sys_global_symbol_to_c_name_address \
 
15967
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
15968
SHELL \
 
15969
ECHO \
 
15970
lt_prog_compiler_no_builtin_flag \
 
15971
lt_prog_compiler_wl \
 
15972
lt_prog_compiler_pic \
 
15973
lt_prog_compiler_static \
 
15974
lt_cv_prog_compiler_c_o \
 
15975
need_locks \
 
15976
DSYMUTIL \
 
15977
NMEDIT \
 
15978
LIPO \
 
15979
OTOOL \
 
15980
OTOOL64 \
 
15981
shrext_cmds \
 
15982
export_dynamic_flag_spec \
 
15983
whole_archive_flag_spec \
 
15984
compiler_needs_object \
 
15985
with_gnu_ld \
 
15986
allow_undefined_flag \
 
15987
no_undefined_flag \
 
15988
hardcode_libdir_flag_spec \
 
15989
hardcode_libdir_flag_spec_ld \
 
15990
hardcode_libdir_separator \
 
15991
fix_srcfile_path \
 
15992
exclude_expsyms \
 
15993
include_expsyms \
 
15994
file_list_spec \
 
15995
variables_saved_for_relink \
 
15996
libname_spec \
 
15997
library_names_spec \
 
15998
soname_spec \
 
15999
finish_eval \
 
16000
old_striplib \
 
16001
striplib \
 
16002
compiler_lib_search_dirs \
 
16003
predep_objects \
 
16004
postdep_objects \
 
16005
predeps \
 
16006
postdeps \
 
16007
compiler_lib_search_path \
 
16008
LD_CXX \
 
16009
compiler_CXX \
 
16010
lt_prog_compiler_no_builtin_flag_CXX \
 
16011
lt_prog_compiler_wl_CXX \
 
16012
lt_prog_compiler_pic_CXX \
 
16013
lt_prog_compiler_static_CXX \
 
16014
lt_cv_prog_compiler_c_o_CXX \
 
16015
export_dynamic_flag_spec_CXX \
 
16016
whole_archive_flag_spec_CXX \
 
16017
compiler_needs_object_CXX \
 
16018
with_gnu_ld_CXX \
 
16019
allow_undefined_flag_CXX \
 
16020
no_undefined_flag_CXX \
 
16021
hardcode_libdir_flag_spec_CXX \
 
16022
hardcode_libdir_flag_spec_ld_CXX \
 
16023
hardcode_libdir_separator_CXX \
 
16024
fix_srcfile_path_CXX \
 
16025
exclude_expsyms_CXX \
 
16026
include_expsyms_CXX \
 
16027
file_list_spec_CXX \
 
16028
compiler_lib_search_dirs_CXX \
 
16029
predep_objects_CXX \
 
16030
postdep_objects_CXX \
 
16031
predeps_CXX \
 
16032
postdeps_CXX \
 
16033
compiler_lib_search_path_CXX; do
 
16034
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16035
    *[\\\\\\\`\\"\\\$]*)
 
16036
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
16037
      ;;
 
16038
    *)
 
16039
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16040
      ;;
 
16041
    esac
 
16042
done
 
16043
 
 
16044
# Double-quote double-evaled strings.
 
16045
for var in reload_cmds \
 
16046
old_postinstall_cmds \
 
16047
old_postuninstall_cmds \
 
16048
old_archive_cmds \
 
16049
extract_expsyms_cmds \
 
16050
old_archive_from_new_cmds \
 
16051
old_archive_from_expsyms_cmds \
 
16052
archive_cmds \
 
16053
archive_expsym_cmds \
 
16054
module_cmds \
 
16055
module_expsym_cmds \
 
16056
export_symbols_cmds \
 
16057
prelink_cmds \
 
16058
postinstall_cmds \
 
16059
postuninstall_cmds \
 
16060
finish_cmds \
 
16061
sys_lib_search_path_spec \
 
16062
sys_lib_dlsearch_path_spec \
 
16063
old_archive_cmds_CXX \
 
16064
old_archive_from_new_cmds_CXX \
 
16065
old_archive_from_expsyms_cmds_CXX \
 
16066
archive_cmds_CXX \
 
16067
archive_expsym_cmds_CXX \
 
16068
module_cmds_CXX \
 
16069
module_expsym_cmds_CXX \
 
16070
export_symbols_cmds_CXX \
 
16071
prelink_cmds_CXX; do
 
16072
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16073
    *[\\\\\\\`\\"\\\$]*)
 
16074
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
16075
      ;;
 
16076
    *)
 
16077
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16078
      ;;
 
16079
    esac
 
16080
done
 
16081
 
 
16082
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
16083
case \$lt_ECHO in
 
16084
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
16085
  ;;
 
16086
esac
 
16087
 
 
16088
ac_aux_dir='$ac_aux_dir'
 
16089
xsi_shell='$xsi_shell'
 
16090
lt_shell_append='$lt_shell_append'
 
16091
 
 
16092
# See if we are running on zsh, and set the options which allow our
 
16093
# commands through without removal of \ escapes INIT.
 
16094
if test -n "\${ZSH_VERSION+set}" ; then
 
16095
   setopt NO_GLOB_SUBST
 
16096
fi
 
16097
 
 
16098
 
 
16099
    PACKAGE='$PACKAGE'
 
16100
    VERSION='$VERSION'
 
16101
    TIMESTAMP='$TIMESTAMP'
 
16102
    RM='$RM'
 
16103
    ofile='$ofile'
 
16104
 
 
16105
 
 
16106
 
 
16107
 
 
16108
 
 
16109
 
 
16110
_ACEOF
 
16111
 
 
16112
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16113
 
 
16114
# Handling of arguments.
 
16115
for ac_config_target in $ac_config_targets
 
16116
do
 
16117
  case $ac_config_target in
 
16118
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
16119
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16120
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
16121
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
16122
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
16123
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
16124
    "trace/Makefile") CONFIG_FILES="$CONFIG_FILES trace/Makefile" ;;
 
16125
    "vdpau.pc") CONFIG_FILES="$CONFIG_FILES vdpau.pc" ;;
 
16126
 
 
16127
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
16128
  esac
 
16129
done
 
16130
 
 
16131
 
 
16132
# If the user did not use the arguments to specify the items to instantiate,
 
16133
# then the envvar interface is used.  Set only those that are not.
 
16134
# We use the long form for the default assignment because of an extremely
 
16135
# bizarre bug on SunOS 4.1.3.
 
16136
if $ac_need_defaults; then
 
16137
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
16138
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
16139
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
16140
fi
 
16141
 
 
16142
# Have a temporary directory for convenience.  Make it in the build tree
 
16143
# simply because there is no reason against having it here, and in addition,
 
16144
# creating and moving files from /tmp can sometimes cause problems.
 
16145
# Hook for its removal unless debugging.
 
16146
# Note that there is a small window in which the directory will not be cleaned:
 
16147
# after its creation but before its name has been assigned to `$tmp'.
 
16148
$debug ||
 
16149
{
 
16150
  tmp=
 
16151
  trap 'exit_status=$?
 
16152
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
16153
' 0
 
16154
  trap 'as_fn_exit 1' 1 2 13 15
 
16155
}
 
16156
# Create a (secure) tmp directory for tmp files.
 
16157
 
 
16158
{
 
16159
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
16160
  test -n "$tmp" && test -d "$tmp"
 
16161
}  ||
 
16162
{
 
16163
  tmp=./conf$$-$RANDOM
 
16164
  (umask 077 && mkdir "$tmp")
 
16165
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
16166
 
 
16167
# Set up the scripts for CONFIG_FILES section.
 
16168
# No need to generate them if there are no CONFIG_FILES.
 
16169
# This happens for instance with `./config.status config.h'.
 
16170
if test -n "$CONFIG_FILES"; then
 
16171
 
 
16172
 
 
16173
ac_cr=`echo X | tr X '\015'`
 
16174
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
16175
# But we know of no other shell where ac_cr would be empty at this
 
16176
# point, so we can use a bashism as a fallback.
 
16177
if test "x$ac_cr" = x; then
 
16178
  eval ac_cr=\$\'\\r\'
 
16179
fi
 
16180
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
16181
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
16182
  ac_cs_awk_cr='\r'
 
16183
else
 
16184
  ac_cs_awk_cr=$ac_cr
 
16185
fi
 
16186
 
 
16187
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
16188
_ACEOF
 
16189
 
 
16190
 
 
16191
{
 
16192
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
16193
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
16194
  echo "_ACEOF"
 
16195
} >conf$$subs.sh ||
 
16196
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16197
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
16198
ac_delim='%!_!# '
 
16199
for ac_last_try in false false false false false :; do
 
16200
  . ./conf$$subs.sh ||
 
16201
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16202
 
 
16203
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
16204
  if test $ac_delim_n = $ac_delim_num; then
 
16205
    break
 
16206
  elif $ac_last_try; then
 
16207
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16208
  else
 
16209
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16210
  fi
 
16211
done
 
16212
rm -f conf$$subs.sh
 
16213
 
 
16214
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16215
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
16216
_ACEOF
 
16217
sed -n '
 
16218
h
 
16219
s/^/S["/; s/!.*/"]=/
 
16220
p
 
16221
g
 
16222
s/^[^!]*!//
 
16223
:repl
 
16224
t repl
 
16225
s/'"$ac_delim"'$//
 
16226
t delim
 
16227
:nl
 
16228
h
 
16229
s/\(.\{148\}\).*/\1/
 
16230
t more1
 
16231
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
16232
p
 
16233
n
 
16234
b repl
 
16235
:more1
 
16236
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16237
p
 
16238
g
 
16239
s/.\{148\}//
 
16240
t nl
 
16241
:delim
 
16242
h
 
16243
s/\(.\{148\}\).*/\1/
 
16244
t more2
 
16245
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
16246
p
 
16247
b
 
16248
:more2
 
16249
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16250
p
 
16251
g
 
16252
s/.\{148\}//
 
16253
t delim
 
16254
' <conf$$subs.awk | sed '
 
16255
/^[^""]/{
 
16256
  N
 
16257
  s/\n//
 
16258
}
 
16259
' >>$CONFIG_STATUS || ac_write_fail=1
 
16260
rm -f conf$$subs.awk
 
16261
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16262
_ACAWK
 
16263
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
16264
  for (key in S) S_is_set[key] = 1
 
16265
  FS = ""
 
16266
 
 
16267
}
 
16268
{
 
16269
  line = $ 0
 
16270
  nfields = split(line, field, "@")
 
16271
  substed = 0
 
16272
  len = length(field[1])
 
16273
  for (i = 2; i < nfields; i++) {
 
16274
    key = field[i]
 
16275
    keylen = length(key)
 
16276
    if (S_is_set[key]) {
 
16277
      value = S[key]
 
16278
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
16279
      len += length(value) + length(field[++i])
 
16280
      substed = 1
 
16281
    } else
 
16282
      len += 1 + keylen
 
16283
  }
 
16284
 
 
16285
  print line
 
16286
}
 
16287
 
 
16288
_ACAWK
 
16289
_ACEOF
 
16290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16291
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
16292
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
16293
else
 
16294
  cat
 
16295
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
16296
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
16297
_ACEOF
 
16298
 
 
16299
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
16300
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
16301
# trailing colons and then remove the whole line if VPATH becomes empty
 
16302
# (actually we leave an empty line to preserve line numbers).
 
16303
if test "x$srcdir" = x.; then
 
16304
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
16305
s/:*\$(srcdir):*/:/
 
16306
s/:*\${srcdir}:*/:/
 
16307
s/:*@srcdir@:*/:/
 
16308
s/^\([^=]*=[     ]*\):*/\1/
 
16309
s/:*$//
 
16310
s/^[^=]*=[       ]*$//
 
16311
}'
 
16312
fi
 
16313
 
 
16314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16315
fi # test -n "$CONFIG_FILES"
 
16316
 
 
16317
# Set up the scripts for CONFIG_HEADERS section.
 
16318
# No need to generate them if there are no CONFIG_HEADERS.
 
16319
# This happens for instance with `./config.status Makefile'.
 
16320
if test -n "$CONFIG_HEADERS"; then
 
16321
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
16322
BEGIN {
 
16323
_ACEOF
 
16324
 
 
16325
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
16326
# here-document in config.status, that substitutes the proper values into
 
16327
# config.h.in to produce config.h.
 
16328
 
 
16329
# Create a delimiter string that does not exist in confdefs.h, to ease
 
16330
# handling of long lines.
 
16331
ac_delim='%!_!# '
 
16332
for ac_last_try in false false :; do
 
16333
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
16334
  if test -z "$ac_t"; then
 
16335
    break
 
16336
  elif $ac_last_try; then
 
16337
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
16338
  else
 
16339
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16340
  fi
 
16341
done
 
16342
 
 
16343
# For the awk script, D is an array of macro values keyed by name,
 
16344
# likewise P contains macro parameters if any.  Preserve backslash
 
16345
# newline sequences.
 
16346
 
 
16347
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
16348
sed -n '
 
16349
s/.\{148\}/&'"$ac_delim"'/g
 
16350
t rset
 
16351
:rset
 
16352
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
16353
t def
 
16354
d
 
16355
:def
 
16356
s/\\$//
 
16357
t bsnl
 
16358
s/["\\]/\\&/g
 
16359
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16360
D["\1"]=" \3"/p
 
16361
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
16362
d
 
16363
:bsnl
 
16364
s/["\\]/\\&/g
 
16365
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16366
D["\1"]=" \3\\\\\\n"\\/p
 
16367
t cont
 
16368
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
16369
t cont
 
16370
d
 
16371
:cont
 
16372
n
 
16373
s/.\{148\}/&'"$ac_delim"'/g
 
16374
t clear
 
16375
:clear
 
16376
s/\\$//
 
16377
t bsnlc
 
16378
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
16379
d
 
16380
:bsnlc
 
16381
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
16382
b cont
 
16383
' <confdefs.h | sed '
 
16384
s/'"$ac_delim"'/"\\\
 
16385
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
16386
 
 
16387
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16388
  for (key in D) D_is_set[key] = 1
 
16389
  FS = ""
 
16390
}
 
16391
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
16392
  line = \$ 0
 
16393
  split(line, arg, " ")
 
16394
  if (arg[1] == "#") {
 
16395
    defundef = arg[2]
 
16396
    mac1 = arg[3]
 
16397
  } else {
 
16398
    defundef = substr(arg[1], 2)
 
16399
    mac1 = arg[2]
 
16400
  }
 
16401
  split(mac1, mac2, "(") #)
 
16402
  macro = mac2[1]
 
16403
  prefix = substr(line, 1, index(line, defundef) - 1)
 
16404
  if (D_is_set[macro]) {
 
16405
    # Preserve the white space surrounding the "#".
 
16406
    print prefix "define", macro P[macro] D[macro]
 
16407
    next
 
16408
  } else {
 
16409
    # Replace #undef with comments.  This is necessary, for example,
 
16410
    # in the case of _POSIX_SOURCE, which is predefined and required
 
16411
    # on some systems where configure will not decide to define it.
 
16412
    if (defundef == "undef") {
 
16413
      print "/*", prefix defundef, macro, "*/"
 
16414
      next
 
16415
    }
 
16416
  }
 
16417
}
 
16418
{ print }
 
16419
_ACAWK
 
16420
_ACEOF
 
16421
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16422
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
16423
fi # test -n "$CONFIG_HEADERS"
 
16424
 
 
16425
 
 
16426
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
16427
shift
 
16428
for ac_tag
 
16429
do
 
16430
  case $ac_tag in
 
16431
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
16432
  esac
 
16433
  case $ac_mode$ac_tag in
 
16434
  :[FHL]*:*);;
 
16435
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
16436
  :[FH]-) ac_tag=-:-;;
 
16437
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
16438
  esac
 
16439
  ac_save_IFS=$IFS
 
16440
  IFS=:
 
16441
  set x $ac_tag
 
16442
  IFS=$ac_save_IFS
 
16443
  shift
 
16444
  ac_file=$1
 
16445
  shift
 
16446
 
 
16447
  case $ac_mode in
 
16448
  :L) ac_source=$1;;
 
16449
  :[FH])
 
16450
    ac_file_inputs=
 
16451
    for ac_f
 
16452
    do
 
16453
      case $ac_f in
 
16454
      -) ac_f="$tmp/stdin";;
 
16455
      *) # Look for the file first in the build tree, then in the source tree
 
16456
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
16457
         # because $ac_f cannot contain `:'.
 
16458
         test -f "$ac_f" ||
 
16459
           case $ac_f in
 
16460
           [\\/$]*) false;;
 
16461
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
16462
           esac ||
 
16463
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
16464
      esac
 
16465
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
16466
      as_fn_append ac_file_inputs " '$ac_f'"
 
16467
    done
 
16468
 
 
16469
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16470
    # use $as_me), people would be surprised to read:
 
16471
    #    /* config.h.  Generated by config.status.  */
 
16472
    configure_input='Generated from '`
 
16473
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
16474
        `' by configure.'
 
16475
    if test x"$ac_file" != x-; then
 
16476
      configure_input="$ac_file.  $configure_input"
 
16477
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
16478
$as_echo "$as_me: creating $ac_file" >&6;}
 
16479
    fi
 
16480
    # Neutralize special characters interpreted by sed in replacement strings.
 
16481
    case $configure_input in #(
 
16482
    *\&* | *\|* | *\\* )
 
16483
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
16484
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
16485
    *) ac_sed_conf_input=$configure_input;;
 
16486
    esac
 
16487
 
 
16488
    case $ac_tag in
 
16489
    *:-:* | *:-) cat >"$tmp/stdin" \
 
16490
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
16491
    esac
 
16492
    ;;
 
16493
  esac
 
16494
 
 
16495
  ac_dir=`$as_dirname -- "$ac_file" ||
 
16496
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16497
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16498
         X"$ac_file" : 'X\(//\)$' \| \
 
16499
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
16500
$as_echo X"$ac_file" |
 
16501
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16502
            s//\1/
 
16503
            q
 
16504
          }
 
16505
          /^X\(\/\/\)[^/].*/{
 
16506
            s//\1/
 
16507
            q
 
16508
          }
 
16509
          /^X\(\/\/\)$/{
 
16510
            s//\1/
 
16511
            q
 
16512
          }
 
16513
          /^X\(\/\).*/{
 
16514
            s//\1/
 
16515
            q
 
16516
          }
 
16517
          s/.*/./; q'`
 
16518
  as_dir="$ac_dir"; as_fn_mkdir_p
 
16519
  ac_builddir=.
 
16520
 
 
16521
case "$ac_dir" in
 
16522
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16523
*)
 
16524
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
16525
  # A ".." for each directory in $ac_dir_suffix.
 
16526
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
16527
  case $ac_top_builddir_sub in
 
16528
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16529
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
16530
  esac ;;
 
16531
esac
 
16532
ac_abs_top_builddir=$ac_pwd
 
16533
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
16534
# for backward compatibility:
 
16535
ac_top_builddir=$ac_top_build_prefix
 
16536
 
 
16537
case $srcdir in
 
16538
  .)  # We are building in place.
 
16539
    ac_srcdir=.
 
16540
    ac_top_srcdir=$ac_top_builddir_sub
 
16541
    ac_abs_top_srcdir=$ac_pwd ;;
 
16542
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
16543
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16544
    ac_top_srcdir=$srcdir
 
16545
    ac_abs_top_srcdir=$srcdir ;;
 
16546
  *) # Relative name.
 
16547
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
16548
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
16549
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
16550
esac
 
16551
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
16552
 
 
16553
 
 
16554
  case $ac_mode in
 
16555
  :F)
 
16556
  #
 
16557
  # CONFIG_FILE
 
16558
  #
 
16559
 
 
16560
  case $INSTALL in
 
16561
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
16562
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
16563
  esac
 
16564
  ac_MKDIR_P=$MKDIR_P
 
16565
  case $MKDIR_P in
 
16566
  [\\/$]* | ?:[\\/]* ) ;;
 
16567
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
16568
  esac
 
16569
_ACEOF
 
16570
 
 
16571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16572
# If the template does not know about datarootdir, expand it.
 
16573
# FIXME: This hack should be removed a few years after 2.60.
 
16574
ac_datarootdir_hack=; ac_datarootdir_seen=
 
16575
ac_sed_dataroot='
 
16576
/datarootdir/ {
 
16577
  p
 
16578
  q
 
16579
}
 
16580
/@datadir@/p
 
16581
/@docdir@/p
 
16582
/@infodir@/p
 
16583
/@localedir@/p
 
16584
/@mandir@/p'
 
16585
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
16586
*datarootdir*) ac_datarootdir_seen=yes;;
 
16587
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
16588
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
16589
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
16590
_ACEOF
 
16591
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16592
  ac_datarootdir_hack='
 
16593
  s&@datadir@&$datadir&g
 
16594
  s&@docdir@&$docdir&g
 
16595
  s&@infodir@&$infodir&g
 
16596
  s&@localedir@&$localedir&g
 
16597
  s&@mandir@&$mandir&g
 
16598
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
16599
esac
 
16600
_ACEOF
 
16601
 
 
16602
# Neutralize VPATH when `$srcdir' = `.'.
 
16603
# Shell code in configure.ac might set extrasub.
 
16604
# FIXME: do we really want to maintain this feature?
 
16605
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16606
ac_sed_extra="$ac_vpsub
 
16607
$extrasub
 
16608
_ACEOF
 
16609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16610
:t
 
16611
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
16612
s|@configure_input@|$ac_sed_conf_input|;t t
 
16613
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
16614
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
16615
s&@srcdir@&$ac_srcdir&;t t
 
16616
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
16617
s&@top_srcdir@&$ac_top_srcdir&;t t
 
16618
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
16619
s&@builddir@&$ac_builddir&;t t
 
16620
s&@abs_builddir@&$ac_abs_builddir&;t t
 
16621
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
16622
s&@INSTALL@&$ac_INSTALL&;t t
 
16623
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
16624
$ac_datarootdir_hack
 
16625
"
 
16626
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
16627
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16628
 
 
16629
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
16630
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
16631
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
16632
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16633
which seems to be undefined.  Please make sure it is defined." >&5
 
16634
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16635
which seems to be undefined.  Please make sure it is defined." >&2;}
 
16636
 
 
16637
  rm -f "$tmp/stdin"
 
16638
  case $ac_file in
 
16639
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
16640
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
16641
  esac \
 
16642
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16643
 ;;
 
16644
  :H)
 
16645
  #
 
16646
  # CONFIG_HEADER
 
16647
  #
 
16648
  if test x"$ac_file" != x-; then
 
16649
    {
 
16650
      $as_echo "/* $configure_input  */" \
 
16651
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
16652
    } >"$tmp/config.h" \
 
16653
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16654
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
16655
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
16656
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
16657
    else
 
16658
      rm -f "$ac_file"
 
16659
      mv "$tmp/config.h" "$ac_file" \
 
16660
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16661
    fi
 
16662
  else
 
16663
    $as_echo "/* $configure_input  */" \
 
16664
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
16665
      || as_fn_error "could not create -" "$LINENO" 5
 
16666
  fi
 
16667
# Compute "$ac_file"'s index in $config_headers.
 
16668
_am_arg="$ac_file"
 
16669
_am_stamp_count=1
 
16670
for _am_header in $config_headers :; do
 
16671
  case $_am_header in
 
16672
    $_am_arg | $_am_arg:* )
 
16673
      break ;;
 
16674
    * )
 
16675
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
16676
  esac
 
16677
done
 
16678
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16679
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16680
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16681
         X"$_am_arg" : 'X\(//\)$' \| \
 
16682
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16683
$as_echo X"$_am_arg" |
 
16684
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16685
            s//\1/
 
16686
            q
 
16687
          }
 
16688
          /^X\(\/\/\)[^/].*/{
 
16689
            s//\1/
 
16690
            q
 
16691
          }
 
16692
          /^X\(\/\/\)$/{
 
16693
            s//\1/
 
16694
            q
 
16695
          }
 
16696
          /^X\(\/\).*/{
 
16697
            s//\1/
 
16698
            q
 
16699
          }
 
16700
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16701
 ;;
 
16702
 
 
16703
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
16704
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16705
 ;;
 
16706
  esac
 
16707
 
 
16708
 
 
16709
  case $ac_file$ac_mode in
 
16710
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
16711
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16712
  # are listed without --file.  Let's play safe and only enable the eval
 
16713
  # if we detect the quoting.
 
16714
  case $CONFIG_FILES in
 
16715
  *\'*) eval set x "$CONFIG_FILES" ;;
 
16716
  *)   set x $CONFIG_FILES ;;
 
16717
  esac
 
16718
  shift
 
16719
  for mf
 
16720
  do
 
16721
    # Strip MF so we end up with the name of the file.
 
16722
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
16723
    # Check whether this is an Automake generated Makefile or not.
 
16724
    # We used to match only the files named `Makefile.in', but
 
16725
    # some people rename them; so instead we look at the file content.
 
16726
    # Grep'ing the first line is not enough: some people post-process
 
16727
    # each Makefile.in and add a new line on top of each file to say so.
 
16728
    # Grep'ing the whole file is not good either: AIX grep has a line
 
16729
    # limit of 2048, but all sed's we know have understand at least 4000.
 
16730
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
16731
      dirpart=`$as_dirname -- "$mf" ||
 
16732
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16733
         X"$mf" : 'X\(//\)[^/]' \| \
 
16734
         X"$mf" : 'X\(//\)$' \| \
 
16735
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
16736
$as_echo X"$mf" |
 
16737
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16738
            s//\1/
 
16739
            q
 
16740
          }
 
16741
          /^X\(\/\/\)[^/].*/{
 
16742
            s//\1/
 
16743
            q
 
16744
          }
 
16745
          /^X\(\/\/\)$/{
 
16746
            s//\1/
 
16747
            q
 
16748
          }
 
16749
          /^X\(\/\).*/{
 
16750
            s//\1/
 
16751
            q
 
16752
          }
 
16753
          s/.*/./; q'`
 
16754
    else
 
16755
      continue
 
16756
    fi
 
16757
    # Extract the definition of DEPDIR, am__include, and am__quote
 
16758
    # from the Makefile without running `make'.
 
16759
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
16760
    test -z "$DEPDIR" && continue
 
16761
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
16762
    test -z "am__include" && continue
 
16763
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
16764
    # When using ansi2knr, U may be empty or an underscore; expand it
 
16765
    U=`sed -n 's/^U = //p' < "$mf"`
 
16766
    # Find all dependency output files, they are included files with
 
16767
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
16768
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
16769
    # expansion.
 
16770
    for file in `sed -n "
 
16771
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
16772
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
16773
      # Make sure the directory exists.
 
16774
      test -f "$dirpart/$file" && continue
 
16775
      fdir=`$as_dirname -- "$file" ||
 
16776
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16777
         X"$file" : 'X\(//\)[^/]' \| \
 
16778
         X"$file" : 'X\(//\)$' \| \
 
16779
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
16780
$as_echo X"$file" |
 
16781
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16782
            s//\1/
 
16783
            q
 
16784
          }
 
16785
          /^X\(\/\/\)[^/].*/{
 
16786
            s//\1/
 
16787
            q
 
16788
          }
 
16789
          /^X\(\/\/\)$/{
 
16790
            s//\1/
 
16791
            q
 
16792
          }
 
16793
          /^X\(\/\).*/{
 
16794
            s//\1/
 
16795
            q
 
16796
          }
 
16797
          s/.*/./; q'`
 
16798
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
16799
      # echo "creating $dirpart/$file"
 
16800
      echo '# dummy' > "$dirpart/$file"
 
16801
    done
 
16802
  done
 
16803
}
 
16804
 ;;
 
16805
    "libtool":C)
 
16806
 
 
16807
    # See if we are running on zsh, and set the options which allow our
 
16808
    # commands through without removal of \ escapes.
 
16809
    if test -n "${ZSH_VERSION+set}" ; then
 
16810
      setopt NO_GLOB_SUBST
 
16811
    fi
 
16812
 
 
16813
    cfgfile="${ofile}T"
 
16814
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
16815
    $RM "$cfgfile"
 
16816
 
 
16817
    cat <<_LT_EOF >> "$cfgfile"
 
16818
#! $SHELL
 
16819
 
 
16820
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
16821
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
16822
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16823
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
16824
#
 
16825
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
16826
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
16827
#   Written by Gordon Matzigkeit, 1996
 
16828
#
 
16829
#   This file is part of GNU Libtool.
 
16830
#
 
16831
# GNU Libtool is free software; you can redistribute it and/or
 
16832
# modify it under the terms of the GNU General Public License as
 
16833
# published by the Free Software Foundation; either version 2 of
 
16834
# the License, or (at your option) any later version.
 
16835
#
 
16836
# As a special exception to the GNU General Public License,
 
16837
# if you distribute this file as part of a program or library that
 
16838
# is built using GNU Libtool, you may include this file under the
 
16839
# same distribution terms that you use for the rest of that program.
 
16840
#
 
16841
# GNU Libtool is distributed in the hope that it will be useful,
 
16842
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16843
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16844
# GNU General Public License for more details.
 
16845
#
 
16846
# You should have received a copy of the GNU General Public License
 
16847
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
16848
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
16849
# obtained by writing to the Free Software Foundation, Inc.,
 
16850
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16851
 
 
16852
 
 
16853
# The names of the tagged configurations supported by this script.
 
16854
available_tags="CXX "
 
16855
 
 
16856
# ### BEGIN LIBTOOL CONFIG
 
16857
 
 
16858
# Whether or not to build static libraries.
 
16859
build_old_libs=$enable_static
 
16860
 
 
16861
# Which release of libtool.m4 was used?
 
16862
macro_version=$macro_version
 
16863
macro_revision=$macro_revision
 
16864
 
 
16865
# Whether or not to build shared libraries.
 
16866
build_libtool_libs=$enable_shared
 
16867
 
 
16868
# What type of objects to build.
 
16869
pic_mode=$pic_mode
 
16870
 
 
16871
# Whether or not to optimize for fast installation.
 
16872
fast_install=$enable_fast_install
 
16873
 
 
16874
# The host system.
 
16875
host_alias=$host_alias
 
16876
host=$host
 
16877
host_os=$host_os
 
16878
 
 
16879
# The build system.
 
16880
build_alias=$build_alias
 
16881
build=$build
 
16882
build_os=$build_os
 
16883
 
 
16884
# A sed program that does not truncate output.
 
16885
SED=$lt_SED
 
16886
 
 
16887
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
16888
Xsed="\$SED -e 1s/^X//"
 
16889
 
 
16890
# A grep program that handles long lines.
 
16891
GREP=$lt_GREP
 
16892
 
 
16893
# An ERE matcher.
 
16894
EGREP=$lt_EGREP
 
16895
 
 
16896
# A literal string matcher.
 
16897
FGREP=$lt_FGREP
 
16898
 
 
16899
# A BSD- or MS-compatible name lister.
 
16900
NM=$lt_NM
 
16901
 
 
16902
# Whether we need soft or hard links.
 
16903
LN_S=$lt_LN_S
 
16904
 
 
16905
# What is the maximum length of a command?
 
16906
max_cmd_len=$max_cmd_len
 
16907
 
 
16908
# Object file suffix (normally "o").
 
16909
objext=$ac_objext
 
16910
 
 
16911
# Executable file suffix (normally "").
 
16912
exeext=$exeext
 
16913
 
 
16914
# whether the shell understands "unset".
 
16915
lt_unset=$lt_unset
 
16916
 
 
16917
# turn spaces into newlines.
 
16918
SP2NL=$lt_lt_SP2NL
 
16919
 
 
16920
# turn newlines into spaces.
 
16921
NL2SP=$lt_lt_NL2SP
 
16922
 
 
16923
# How to create reloadable object files.
 
16924
reload_flag=$lt_reload_flag
 
16925
reload_cmds=$lt_reload_cmds
 
16926
 
 
16927
# An object symbol dumper.
 
16928
OBJDUMP=$lt_OBJDUMP
 
16929
 
 
16930
# Method to check whether dependent libraries are shared objects.
 
16931
deplibs_check_method=$lt_deplibs_check_method
 
16932
 
 
16933
# Command to use when deplibs_check_method == "file_magic".
 
16934
file_magic_cmd=$lt_file_magic_cmd
 
16935
 
 
16936
# The archiver.
 
16937
AR=$lt_AR
 
16938
AR_FLAGS=$lt_AR_FLAGS
 
16939
 
 
16940
# A symbol stripping program.
 
16941
STRIP=$lt_STRIP
 
16942
 
 
16943
# Commands used to install an old-style archive.
 
16944
RANLIB=$lt_RANLIB
 
16945
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16946
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16947
 
 
16948
# A C compiler.
 
16949
LTCC=$lt_CC
 
16950
 
 
16951
# LTCC compiler flags.
 
16952
LTCFLAGS=$lt_CFLAGS
 
16953
 
 
16954
# Take the output of nm and produce a listing of raw symbols and C names.
 
16955
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16956
 
 
16957
# Transform the output of nm in a proper C declaration.
 
16958
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16959
 
 
16960
# Transform the output of nm in a C name address pair.
 
16961
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16962
 
 
16963
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
16964
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
16965
 
 
16966
# The name of the directory that contains temporary libtool files.
 
16967
objdir=$objdir
 
16968
 
 
16969
# Shell to use when invoking shell scripts.
 
16970
SHELL=$lt_SHELL
 
16971
 
 
16972
# An echo program that does not interpret backslashes.
 
16973
ECHO=$lt_ECHO
 
16974
 
 
16975
# Used to examine libraries when file_magic_cmd begins with "file".
 
16976
MAGIC_CMD=$MAGIC_CMD
 
16977
 
 
16978
# Must we lock files when doing compilation?
 
16979
need_locks=$lt_need_locks
 
16980
 
 
16981
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
16982
DSYMUTIL=$lt_DSYMUTIL
 
16983
 
 
16984
# Tool to change global to local symbols on Mac OS X.
 
16985
NMEDIT=$lt_NMEDIT
 
16986
 
 
16987
# Tool to manipulate fat objects and archives on Mac OS X.
 
16988
LIPO=$lt_LIPO
 
16989
 
 
16990
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
16991
OTOOL=$lt_OTOOL
 
16992
 
 
16993
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
16994
OTOOL64=$lt_OTOOL64
 
16995
 
 
16996
# Old archive suffix (normally "a").
 
16997
libext=$libext
 
16998
 
 
16999
# Shared library suffix (normally ".so").
 
17000
shrext_cmds=$lt_shrext_cmds
 
17001
 
 
17002
# The commands to extract the exported symbol list from a shared archive.
 
17003
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17004
 
 
17005
# Variables whose values should be saved in libtool wrapper scripts and
 
17006
# restored at link time.
 
17007
variables_saved_for_relink=$lt_variables_saved_for_relink
 
17008
 
 
17009
# Do we need the "lib" prefix for modules?
 
17010
need_lib_prefix=$need_lib_prefix
 
17011
 
 
17012
# Do we need a version for libraries?
 
17013
need_version=$need_version
 
17014
 
 
17015
# Library versioning type.
 
17016
version_type=$version_type
 
17017
 
 
17018
# Shared library runtime path variable.
 
17019
runpath_var=$runpath_var
 
17020
 
 
17021
# Shared library path variable.
 
17022
shlibpath_var=$shlibpath_var
 
17023
 
 
17024
# Is shlibpath searched before the hard-coded library search path?
 
17025
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17026
 
 
17027
# Format of library name prefix.
 
17028
libname_spec=$lt_libname_spec
 
17029
 
 
17030
# List of archive names.  First name is the real one, the rest are links.
 
17031
# The last name is the one that the linker finds with -lNAME
 
17032
library_names_spec=$lt_library_names_spec
 
17033
 
 
17034
# The coded name of the library, if different from the real name.
 
17035
soname_spec=$lt_soname_spec
 
17036
 
 
17037
# Command to use after installation of a shared archive.
 
17038
postinstall_cmds=$lt_postinstall_cmds
 
17039
 
 
17040
# Command to use after uninstallation of a shared archive.
 
17041
postuninstall_cmds=$lt_postuninstall_cmds
 
17042
 
 
17043
# Commands used to finish a libtool library installation in a directory.
 
17044
finish_cmds=$lt_finish_cmds
 
17045
 
 
17046
# As "finish_cmds", except a single script fragment to be evaled but
 
17047
# not shown.
 
17048
finish_eval=$lt_finish_eval
 
17049
 
 
17050
# Whether we should hardcode library paths into libraries.
 
17051
hardcode_into_libs=$hardcode_into_libs
 
17052
 
 
17053
# Compile-time system search path for libraries.
 
17054
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17055
 
 
17056
# Run-time system search path for libraries.
 
17057
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17058
 
 
17059
# Whether dlopen is supported.
 
17060
dlopen_support=$enable_dlopen
 
17061
 
 
17062
# Whether dlopen of programs is supported.
 
17063
dlopen_self=$enable_dlopen_self
 
17064
 
 
17065
# Whether dlopen of statically linked programs is supported.
 
17066
dlopen_self_static=$enable_dlopen_self_static
 
17067
 
 
17068
# Commands to strip libraries.
 
17069
old_striplib=$lt_old_striplib
 
17070
striplib=$lt_striplib
 
17071
 
 
17072
 
 
17073
# The linker used to build libraries.
 
17074
LD=$lt_LD
 
17075
 
 
17076
# Commands used to build an old-style archive.
 
17077
old_archive_cmds=$lt_old_archive_cmds
 
17078
 
 
17079
# A language specific compiler.
 
17080
CC=$lt_compiler
 
17081
 
 
17082
# Is the compiler the GNU compiler?
 
17083
with_gcc=$GCC
 
17084
 
 
17085
# Compiler flag to turn off builtin functions.
 
17086
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
17087
 
 
17088
# How to pass a linker flag through the compiler.
 
17089
wl=$lt_lt_prog_compiler_wl
 
17090
 
 
17091
# Additional compiler flags for building library objects.
 
17092
pic_flag=$lt_lt_prog_compiler_pic
 
17093
 
 
17094
# Compiler flag to prevent dynamic linking.
 
17095
link_static_flag=$lt_lt_prog_compiler_static
 
17096
 
 
17097
# Does compiler simultaneously support -c and -o options?
 
17098
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
17099
 
 
17100
# Whether or not to add -lc for building shared libraries.
 
17101
build_libtool_need_lc=$archive_cmds_need_lc
 
17102
 
 
17103
# Whether or not to disallow shared libs when runtime libs are static.
 
17104
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
17105
 
 
17106
# Compiler flag to allow reflexive dlopens.
 
17107
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
17108
 
 
17109
# Compiler flag to generate shared objects directly from archives.
 
17110
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
17111
 
 
17112
# Whether the compiler copes with passing no objects directly.
 
17113
compiler_needs_object=$lt_compiler_needs_object
 
17114
 
 
17115
# Create an old-style archive from a shared archive.
 
17116
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
17117
 
 
17118
# Create a temporary old-style archive to link instead of a shared archive.
 
17119
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
17120
 
 
17121
# Commands used to build a shared archive.
 
17122
archive_cmds=$lt_archive_cmds
 
17123
archive_expsym_cmds=$lt_archive_expsym_cmds
 
17124
 
 
17125
# Commands used to build a loadable module if different from building
 
17126
# a shared archive.
 
17127
module_cmds=$lt_module_cmds
 
17128
module_expsym_cmds=$lt_module_expsym_cmds
 
17129
 
 
17130
# Whether we are building with GNU ld or not.
 
17131
with_gnu_ld=$lt_with_gnu_ld
 
17132
 
 
17133
# Flag that allows shared libraries with undefined symbols to be built.
 
17134
allow_undefined_flag=$lt_allow_undefined_flag
 
17135
 
 
17136
# Flag that enforces no undefined symbols.
 
17137
no_undefined_flag=$lt_no_undefined_flag
 
17138
 
 
17139
# Flag to hardcode \$libdir into a binary during linking.
 
17140
# This must work even if \$libdir does not exist
 
17141
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
17142
 
 
17143
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
17144
# during linking.  This must work even if \$libdir does not exist.
 
17145
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
17146
 
 
17147
# Whether we need a single "-rpath" flag with a separated argument.
 
17148
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
17149
 
 
17150
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17151
# DIR into the resulting binary.
 
17152
hardcode_direct=$hardcode_direct
 
17153
 
 
17154
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17155
# DIR into the resulting binary and the resulting library dependency is
 
17156
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17157
# library is relocated.
 
17158
hardcode_direct_absolute=$hardcode_direct_absolute
 
17159
 
 
17160
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17161
# into the resulting binary.
 
17162
hardcode_minus_L=$hardcode_minus_L
 
17163
 
 
17164
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17165
# into the resulting binary.
 
17166
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
17167
 
 
17168
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17169
# into the library and all subsequent libraries and executables linked
 
17170
# against it.
 
17171
hardcode_automatic=$hardcode_automatic
 
17172
 
 
17173
# Set to yes if linker adds runtime paths of dependent libraries
 
17174
# to runtime path list.
 
17175
inherit_rpath=$inherit_rpath
 
17176
 
 
17177
# Whether libtool must link a program against all its dependency libraries.
 
17178
link_all_deplibs=$link_all_deplibs
 
17179
 
 
17180
# Fix the shell variable \$srcfile for the compiler.
 
17181
fix_srcfile_path=$lt_fix_srcfile_path
 
17182
 
 
17183
# Set to "yes" if exported symbols are required.
 
17184
always_export_symbols=$always_export_symbols
 
17185
 
 
17186
# The commands to list exported symbols.
 
17187
export_symbols_cmds=$lt_export_symbols_cmds
 
17188
 
 
17189
# Symbols that should not be listed in the preloaded symbols.
 
17190
exclude_expsyms=$lt_exclude_expsyms
 
17191
 
 
17192
# Symbols that must always be exported.
 
17193
include_expsyms=$lt_include_expsyms
 
17194
 
 
17195
# Commands necessary for linking programs (against libraries) with templates.
 
17196
prelink_cmds=$lt_prelink_cmds
 
17197
 
 
17198
# Specify filename containing input files.
 
17199
file_list_spec=$lt_file_list_spec
 
17200
 
 
17201
# How to hardcode a shared library path into an executable.
 
17202
hardcode_action=$hardcode_action
 
17203
 
 
17204
# The directories searched by this compiler when creating a shared library.
 
17205
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
17206
 
 
17207
# Dependencies to place before and after the objects being linked to
 
17208
# create a shared library.
 
17209
predep_objects=$lt_predep_objects
 
17210
postdep_objects=$lt_postdep_objects
 
17211
predeps=$lt_predeps
 
17212
postdeps=$lt_postdeps
 
17213
 
 
17214
# The library search path used internally by the compiler when linking
 
17215
# a shared library.
 
17216
compiler_lib_search_path=$lt_compiler_lib_search_path
 
17217
 
 
17218
# ### END LIBTOOL CONFIG
 
17219
 
 
17220
_LT_EOF
 
17221
 
 
17222
  case $host_os in
 
17223
  aix3*)
 
17224
    cat <<\_LT_EOF >> "$cfgfile"
 
17225
# AIX sometimes has problems with the GCC collect2 program.  For some
 
17226
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
17227
# vanish in a puff of smoke.
 
17228
if test "X${COLLECT_NAMES+set}" != Xset; then
 
17229
  COLLECT_NAMES=
 
17230
  export COLLECT_NAMES
 
17231
fi
 
17232
_LT_EOF
 
17233
    ;;
 
17234
  esac
 
17235
 
 
17236
 
 
17237
ltmain="$ac_aux_dir/ltmain.sh"
 
17238
 
 
17239
 
 
17240
  # We use sed instead of cat because bash on DJGPP gets confused if
 
17241
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
17242
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
17243
  # is reportedly fixed, but why not run on old versions too?
 
17244
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
17245
    || (rm -f "$cfgfile"; exit 1)
 
17246
 
 
17247
  case $xsi_shell in
 
17248
  yes)
 
17249
    cat << \_LT_EOF >> "$cfgfile"
 
17250
 
 
17251
# func_dirname file append nondir_replacement
 
17252
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17253
# otherwise set result to NONDIR_REPLACEMENT.
 
17254
func_dirname ()
 
17255
{
 
17256
  case ${1} in
 
17257
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17258
    *  ) func_dirname_result="${3}" ;;
 
17259
  esac
 
17260
}
 
17261
 
 
17262
# func_basename file
 
17263
func_basename ()
 
17264
{
 
17265
  func_basename_result="${1##*/}"
 
17266
}
 
17267
 
 
17268
# func_dirname_and_basename file append nondir_replacement
 
17269
# perform func_basename and func_dirname in a single function
 
17270
# call:
 
17271
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
17272
#             add APPEND to the result, otherwise set result
 
17273
#             to NONDIR_REPLACEMENT.
 
17274
#             value returned in "$func_dirname_result"
 
17275
#   basename: Compute filename of FILE.
 
17276
#             value retuned in "$func_basename_result"
 
17277
# Implementation must be kept synchronized with func_dirname
 
17278
# and func_basename. For efficiency, we do not delegate to
 
17279
# those functions but instead duplicate the functionality here.
 
17280
func_dirname_and_basename ()
 
17281
{
 
17282
  case ${1} in
 
17283
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17284
    *  ) func_dirname_result="${3}" ;;
 
17285
  esac
 
17286
  func_basename_result="${1##*/}"
 
17287
}
 
17288
 
 
17289
# func_stripname prefix suffix name
 
17290
# strip PREFIX and SUFFIX off of NAME.
 
17291
# PREFIX and SUFFIX must not contain globbing or regex special
 
17292
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17293
# dot (in which case that matches only a dot).
 
17294
func_stripname ()
 
17295
{
 
17296
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
17297
  # positional parameters, so assign one to ordinary parameter first.
 
17298
  func_stripname_result=${3}
 
17299
  func_stripname_result=${func_stripname_result#"${1}"}
 
17300
  func_stripname_result=${func_stripname_result%"${2}"}
 
17301
}
 
17302
 
 
17303
# func_opt_split
 
17304
func_opt_split ()
 
17305
{
 
17306
  func_opt_split_opt=${1%%=*}
 
17307
  func_opt_split_arg=${1#*=}
 
17308
}
 
17309
 
 
17310
# func_lo2o object
 
17311
func_lo2o ()
 
17312
{
 
17313
  case ${1} in
 
17314
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
17315
    *)    func_lo2o_result=${1} ;;
 
17316
  esac
 
17317
}
 
17318
 
 
17319
# func_xform libobj-or-source
 
17320
func_xform ()
 
17321
{
 
17322
  func_xform_result=${1%.*}.lo
 
17323
}
 
17324
 
 
17325
# func_arith arithmetic-term...
 
17326
func_arith ()
 
17327
{
 
17328
  func_arith_result=$(( $* ))
 
17329
}
 
17330
 
 
17331
# func_len string
 
17332
# STRING may not start with a hyphen.
 
17333
func_len ()
 
17334
{
 
17335
  func_len_result=${#1}
 
17336
}
 
17337
 
 
17338
_LT_EOF
 
17339
    ;;
 
17340
  *) # Bourne compatible functions.
 
17341
    cat << \_LT_EOF >> "$cfgfile"
 
17342
 
 
17343
# func_dirname file append nondir_replacement
 
17344
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17345
# otherwise set result to NONDIR_REPLACEMENT.
 
17346
func_dirname ()
 
17347
{
 
17348
  # Extract subdirectory from the argument.
 
17349
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
17350
  if test "X$func_dirname_result" = "X${1}"; then
 
17351
    func_dirname_result="${3}"
 
17352
  else
 
17353
    func_dirname_result="$func_dirname_result${2}"
 
17354
  fi
 
17355
}
 
17356
 
 
17357
# func_basename file
 
17358
func_basename ()
 
17359
{
 
17360
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
17361
}
 
17362
 
 
17363
 
 
17364
# func_stripname prefix suffix name
 
17365
# strip PREFIX and SUFFIX off of NAME.
 
17366
# PREFIX and SUFFIX must not contain globbing or regex special
 
17367
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17368
# dot (in which case that matches only a dot).
 
17369
# func_strip_suffix prefix name
 
17370
func_stripname ()
 
17371
{
 
17372
  case ${2} in
 
17373
    .*) func_stripname_result=`$ECHO "X${3}" \
 
17374
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
17375
    *)  func_stripname_result=`$ECHO "X${3}" \
 
17376
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
17377
  esac
 
17378
}
 
17379
 
 
17380
# sed scripts:
 
17381
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
17382
my_sed_long_arg='1s/^-[^=]*=//'
 
17383
 
 
17384
# func_opt_split
 
17385
func_opt_split ()
 
17386
{
 
17387
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
17388
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
17389
}
 
17390
 
 
17391
# func_lo2o object
 
17392
func_lo2o ()
 
17393
{
 
17394
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
17395
}
 
17396
 
 
17397
# func_xform libobj-or-source
 
17398
func_xform ()
 
17399
{
 
17400
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
17401
}
 
17402
 
 
17403
# func_arith arithmetic-term...
 
17404
func_arith ()
 
17405
{
 
17406
  func_arith_result=`expr "$@"`
 
17407
}
 
17408
 
 
17409
# func_len string
 
17410
# STRING may not start with a hyphen.
 
17411
func_len ()
 
17412
{
 
17413
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
17414
}
 
17415
 
 
17416
_LT_EOF
 
17417
esac
 
17418
 
 
17419
case $lt_shell_append in
 
17420
  yes)
 
17421
    cat << \_LT_EOF >> "$cfgfile"
 
17422
 
 
17423
# func_append var value
 
17424
# Append VALUE to the end of shell variable VAR.
 
17425
func_append ()
 
17426
{
 
17427
  eval "$1+=\$2"
 
17428
}
 
17429
_LT_EOF
 
17430
    ;;
 
17431
  *)
 
17432
    cat << \_LT_EOF >> "$cfgfile"
 
17433
 
 
17434
# func_append var value
 
17435
# Append VALUE to the end of shell variable VAR.
 
17436
func_append ()
 
17437
{
 
17438
  eval "$1=\$$1\$2"
 
17439
}
 
17440
 
 
17441
_LT_EOF
 
17442
    ;;
 
17443
  esac
 
17444
 
 
17445
 
 
17446
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
17447
    || (rm -f "$cfgfile"; exit 1)
 
17448
 
 
17449
  mv -f "$cfgfile" "$ofile" ||
 
17450
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
17451
  chmod +x "$ofile"
 
17452
 
 
17453
 
 
17454
    cat <<_LT_EOF >> "$ofile"
 
17455
 
 
17456
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
17457
 
 
17458
# The linker used to build libraries.
 
17459
LD=$lt_LD_CXX
 
17460
 
 
17461
# Commands used to build an old-style archive.
 
17462
old_archive_cmds=$lt_old_archive_cmds_CXX
 
17463
 
 
17464
# A language specific compiler.
 
17465
CC=$lt_compiler_CXX
 
17466
 
 
17467
# Is the compiler the GNU compiler?
 
17468
with_gcc=$GCC_CXX
 
17469
 
 
17470
# Compiler flag to turn off builtin functions.
 
17471
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
17472
 
 
17473
# How to pass a linker flag through the compiler.
 
17474
wl=$lt_lt_prog_compiler_wl_CXX
 
17475
 
 
17476
# Additional compiler flags for building library objects.
 
17477
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
17478
 
 
17479
# Compiler flag to prevent dynamic linking.
 
17480
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
17481
 
 
17482
# Does compiler simultaneously support -c and -o options?
 
17483
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
17484
 
 
17485
# Whether or not to add -lc for building shared libraries.
 
17486
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
17487
 
 
17488
# Whether or not to disallow shared libs when runtime libs are static.
 
17489
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
17490
 
 
17491
# Compiler flag to allow reflexive dlopens.
 
17492
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
17493
 
 
17494
# Compiler flag to generate shared objects directly from archives.
 
17495
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
17496
 
 
17497
# Whether the compiler copes with passing no objects directly.
 
17498
compiler_needs_object=$lt_compiler_needs_object_CXX
 
17499
 
 
17500
# Create an old-style archive from a shared archive.
 
17501
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
17502
 
 
17503
# Create a temporary old-style archive to link instead of a shared archive.
 
17504
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
17505
 
 
17506
# Commands used to build a shared archive.
 
17507
archive_cmds=$lt_archive_cmds_CXX
 
17508
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
17509
 
 
17510
# Commands used to build a loadable module if different from building
 
17511
# a shared archive.
 
17512
module_cmds=$lt_module_cmds_CXX
 
17513
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
17514
 
 
17515
# Whether we are building with GNU ld or not.
 
17516
with_gnu_ld=$lt_with_gnu_ld_CXX
 
17517
 
 
17518
# Flag that allows shared libraries with undefined symbols to be built.
 
17519
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
17520
 
 
17521
# Flag that enforces no undefined symbols.
 
17522
no_undefined_flag=$lt_no_undefined_flag_CXX
 
17523
 
 
17524
# Flag to hardcode \$libdir into a binary during linking.
 
17525
# This must work even if \$libdir does not exist
 
17526
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
17527
 
 
17528
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
17529
# during linking.  This must work even if \$libdir does not exist.
 
17530
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
17531
 
 
17532
# Whether we need a single "-rpath" flag with a separated argument.
 
17533
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
17534
 
 
17535
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17536
# DIR into the resulting binary.
 
17537
hardcode_direct=$hardcode_direct_CXX
 
17538
 
 
17539
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17540
# DIR into the resulting binary and the resulting library dependency is
 
17541
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17542
# library is relocated.
 
17543
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
17544
 
 
17545
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17546
# into the resulting binary.
 
17547
hardcode_minus_L=$hardcode_minus_L_CXX
 
17548
 
 
17549
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17550
# into the resulting binary.
 
17551
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
17552
 
 
17553
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17554
# into the library and all subsequent libraries and executables linked
 
17555
# against it.
 
17556
hardcode_automatic=$hardcode_automatic_CXX
 
17557
 
 
17558
# Set to yes if linker adds runtime paths of dependent libraries
 
17559
# to runtime path list.
 
17560
inherit_rpath=$inherit_rpath_CXX
 
17561
 
 
17562
# Whether libtool must link a program against all its dependency libraries.
 
17563
link_all_deplibs=$link_all_deplibs_CXX
 
17564
 
 
17565
# Fix the shell variable \$srcfile for the compiler.
 
17566
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
17567
 
 
17568
# Set to "yes" if exported symbols are required.
 
17569
always_export_symbols=$always_export_symbols_CXX
 
17570
 
 
17571
# The commands to list exported symbols.
 
17572
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
17573
 
 
17574
# Symbols that should not be listed in the preloaded symbols.
 
17575
exclude_expsyms=$lt_exclude_expsyms_CXX
 
17576
 
 
17577
# Symbols that must always be exported.
 
17578
include_expsyms=$lt_include_expsyms_CXX
 
17579
 
 
17580
# Commands necessary for linking programs (against libraries) with templates.
 
17581
prelink_cmds=$lt_prelink_cmds_CXX
 
17582
 
 
17583
# Specify filename containing input files.
 
17584
file_list_spec=$lt_file_list_spec_CXX
 
17585
 
 
17586
# How to hardcode a shared library path into an executable.
 
17587
hardcode_action=$hardcode_action_CXX
 
17588
 
 
17589
# The directories searched by this compiler when creating a shared library.
 
17590
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
17591
 
 
17592
# Dependencies to place before and after the objects being linked to
 
17593
# create a shared library.
 
17594
predep_objects=$lt_predep_objects_CXX
 
17595
postdep_objects=$lt_postdep_objects_CXX
 
17596
predeps=$lt_predeps_CXX
 
17597
postdeps=$lt_postdeps_CXX
 
17598
 
 
17599
# The library search path used internally by the compiler when linking
 
17600
# a shared library.
 
17601
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
17602
 
 
17603
# ### END LIBTOOL TAG CONFIG: CXX
 
17604
_LT_EOF
 
17605
 
 
17606
 ;;
 
17607
 
 
17608
  esac
 
17609
done # for ac_tag
 
17610
 
 
17611
 
 
17612
as_fn_exit 0
 
17613
_ACEOF
 
17614
ac_clean_files=$ac_clean_files_save
 
17615
 
 
17616
test $ac_write_fail = 0 ||
 
17617
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
17618
 
 
17619
 
 
17620
# configure is writing to config.log, and then calls config.status.
 
17621
# config.status does its own redirection, appending to config.log.
 
17622
# Unfortunately, on DOS this fails, as config.log is still kept open
 
17623
# by configure, so config.status won't be able to write to it; its
 
17624
# output is simply discarded.  So we exec the FD to /dev/null,
 
17625
# effectively closing config.log, so it can be properly (re)opened and
 
17626
# appended to by config.status.  When coming back to configure, we
 
17627
# need to make the FD available again.
 
17628
if test "$no_create" != yes; then
 
17629
  ac_cs_success=:
 
17630
  ac_config_status_args=
 
17631
  test "$silent" = yes &&
 
17632
    ac_config_status_args="$ac_config_status_args --quiet"
 
17633
  exec 5>/dev/null
 
17634
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
17635
  exec 5>>config.log
 
17636
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17637
  # would make configure fail if this is the last instruction.
 
17638
  $ac_cs_success || as_fn_exit $?
 
17639
fi
 
17640
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17641
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17642
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17643
fi
 
17644