~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/gtest/configure

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

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.68 for Google C++ Testing Framework 1.5.0.
4
 
#
5
 
# Report bugs to <googletestframework@googlegroups.com>.
6
 
#
7
 
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
 
# Foundation, Inc.
11
 
#
12
 
#
13
 
# This configure script is free software; the Free Software Foundation
14
 
# gives unlimited permission to copy, distribute and modify it.
15
 
## -------------------- ##
16
 
## M4sh Initialization. ##
17
 
## -------------------- ##
18
 
 
19
 
# Be more Bourne compatible
20
 
DUALCASE=1; export DUALCASE # for MKS sh
21
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
 
  emulate sh
23
 
  NULLCMD=:
24
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
 
  # is contrary to our usage.  Disable this feature.
26
 
  alias -g '${1+"$@"}'='"$@"'
27
 
  setopt NO_GLOB_SUBST
28
 
else
29
 
  case `(set -o) 2>/dev/null` in #(
30
 
  *posix*) :
31
 
    set -o posix ;; #(
32
 
  *) :
33
 
     ;;
34
 
esac
35
 
fi
36
 
 
37
 
 
38
 
as_nl='
39
 
'
40
 
export as_nl
41
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
 
# but without wasting forks for bash or zsh.
47
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='print -r --'
50
 
  as_echo_n='print -rn --'
51
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='printf %s\n'
53
 
  as_echo_n='printf %s'
54
 
else
55
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
 
    as_echo_n='/usr/ucb/echo -n'
58
 
  else
59
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
 
    as_echo_n_body='eval
61
 
      arg=$1;
62
 
      case $arg in #(
63
 
      *"$as_nl"*)
64
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
 
      esac;
67
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
 
    '
69
 
    export as_echo_n_body
70
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
 
  fi
72
 
  export as_echo_body
73
 
  as_echo='sh -c $as_echo_body as_echo'
74
 
fi
75
 
 
76
 
# The user is always right.
77
 
if test "${PATH_SEPARATOR+set}" != set; then
78
 
  PATH_SEPARATOR=:
79
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
 
      PATH_SEPARATOR=';'
82
 
  }
83
 
fi
84
 
 
85
 
 
86
 
# IFS
87
 
# We need space, tab and new line, in precisely that order.  Quoting is
88
 
# there to prevent editors from complaining about space-tab.
89
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
 
# splitting by setting IFS to empty value.)
91
 
IFS=" ""        $as_nl"
92
 
 
93
 
# Find who we are.  Look in the path if we contain no directory separator.
94
 
as_myself=
95
 
case $0 in #((
96
 
  *[\\/]* ) as_myself=$0 ;;
97
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
 
for as_dir in $PATH
99
 
do
100
 
  IFS=$as_save_IFS
101
 
  test -z "$as_dir" && as_dir=.
102
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103
 
  done
104
 
IFS=$as_save_IFS
105
 
 
106
 
     ;;
107
 
esac
108
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
 
# in which case we are not to be found in the path.
110
 
if test "x$as_myself" = x; then
111
 
  as_myself=$0
112
 
fi
113
 
if test ! -f "$as_myself"; then
114
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
 
  exit 1
116
 
fi
117
 
 
118
 
# Unset variables that we do not need and which cause bugs (e.g. in
119
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120
 
# suppresses any "Segmentation fault" message there.  '((' could
121
 
# trigger a bug in pdksh 5.2.14.
122
 
for as_var in BASH_ENV ENV MAIL MAILPATH
123
 
do eval test x\${$as_var+set} = xset \
124
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
 
done
126
 
PS1='$ '
127
 
PS2='> '
128
 
PS4='+ '
129
 
 
130
 
# NLS nuisances.
131
 
LC_ALL=C
132
 
export LC_ALL
133
 
LANGUAGE=C
134
 
export LANGUAGE
135
 
 
136
 
# CDPATH.
137
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
 
 
139
 
if test "x$CONFIG_SHELL" = x; then
140
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
 
  emulate sh
142
 
  NULLCMD=:
143
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
 
  # is contrary to our usage.  Disable this feature.
145
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
 
  setopt NO_GLOB_SUBST
147
 
else
148
 
  case \`(set -o) 2>/dev/null\` in #(
149
 
  *posix*) :
150
 
    set -o posix ;; #(
151
 
  *) :
152
 
     ;;
153
 
esac
154
 
fi
155
 
"
156
 
  as_required="as_fn_return () { (exit \$1); }
157
 
as_fn_success () { as_fn_return 0; }
158
 
as_fn_failure () { as_fn_return 1; }
159
 
as_fn_ret_success () { return 0; }
160
 
as_fn_ret_failure () { return 1; }
161
 
 
162
 
exitcode=0
163
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
 
 
169
 
else
170
 
  exitcode=1; echo positional parameters were not saved.
171
 
fi
172
 
test x\$exitcode = x0 || exit 1"
173
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
 
 
178
 
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
 
    PATH=/empty FPATH=/empty; export PATH FPATH
183
 
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185
 
test \$(( 1 + 1 )) = 2 || exit 1"
186
 
  if (eval "$as_required") 2>/dev/null; then :
187
 
  as_have_required=yes
188
 
else
189
 
  as_have_required=no
190
 
fi
191
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
 
 
193
 
else
194
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195
 
as_found=false
196
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197
 
do
198
 
  IFS=$as_save_IFS
199
 
  test -z "$as_dir" && as_dir=.
200
 
  as_found=:
201
 
  case $as_dir in #(
202
 
         /*)
203
 
           for as_base in sh bash ksh sh5; do
204
 
             # Try only shells that exist, to save several forks.
205
 
             as_shell=$as_dir/$as_base
206
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
 
  CONFIG_SHELL=$as_shell as_have_required=yes
209
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
 
  break 2
211
 
fi
212
 
fi
213
 
           done;;
214
 
       esac
215
 
  as_found=false
216
 
done
217
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
 
  CONFIG_SHELL=$SHELL as_have_required=yes
220
 
fi; }
221
 
IFS=$as_save_IFS
222
 
 
223
 
 
224
 
      if test "x$CONFIG_SHELL" != x; then :
225
 
  # We cannot yet assume a decent shell, so we have to provide a
226
 
        # neutralization value for shells without unset; and this also
227
 
        # works around shells that cannot unset nonexistent variables.
228
 
        # Preserve -v and -x to the replacement shell.
229
 
        BASH_ENV=/dev/null
230
 
        ENV=/dev/null
231
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
 
        export CONFIG_SHELL
233
 
        case $- in # ((((
234
 
          *v*x* | *x*v* ) as_opts=-vx ;;
235
 
          *v* ) as_opts=-v ;;
236
 
          *x* ) as_opts=-x ;;
237
 
          * ) as_opts= ;;
238
 
        esac
239
 
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240
 
fi
241
 
 
242
 
    if test x$as_have_required = xno; then :
243
 
  $as_echo "$0: This script requires a shell more modern than all"
244
 
  $as_echo "$0: the shells that I found on your system."
245
 
  if test x${ZSH_VERSION+set} = xset ; then
246
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
 
  else
249
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250
 
$0: googletestframework@googlegroups.com about your system,
251
 
$0: including any error possibly output before this
252
 
$0: message. Then install a modern shell, or manually run
253
 
$0: the script under such a shell if you do have one."
254
 
  fi
255
 
  exit 1
256
 
fi
257
 
fi
258
 
fi
259
 
SHELL=${CONFIG_SHELL-/bin/sh}
260
 
export SHELL
261
 
# Unset more variables known to interfere with behavior of common tools.
262
 
CLICOLOR_FORCE= GREP_OPTIONS=
263
 
unset CLICOLOR_FORCE GREP_OPTIONS
264
 
 
265
 
## --------------------- ##
266
 
## M4sh Shell Functions. ##
267
 
## --------------------- ##
268
 
# as_fn_unset VAR
269
 
# ---------------
270
 
# Portably unset VAR.
271
 
as_fn_unset ()
272
 
{
273
 
  { eval $1=; unset $1;}
274
 
}
275
 
as_unset=as_fn_unset
276
 
 
277
 
# as_fn_set_status STATUS
278
 
# -----------------------
279
 
# Set $? to STATUS, without forking.
280
 
as_fn_set_status ()
281
 
{
282
 
  return $1
283
 
} # as_fn_set_status
284
 
 
285
 
# as_fn_exit STATUS
286
 
# -----------------
287
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288
 
as_fn_exit ()
289
 
{
290
 
  set +e
291
 
  as_fn_set_status $1
292
 
  exit $1
293
 
} # as_fn_exit
294
 
 
295
 
# as_fn_mkdir_p
296
 
# -------------
297
 
# Create "$as_dir" as a directory, including parents if necessary.
298
 
as_fn_mkdir_p ()
299
 
{
300
 
 
301
 
  case $as_dir in #(
302
 
  -*) as_dir=./$as_dir;;
303
 
  esac
304
 
  test -d "$as_dir" || eval $as_mkdir_p || {
305
 
    as_dirs=
306
 
    while :; do
307
 
      case $as_dir in #(
308
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309
 
      *) as_qdir=$as_dir;;
310
 
      esac
311
 
      as_dirs="'$as_qdir' $as_dirs"
312
 
      as_dir=`$as_dirname -- "$as_dir" ||
313
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
315
 
         X"$as_dir" : 'X\(//\)$' \| \
316
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
 
$as_echo X"$as_dir" |
318
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
 
            s//\1/
320
 
            q
321
 
          }
322
 
          /^X\(\/\/\)[^/].*/{
323
 
            s//\1/
324
 
            q
325
 
          }
326
 
          /^X\(\/\/\)$/{
327
 
            s//\1/
328
 
            q
329
 
          }
330
 
          /^X\(\/\).*/{
331
 
            s//\1/
332
 
            q
333
 
          }
334
 
          s/.*/./; q'`
335
 
      test -d "$as_dir" && break
336
 
    done
337
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
338
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
 
 
340
 
 
341
 
} # as_fn_mkdir_p
342
 
# as_fn_append VAR VALUE
343
 
# ----------------------
344
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
 
# advantage of any shell optimizations that allow amortized linear growth over
346
 
# repeated appends, instead of the typical quadratic growth present in naive
347
 
# implementations.
348
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
 
  eval 'as_fn_append ()
350
 
  {
351
 
    eval $1+=\$2
352
 
  }'
353
 
else
354
 
  as_fn_append ()
355
 
  {
356
 
    eval $1=\$$1\$2
357
 
  }
358
 
fi # as_fn_append
359
 
 
360
 
# as_fn_arith ARG...
361
 
# ------------------
362
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
 
# must be portable across $(()) and expr.
365
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
 
  eval 'as_fn_arith ()
367
 
  {
368
 
    as_val=$(( $* ))
369
 
  }'
370
 
else
371
 
  as_fn_arith ()
372
 
  {
373
 
    as_val=`expr "$@" || test $? -eq 1`
374
 
  }
375
 
fi # as_fn_arith
376
 
 
377
 
 
378
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
 
# ----------------------------------------
380
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
 
# script with STATUS, using 1 if that was 0.
383
 
as_fn_error ()
384
 
{
385
 
  as_status=$1; test $as_status -eq 0 && as_status=1
386
 
  if test "$4"; then
387
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389
 
  fi
390
 
  $as_echo "$as_me: error: $2" >&2
391
 
  as_fn_exit $as_status
392
 
} # as_fn_error
393
 
 
394
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396
 
  as_expr=expr
397
 
else
398
 
  as_expr=false
399
 
fi
400
 
 
401
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402
 
  as_basename=basename
403
 
else
404
 
  as_basename=false
405
 
fi
406
 
 
407
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408
 
  as_dirname=dirname
409
 
else
410
 
  as_dirname=false
411
 
fi
412
 
 
413
 
as_me=`$as_basename -- "$0" ||
414
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
 
         X"$0" : 'X\(//\)$' \| \
416
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417
 
$as_echo X/"$0" |
418
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
419
 
            s//\1/
420
 
            q
421
 
          }
422
 
          /^X\/\(\/\/\)$/{
423
 
            s//\1/
424
 
            q
425
 
          }
426
 
          /^X\/\(\/\).*/{
427
 
            s//\1/
428
 
            q
429
 
          }
430
 
          s/.*/./; q'`
431
 
 
432
 
# Avoid depending upon Character Ranges.
433
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
 
as_cr_digits='0123456789'
437
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
438
 
 
439
 
 
440
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445
 
  sed -n '
446
 
    p
447
 
    /[$]LINENO/=
448
 
  ' <$as_myself |
449
 
    sed '
450
 
      s/[$]LINENO.*/&-/
451
 
      t lineno
452
 
      b
453
 
      :lineno
454
 
      N
455
 
      :loop
456
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457
 
      t loop
458
 
      s/-\n.*//
459
 
    ' >$as_me.lineno &&
460
 
  chmod +x "$as_me.lineno" ||
461
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
 
 
463
 
  # Don't try to exec as it changes $[0], causing all sort of problems
464
 
  # (the dirname of $[0] is not the place where we might find the
465
 
  # original and so on.  Autoconf is especially sensitive to this).
466
 
  . "./$as_me.lineno"
467
 
  # Exit status is that of the last command.
468
 
  exit
469
 
}
470
 
 
471
 
ECHO_C= ECHO_N= ECHO_T=
472
 
case `echo -n x` in #(((((
473
 
-n*)
474
 
  case `echo 'xy\c'` in
475
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476
 
  xy)  ECHO_C='\c';;
477
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478
 
       ECHO_T=' ';;
479
 
  esac;;
480
 
*)
481
 
  ECHO_N='-n';;
482
 
esac
483
 
 
484
 
rm -f conf$$ conf$$.exe conf$$.file
485
 
if test -d conf$$.dir; then
486
 
  rm -f conf$$.dir/conf$$.file
487
 
else
488
 
  rm -f conf$$.dir
489
 
  mkdir conf$$.dir 2>/dev/null
490
 
fi
491
 
if (echo >conf$$.file) 2>/dev/null; then
492
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
493
 
    as_ln_s='ln -s'
494
 
    # ... but there are two gotchas:
495
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
 
    # In both cases, we have to default to `cp -p'.
498
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
 
      as_ln_s='cp -p'
500
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
 
    as_ln_s=ln
502
 
  else
503
 
    as_ln_s='cp -p'
504
 
  fi
505
 
else
506
 
  as_ln_s='cp -p'
507
 
fi
508
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
 
rmdir conf$$.dir 2>/dev/null
510
 
 
511
 
if mkdir -p . 2>/dev/null; then
512
 
  as_mkdir_p='mkdir -p "$as_dir"'
513
 
else
514
 
  test -d ./-p && rmdir ./-p
515
 
  as_mkdir_p=false
516
 
fi
517
 
 
518
 
if test -x / >/dev/null 2>&1; then
519
 
  as_test_x='test -x'
520
 
else
521
 
  if ls -dL / >/dev/null 2>&1; then
522
 
    as_ls_L_option=L
523
 
  else
524
 
    as_ls_L_option=
525
 
  fi
526
 
  as_test_x='
527
 
    eval sh -c '\''
528
 
      if test -d "$1"; then
529
 
        test -d "$1/.";
530
 
      else
531
 
        case $1 in #(
532
 
        -*)set "./$1";;
533
 
        esac;
534
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
 
        ???[sx]*):;;*)false;;esac;fi
536
 
    '\'' sh
537
 
  '
538
 
fi
539
 
as_executable_p=$as_test_x
540
 
 
541
 
# Sed expression to map a string onto a valid CPP name.
542
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
 
 
544
 
# Sed expression to map a string onto a valid variable name.
545
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
 
 
547
 
SHELL=${CONFIG_SHELL-/bin/sh}
548
 
 
549
 
 
550
 
test -n "$DJDIR" || exec 7<&0 </dev/null
551
 
exec 6>&1
552
 
 
553
 
# Name of the host.
554
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
 
# so uname gets run too.
556
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
 
 
558
 
#
559
 
# Initializations.
560
 
#
561
 
ac_default_prefix=/usr/local
562
 
ac_clean_files=
563
 
ac_config_libobj_dir=.
564
 
LIBOBJS=
565
 
cross_compiling=no
566
 
subdirs=
567
 
MFLAGS=
568
 
MAKEFLAGS=
569
 
 
570
 
# Identity of this package.
571
 
PACKAGE_NAME='Google C++ Testing Framework'
572
 
PACKAGE_TARNAME='gtest'
573
 
PACKAGE_VERSION='1.5.0'
574
 
PACKAGE_STRING='Google C++ Testing Framework 1.5.0'
575
 
PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
576
 
PACKAGE_URL=''
577
 
 
578
 
ac_unique_file="./COPYING"
579
 
# Factoring default headers for most tests.
580
 
ac_includes_default="\
581
 
#include <stdio.h>
582
 
#ifdef HAVE_SYS_TYPES_H
583
 
# include <sys/types.h>
584
 
#endif
585
 
#ifdef HAVE_SYS_STAT_H
586
 
# include <sys/stat.h>
587
 
#endif
588
 
#ifdef STDC_HEADERS
589
 
# include <stdlib.h>
590
 
# include <stddef.h>
591
 
#else
592
 
# ifdef HAVE_STDLIB_H
593
 
#  include <stdlib.h>
594
 
# endif
595
 
#endif
596
 
#ifdef HAVE_STRING_H
597
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598
 
#  include <memory.h>
599
 
# endif
600
 
# include <string.h>
601
 
#endif
602
 
#ifdef HAVE_STRINGS_H
603
 
# include <strings.h>
604
 
#endif
605
 
#ifdef HAVE_INTTYPES_H
606
 
# include <inttypes.h>
607
 
#endif
608
 
#ifdef HAVE_STDINT_H
609
 
# include <stdint.h>
610
 
#endif
611
 
#ifdef HAVE_UNISTD_H
612
 
# include <unistd.h>
613
 
#endif"
614
 
 
615
 
ac_subst_vars='am__EXEEXT_FALSE
616
 
am__EXEEXT_TRUE
617
 
LTLIBOBJS
618
 
LIBOBJS
619
 
HAVE_PTHREADS_FALSE
620
 
HAVE_PTHREADS_TRUE
621
 
PTHREAD_CFLAGS
622
 
PTHREAD_LIBS
623
 
PTHREAD_CC
624
 
acx_pthread_config
625
 
HAVE_PYTHON_FALSE
626
 
HAVE_PYTHON_TRUE
627
 
PYTHON
628
 
CXXCPP
629
 
CPP
630
 
OTOOL64
631
 
OTOOL
632
 
LIPO
633
 
NMEDIT
634
 
DSYMUTIL
635
 
MANIFEST_TOOL
636
 
RANLIB
637
 
ac_ct_AR
638
 
AR
639
 
DLLTOOL
640
 
OBJDUMP
641
 
LN_S
642
 
NM
643
 
ac_ct_DUMPBIN
644
 
DUMPBIN
645
 
LD
646
 
FGREP
647
 
EGREP
648
 
GREP
649
 
SED
650
 
host_os
651
 
host_vendor
652
 
host_cpu
653
 
host
654
 
build_os
655
 
build_vendor
656
 
build_cpu
657
 
build
658
 
LIBTOOL
659
 
am__fastdepCXX_FALSE
660
 
am__fastdepCXX_TRUE
661
 
CXXDEPMODE
662
 
ac_ct_CXX
663
 
CXXFLAGS
664
 
CXX
665
 
am__fastdepCC_FALSE
666
 
am__fastdepCC_TRUE
667
 
CCDEPMODE
668
 
am__nodep
669
 
AMDEPBACKSLASH
670
 
AMDEP_FALSE
671
 
AMDEP_TRUE
672
 
am__quote
673
 
am__include
674
 
DEPDIR
675
 
OBJEXT
676
 
EXEEXT
677
 
ac_ct_CC
678
 
CPPFLAGS
679
 
LDFLAGS
680
 
CFLAGS
681
 
CC
682
 
am__untar
683
 
am__tar
684
 
AMTAR
685
 
am__leading_dot
686
 
SET_MAKE
687
 
AWK
688
 
mkdir_p
689
 
MKDIR_P
690
 
INSTALL_STRIP_PROGRAM
691
 
STRIP
692
 
install_sh
693
 
MAKEINFO
694
 
AUTOHEADER
695
 
AUTOMAKE
696
 
AUTOCONF
697
 
ACLOCAL
698
 
VERSION
699
 
PACKAGE
700
 
CYGPATH_W
701
 
am__isrc
702
 
INSTALL_DATA
703
 
INSTALL_SCRIPT
704
 
INSTALL_PROGRAM
705
 
target_alias
706
 
host_alias
707
 
build_alias
708
 
LIBS
709
 
ECHO_T
710
 
ECHO_N
711
 
ECHO_C
712
 
DEFS
713
 
mandir
714
 
localedir
715
 
libdir
716
 
psdir
717
 
pdfdir
718
 
dvidir
719
 
htmldir
720
 
infodir
721
 
docdir
722
 
oldincludedir
723
 
includedir
724
 
localstatedir
725
 
sharedstatedir
726
 
sysconfdir
727
 
datadir
728
 
datarootdir
729
 
libexecdir
730
 
sbindir
731
 
bindir
732
 
program_transform_name
733
 
prefix
734
 
exec_prefix
735
 
PACKAGE_URL
736
 
PACKAGE_BUGREPORT
737
 
PACKAGE_STRING
738
 
PACKAGE_VERSION
739
 
PACKAGE_TARNAME
740
 
PACKAGE_NAME
741
 
PATH_SEPARATOR
742
 
SHELL'
743
 
ac_subst_files=''
744
 
ac_user_opts='
745
 
enable_option_checking
746
 
enable_dependency_tracking
747
 
enable_shared
748
 
enable_static
749
 
with_pic
750
 
enable_fast_install
751
 
with_gnu_ld
752
 
with_sysroot
753
 
enable_libtool_lock
754
 
with_pthreads
755
 
'
756
 
      ac_precious_vars='build_alias
757
 
host_alias
758
 
target_alias
759
 
CC
760
 
CFLAGS
761
 
LDFLAGS
762
 
LIBS
763
 
CPPFLAGS
764
 
CXX
765
 
CXXFLAGS
766
 
CCC
767
 
CPP
768
 
CXXCPP'
769
 
 
770
 
 
771
 
# Initialize some variables set by options.
772
 
ac_init_help=
773
 
ac_init_version=false
774
 
ac_unrecognized_opts=
775
 
ac_unrecognized_sep=
776
 
# The variables have the same names as the options, with
777
 
# dashes changed to underlines.
778
 
cache_file=/dev/null
779
 
exec_prefix=NONE
780
 
no_create=
781
 
no_recursion=
782
 
prefix=NONE
783
 
program_prefix=NONE
784
 
program_suffix=NONE
785
 
program_transform_name=s,x,x,
786
 
silent=
787
 
site=
788
 
srcdir=
789
 
verbose=
790
 
x_includes=NONE
791
 
x_libraries=NONE
792
 
 
793
 
# Installation directory options.
794
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
795
 
# and all the variables that are supposed to be based on exec_prefix
796
 
# by default will actually change.
797
 
# Use braces instead of parens because sh, perl, etc. also accept them.
798
 
# (The list follows the same order as the GNU Coding Standards.)
799
 
bindir='${exec_prefix}/bin'
800
 
sbindir='${exec_prefix}/sbin'
801
 
libexecdir='${exec_prefix}/libexec'
802
 
datarootdir='${prefix}/share'
803
 
datadir='${datarootdir}'
804
 
sysconfdir='${prefix}/etc'
805
 
sharedstatedir='${prefix}/com'
806
 
localstatedir='${prefix}/var'
807
 
includedir='${prefix}/include'
808
 
oldincludedir='/usr/include'
809
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810
 
infodir='${datarootdir}/info'
811
 
htmldir='${docdir}'
812
 
dvidir='${docdir}'
813
 
pdfdir='${docdir}'
814
 
psdir='${docdir}'
815
 
libdir='${exec_prefix}/lib'
816
 
localedir='${datarootdir}/locale'
817
 
mandir='${datarootdir}/man'
818
 
 
819
 
ac_prev=
820
 
ac_dashdash=
821
 
for ac_option
822
 
do
823
 
  # If the previous option needs an argument, assign it.
824
 
  if test -n "$ac_prev"; then
825
 
    eval $ac_prev=\$ac_option
826
 
    ac_prev=
827
 
    continue
828
 
  fi
829
 
 
830
 
  case $ac_option in
831
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832
 
  *=)   ac_optarg= ;;
833
 
  *)    ac_optarg=yes ;;
834
 
  esac
835
 
 
836
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
837
 
 
838
 
  case $ac_dashdash$ac_option in
839
 
  --)
840
 
    ac_dashdash=yes ;;
841
 
 
842
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843
 
    ac_prev=bindir ;;
844
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845
 
    bindir=$ac_optarg ;;
846
 
 
847
 
  -build | --build | --buil | --bui | --bu)
848
 
    ac_prev=build_alias ;;
849
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850
 
    build_alias=$ac_optarg ;;
851
 
 
852
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
853
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854
 
    ac_prev=cache_file ;;
855
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857
 
    cache_file=$ac_optarg ;;
858
 
 
859
 
  --config-cache | -C)
860
 
    cache_file=config.cache ;;
861
 
 
862
 
  -datadir | --datadir | --datadi | --datad)
863
 
    ac_prev=datadir ;;
864
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865
 
    datadir=$ac_optarg ;;
866
 
 
867
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868
 
  | --dataroo | --dataro | --datar)
869
 
    ac_prev=datarootdir ;;
870
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872
 
    datarootdir=$ac_optarg ;;
873
 
 
874
 
  -disable-* | --disable-*)
875
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876
 
    # Reject names that are not valid shell variable names.
877
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878
 
      as_fn_error $? "invalid feature name: $ac_useropt"
879
 
    ac_useropt_orig=$ac_useropt
880
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881
 
    case $ac_user_opts in
882
 
      *"
883
 
"enable_$ac_useropt"
884
 
"*) ;;
885
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886
 
         ac_unrecognized_sep=', ';;
887
 
    esac
888
 
    eval enable_$ac_useropt=no ;;
889
 
 
890
 
  -docdir | --docdir | --docdi | --doc | --do)
891
 
    ac_prev=docdir ;;
892
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893
 
    docdir=$ac_optarg ;;
894
 
 
895
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896
 
    ac_prev=dvidir ;;
897
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898
 
    dvidir=$ac_optarg ;;
899
 
 
900
 
  -enable-* | --enable-*)
901
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902
 
    # Reject names that are not valid shell variable names.
903
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904
 
      as_fn_error $? "invalid feature name: $ac_useropt"
905
 
    ac_useropt_orig=$ac_useropt
906
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907
 
    case $ac_user_opts in
908
 
      *"
909
 
"enable_$ac_useropt"
910
 
"*) ;;
911
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912
 
         ac_unrecognized_sep=', ';;
913
 
    esac
914
 
    eval enable_$ac_useropt=\$ac_optarg ;;
915
 
 
916
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918
 
  | --exec | --exe | --ex)
919
 
    ac_prev=exec_prefix ;;
920
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922
 
  | --exec=* | --exe=* | --ex=*)
923
 
    exec_prefix=$ac_optarg ;;
924
 
 
925
 
  -gas | --gas | --ga | --g)
926
 
    # Obsolete; use --with-gas.
927
 
    with_gas=yes ;;
928
 
 
929
 
  -help | --help | --hel | --he | -h)
930
 
    ac_init_help=long ;;
931
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932
 
    ac_init_help=recursive ;;
933
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934
 
    ac_init_help=short ;;
935
 
 
936
 
  -host | --host | --hos | --ho)
937
 
    ac_prev=host_alias ;;
938
 
  -host=* | --host=* | --hos=* | --ho=*)
939
 
    host_alias=$ac_optarg ;;
940
 
 
941
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942
 
    ac_prev=htmldir ;;
943
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944
 
  | --ht=*)
945
 
    htmldir=$ac_optarg ;;
946
 
 
947
 
  -includedir | --includedir | --includedi | --included | --include \
948
 
  | --includ | --inclu | --incl | --inc)
949
 
    ac_prev=includedir ;;
950
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
952
 
    includedir=$ac_optarg ;;
953
 
 
954
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
955
 
    ac_prev=infodir ;;
956
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957
 
    infodir=$ac_optarg ;;
958
 
 
959
 
  -libdir | --libdir | --libdi | --libd)
960
 
    ac_prev=libdir ;;
961
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
962
 
    libdir=$ac_optarg ;;
963
 
 
964
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965
 
  | --libexe | --libex | --libe)
966
 
    ac_prev=libexecdir ;;
967
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968
 
  | --libexe=* | --libex=* | --libe=*)
969
 
    libexecdir=$ac_optarg ;;
970
 
 
971
 
  -localedir | --localedir | --localedi | --localed | --locale)
972
 
    ac_prev=localedir ;;
973
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974
 
    localedir=$ac_optarg ;;
975
 
 
976
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
977
 
  | --localstate | --localstat | --localsta | --localst | --locals)
978
 
    ac_prev=localstatedir ;;
979
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981
 
    localstatedir=$ac_optarg ;;
982
 
 
983
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984
 
    ac_prev=mandir ;;
985
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986
 
    mandir=$ac_optarg ;;
987
 
 
988
 
  -nfp | --nfp | --nf)
989
 
    # Obsolete; use --without-fp.
990
 
    with_fp=no ;;
991
 
 
992
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993
 
  | --no-cr | --no-c | -n)
994
 
    no_create=yes ;;
995
 
 
996
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998
 
    no_recursion=yes ;;
999
 
 
1000
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002
 
  | --oldin | --oldi | --old | --ol | --o)
1003
 
    ac_prev=oldincludedir ;;
1004
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007
 
    oldincludedir=$ac_optarg ;;
1008
 
 
1009
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010
 
    ac_prev=prefix ;;
1011
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012
 
    prefix=$ac_optarg ;;
1013
 
 
1014
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015
 
  | --program-pre | --program-pr | --program-p)
1016
 
    ac_prev=program_prefix ;;
1017
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019
 
    program_prefix=$ac_optarg ;;
1020
 
 
1021
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022
 
  | --program-suf | --program-su | --program-s)
1023
 
    ac_prev=program_suffix ;;
1024
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026
 
    program_suffix=$ac_optarg ;;
1027
 
 
1028
 
  -program-transform-name | --program-transform-name \
1029
 
  | --program-transform-nam | --program-transform-na \
1030
 
  | --program-transform-n | --program-transform- \
1031
 
  | --program-transform | --program-transfor \
1032
 
  | --program-transfo | --program-transf \
1033
 
  | --program-trans | --program-tran \
1034
 
  | --progr-tra | --program-tr | --program-t)
1035
 
    ac_prev=program_transform_name ;;
1036
 
  -program-transform-name=* | --program-transform-name=* \
1037
 
  | --program-transform-nam=* | --program-transform-na=* \
1038
 
  | --program-transform-n=* | --program-transform-=* \
1039
 
  | --program-transform=* | --program-transfor=* \
1040
 
  | --program-transfo=* | --program-transf=* \
1041
 
  | --program-trans=* | --program-tran=* \
1042
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1043
 
    program_transform_name=$ac_optarg ;;
1044
 
 
1045
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046
 
    ac_prev=pdfdir ;;
1047
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048
 
    pdfdir=$ac_optarg ;;
1049
 
 
1050
 
  -psdir | --psdir | --psdi | --psd | --ps)
1051
 
    ac_prev=psdir ;;
1052
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053
 
    psdir=$ac_optarg ;;
1054
 
 
1055
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056
 
  | -silent | --silent | --silen | --sile | --sil)
1057
 
    silent=yes ;;
1058
 
 
1059
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060
 
    ac_prev=sbindir ;;
1061
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062
 
  | --sbi=* | --sb=*)
1063
 
    sbindir=$ac_optarg ;;
1064
 
 
1065
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067
 
  | --sharedst | --shareds | --shared | --share | --shar \
1068
 
  | --sha | --sh)
1069
 
    ac_prev=sharedstatedir ;;
1070
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073
 
  | --sha=* | --sh=*)
1074
 
    sharedstatedir=$ac_optarg ;;
1075
 
 
1076
 
  -site | --site | --sit)
1077
 
    ac_prev=site ;;
1078
 
  -site=* | --site=* | --sit=*)
1079
 
    site=$ac_optarg ;;
1080
 
 
1081
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082
 
    ac_prev=srcdir ;;
1083
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084
 
    srcdir=$ac_optarg ;;
1085
 
 
1086
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1088
 
    ac_prev=sysconfdir ;;
1089
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091
 
    sysconfdir=$ac_optarg ;;
1092
 
 
1093
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1094
 
    ac_prev=target_alias ;;
1095
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096
 
    target_alias=$ac_optarg ;;
1097
 
 
1098
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099
 
    verbose=yes ;;
1100
 
 
1101
 
  -version | --version | --versio | --versi | --vers | -V)
1102
 
    ac_init_version=: ;;
1103
 
 
1104
 
  -with-* | --with-*)
1105
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106
 
    # Reject names that are not valid shell variable names.
1107
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108
 
      as_fn_error $? "invalid package name: $ac_useropt"
1109
 
    ac_useropt_orig=$ac_useropt
1110
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111
 
    case $ac_user_opts in
1112
 
      *"
1113
 
"with_$ac_useropt"
1114
 
"*) ;;
1115
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116
 
         ac_unrecognized_sep=', ';;
1117
 
    esac
1118
 
    eval with_$ac_useropt=\$ac_optarg ;;
1119
 
 
1120
 
  -without-* | --without-*)
1121
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122
 
    # Reject names that are not valid shell variable names.
1123
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124
 
      as_fn_error $? "invalid package name: $ac_useropt"
1125
 
    ac_useropt_orig=$ac_useropt
1126
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127
 
    case $ac_user_opts in
1128
 
      *"
1129
 
"with_$ac_useropt"
1130
 
"*) ;;
1131
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132
 
         ac_unrecognized_sep=', ';;
1133
 
    esac
1134
 
    eval with_$ac_useropt=no ;;
1135
 
 
1136
 
  --x)
1137
 
    # Obsolete; use --with-x.
1138
 
    with_x=yes ;;
1139
 
 
1140
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141
 
  | --x-incl | --x-inc | --x-in | --x-i)
1142
 
    ac_prev=x_includes ;;
1143
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145
 
    x_includes=$ac_optarg ;;
1146
 
 
1147
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149
 
    ac_prev=x_libraries ;;
1150
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152
 
    x_libraries=$ac_optarg ;;
1153
 
 
1154
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155
 
Try \`$0 --help' for more information"
1156
 
    ;;
1157
 
 
1158
 
  *=*)
1159
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160
 
    # Reject names that are not valid shell variable names.
1161
 
    case $ac_envvar in #(
1162
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1163
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164
 
    esac
1165
 
    eval $ac_envvar=\$ac_optarg
1166
 
    export $ac_envvar ;;
1167
 
 
1168
 
  *)
1169
 
    # FIXME: should be removed in autoconf 3.0.
1170
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174
 
    ;;
1175
 
 
1176
 
  esac
1177
 
done
1178
 
 
1179
 
if test -n "$ac_prev"; then
1180
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181
 
  as_fn_error $? "missing argument to $ac_option"
1182
 
fi
1183
 
 
1184
 
if test -n "$ac_unrecognized_opts"; then
1185
 
  case $enable_option_checking in
1186
 
    no) ;;
1187
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189
 
  esac
1190
 
fi
1191
 
 
1192
 
# Check all directory arguments for consistency.
1193
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1195
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196
 
                libdir localedir mandir
1197
 
do
1198
 
  eval ac_val=\$$ac_var
1199
 
  # Remove trailing slashes.
1200
 
  case $ac_val in
1201
 
    */ )
1202
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203
 
      eval $ac_var=\$ac_val;;
1204
 
  esac
1205
 
  # Be sure to have absolute directory names.
1206
 
  case $ac_val in
1207
 
    [\\/$]* | ?:[\\/]* )  continue;;
1208
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209
 
  esac
1210
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211
 
done
1212
 
 
1213
 
# There might be people who depend on the old broken behavior: `$host'
1214
 
# used to hold the argument of --host etc.
1215
 
# FIXME: To remove some day.
1216
 
build=$build_alias
1217
 
host=$host_alias
1218
 
target=$target_alias
1219
 
 
1220
 
# FIXME: To remove some day.
1221
 
if test "x$host_alias" != x; then
1222
 
  if test "x$build_alias" = x; then
1223
 
    cross_compiling=maybe
1224
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1226
 
  elif test "x$build_alias" != "x$host_alias"; then
1227
 
    cross_compiling=yes
1228
 
  fi
1229
 
fi
1230
 
 
1231
 
ac_tool_prefix=
1232
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
 
 
1234
 
test "$silent" = yes && exec 6>/dev/null
1235
 
 
1236
 
 
1237
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238
 
ac_ls_di=`ls -di .` &&
1239
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240
 
  as_fn_error $? "working directory cannot be determined"
1241
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242
 
  as_fn_error $? "pwd does not report name of working directory"
1243
 
 
1244
 
 
1245
 
# Find the source files, if location was not specified.
1246
 
if test -z "$srcdir"; then
1247
 
  ac_srcdir_defaulted=yes
1248
 
  # Try the directory containing this script, then the parent directory.
1249
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1250
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1252
 
         X"$as_myself" : 'X\(//\)$' \| \
1253
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254
 
$as_echo X"$as_myself" |
1255
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256
 
            s//\1/
1257
 
            q
1258
 
          }
1259
 
          /^X\(\/\/\)[^/].*/{
1260
 
            s//\1/
1261
 
            q
1262
 
          }
1263
 
          /^X\(\/\/\)$/{
1264
 
            s//\1/
1265
 
            q
1266
 
          }
1267
 
          /^X\(\/\).*/{
1268
 
            s//\1/
1269
 
            q
1270
 
          }
1271
 
          s/.*/./; q'`
1272
 
  srcdir=$ac_confdir
1273
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1274
 
    srcdir=..
1275
 
  fi
1276
 
else
1277
 
  ac_srcdir_defaulted=no
1278
 
fi
1279
 
if test ! -r "$srcdir/$ac_unique_file"; then
1280
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282
 
fi
1283
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284
 
ac_abs_confdir=`(
1285
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286
 
        pwd)`
1287
 
# When building in place, set srcdir=.
1288
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1289
 
  srcdir=.
1290
 
fi
1291
 
# Remove unnecessary trailing slashes from srcdir.
1292
 
# Double slashes in file names in object file debugging info
1293
 
# mess up M-x gdb in Emacs.
1294
 
case $srcdir in
1295
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296
 
esac
1297
 
for ac_var in $ac_precious_vars; do
1298
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1300
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302
 
done
1303
 
 
1304
 
#
1305
 
# Report the --help message.
1306
 
#
1307
 
if test "$ac_init_help" = "long"; then
1308
 
  # Omit some internal or obsolete options to make the list less imposing.
1309
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1310
 
  cat <<_ACEOF
1311
 
\`configure' configures Google C++ Testing Framework 1.5.0 to adapt to many kinds of systems.
1312
 
 
1313
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1314
 
 
1315
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
 
 
1318
 
Defaults for the options are specified in brackets.
1319
 
 
1320
 
Configuration:
1321
 
  -h, --help              display this help and exit
1322
 
      --help=short        display options specific to this package
1323
 
      --help=recursive    display the short help of all the included packages
1324
 
  -V, --version           display version information and exit
1325
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1326
 
      --cache-file=FILE   cache test results in FILE [disabled]
1327
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1328
 
  -n, --no-create         do not create output files
1329
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
 
 
1331
 
Installation directories:
1332
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1333
 
                          [$ac_default_prefix]
1334
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335
 
                          [PREFIX]
1336
 
 
1337
 
By default, \`make install' will install all the files in
1338
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340
 
for instance \`--prefix=\$HOME'.
1341
 
 
1342
 
For better control, use the options below.
1343
 
 
1344
 
Fine tuning of the installation directories:
1345
 
  --bindir=DIR            user executables [EPREFIX/bin]
1346
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1352
 
  --includedir=DIR        C header files [PREFIX/include]
1353
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1357
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1359
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/gtest]
1360
 
  --htmldir=DIR           html documentation [DOCDIR]
1361
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1362
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1363
 
  --psdir=DIR             ps documentation [DOCDIR]
1364
 
_ACEOF
1365
 
 
1366
 
  cat <<\_ACEOF
1367
 
 
1368
 
Program names:
1369
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1370
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1371
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
 
 
1373
 
System types:
1374
 
  --build=BUILD     configure for building on BUILD [guessed]
1375
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376
 
_ACEOF
1377
 
fi
1378
 
 
1379
 
if test -n "$ac_init_help"; then
1380
 
  case $ac_init_help in
1381
 
     short | recursive ) echo "Configuration of Google C++ Testing Framework 1.5.0:";;
1382
 
   esac
1383
 
  cat <<\_ACEOF
1384
 
 
1385
 
Optional Features:
1386
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1387
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389
 
  --disable-dependency-tracking  speeds up one-time build
1390
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1391
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1392
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1393
 
  --enable-fast-install[=PKGS]
1394
 
                          optimize for fast installation [default=yes]
1395
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1396
 
 
1397
 
Optional Packages:
1398
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400
 
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1401
 
                          both]
1402
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1403
 
  --with-sysroot=DIR Search for dependent libraries within DIR
1404
 
                        (or the compiler's sysroot if not specified).
1405
 
  --with-pthreads         use pthreads (default is yes)
1406
 
 
1407
 
Some influential environment variables:
1408
 
  CC          C compiler command
1409
 
  CFLAGS      C compiler flags
1410
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411
 
              nonstandard directory <lib dir>
1412
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1413
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414
 
              you have headers in a nonstandard directory <include dir>
1415
 
  CXX         C++ compiler command
1416
 
  CXXFLAGS    C++ compiler flags
1417
 
  CPP         C preprocessor
1418
 
  CXXCPP      C++ preprocessor
1419
 
 
1420
 
Use these variables to override the choices made by `configure' or to help
1421
 
it to find libraries and programs with nonstandard names/locations.
1422
 
 
1423
 
Report bugs to <googletestframework@googlegroups.com>.
1424
 
_ACEOF
1425
 
ac_status=$?
1426
 
fi
1427
 
 
1428
 
if test "$ac_init_help" = "recursive"; then
1429
 
  # If there are subdirs, report their specific --help.
1430
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431
 
    test -d "$ac_dir" ||
1432
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433
 
      continue
1434
 
    ac_builddir=.
1435
 
 
1436
 
case "$ac_dir" in
1437
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438
 
*)
1439
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440
 
  # A ".." for each directory in $ac_dir_suffix.
1441
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442
 
  case $ac_top_builddir_sub in
1443
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445
 
  esac ;;
1446
 
esac
1447
 
ac_abs_top_builddir=$ac_pwd
1448
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449
 
# for backward compatibility:
1450
 
ac_top_builddir=$ac_top_build_prefix
1451
 
 
1452
 
case $srcdir in
1453
 
  .)  # We are building in place.
1454
 
    ac_srcdir=.
1455
 
    ac_top_srcdir=$ac_top_builddir_sub
1456
 
    ac_abs_top_srcdir=$ac_pwd ;;
1457
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1458
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1459
 
    ac_top_srcdir=$srcdir
1460
 
    ac_abs_top_srcdir=$srcdir ;;
1461
 
  *) # Relative name.
1462
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465
 
esac
1466
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
 
 
1468
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1469
 
    # Check for guested configure.
1470
 
    if test -f "$ac_srcdir/configure.gnu"; then
1471
 
      echo &&
1472
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473
 
    elif test -f "$ac_srcdir/configure"; then
1474
 
      echo &&
1475
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1476
 
    else
1477
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478
 
    fi || ac_status=$?
1479
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1480
 
  done
1481
 
fi
1482
 
 
1483
 
test -n "$ac_init_help" && exit $ac_status
1484
 
if $ac_init_version; then
1485
 
  cat <<\_ACEOF
1486
 
Google C++ Testing Framework configure 1.5.0
1487
 
generated by GNU Autoconf 2.68
1488
 
 
1489
 
Copyright (C) 2010 Free Software Foundation, Inc.
1490
 
This configure script is free software; the Free Software Foundation
1491
 
gives unlimited permission to copy, distribute and modify it.
1492
 
_ACEOF
1493
 
  exit
1494
 
fi
1495
 
 
1496
 
## ------------------------ ##
1497
 
## Autoconf initialization. ##
1498
 
## ------------------------ ##
1499
 
 
1500
 
# ac_fn_c_try_compile LINENO
1501
 
# --------------------------
1502
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503
 
ac_fn_c_try_compile ()
1504
 
{
1505
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506
 
  rm -f conftest.$ac_objext
1507
 
  if { { ac_try="$ac_compile"
1508
 
case "(($ac_try" in
1509
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510
 
  *) ac_try_echo=$ac_try;;
1511
 
esac
1512
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513
 
$as_echo "$ac_try_echo"; } >&5
1514
 
  (eval "$ac_compile") 2>conftest.err
1515
 
  ac_status=$?
1516
 
  if test -s conftest.err; then
1517
 
    grep -v '^ *+' conftest.err >conftest.er1
1518
 
    cat conftest.er1 >&5
1519
 
    mv -f conftest.er1 conftest.err
1520
 
  fi
1521
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522
 
  test $ac_status = 0; } && {
1523
 
         test -z "$ac_c_werror_flag" ||
1524
 
         test ! -s conftest.err
1525
 
       } && test -s conftest.$ac_objext; then :
1526
 
  ac_retval=0
1527
 
else
1528
 
  $as_echo "$as_me: failed program was:" >&5
1529
 
sed 's/^/| /' conftest.$ac_ext >&5
1530
 
 
1531
 
        ac_retval=1
1532
 
fi
1533
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534
 
  as_fn_set_status $ac_retval
1535
 
 
1536
 
} # ac_fn_c_try_compile
1537
 
 
1538
 
# ac_fn_cxx_try_compile LINENO
1539
 
# ----------------------------
1540
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541
 
ac_fn_cxx_try_compile ()
1542
 
{
1543
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544
 
  rm -f conftest.$ac_objext
1545
 
  if { { ac_try="$ac_compile"
1546
 
case "(($ac_try" in
1547
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548
 
  *) ac_try_echo=$ac_try;;
1549
 
esac
1550
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551
 
$as_echo "$ac_try_echo"; } >&5
1552
 
  (eval "$ac_compile") 2>conftest.err
1553
 
  ac_status=$?
1554
 
  if test -s conftest.err; then
1555
 
    grep -v '^ *+' conftest.err >conftest.er1
1556
 
    cat conftest.er1 >&5
1557
 
    mv -f conftest.er1 conftest.err
1558
 
  fi
1559
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560
 
  test $ac_status = 0; } && {
1561
 
         test -z "$ac_cxx_werror_flag" ||
1562
 
         test ! -s conftest.err
1563
 
       } && test -s conftest.$ac_objext; then :
1564
 
  ac_retval=0
1565
 
else
1566
 
  $as_echo "$as_me: failed program was:" >&5
1567
 
sed 's/^/| /' conftest.$ac_ext >&5
1568
 
 
1569
 
        ac_retval=1
1570
 
fi
1571
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
 
  as_fn_set_status $ac_retval
1573
 
 
1574
 
} # ac_fn_cxx_try_compile
1575
 
 
1576
 
# ac_fn_c_try_link LINENO
1577
 
# -----------------------
1578
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1579
 
ac_fn_c_try_link ()
1580
 
{
1581
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1583
 
  if { { ac_try="$ac_link"
1584
 
case "(($ac_try" in
1585
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586
 
  *) ac_try_echo=$ac_try;;
1587
 
esac
1588
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589
 
$as_echo "$ac_try_echo"; } >&5
1590
 
  (eval "$ac_link") 2>conftest.err
1591
 
  ac_status=$?
1592
 
  if test -s conftest.err; then
1593
 
    grep -v '^ *+' conftest.err >conftest.er1
1594
 
    cat conftest.er1 >&5
1595
 
    mv -f conftest.er1 conftest.err
1596
 
  fi
1597
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598
 
  test $ac_status = 0; } && {
1599
 
         test -z "$ac_c_werror_flag" ||
1600
 
         test ! -s conftest.err
1601
 
       } && test -s conftest$ac_exeext && {
1602
 
         test "$cross_compiling" = yes ||
1603
 
         $as_test_x conftest$ac_exeext
1604
 
       }; then :
1605
 
  ac_retval=0
1606
 
else
1607
 
  $as_echo "$as_me: failed program was:" >&5
1608
 
sed 's/^/| /' conftest.$ac_ext >&5
1609
 
 
1610
 
        ac_retval=1
1611
 
fi
1612
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614
 
  # interfere with the next link command; also delete a directory that is
1615
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1616
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618
 
  as_fn_set_status $ac_retval
1619
 
 
1620
 
} # ac_fn_c_try_link
1621
 
 
1622
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623
 
# -------------------------------------------------------
1624
 
# Tests whether HEADER exists and can be compiled using the include files in
1625
 
# INCLUDES, setting the cache variable VAR accordingly.
1626
 
ac_fn_c_check_header_compile ()
1627
 
{
1628
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630
 
$as_echo_n "checking for $2... " >&6; }
1631
 
if eval \${$3+:} false; then :
1632
 
  $as_echo_n "(cached) " >&6
1633
 
else
1634
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635
 
/* end confdefs.h.  */
1636
 
$4
1637
 
#include <$2>
1638
 
_ACEOF
1639
 
if ac_fn_c_try_compile "$LINENO"; then :
1640
 
  eval "$3=yes"
1641
 
else
1642
 
  eval "$3=no"
1643
 
fi
1644
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645
 
fi
1646
 
eval ac_res=\$$3
1647
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648
 
$as_echo "$ac_res" >&6; }
1649
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
 
 
1651
 
} # ac_fn_c_check_header_compile
1652
 
 
1653
 
# ac_fn_c_try_cpp LINENO
1654
 
# ----------------------
1655
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656
 
ac_fn_c_try_cpp ()
1657
 
{
1658
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660
 
case "(($ac_try" in
1661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662
 
  *) ac_try_echo=$ac_try;;
1663
 
esac
1664
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665
 
$as_echo "$ac_try_echo"; } >&5
1666
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667
 
  ac_status=$?
1668
 
  if test -s conftest.err; then
1669
 
    grep -v '^ *+' conftest.err >conftest.er1
1670
 
    cat conftest.er1 >&5
1671
 
    mv -f conftest.er1 conftest.err
1672
 
  fi
1673
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674
 
  test $ac_status = 0; } > conftest.i && {
1675
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676
 
         test ! -s conftest.err
1677
 
       }; then :
1678
 
  ac_retval=0
1679
 
else
1680
 
  $as_echo "$as_me: failed program was:" >&5
1681
 
sed 's/^/| /' conftest.$ac_ext >&5
1682
 
 
1683
 
    ac_retval=1
1684
 
fi
1685
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
 
  as_fn_set_status $ac_retval
1687
 
 
1688
 
} # ac_fn_c_try_cpp
1689
 
 
1690
 
# ac_fn_c_try_run LINENO
1691
 
# ----------------------
1692
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693
 
# that executables *can* be run.
1694
 
ac_fn_c_try_run ()
1695
 
{
1696
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
 
  if { { ac_try="$ac_link"
1698
 
case "(($ac_try" in
1699
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700
 
  *) ac_try_echo=$ac_try;;
1701
 
esac
1702
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703
 
$as_echo "$ac_try_echo"; } >&5
1704
 
  (eval "$ac_link") 2>&5
1705
 
  ac_status=$?
1706
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708
 
  { { case "(($ac_try" in
1709
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710
 
  *) ac_try_echo=$ac_try;;
1711
 
esac
1712
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713
 
$as_echo "$ac_try_echo"; } >&5
1714
 
  (eval "$ac_try") 2>&5
1715
 
  ac_status=$?
1716
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717
 
  test $ac_status = 0; }; }; then :
1718
 
  ac_retval=0
1719
 
else
1720
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1721
 
       $as_echo "$as_me: failed program was:" >&5
1722
 
sed 's/^/| /' conftest.$ac_ext >&5
1723
 
 
1724
 
       ac_retval=$ac_status
1725
 
fi
1726
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
 
  as_fn_set_status $ac_retval
1729
 
 
1730
 
} # ac_fn_c_try_run
1731
 
 
1732
 
# ac_fn_c_check_func LINENO FUNC VAR
1733
 
# ----------------------------------
1734
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735
 
ac_fn_c_check_func ()
1736
 
{
1737
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739
 
$as_echo_n "checking for $2... " >&6; }
1740
 
if eval \${$3+:} false; then :
1741
 
  $as_echo_n "(cached) " >&6
1742
 
else
1743
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744
 
/* end confdefs.h.  */
1745
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747
 
#define $2 innocuous_$2
1748
 
 
1749
 
/* System header to define __stub macros and hopefully few prototypes,
1750
 
    which can conflict with char $2 (); below.
1751
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752
 
    <limits.h> exists even on freestanding compilers.  */
1753
 
 
1754
 
#ifdef __STDC__
1755
 
# include <limits.h>
1756
 
#else
1757
 
# include <assert.h>
1758
 
#endif
1759
 
 
1760
 
#undef $2
1761
 
 
1762
 
/* Override any GCC internal prototype to avoid an error.
1763
 
   Use char because int might match the return type of a GCC
1764
 
   builtin and then its argument prototype would still apply.  */
1765
 
#ifdef __cplusplus
1766
 
extern "C"
1767
 
#endif
1768
 
char $2 ();
1769
 
/* The GNU C library defines this for functions which it implements
1770
 
    to always fail with ENOSYS.  Some functions are actually named
1771
 
    something starting with __ and the normal name is an alias.  */
1772
 
#if defined __stub_$2 || defined __stub___$2
1773
 
choke me
1774
 
#endif
1775
 
 
1776
 
int
1777
 
main ()
1778
 
{
1779
 
return $2 ();
1780
 
  ;
1781
 
  return 0;
1782
 
}
1783
 
_ACEOF
1784
 
if ac_fn_c_try_link "$LINENO"; then :
1785
 
  eval "$3=yes"
1786
 
else
1787
 
  eval "$3=no"
1788
 
fi
1789
 
rm -f core conftest.err conftest.$ac_objext \
1790
 
    conftest$ac_exeext conftest.$ac_ext
1791
 
fi
1792
 
eval ac_res=\$$3
1793
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794
 
$as_echo "$ac_res" >&6; }
1795
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
 
 
1797
 
} # ac_fn_c_check_func
1798
 
 
1799
 
# ac_fn_cxx_try_cpp LINENO
1800
 
# ------------------------
1801
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802
 
ac_fn_cxx_try_cpp ()
1803
 
{
1804
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1806
 
case "(($ac_try" in
1807
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808
 
  *) ac_try_echo=$ac_try;;
1809
 
esac
1810
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811
 
$as_echo "$ac_try_echo"; } >&5
1812
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813
 
  ac_status=$?
1814
 
  if test -s conftest.err; then
1815
 
    grep -v '^ *+' conftest.err >conftest.er1
1816
 
    cat conftest.er1 >&5
1817
 
    mv -f conftest.er1 conftest.err
1818
 
  fi
1819
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820
 
  test $ac_status = 0; } > conftest.i && {
1821
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822
 
         test ! -s conftest.err
1823
 
       }; then :
1824
 
  ac_retval=0
1825
 
else
1826
 
  $as_echo "$as_me: failed program was:" >&5
1827
 
sed 's/^/| /' conftest.$ac_ext >&5
1828
 
 
1829
 
    ac_retval=1
1830
 
fi
1831
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
 
  as_fn_set_status $ac_retval
1833
 
 
1834
 
} # ac_fn_cxx_try_cpp
1835
 
 
1836
 
# ac_fn_cxx_try_link LINENO
1837
 
# -------------------------
1838
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1839
 
ac_fn_cxx_try_link ()
1840
 
{
1841
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1843
 
  if { { ac_try="$ac_link"
1844
 
case "(($ac_try" in
1845
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846
 
  *) ac_try_echo=$ac_try;;
1847
 
esac
1848
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849
 
$as_echo "$ac_try_echo"; } >&5
1850
 
  (eval "$ac_link") 2>conftest.err
1851
 
  ac_status=$?
1852
 
  if test -s conftest.err; then
1853
 
    grep -v '^ *+' conftest.err >conftest.er1
1854
 
    cat conftest.er1 >&5
1855
 
    mv -f conftest.er1 conftest.err
1856
 
  fi
1857
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858
 
  test $ac_status = 0; } && {
1859
 
         test -z "$ac_cxx_werror_flag" ||
1860
 
         test ! -s conftest.err
1861
 
       } && test -s conftest$ac_exeext && {
1862
 
         test "$cross_compiling" = yes ||
1863
 
         $as_test_x conftest$ac_exeext
1864
 
       }; then :
1865
 
  ac_retval=0
1866
 
else
1867
 
  $as_echo "$as_me: failed program was:" >&5
1868
 
sed 's/^/| /' conftest.$ac_ext >&5
1869
 
 
1870
 
        ac_retval=1
1871
 
fi
1872
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874
 
  # interfere with the next link command; also delete a directory that is
1875
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1876
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
 
  as_fn_set_status $ac_retval
1879
 
 
1880
 
} # ac_fn_cxx_try_link
1881
 
cat >config.log <<_ACEOF
1882
 
This file contains any messages produced by compilers while
1883
 
running configure, to aid debugging if configure makes a mistake.
1884
 
 
1885
 
It was created by Google C++ Testing Framework $as_me 1.5.0, which was
1886
 
generated by GNU Autoconf 2.68.  Invocation command line was
1887
 
 
1888
 
  $ $0 $@
1889
 
 
1890
 
_ACEOF
1891
 
exec 5>>config.log
1892
 
{
1893
 
cat <<_ASUNAME
1894
 
## --------- ##
1895
 
## Platform. ##
1896
 
## --------- ##
1897
 
 
1898
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
 
 
1904
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
 
 
1907
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
 
 
1915
 
_ASUNAME
1916
 
 
1917
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918
 
for as_dir in $PATH
1919
 
do
1920
 
  IFS=$as_save_IFS
1921
 
  test -z "$as_dir" && as_dir=.
1922
 
    $as_echo "PATH: $as_dir"
1923
 
  done
1924
 
IFS=$as_save_IFS
1925
 
 
1926
 
} >&5
1927
 
 
1928
 
cat >&5 <<_ACEOF
1929
 
 
1930
 
 
1931
 
## ----------- ##
1932
 
## Core tests. ##
1933
 
## ----------- ##
1934
 
 
1935
 
_ACEOF
1936
 
 
1937
 
 
1938
 
# Keep a trace of the command line.
1939
 
# Strip out --no-create and --no-recursion so they do not pile up.
1940
 
# Strip out --silent because we don't want to record it for future runs.
1941
 
# Also quote any args containing shell meta-characters.
1942
 
# Make two passes to allow for proper duplicate-argument suppression.
1943
 
ac_configure_args=
1944
 
ac_configure_args0=
1945
 
ac_configure_args1=
1946
 
ac_must_keep_next=false
1947
 
for ac_pass in 1 2
1948
 
do
1949
 
  for ac_arg
1950
 
  do
1951
 
    case $ac_arg in
1952
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954
 
    | -silent | --silent | --silen | --sile | --sil)
1955
 
      continue ;;
1956
 
    *\'*)
1957
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958
 
    esac
1959
 
    case $ac_pass in
1960
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961
 
    2)
1962
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
1963
 
      if test $ac_must_keep_next = true; then
1964
 
        ac_must_keep_next=false # Got value, back to normal.
1965
 
      else
1966
 
        case $ac_arg in
1967
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1968
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1971
 
            case "$ac_configure_args0 " in
1972
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973
 
            esac
1974
 
            ;;
1975
 
          -* ) ac_must_keep_next=true ;;
1976
 
        esac
1977
 
      fi
1978
 
      as_fn_append ac_configure_args " '$ac_arg'"
1979
 
      ;;
1980
 
    esac
1981
 
  done
1982
 
done
1983
 
{ ac_configure_args0=; unset ac_configure_args0;}
1984
 
{ ac_configure_args1=; unset ac_configure_args1;}
1985
 
 
1986
 
# When interrupted or exit'd, cleanup temporary files, and complete
1987
 
# config.log.  We remove comments because anyway the quotes in there
1988
 
# would cause problems or look ugly.
1989
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1990
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991
 
trap 'exit_status=$?
1992
 
  # Save into config.log some information that might help in debugging.
1993
 
  {
1994
 
    echo
1995
 
 
1996
 
    $as_echo "## ---------------- ##
1997
 
## Cache variables. ##
1998
 
## ---------------- ##"
1999
 
    echo
2000
 
    # The following way of writing the cache mishandles newlines in values,
2001
 
(
2002
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003
 
    eval ac_val=\$$ac_var
2004
 
    case $ac_val in #(
2005
 
    *${as_nl}*)
2006
 
      case $ac_var in #(
2007
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009
 
      esac
2010
 
      case $ac_var in #(
2011
 
      _ | IFS | as_nl) ;; #(
2012
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2014
 
      esac ;;
2015
 
    esac
2016
 
  done
2017
 
  (set) 2>&1 |
2018
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019
 
    *${as_nl}ac_space=\ *)
2020
 
      sed -n \
2021
 
        "s/'\''/'\''\\\\'\'''\''/g;
2022
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023
 
      ;; #(
2024
 
    *)
2025
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026
 
      ;;
2027
 
    esac |
2028
 
    sort
2029
 
)
2030
 
    echo
2031
 
 
2032
 
    $as_echo "## ----------------- ##
2033
 
## Output variables. ##
2034
 
## ----------------- ##"
2035
 
    echo
2036
 
    for ac_var in $ac_subst_vars
2037
 
    do
2038
 
      eval ac_val=\$$ac_var
2039
 
      case $ac_val in
2040
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041
 
      esac
2042
 
      $as_echo "$ac_var='\''$ac_val'\''"
2043
 
    done | sort
2044
 
    echo
2045
 
 
2046
 
    if test -n "$ac_subst_files"; then
2047
 
      $as_echo "## ------------------- ##
2048
 
## File substitutions. ##
2049
 
## ------------------- ##"
2050
 
      echo
2051
 
      for ac_var in $ac_subst_files
2052
 
      do
2053
 
        eval ac_val=\$$ac_var
2054
 
        case $ac_val in
2055
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056
 
        esac
2057
 
        $as_echo "$ac_var='\''$ac_val'\''"
2058
 
      done | sort
2059
 
      echo
2060
 
    fi
2061
 
 
2062
 
    if test -s confdefs.h; then
2063
 
      $as_echo "## ----------- ##
2064
 
## confdefs.h. ##
2065
 
## ----------- ##"
2066
 
      echo
2067
 
      cat confdefs.h
2068
 
      echo
2069
 
    fi
2070
 
    test "$ac_signal" != 0 &&
2071
 
      $as_echo "$as_me: caught signal $ac_signal"
2072
 
    $as_echo "$as_me: exit $exit_status"
2073
 
  } >&5
2074
 
  rm -f core *.core core.conftest.* &&
2075
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076
 
    exit $exit_status
2077
 
' 0
2078
 
for ac_signal in 1 2 13 15; do
2079
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080
 
done
2081
 
ac_signal=0
2082
 
 
2083
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2084
 
rm -f -r conftest* confdefs.h
2085
 
 
2086
 
$as_echo "/* confdefs.h */" > confdefs.h
2087
 
 
2088
 
# Predefined preprocessor variables.
2089
 
 
2090
 
cat >>confdefs.h <<_ACEOF
2091
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2092
 
_ACEOF
2093
 
 
2094
 
cat >>confdefs.h <<_ACEOF
2095
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096
 
_ACEOF
2097
 
 
2098
 
cat >>confdefs.h <<_ACEOF
2099
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2100
 
_ACEOF
2101
 
 
2102
 
cat >>confdefs.h <<_ACEOF
2103
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2104
 
_ACEOF
2105
 
 
2106
 
cat >>confdefs.h <<_ACEOF
2107
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108
 
_ACEOF
2109
 
 
2110
 
cat >>confdefs.h <<_ACEOF
2111
 
#define PACKAGE_URL "$PACKAGE_URL"
2112
 
_ACEOF
2113
 
 
2114
 
 
2115
 
# Let the site file select an alternate cache file if it wants to.
2116
 
# Prefer an explicitly selected file to automatically selected ones.
2117
 
ac_site_file1=NONE
2118
 
ac_site_file2=NONE
2119
 
if test -n "$CONFIG_SITE"; then
2120
 
  # We do not want a PATH search for config.site.
2121
 
  case $CONFIG_SITE in #((
2122
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2123
 
    */*) ac_site_file1=$CONFIG_SITE;;
2124
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2125
 
  esac
2126
 
elif test "x$prefix" != xNONE; then
2127
 
  ac_site_file1=$prefix/share/config.site
2128
 
  ac_site_file2=$prefix/etc/config.site
2129
 
else
2130
 
  ac_site_file1=$ac_default_prefix/share/config.site
2131
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2132
 
fi
2133
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134
 
do
2135
 
  test "x$ac_site_file" = xNONE && continue
2136
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139
 
    sed 's/^/| /' "$ac_site_file" >&5
2140
 
    . "$ac_site_file" \
2141
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143
 
as_fn_error $? "failed to load site script $ac_site_file
2144
 
See \`config.log' for more details" "$LINENO" 5; }
2145
 
  fi
2146
 
done
2147
 
 
2148
 
if test -r "$cache_file"; then
2149
 
  # Some versions of bash will fail to source /dev/null (special files
2150
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2151
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2154
 
    case $cache_file in
2155
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156
 
      *)                      . "./$cache_file";;
2157
 
    esac
2158
 
  fi
2159
 
else
2160
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2162
 
  >$cache_file
2163
 
fi
2164
 
 
2165
 
# Check that the precious variables saved in the cache have kept the same
2166
 
# value.
2167
 
ac_cache_corrupted=false
2168
 
for ac_var in $ac_precious_vars; do
2169
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2171
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2173
 
  case $ac_old_set,$ac_new_set in
2174
 
    set,)
2175
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177
 
      ac_cache_corrupted=: ;;
2178
 
    ,set)
2179
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181
 
      ac_cache_corrupted=: ;;
2182
 
    ,);;
2183
 
    *)
2184
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2185
 
        # differences in whitespace do not lead to failure.
2186
 
        ac_old_val_w=`echo x $ac_old_val`
2187
 
        ac_new_val_w=`echo x $ac_new_val`
2188
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191
 
          ac_cache_corrupted=:
2192
 
        else
2193
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195
 
          eval $ac_var=\$ac_old_val
2196
 
        fi
2197
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2198
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2199
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2200
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2201
 
      fi;;
2202
 
  esac
2203
 
  # Pass precious variables to config.status.
2204
 
  if test "$ac_new_set" = set; then
2205
 
    case $ac_new_val in
2206
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2208
 
    esac
2209
 
    case " $ac_configure_args " in
2210
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2211
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212
 
    esac
2213
 
  fi
2214
 
done
2215
 
if $ac_cache_corrupted; then
2216
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221
 
fi
2222
 
## -------------------- ##
2223
 
## Main body of script. ##
2224
 
## -------------------- ##
2225
 
 
2226
 
ac_ext=c
2227
 
ac_cpp='$CPP $CPPFLAGS'
2228
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
 
 
2232
 
 
2233
 
 
2234
 
# Provide various options to initialize the Autoconf and configure processes.
2235
 
 
2236
 
 
2237
 
ac_aux_dir=
2238
 
for ac_dir in build-aux "$srcdir"/build-aux; do
2239
 
  if test -f "$ac_dir/install-sh"; then
2240
 
    ac_aux_dir=$ac_dir
2241
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2242
 
    break
2243
 
  elif test -f "$ac_dir/install.sh"; then
2244
 
    ac_aux_dir=$ac_dir
2245
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2246
 
    break
2247
 
  elif test -f "$ac_dir/shtool"; then
2248
 
    ac_aux_dir=$ac_dir
2249
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2250
 
    break
2251
 
  fi
2252
 
done
2253
 
if test -z "$ac_aux_dir"; then
2254
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2255
 
fi
2256
 
 
2257
 
# These three variables are undocumented and unsupported,
2258
 
# and are intended to be withdrawn in a future Autoconf release.
2259
 
# They can cause serious problems if a builder's source tree is in a directory
2260
 
# whose full name contains unusual characters.
2261
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2262
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2263
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2264
 
 
2265
 
 
2266
 
ac_config_headers="$ac_config_headers build-aux/config.h"
2267
 
 
2268
 
ac_config_files="$ac_config_files Makefile"
2269
 
 
2270
 
ac_config_files="$ac_config_files scripts/gtest-config"
2271
 
 
2272
 
 
2273
 
# Initialize Automake with various options. We require at least v1.9, prevent
2274
 
# pedantic complaints about package files, and enable various distribution
2275
 
# targets.
2276
 
am__api_version='1.11'
2277
 
 
2278
 
# Find a good install program.  We prefer a C program (faster),
2279
 
# so one script is as good as another.  But avoid the broken or
2280
 
# incompatible versions:
2281
 
# SysV /etc/install, /usr/sbin/install
2282
 
# SunOS /usr/etc/install
2283
 
# IRIX /sbin/install
2284
 
# AIX /bin/install
2285
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2286
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2287
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2288
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2289
 
# OS/2's system install, which has a completely different semantic
2290
 
# ./install, which can be erroneously created by make from ./install.sh.
2291
 
# Reject install programs that cannot install multiple files.
2292
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2293
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2294
 
if test -z "$INSTALL"; then
2295
 
if ${ac_cv_path_install+:} false; then :
2296
 
  $as_echo_n "(cached) " >&6
2297
 
else
2298
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299
 
for as_dir in $PATH
2300
 
do
2301
 
  IFS=$as_save_IFS
2302
 
  test -z "$as_dir" && as_dir=.
2303
 
    # Account for people who put trailing slashes in PATH elements.
2304
 
case $as_dir/ in #((
2305
 
  ./ | .// | /[cC]/* | \
2306
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2307
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2308
 
  /usr/ucb/* ) ;;
2309
 
  *)
2310
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2311
 
    # Don't use installbsd from OSF since it installs stuff as root
2312
 
    # by default.
2313
 
    for ac_prog in ginstall scoinst install; do
2314
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2315
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2316
 
          if test $ac_prog = install &&
2317
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318
 
            # AIX install.  It has an incompatible calling convention.
2319
 
            :
2320
 
          elif test $ac_prog = install &&
2321
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2322
 
            # program-specific install script used by HP pwplus--don't use.
2323
 
            :
2324
 
          else
2325
 
            rm -rf conftest.one conftest.two conftest.dir
2326
 
            echo one > conftest.one
2327
 
            echo two > conftest.two
2328
 
            mkdir conftest.dir
2329
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2330
 
              test -s conftest.one && test -s conftest.two &&
2331
 
              test -s conftest.dir/conftest.one &&
2332
 
              test -s conftest.dir/conftest.two
2333
 
            then
2334
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2335
 
              break 3
2336
 
            fi
2337
 
          fi
2338
 
        fi
2339
 
      done
2340
 
    done
2341
 
    ;;
2342
 
esac
2343
 
 
2344
 
  done
2345
 
IFS=$as_save_IFS
2346
 
 
2347
 
rm -rf conftest.one conftest.two conftest.dir
2348
 
 
2349
 
fi
2350
 
  if test "${ac_cv_path_install+set}" = set; then
2351
 
    INSTALL=$ac_cv_path_install
2352
 
  else
2353
 
    # As a last resort, use the slow shell script.  Don't cache a
2354
 
    # value for INSTALL within a source directory, because that will
2355
 
    # break other packages using the cache if that directory is
2356
 
    # removed, or if the value is a relative name.
2357
 
    INSTALL=$ac_install_sh
2358
 
  fi
2359
 
fi
2360
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2361
 
$as_echo "$INSTALL" >&6; }
2362
 
 
2363
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2364
 
# It thinks the first close brace ends the variable substitution.
2365
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366
 
 
2367
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368
 
 
2369
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370
 
 
2371
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2372
 
$as_echo_n "checking whether build environment is sane... " >&6; }
2373
 
# Just in case
2374
 
sleep 1
2375
 
echo timestamp > conftest.file
2376
 
# Reject unsafe characters in $srcdir or the absolute working directory
2377
 
# name.  Accept space and tab only in the latter.
2378
 
am_lf='
2379
 
'
2380
 
case `pwd` in
2381
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2382
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2383
 
esac
2384
 
case $srcdir in
2385
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2386
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2387
 
esac
2388
 
 
2389
 
# Do `set' in a subshell so we don't clobber the current shell's
2390
 
# arguments.  Must try -L first in case configure is actually a
2391
 
# symlink; some systems play weird games with the mod time of symlinks
2392
 
# (eg FreeBSD returns the mod time of the symlink's containing
2393
 
# directory).
2394
 
if (
2395
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2396
 
   if test "$*" = "X"; then
2397
 
      # -L didn't work.
2398
 
      set X `ls -t "$srcdir/configure" conftest.file`
2399
 
   fi
2400
 
   rm -f conftest.file
2401
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2402
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2403
 
 
2404
 
      # If neither matched, then we have a broken ls.  This can happen
2405
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2406
 
      # broken ls alias from the environment.  This has actually
2407
 
      # happened.  Such a system could not be considered "sane".
2408
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2409
 
alias in your environment" "$LINENO" 5
2410
 
   fi
2411
 
 
2412
 
   test "$2" = conftest.file
2413
 
   )
2414
 
then
2415
 
   # Ok.
2416
 
   :
2417
 
else
2418
 
   as_fn_error $? "newly created file is older than distributed files!
2419
 
Check your system clock" "$LINENO" 5
2420
 
fi
2421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2422
 
$as_echo "yes" >&6; }
2423
 
test "$program_prefix" != NONE &&
2424
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425
 
# Use a double $ so make ignores it.
2426
 
test "$program_suffix" != NONE &&
2427
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428
 
# Double any \ or $.
2429
 
# By default was `s,x,x', remove it if useless.
2430
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2432
 
 
2433
 
# expand $ac_aux_dir to an absolute path
2434
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2435
 
 
2436
 
if test x"${MISSING+set}" != xset; then
2437
 
  case $am_aux_dir in
2438
 
  *\ * | *\     *)
2439
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440
 
  *)
2441
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442
 
  esac
2443
 
fi
2444
 
# Use eval to expand $SHELL
2445
 
if eval "$MISSING --run true"; then
2446
 
  am_missing_run="$MISSING --run "
2447
 
else
2448
 
  am_missing_run=
2449
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2450
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2451
 
fi
2452
 
 
2453
 
if test x"${install_sh}" != xset; then
2454
 
  case $am_aux_dir in
2455
 
  *\ * | *\     *)
2456
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457
 
  *)
2458
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2459
 
  esac
2460
 
fi
2461
 
 
2462
 
# Installed binaries are usually stripped using `strip' when the user
2463
 
# run `make install-strip'.  However `strip' might not be the right
2464
 
# tool to use in cross-compilation environments, therefore Automake
2465
 
# will honor the `STRIP' environment variable to overrule this program.
2466
 
if test "$cross_compiling" != no; then
2467
 
  if test -n "$ac_tool_prefix"; then
2468
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2470
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471
 
$as_echo_n "checking for $ac_word... " >&6; }
2472
 
if ${ac_cv_prog_STRIP+:} false; then :
2473
 
  $as_echo_n "(cached) " >&6
2474
 
else
2475
 
  if test -n "$STRIP"; then
2476
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477
 
else
2478
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479
 
for as_dir in $PATH
2480
 
do
2481
 
  IFS=$as_save_IFS
2482
 
  test -z "$as_dir" && as_dir=.
2483
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2484
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487
 
    break 2
2488
 
  fi
2489
 
done
2490
 
  done
2491
 
IFS=$as_save_IFS
2492
 
 
2493
 
fi
2494
 
fi
2495
 
STRIP=$ac_cv_prog_STRIP
2496
 
if test -n "$STRIP"; then
2497
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498
 
$as_echo "$STRIP" >&6; }
2499
 
else
2500
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501
 
$as_echo "no" >&6; }
2502
 
fi
2503
 
 
2504
 
 
2505
 
fi
2506
 
if test -z "$ac_cv_prog_STRIP"; then
2507
 
  ac_ct_STRIP=$STRIP
2508
 
  # Extract the first word of "strip", so it can be a program name with args.
2509
 
set dummy strip; ac_word=$2
2510
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511
 
$as_echo_n "checking for $ac_word... " >&6; }
2512
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513
 
  $as_echo_n "(cached) " >&6
2514
 
else
2515
 
  if test -n "$ac_ct_STRIP"; then
2516
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517
 
else
2518
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519
 
for as_dir in $PATH
2520
 
do
2521
 
  IFS=$as_save_IFS
2522
 
  test -z "$as_dir" && as_dir=.
2523
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2524
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525
 
    ac_cv_prog_ac_ct_STRIP="strip"
2526
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527
 
    break 2
2528
 
  fi
2529
 
done
2530
 
  done
2531
 
IFS=$as_save_IFS
2532
 
 
2533
 
fi
2534
 
fi
2535
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536
 
if test -n "$ac_ct_STRIP"; then
2537
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538
 
$as_echo "$ac_ct_STRIP" >&6; }
2539
 
else
2540
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541
 
$as_echo "no" >&6; }
2542
 
fi
2543
 
 
2544
 
  if test "x$ac_ct_STRIP" = x; then
2545
 
    STRIP=":"
2546
 
  else
2547
 
    case $cross_compiling:$ac_tool_warned in
2548
 
yes:)
2549
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551
 
ac_tool_warned=yes ;;
2552
 
esac
2553
 
    STRIP=$ac_ct_STRIP
2554
 
  fi
2555
 
else
2556
 
  STRIP="$ac_cv_prog_STRIP"
2557
 
fi
2558
 
 
2559
 
fi
2560
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561
 
 
2562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564
 
if test -z "$MKDIR_P"; then
2565
 
  if ${ac_cv_path_mkdir+:} false; then :
2566
 
  $as_echo_n "(cached) " >&6
2567
 
else
2568
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2570
 
do
2571
 
  IFS=$as_save_IFS
2572
 
  test -z "$as_dir" && as_dir=.
2573
 
    for ac_prog in mkdir gmkdir; do
2574
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2575
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2576
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577
 
             'mkdir (GNU coreutils) '* | \
2578
 
             'mkdir (coreutils) '* | \
2579
 
             'mkdir (fileutils) '4.1*)
2580
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581
 
               break 3;;
2582
 
           esac
2583
 
         done
2584
 
       done
2585
 
  done
2586
 
IFS=$as_save_IFS
2587
 
 
2588
 
fi
2589
 
 
2590
 
  test -d ./--version && rmdir ./--version
2591
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2592
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2593
 
  else
2594
 
    # As a last resort, use the slow shell script.  Don't cache a
2595
 
    # value for MKDIR_P within a source directory, because that will
2596
 
    # break other packages using the cache if that directory is
2597
 
    # removed, or if the value is a relative name.
2598
 
    MKDIR_P="$ac_install_sh -d"
2599
 
  fi
2600
 
fi
2601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602
 
$as_echo "$MKDIR_P" >&6; }
2603
 
 
2604
 
mkdir_p="$MKDIR_P"
2605
 
case $mkdir_p in
2606
 
  [\\/$]* | ?:[\\/]*) ;;
2607
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2608
 
esac
2609
 
 
2610
 
for ac_prog in gawk mawk nawk awk
2611
 
do
2612
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2613
 
set dummy $ac_prog; ac_word=$2
2614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615
 
$as_echo_n "checking for $ac_word... " >&6; }
2616
 
if ${ac_cv_prog_AWK+:} false; then :
2617
 
  $as_echo_n "(cached) " >&6
2618
 
else
2619
 
  if test -n "$AWK"; then
2620
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621
 
else
2622
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623
 
for as_dir in $PATH
2624
 
do
2625
 
  IFS=$as_save_IFS
2626
 
  test -z "$as_dir" && as_dir=.
2627
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2628
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629
 
    ac_cv_prog_AWK="$ac_prog"
2630
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631
 
    break 2
2632
 
  fi
2633
 
done
2634
 
  done
2635
 
IFS=$as_save_IFS
2636
 
 
2637
 
fi
2638
 
fi
2639
 
AWK=$ac_cv_prog_AWK
2640
 
if test -n "$AWK"; then
2641
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642
 
$as_echo "$AWK" >&6; }
2643
 
else
2644
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
 
$as_echo "no" >&6; }
2646
 
fi
2647
 
 
2648
 
 
2649
 
  test -n "$AWK" && break
2650
 
done
2651
 
 
2652
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654
 
set x ${MAKE-make}
2655
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656
 
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657
 
  $as_echo_n "(cached) " >&6
2658
 
else
2659
 
  cat >conftest.make <<\_ACEOF
2660
 
SHELL = /bin/sh
2661
 
all:
2662
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2663
 
_ACEOF
2664
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666
 
  *@@@%%%=?*=@@@%%%*)
2667
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2668
 
  *)
2669
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2670
 
esac
2671
 
rm -f conftest.make
2672
 
fi
2673
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675
 
$as_echo "yes" >&6; }
2676
 
  SET_MAKE=
2677
 
else
2678
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679
 
$as_echo "no" >&6; }
2680
 
  SET_MAKE="MAKE=${MAKE-make}"
2681
 
fi
2682
 
 
2683
 
rm -rf .tst 2>/dev/null
2684
 
mkdir .tst 2>/dev/null
2685
 
if test -d .tst; then
2686
 
  am__leading_dot=.
2687
 
else
2688
 
  am__leading_dot=_
2689
 
fi
2690
 
rmdir .tst 2>/dev/null
2691
 
 
2692
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2693
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2694
 
  # is not polluted with repeated "-I."
2695
 
  am__isrc=' -I$(srcdir)'
2696
 
  # test to see if srcdir already configured
2697
 
  if test -f $srcdir/config.status; then
2698
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2699
 
  fi
2700
 
fi
2701
 
 
2702
 
# test whether we have cygpath
2703
 
if test -z "$CYGPATH_W"; then
2704
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2705
 
    CYGPATH_W='cygpath -w'
2706
 
  else
2707
 
    CYGPATH_W=echo
2708
 
  fi
2709
 
fi
2710
 
 
2711
 
 
2712
 
# Define the identity of the package.
2713
 
 PACKAGE='gtest'
2714
 
 VERSION='1.5.0'
2715
 
 
2716
 
 
2717
 
cat >>confdefs.h <<_ACEOF
2718
 
#define PACKAGE "$PACKAGE"
2719
 
_ACEOF
2720
 
 
2721
 
 
2722
 
cat >>confdefs.h <<_ACEOF
2723
 
#define VERSION "$VERSION"
2724
 
_ACEOF
2725
 
 
2726
 
# Some tools Automake needs.
2727
 
 
2728
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2729
 
 
2730
 
 
2731
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2732
 
 
2733
 
 
2734
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2735
 
 
2736
 
 
2737
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2738
 
 
2739
 
 
2740
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2741
 
 
2742
 
# We need awk for the "check" target.  The system "awk" is bad on
2743
 
# some platforms.
2744
 
# Always define AMTAR for backward compatibility.  Yes, it's still used
2745
 
# in the wild :-(  We should find a proper way to deprecate it ...
2746
 
AMTAR='$${TAR-tar}'
2747
 
 
2748
 
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749
 
 
2750
 
 
2751
 
 
2752
 
 
2753
 
 
2754
 
 
2755
 
# Check for programs used in building Google Test.
2756
 
ac_ext=c
2757
 
ac_cpp='$CPP $CPPFLAGS'
2758
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
 
if test -n "$ac_tool_prefix"; then
2762
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765
 
$as_echo_n "checking for $ac_word... " >&6; }
2766
 
if ${ac_cv_prog_CC+:} false; then :
2767
 
  $as_echo_n "(cached) " >&6
2768
 
else
2769
 
  if test -n "$CC"; then
2770
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2771
 
else
2772
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773
 
for as_dir in $PATH
2774
 
do
2775
 
  IFS=$as_save_IFS
2776
 
  test -z "$as_dir" && as_dir=.
2777
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2778
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781
 
    break 2
2782
 
  fi
2783
 
done
2784
 
  done
2785
 
IFS=$as_save_IFS
2786
 
 
2787
 
fi
2788
 
fi
2789
 
CC=$ac_cv_prog_CC
2790
 
if test -n "$CC"; then
2791
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792
 
$as_echo "$CC" >&6; }
2793
 
else
2794
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795
 
$as_echo "no" >&6; }
2796
 
fi
2797
 
 
2798
 
 
2799
 
fi
2800
 
if test -z "$ac_cv_prog_CC"; then
2801
 
  ac_ct_CC=$CC
2802
 
  # Extract the first word of "gcc", so it can be a program name with args.
2803
 
set dummy gcc; ac_word=$2
2804
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805
 
$as_echo_n "checking for $ac_word... " >&6; }
2806
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2807
 
  $as_echo_n "(cached) " >&6
2808
 
else
2809
 
  if test -n "$ac_ct_CC"; then
2810
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811
 
else
2812
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
 
for as_dir in $PATH
2814
 
do
2815
 
  IFS=$as_save_IFS
2816
 
  test -z "$as_dir" && as_dir=.
2817
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2818
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819
 
    ac_cv_prog_ac_ct_CC="gcc"
2820
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821
 
    break 2
2822
 
  fi
2823
 
done
2824
 
  done
2825
 
IFS=$as_save_IFS
2826
 
 
2827
 
fi
2828
 
fi
2829
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830
 
if test -n "$ac_ct_CC"; then
2831
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2832
 
$as_echo "$ac_ct_CC" >&6; }
2833
 
else
2834
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835
 
$as_echo "no" >&6; }
2836
 
fi
2837
 
 
2838
 
  if test "x$ac_ct_CC" = x; then
2839
 
    CC=""
2840
 
  else
2841
 
    case $cross_compiling:$ac_tool_warned in
2842
 
yes:)
2843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845
 
ac_tool_warned=yes ;;
2846
 
esac
2847
 
    CC=$ac_ct_CC
2848
 
  fi
2849
 
else
2850
 
  CC="$ac_cv_prog_CC"
2851
 
fi
2852
 
 
2853
 
if test -z "$CC"; then
2854
 
          if test -n "$ac_tool_prefix"; then
2855
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2857
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858
 
$as_echo_n "checking for $ac_word... " >&6; }
2859
 
if ${ac_cv_prog_CC+:} false; then :
2860
 
  $as_echo_n "(cached) " >&6
2861
 
else
2862
 
  if test -n "$CC"; then
2863
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2864
 
else
2865
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866
 
for as_dir in $PATH
2867
 
do
2868
 
  IFS=$as_save_IFS
2869
 
  test -z "$as_dir" && as_dir=.
2870
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2871
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2873
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874
 
    break 2
2875
 
  fi
2876
 
done
2877
 
  done
2878
 
IFS=$as_save_IFS
2879
 
 
2880
 
fi
2881
 
fi
2882
 
CC=$ac_cv_prog_CC
2883
 
if test -n "$CC"; then
2884
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885
 
$as_echo "$CC" >&6; }
2886
 
else
2887
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888
 
$as_echo "no" >&6; }
2889
 
fi
2890
 
 
2891
 
 
2892
 
  fi
2893
 
fi
2894
 
if test -z "$CC"; then
2895
 
  # Extract the first word of "cc", so it can be a program name with args.
2896
 
set dummy cc; ac_word=$2
2897
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898
 
$as_echo_n "checking for $ac_word... " >&6; }
2899
 
if ${ac_cv_prog_CC+:} false; then :
2900
 
  $as_echo_n "(cached) " >&6
2901
 
else
2902
 
  if test -n "$CC"; then
2903
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2904
 
else
2905
 
  ac_prog_rejected=no
2906
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907
 
for as_dir in $PATH
2908
 
do
2909
 
  IFS=$as_save_IFS
2910
 
  test -z "$as_dir" && as_dir=.
2911
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2912
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914
 
       ac_prog_rejected=yes
2915
 
       continue
2916
 
     fi
2917
 
    ac_cv_prog_CC="cc"
2918
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919
 
    break 2
2920
 
  fi
2921
 
done
2922
 
  done
2923
 
IFS=$as_save_IFS
2924
 
 
2925
 
if test $ac_prog_rejected = yes; then
2926
 
  # We found a bogon in the path, so make sure we never use it.
2927
 
  set dummy $ac_cv_prog_CC
2928
 
  shift
2929
 
  if test $# != 0; then
2930
 
    # We chose a different compiler from the bogus one.
2931
 
    # However, it has the same basename, so the bogon will be chosen
2932
 
    # first if we set CC to just the basename; use the full file name.
2933
 
    shift
2934
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935
 
  fi
2936
 
fi
2937
 
fi
2938
 
fi
2939
 
CC=$ac_cv_prog_CC
2940
 
if test -n "$CC"; then
2941
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942
 
$as_echo "$CC" >&6; }
2943
 
else
2944
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945
 
$as_echo "no" >&6; }
2946
 
fi
2947
 
 
2948
 
 
2949
 
fi
2950
 
if test -z "$CC"; then
2951
 
  if test -n "$ac_tool_prefix"; then
2952
 
  for ac_prog in cl.exe
2953
 
  do
2954
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957
 
$as_echo_n "checking for $ac_word... " >&6; }
2958
 
if ${ac_cv_prog_CC+:} false; then :
2959
 
  $as_echo_n "(cached) " >&6
2960
 
else
2961
 
  if test -n "$CC"; then
2962
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2963
 
else
2964
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965
 
for as_dir in $PATH
2966
 
do
2967
 
  IFS=$as_save_IFS
2968
 
  test -z "$as_dir" && as_dir=.
2969
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2970
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973
 
    break 2
2974
 
  fi
2975
 
done
2976
 
  done
2977
 
IFS=$as_save_IFS
2978
 
 
2979
 
fi
2980
 
fi
2981
 
CC=$ac_cv_prog_CC
2982
 
if test -n "$CC"; then
2983
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984
 
$as_echo "$CC" >&6; }
2985
 
else
2986
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987
 
$as_echo "no" >&6; }
2988
 
fi
2989
 
 
2990
 
 
2991
 
    test -n "$CC" && break
2992
 
  done
2993
 
fi
2994
 
if test -z "$CC"; then
2995
 
  ac_ct_CC=$CC
2996
 
  for ac_prog in cl.exe
2997
 
do
2998
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2999
 
set dummy $ac_prog; ac_word=$2
3000
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001
 
$as_echo_n "checking for $ac_word... " >&6; }
3002
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003
 
  $as_echo_n "(cached) " >&6
3004
 
else
3005
 
  if test -n "$ac_ct_CC"; then
3006
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007
 
else
3008
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
 
for as_dir in $PATH
3010
 
do
3011
 
  IFS=$as_save_IFS
3012
 
  test -z "$as_dir" && as_dir=.
3013
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3014
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3016
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017
 
    break 2
3018
 
  fi
3019
 
done
3020
 
  done
3021
 
IFS=$as_save_IFS
3022
 
 
3023
 
fi
3024
 
fi
3025
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026
 
if test -n "$ac_ct_CC"; then
3027
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028
 
$as_echo "$ac_ct_CC" >&6; }
3029
 
else
3030
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
 
$as_echo "no" >&6; }
3032
 
fi
3033
 
 
3034
 
 
3035
 
  test -n "$ac_ct_CC" && break
3036
 
done
3037
 
 
3038
 
  if test "x$ac_ct_CC" = x; then
3039
 
    CC=""
3040
 
  else
3041
 
    case $cross_compiling:$ac_tool_warned in
3042
 
yes:)
3043
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045
 
ac_tool_warned=yes ;;
3046
 
esac
3047
 
    CC=$ac_ct_CC
3048
 
  fi
3049
 
fi
3050
 
 
3051
 
fi
3052
 
 
3053
 
 
3054
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056
 
as_fn_error $? "no acceptable C compiler found in \$PATH
3057
 
See \`config.log' for more details" "$LINENO" 5; }
3058
 
 
3059
 
# Provide some information about the compiler.
3060
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3061
 
set X $ac_compile
3062
 
ac_compiler=$2
3063
 
for ac_option in --version -v -V -qversion; do
3064
 
  { { ac_try="$ac_compiler $ac_option >&5"
3065
 
case "(($ac_try" in
3066
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067
 
  *) ac_try_echo=$ac_try;;
3068
 
esac
3069
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070
 
$as_echo "$ac_try_echo"; } >&5
3071
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3072
 
  ac_status=$?
3073
 
  if test -s conftest.err; then
3074
 
    sed '10a\
3075
 
... rest of stderr output deleted ...
3076
 
         10q' conftest.err >conftest.er1
3077
 
    cat conftest.er1 >&5
3078
 
  fi
3079
 
  rm -f conftest.er1 conftest.err
3080
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081
 
  test $ac_status = 0; }
3082
 
done
3083
 
 
3084
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085
 
/* end confdefs.h.  */
3086
 
 
3087
 
int
3088
 
main ()
3089
 
{
3090
 
 
3091
 
  ;
3092
 
  return 0;
3093
 
}
3094
 
_ACEOF
3095
 
ac_clean_files_save=$ac_clean_files
3096
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097
 
# Try to create an executable without -o first, disregard a.out.
3098
 
# It will help us diagnose broken compilers, and finding out an intuition
3099
 
# of exeext.
3100
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3102
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103
 
 
3104
 
# The possible output files:
3105
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3106
 
 
3107
 
ac_rmfiles=
3108
 
for ac_file in $ac_files
3109
 
do
3110
 
  case $ac_file in
3111
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113
 
  esac
3114
 
done
3115
 
rm -f $ac_rmfiles
3116
 
 
3117
 
if { { ac_try="$ac_link_default"
3118
 
case "(($ac_try" in
3119
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120
 
  *) ac_try_echo=$ac_try;;
3121
 
esac
3122
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123
 
$as_echo "$ac_try_echo"; } >&5
3124
 
  (eval "$ac_link_default") 2>&5
3125
 
  ac_status=$?
3126
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127
 
  test $ac_status = 0; }; then :
3128
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131
 
# so that the user can short-circuit this test for compilers unknown to
3132
 
# Autoconf.
3133
 
for ac_file in $ac_files ''
3134
 
do
3135
 
  test -f "$ac_file" || continue
3136
 
  case $ac_file in
3137
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3138
 
        ;;
3139
 
    [ab].out )
3140
 
        # We found the default executable, but exeext='' is most
3141
 
        # certainly right.
3142
 
        break;;
3143
 
    *.* )
3144
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145
 
        then :; else
3146
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147
 
        fi
3148
 
        # We set ac_cv_exeext here because the later test for it is not
3149
 
        # safe: cross compilers may not add the suffix if given an `-o'
3150
 
        # argument, so we may need to know it at that point already.
3151
 
        # Even if this section looks crufty: it has the advantage of
3152
 
        # actually working.
3153
 
        break;;
3154
 
    * )
3155
 
        break;;
3156
 
  esac
3157
 
done
3158
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
 
 
3160
 
else
3161
 
  ac_file=''
3162
 
fi
3163
 
if test -z "$ac_file"; then :
3164
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165
 
$as_echo "no" >&6; }
3166
 
$as_echo "$as_me: failed program was:" >&5
3167
 
sed 's/^/| /' conftest.$ac_ext >&5
3168
 
 
3169
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171
 
as_fn_error 77 "C compiler cannot create executables
3172
 
See \`config.log' for more details" "$LINENO" 5; }
3173
 
else
3174
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175
 
$as_echo "yes" >&6; }
3176
 
fi
3177
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3179
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180
 
$as_echo "$ac_file" >&6; }
3181
 
ac_exeext=$ac_cv_exeext
3182
 
 
3183
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184
 
ac_clean_files=$ac_clean_files_save
3185
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186
 
$as_echo_n "checking for suffix of executables... " >&6; }
3187
 
if { { ac_try="$ac_link"
3188
 
case "(($ac_try" in
3189
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
 
  *) ac_try_echo=$ac_try;;
3191
 
esac
3192
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193
 
$as_echo "$ac_try_echo"; } >&5
3194
 
  (eval "$ac_link") 2>&5
3195
 
  ac_status=$?
3196
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197
 
  test $ac_status = 0; }; then :
3198
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3200
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3201
 
# `rm'.
3202
 
for ac_file in conftest.exe conftest conftest.*; do
3203
 
  test -f "$ac_file" || continue
3204
 
  case $ac_file in
3205
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207
 
          break;;
3208
 
    * ) break;;
3209
 
  esac
3210
 
done
3211
 
else
3212
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215
 
See \`config.log' for more details" "$LINENO" 5; }
3216
 
fi
3217
 
rm -f conftest conftest$ac_cv_exeext
3218
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219
 
$as_echo "$ac_cv_exeext" >&6; }
3220
 
 
3221
 
rm -f conftest.$ac_ext
3222
 
EXEEXT=$ac_cv_exeext
3223
 
ac_exeext=$EXEEXT
3224
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225
 
/* end confdefs.h.  */
3226
 
#include <stdio.h>
3227
 
int
3228
 
main ()
3229
 
{
3230
 
FILE *f = fopen ("conftest.out", "w");
3231
 
 return ferror (f) || fclose (f) != 0;
3232
 
 
3233
 
  ;
3234
 
  return 0;
3235
 
}
3236
 
_ACEOF
3237
 
ac_clean_files="$ac_clean_files conftest.out"
3238
 
# Check that the compiler produces executables we can run.  If not, either
3239
 
# the compiler is broken, or we cross compile.
3240
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3242
 
if test "$cross_compiling" != yes; then
3243
 
  { { ac_try="$ac_link"
3244
 
case "(($ac_try" in
3245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
 
  *) ac_try_echo=$ac_try;;
3247
 
esac
3248
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249
 
$as_echo "$ac_try_echo"; } >&5
3250
 
  (eval "$ac_link") 2>&5
3251
 
  ac_status=$?
3252
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253
 
  test $ac_status = 0; }
3254
 
  if { ac_try='./conftest$ac_cv_exeext'
3255
 
  { { case "(($ac_try" in
3256
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257
 
  *) ac_try_echo=$ac_try;;
3258
 
esac
3259
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260
 
$as_echo "$ac_try_echo"; } >&5
3261
 
  (eval "$ac_try") 2>&5
3262
 
  ac_status=$?
3263
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264
 
  test $ac_status = 0; }; }; then
3265
 
    cross_compiling=no
3266
 
  else
3267
 
    if test "$cross_compiling" = maybe; then
3268
 
        cross_compiling=yes
3269
 
    else
3270
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272
 
as_fn_error $? "cannot run C compiled programs.
3273
 
If you meant to cross compile, use \`--host'.
3274
 
See \`config.log' for more details" "$LINENO" 5; }
3275
 
    fi
3276
 
  fi
3277
 
fi
3278
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279
 
$as_echo "$cross_compiling" >&6; }
3280
 
 
3281
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282
 
ac_clean_files=$ac_clean_files_save
3283
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284
 
$as_echo_n "checking for suffix of object files... " >&6; }
3285
 
if ${ac_cv_objext+:} false; then :
3286
 
  $as_echo_n "(cached) " >&6
3287
 
else
3288
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289
 
/* end confdefs.h.  */
3290
 
 
3291
 
int
3292
 
main ()
3293
 
{
3294
 
 
3295
 
  ;
3296
 
  return 0;
3297
 
}
3298
 
_ACEOF
3299
 
rm -f conftest.o conftest.obj
3300
 
if { { ac_try="$ac_compile"
3301
 
case "(($ac_try" in
3302
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303
 
  *) ac_try_echo=$ac_try;;
3304
 
esac
3305
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306
 
$as_echo "$ac_try_echo"; } >&5
3307
 
  (eval "$ac_compile") 2>&5
3308
 
  ac_status=$?
3309
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310
 
  test $ac_status = 0; }; then :
3311
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3312
 
  test -f "$ac_file" || continue;
3313
 
  case $ac_file in
3314
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316
 
       break;;
3317
 
  esac
3318
 
done
3319
 
else
3320
 
  $as_echo "$as_me: failed program was:" >&5
3321
 
sed 's/^/| /' conftest.$ac_ext >&5
3322
 
 
3323
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
3326
 
See \`config.log' for more details" "$LINENO" 5; }
3327
 
fi
3328
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329
 
fi
3330
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331
 
$as_echo "$ac_cv_objext" >&6; }
3332
 
OBJEXT=$ac_cv_objext
3333
 
ac_objext=$OBJEXT
3334
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336
 
if ${ac_cv_c_compiler_gnu+:} false; then :
3337
 
  $as_echo_n "(cached) " >&6
3338
 
else
3339
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340
 
/* end confdefs.h.  */
3341
 
 
3342
 
int
3343
 
main ()
3344
 
{
3345
 
#ifndef __GNUC__
3346
 
       choke me
3347
 
#endif
3348
 
 
3349
 
  ;
3350
 
  return 0;
3351
 
}
3352
 
_ACEOF
3353
 
if ac_fn_c_try_compile "$LINENO"; then :
3354
 
  ac_compiler_gnu=yes
3355
 
else
3356
 
  ac_compiler_gnu=no
3357
 
fi
3358
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
 
 
3361
 
fi
3362
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364
 
if test $ac_compiler_gnu = yes; then
3365
 
  GCC=yes
3366
 
else
3367
 
  GCC=
3368
 
fi
3369
 
ac_test_CFLAGS=${CFLAGS+set}
3370
 
ac_save_CFLAGS=$CFLAGS
3371
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3373
 
if ${ac_cv_prog_cc_g+:} false; then :
3374
 
  $as_echo_n "(cached) " >&6
3375
 
else
3376
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3377
 
   ac_c_werror_flag=yes
3378
 
   ac_cv_prog_cc_g=no
3379
 
   CFLAGS="-g"
3380
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381
 
/* end confdefs.h.  */
3382
 
 
3383
 
int
3384
 
main ()
3385
 
{
3386
 
 
3387
 
  ;
3388
 
  return 0;
3389
 
}
3390
 
_ACEOF
3391
 
if ac_fn_c_try_compile "$LINENO"; then :
3392
 
  ac_cv_prog_cc_g=yes
3393
 
else
3394
 
  CFLAGS=""
3395
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396
 
/* end confdefs.h.  */
3397
 
 
3398
 
int
3399
 
main ()
3400
 
{
3401
 
 
3402
 
  ;
3403
 
  return 0;
3404
 
}
3405
 
_ACEOF
3406
 
if ac_fn_c_try_compile "$LINENO"; then :
3407
 
 
3408
 
else
3409
 
  ac_c_werror_flag=$ac_save_c_werror_flag
3410
 
         CFLAGS="-g"
3411
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412
 
/* end confdefs.h.  */
3413
 
 
3414
 
int
3415
 
main ()
3416
 
{
3417
 
 
3418
 
  ;
3419
 
  return 0;
3420
 
}
3421
 
_ACEOF
3422
 
if ac_fn_c_try_compile "$LINENO"; then :
3423
 
  ac_cv_prog_cc_g=yes
3424
 
fi
3425
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426
 
fi
3427
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428
 
fi
3429
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3431
 
fi
3432
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
3434
 
if test "$ac_test_CFLAGS" = set; then
3435
 
  CFLAGS=$ac_save_CFLAGS
3436
 
elif test $ac_cv_prog_cc_g = yes; then
3437
 
  if test "$GCC" = yes; then
3438
 
    CFLAGS="-g -O2"
3439
 
  else
3440
 
    CFLAGS="-g"
3441
 
  fi
3442
 
else
3443
 
  if test "$GCC" = yes; then
3444
 
    CFLAGS="-O2"
3445
 
  else
3446
 
    CFLAGS=
3447
 
  fi
3448
 
fi
3449
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451
 
if ${ac_cv_prog_cc_c89+:} false; then :
3452
 
  $as_echo_n "(cached) " >&6
3453
 
else
3454
 
  ac_cv_prog_cc_c89=no
3455
 
ac_save_CC=$CC
3456
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457
 
/* end confdefs.h.  */
3458
 
#include <stdarg.h>
3459
 
#include <stdio.h>
3460
 
#include <sys/types.h>
3461
 
#include <sys/stat.h>
3462
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463
 
struct buf { int x; };
3464
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465
 
static char *e (p, i)
3466
 
     char **p;
3467
 
     int i;
3468
 
{
3469
 
  return p[i];
3470
 
}
3471
 
static char *f (char * (*g) (char **, int), char **p, ...)
3472
 
{
3473
 
  char *s;
3474
 
  va_list v;
3475
 
  va_start (v,p);
3476
 
  s = g (p, va_arg (v,int));
3477
 
  va_end (v);
3478
 
  return s;
3479
 
}
3480
 
 
3481
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3483
 
   These don't provoke an error unfortunately, instead are silently treated
3484
 
   as 'x'.  The following induces an error, until -std is added to get
3485
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3487
 
   that's true only with -std.  */
3488
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
 
 
3490
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491
 
   inside strings and character constants.  */
3492
 
#define FOO(x) 'x'
3493
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
 
 
3495
 
int test (int i, double x);
3496
 
struct s1 {int (*f) (int a);};
3497
 
struct s2 {int (*f) (double a);};
3498
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499
 
int argc;
3500
 
char **argv;
3501
 
int
3502
 
main ()
3503
 
{
3504
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505
 
  ;
3506
 
  return 0;
3507
 
}
3508
 
_ACEOF
3509
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511
 
do
3512
 
  CC="$ac_save_CC $ac_arg"
3513
 
  if ac_fn_c_try_compile "$LINENO"; then :
3514
 
  ac_cv_prog_cc_c89=$ac_arg
3515
 
fi
3516
 
rm -f core conftest.err conftest.$ac_objext
3517
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3518
 
done
3519
 
rm -f conftest.$ac_ext
3520
 
CC=$ac_save_CC
3521
 
 
3522
 
fi
3523
 
# AC_CACHE_VAL
3524
 
case "x$ac_cv_prog_cc_c89" in
3525
 
  x)
3526
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527
 
$as_echo "none needed" >&6; } ;;
3528
 
  xno)
3529
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530
 
$as_echo "unsupported" >&6; } ;;
3531
 
  *)
3532
 
    CC="$CC $ac_cv_prog_cc_c89"
3533
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535
 
esac
3536
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
3537
 
 
3538
 
fi
3539
 
 
3540
 
ac_ext=c
3541
 
ac_cpp='$CPP $CPPFLAGS'
3542
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
 
DEPDIR="${am__leading_dot}deps"
3546
 
 
3547
 
ac_config_commands="$ac_config_commands depfiles"
3548
 
 
3549
 
 
3550
 
am_make=${MAKE-make}
3551
 
cat > confinc << 'END'
3552
 
am__doit:
3553
 
        @echo this is the am__doit target
3554
 
.PHONY: am__doit
3555
 
END
3556
 
# If we don't find an include directive, just comment out the code.
3557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3559
 
am__include="#"
3560
 
am__quote=
3561
 
_am_result=none
3562
 
# First try GNU make style include.
3563
 
echo "include confinc" > confmf
3564
 
# Ignore all kinds of additional output from `make'.
3565
 
case `$am_make -s -f confmf 2> /dev/null` in #(
3566
 
*the\ am__doit\ target*)
3567
 
  am__include=include
3568
 
  am__quote=
3569
 
  _am_result=GNU
3570
 
  ;;
3571
 
esac
3572
 
# Now try BSD make style include.
3573
 
if test "$am__include" = "#"; then
3574
 
   echo '.include "confinc"' > confmf
3575
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
3576
 
   *the\ am__doit\ target*)
3577
 
     am__include=.include
3578
 
     am__quote="\""
3579
 
     _am_result=BSD
3580
 
     ;;
3581
 
   esac
3582
 
fi
3583
 
 
3584
 
 
3585
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586
 
$as_echo "$_am_result" >&6; }
3587
 
rm -f confinc confmf
3588
 
 
3589
 
# Check whether --enable-dependency-tracking was given.
3590
 
if test "${enable_dependency_tracking+set}" = set; then :
3591
 
  enableval=$enable_dependency_tracking;
3592
 
fi
3593
 
 
3594
 
if test "x$enable_dependency_tracking" != xno; then
3595
 
  am_depcomp="$ac_aux_dir/depcomp"
3596
 
  AMDEPBACKSLASH='\'
3597
 
  am__nodep='_no'
3598
 
fi
3599
 
 if test "x$enable_dependency_tracking" != xno; then
3600
 
  AMDEP_TRUE=
3601
 
  AMDEP_FALSE='#'
3602
 
else
3603
 
  AMDEP_TRUE='#'
3604
 
  AMDEP_FALSE=
3605
 
fi
3606
 
 
3607
 
 
3608
 
 
3609
 
depcc="$CC"   am_compiler_list=
3610
 
 
3611
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3612
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
3613
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3614
 
  $as_echo_n "(cached) " >&6
3615
 
else
3616
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3618
 
  # making bogus files that we don't know about and never remove.  For
3619
 
  # instance it was reported that on HP-UX the gcc test will end up
3620
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3621
 
  # in D'.
3622
 
  rm -rf conftest.dir
3623
 
  mkdir conftest.dir
3624
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3625
 
  # using a relative directory.
3626
 
  cp "$am_depcomp" conftest.dir
3627
 
  cd conftest.dir
3628
 
  # We will build objects and dependencies in a subdirectory because
3629
 
  # it helps to detect inapplicable dependency modes.  For instance
3630
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3631
 
  # side effect of compilation, but ICC will put the dependencies in
3632
 
  # the current directory while Tru64 will put them in the object
3633
 
  # directory.
3634
 
  mkdir sub
3635
 
 
3636
 
  am_cv_CC_dependencies_compiler_type=none
3637
 
  if test "$am_compiler_list" = ""; then
3638
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3639
 
  fi
3640
 
  am__universal=false
3641
 
  case " $depcc " in #(
3642
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3643
 
     esac
3644
 
 
3645
 
  for depmode in $am_compiler_list; do
3646
 
    # Setup a source with many dependencies, because some compilers
3647
 
    # like to wrap large dependency lists on column 80 (with \), and
3648
 
    # we should not choose a depcomp mode which is confused by this.
3649
 
    #
3650
 
    # We need to recreate these files for each test, as the compiler may
3651
 
    # overwrite some of them when testing with obscure command lines.
3652
 
    # This happens at least with the AIX C compiler.
3653
 
    : > sub/conftest.c
3654
 
    for i in 1 2 3 4 5 6; do
3655
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657
 
      # Solaris 8's {/usr,}/bin/sh.
3658
 
      touch sub/conftst$i.h
3659
 
    done
3660
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3661
 
 
3662
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3664
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3665
 
    # versions had trouble with output in subdirs
3666
 
    am__obj=sub/conftest.${OBJEXT-o}
3667
 
    am__minus_obj="-o $am__obj"
3668
 
    case $depmode in
3669
 
    gcc)
3670
 
      # This depmode causes a compiler race in universal mode.
3671
 
      test "$am__universal" = false || continue
3672
 
      ;;
3673
 
    nosideeffect)
3674
 
      # after this tag, mechanisms are not by side-effect, so they'll
3675
 
      # only be used when explicitly requested
3676
 
      if test "x$enable_dependency_tracking" = xyes; then
3677
 
        continue
3678
 
      else
3679
 
        break
3680
 
      fi
3681
 
      ;;
3682
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3683
 
      # This compiler won't grok `-c -o', but also, the minuso test has
3684
 
      # not run yet.  These depmodes are late enough in the game, and
3685
 
      # so weak that their functioning should not be impacted.
3686
 
      am__obj=conftest.${OBJEXT-o}
3687
 
      am__minus_obj=
3688
 
      ;;
3689
 
    none) break ;;
3690
 
    esac
3691
 
    if depmode=$depmode \
3692
 
       source=sub/conftest.c object=$am__obj \
3693
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3694
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3695
 
         >/dev/null 2>conftest.err &&
3696
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3697
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3698
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3699
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3700
 
      # icc doesn't choke on unknown options, it will just issue warnings
3701
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3702
 
      # that says an option was ignored or not supported.
3703
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3704
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3705
 
      # The diagnosis changed in icc 8.0:
3706
 
      #   icc: Command line remark: option '-MP' not supported
3707
 
      if (grep 'ignoring option' conftest.err ||
3708
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3709
 
        am_cv_CC_dependencies_compiler_type=$depmode
3710
 
        break
3711
 
      fi
3712
 
    fi
3713
 
  done
3714
 
 
3715
 
  cd ..
3716
 
  rm -rf conftest.dir
3717
 
else
3718
 
  am_cv_CC_dependencies_compiler_type=none
3719
 
fi
3720
 
 
3721
 
fi
3722
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3723
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3724
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3725
 
 
3726
 
 if
3727
 
  test "x$enable_dependency_tracking" != xno \
3728
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3729
 
  am__fastdepCC_TRUE=
3730
 
  am__fastdepCC_FALSE='#'
3731
 
else
3732
 
  am__fastdepCC_TRUE='#'
3733
 
  am__fastdepCC_FALSE=
3734
 
fi
3735
 
 
3736
 
 
3737
 
ac_ext=cpp
3738
 
ac_cpp='$CXXCPP $CPPFLAGS'
3739
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3742
 
if test -z "$CXX"; then
3743
 
  if test -n "$CCC"; then
3744
 
    CXX=$CCC
3745
 
  else
3746
 
    if test -n "$ac_tool_prefix"; then
3747
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3748
 
  do
3749
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3751
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752
 
$as_echo_n "checking for $ac_word... " >&6; }
3753
 
if ${ac_cv_prog_CXX+:} false; then :
3754
 
  $as_echo_n "(cached) " >&6
3755
 
else
3756
 
  if test -n "$CXX"; then
3757
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3758
 
else
3759
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760
 
for as_dir in $PATH
3761
 
do
3762
 
  IFS=$as_save_IFS
3763
 
  test -z "$as_dir" && as_dir=.
3764
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3765
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3767
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768
 
    break 2
3769
 
  fi
3770
 
done
3771
 
  done
3772
 
IFS=$as_save_IFS
3773
 
 
3774
 
fi
3775
 
fi
3776
 
CXX=$ac_cv_prog_CXX
3777
 
if test -n "$CXX"; then
3778
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3779
 
$as_echo "$CXX" >&6; }
3780
 
else
3781
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782
 
$as_echo "no" >&6; }
3783
 
fi
3784
 
 
3785
 
 
3786
 
    test -n "$CXX" && break
3787
 
  done
3788
 
fi
3789
 
if test -z "$CXX"; then
3790
 
  ac_ct_CXX=$CXX
3791
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3792
 
do
3793
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3794
 
set dummy $ac_prog; ac_word=$2
3795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796
 
$as_echo_n "checking for $ac_word... " >&6; }
3797
 
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3798
 
  $as_echo_n "(cached) " >&6
3799
 
else
3800
 
  if test -n "$ac_ct_CXX"; then
3801
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3802
 
else
3803
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804
 
for as_dir in $PATH
3805
 
do
3806
 
  IFS=$as_save_IFS
3807
 
  test -z "$as_dir" && as_dir=.
3808
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3809
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3811
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812
 
    break 2
3813
 
  fi
3814
 
done
3815
 
  done
3816
 
IFS=$as_save_IFS
3817
 
 
3818
 
fi
3819
 
fi
3820
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821
 
if test -n "$ac_ct_CXX"; then
3822
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3823
 
$as_echo "$ac_ct_CXX" >&6; }
3824
 
else
3825
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826
 
$as_echo "no" >&6; }
3827
 
fi
3828
 
 
3829
 
 
3830
 
  test -n "$ac_ct_CXX" && break
3831
 
done
3832
 
 
3833
 
  if test "x$ac_ct_CXX" = x; then
3834
 
    CXX="g++"
3835
 
  else
3836
 
    case $cross_compiling:$ac_tool_warned in
3837
 
yes:)
3838
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840
 
ac_tool_warned=yes ;;
3841
 
esac
3842
 
    CXX=$ac_ct_CXX
3843
 
  fi
3844
 
fi
3845
 
 
3846
 
  fi
3847
 
fi
3848
 
# Provide some information about the compiler.
3849
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3850
 
set X $ac_compile
3851
 
ac_compiler=$2
3852
 
for ac_option in --version -v -V -qversion; do
3853
 
  { { ac_try="$ac_compiler $ac_option >&5"
3854
 
case "(($ac_try" in
3855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856
 
  *) ac_try_echo=$ac_try;;
3857
 
esac
3858
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859
 
$as_echo "$ac_try_echo"; } >&5
3860
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861
 
  ac_status=$?
3862
 
  if test -s conftest.err; then
3863
 
    sed '10a\
3864
 
... rest of stderr output deleted ...
3865
 
         10q' conftest.err >conftest.er1
3866
 
    cat conftest.er1 >&5
3867
 
  fi
3868
 
  rm -f conftest.er1 conftest.err
3869
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870
 
  test $ac_status = 0; }
3871
 
done
3872
 
 
3873
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3874
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3875
 
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3876
 
  $as_echo_n "(cached) " >&6
3877
 
else
3878
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879
 
/* end confdefs.h.  */
3880
 
 
3881
 
int
3882
 
main ()
3883
 
{
3884
 
#ifndef __GNUC__
3885
 
       choke me
3886
 
#endif
3887
 
 
3888
 
  ;
3889
 
  return 0;
3890
 
}
3891
 
_ACEOF
3892
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3893
 
  ac_compiler_gnu=yes
3894
 
else
3895
 
  ac_compiler_gnu=no
3896
 
fi
3897
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3899
 
 
3900
 
fi
3901
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3902
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3903
 
if test $ac_compiler_gnu = yes; then
3904
 
  GXX=yes
3905
 
else
3906
 
  GXX=
3907
 
fi
3908
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3909
 
ac_save_CXXFLAGS=$CXXFLAGS
3910
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3911
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3912
 
if ${ac_cv_prog_cxx_g+:} false; then :
3913
 
  $as_echo_n "(cached) " >&6
3914
 
else
3915
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3916
 
   ac_cxx_werror_flag=yes
3917
 
   ac_cv_prog_cxx_g=no
3918
 
   CXXFLAGS="-g"
3919
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920
 
/* end confdefs.h.  */
3921
 
 
3922
 
int
3923
 
main ()
3924
 
{
3925
 
 
3926
 
  ;
3927
 
  return 0;
3928
 
}
3929
 
_ACEOF
3930
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3931
 
  ac_cv_prog_cxx_g=yes
3932
 
else
3933
 
  CXXFLAGS=""
3934
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935
 
/* end confdefs.h.  */
3936
 
 
3937
 
int
3938
 
main ()
3939
 
{
3940
 
 
3941
 
  ;
3942
 
  return 0;
3943
 
}
3944
 
_ACEOF
3945
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3946
 
 
3947
 
else
3948
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3949
 
         CXXFLAGS="-g"
3950
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951
 
/* end confdefs.h.  */
3952
 
 
3953
 
int
3954
 
main ()
3955
 
{
3956
 
 
3957
 
  ;
3958
 
  return 0;
3959
 
}
3960
 
_ACEOF
3961
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3962
 
  ac_cv_prog_cxx_g=yes
3963
 
fi
3964
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965
 
fi
3966
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967
 
fi
3968
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3970
 
fi
3971
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3972
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3973
 
if test "$ac_test_CXXFLAGS" = set; then
3974
 
  CXXFLAGS=$ac_save_CXXFLAGS
3975
 
elif test $ac_cv_prog_cxx_g = yes; then
3976
 
  if test "$GXX" = yes; then
3977
 
    CXXFLAGS="-g -O2"
3978
 
  else
3979
 
    CXXFLAGS="-g"
3980
 
  fi
3981
 
else
3982
 
  if test "$GXX" = yes; then
3983
 
    CXXFLAGS="-O2"
3984
 
  else
3985
 
    CXXFLAGS=
3986
 
  fi
3987
 
fi
3988
 
ac_ext=c
3989
 
ac_cpp='$CPP $CPPFLAGS'
3990
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
 
 
3994
 
depcc="$CXX"  am_compiler_list=
3995
 
 
3996
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
3998
 
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3999
 
  $as_echo_n "(cached) " >&6
4000
 
else
4001
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4003
 
  # making bogus files that we don't know about and never remove.  For
4004
 
  # instance it was reported that on HP-UX the gcc test will end up
4005
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4006
 
  # in D'.
4007
 
  rm -rf conftest.dir
4008
 
  mkdir conftest.dir
4009
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4010
 
  # using a relative directory.
4011
 
  cp "$am_depcomp" conftest.dir
4012
 
  cd conftest.dir
4013
 
  # We will build objects and dependencies in a subdirectory because
4014
 
  # it helps to detect inapplicable dependency modes.  For instance
4015
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4016
 
  # side effect of compilation, but ICC will put the dependencies in
4017
 
  # the current directory while Tru64 will put them in the object
4018
 
  # directory.
4019
 
  mkdir sub
4020
 
 
4021
 
  am_cv_CXX_dependencies_compiler_type=none
4022
 
  if test "$am_compiler_list" = ""; then
4023
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4024
 
  fi
4025
 
  am__universal=false
4026
 
  case " $depcc " in #(
4027
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4028
 
     esac
4029
 
 
4030
 
  for depmode in $am_compiler_list; do
4031
 
    # Setup a source with many dependencies, because some compilers
4032
 
    # like to wrap large dependency lists on column 80 (with \), and
4033
 
    # we should not choose a depcomp mode which is confused by this.
4034
 
    #
4035
 
    # We need to recreate these files for each test, as the compiler may
4036
 
    # overwrite some of them when testing with obscure command lines.
4037
 
    # This happens at least with the AIX C compiler.
4038
 
    : > sub/conftest.c
4039
 
    for i in 1 2 3 4 5 6; do
4040
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4042
 
      # Solaris 8's {/usr,}/bin/sh.
4043
 
      touch sub/conftst$i.h
4044
 
    done
4045
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4046
 
 
4047
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4048
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4049
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4050
 
    # versions had trouble with output in subdirs
4051
 
    am__obj=sub/conftest.${OBJEXT-o}
4052
 
    am__minus_obj="-o $am__obj"
4053
 
    case $depmode in
4054
 
    gcc)
4055
 
      # This depmode causes a compiler race in universal mode.
4056
 
      test "$am__universal" = false || continue
4057
 
      ;;
4058
 
    nosideeffect)
4059
 
      # after this tag, mechanisms are not by side-effect, so they'll
4060
 
      # only be used when explicitly requested
4061
 
      if test "x$enable_dependency_tracking" = xyes; then
4062
 
        continue
4063
 
      else
4064
 
        break
4065
 
      fi
4066
 
      ;;
4067
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4068
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4069
 
      # not run yet.  These depmodes are late enough in the game, and
4070
 
      # so weak that their functioning should not be impacted.
4071
 
      am__obj=conftest.${OBJEXT-o}
4072
 
      am__minus_obj=
4073
 
      ;;
4074
 
    none) break ;;
4075
 
    esac
4076
 
    if depmode=$depmode \
4077
 
       source=sub/conftest.c object=$am__obj \
4078
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4080
 
         >/dev/null 2>conftest.err &&
4081
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4084
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085
 
      # icc doesn't choke on unknown options, it will just issue warnings
4086
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4087
 
      # that says an option was ignored or not supported.
4088
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4089
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4090
 
      # The diagnosis changed in icc 8.0:
4091
 
      #   icc: Command line remark: option '-MP' not supported
4092
 
      if (grep 'ignoring option' conftest.err ||
4093
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094
 
        am_cv_CXX_dependencies_compiler_type=$depmode
4095
 
        break
4096
 
      fi
4097
 
    fi
4098
 
  done
4099
 
 
4100
 
  cd ..
4101
 
  rm -rf conftest.dir
4102
 
else
4103
 
  am_cv_CXX_dependencies_compiler_type=none
4104
 
fi
4105
 
 
4106
 
fi
4107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4108
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4109
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4110
 
 
4111
 
 if
4112
 
  test "x$enable_dependency_tracking" != xno \
4113
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4114
 
  am__fastdepCXX_TRUE=
4115
 
  am__fastdepCXX_FALSE='#'
4116
 
else
4117
 
  am__fastdepCXX_TRUE='#'
4118
 
  am__fastdepCXX_FALSE=
4119
 
fi
4120
 
 
4121
 
 
4122
 
ac_ext=cpp
4123
 
ac_cpp='$CXXCPP $CPPFLAGS'
4124
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4127
 
 
4128
 
case `pwd` in
4129
 
  *\ * | *\     *)
4130
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4131
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4132
 
esac
4133
 
 
4134
 
 
4135
 
 
4136
 
macro_version='2.4.2'
4137
 
macro_revision='1.3337'
4138
 
 
4139
 
 
4140
 
 
4141
 
 
4142
 
 
4143
 
 
4144
 
 
4145
 
 
4146
 
 
4147
 
 
4148
 
 
4149
 
 
4150
 
 
4151
 
ltmain="$ac_aux_dir/ltmain.sh"
4152
 
 
4153
 
# Make sure we can run config.sub.
4154
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4155
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4156
 
 
4157
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4158
 
$as_echo_n "checking build system type... " >&6; }
4159
 
if ${ac_cv_build+:} false; then :
4160
 
  $as_echo_n "(cached) " >&6
4161
 
else
4162
 
  ac_build_alias=$build_alias
4163
 
test "x$ac_build_alias" = x &&
4164
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4165
 
test "x$ac_build_alias" = x &&
4166
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4167
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4168
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4169
 
 
4170
 
fi
4171
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4172
 
$as_echo "$ac_cv_build" >&6; }
4173
 
case $ac_cv_build in
4174
 
*-*-*) ;;
4175
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4176
 
esac
4177
 
build=$ac_cv_build
4178
 
ac_save_IFS=$IFS; IFS='-'
4179
 
set x $ac_cv_build
4180
 
shift
4181
 
build_cpu=$1
4182
 
build_vendor=$2
4183
 
shift; shift
4184
 
# Remember, the first character of IFS is used to create $*,
4185
 
# except with old shells:
4186
 
build_os=$*
4187
 
IFS=$ac_save_IFS
4188
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4189
 
 
4190
 
 
4191
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4192
 
$as_echo_n "checking host system type... " >&6; }
4193
 
if ${ac_cv_host+:} false; then :
4194
 
  $as_echo_n "(cached) " >&6
4195
 
else
4196
 
  if test "x$host_alias" = x; then
4197
 
  ac_cv_host=$ac_cv_build
4198
 
else
4199
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4200
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4201
 
fi
4202
 
 
4203
 
fi
4204
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4205
 
$as_echo "$ac_cv_host" >&6; }
4206
 
case $ac_cv_host in
4207
 
*-*-*) ;;
4208
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4209
 
esac
4210
 
host=$ac_cv_host
4211
 
ac_save_IFS=$IFS; IFS='-'
4212
 
set x $ac_cv_host
4213
 
shift
4214
 
host_cpu=$1
4215
 
host_vendor=$2
4216
 
shift; shift
4217
 
# Remember, the first character of IFS is used to create $*,
4218
 
# except with old shells:
4219
 
host_os=$*
4220
 
IFS=$ac_save_IFS
4221
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4222
 
 
4223
 
 
4224
 
# Backslashify metacharacters that are still active within
4225
 
# double-quoted strings.
4226
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4227
 
 
4228
 
# Same as above, but do not quote variable references.
4229
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4230
 
 
4231
 
# Sed substitution to delay expansion of an escaped shell variable in a
4232
 
# double_quote_subst'ed string.
4233
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4234
 
 
4235
 
# Sed substitution to delay expansion of an escaped single quote.
4236
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4237
 
 
4238
 
# Sed substitution to avoid accidental globbing in evaled expressions
4239
 
no_glob_subst='s/\*/\\\*/g'
4240
 
 
4241
 
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4242
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4243
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4244
 
 
4245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4246
 
$as_echo_n "checking how to print strings... " >&6; }
4247
 
# Test print first, because it will be a builtin if present.
4248
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4249
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4250
 
  ECHO='print -r --'
4251
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4252
 
  ECHO='printf %s\n'
4253
 
else
4254
 
  # Use this function as a fallback that always works.
4255
 
  func_fallback_echo ()
4256
 
  {
4257
 
    eval 'cat <<_LTECHO_EOF
4258
 
$1
4259
 
_LTECHO_EOF'
4260
 
  }
4261
 
  ECHO='func_fallback_echo'
4262
 
fi
4263
 
 
4264
 
# func_echo_all arg...
4265
 
# Invoke $ECHO with all args, space-separated.
4266
 
func_echo_all ()
4267
 
{
4268
 
    $ECHO ""
4269
 
}
4270
 
 
4271
 
case "$ECHO" in
4272
 
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4273
 
$as_echo "printf" >&6; } ;;
4274
 
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4275
 
$as_echo "print -r" >&6; } ;;
4276
 
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4277
 
$as_echo "cat" >&6; } ;;
4278
 
esac
4279
 
 
4280
 
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
 
 
4287
 
 
4288
 
 
4289
 
 
4290
 
 
4291
 
 
4292
 
 
4293
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4294
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4295
 
if ${ac_cv_path_SED+:} false; then :
4296
 
  $as_echo_n "(cached) " >&6
4297
 
else
4298
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4299
 
     for ac_i in 1 2 3 4 5 6 7; do
4300
 
       ac_script="$ac_script$as_nl$ac_script"
4301
 
     done
4302
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4303
 
     { ac_script=; unset ac_script;}
4304
 
     if test -z "$SED"; then
4305
 
  ac_path_SED_found=false
4306
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4307
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308
 
for as_dir in $PATH
4309
 
do
4310
 
  IFS=$as_save_IFS
4311
 
  test -z "$as_dir" && as_dir=.
4312
 
    for ac_prog in sed gsed; do
4313
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4314
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4315
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4316
 
# Check for GNU ac_path_SED and select it if it is found.
4317
 
  # Check for GNU $ac_path_SED
4318
 
case `"$ac_path_SED" --version 2>&1` in
4319
 
*GNU*)
4320
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4321
 
*)
4322
 
  ac_count=0
4323
 
  $as_echo_n 0123456789 >"conftest.in"
4324
 
  while :
4325
 
  do
4326
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4327
 
    mv "conftest.tmp" "conftest.in"
4328
 
    cp "conftest.in" "conftest.nl"
4329
 
    $as_echo '' >> "conftest.nl"
4330
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4333
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4334
 
      # Best one so far, save it but keep looking for a better one
4335
 
      ac_cv_path_SED="$ac_path_SED"
4336
 
      ac_path_SED_max=$ac_count
4337
 
    fi
4338
 
    # 10*(2^10) chars as input seems more than enough
4339
 
    test $ac_count -gt 10 && break
4340
 
  done
4341
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342
 
esac
4343
 
 
4344
 
      $ac_path_SED_found && break 3
4345
 
    done
4346
 
  done
4347
 
  done
4348
 
IFS=$as_save_IFS
4349
 
  if test -z "$ac_cv_path_SED"; then
4350
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4351
 
  fi
4352
 
else
4353
 
  ac_cv_path_SED=$SED
4354
 
fi
4355
 
 
4356
 
fi
4357
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4358
 
$as_echo "$ac_cv_path_SED" >&6; }
4359
 
 SED="$ac_cv_path_SED"
4360
 
  rm -f conftest.sed
4361
 
 
4362
 
test -z "$SED" && SED=sed
4363
 
Xsed="$SED -e 1s/^X//"
4364
 
 
4365
 
 
4366
 
 
4367
 
 
4368
 
 
4369
 
 
4370
 
 
4371
 
 
4372
 
 
4373
 
 
4374
 
 
4375
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377
 
if ${ac_cv_path_GREP+:} false; then :
4378
 
  $as_echo_n "(cached) " >&6
4379
 
else
4380
 
  if test -z "$GREP"; then
4381
 
  ac_path_GREP_found=false
4382
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4383
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385
 
do
4386
 
  IFS=$as_save_IFS
4387
 
  test -z "$as_dir" && as_dir=.
4388
 
    for ac_prog in grep ggrep; do
4389
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4390
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4392
 
# Check for GNU ac_path_GREP and select it if it is found.
4393
 
  # Check for GNU $ac_path_GREP
4394
 
case `"$ac_path_GREP" --version 2>&1` in
4395
 
*GNU*)
4396
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397
 
*)
4398
 
  ac_count=0
4399
 
  $as_echo_n 0123456789 >"conftest.in"
4400
 
  while :
4401
 
  do
4402
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4403
 
    mv "conftest.tmp" "conftest.in"
4404
 
    cp "conftest.in" "conftest.nl"
4405
 
    $as_echo 'GREP' >> "conftest.nl"
4406
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4409
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410
 
      # Best one so far, save it but keep looking for a better one
4411
 
      ac_cv_path_GREP="$ac_path_GREP"
4412
 
      ac_path_GREP_max=$ac_count
4413
 
    fi
4414
 
    # 10*(2^10) chars as input seems more than enough
4415
 
    test $ac_count -gt 10 && break
4416
 
  done
4417
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418
 
esac
4419
 
 
4420
 
      $ac_path_GREP_found && break 3
4421
 
    done
4422
 
  done
4423
 
  done
4424
 
IFS=$as_save_IFS
4425
 
  if test -z "$ac_cv_path_GREP"; then
4426
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427
 
  fi
4428
 
else
4429
 
  ac_cv_path_GREP=$GREP
4430
 
fi
4431
 
 
4432
 
fi
4433
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434
 
$as_echo "$ac_cv_path_GREP" >&6; }
4435
 
 GREP="$ac_cv_path_GREP"
4436
 
 
4437
 
 
4438
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439
 
$as_echo_n "checking for egrep... " >&6; }
4440
 
if ${ac_cv_path_EGREP+:} false; then :
4441
 
  $as_echo_n "(cached) " >&6
4442
 
else
4443
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444
 
   then ac_cv_path_EGREP="$GREP -E"
4445
 
   else
4446
 
     if test -z "$EGREP"; then
4447
 
  ac_path_EGREP_found=false
4448
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4449
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451
 
do
4452
 
  IFS=$as_save_IFS
4453
 
  test -z "$as_dir" && as_dir=.
4454
 
    for ac_prog in egrep; do
4455
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4456
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4458
 
# Check for GNU ac_path_EGREP and select it if it is found.
4459
 
  # Check for GNU $ac_path_EGREP
4460
 
case `"$ac_path_EGREP" --version 2>&1` in
4461
 
*GNU*)
4462
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463
 
*)
4464
 
  ac_count=0
4465
 
  $as_echo_n 0123456789 >"conftest.in"
4466
 
  while :
4467
 
  do
4468
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4469
 
    mv "conftest.tmp" "conftest.in"
4470
 
    cp "conftest.in" "conftest.nl"
4471
 
    $as_echo 'EGREP' >> "conftest.nl"
4472
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4475
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476
 
      # Best one so far, save it but keep looking for a better one
4477
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4478
 
      ac_path_EGREP_max=$ac_count
4479
 
    fi
4480
 
    # 10*(2^10) chars as input seems more than enough
4481
 
    test $ac_count -gt 10 && break
4482
 
  done
4483
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484
 
esac
4485
 
 
4486
 
      $ac_path_EGREP_found && break 3
4487
 
    done
4488
 
  done
4489
 
  done
4490
 
IFS=$as_save_IFS
4491
 
  if test -z "$ac_cv_path_EGREP"; then
4492
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493
 
  fi
4494
 
else
4495
 
  ac_cv_path_EGREP=$EGREP
4496
 
fi
4497
 
 
4498
 
   fi
4499
 
fi
4500
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4502
 
 EGREP="$ac_cv_path_EGREP"
4503
 
 
4504
 
 
4505
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4506
 
$as_echo_n "checking for fgrep... " >&6; }
4507
 
if ${ac_cv_path_FGREP+:} false; then :
4508
 
  $as_echo_n "(cached) " >&6
4509
 
else
4510
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4511
 
   then ac_cv_path_FGREP="$GREP -F"
4512
 
   else
4513
 
     if test -z "$FGREP"; then
4514
 
  ac_path_FGREP_found=false
4515
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4516
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518
 
do
4519
 
  IFS=$as_save_IFS
4520
 
  test -z "$as_dir" && as_dir=.
4521
 
    for ac_prog in fgrep; do
4522
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4523
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4524
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4525
 
# Check for GNU ac_path_FGREP and select it if it is found.
4526
 
  # Check for GNU $ac_path_FGREP
4527
 
case `"$ac_path_FGREP" --version 2>&1` in
4528
 
*GNU*)
4529
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4530
 
*)
4531
 
  ac_count=0
4532
 
  $as_echo_n 0123456789 >"conftest.in"
4533
 
  while :
4534
 
  do
4535
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4536
 
    mv "conftest.tmp" "conftest.in"
4537
 
    cp "conftest.in" "conftest.nl"
4538
 
    $as_echo 'FGREP' >> "conftest.nl"
4539
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4542
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4543
 
      # Best one so far, save it but keep looking for a better one
4544
 
      ac_cv_path_FGREP="$ac_path_FGREP"
4545
 
      ac_path_FGREP_max=$ac_count
4546
 
    fi
4547
 
    # 10*(2^10) chars as input seems more than enough
4548
 
    test $ac_count -gt 10 && break
4549
 
  done
4550
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551
 
esac
4552
 
 
4553
 
      $ac_path_FGREP_found && break 3
4554
 
    done
4555
 
  done
4556
 
  done
4557
 
IFS=$as_save_IFS
4558
 
  if test -z "$ac_cv_path_FGREP"; then
4559
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560
 
  fi
4561
 
else
4562
 
  ac_cv_path_FGREP=$FGREP
4563
 
fi
4564
 
 
4565
 
   fi
4566
 
fi
4567
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4568
 
$as_echo "$ac_cv_path_FGREP" >&6; }
4569
 
 FGREP="$ac_cv_path_FGREP"
4570
 
 
4571
 
 
4572
 
test -z "$GREP" && GREP=grep
4573
 
 
4574
 
 
4575
 
 
4576
 
 
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
 
 
4582
 
 
4583
 
 
4584
 
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
# Check whether --with-gnu-ld was given.
4593
 
if test "${with_gnu_ld+set}" = set; then :
4594
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4595
 
else
4596
 
  with_gnu_ld=no
4597
 
fi
4598
 
 
4599
 
ac_prog=ld
4600
 
if test "$GCC" = yes; then
4601
 
  # Check if gcc -print-prog-name=ld gives a path.
4602
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4603
 
$as_echo_n "checking for ld used by $CC... " >&6; }
4604
 
  case $host in
4605
 
  *-*-mingw*)
4606
 
    # gcc leaves a trailing carriage return which upsets mingw
4607
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4608
 
  *)
4609
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4610
 
  esac
4611
 
  case $ac_prog in
4612
 
    # Accept absolute paths.
4613
 
    [\\/]* | ?:[\\/]*)
4614
 
      re_direlt='/[^/][^/]*/\.\./'
4615
 
      # Canonicalize the pathname of ld
4616
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4617
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4618
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4619
 
      done
4620
 
      test -z "$LD" && LD="$ac_prog"
4621
 
      ;;
4622
 
  "")
4623
 
    # If it fails, then pretend we aren't using GCC.
4624
 
    ac_prog=ld
4625
 
    ;;
4626
 
  *)
4627
 
    # If it is relative, then search for the first ld in PATH.
4628
 
    with_gnu_ld=unknown
4629
 
    ;;
4630
 
  esac
4631
 
elif test "$with_gnu_ld" = yes; then
4632
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4633
 
$as_echo_n "checking for GNU ld... " >&6; }
4634
 
else
4635
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4636
 
$as_echo_n "checking for non-GNU ld... " >&6; }
4637
 
fi
4638
 
if ${lt_cv_path_LD+:} false; then :
4639
 
  $as_echo_n "(cached) " >&6
4640
 
else
4641
 
  if test -z "$LD"; then
4642
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4643
 
  for ac_dir in $PATH; do
4644
 
    IFS="$lt_save_ifs"
4645
 
    test -z "$ac_dir" && ac_dir=.
4646
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4647
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4648
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4649
 
      # but apparently some variants of GNU ld only accept -v.
4650
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4651
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4652
 
      *GNU* | *'with BFD'*)
4653
 
        test "$with_gnu_ld" != no && break
4654
 
        ;;
4655
 
      *)
4656
 
        test "$with_gnu_ld" != yes && break
4657
 
        ;;
4658
 
      esac
4659
 
    fi
4660
 
  done
4661
 
  IFS="$lt_save_ifs"
4662
 
else
4663
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4664
 
fi
4665
 
fi
4666
 
 
4667
 
LD="$lt_cv_path_LD"
4668
 
if test -n "$LD"; then
4669
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4670
 
$as_echo "$LD" >&6; }
4671
 
else
4672
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673
 
$as_echo "no" >&6; }
4674
 
fi
4675
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4676
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4677
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4678
 
if ${lt_cv_prog_gnu_ld+:} false; then :
4679
 
  $as_echo_n "(cached) " >&6
4680
 
else
4681
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4682
 
case `$LD -v 2>&1 </dev/null` in
4683
 
*GNU* | *'with BFD'*)
4684
 
  lt_cv_prog_gnu_ld=yes
4685
 
  ;;
4686
 
*)
4687
 
  lt_cv_prog_gnu_ld=no
4688
 
  ;;
4689
 
esac
4690
 
fi
4691
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4692
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4693
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4694
 
 
4695
 
 
4696
 
 
4697
 
 
4698
 
 
4699
 
 
4700
 
 
4701
 
 
4702
 
 
4703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4704
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4705
 
if ${lt_cv_path_NM+:} false; then :
4706
 
  $as_echo_n "(cached) " >&6
4707
 
else
4708
 
  if test -n "$NM"; then
4709
 
  # Let the user override the test.
4710
 
  lt_cv_path_NM="$NM"
4711
 
else
4712
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4713
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4714
 
    lt_nm_to_check="$lt_nm_to_check nm"
4715
 
  fi
4716
 
  for lt_tmp_nm in $lt_nm_to_check; do
4717
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4718
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4719
 
      IFS="$lt_save_ifs"
4720
 
      test -z "$ac_dir" && ac_dir=.
4721
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4722
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4723
 
        # Check to see if the nm accepts a BSD-compat flag.
4724
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4725
 
        #   nm: unknown option "B" ignored
4726
 
        # Tru64's nm complains that /dev/null is an invalid object file
4727
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4728
 
        */dev/null* | *'Invalid file or object type'*)
4729
 
          lt_cv_path_NM="$tmp_nm -B"
4730
 
          break
4731
 
          ;;
4732
 
        *)
4733
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4734
 
          */dev/null*)
4735
 
            lt_cv_path_NM="$tmp_nm -p"
4736
 
            break
4737
 
            ;;
4738
 
          *)
4739
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4740
 
            continue # so that we can try to find one that supports BSD flags
4741
 
            ;;
4742
 
          esac
4743
 
          ;;
4744
 
        esac
4745
 
      fi
4746
 
    done
4747
 
    IFS="$lt_save_ifs"
4748
 
  done
4749
 
  : ${lt_cv_path_NM=no}
4750
 
fi
4751
 
fi
4752
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4753
 
$as_echo "$lt_cv_path_NM" >&6; }
4754
 
if test "$lt_cv_path_NM" != "no"; then
4755
 
  NM="$lt_cv_path_NM"
4756
 
else
4757
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4758
 
  if test -n "$DUMPBIN"; then :
4759
 
    # Let the user override the test.
4760
 
  else
4761
 
    if test -n "$ac_tool_prefix"; then
4762
 
  for ac_prog in dumpbin "link -dump"
4763
 
  do
4764
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4765
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4766
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767
 
$as_echo_n "checking for $ac_word... " >&6; }
4768
 
if ${ac_cv_prog_DUMPBIN+:} false; then :
4769
 
  $as_echo_n "(cached) " >&6
4770
 
else
4771
 
  if test -n "$DUMPBIN"; then
4772
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4773
 
else
4774
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775
 
for as_dir in $PATH
4776
 
do
4777
 
  IFS=$as_save_IFS
4778
 
  test -z "$as_dir" && as_dir=.
4779
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4780
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4782
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783
 
    break 2
4784
 
  fi
4785
 
done
4786
 
  done
4787
 
IFS=$as_save_IFS
4788
 
 
4789
 
fi
4790
 
fi
4791
 
DUMPBIN=$ac_cv_prog_DUMPBIN
4792
 
if test -n "$DUMPBIN"; then
4793
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4794
 
$as_echo "$DUMPBIN" >&6; }
4795
 
else
4796
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797
 
$as_echo "no" >&6; }
4798
 
fi
4799
 
 
4800
 
 
4801
 
    test -n "$DUMPBIN" && break
4802
 
  done
4803
 
fi
4804
 
if test -z "$DUMPBIN"; then
4805
 
  ac_ct_DUMPBIN=$DUMPBIN
4806
 
  for ac_prog in dumpbin "link -dump"
4807
 
do
4808
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4809
 
set dummy $ac_prog; ac_word=$2
4810
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811
 
$as_echo_n "checking for $ac_word... " >&6; }
4812
 
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4813
 
  $as_echo_n "(cached) " >&6
4814
 
else
4815
 
  if test -n "$ac_ct_DUMPBIN"; then
4816
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4817
 
else
4818
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819
 
for as_dir in $PATH
4820
 
do
4821
 
  IFS=$as_save_IFS
4822
 
  test -z "$as_dir" && as_dir=.
4823
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4824
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4826
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827
 
    break 2
4828
 
  fi
4829
 
done
4830
 
  done
4831
 
IFS=$as_save_IFS
4832
 
 
4833
 
fi
4834
 
fi
4835
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4836
 
if test -n "$ac_ct_DUMPBIN"; then
4837
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4838
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
4839
 
else
4840
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841
 
$as_echo "no" >&6; }
4842
 
fi
4843
 
 
4844
 
 
4845
 
  test -n "$ac_ct_DUMPBIN" && break
4846
 
done
4847
 
 
4848
 
  if test "x$ac_ct_DUMPBIN" = x; then
4849
 
    DUMPBIN=":"
4850
 
  else
4851
 
    case $cross_compiling:$ac_tool_warned in
4852
 
yes:)
4853
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855
 
ac_tool_warned=yes ;;
4856
 
esac
4857
 
    DUMPBIN=$ac_ct_DUMPBIN
4858
 
  fi
4859
 
fi
4860
 
 
4861
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4862
 
    *COFF*)
4863
 
      DUMPBIN="$DUMPBIN -symbols"
4864
 
      ;;
4865
 
    *)
4866
 
      DUMPBIN=:
4867
 
      ;;
4868
 
    esac
4869
 
  fi
4870
 
 
4871
 
  if test "$DUMPBIN" != ":"; then
4872
 
    NM="$DUMPBIN"
4873
 
  fi
4874
 
fi
4875
 
test -z "$NM" && NM=nm
4876
 
 
4877
 
 
4878
 
 
4879
 
 
4880
 
 
4881
 
 
4882
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4883
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4884
 
if ${lt_cv_nm_interface+:} false; then :
4885
 
  $as_echo_n "(cached) " >&6
4886
 
else
4887
 
  lt_cv_nm_interface="BSD nm"
4888
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4889
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4890
 
  (eval "$ac_compile" 2>conftest.err)
4891
 
  cat conftest.err >&5
4892
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4893
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4894
 
  cat conftest.err >&5
4895
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4896
 
  cat conftest.out >&5
4897
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4898
 
    lt_cv_nm_interface="MS dumpbin"
4899
 
  fi
4900
 
  rm -f conftest*
4901
 
fi
4902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4903
 
$as_echo "$lt_cv_nm_interface" >&6; }
4904
 
 
4905
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4906
 
$as_echo_n "checking whether ln -s works... " >&6; }
4907
 
LN_S=$as_ln_s
4908
 
if test "$LN_S" = "ln -s"; then
4909
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4910
 
$as_echo "yes" >&6; }
4911
 
else
4912
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4913
 
$as_echo "no, using $LN_S" >&6; }
4914
 
fi
4915
 
 
4916
 
# find the maximum length of command line arguments
4917
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4918
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4919
 
if ${lt_cv_sys_max_cmd_len+:} false; then :
4920
 
  $as_echo_n "(cached) " >&6
4921
 
else
4922
 
    i=0
4923
 
  teststring="ABCD"
4924
 
 
4925
 
  case $build_os in
4926
 
  msdosdjgpp*)
4927
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4928
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4929
 
    # during glob expansion).  Even if it were fixed, the result of this
4930
 
    # check would be larger than it should be.
4931
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4932
 
    ;;
4933
 
 
4934
 
  gnu*)
4935
 
    # Under GNU Hurd, this test is not required because there is
4936
 
    # no limit to the length of command line arguments.
4937
 
    # Libtool will interpret -1 as no limit whatsoever
4938
 
    lt_cv_sys_max_cmd_len=-1;
4939
 
    ;;
4940
 
 
4941
 
  cygwin* | mingw* | cegcc*)
4942
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4943
 
    # about 5 minutes as the teststring grows exponentially.
4944
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
4945
 
    # you end up with a "frozen" computer, even though with patience
4946
 
    # the test eventually succeeds (with a max line length of 256k).
4947
 
    # Instead, let's just punt: use the minimum linelength reported by
4948
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
4949
 
    lt_cv_sys_max_cmd_len=8192;
4950
 
    ;;
4951
 
 
4952
 
  mint*)
4953
 
    # On MiNT this can take a long time and run out of memory.
4954
 
    lt_cv_sys_max_cmd_len=8192;
4955
 
    ;;
4956
 
 
4957
 
  amigaos*)
4958
 
    # On AmigaOS with pdksh, this test takes hours, literally.
4959
 
    # So we just punt and use a minimum line length of 8192.
4960
 
    lt_cv_sys_max_cmd_len=8192;
4961
 
    ;;
4962
 
 
4963
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4964
 
    # This has been around since 386BSD, at least.  Likely further.
4965
 
    if test -x /sbin/sysctl; then
4966
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4967
 
    elif test -x /usr/sbin/sysctl; then
4968
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4969
 
    else
4970
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4971
 
    fi
4972
 
    # And add a safety zone
4973
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4974
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4975
 
    ;;
4976
 
 
4977
 
  interix*)
4978
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4979
 
    lt_cv_sys_max_cmd_len=196608
4980
 
    ;;
4981
 
 
4982
 
  os2*)
4983
 
    # The test takes a long time on OS/2.
4984
 
    lt_cv_sys_max_cmd_len=8192
4985
 
    ;;
4986
 
 
4987
 
  osf*)
4988
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4989
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4990
 
    # nice to cause kernel panics so lets avoid the loop below.
4991
 
    # First set a reasonable default.
4992
 
    lt_cv_sys_max_cmd_len=16384
4993
 
    #
4994
 
    if test -x /sbin/sysconfig; then
4995
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4996
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4997
 
      esac
4998
 
    fi
4999
 
    ;;
5000
 
  sco3.2v5*)
5001
 
    lt_cv_sys_max_cmd_len=102400
5002
 
    ;;
5003
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5004
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5005
 
    if test -n "$kargmax"; then
5006
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5007
 
    else
5008
 
      lt_cv_sys_max_cmd_len=32768
5009
 
    fi
5010
 
    ;;
5011
 
  *)
5012
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5013
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
5014
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5015
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5016
 
    else
5017
 
      # Make teststring a little bigger before we do anything with it.
5018
 
      # a 1K string should be a reasonable start.
5019
 
      for i in 1 2 3 4 5 6 7 8 ; do
5020
 
        teststring=$teststring$teststring
5021
 
      done
5022
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5023
 
      # If test is not a shell built-in, we'll probably end up computing a
5024
 
      # maximum length that is only half of the actual maximum length, but
5025
 
      # we can't tell.
5026
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5027
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5028
 
              test $i != 17 # 1/2 MB should be enough
5029
 
      do
5030
 
        i=`expr $i + 1`
5031
 
        teststring=$teststring$teststring
5032
 
      done
5033
 
      # Only check the string length outside the loop.
5034
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5035
 
      teststring=
5036
 
      # Add a significant safety factor because C++ compilers can tack on
5037
 
      # massive amounts of additional arguments before passing them to the
5038
 
      # linker.  It appears as though 1/2 is a usable value.
5039
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5040
 
    fi
5041
 
    ;;
5042
 
  esac
5043
 
 
5044
 
fi
5045
 
 
5046
 
if test -n $lt_cv_sys_max_cmd_len ; then
5047
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5048
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5049
 
else
5050
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5051
 
$as_echo "none" >&6; }
5052
 
fi
5053
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5054
 
 
5055
 
 
5056
 
 
5057
 
 
5058
 
 
5059
 
 
5060
 
: ${CP="cp -f"}
5061
 
: ${MV="mv -f"}
5062
 
: ${RM="rm -f"}
5063
 
 
5064
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5065
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5066
 
# Try some XSI features
5067
 
xsi_shell=no
5068
 
( _lt_dummy="a/b/c"
5069
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5070
 
      = c,a/b,b/c, \
5071
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
5072
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5073
 
  && xsi_shell=yes
5074
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5075
 
$as_echo "$xsi_shell" >&6; }
5076
 
 
5077
 
 
5078
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5079
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5080
 
lt_shell_append=no
5081
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5082
 
    >/dev/null 2>&1 \
5083
 
  && lt_shell_append=yes
5084
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5085
 
$as_echo "$lt_shell_append" >&6; }
5086
 
 
5087
 
 
5088
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5089
 
  lt_unset=unset
5090
 
else
5091
 
  lt_unset=false
5092
 
fi
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
# test EBCDIC or ASCII
5099
 
case `echo X|tr X '\101'` in
5100
 
 A) # ASCII based system
5101
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5102
 
  lt_SP2NL='tr \040 \012'
5103
 
  lt_NL2SP='tr \015\012 \040\040'
5104
 
  ;;
5105
 
 *) # EBCDIC based system
5106
 
  lt_SP2NL='tr \100 \n'
5107
 
  lt_NL2SP='tr \r\n \100\100'
5108
 
  ;;
5109
 
esac
5110
 
 
5111
 
 
5112
 
 
5113
 
 
5114
 
 
5115
 
 
5116
 
 
5117
 
 
5118
 
 
5119
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5120
 
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5121
 
if ${lt_cv_to_host_file_cmd+:} false; then :
5122
 
  $as_echo_n "(cached) " >&6
5123
 
else
5124
 
  case $host in
5125
 
  *-*-mingw* )
5126
 
    case $build in
5127
 
      *-*-mingw* ) # actually msys
5128
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5129
 
        ;;
5130
 
      *-*-cygwin* )
5131
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5132
 
        ;;
5133
 
      * ) # otherwise, assume *nix
5134
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5135
 
        ;;
5136
 
    esac
5137
 
    ;;
5138
 
  *-*-cygwin* )
5139
 
    case $build in
5140
 
      *-*-mingw* ) # actually msys
5141
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5142
 
        ;;
5143
 
      *-*-cygwin* )
5144
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
5145
 
        ;;
5146
 
      * ) # otherwise, assume *nix
5147
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5148
 
        ;;
5149
 
    esac
5150
 
    ;;
5151
 
  * ) # unhandled hosts (and "normal" native builds)
5152
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
5153
 
    ;;
5154
 
esac
5155
 
 
5156
 
fi
5157
 
 
5158
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
5159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5160
 
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5161
 
 
5162
 
 
5163
 
 
5164
 
 
5165
 
 
5166
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5167
 
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5168
 
if ${lt_cv_to_tool_file_cmd+:} false; then :
5169
 
  $as_echo_n "(cached) " >&6
5170
 
else
5171
 
  #assume ordinary cross tools, or native build.
5172
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
5173
 
case $host in
5174
 
  *-*-mingw* )
5175
 
    case $build in
5176
 
      *-*-mingw* ) # actually msys
5177
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5178
 
        ;;
5179
 
    esac
5180
 
    ;;
5181
 
esac
5182
 
 
5183
 
fi
5184
 
 
5185
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5186
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5187
 
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5188
 
 
5189
 
 
5190
 
 
5191
 
 
5192
 
 
5193
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5194
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5195
 
if ${lt_cv_ld_reload_flag+:} false; then :
5196
 
  $as_echo_n "(cached) " >&6
5197
 
else
5198
 
  lt_cv_ld_reload_flag='-r'
5199
 
fi
5200
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5201
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5202
 
reload_flag=$lt_cv_ld_reload_flag
5203
 
case $reload_flag in
5204
 
"" | " "*) ;;
5205
 
*) reload_flag=" $reload_flag" ;;
5206
 
esac
5207
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5208
 
case $host_os in
5209
 
  cygwin* | mingw* | pw32* | cegcc*)
5210
 
    if test "$GCC" != yes; then
5211
 
      reload_cmds=false
5212
 
    fi
5213
 
    ;;
5214
 
  darwin*)
5215
 
    if test "$GCC" = yes; then
5216
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5217
 
    else
5218
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5219
 
    fi
5220
 
    ;;
5221
 
esac
5222
 
 
5223
 
 
5224
 
 
5225
 
 
5226
 
 
5227
 
 
5228
 
 
5229
 
 
5230
 
 
5231
 
if test -n "$ac_tool_prefix"; then
5232
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5233
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5234
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235
 
$as_echo_n "checking for $ac_word... " >&6; }
5236
 
if ${ac_cv_prog_OBJDUMP+:} false; then :
5237
 
  $as_echo_n "(cached) " >&6
5238
 
else
5239
 
  if test -n "$OBJDUMP"; then
5240
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5241
 
else
5242
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243
 
for as_dir in $PATH
5244
 
do
5245
 
  IFS=$as_save_IFS
5246
 
  test -z "$as_dir" && as_dir=.
5247
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5248
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5250
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251
 
    break 2
5252
 
  fi
5253
 
done
5254
 
  done
5255
 
IFS=$as_save_IFS
5256
 
 
5257
 
fi
5258
 
fi
5259
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5260
 
if test -n "$OBJDUMP"; then
5261
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5262
 
$as_echo "$OBJDUMP" >&6; }
5263
 
else
5264
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265
 
$as_echo "no" >&6; }
5266
 
fi
5267
 
 
5268
 
 
5269
 
fi
5270
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5271
 
  ac_ct_OBJDUMP=$OBJDUMP
5272
 
  # Extract the first word of "objdump", so it can be a program name with args.
5273
 
set dummy objdump; ac_word=$2
5274
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275
 
$as_echo_n "checking for $ac_word... " >&6; }
5276
 
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5277
 
  $as_echo_n "(cached) " >&6
5278
 
else
5279
 
  if test -n "$ac_ct_OBJDUMP"; then
5280
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5281
 
else
5282
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283
 
for as_dir in $PATH
5284
 
do
5285
 
  IFS=$as_save_IFS
5286
 
  test -z "$as_dir" && as_dir=.
5287
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5288
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5290
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291
 
    break 2
5292
 
  fi
5293
 
done
5294
 
  done
5295
 
IFS=$as_save_IFS
5296
 
 
5297
 
fi
5298
 
fi
5299
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5300
 
if test -n "$ac_ct_OBJDUMP"; then
5301
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5302
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
5303
 
else
5304
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305
 
$as_echo "no" >&6; }
5306
 
fi
5307
 
 
5308
 
  if test "x$ac_ct_OBJDUMP" = x; then
5309
 
    OBJDUMP="false"
5310
 
  else
5311
 
    case $cross_compiling:$ac_tool_warned in
5312
 
yes:)
5313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315
 
ac_tool_warned=yes ;;
5316
 
esac
5317
 
    OBJDUMP=$ac_ct_OBJDUMP
5318
 
  fi
5319
 
else
5320
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5321
 
fi
5322
 
 
5323
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
 
 
5333
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5334
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5335
 
if ${lt_cv_deplibs_check_method+:} false; then :
5336
 
  $as_echo_n "(cached) " >&6
5337
 
else
5338
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5339
 
lt_cv_file_magic_test_file=
5340
 
lt_cv_deplibs_check_method='unknown'
5341
 
# Need to set the preceding variable on all platforms that support
5342
 
# interlibrary dependencies.
5343
 
# 'none' -- dependencies not supported.
5344
 
# `unknown' -- same as none, but documents that we really don't know.
5345
 
# 'pass_all' -- all dependencies passed with no checks.
5346
 
# 'test_compile' -- check by making test program.
5347
 
# 'file_magic [[regex]]' -- check by looking for files in library path
5348
 
# which responds to the $file_magic_cmd with a given extended regex.
5349
 
# If you have `file' or equivalent on your system and you're not sure
5350
 
# whether `pass_all' will *always* work, you probably want this one.
5351
 
 
5352
 
case $host_os in
5353
 
aix[4-9]*)
5354
 
  lt_cv_deplibs_check_method=pass_all
5355
 
  ;;
5356
 
 
5357
 
beos*)
5358
 
  lt_cv_deplibs_check_method=pass_all
5359
 
  ;;
5360
 
 
5361
 
bsdi[45]*)
5362
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5363
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5364
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5365
 
  ;;
5366
 
 
5367
 
cygwin*)
5368
 
  # func_win32_libid is a shell function defined in ltmain.sh
5369
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5370
 
  lt_cv_file_magic_cmd='func_win32_libid'
5371
 
  ;;
5372
 
 
5373
 
mingw* | pw32*)
5374
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
5375
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5376
 
  # unless we find 'file', for example because we are cross-compiling.
5377
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5378
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5379
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380
 
    lt_cv_file_magic_cmd='func_win32_libid'
5381
 
  else
5382
 
    # Keep this pattern in sync with the one in func_win32_libid.
5383
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5384
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5385
 
  fi
5386
 
  ;;
5387
 
 
5388
 
cegcc*)
5389
 
  # use the weaker test based on 'objdump'. See mingw*.
5390
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5391
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5392
 
  ;;
5393
 
 
5394
 
darwin* | rhapsody*)
5395
 
  lt_cv_deplibs_check_method=pass_all
5396
 
  ;;
5397
 
 
5398
 
freebsd* | dragonfly*)
5399
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5400
 
    case $host_cpu in
5401
 
    i*86 )
5402
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5403
 
      # Let's accept both of them until this is cleared up.
5404
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5405
 
      lt_cv_file_magic_cmd=/usr/bin/file
5406
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5407
 
      ;;
5408
 
    esac
5409
 
  else
5410
 
    lt_cv_deplibs_check_method=pass_all
5411
 
  fi
5412
 
  ;;
5413
 
 
5414
 
gnu*)
5415
 
  lt_cv_deplibs_check_method=pass_all
5416
 
  ;;
5417
 
 
5418
 
haiku*)
5419
 
  lt_cv_deplibs_check_method=pass_all
5420
 
  ;;
5421
 
 
5422
 
hpux10.20* | hpux11*)
5423
 
  lt_cv_file_magic_cmd=/usr/bin/file
5424
 
  case $host_cpu in
5425
 
  ia64*)
5426
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5427
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5428
 
    ;;
5429
 
  hppa*64*)
5430
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5431
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5432
 
    ;;
5433
 
  *)
5434
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5435
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5436
 
    ;;
5437
 
  esac
5438
 
  ;;
5439
 
 
5440
 
interix[3-9]*)
5441
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5442
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5443
 
  ;;
5444
 
 
5445
 
irix5* | irix6* | nonstopux*)
5446
 
  case $LD in
5447
 
  *-32|*"-32 ") libmagic=32-bit;;
5448
 
  *-n32|*"-n32 ") libmagic=N32;;
5449
 
  *-64|*"-64 ") libmagic=64-bit;;
5450
 
  *) libmagic=never-match;;
5451
 
  esac
5452
 
  lt_cv_deplibs_check_method=pass_all
5453
 
  ;;
5454
 
 
5455
 
# This must be glibc/ELF.
5456
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5457
 
  lt_cv_deplibs_check_method=pass_all
5458
 
  ;;
5459
 
 
5460
 
netbsd* | netbsdelf*-gnu)
5461
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5462
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5463
 
  else
5464
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5465
 
  fi
5466
 
  ;;
5467
 
 
5468
 
newos6*)
5469
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5470
 
  lt_cv_file_magic_cmd=/usr/bin/file
5471
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5472
 
  ;;
5473
 
 
5474
 
*nto* | *qnx*)
5475
 
  lt_cv_deplibs_check_method=pass_all
5476
 
  ;;
5477
 
 
5478
 
openbsd*)
5479
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5480
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5481
 
  else
5482
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5483
 
  fi
5484
 
  ;;
5485
 
 
5486
 
osf3* | osf4* | osf5*)
5487
 
  lt_cv_deplibs_check_method=pass_all
5488
 
  ;;
5489
 
 
5490
 
rdos*)
5491
 
  lt_cv_deplibs_check_method=pass_all
5492
 
  ;;
5493
 
 
5494
 
solaris*)
5495
 
  lt_cv_deplibs_check_method=pass_all
5496
 
  ;;
5497
 
 
5498
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5499
 
  lt_cv_deplibs_check_method=pass_all
5500
 
  ;;
5501
 
 
5502
 
sysv4 | sysv4.3*)
5503
 
  case $host_vendor in
5504
 
  motorola)
5505
 
    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]'
5506
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5507
 
    ;;
5508
 
  ncr)
5509
 
    lt_cv_deplibs_check_method=pass_all
5510
 
    ;;
5511
 
  sequent)
5512
 
    lt_cv_file_magic_cmd='/bin/file'
5513
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5514
 
    ;;
5515
 
  sni)
5516
 
    lt_cv_file_magic_cmd='/bin/file'
5517
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5518
 
    lt_cv_file_magic_test_file=/lib/libc.so
5519
 
    ;;
5520
 
  siemens)
5521
 
    lt_cv_deplibs_check_method=pass_all
5522
 
    ;;
5523
 
  pc)
5524
 
    lt_cv_deplibs_check_method=pass_all
5525
 
    ;;
5526
 
  esac
5527
 
  ;;
5528
 
 
5529
 
tpf*)
5530
 
  lt_cv_deplibs_check_method=pass_all
5531
 
  ;;
5532
 
esac
5533
 
 
5534
 
fi
5535
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5536
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5537
 
 
5538
 
file_magic_glob=
5539
 
want_nocaseglob=no
5540
 
if test "$build" = "$host"; then
5541
 
  case $host_os in
5542
 
  mingw* | pw32*)
5543
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5544
 
      want_nocaseglob=yes
5545
 
    else
5546
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5547
 
    fi
5548
 
    ;;
5549
 
  esac
5550
 
fi
5551
 
 
5552
 
file_magic_cmd=$lt_cv_file_magic_cmd
5553
 
deplibs_check_method=$lt_cv_deplibs_check_method
5554
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
 
 
5565
 
 
5566
 
 
5567
 
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
if test -n "$ac_tool_prefix"; then
5578
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5579
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5580
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581
 
$as_echo_n "checking for $ac_word... " >&6; }
5582
 
if ${ac_cv_prog_DLLTOOL+:} false; then :
5583
 
  $as_echo_n "(cached) " >&6
5584
 
else
5585
 
  if test -n "$DLLTOOL"; then
5586
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5587
 
else
5588
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589
 
for as_dir in $PATH
5590
 
do
5591
 
  IFS=$as_save_IFS
5592
 
  test -z "$as_dir" && as_dir=.
5593
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5594
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5596
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597
 
    break 2
5598
 
  fi
5599
 
done
5600
 
  done
5601
 
IFS=$as_save_IFS
5602
 
 
5603
 
fi
5604
 
fi
5605
 
DLLTOOL=$ac_cv_prog_DLLTOOL
5606
 
if test -n "$DLLTOOL"; then
5607
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5608
 
$as_echo "$DLLTOOL" >&6; }
5609
 
else
5610
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611
 
$as_echo "no" >&6; }
5612
 
fi
5613
 
 
5614
 
 
5615
 
fi
5616
 
if test -z "$ac_cv_prog_DLLTOOL"; then
5617
 
  ac_ct_DLLTOOL=$DLLTOOL
5618
 
  # Extract the first word of "dlltool", so it can be a program name with args.
5619
 
set dummy dlltool; ac_word=$2
5620
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621
 
$as_echo_n "checking for $ac_word... " >&6; }
5622
 
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5623
 
  $as_echo_n "(cached) " >&6
5624
 
else
5625
 
  if test -n "$ac_ct_DLLTOOL"; then
5626
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5627
 
else
5628
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629
 
for as_dir in $PATH
5630
 
do
5631
 
  IFS=$as_save_IFS
5632
 
  test -z "$as_dir" && as_dir=.
5633
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5634
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5636
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637
 
    break 2
5638
 
  fi
5639
 
done
5640
 
  done
5641
 
IFS=$as_save_IFS
5642
 
 
5643
 
fi
5644
 
fi
5645
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5646
 
if test -n "$ac_ct_DLLTOOL"; then
5647
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5648
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
5649
 
else
5650
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651
 
$as_echo "no" >&6; }
5652
 
fi
5653
 
 
5654
 
  if test "x$ac_ct_DLLTOOL" = x; then
5655
 
    DLLTOOL="false"
5656
 
  else
5657
 
    case $cross_compiling:$ac_tool_warned in
5658
 
yes:)
5659
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661
 
ac_tool_warned=yes ;;
5662
 
esac
5663
 
    DLLTOOL=$ac_ct_DLLTOOL
5664
 
  fi
5665
 
else
5666
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5667
 
fi
5668
 
 
5669
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
 
 
5675
 
 
5676
 
 
5677
 
 
5678
 
 
5679
 
 
5680
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5681
 
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5682
 
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5683
 
  $as_echo_n "(cached) " >&6
5684
 
else
5685
 
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5686
 
 
5687
 
case $host_os in
5688
 
cygwin* | mingw* | pw32* | cegcc*)
5689
 
  # two different shell functions defined in ltmain.sh
5690
 
  # decide which to use based on capabilities of $DLLTOOL
5691
 
  case `$DLLTOOL --help 2>&1` in
5692
 
  *--identify-strict*)
5693
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5694
 
    ;;
5695
 
  *)
5696
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5697
 
    ;;
5698
 
  esac
5699
 
  ;;
5700
 
*)
5701
 
  # fallback: assume linklib IS sharedlib
5702
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5703
 
  ;;
5704
 
esac
5705
 
 
5706
 
fi
5707
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5708
 
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5709
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5710
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5711
 
 
5712
 
 
5713
 
 
5714
 
 
5715
 
 
5716
 
 
5717
 
 
5718
 
 
5719
 
if test -n "$ac_tool_prefix"; then
5720
 
  for ac_prog in ar
5721
 
  do
5722
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5723
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5724
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725
 
$as_echo_n "checking for $ac_word... " >&6; }
5726
 
if ${ac_cv_prog_AR+:} false; then :
5727
 
  $as_echo_n "(cached) " >&6
5728
 
else
5729
 
  if test -n "$AR"; then
5730
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5731
 
else
5732
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733
 
for as_dir in $PATH
5734
 
do
5735
 
  IFS=$as_save_IFS
5736
 
  test -z "$as_dir" && as_dir=.
5737
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5738
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739
 
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5740
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741
 
    break 2
5742
 
  fi
5743
 
done
5744
 
  done
5745
 
IFS=$as_save_IFS
5746
 
 
5747
 
fi
5748
 
fi
5749
 
AR=$ac_cv_prog_AR
5750
 
if test -n "$AR"; then
5751
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5752
 
$as_echo "$AR" >&6; }
5753
 
else
5754
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755
 
$as_echo "no" >&6; }
5756
 
fi
5757
 
 
5758
 
 
5759
 
    test -n "$AR" && break
5760
 
  done
5761
 
fi
5762
 
if test -z "$AR"; then
5763
 
  ac_ct_AR=$AR
5764
 
  for ac_prog in ar
5765
 
do
5766
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5767
 
set dummy $ac_prog; ac_word=$2
5768
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769
 
$as_echo_n "checking for $ac_word... " >&6; }
5770
 
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5771
 
  $as_echo_n "(cached) " >&6
5772
 
else
5773
 
  if test -n "$ac_ct_AR"; then
5774
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775
 
else
5776
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777
 
for as_dir in $PATH
5778
 
do
5779
 
  IFS=$as_save_IFS
5780
 
  test -z "$as_dir" && as_dir=.
5781
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5782
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783
 
    ac_cv_prog_ac_ct_AR="$ac_prog"
5784
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785
 
    break 2
5786
 
  fi
5787
 
done
5788
 
  done
5789
 
IFS=$as_save_IFS
5790
 
 
5791
 
fi
5792
 
fi
5793
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794
 
if test -n "$ac_ct_AR"; then
5795
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5796
 
$as_echo "$ac_ct_AR" >&6; }
5797
 
else
5798
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799
 
$as_echo "no" >&6; }
5800
 
fi
5801
 
 
5802
 
 
5803
 
  test -n "$ac_ct_AR" && break
5804
 
done
5805
 
 
5806
 
  if test "x$ac_ct_AR" = x; then
5807
 
    AR="false"
5808
 
  else
5809
 
    case $cross_compiling:$ac_tool_warned in
5810
 
yes:)
5811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813
 
ac_tool_warned=yes ;;
5814
 
esac
5815
 
    AR=$ac_ct_AR
5816
 
  fi
5817
 
fi
5818
 
 
5819
 
: ${AR=ar}
5820
 
: ${AR_FLAGS=cru}
5821
 
 
5822
 
 
5823
 
 
5824
 
 
5825
 
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5833
 
$as_echo_n "checking for archiver @FILE support... " >&6; }
5834
 
if ${lt_cv_ar_at_file+:} false; then :
5835
 
  $as_echo_n "(cached) " >&6
5836
 
else
5837
 
  lt_cv_ar_at_file=no
5838
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839
 
/* end confdefs.h.  */
5840
 
 
5841
 
int
5842
 
main ()
5843
 
{
5844
 
 
5845
 
  ;
5846
 
  return 0;
5847
 
}
5848
 
_ACEOF
5849
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5850
 
  echo conftest.$ac_objext > conftest.lst
5851
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5852
 
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5853
 
  (eval $lt_ar_try) 2>&5
5854
 
  ac_status=$?
5855
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856
 
  test $ac_status = 0; }
5857
 
      if test "$ac_status" -eq 0; then
5858
 
        # Ensure the archiver fails upon bogus file names.
5859
 
        rm -f conftest.$ac_objext libconftest.a
5860
 
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5861
 
  (eval $lt_ar_try) 2>&5
5862
 
  ac_status=$?
5863
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864
 
  test $ac_status = 0; }
5865
 
        if test "$ac_status" -ne 0; then
5866
 
          lt_cv_ar_at_file=@
5867
 
        fi
5868
 
      fi
5869
 
      rm -f conftest.* libconftest.a
5870
 
 
5871
 
fi
5872
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
 
 
5874
 
fi
5875
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5876
 
$as_echo "$lt_cv_ar_at_file" >&6; }
5877
 
 
5878
 
if test "x$lt_cv_ar_at_file" = xno; then
5879
 
  archiver_list_spec=
5880
 
else
5881
 
  archiver_list_spec=$lt_cv_ar_at_file
5882
 
fi
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
if test -n "$ac_tool_prefix"; then
5891
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5893
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894
 
$as_echo_n "checking for $ac_word... " >&6; }
5895
 
if ${ac_cv_prog_STRIP+:} false; then :
5896
 
  $as_echo_n "(cached) " >&6
5897
 
else
5898
 
  if test -n "$STRIP"; then
5899
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900
 
else
5901
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902
 
for as_dir in $PATH
5903
 
do
5904
 
  IFS=$as_save_IFS
5905
 
  test -z "$as_dir" && as_dir=.
5906
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5907
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910
 
    break 2
5911
 
  fi
5912
 
done
5913
 
  done
5914
 
IFS=$as_save_IFS
5915
 
 
5916
 
fi
5917
 
fi
5918
 
STRIP=$ac_cv_prog_STRIP
5919
 
if test -n "$STRIP"; then
5920
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5921
 
$as_echo "$STRIP" >&6; }
5922
 
else
5923
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924
 
$as_echo "no" >&6; }
5925
 
fi
5926
 
 
5927
 
 
5928
 
fi
5929
 
if test -z "$ac_cv_prog_STRIP"; then
5930
 
  ac_ct_STRIP=$STRIP
5931
 
  # Extract the first word of "strip", so it can be a program name with args.
5932
 
set dummy strip; ac_word=$2
5933
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934
 
$as_echo_n "checking for $ac_word... " >&6; }
5935
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5936
 
  $as_echo_n "(cached) " >&6
5937
 
else
5938
 
  if test -n "$ac_ct_STRIP"; then
5939
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5940
 
else
5941
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942
 
for as_dir in $PATH
5943
 
do
5944
 
  IFS=$as_save_IFS
5945
 
  test -z "$as_dir" && as_dir=.
5946
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5947
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948
 
    ac_cv_prog_ac_ct_STRIP="strip"
5949
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950
 
    break 2
5951
 
  fi
5952
 
done
5953
 
  done
5954
 
IFS=$as_save_IFS
5955
 
 
5956
 
fi
5957
 
fi
5958
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5959
 
if test -n "$ac_ct_STRIP"; then
5960
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5961
 
$as_echo "$ac_ct_STRIP" >&6; }
5962
 
else
5963
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964
 
$as_echo "no" >&6; }
5965
 
fi
5966
 
 
5967
 
  if test "x$ac_ct_STRIP" = x; then
5968
 
    STRIP=":"
5969
 
  else
5970
 
    case $cross_compiling:$ac_tool_warned in
5971
 
yes:)
5972
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974
 
ac_tool_warned=yes ;;
5975
 
esac
5976
 
    STRIP=$ac_ct_STRIP
5977
 
  fi
5978
 
else
5979
 
  STRIP="$ac_cv_prog_STRIP"
5980
 
fi
5981
 
 
5982
 
test -z "$STRIP" && STRIP=:
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
if test -n "$ac_tool_prefix"; then
5990
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5991
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5992
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993
 
$as_echo_n "checking for $ac_word... " >&6; }
5994
 
if ${ac_cv_prog_RANLIB+:} false; then :
5995
 
  $as_echo_n "(cached) " >&6
5996
 
else
5997
 
  if test -n "$RANLIB"; then
5998
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5999
 
else
6000
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001
 
for as_dir in $PATH
6002
 
do
6003
 
  IFS=$as_save_IFS
6004
 
  test -z "$as_dir" && as_dir=.
6005
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6006
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6008
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009
 
    break 2
6010
 
  fi
6011
 
done
6012
 
  done
6013
 
IFS=$as_save_IFS
6014
 
 
6015
 
fi
6016
 
fi
6017
 
RANLIB=$ac_cv_prog_RANLIB
6018
 
if test -n "$RANLIB"; then
6019
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6020
 
$as_echo "$RANLIB" >&6; }
6021
 
else
6022
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023
 
$as_echo "no" >&6; }
6024
 
fi
6025
 
 
6026
 
 
6027
 
fi
6028
 
if test -z "$ac_cv_prog_RANLIB"; then
6029
 
  ac_ct_RANLIB=$RANLIB
6030
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6031
 
set dummy ranlib; ac_word=$2
6032
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033
 
$as_echo_n "checking for $ac_word... " >&6; }
6034
 
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6035
 
  $as_echo_n "(cached) " >&6
6036
 
else
6037
 
  if test -n "$ac_ct_RANLIB"; then
6038
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6039
 
else
6040
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041
 
for as_dir in $PATH
6042
 
do
6043
 
  IFS=$as_save_IFS
6044
 
  test -z "$as_dir" && as_dir=.
6045
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6046
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6048
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049
 
    break 2
6050
 
  fi
6051
 
done
6052
 
  done
6053
 
IFS=$as_save_IFS
6054
 
 
6055
 
fi
6056
 
fi
6057
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6058
 
if test -n "$ac_ct_RANLIB"; then
6059
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6060
 
$as_echo "$ac_ct_RANLIB" >&6; }
6061
 
else
6062
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063
 
$as_echo "no" >&6; }
6064
 
fi
6065
 
 
6066
 
  if test "x$ac_ct_RANLIB" = x; then
6067
 
    RANLIB=":"
6068
 
  else
6069
 
    case $cross_compiling:$ac_tool_warned in
6070
 
yes:)
6071
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073
 
ac_tool_warned=yes ;;
6074
 
esac
6075
 
    RANLIB=$ac_ct_RANLIB
6076
 
  fi
6077
 
else
6078
 
  RANLIB="$ac_cv_prog_RANLIB"
6079
 
fi
6080
 
 
6081
 
test -z "$RANLIB" && RANLIB=:
6082
 
 
6083
 
 
6084
 
 
6085
 
 
6086
 
 
6087
 
 
6088
 
# Determine commands to create old-style static archives.
6089
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6090
 
old_postinstall_cmds='chmod 644 $oldlib'
6091
 
old_postuninstall_cmds=
6092
 
 
6093
 
if test -n "$RANLIB"; then
6094
 
  case $host_os in
6095
 
  openbsd*)
6096
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6097
 
    ;;
6098
 
  *)
6099
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6100
 
    ;;
6101
 
  esac
6102
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6103
 
fi
6104
 
 
6105
 
case $host_os in
6106
 
  darwin*)
6107
 
    lock_old_archive_extraction=yes ;;
6108
 
  *)
6109
 
    lock_old_archive_extraction=no ;;
6110
 
esac
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
 
 
6140
 
 
6141
 
 
6142
 
 
6143
 
 
6144
 
 
6145
 
 
6146
 
 
6147
 
 
6148
 
 
6149
 
 
6150
 
# If no C compiler was specified, use CC.
6151
 
LTCC=${LTCC-"$CC"}
6152
 
 
6153
 
# If no C compiler flags were specified, use CFLAGS.
6154
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6155
 
 
6156
 
# Allow CC to be a program name with arguments.
6157
 
compiler=$CC
6158
 
 
6159
 
 
6160
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6161
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6162
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6163
 
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6164
 
  $as_echo_n "(cached) " >&6
6165
 
else
6166
 
 
6167
 
# These are sane defaults that work on at least a few old systems.
6168
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6169
 
 
6170
 
# Character class describing NM global symbol codes.
6171
 
symcode='[BCDEGRST]'
6172
 
 
6173
 
# Regexp to match symbols that can be accessed directly from C.
6174
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6175
 
 
6176
 
# Define system-specific variables.
6177
 
case $host_os in
6178
 
aix*)
6179
 
  symcode='[BCDT]'
6180
 
  ;;
6181
 
cygwin* | mingw* | pw32* | cegcc*)
6182
 
  symcode='[ABCDGISTW]'
6183
 
  ;;
6184
 
hpux*)
6185
 
  if test "$host_cpu" = ia64; then
6186
 
    symcode='[ABCDEGRST]'
6187
 
  fi
6188
 
  ;;
6189
 
irix* | nonstopux*)
6190
 
  symcode='[BCDEGRST]'
6191
 
  ;;
6192
 
osf*)
6193
 
  symcode='[BCDEGQRST]'
6194
 
  ;;
6195
 
solaris*)
6196
 
  symcode='[BDRT]'
6197
 
  ;;
6198
 
sco3.2v5*)
6199
 
  symcode='[DT]'
6200
 
  ;;
6201
 
sysv4.2uw2*)
6202
 
  symcode='[DT]'
6203
 
  ;;
6204
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6205
 
  symcode='[ABDT]'
6206
 
  ;;
6207
 
sysv4)
6208
 
  symcode='[DFNSTU]'
6209
 
  ;;
6210
 
esac
6211
 
 
6212
 
# If we're using GNU nm, then use its standard symbol codes.
6213
 
case `$NM -V 2>&1` in
6214
 
*GNU* | *'with BFD'*)
6215
 
  symcode='[ABCDGIRSTW]' ;;
6216
 
esac
6217
 
 
6218
 
# Transform an extracted symbol line into a proper C declaration.
6219
 
# Some systems (esp. on ia64) link data and code symbols differently,
6220
 
# so use this general approach.
6221
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6222
 
 
6223
 
# Transform an extracted symbol line into symbol name and symbol address
6224
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6225
 
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'"
6226
 
 
6227
 
# Handle CRLF in mingw tool chain
6228
 
opt_cr=
6229
 
case $build_os in
6230
 
mingw*)
6231
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6232
 
  ;;
6233
 
esac
6234
 
 
6235
 
# Try without a prefix underscore, then with it.
6236
 
for ac_symprfx in "" "_"; do
6237
 
 
6238
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6239
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6240
 
 
6241
 
  # Write the raw and C identifiers.
6242
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6243
 
    # Fake it for dumpbin and say T for any non-static function
6244
 
    # and D for any global variable.
6245
 
    # Also find C++ and __fastcall symbols from MSVC++,
6246
 
    # which start with @ or ?.
6247
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6248
 
"     {last_section=section; section=\$ 3};"\
6249
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6250
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251
 
"     \$ 0!~/External *\|/{next};"\
6252
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6253
 
"     {if(hide[section]) next};"\
6254
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6255
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6256
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6257
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6258
 
"     ' prfx=^$ac_symprfx"
6259
 
  else
6260
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6261
 
  fi
6262
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6263
 
 
6264
 
  # Check to see that the pipe works correctly.
6265
 
  pipe_works=no
6266
 
 
6267
 
  rm -f conftest*
6268
 
  cat > conftest.$ac_ext <<_LT_EOF
6269
 
#ifdef __cplusplus
6270
 
extern "C" {
6271
 
#endif
6272
 
char nm_test_var;
6273
 
void nm_test_func(void);
6274
 
void nm_test_func(void){}
6275
 
#ifdef __cplusplus
6276
 
}
6277
 
#endif
6278
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6279
 
_LT_EOF
6280
 
 
6281
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282
 
  (eval $ac_compile) 2>&5
6283
 
  ac_status=$?
6284
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285
 
  test $ac_status = 0; }; then
6286
 
    # Now try to grab the symbols.
6287
 
    nlist=conftest.nm
6288
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6289
 
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6290
 
  ac_status=$?
6291
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292
 
  test $ac_status = 0; } && test -s "$nlist"; then
6293
 
      # Try sorting and uniquifying the output.
6294
 
      if sort "$nlist" | uniq > "$nlist"T; then
6295
 
        mv -f "$nlist"T "$nlist"
6296
 
      else
6297
 
        rm -f "$nlist"T
6298
 
      fi
6299
 
 
6300
 
      # Make sure that we snagged all the symbols we need.
6301
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6302
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6303
 
          cat <<_LT_EOF > conftest.$ac_ext
6304
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6305
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6306
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6307
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6308
 
# define LT_DLSYM_CONST
6309
 
#elif defined(__osf__)
6310
 
/* This system does not cope well with relocations in const data.  */
6311
 
# define LT_DLSYM_CONST
6312
 
#else
6313
 
# define LT_DLSYM_CONST const
6314
 
#endif
6315
 
 
6316
 
#ifdef __cplusplus
6317
 
extern "C" {
6318
 
#endif
6319
 
 
6320
 
_LT_EOF
6321
 
          # Now generate the symbol file.
6322
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6323
 
 
6324
 
          cat <<_LT_EOF >> conftest.$ac_ext
6325
 
 
6326
 
/* The mapping between symbol names and symbols.  */
6327
 
LT_DLSYM_CONST struct {
6328
 
  const char *name;
6329
 
  void       *address;
6330
 
}
6331
 
lt__PROGRAM__LTX_preloaded_symbols[] =
6332
 
{
6333
 
  { "@PROGRAM@", (void *) 0 },
6334
 
_LT_EOF
6335
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6336
 
          cat <<\_LT_EOF >> conftest.$ac_ext
6337
 
  {0, (void *) 0}
6338
 
};
6339
 
 
6340
 
/* This works around a problem in FreeBSD linker */
6341
 
#ifdef FREEBSD_WORKAROUND
6342
 
static const void *lt_preloaded_setup() {
6343
 
  return lt__PROGRAM__LTX_preloaded_symbols;
6344
 
}
6345
 
#endif
6346
 
 
6347
 
#ifdef __cplusplus
6348
 
}
6349
 
#endif
6350
 
_LT_EOF
6351
 
          # Now try linking the two files.
6352
 
          mv conftest.$ac_objext conftstm.$ac_objext
6353
 
          lt_globsym_save_LIBS=$LIBS
6354
 
          lt_globsym_save_CFLAGS=$CFLAGS
6355
 
          LIBS="conftstm.$ac_objext"
6356
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6358
 
  (eval $ac_link) 2>&5
6359
 
  ac_status=$?
6360
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6362
 
            pipe_works=yes
6363
 
          fi
6364
 
          LIBS=$lt_globsym_save_LIBS
6365
 
          CFLAGS=$lt_globsym_save_CFLAGS
6366
 
        else
6367
 
          echo "cannot find nm_test_func in $nlist" >&5
6368
 
        fi
6369
 
      else
6370
 
        echo "cannot find nm_test_var in $nlist" >&5
6371
 
      fi
6372
 
    else
6373
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6374
 
    fi
6375
 
  else
6376
 
    echo "$progname: failed program was:" >&5
6377
 
    cat conftest.$ac_ext >&5
6378
 
  fi
6379
 
  rm -rf conftest* conftst*
6380
 
 
6381
 
  # Do not use the global_symbol_pipe unless it works.
6382
 
  if test "$pipe_works" = yes; then
6383
 
    break
6384
 
  else
6385
 
    lt_cv_sys_global_symbol_pipe=
6386
 
  fi
6387
 
done
6388
 
 
6389
 
fi
6390
 
 
6391
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392
 
  lt_cv_sys_global_symbol_to_cdecl=
6393
 
fi
6394
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6396
 
$as_echo "failed" >&6; }
6397
 
else
6398
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6399
 
$as_echo "ok" >&6; }
6400
 
fi
6401
 
 
6402
 
# Response file support.
6403
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404
 
  nm_file_list_spec='@'
6405
 
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6406
 
  nm_file_list_spec='@'
6407
 
fi
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
 
6425
 
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6436
 
$as_echo_n "checking for sysroot... " >&6; }
6437
 
 
6438
 
# Check whether --with-sysroot was given.
6439
 
if test "${with_sysroot+set}" = set; then :
6440
 
  withval=$with_sysroot;
6441
 
else
6442
 
  with_sysroot=no
6443
 
fi
6444
 
 
6445
 
 
6446
 
lt_sysroot=
6447
 
case ${with_sysroot} in #(
6448
 
 yes)
6449
 
   if test "$GCC" = yes; then
6450
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6451
 
   fi
6452
 
   ;; #(
6453
 
 /*)
6454
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6455
 
   ;; #(
6456
 
 no|'')
6457
 
   ;; #(
6458
 
 *)
6459
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6460
 
$as_echo "${with_sysroot}" >&6; }
6461
 
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6462
 
   ;;
6463
 
esac
6464
 
 
6465
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6466
 
$as_echo "${lt_sysroot:-no}" >&6; }
6467
 
 
6468
 
 
6469
 
 
6470
 
 
6471
 
 
6472
 
 
6473
 
# Check whether --enable-libtool-lock was given.
6474
 
if test "${enable_libtool_lock+set}" = set; then :
6475
 
  enableval=$enable_libtool_lock;
6476
 
fi
6477
 
 
6478
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6479
 
 
6480
 
# Some flags need to be propagated to the compiler or linker for good
6481
 
# libtool support.
6482
 
case $host in
6483
 
ia64-*-hpux*)
6484
 
  # Find out which ABI we are using.
6485
 
  echo 'int i;' > conftest.$ac_ext
6486
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6487
 
  (eval $ac_compile) 2>&5
6488
 
  ac_status=$?
6489
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490
 
  test $ac_status = 0; }; then
6491
 
    case `/usr/bin/file conftest.$ac_objext` in
6492
 
      *ELF-32*)
6493
 
        HPUX_IA64_MODE="32"
6494
 
        ;;
6495
 
      *ELF-64*)
6496
 
        HPUX_IA64_MODE="64"
6497
 
        ;;
6498
 
    esac
6499
 
  fi
6500
 
  rm -rf conftest*
6501
 
  ;;
6502
 
*-*-irix6*)
6503
 
  # Find out which ABI we are using.
6504
 
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6505
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506
 
  (eval $ac_compile) 2>&5
6507
 
  ac_status=$?
6508
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509
 
  test $ac_status = 0; }; then
6510
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
6511
 
      case `/usr/bin/file conftest.$ac_objext` in
6512
 
        *32-bit*)
6513
 
          LD="${LD-ld} -melf32bsmip"
6514
 
          ;;
6515
 
        *N32*)
6516
 
          LD="${LD-ld} -melf32bmipn32"
6517
 
          ;;
6518
 
        *64-bit*)
6519
 
          LD="${LD-ld} -melf64bmip"
6520
 
        ;;
6521
 
      esac
6522
 
    else
6523
 
      case `/usr/bin/file conftest.$ac_objext` in
6524
 
        *32-bit*)
6525
 
          LD="${LD-ld} -32"
6526
 
          ;;
6527
 
        *N32*)
6528
 
          LD="${LD-ld} -n32"
6529
 
          ;;
6530
 
        *64-bit*)
6531
 
          LD="${LD-ld} -64"
6532
 
          ;;
6533
 
      esac
6534
 
    fi
6535
 
  fi
6536
 
  rm -rf conftest*
6537
 
  ;;
6538
 
 
6539
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6540
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6541
 
  # Find out which ABI we are using.
6542
 
  echo 'int i;' > conftest.$ac_ext
6543
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544
 
  (eval $ac_compile) 2>&5
6545
 
  ac_status=$?
6546
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547
 
  test $ac_status = 0; }; then
6548
 
    case `/usr/bin/file conftest.o` in
6549
 
      *32-bit*)
6550
 
        case $host in
6551
 
          x86_64-*kfreebsd*-gnu)
6552
 
            LD="${LD-ld} -m elf_i386_fbsd"
6553
 
            ;;
6554
 
          x86_64-*linux*)
6555
 
            LD="${LD-ld} -m elf_i386"
6556
 
            ;;
6557
 
          ppc64-*linux*|powerpc64-*linux*)
6558
 
            LD="${LD-ld} -m elf32ppclinux"
6559
 
            ;;
6560
 
          s390x-*linux*)
6561
 
            LD="${LD-ld} -m elf_s390"
6562
 
            ;;
6563
 
          sparc64-*linux*)
6564
 
            LD="${LD-ld} -m elf32_sparc"
6565
 
            ;;
6566
 
        esac
6567
 
        ;;
6568
 
      *64-bit*)
6569
 
        case $host in
6570
 
          x86_64-*kfreebsd*-gnu)
6571
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
6572
 
            ;;
6573
 
          x86_64-*linux*)
6574
 
            LD="${LD-ld} -m elf_x86_64"
6575
 
            ;;
6576
 
          ppc*-*linux*|powerpc*-*linux*)
6577
 
            LD="${LD-ld} -m elf64ppc"
6578
 
            ;;
6579
 
          s390*-*linux*|s390*-*tpf*)
6580
 
            LD="${LD-ld} -m elf64_s390"
6581
 
            ;;
6582
 
          sparc*-*linux*)
6583
 
            LD="${LD-ld} -m elf64_sparc"
6584
 
            ;;
6585
 
        esac
6586
 
        ;;
6587
 
    esac
6588
 
  fi
6589
 
  rm -rf conftest*
6590
 
  ;;
6591
 
 
6592
 
*-*-sco3.2v5*)
6593
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6594
 
  SAVE_CFLAGS="$CFLAGS"
6595
 
  CFLAGS="$CFLAGS -belf"
6596
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6597
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6598
 
if ${lt_cv_cc_needs_belf+:} false; then :
6599
 
  $as_echo_n "(cached) " >&6
6600
 
else
6601
 
  ac_ext=c
6602
 
ac_cpp='$CPP $CPPFLAGS'
6603
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
 
 
6607
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608
 
/* end confdefs.h.  */
6609
 
 
6610
 
int
6611
 
main ()
6612
 
{
6613
 
 
6614
 
  ;
6615
 
  return 0;
6616
 
}
6617
 
_ACEOF
6618
 
if ac_fn_c_try_link "$LINENO"; then :
6619
 
  lt_cv_cc_needs_belf=yes
6620
 
else
6621
 
  lt_cv_cc_needs_belf=no
6622
 
fi
6623
 
rm -f core conftest.err conftest.$ac_objext \
6624
 
    conftest$ac_exeext conftest.$ac_ext
6625
 
     ac_ext=c
6626
 
ac_cpp='$CPP $CPPFLAGS'
6627
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630
 
 
6631
 
fi
6632
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6633
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6634
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6635
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6636
 
    CFLAGS="$SAVE_CFLAGS"
6637
 
  fi
6638
 
  ;;
6639
 
*-*solaris*)
6640
 
  # Find out which ABI we are using.
6641
 
  echo 'int i;' > conftest.$ac_ext
6642
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643
 
  (eval $ac_compile) 2>&5
6644
 
  ac_status=$?
6645
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646
 
  test $ac_status = 0; }; then
6647
 
    case `/usr/bin/file conftest.o` in
6648
 
    *64-bit*)
6649
 
      case $lt_cv_prog_gnu_ld in
6650
 
      yes*)
6651
 
        case $host in
6652
 
        i?86-*-solaris*)
6653
 
          LD="${LD-ld} -m elf_x86_64"
6654
 
          ;;
6655
 
        sparc*-*-solaris*)
6656
 
          LD="${LD-ld} -m elf64_sparc"
6657
 
          ;;
6658
 
        esac
6659
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6660
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6661
 
          LD="${LD-ld}_sol2"
6662
 
        fi
6663
 
        ;;
6664
 
      *)
6665
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6666
 
          LD="${LD-ld} -64"
6667
 
        fi
6668
 
        ;;
6669
 
      esac
6670
 
      ;;
6671
 
    esac
6672
 
  fi
6673
 
  rm -rf conftest*
6674
 
  ;;
6675
 
esac
6676
 
 
6677
 
need_locks="$enable_libtool_lock"
6678
 
 
6679
 
if test -n "$ac_tool_prefix"; then
6680
 
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6681
 
set dummy ${ac_tool_prefix}mt; ac_word=$2
6682
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683
 
$as_echo_n "checking for $ac_word... " >&6; }
6684
 
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6685
 
  $as_echo_n "(cached) " >&6
6686
 
else
6687
 
  if test -n "$MANIFEST_TOOL"; then
6688
 
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6689
 
else
6690
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691
 
for as_dir in $PATH
6692
 
do
6693
 
  IFS=$as_save_IFS
6694
 
  test -z "$as_dir" && as_dir=.
6695
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6696
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697
 
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6698
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699
 
    break 2
6700
 
  fi
6701
 
done
6702
 
  done
6703
 
IFS=$as_save_IFS
6704
 
 
6705
 
fi
6706
 
fi
6707
 
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6708
 
if test -n "$MANIFEST_TOOL"; then
6709
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6710
 
$as_echo "$MANIFEST_TOOL" >&6; }
6711
 
else
6712
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713
 
$as_echo "no" >&6; }
6714
 
fi
6715
 
 
6716
 
 
6717
 
fi
6718
 
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6719
 
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6720
 
  # Extract the first word of "mt", so it can be a program name with args.
6721
 
set dummy mt; ac_word=$2
6722
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723
 
$as_echo_n "checking for $ac_word... " >&6; }
6724
 
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6725
 
  $as_echo_n "(cached) " >&6
6726
 
else
6727
 
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6728
 
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6729
 
else
6730
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731
 
for as_dir in $PATH
6732
 
do
6733
 
  IFS=$as_save_IFS
6734
 
  test -z "$as_dir" && as_dir=.
6735
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6736
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737
 
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6738
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739
 
    break 2
6740
 
  fi
6741
 
done
6742
 
  done
6743
 
IFS=$as_save_IFS
6744
 
 
6745
 
fi
6746
 
fi
6747
 
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6748
 
if test -n "$ac_ct_MANIFEST_TOOL"; then
6749
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6750
 
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6751
 
else
6752
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753
 
$as_echo "no" >&6; }
6754
 
fi
6755
 
 
6756
 
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6757
 
    MANIFEST_TOOL=":"
6758
 
  else
6759
 
    case $cross_compiling:$ac_tool_warned in
6760
 
yes:)
6761
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763
 
ac_tool_warned=yes ;;
6764
 
esac
6765
 
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6766
 
  fi
6767
 
else
6768
 
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6769
 
fi
6770
 
 
6771
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6772
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6773
 
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6774
 
if ${lt_cv_path_mainfest_tool+:} false; then :
6775
 
  $as_echo_n "(cached) " >&6
6776
 
else
6777
 
  lt_cv_path_mainfest_tool=no
6778
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6779
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6780
 
  cat conftest.err >&5
6781
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6782
 
    lt_cv_path_mainfest_tool=yes
6783
 
  fi
6784
 
  rm -f conftest*
6785
 
fi
6786
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6787
 
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6788
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6789
 
  MANIFEST_TOOL=:
6790
 
fi
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
 
6797
 
  case $host_os in
6798
 
    rhapsody* | darwin*)
6799
 
    if test -n "$ac_tool_prefix"; then
6800
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6801
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6802
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803
 
$as_echo_n "checking for $ac_word... " >&6; }
6804
 
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6805
 
  $as_echo_n "(cached) " >&6
6806
 
else
6807
 
  if test -n "$DSYMUTIL"; then
6808
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6809
 
else
6810
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811
 
for as_dir in $PATH
6812
 
do
6813
 
  IFS=$as_save_IFS
6814
 
  test -z "$as_dir" && as_dir=.
6815
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6816
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6818
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819
 
    break 2
6820
 
  fi
6821
 
done
6822
 
  done
6823
 
IFS=$as_save_IFS
6824
 
 
6825
 
fi
6826
 
fi
6827
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6828
 
if test -n "$DSYMUTIL"; then
6829
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6830
 
$as_echo "$DSYMUTIL" >&6; }
6831
 
else
6832
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833
 
$as_echo "no" >&6; }
6834
 
fi
6835
 
 
6836
 
 
6837
 
fi
6838
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
6839
 
  ac_ct_DSYMUTIL=$DSYMUTIL
6840
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
6841
 
set dummy dsymutil; ac_word=$2
6842
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843
 
$as_echo_n "checking for $ac_word... " >&6; }
6844
 
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6845
 
  $as_echo_n "(cached) " >&6
6846
 
else
6847
 
  if test -n "$ac_ct_DSYMUTIL"; then
6848
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6849
 
else
6850
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
 
for as_dir in $PATH
6852
 
do
6853
 
  IFS=$as_save_IFS
6854
 
  test -z "$as_dir" && as_dir=.
6855
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6856
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6858
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859
 
    break 2
6860
 
  fi
6861
 
done
6862
 
  done
6863
 
IFS=$as_save_IFS
6864
 
 
6865
 
fi
6866
 
fi
6867
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6868
 
if test -n "$ac_ct_DSYMUTIL"; then
6869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6870
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6871
 
else
6872
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873
 
$as_echo "no" >&6; }
6874
 
fi
6875
 
 
6876
 
  if test "x$ac_ct_DSYMUTIL" = x; then
6877
 
    DSYMUTIL=":"
6878
 
  else
6879
 
    case $cross_compiling:$ac_tool_warned in
6880
 
yes:)
6881
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883
 
ac_tool_warned=yes ;;
6884
 
esac
6885
 
    DSYMUTIL=$ac_ct_DSYMUTIL
6886
 
  fi
6887
 
else
6888
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6889
 
fi
6890
 
 
6891
 
    if test -n "$ac_tool_prefix"; then
6892
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6893
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895
 
$as_echo_n "checking for $ac_word... " >&6; }
6896
 
if ${ac_cv_prog_NMEDIT+:} false; then :
6897
 
  $as_echo_n "(cached) " >&6
6898
 
else
6899
 
  if test -n "$NMEDIT"; then
6900
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6901
 
else
6902
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903
 
for as_dir in $PATH
6904
 
do
6905
 
  IFS=$as_save_IFS
6906
 
  test -z "$as_dir" && as_dir=.
6907
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6908
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6910
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911
 
    break 2
6912
 
  fi
6913
 
done
6914
 
  done
6915
 
IFS=$as_save_IFS
6916
 
 
6917
 
fi
6918
 
fi
6919
 
NMEDIT=$ac_cv_prog_NMEDIT
6920
 
if test -n "$NMEDIT"; then
6921
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6922
 
$as_echo "$NMEDIT" >&6; }
6923
 
else
6924
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925
 
$as_echo "no" >&6; }
6926
 
fi
6927
 
 
6928
 
 
6929
 
fi
6930
 
if test -z "$ac_cv_prog_NMEDIT"; then
6931
 
  ac_ct_NMEDIT=$NMEDIT
6932
 
  # Extract the first word of "nmedit", so it can be a program name with args.
6933
 
set dummy nmedit; ac_word=$2
6934
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935
 
$as_echo_n "checking for $ac_word... " >&6; }
6936
 
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6937
 
  $as_echo_n "(cached) " >&6
6938
 
else
6939
 
  if test -n "$ac_ct_NMEDIT"; then
6940
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6941
 
else
6942
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
 
for as_dir in $PATH
6944
 
do
6945
 
  IFS=$as_save_IFS
6946
 
  test -z "$as_dir" && as_dir=.
6947
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6948
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6950
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951
 
    break 2
6952
 
  fi
6953
 
done
6954
 
  done
6955
 
IFS=$as_save_IFS
6956
 
 
6957
 
fi
6958
 
fi
6959
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6960
 
if test -n "$ac_ct_NMEDIT"; then
6961
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6962
 
$as_echo "$ac_ct_NMEDIT" >&6; }
6963
 
else
6964
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965
 
$as_echo "no" >&6; }
6966
 
fi
6967
 
 
6968
 
  if test "x$ac_ct_NMEDIT" = x; then
6969
 
    NMEDIT=":"
6970
 
  else
6971
 
    case $cross_compiling:$ac_tool_warned in
6972
 
yes:)
6973
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975
 
ac_tool_warned=yes ;;
6976
 
esac
6977
 
    NMEDIT=$ac_ct_NMEDIT
6978
 
  fi
6979
 
else
6980
 
  NMEDIT="$ac_cv_prog_NMEDIT"
6981
 
fi
6982
 
 
6983
 
    if test -n "$ac_tool_prefix"; then
6984
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6985
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6986
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987
 
$as_echo_n "checking for $ac_word... " >&6; }
6988
 
if ${ac_cv_prog_LIPO+:} false; then :
6989
 
  $as_echo_n "(cached) " >&6
6990
 
else
6991
 
  if test -n "$LIPO"; then
6992
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6993
 
else
6994
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995
 
for as_dir in $PATH
6996
 
do
6997
 
  IFS=$as_save_IFS
6998
 
  test -z "$as_dir" && as_dir=.
6999
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7000
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7002
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003
 
    break 2
7004
 
  fi
7005
 
done
7006
 
  done
7007
 
IFS=$as_save_IFS
7008
 
 
7009
 
fi
7010
 
fi
7011
 
LIPO=$ac_cv_prog_LIPO
7012
 
if test -n "$LIPO"; then
7013
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7014
 
$as_echo "$LIPO" >&6; }
7015
 
else
7016
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017
 
$as_echo "no" >&6; }
7018
 
fi
7019
 
 
7020
 
 
7021
 
fi
7022
 
if test -z "$ac_cv_prog_LIPO"; then
7023
 
  ac_ct_LIPO=$LIPO
7024
 
  # Extract the first word of "lipo", so it can be a program name with args.
7025
 
set dummy lipo; ac_word=$2
7026
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027
 
$as_echo_n "checking for $ac_word... " >&6; }
7028
 
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7029
 
  $as_echo_n "(cached) " >&6
7030
 
else
7031
 
  if test -n "$ac_ct_LIPO"; then
7032
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7033
 
else
7034
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035
 
for as_dir in $PATH
7036
 
do
7037
 
  IFS=$as_save_IFS
7038
 
  test -z "$as_dir" && as_dir=.
7039
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7040
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041
 
    ac_cv_prog_ac_ct_LIPO="lipo"
7042
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043
 
    break 2
7044
 
  fi
7045
 
done
7046
 
  done
7047
 
IFS=$as_save_IFS
7048
 
 
7049
 
fi
7050
 
fi
7051
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7052
 
if test -n "$ac_ct_LIPO"; then
7053
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7054
 
$as_echo "$ac_ct_LIPO" >&6; }
7055
 
else
7056
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057
 
$as_echo "no" >&6; }
7058
 
fi
7059
 
 
7060
 
  if test "x$ac_ct_LIPO" = x; then
7061
 
    LIPO=":"
7062
 
  else
7063
 
    case $cross_compiling:$ac_tool_warned in
7064
 
yes:)
7065
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067
 
ac_tool_warned=yes ;;
7068
 
esac
7069
 
    LIPO=$ac_ct_LIPO
7070
 
  fi
7071
 
else
7072
 
  LIPO="$ac_cv_prog_LIPO"
7073
 
fi
7074
 
 
7075
 
    if test -n "$ac_tool_prefix"; then
7076
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7077
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
7078
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079
 
$as_echo_n "checking for $ac_word... " >&6; }
7080
 
if ${ac_cv_prog_OTOOL+:} false; then :
7081
 
  $as_echo_n "(cached) " >&6
7082
 
else
7083
 
  if test -n "$OTOOL"; then
7084
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7085
 
else
7086
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087
 
for as_dir in $PATH
7088
 
do
7089
 
  IFS=$as_save_IFS
7090
 
  test -z "$as_dir" && as_dir=.
7091
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7092
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7094
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095
 
    break 2
7096
 
  fi
7097
 
done
7098
 
  done
7099
 
IFS=$as_save_IFS
7100
 
 
7101
 
fi
7102
 
fi
7103
 
OTOOL=$ac_cv_prog_OTOOL
7104
 
if test -n "$OTOOL"; then
7105
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7106
 
$as_echo "$OTOOL" >&6; }
7107
 
else
7108
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109
 
$as_echo "no" >&6; }
7110
 
fi
7111
 
 
7112
 
 
7113
 
fi
7114
 
if test -z "$ac_cv_prog_OTOOL"; then
7115
 
  ac_ct_OTOOL=$OTOOL
7116
 
  # Extract the first word of "otool", so it can be a program name with args.
7117
 
set dummy otool; ac_word=$2
7118
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119
 
$as_echo_n "checking for $ac_word... " >&6; }
7120
 
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7121
 
  $as_echo_n "(cached) " >&6
7122
 
else
7123
 
  if test -n "$ac_ct_OTOOL"; then
7124
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7125
 
else
7126
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127
 
for as_dir in $PATH
7128
 
do
7129
 
  IFS=$as_save_IFS
7130
 
  test -z "$as_dir" && as_dir=.
7131
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7132
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7134
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135
 
    break 2
7136
 
  fi
7137
 
done
7138
 
  done
7139
 
IFS=$as_save_IFS
7140
 
 
7141
 
fi
7142
 
fi
7143
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7144
 
if test -n "$ac_ct_OTOOL"; then
7145
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7146
 
$as_echo "$ac_ct_OTOOL" >&6; }
7147
 
else
7148
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149
 
$as_echo "no" >&6; }
7150
 
fi
7151
 
 
7152
 
  if test "x$ac_ct_OTOOL" = x; then
7153
 
    OTOOL=":"
7154
 
  else
7155
 
    case $cross_compiling:$ac_tool_warned in
7156
 
yes:)
7157
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159
 
ac_tool_warned=yes ;;
7160
 
esac
7161
 
    OTOOL=$ac_ct_OTOOL
7162
 
  fi
7163
 
else
7164
 
  OTOOL="$ac_cv_prog_OTOOL"
7165
 
fi
7166
 
 
7167
 
    if test -n "$ac_tool_prefix"; then
7168
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7169
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7170
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171
 
$as_echo_n "checking for $ac_word... " >&6; }
7172
 
if ${ac_cv_prog_OTOOL64+:} false; then :
7173
 
  $as_echo_n "(cached) " >&6
7174
 
else
7175
 
  if test -n "$OTOOL64"; then
7176
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7177
 
else
7178
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179
 
for as_dir in $PATH
7180
 
do
7181
 
  IFS=$as_save_IFS
7182
 
  test -z "$as_dir" && as_dir=.
7183
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7184
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7186
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187
 
    break 2
7188
 
  fi
7189
 
done
7190
 
  done
7191
 
IFS=$as_save_IFS
7192
 
 
7193
 
fi
7194
 
fi
7195
 
OTOOL64=$ac_cv_prog_OTOOL64
7196
 
if test -n "$OTOOL64"; then
7197
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7198
 
$as_echo "$OTOOL64" >&6; }
7199
 
else
7200
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201
 
$as_echo "no" >&6; }
7202
 
fi
7203
 
 
7204
 
 
7205
 
fi
7206
 
if test -z "$ac_cv_prog_OTOOL64"; then
7207
 
  ac_ct_OTOOL64=$OTOOL64
7208
 
  # Extract the first word of "otool64", so it can be a program name with args.
7209
 
set dummy otool64; ac_word=$2
7210
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211
 
$as_echo_n "checking for $ac_word... " >&6; }
7212
 
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7213
 
  $as_echo_n "(cached) " >&6
7214
 
else
7215
 
  if test -n "$ac_ct_OTOOL64"; then
7216
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7217
 
else
7218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219
 
for as_dir in $PATH
7220
 
do
7221
 
  IFS=$as_save_IFS
7222
 
  test -z "$as_dir" && as_dir=.
7223
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7224
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7226
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227
 
    break 2
7228
 
  fi
7229
 
done
7230
 
  done
7231
 
IFS=$as_save_IFS
7232
 
 
7233
 
fi
7234
 
fi
7235
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7236
 
if test -n "$ac_ct_OTOOL64"; then
7237
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7238
 
$as_echo "$ac_ct_OTOOL64" >&6; }
7239
 
else
7240
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241
 
$as_echo "no" >&6; }
7242
 
fi
7243
 
 
7244
 
  if test "x$ac_ct_OTOOL64" = x; then
7245
 
    OTOOL64=":"
7246
 
  else
7247
 
    case $cross_compiling:$ac_tool_warned in
7248
 
yes:)
7249
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251
 
ac_tool_warned=yes ;;
7252
 
esac
7253
 
    OTOOL64=$ac_ct_OTOOL64
7254
 
  fi
7255
 
else
7256
 
  OTOOL64="$ac_cv_prog_OTOOL64"
7257
 
fi
7258
 
 
7259
 
 
7260
 
 
7261
 
 
7262
 
 
7263
 
 
7264
 
 
7265
 
 
7266
 
 
7267
 
 
7268
 
 
7269
 
 
7270
 
 
7271
 
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
 
7278
 
 
7279
 
 
7280
 
 
7281
 
 
7282
 
 
7283
 
 
7284
 
 
7285
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7286
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
7287
 
if ${lt_cv_apple_cc_single_mod+:} false; then :
7288
 
  $as_echo_n "(cached) " >&6
7289
 
else
7290
 
  lt_cv_apple_cc_single_mod=no
7291
 
      if test -z "${LT_MULTI_MODULE}"; then
7292
 
        # By default we will add the -single_module flag. You can override
7293
 
        # by either setting the environment variable LT_MULTI_MODULE
7294
 
        # non-empty at configure time, or by adding -multi_module to the
7295
 
        # link flags.
7296
 
        rm -rf libconftest.dylib*
7297
 
        echo "int foo(void){return 1;}" > conftest.c
7298
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7299
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7300
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7301
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7302
 
        _lt_result=$?
7303
 
        # If there is a non-empty error log, and "single_module"
7304
 
        # appears in it, assume the flag caused a linker warning
7305
 
        if test -s conftest.err && $GREP single_module conftest.err; then
7306
 
          cat conftest.err >&5
7307
 
        # Otherwise, if the output was created with a 0 exit code from
7308
 
        # the compiler, it worked.
7309
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7310
 
          lt_cv_apple_cc_single_mod=yes
7311
 
        else
7312
 
          cat conftest.err >&5
7313
 
        fi
7314
 
        rm -rf libconftest.dylib*
7315
 
        rm -f conftest.*
7316
 
      fi
7317
 
fi
7318
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7319
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7320
 
 
7321
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7322
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7323
 
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7324
 
  $as_echo_n "(cached) " >&6
7325
 
else
7326
 
  lt_cv_ld_exported_symbols_list=no
7327
 
      save_LDFLAGS=$LDFLAGS
7328
 
      echo "_main" > conftest.sym
7329
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7330
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331
 
/* end confdefs.h.  */
7332
 
 
7333
 
int
7334
 
main ()
7335
 
{
7336
 
 
7337
 
  ;
7338
 
  return 0;
7339
 
}
7340
 
_ACEOF
7341
 
if ac_fn_c_try_link "$LINENO"; then :
7342
 
  lt_cv_ld_exported_symbols_list=yes
7343
 
else
7344
 
  lt_cv_ld_exported_symbols_list=no
7345
 
fi
7346
 
rm -f core conftest.err conftest.$ac_objext \
7347
 
    conftest$ac_exeext conftest.$ac_ext
7348
 
        LDFLAGS="$save_LDFLAGS"
7349
 
 
7350
 
fi
7351
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7352
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7353
 
 
7354
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7355
 
$as_echo_n "checking for -force_load linker flag... " >&6; }
7356
 
if ${lt_cv_ld_force_load+:} false; then :
7357
 
  $as_echo_n "(cached) " >&6
7358
 
else
7359
 
  lt_cv_ld_force_load=no
7360
 
      cat > conftest.c << _LT_EOF
7361
 
int forced_loaded() { return 2;}
7362
 
_LT_EOF
7363
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7364
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7365
 
      echo "$AR cru libconftest.a conftest.o" >&5
7366
 
      $AR cru libconftest.a conftest.o 2>&5
7367
 
      echo "$RANLIB libconftest.a" >&5
7368
 
      $RANLIB libconftest.a 2>&5
7369
 
      cat > conftest.c << _LT_EOF
7370
 
int main() { return 0;}
7371
 
_LT_EOF
7372
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7373
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7374
 
      _lt_result=$?
7375
 
      if test -s conftest.err && $GREP force_load conftest.err; then
7376
 
        cat conftest.err >&5
7377
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7378
 
        lt_cv_ld_force_load=yes
7379
 
      else
7380
 
        cat conftest.err >&5
7381
 
      fi
7382
 
        rm -f conftest.err libconftest.a conftest conftest.c
7383
 
        rm -rf conftest.dSYM
7384
 
 
7385
 
fi
7386
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7387
 
$as_echo "$lt_cv_ld_force_load" >&6; }
7388
 
    case $host_os in
7389
 
    rhapsody* | darwin1.[012])
7390
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7391
 
    darwin1.*)
7392
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7393
 
    darwin*) # darwin 5.x on
7394
 
      # if running on 10.5 or later, the deployment target defaults
7395
 
      # to the OS version, if on x86, and 10.4, the deployment
7396
 
      # target defaults to 10.4. Don't you love it?
7397
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7398
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7399
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7400
 
        10.[012]*)
7401
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7402
 
        10.*)
7403
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7404
 
      esac
7405
 
    ;;
7406
 
  esac
7407
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7408
 
      _lt_dar_single_mod='$single_module'
7409
 
    fi
7410
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7411
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7412
 
    else
7413
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7414
 
    fi
7415
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7416
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7417
 
    else
7418
 
      _lt_dsymutil=
7419
 
    fi
7420
 
    ;;
7421
 
  esac
7422
 
 
7423
 
ac_ext=c
7424
 
ac_cpp='$CPP $CPPFLAGS'
7425
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7429
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7430
 
# On Suns, sometimes $CPP names a directory.
7431
 
if test -n "$CPP" && test -d "$CPP"; then
7432
 
  CPP=
7433
 
fi
7434
 
if test -z "$CPP"; then
7435
 
  if ${ac_cv_prog_CPP+:} false; then :
7436
 
  $as_echo_n "(cached) " >&6
7437
 
else
7438
 
      # Double quotes because CPP needs to be expanded
7439
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7440
 
    do
7441
 
      ac_preproc_ok=false
7442
 
for ac_c_preproc_warn_flag in '' yes
7443
 
do
7444
 
  # Use a header file that comes with gcc, so configuring glibc
7445
 
  # with a fresh cross-compiler works.
7446
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7447
 
  # <limits.h> exists even on freestanding compilers.
7448
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7449
 
  # not just through cpp. "Syntax error" is here to catch this case.
7450
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451
 
/* end confdefs.h.  */
7452
 
#ifdef __STDC__
7453
 
# include <limits.h>
7454
 
#else
7455
 
# include <assert.h>
7456
 
#endif
7457
 
                     Syntax error
7458
 
_ACEOF
7459
 
if ac_fn_c_try_cpp "$LINENO"; then :
7460
 
 
7461
 
else
7462
 
  # Broken: fails on valid input.
7463
 
continue
7464
 
fi
7465
 
rm -f conftest.err conftest.i conftest.$ac_ext
7466
 
 
7467
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7468
 
  # can be detected and how.
7469
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470
 
/* end confdefs.h.  */
7471
 
#include <ac_nonexistent.h>
7472
 
_ACEOF
7473
 
if ac_fn_c_try_cpp "$LINENO"; then :
7474
 
  # Broken: success on invalid input.
7475
 
continue
7476
 
else
7477
 
  # Passes both tests.
7478
 
ac_preproc_ok=:
7479
 
break
7480
 
fi
7481
 
rm -f conftest.err conftest.i conftest.$ac_ext
7482
 
 
7483
 
done
7484
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485
 
rm -f conftest.i conftest.err conftest.$ac_ext
7486
 
if $ac_preproc_ok; then :
7487
 
  break
7488
 
fi
7489
 
 
7490
 
    done
7491
 
    ac_cv_prog_CPP=$CPP
7492
 
 
7493
 
fi
7494
 
  CPP=$ac_cv_prog_CPP
7495
 
else
7496
 
  ac_cv_prog_CPP=$CPP
7497
 
fi
7498
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7499
 
$as_echo "$CPP" >&6; }
7500
 
ac_preproc_ok=false
7501
 
for ac_c_preproc_warn_flag in '' yes
7502
 
do
7503
 
  # Use a header file that comes with gcc, so configuring glibc
7504
 
  # with a fresh cross-compiler works.
7505
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7506
 
  # <limits.h> exists even on freestanding compilers.
7507
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7508
 
  # not just through cpp. "Syntax error" is here to catch this case.
7509
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510
 
/* end confdefs.h.  */
7511
 
#ifdef __STDC__
7512
 
# include <limits.h>
7513
 
#else
7514
 
# include <assert.h>
7515
 
#endif
7516
 
                     Syntax error
7517
 
_ACEOF
7518
 
if ac_fn_c_try_cpp "$LINENO"; then :
7519
 
 
7520
 
else
7521
 
  # Broken: fails on valid input.
7522
 
continue
7523
 
fi
7524
 
rm -f conftest.err conftest.i conftest.$ac_ext
7525
 
 
7526
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7527
 
  # can be detected and how.
7528
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529
 
/* end confdefs.h.  */
7530
 
#include <ac_nonexistent.h>
7531
 
_ACEOF
7532
 
if ac_fn_c_try_cpp "$LINENO"; then :
7533
 
  # Broken: success on invalid input.
7534
 
continue
7535
 
else
7536
 
  # Passes both tests.
7537
 
ac_preproc_ok=:
7538
 
break
7539
 
fi
7540
 
rm -f conftest.err conftest.i conftest.$ac_ext
7541
 
 
7542
 
done
7543
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7544
 
rm -f conftest.i conftest.err conftest.$ac_ext
7545
 
if $ac_preproc_ok; then :
7546
 
 
7547
 
else
7548
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7549
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7550
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7551
 
See \`config.log' for more details" "$LINENO" 5; }
7552
 
fi
7553
 
 
7554
 
ac_ext=c
7555
 
ac_cpp='$CPP $CPPFLAGS'
7556
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
 
 
7560
 
 
7561
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7562
 
$as_echo_n "checking for ANSI C header files... " >&6; }
7563
 
if ${ac_cv_header_stdc+:} false; then :
7564
 
  $as_echo_n "(cached) " >&6
7565
 
else
7566
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567
 
/* end confdefs.h.  */
7568
 
#include <stdlib.h>
7569
 
#include <stdarg.h>
7570
 
#include <string.h>
7571
 
#include <float.h>
7572
 
 
7573
 
int
7574
 
main ()
7575
 
{
7576
 
 
7577
 
  ;
7578
 
  return 0;
7579
 
}
7580
 
_ACEOF
7581
 
if ac_fn_c_try_compile "$LINENO"; then :
7582
 
  ac_cv_header_stdc=yes
7583
 
else
7584
 
  ac_cv_header_stdc=no
7585
 
fi
7586
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587
 
 
7588
 
if test $ac_cv_header_stdc = yes; then
7589
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7590
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591
 
/* end confdefs.h.  */
7592
 
#include <string.h>
7593
 
 
7594
 
_ACEOF
7595
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596
 
  $EGREP "memchr" >/dev/null 2>&1; then :
7597
 
 
7598
 
else
7599
 
  ac_cv_header_stdc=no
7600
 
fi
7601
 
rm -f conftest*
7602
 
 
7603
 
fi
7604
 
 
7605
 
if test $ac_cv_header_stdc = yes; then
7606
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7607
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608
 
/* end confdefs.h.  */
7609
 
#include <stdlib.h>
7610
 
 
7611
 
_ACEOF
7612
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613
 
  $EGREP "free" >/dev/null 2>&1; then :
7614
 
 
7615
 
else
7616
 
  ac_cv_header_stdc=no
7617
 
fi
7618
 
rm -f conftest*
7619
 
 
7620
 
fi
7621
 
 
7622
 
if test $ac_cv_header_stdc = yes; then
7623
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7624
 
  if test "$cross_compiling" = yes; then :
7625
 
  :
7626
 
else
7627
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628
 
/* end confdefs.h.  */
7629
 
#include <ctype.h>
7630
 
#include <stdlib.h>
7631
 
#if ((' ' & 0x0FF) == 0x020)
7632
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7633
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7634
 
#else
7635
 
# define ISLOWER(c) \
7636
 
                   (('a' <= (c) && (c) <= 'i') \
7637
 
                     || ('j' <= (c) && (c) <= 'r') \
7638
 
                     || ('s' <= (c) && (c) <= 'z'))
7639
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7640
 
#endif
7641
 
 
7642
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7643
 
int
7644
 
main ()
7645
 
{
7646
 
  int i;
7647
 
  for (i = 0; i < 256; i++)
7648
 
    if (XOR (islower (i), ISLOWER (i))
7649
 
        || toupper (i) != TOUPPER (i))
7650
 
      return 2;
7651
 
  return 0;
7652
 
}
7653
 
_ACEOF
7654
 
if ac_fn_c_try_run "$LINENO"; then :
7655
 
 
7656
 
else
7657
 
  ac_cv_header_stdc=no
7658
 
fi
7659
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7660
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7661
 
fi
7662
 
 
7663
 
fi
7664
 
fi
7665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7666
 
$as_echo "$ac_cv_header_stdc" >&6; }
7667
 
if test $ac_cv_header_stdc = yes; then
7668
 
 
7669
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7670
 
 
7671
 
fi
7672
 
 
7673
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7674
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7675
 
                  inttypes.h stdint.h unistd.h
7676
 
do :
7677
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7679
 
"
7680
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7681
 
  cat >>confdefs.h <<_ACEOF
7682
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683
 
_ACEOF
7684
 
 
7685
 
fi
7686
 
 
7687
 
done
7688
 
 
7689
 
 
7690
 
for ac_header in dlfcn.h
7691
 
do :
7692
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7693
 
"
7694
 
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7695
 
  cat >>confdefs.h <<_ACEOF
7696
 
#define HAVE_DLFCN_H 1
7697
 
_ACEOF
7698
 
 
7699
 
fi
7700
 
 
7701
 
done
7702
 
 
7703
 
 
7704
 
 
7705
 
func_stripname_cnf ()
7706
 
{
7707
 
  case ${2} in
7708
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7709
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7710
 
  esac
7711
 
} # func_stripname_cnf
7712
 
 
7713
 
 
7714
 
 
7715
 
 
7716
 
 
7717
 
# Set options
7718
 
 
7719
 
 
7720
 
 
7721
 
        enable_dlopen=no
7722
 
 
7723
 
 
7724
 
  enable_win32_dll=no
7725
 
 
7726
 
 
7727
 
            # Check whether --enable-shared was given.
7728
 
if test "${enable_shared+set}" = set; then :
7729
 
  enableval=$enable_shared; p=${PACKAGE-default}
7730
 
    case $enableval in
7731
 
    yes) enable_shared=yes ;;
7732
 
    no) enable_shared=no ;;
7733
 
    *)
7734
 
      enable_shared=no
7735
 
      # Look at the argument we got.  We use all the common list separators.
7736
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737
 
      for pkg in $enableval; do
7738
 
        IFS="$lt_save_ifs"
7739
 
        if test "X$pkg" = "X$p"; then
7740
 
          enable_shared=yes
7741
 
        fi
7742
 
      done
7743
 
      IFS="$lt_save_ifs"
7744
 
      ;;
7745
 
    esac
7746
 
else
7747
 
  enable_shared=yes
7748
 
fi
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
  # Check whether --enable-static was given.
7759
 
if test "${enable_static+set}" = set; then :
7760
 
  enableval=$enable_static; p=${PACKAGE-default}
7761
 
    case $enableval in
7762
 
    yes) enable_static=yes ;;
7763
 
    no) enable_static=no ;;
7764
 
    *)
7765
 
     enable_static=no
7766
 
      # Look at the argument we got.  We use all the common list separators.
7767
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768
 
      for pkg in $enableval; do
7769
 
        IFS="$lt_save_ifs"
7770
 
        if test "X$pkg" = "X$p"; then
7771
 
          enable_static=yes
7772
 
        fi
7773
 
      done
7774
 
      IFS="$lt_save_ifs"
7775
 
      ;;
7776
 
    esac
7777
 
else
7778
 
  enable_static=yes
7779
 
fi
7780
 
 
7781
 
 
7782
 
 
7783
 
 
7784
 
 
7785
 
 
7786
 
 
7787
 
 
7788
 
 
7789
 
 
7790
 
# Check whether --with-pic was given.
7791
 
if test "${with_pic+set}" = set; then :
7792
 
  withval=$with_pic; lt_p=${PACKAGE-default}
7793
 
    case $withval in
7794
 
    yes|no) pic_mode=$withval ;;
7795
 
    *)
7796
 
      pic_mode=default
7797
 
      # Look at the argument we got.  We use all the common list separators.
7798
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7799
 
      for lt_pkg in $withval; do
7800
 
        IFS="$lt_save_ifs"
7801
 
        if test "X$lt_pkg" = "X$lt_p"; then
7802
 
          pic_mode=yes
7803
 
        fi
7804
 
      done
7805
 
      IFS="$lt_save_ifs"
7806
 
      ;;
7807
 
    esac
7808
 
else
7809
 
  pic_mode=default
7810
 
fi
7811
 
 
7812
 
 
7813
 
test -z "$pic_mode" && pic_mode=default
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
 
 
7821
 
  # Check whether --enable-fast-install was given.
7822
 
if test "${enable_fast_install+set}" = set; then :
7823
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
7824
 
    case $enableval in
7825
 
    yes) enable_fast_install=yes ;;
7826
 
    no) enable_fast_install=no ;;
7827
 
    *)
7828
 
      enable_fast_install=no
7829
 
      # Look at the argument we got.  We use all the common list separators.
7830
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7831
 
      for pkg in $enableval; do
7832
 
        IFS="$lt_save_ifs"
7833
 
        if test "X$pkg" = "X$p"; then
7834
 
          enable_fast_install=yes
7835
 
        fi
7836
 
      done
7837
 
      IFS="$lt_save_ifs"
7838
 
      ;;
7839
 
    esac
7840
 
else
7841
 
  enable_fast_install=yes
7842
 
fi
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
# This can be used to rebuild libtool when needed
7855
 
LIBTOOL_DEPS="$ltmain"
7856
 
 
7857
 
# Always use our own libtool.
7858
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7859
 
 
7860
 
 
7861
 
 
7862
 
 
7863
 
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
test -z "$LN_S" && LN_S="ln -s"
7890
 
 
7891
 
 
7892
 
 
7893
 
 
7894
 
 
7895
 
 
7896
 
 
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
 
if test -n "${ZSH_VERSION+set}" ; then
7905
 
   setopt NO_GLOB_SUBST
7906
 
fi
7907
 
 
7908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7909
 
$as_echo_n "checking for objdir... " >&6; }
7910
 
if ${lt_cv_objdir+:} false; then :
7911
 
  $as_echo_n "(cached) " >&6
7912
 
else
7913
 
  rm -f .libs 2>/dev/null
7914
 
mkdir .libs 2>/dev/null
7915
 
if test -d .libs; then
7916
 
  lt_cv_objdir=.libs
7917
 
else
7918
 
  # MS-DOS does not allow filenames that begin with a dot.
7919
 
  lt_cv_objdir=_libs
7920
 
fi
7921
 
rmdir .libs 2>/dev/null
7922
 
fi
7923
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7924
 
$as_echo "$lt_cv_objdir" >&6; }
7925
 
objdir=$lt_cv_objdir
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
cat >>confdefs.h <<_ACEOF
7932
 
#define LT_OBJDIR "$lt_cv_objdir/"
7933
 
_ACEOF
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
case $host_os in
7939
 
aix3*)
7940
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7941
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7942
 
  # vanish in a puff of smoke.
7943
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7944
 
    COLLECT_NAMES=
7945
 
    export COLLECT_NAMES
7946
 
  fi
7947
 
  ;;
7948
 
esac
7949
 
 
7950
 
# Global variables:
7951
 
ofile=libtool
7952
 
can_build_shared=yes
7953
 
 
7954
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7955
 
# which needs '.lib').
7956
 
libext=a
7957
 
 
7958
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7959
 
 
7960
 
old_CC="$CC"
7961
 
old_CFLAGS="$CFLAGS"
7962
 
 
7963
 
# Set sane defaults for various variables
7964
 
test -z "$CC" && CC=cc
7965
 
test -z "$LTCC" && LTCC=$CC
7966
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7967
 
test -z "$LD" && LD=ld
7968
 
test -z "$ac_objext" && ac_objext=o
7969
 
 
7970
 
for cc_temp in $compiler""; do
7971
 
  case $cc_temp in
7972
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7973
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7974
 
    \-*) ;;
7975
 
    *) break;;
7976
 
  esac
7977
 
done
7978
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7979
 
 
7980
 
 
7981
 
# Only perform the check for file, if the check method requires it
7982
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7983
 
case $deplibs_check_method in
7984
 
file_magic*)
7985
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7986
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7987
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7988
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7989
 
  $as_echo_n "(cached) " >&6
7990
 
else
7991
 
  case $MAGIC_CMD in
7992
 
[\\/*] |  ?:[\\/]*)
7993
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7994
 
  ;;
7995
 
*)
7996
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7997
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7998
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7999
 
  for ac_dir in $ac_dummy; do
8000
 
    IFS="$lt_save_ifs"
8001
 
    test -z "$ac_dir" && ac_dir=.
8002
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8003
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8004
 
      if test -n "$file_magic_test_file"; then
8005
 
        case $deplibs_check_method in
8006
 
        "file_magic "*)
8007
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8008
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8010
 
            $EGREP "$file_magic_regex" > /dev/null; then
8011
 
            :
8012
 
          else
8013
 
            cat <<_LT_EOF 1>&2
8014
 
 
8015
 
*** Warning: the command libtool uses to detect shared libraries,
8016
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8017
 
*** The result is that libtool may fail to recognize shared libraries
8018
 
*** as such.  This will affect the creation of libtool libraries that
8019
 
*** depend on shared libraries, but programs linked with such libtool
8020
 
*** libraries will work regardless of this problem.  Nevertheless, you
8021
 
*** may want to report the problem to your system manager and/or to
8022
 
*** bug-libtool@gnu.org
8023
 
 
8024
 
_LT_EOF
8025
 
          fi ;;
8026
 
        esac
8027
 
      fi
8028
 
      break
8029
 
    fi
8030
 
  done
8031
 
  IFS="$lt_save_ifs"
8032
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8033
 
  ;;
8034
 
esac
8035
 
fi
8036
 
 
8037
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038
 
if test -n "$MAGIC_CMD"; then
8039
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8040
 
$as_echo "$MAGIC_CMD" >&6; }
8041
 
else
8042
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043
 
$as_echo "no" >&6; }
8044
 
fi
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
 
 
8050
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8051
 
  if test -n "$ac_tool_prefix"; then
8052
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8053
 
$as_echo_n "checking for file... " >&6; }
8054
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8055
 
  $as_echo_n "(cached) " >&6
8056
 
else
8057
 
  case $MAGIC_CMD in
8058
 
[\\/*] |  ?:[\\/]*)
8059
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8060
 
  ;;
8061
 
*)
8062
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8063
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8064
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8065
 
  for ac_dir in $ac_dummy; do
8066
 
    IFS="$lt_save_ifs"
8067
 
    test -z "$ac_dir" && ac_dir=.
8068
 
    if test -f $ac_dir/file; then
8069
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8070
 
      if test -n "$file_magic_test_file"; then
8071
 
        case $deplibs_check_method in
8072
 
        "file_magic "*)
8073
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8074
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076
 
            $EGREP "$file_magic_regex" > /dev/null; then
8077
 
            :
8078
 
          else
8079
 
            cat <<_LT_EOF 1>&2
8080
 
 
8081
 
*** Warning: the command libtool uses to detect shared libraries,
8082
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8083
 
*** The result is that libtool may fail to recognize shared libraries
8084
 
*** as such.  This will affect the creation of libtool libraries that
8085
 
*** depend on shared libraries, but programs linked with such libtool
8086
 
*** libraries will work regardless of this problem.  Nevertheless, you
8087
 
*** may want to report the problem to your system manager and/or to
8088
 
*** bug-libtool@gnu.org
8089
 
 
8090
 
_LT_EOF
8091
 
          fi ;;
8092
 
        esac
8093
 
      fi
8094
 
      break
8095
 
    fi
8096
 
  done
8097
 
  IFS="$lt_save_ifs"
8098
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8099
 
  ;;
8100
 
esac
8101
 
fi
8102
 
 
8103
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8104
 
if test -n "$MAGIC_CMD"; then
8105
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8106
 
$as_echo "$MAGIC_CMD" >&6; }
8107
 
else
8108
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109
 
$as_echo "no" >&6; }
8110
 
fi
8111
 
 
8112
 
 
8113
 
  else
8114
 
    MAGIC_CMD=:
8115
 
  fi
8116
 
fi
8117
 
 
8118
 
  fi
8119
 
  ;;
8120
 
esac
8121
 
 
8122
 
# Use C for the default configuration in the libtool script
8123
 
 
8124
 
lt_save_CC="$CC"
8125
 
ac_ext=c
8126
 
ac_cpp='$CPP $CPPFLAGS'
8127
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8130
 
 
8131
 
 
8132
 
# Source file extension for C test sources.
8133
 
ac_ext=c
8134
 
 
8135
 
# Object file extension for compiled C test sources.
8136
 
objext=o
8137
 
objext=$objext
8138
 
 
8139
 
# Code to be used in simple compile tests
8140
 
lt_simple_compile_test_code="int some_variable = 0;"
8141
 
 
8142
 
# Code to be used in simple link tests
8143
 
lt_simple_link_test_code='int main(){return(0);}'
8144
 
 
8145
 
 
8146
 
 
8147
 
 
8148
 
 
8149
 
 
8150
 
 
8151
 
# If no C compiler was specified, use CC.
8152
 
LTCC=${LTCC-"$CC"}
8153
 
 
8154
 
# If no C compiler flags were specified, use CFLAGS.
8155
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8156
 
 
8157
 
# Allow CC to be a program name with arguments.
8158
 
compiler=$CC
8159
 
 
8160
 
# Save the default compiler, since it gets overwritten when the other
8161
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8162
 
compiler_DEFAULT=$CC
8163
 
 
8164
 
# save warnings/boilerplate of simple test code
8165
 
ac_outfile=conftest.$ac_objext
8166
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8167
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8168
 
_lt_compiler_boilerplate=`cat conftest.err`
8169
 
$RM conftest*
8170
 
 
8171
 
ac_outfile=conftest.$ac_objext
8172
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8173
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8174
 
_lt_linker_boilerplate=`cat conftest.err`
8175
 
$RM -r conftest*
8176
 
 
8177
 
 
8178
 
if test -n "$compiler"; then
8179
 
 
8180
 
lt_prog_compiler_no_builtin_flag=
8181
 
 
8182
 
if test "$GCC" = yes; then
8183
 
  case $cc_basename in
8184
 
  nvcc*)
8185
 
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8186
 
  *)
8187
 
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8188
 
  esac
8189
 
 
8190
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8191
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8192
 
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8193
 
  $as_echo_n "(cached) " >&6
8194
 
else
8195
 
  lt_cv_prog_compiler_rtti_exceptions=no
8196
 
   ac_outfile=conftest.$ac_objext
8197
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8198
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8199
 
   # Insert the option either (1) after the last *FLAGS variable, or
8200
 
   # (2) before a word containing "conftest.", or (3) at the end.
8201
 
   # Note that $ac_compile itself does not contain backslashes and begins
8202
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8203
 
   # The option is referenced via a variable to avoid confusing sed.
8204
 
   lt_compile=`echo "$ac_compile" | $SED \
8205
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8206
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207
 
   -e 's:$: $lt_compiler_flag:'`
8208
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8209
 
   (eval "$lt_compile" 2>conftest.err)
8210
 
   ac_status=$?
8211
 
   cat conftest.err >&5
8212
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8214
 
     # The compiler can only warn and ignore the option if not recognized
8215
 
     # So say no if there are warnings other than the usual output.
8216
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8217
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8218
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8219
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8220
 
     fi
8221
 
   fi
8222
 
   $RM conftest*
8223
 
 
8224
 
fi
8225
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8226
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8227
 
 
8228
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8229
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8230
 
else
8231
 
    :
8232
 
fi
8233
 
 
8234
 
fi
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
 
 
8240
 
 
8241
 
  lt_prog_compiler_wl=
8242
 
lt_prog_compiler_pic=
8243
 
lt_prog_compiler_static=
8244
 
 
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
 
    haiku*)
8293
 
      # PIC is the default for Haiku.
8294
 
      # The "-static" flag exists, but is broken.
8295
 
      lt_prog_compiler_static=
8296
 
      ;;
8297
 
 
8298
 
    hpux*)
8299
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8300
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8301
 
      # sets the default TLS model and affects inlining.
8302
 
      case $host_cpu in
8303
 
      hppa*64*)
8304
 
        # +Z the default
8305
 
        ;;
8306
 
      *)
8307
 
        lt_prog_compiler_pic='-fPIC'
8308
 
        ;;
8309
 
      esac
8310
 
      ;;
8311
 
 
8312
 
    interix[3-9]*)
8313
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8314
 
      # Instead, we relocate shared libraries at runtime.
8315
 
      ;;
8316
 
 
8317
 
    msdosdjgpp*)
8318
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8319
 
      # on systems that don't support them.
8320
 
      lt_prog_compiler_can_build_shared=no
8321
 
      enable_shared=no
8322
 
      ;;
8323
 
 
8324
 
    *nto* | *qnx*)
8325
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8326
 
      # it will coredump.
8327
 
      lt_prog_compiler_pic='-fPIC -shared'
8328
 
      ;;
8329
 
 
8330
 
    sysv4*MP*)
8331
 
      if test -d /usr/nec; then
8332
 
        lt_prog_compiler_pic=-Kconform_pic
8333
 
      fi
8334
 
      ;;
8335
 
 
8336
 
    *)
8337
 
      lt_prog_compiler_pic='-fPIC'
8338
 
      ;;
8339
 
    esac
8340
 
 
8341
 
    case $cc_basename in
8342
 
    nvcc*) # Cuda Compiler Driver 2.2
8343
 
      lt_prog_compiler_wl='-Xlinker '
8344
 
      if test -n "$lt_prog_compiler_pic"; then
8345
 
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8346
 
      fi
8347
 
      ;;
8348
 
    esac
8349
 
  else
8350
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8351
 
    case $host_os in
8352
 
    aix*)
8353
 
      lt_prog_compiler_wl='-Wl,'
8354
 
      if test "$host_cpu" = ia64; then
8355
 
        # AIX 5 now supports IA64 processor
8356
 
        lt_prog_compiler_static='-Bstatic'
8357
 
      else
8358
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8359
 
      fi
8360
 
      ;;
8361
 
 
8362
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8363
 
      # This hack is so that the source file can tell whether it is being
8364
 
      # built for inclusion in a dll (and should export symbols for example).
8365
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8366
 
      ;;
8367
 
 
8368
 
    hpux9* | hpux10* | hpux11*)
8369
 
      lt_prog_compiler_wl='-Wl,'
8370
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8371
 
      # not for PA HP-UX.
8372
 
      case $host_cpu in
8373
 
      hppa*64*|ia64*)
8374
 
        # +Z the default
8375
 
        ;;
8376
 
      *)
8377
 
        lt_prog_compiler_pic='+Z'
8378
 
        ;;
8379
 
      esac
8380
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8381
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8382
 
      ;;
8383
 
 
8384
 
    irix5* | irix6* | nonstopux*)
8385
 
      lt_prog_compiler_wl='-Wl,'
8386
 
      # PIC (with -KPIC) is the default.
8387
 
      lt_prog_compiler_static='-non_shared'
8388
 
      ;;
8389
 
 
8390
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8391
 
      case $cc_basename in
8392
 
      # old Intel for x86_64 which still supported -KPIC.
8393
 
      ecc*)
8394
 
        lt_prog_compiler_wl='-Wl,'
8395
 
        lt_prog_compiler_pic='-KPIC'
8396
 
        lt_prog_compiler_static='-static'
8397
 
        ;;
8398
 
      # icc used to be incompatible with GCC.
8399
 
      # ICC 10 doesn't accept -KPIC any more.
8400
 
      icc* | ifort*)
8401
 
        lt_prog_compiler_wl='-Wl,'
8402
 
        lt_prog_compiler_pic='-fPIC'
8403
 
        lt_prog_compiler_static='-static'
8404
 
        ;;
8405
 
      # Lahey Fortran 8.1.
8406
 
      lf95*)
8407
 
        lt_prog_compiler_wl='-Wl,'
8408
 
        lt_prog_compiler_pic='--shared'
8409
 
        lt_prog_compiler_static='--static'
8410
 
        ;;
8411
 
      nagfor*)
8412
 
        # NAG Fortran compiler
8413
 
        lt_prog_compiler_wl='-Wl,-Wl,,'
8414
 
        lt_prog_compiler_pic='-PIC'
8415
 
        lt_prog_compiler_static='-Bstatic'
8416
 
        ;;
8417
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8418
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8419
 
        # which looks to be a dead project)
8420
 
        lt_prog_compiler_wl='-Wl,'
8421
 
        lt_prog_compiler_pic='-fpic'
8422
 
        lt_prog_compiler_static='-Bstatic'
8423
 
        ;;
8424
 
      ccc*)
8425
 
        lt_prog_compiler_wl='-Wl,'
8426
 
        # All Alpha code is PIC.
8427
 
        lt_prog_compiler_static='-non_shared'
8428
 
        ;;
8429
 
      xl* | bgxl* | bgf* | mpixl*)
8430
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8431
 
        lt_prog_compiler_wl='-Wl,'
8432
 
        lt_prog_compiler_pic='-qpic'
8433
 
        lt_prog_compiler_static='-qstaticlink'
8434
 
        ;;
8435
 
      *)
8436
 
        case `$CC -V 2>&1 | sed 5q` in
8437
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8438
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8439
 
          lt_prog_compiler_pic='-KPIC'
8440
 
          lt_prog_compiler_static='-Bstatic'
8441
 
          lt_prog_compiler_wl=''
8442
 
          ;;
8443
 
        *Sun\ F* | *Sun*Fortran*)
8444
 
          lt_prog_compiler_pic='-KPIC'
8445
 
          lt_prog_compiler_static='-Bstatic'
8446
 
          lt_prog_compiler_wl='-Qoption ld '
8447
 
          ;;
8448
 
        *Sun\ C*)
8449
 
          # Sun C 5.9
8450
 
          lt_prog_compiler_pic='-KPIC'
8451
 
          lt_prog_compiler_static='-Bstatic'
8452
 
          lt_prog_compiler_wl='-Wl,'
8453
 
          ;;
8454
 
        *Intel*\ [CF]*Compiler*)
8455
 
          lt_prog_compiler_wl='-Wl,'
8456
 
          lt_prog_compiler_pic='-fPIC'
8457
 
          lt_prog_compiler_static='-static'
8458
 
          ;;
8459
 
        *Portland\ Group*)
8460
 
          lt_prog_compiler_wl='-Wl,'
8461
 
          lt_prog_compiler_pic='-fpic'
8462
 
          lt_prog_compiler_static='-Bstatic'
8463
 
          ;;
8464
 
        esac
8465
 
        ;;
8466
 
      esac
8467
 
      ;;
8468
 
 
8469
 
    newsos6)
8470
 
      lt_prog_compiler_pic='-KPIC'
8471
 
      lt_prog_compiler_static='-Bstatic'
8472
 
      ;;
8473
 
 
8474
 
    *nto* | *qnx*)
8475
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8476
 
      # it will coredump.
8477
 
      lt_prog_compiler_pic='-fPIC -shared'
8478
 
      ;;
8479
 
 
8480
 
    osf3* | osf4* | osf5*)
8481
 
      lt_prog_compiler_wl='-Wl,'
8482
 
      # All OSF/1 code is PIC.
8483
 
      lt_prog_compiler_static='-non_shared'
8484
 
      ;;
8485
 
 
8486
 
    rdos*)
8487
 
      lt_prog_compiler_static='-non_shared'
8488
 
      ;;
8489
 
 
8490
 
    solaris*)
8491
 
      lt_prog_compiler_pic='-KPIC'
8492
 
      lt_prog_compiler_static='-Bstatic'
8493
 
      case $cc_basename in
8494
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8495
 
        lt_prog_compiler_wl='-Qoption ld ';;
8496
 
      *)
8497
 
        lt_prog_compiler_wl='-Wl,';;
8498
 
      esac
8499
 
      ;;
8500
 
 
8501
 
    sunos4*)
8502
 
      lt_prog_compiler_wl='-Qoption ld '
8503
 
      lt_prog_compiler_pic='-PIC'
8504
 
      lt_prog_compiler_static='-Bstatic'
8505
 
      ;;
8506
 
 
8507
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
8508
 
      lt_prog_compiler_wl='-Wl,'
8509
 
      lt_prog_compiler_pic='-KPIC'
8510
 
      lt_prog_compiler_static='-Bstatic'
8511
 
      ;;
8512
 
 
8513
 
    sysv4*MP*)
8514
 
      if test -d /usr/nec ;then
8515
 
        lt_prog_compiler_pic='-Kconform_pic'
8516
 
        lt_prog_compiler_static='-Bstatic'
8517
 
      fi
8518
 
      ;;
8519
 
 
8520
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8521
 
      lt_prog_compiler_wl='-Wl,'
8522
 
      lt_prog_compiler_pic='-KPIC'
8523
 
      lt_prog_compiler_static='-Bstatic'
8524
 
      ;;
8525
 
 
8526
 
    unicos*)
8527
 
      lt_prog_compiler_wl='-Wl,'
8528
 
      lt_prog_compiler_can_build_shared=no
8529
 
      ;;
8530
 
 
8531
 
    uts4*)
8532
 
      lt_prog_compiler_pic='-pic'
8533
 
      lt_prog_compiler_static='-Bstatic'
8534
 
      ;;
8535
 
 
8536
 
    *)
8537
 
      lt_prog_compiler_can_build_shared=no
8538
 
      ;;
8539
 
    esac
8540
 
  fi
8541
 
 
8542
 
case $host_os in
8543
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8544
 
  *djgpp*)
8545
 
    lt_prog_compiler_pic=
8546
 
    ;;
8547
 
  *)
8548
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8549
 
    ;;
8550
 
esac
8551
 
 
8552
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8553
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8554
 
if ${lt_cv_prog_compiler_pic+:} false; then :
8555
 
  $as_echo_n "(cached) " >&6
8556
 
else
8557
 
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8558
 
fi
8559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8560
 
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8561
 
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8562
 
 
8563
 
#
8564
 
# Check to make sure the PIC flag actually works.
8565
 
#
8566
 
if test -n "$lt_prog_compiler_pic"; then
8567
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8568
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8569
 
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8570
 
  $as_echo_n "(cached) " >&6
8571
 
else
8572
 
  lt_cv_prog_compiler_pic_works=no
8573
 
   ac_outfile=conftest.$ac_objext
8574
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8576
 
   # Insert the option either (1) after the last *FLAGS variable, or
8577
 
   # (2) before a word containing "conftest.", or (3) at the end.
8578
 
   # Note that $ac_compile itself does not contain backslashes and begins
8579
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8580
 
   # The option is referenced via a variable to avoid confusing sed.
8581
 
   lt_compile=`echo "$ac_compile" | $SED \
8582
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584
 
   -e 's:$: $lt_compiler_flag:'`
8585
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586
 
   (eval "$lt_compile" 2>conftest.err)
8587
 
   ac_status=$?
8588
 
   cat conftest.err >&5
8589
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8591
 
     # The compiler can only warn and ignore the option if not recognized
8592
 
     # So say no if there are warnings other than the usual output.
8593
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8594
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596
 
       lt_cv_prog_compiler_pic_works=yes
8597
 
     fi
8598
 
   fi
8599
 
   $RM conftest*
8600
 
 
8601
 
fi
8602
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8603
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8604
 
 
8605
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8606
 
    case $lt_prog_compiler_pic in
8607
 
     "" | " "*) ;;
8608
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8609
 
     esac
8610
 
else
8611
 
    lt_prog_compiler_pic=
8612
 
     lt_prog_compiler_can_build_shared=no
8613
 
fi
8614
 
 
8615
 
fi
8616
 
 
8617
 
 
8618
 
 
8619
 
 
8620
 
 
8621
 
 
8622
 
 
8623
 
 
8624
 
 
8625
 
 
8626
 
 
8627
 
#
8628
 
# Check to make sure the static flag actually works.
8629
 
#
8630
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8631
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8632
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8633
 
if ${lt_cv_prog_compiler_static_works+:} false; then :
8634
 
  $as_echo_n "(cached) " >&6
8635
 
else
8636
 
  lt_cv_prog_compiler_static_works=no
8637
 
   save_LDFLAGS="$LDFLAGS"
8638
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8639
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8640
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8641
 
     # The linker can only warn and ignore the option if not recognized
8642
 
     # So say no if there are warnings
8643
 
     if test -s conftest.err; then
8644
 
       # Append any errors to the config.log.
8645
 
       cat conftest.err 1>&5
8646
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8647
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648
 
       if diff conftest.exp conftest.er2 >/dev/null; then
8649
 
         lt_cv_prog_compiler_static_works=yes
8650
 
       fi
8651
 
     else
8652
 
       lt_cv_prog_compiler_static_works=yes
8653
 
     fi
8654
 
   fi
8655
 
   $RM -r conftest*
8656
 
   LDFLAGS="$save_LDFLAGS"
8657
 
 
8658
 
fi
8659
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8660
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8661
 
 
8662
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8663
 
    :
8664
 
else
8665
 
    lt_prog_compiler_static=
8666
 
fi
8667
 
 
8668
 
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
 
 
8674
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8675
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8676
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
8677
 
  $as_echo_n "(cached) " >&6
8678
 
else
8679
 
  lt_cv_prog_compiler_c_o=no
8680
 
   $RM -r conftest 2>/dev/null
8681
 
   mkdir conftest
8682
 
   cd conftest
8683
 
   mkdir out
8684
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685
 
 
8686
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8687
 
   # Insert the option either (1) after the last *FLAGS variable, or
8688
 
   # (2) before a word containing "conftest.", or (3) at the end.
8689
 
   # Note that $ac_compile itself does not contain backslashes and begins
8690
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691
 
   lt_compile=`echo "$ac_compile" | $SED \
8692
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694
 
   -e 's:$: $lt_compiler_flag:'`
8695
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696
 
   (eval "$lt_compile" 2>out/conftest.err)
8697
 
   ac_status=$?
8698
 
   cat out/conftest.err >&5
8699
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8701
 
   then
8702
 
     # The compiler can only warn and ignore the option if not recognized
8703
 
     # So say no if there are warnings
8704
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8705
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8706
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8707
 
       lt_cv_prog_compiler_c_o=yes
8708
 
     fi
8709
 
   fi
8710
 
   chmod u+w . 2>&5
8711
 
   $RM conftest*
8712
 
   # SGI C++ compiler will create directory out/ii_files/ for
8713
 
   # template instantiation
8714
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8715
 
   $RM out/* && rmdir out
8716
 
   cd ..
8717
 
   $RM -r conftest
8718
 
   $RM conftest*
8719
 
 
8720
 
fi
8721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8722
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8723
 
 
8724
 
 
8725
 
 
8726
 
 
8727
 
 
8728
 
 
8729
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8730
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8731
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
8732
 
  $as_echo_n "(cached) " >&6
8733
 
else
8734
 
  lt_cv_prog_compiler_c_o=no
8735
 
   $RM -r conftest 2>/dev/null
8736
 
   mkdir conftest
8737
 
   cd conftest
8738
 
   mkdir out
8739
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740
 
 
8741
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8742
 
   # Insert the option either (1) after the last *FLAGS variable, or
8743
 
   # (2) before a word containing "conftest.", or (3) at the end.
8744
 
   # Note that $ac_compile itself does not contain backslashes and begins
8745
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8746
 
   lt_compile=`echo "$ac_compile" | $SED \
8747
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749
 
   -e 's:$: $lt_compiler_flag:'`
8750
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751
 
   (eval "$lt_compile" 2>out/conftest.err)
8752
 
   ac_status=$?
8753
 
   cat out/conftest.err >&5
8754
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8756
 
   then
8757
 
     # The compiler can only warn and ignore the option if not recognized
8758
 
     # So say no if there are warnings
8759
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8760
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8761
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8762
 
       lt_cv_prog_compiler_c_o=yes
8763
 
     fi
8764
 
   fi
8765
 
   chmod u+w . 2>&5
8766
 
   $RM conftest*
8767
 
   # SGI C++ compiler will create directory out/ii_files/ for
8768
 
   # template instantiation
8769
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8770
 
   $RM out/* && rmdir out
8771
 
   cd ..
8772
 
   $RM -r conftest
8773
 
   $RM conftest*
8774
 
 
8775
 
fi
8776
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8777
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8778
 
 
8779
 
 
8780
 
 
8781
 
 
8782
 
hard_links="nottested"
8783
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8784
 
  # do not overwrite the value of need_locks provided by the user
8785
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8786
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
8787
 
  hard_links=yes
8788
 
  $RM conftest*
8789
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8790
 
  touch conftest.a
8791
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
8792
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8794
 
$as_echo "$hard_links" >&6; }
8795
 
  if test "$hard_links" = no; then
8796
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8797
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8798
 
    need_locks=warn
8799
 
  fi
8800
 
else
8801
 
  need_locks=no
8802
 
fi
8803
 
 
8804
 
 
8805
 
 
8806
 
 
8807
 
 
8808
 
 
8809
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8810
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8811
 
 
8812
 
  runpath_var=
8813
 
  allow_undefined_flag=
8814
 
  always_export_symbols=no
8815
 
  archive_cmds=
8816
 
  archive_expsym_cmds=
8817
 
  compiler_needs_object=no
8818
 
  enable_shared_with_static_runtimes=no
8819
 
  export_dynamic_flag_spec=
8820
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8821
 
  hardcode_automatic=no
8822
 
  hardcode_direct=no
8823
 
  hardcode_direct_absolute=no
8824
 
  hardcode_libdir_flag_spec=
8825
 
  hardcode_libdir_separator=
8826
 
  hardcode_minus_L=no
8827
 
  hardcode_shlibpath_var=unsupported
8828
 
  inherit_rpath=no
8829
 
  link_all_deplibs=unknown
8830
 
  module_cmds=
8831
 
  module_expsym_cmds=
8832
 
  old_archive_from_new_cmds=
8833
 
  old_archive_from_expsyms_cmds=
8834
 
  thread_safe_flag_spec=
8835
 
  whole_archive_flag_spec=
8836
 
  # include_expsyms should be a list of space-separated symbols to be *always*
8837
 
  # included in the symbol list
8838
 
  include_expsyms=
8839
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
8840
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8841
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8842
 
  # as well as any symbol that contains `d'.
8843
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8844
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8845
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8846
 
  # the symbol is explicitly referenced.  Since portable code cannot
8847
 
  # rely on this symbol name, it's probably fine to never include it in
8848
 
  # preloaded symbol tables.
8849
 
  # Exclude shared library initialization/finalization symbols.
8850
 
  extract_expsyms_cmds=
8851
 
 
8852
 
  case $host_os in
8853
 
  cygwin* | mingw* | pw32* | cegcc*)
8854
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8855
 
    # When not using gcc, we currently assume that we are using
8856
 
    # Microsoft Visual C++.
8857
 
    if test "$GCC" != yes; then
8858
 
      with_gnu_ld=no
8859
 
    fi
8860
 
    ;;
8861
 
  interix*)
8862
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8863
 
    with_gnu_ld=yes
8864
 
    ;;
8865
 
  openbsd*)
8866
 
    with_gnu_ld=no
8867
 
    ;;
8868
 
  linux* | k*bsd*-gnu | gnu*)
8869
 
    link_all_deplibs=no
8870
 
    ;;
8871
 
  esac
8872
 
 
8873
 
  ld_shlibs=yes
8874
 
 
8875
 
  # On some targets, GNU ld is compatible enough with the native linker
8876
 
  # that we're better off using the native interface for both.
8877
 
  lt_use_gnu_ld_interface=no
8878
 
  if test "$with_gnu_ld" = yes; then
8879
 
    case $host_os in
8880
 
      aix*)
8881
 
        # The AIX port of GNU ld has always aspired to compatibility
8882
 
        # with the native linker.  However, as the warning in the GNU ld
8883
 
        # block says, versions before 2.19.5* couldn't really create working
8884
 
        # shared libraries, regardless of the interface used.
8885
 
        case `$LD -v 2>&1` in
8886
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8887
 
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8888
 
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8889
 
          *)
8890
 
            lt_use_gnu_ld_interface=yes
8891
 
            ;;
8892
 
        esac
8893
 
        ;;
8894
 
      *)
8895
 
        lt_use_gnu_ld_interface=yes
8896
 
        ;;
8897
 
    esac
8898
 
  fi
8899
 
 
8900
 
  if test "$lt_use_gnu_ld_interface" = yes; then
8901
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
8902
 
    wlarc='${wl}'
8903
 
 
8904
 
    # Set some defaults for GNU ld with shared library support. These
8905
 
    # are reset later if shared libraries are not supported. Putting them
8906
 
    # here allows them to be overridden if necessary.
8907
 
    runpath_var=LD_RUN_PATH
8908
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
8910
 
    # ancient GNU ld didn't support --whole-archive et. al.
8911
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8912
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8913
 
    else
8914
 
      whole_archive_flag_spec=
8915
 
    fi
8916
 
    supports_anon_versioning=no
8917
 
    case `$LD -v 2>&1` in
8918
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
8919
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922
 
      *\ 2.11.*) ;; # other 2.11 versions
8923
 
      *) supports_anon_versioning=yes ;;
8924
 
    esac
8925
 
 
8926
 
    # See if GNU ld supports shared libraries.
8927
 
    case $host_os in
8928
 
    aix[3-9]*)
8929
 
      # On AIX/PPC, the GNU linker is very broken
8930
 
      if test "$host_cpu" != ia64; then
8931
 
        ld_shlibs=no
8932
 
        cat <<_LT_EOF 1>&2
8933
 
 
8934
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
8935
 
*** to be unable to reliably create shared libraries on AIX.
8936
 
*** Therefore, libtool is disabling shared libraries support.  If you
8937
 
*** really care for shared libraries, you may want to install binutils
8938
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8939
 
*** You will then need to restart the configuration process.
8940
 
 
8941
 
_LT_EOF
8942
 
      fi
8943
 
      ;;
8944
 
 
8945
 
    amigaos*)
8946
 
      case $host_cpu in
8947
 
      powerpc)
8948
 
            # see comment about AmigaOS4 .so support
8949
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950
 
            archive_expsym_cmds=''
8951
 
        ;;
8952
 
      m68k)
8953
 
            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)'
8954
 
            hardcode_libdir_flag_spec='-L$libdir'
8955
 
            hardcode_minus_L=yes
8956
 
        ;;
8957
 
      esac
8958
 
      ;;
8959
 
 
8960
 
    beos*)
8961
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962
 
        allow_undefined_flag=unsupported
8963
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8964
 
        # support --undefined.  This deserves some investigation.  FIXME
8965
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966
 
      else
8967
 
        ld_shlibs=no
8968
 
      fi
8969
 
      ;;
8970
 
 
8971
 
    cygwin* | mingw* | pw32* | cegcc*)
8972
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8973
 
      # as there is no search path for DLLs.
8974
 
      hardcode_libdir_flag_spec='-L$libdir'
8975
 
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8976
 
      allow_undefined_flag=unsupported
8977
 
      always_export_symbols=no
8978
 
      enable_shared_with_static_runtimes=yes
8979
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8980
 
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8981
 
 
8982
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8983
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8984
 
        # If the export-symbols file already is a .def file (1st line
8985
 
        # is EXPORTS), use it as is; otherwise, prepend...
8986
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8987
 
          cp $export_symbols $output_objdir/$soname.def;
8988
 
        else
8989
 
          echo EXPORTS > $output_objdir/$soname.def;
8990
 
          cat $export_symbols >> $output_objdir/$soname.def;
8991
 
        fi~
8992
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8993
 
      else
8994
 
        ld_shlibs=no
8995
 
      fi
8996
 
      ;;
8997
 
 
8998
 
    haiku*)
8999
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000
 
      link_all_deplibs=yes
9001
 
      ;;
9002
 
 
9003
 
    interix[3-9]*)
9004
 
      hardcode_direct=no
9005
 
      hardcode_shlibpath_var=no
9006
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9007
 
      export_dynamic_flag_spec='${wl}-E'
9008
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9009
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9010
 
      # default) and relocated if they conflict, which is a slow very memory
9011
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
9012
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9013
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9014
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9015
 
      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'
9016
 
      ;;
9017
 
 
9018
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9019
 
      tmp_diet=no
9020
 
      if test "$host_os" = linux-dietlibc; then
9021
 
        case $cc_basename in
9022
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9023
 
        esac
9024
 
      fi
9025
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9026
 
         && test "$tmp_diet" = no
9027
 
      then
9028
 
        tmp_addflag=' $pic_flag'
9029
 
        tmp_sharedflag='-shared'
9030
 
        case $cc_basename,$host_cpu in
9031
 
        pgcc*)                          # Portland Group C compiler
9032
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9033
 
          tmp_addflag=' $pic_flag'
9034
 
          ;;
9035
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
9036
 
                                        # Portland Group f77 and f90 compilers
9037
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9038
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
9039
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9040
 
          tmp_addflag=' -i_dynamic' ;;
9041
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9042
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9043
 
        ifc* | ifort*)                  # Intel Fortran compiler
9044
 
          tmp_addflag=' -nofor_main' ;;
9045
 
        lf95*)                          # Lahey Fortran 8.1
9046
 
          whole_archive_flag_spec=
9047
 
          tmp_sharedflag='--shared' ;;
9048
 
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9049
 
          tmp_sharedflag='-qmkshrobj'
9050
 
          tmp_addflag= ;;
9051
 
        nvcc*)  # Cuda Compiler Driver 2.2
9052
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9053
 
          compiler_needs_object=yes
9054
 
          ;;
9055
 
        esac
9056
 
        case `$CC -V 2>&1 | sed 5q` in
9057
 
        *Sun\ C*)                       # Sun C 5.9
9058
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9059
 
          compiler_needs_object=yes
9060
 
          tmp_sharedflag='-G' ;;
9061
 
        *Sun\ F*)                       # Sun Fortran 8.3
9062
 
          tmp_sharedflag='-G' ;;
9063
 
        esac
9064
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065
 
 
9066
 
        if test "x$supports_anon_versioning" = xyes; then
9067
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9068
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9069
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
9070
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9071
 
        fi
9072
 
 
9073
 
        case $cc_basename in
9074
 
        xlf* | bgf* | bgxlf* | mpixlf*)
9075
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9076
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9077
 
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078
 
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9079
 
          if test "x$supports_anon_versioning" = xyes; then
9080
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9081
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9082
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9083
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9084
 
          fi
9085
 
          ;;
9086
 
        esac
9087
 
      else
9088
 
        ld_shlibs=no
9089
 
      fi
9090
 
      ;;
9091
 
 
9092
 
    netbsd* | netbsdelf*-gnu)
9093
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9094
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9095
 
        wlarc=
9096
 
      else
9097
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099
 
      fi
9100
 
      ;;
9101
 
 
9102
 
    solaris*)
9103
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9104
 
        ld_shlibs=no
9105
 
        cat <<_LT_EOF 1>&2
9106
 
 
9107
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108
 
*** create shared libraries on Solaris systems.  Therefore, libtool
9109
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9110
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
9111
 
*** your PATH or compiler configuration so that the native linker is
9112
 
*** used, and then restart.
9113
 
 
9114
 
_LT_EOF
9115
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9118
 
      else
9119
 
        ld_shlibs=no
9120
 
      fi
9121
 
      ;;
9122
 
 
9123
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9124
 
      case `$LD -v 2>&1` in
9125
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9126
 
        ld_shlibs=no
9127
 
        cat <<_LT_EOF 1>&2
9128
 
 
9129
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9130
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9131
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9132
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9133
 
*** your PATH or compiler configuration so that the native linker is
9134
 
*** used, and then restart.
9135
 
 
9136
 
_LT_EOF
9137
 
        ;;
9138
 
        *)
9139
 
          # For security reasons, it is highly recommended that you always
9140
 
          # use absolute paths for naming shared libraries, and exclude the
9141
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
9142
 
          # requires that you compile everything twice, which is a pain.
9143
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9147
 
          else
9148
 
            ld_shlibs=no
9149
 
          fi
9150
 
        ;;
9151
 
      esac
9152
 
      ;;
9153
 
 
9154
 
    sunos4*)
9155
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156
 
      wlarc=
9157
 
      hardcode_direct=yes
9158
 
      hardcode_shlibpath_var=no
9159
 
      ;;
9160
 
 
9161
 
    *)
9162
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165
 
      else
9166
 
        ld_shlibs=no
9167
 
      fi
9168
 
      ;;
9169
 
    esac
9170
 
 
9171
 
    if test "$ld_shlibs" = no; then
9172
 
      runpath_var=
9173
 
      hardcode_libdir_flag_spec=
9174
 
      export_dynamic_flag_spec=
9175
 
      whole_archive_flag_spec=
9176
 
    fi
9177
 
  else
9178
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9179
 
    case $host_os in
9180
 
    aix3*)
9181
 
      allow_undefined_flag=unsupported
9182
 
      always_export_symbols=yes
9183
 
      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'
9184
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9185
 
      # are no directories specified by -L.
9186
 
      hardcode_minus_L=yes
9187
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9188
 
        # Neither direct hardcoding nor static linking is supported with a
9189
 
        # broken collect2.
9190
 
        hardcode_direct=unsupported
9191
 
      fi
9192
 
      ;;
9193
 
 
9194
 
    aix[4-9]*)
9195
 
      if test "$host_cpu" = ia64; then
9196
 
        # On IA64, the linker does run time linking by default, so we don't
9197
 
        # have to do anything special.
9198
 
        aix_use_runtimelinking=no
9199
 
        exp_sym_flag='-Bexport'
9200
 
        no_entry_flag=""
9201
 
      else
9202
 
        # If we're using GNU nm, then we don't want the "-C" option.
9203
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9204
 
        # Also, AIX nm treats weak defined symbols like other global
9205
 
        # defined symbols, whereas GNU nm marks them as "W".
9206
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9207
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9208
 
        else
9209
 
          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'
9210
 
        fi
9211
 
        aix_use_runtimelinking=no
9212
 
 
9213
 
        # Test if we are trying to use run time linking or normal
9214
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9215
 
        # need to do runtime linking.
9216
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9217
 
          for ld_flag in $LDFLAGS; do
9218
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9219
 
            aix_use_runtimelinking=yes
9220
 
            break
9221
 
          fi
9222
 
          done
9223
 
          ;;
9224
 
        esac
9225
 
 
9226
 
        exp_sym_flag='-bexport'
9227
 
        no_entry_flag='-bnoentry'
9228
 
      fi
9229
 
 
9230
 
      # When large executables or shared objects are built, AIX ld can
9231
 
      # have problems creating the table of contents.  If linking a library
9232
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9233
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9234
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9235
 
 
9236
 
      archive_cmds=''
9237
 
      hardcode_direct=yes
9238
 
      hardcode_direct_absolute=yes
9239
 
      hardcode_libdir_separator=':'
9240
 
      link_all_deplibs=yes
9241
 
      file_list_spec='${wl}-f,'
9242
 
 
9243
 
      if test "$GCC" = yes; then
9244
 
        case $host_os in aix4.[012]|aix4.[012].*)
9245
 
        # We only want to do this on AIX 4.2 and lower, the check
9246
 
        # below for broken collect2 doesn't work under 4.3+
9247
 
          collect2name=`${CC} -print-prog-name=collect2`
9248
 
          if test -f "$collect2name" &&
9249
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9250
 
          then
9251
 
          # We have reworked collect2
9252
 
          :
9253
 
          else
9254
 
          # We have old collect2
9255
 
          hardcode_direct=unsupported
9256
 
          # It fails to find uninstalled libraries when the uninstalled
9257
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9258
 
          # to unsupported forces relinking
9259
 
          hardcode_minus_L=yes
9260
 
          hardcode_libdir_flag_spec='-L$libdir'
9261
 
          hardcode_libdir_separator=
9262
 
          fi
9263
 
          ;;
9264
 
        esac
9265
 
        shared_flag='-shared'
9266
 
        if test "$aix_use_runtimelinking" = yes; then
9267
 
          shared_flag="$shared_flag "'${wl}-G'
9268
 
        fi
9269
 
        link_all_deplibs=no
9270
 
      else
9271
 
        # not using gcc
9272
 
        if test "$host_cpu" = ia64; then
9273
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9274
 
        # chokes on -Wl,-G. The following line is correct:
9275
 
          shared_flag='-G'
9276
 
        else
9277
 
          if test "$aix_use_runtimelinking" = yes; then
9278
 
            shared_flag='${wl}-G'
9279
 
          else
9280
 
            shared_flag='${wl}-bM:SRE'
9281
 
          fi
9282
 
        fi
9283
 
      fi
9284
 
 
9285
 
      export_dynamic_flag_spec='${wl}-bexpall'
9286
 
      # It seems that -bexpall does not export symbols beginning with
9287
 
      # underscore (_), so it is better to generate a list of symbols to export.
9288
 
      always_export_symbols=yes
9289
 
      if test "$aix_use_runtimelinking" = yes; then
9290
 
        # Warning - without using the other runtime loading flags (-brtl),
9291
 
        # -berok will link without error, but may produce a broken library.
9292
 
        allow_undefined_flag='-berok'
9293
 
        # Determine the default libpath from the value encoded in an
9294
 
        # empty executable.
9295
 
        if test "${lt_cv_aix_libpath+set}" = set; then
9296
 
  aix_libpath=$lt_cv_aix_libpath
9297
 
else
9298
 
  if ${lt_cv_aix_libpath_+:} false; then :
9299
 
  $as_echo_n "(cached) " >&6
9300
 
else
9301
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302
 
/* end confdefs.h.  */
9303
 
 
9304
 
int
9305
 
main ()
9306
 
{
9307
 
 
9308
 
  ;
9309
 
  return 0;
9310
 
}
9311
 
_ACEOF
9312
 
if ac_fn_c_try_link "$LINENO"; then :
9313
 
 
9314
 
  lt_aix_libpath_sed='
9315
 
      /Import File Strings/,/^$/ {
9316
 
          /^0/ {
9317
 
              s/^0  *\([^ ]*\) *$/\1/
9318
 
              p
9319
 
          }
9320
 
      }'
9321
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9322
 
  # Check for a 64-bit object if we didn't find anything.
9323
 
  if test -z "$lt_cv_aix_libpath_"; then
9324
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9325
 
  fi
9326
 
fi
9327
 
rm -f core conftest.err conftest.$ac_objext \
9328
 
    conftest$ac_exeext conftest.$ac_ext
9329
 
  if test -z "$lt_cv_aix_libpath_"; then
9330
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
9331
 
  fi
9332
 
 
9333
 
fi
9334
 
 
9335
 
  aix_libpath=$lt_cv_aix_libpath_
9336
 
fi
9337
 
 
9338
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9339
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9340
 
      else
9341
 
        if test "$host_cpu" = ia64; then
9342
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9343
 
          allow_undefined_flag="-z nodefs"
9344
 
          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"
9345
 
        else
9346
 
         # Determine the default libpath from the value encoded in an
9347
 
         # empty executable.
9348
 
         if test "${lt_cv_aix_libpath+set}" = set; then
9349
 
  aix_libpath=$lt_cv_aix_libpath
9350
 
else
9351
 
  if ${lt_cv_aix_libpath_+:} false; then :
9352
 
  $as_echo_n "(cached) " >&6
9353
 
else
9354
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355
 
/* end confdefs.h.  */
9356
 
 
9357
 
int
9358
 
main ()
9359
 
{
9360
 
 
9361
 
  ;
9362
 
  return 0;
9363
 
}
9364
 
_ACEOF
9365
 
if ac_fn_c_try_link "$LINENO"; then :
9366
 
 
9367
 
  lt_aix_libpath_sed='
9368
 
      /Import File Strings/,/^$/ {
9369
 
          /^0/ {
9370
 
              s/^0  *\([^ ]*\) *$/\1/
9371
 
              p
9372
 
          }
9373
 
      }'
9374
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9375
 
  # Check for a 64-bit object if we didn't find anything.
9376
 
  if test -z "$lt_cv_aix_libpath_"; then
9377
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9378
 
  fi
9379
 
fi
9380
 
rm -f core conftest.err conftest.$ac_objext \
9381
 
    conftest$ac_exeext conftest.$ac_ext
9382
 
  if test -z "$lt_cv_aix_libpath_"; then
9383
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
9384
 
  fi
9385
 
 
9386
 
fi
9387
 
 
9388
 
  aix_libpath=$lt_cv_aix_libpath_
9389
 
fi
9390
 
 
9391
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9392
 
          # Warning - without using the other run time loading flags,
9393
 
          # -berok will link without error, but may produce a broken library.
9394
 
          no_undefined_flag=' ${wl}-bernotok'
9395
 
          allow_undefined_flag=' ${wl}-berok'
9396
 
          if test "$with_gnu_ld" = yes; then
9397
 
            # We only use this code for GNU lds that support --whole-archive.
9398
 
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9399
 
          else
9400
 
            # Exported symbols can be pulled into shared objects from archives
9401
 
            whole_archive_flag_spec='$convenience'
9402
 
          fi
9403
 
          archive_cmds_need_lc=yes
9404
 
          # This is similar to how AIX traditionally builds its shared libraries.
9405
 
          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'
9406
 
        fi
9407
 
      fi
9408
 
      ;;
9409
 
 
9410
 
    amigaos*)
9411
 
      case $host_cpu in
9412
 
      powerpc)
9413
 
            # see comment about AmigaOS4 .so support
9414
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415
 
            archive_expsym_cmds=''
9416
 
        ;;
9417
 
      m68k)
9418
 
            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)'
9419
 
            hardcode_libdir_flag_spec='-L$libdir'
9420
 
            hardcode_minus_L=yes
9421
 
        ;;
9422
 
      esac
9423
 
      ;;
9424
 
 
9425
 
    bsdi[45]*)
9426
 
      export_dynamic_flag_spec=-rdynamic
9427
 
      ;;
9428
 
 
9429
 
    cygwin* | mingw* | pw32* | cegcc*)
9430
 
      # When not using gcc, we currently assume that we are using
9431
 
      # Microsoft Visual C++.
9432
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9433
 
      # no search path for DLLs.
9434
 
      case $cc_basename in
9435
 
      cl*)
9436
 
        # Native MSVC
9437
 
        hardcode_libdir_flag_spec=' '
9438
 
        allow_undefined_flag=unsupported
9439
 
        always_export_symbols=yes
9440
 
        file_list_spec='@'
9441
 
        # Tell ltmain to make .lib files, not .a files.
9442
 
        libext=lib
9443
 
        # Tell ltmain to make .dll files, not .so files.
9444
 
        shrext_cmds=".dll"
9445
 
        # FIXME: Setting linknames here is a bad hack.
9446
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9447
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9448
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9449
 
          else
9450
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9451
 
          fi~
9452
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9453
 
          linknames='
9454
 
        # The linker will not automatically build a static lib if we build a DLL.
9455
 
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9456
 
        enable_shared_with_static_runtimes=yes
9457
 
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9458
 
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9459
 
        # Don't use ranlib
9460
 
        old_postinstall_cmds='chmod 644 $oldlib'
9461
 
        postlink_cmds='lt_outputfile="@OUTPUT@"~
9462
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
9463
 
          case $lt_outputfile in
9464
 
            *.exe|*.EXE) ;;
9465
 
            *)
9466
 
              lt_outputfile="$lt_outputfile.exe"
9467
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
9468
 
              ;;
9469
 
          esac~
9470
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9471
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9472
 
            $RM "$lt_outputfile.manifest";
9473
 
          fi'
9474
 
        ;;
9475
 
      *)
9476
 
        # Assume MSVC wrapper
9477
 
        hardcode_libdir_flag_spec=' '
9478
 
        allow_undefined_flag=unsupported
9479
 
        # Tell ltmain to make .lib files, not .a files.
9480
 
        libext=lib
9481
 
        # Tell ltmain to make .dll files, not .so files.
9482
 
        shrext_cmds=".dll"
9483
 
        # FIXME: Setting linknames here is a bad hack.
9484
 
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9485
 
        # The linker will automatically build a .lib file if we build a DLL.
9486
 
        old_archive_from_new_cmds='true'
9487
 
        # FIXME: Should let the user specify the lib program.
9488
 
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9489
 
        enable_shared_with_static_runtimes=yes
9490
 
        ;;
9491
 
      esac
9492
 
      ;;
9493
 
 
9494
 
    darwin* | rhapsody*)
9495
 
 
9496
 
 
9497
 
  archive_cmds_need_lc=no
9498
 
  hardcode_direct=no
9499
 
  hardcode_automatic=yes
9500
 
  hardcode_shlibpath_var=unsupported
9501
 
  if test "$lt_cv_ld_force_load" = "yes"; then
9502
 
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9503
 
 
9504
 
  else
9505
 
    whole_archive_flag_spec=''
9506
 
  fi
9507
 
  link_all_deplibs=yes
9508
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9509
 
  case $cc_basename in
9510
 
     ifort*) _lt_dar_can_shared=yes ;;
9511
 
     *) _lt_dar_can_shared=$GCC ;;
9512
 
  esac
9513
 
  if test "$_lt_dar_can_shared" = "yes"; then
9514
 
    output_verbose_link_cmd=func_echo_all
9515
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9516
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9517
 
    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}"
9518
 
    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}"
9519
 
 
9520
 
  else
9521
 
  ld_shlibs=no
9522
 
  fi
9523
 
 
9524
 
      ;;
9525
 
 
9526
 
    dgux*)
9527
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528
 
      hardcode_libdir_flag_spec='-L$libdir'
9529
 
      hardcode_shlibpath_var=no
9530
 
      ;;
9531
 
 
9532
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9533
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9534
 
    # does not break anything, and helps significantly (at the cost of a little
9535
 
    # extra space).
9536
 
    freebsd2.2*)
9537
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9538
 
      hardcode_libdir_flag_spec='-R$libdir'
9539
 
      hardcode_direct=yes
9540
 
      hardcode_shlibpath_var=no
9541
 
      ;;
9542
 
 
9543
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9544
 
    freebsd2.*)
9545
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546
 
      hardcode_direct=yes
9547
 
      hardcode_minus_L=yes
9548
 
      hardcode_shlibpath_var=no
9549
 
      ;;
9550
 
 
9551
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9552
 
    freebsd* | dragonfly*)
9553
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9554
 
      hardcode_libdir_flag_spec='-R$libdir'
9555
 
      hardcode_direct=yes
9556
 
      hardcode_shlibpath_var=no
9557
 
      ;;
9558
 
 
9559
 
    hpux9*)
9560
 
      if test "$GCC" = yes; then
9561
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9562
 
      else
9563
 
        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'
9564
 
      fi
9565
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9566
 
      hardcode_libdir_separator=:
9567
 
      hardcode_direct=yes
9568
 
 
9569
 
      # hardcode_minus_L: Not really in the search PATH,
9570
 
      # but as the default location of the library.
9571
 
      hardcode_minus_L=yes
9572
 
      export_dynamic_flag_spec='${wl}-E'
9573
 
      ;;
9574
 
 
9575
 
    hpux10*)
9576
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9577
 
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9578
 
      else
9579
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9580
 
      fi
9581
 
      if test "$with_gnu_ld" = no; then
9582
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9583
 
        hardcode_libdir_separator=:
9584
 
        hardcode_direct=yes
9585
 
        hardcode_direct_absolute=yes
9586
 
        export_dynamic_flag_spec='${wl}-E'
9587
 
        # hardcode_minus_L: Not really in the search PATH,
9588
 
        # but as the default location of the library.
9589
 
        hardcode_minus_L=yes
9590
 
      fi
9591
 
      ;;
9592
 
 
9593
 
    hpux11*)
9594
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9595
 
        case $host_cpu in
9596
 
        hppa*64*)
9597
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598
 
          ;;
9599
 
        ia64*)
9600
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9601
 
          ;;
9602
 
        *)
9603
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9604
 
          ;;
9605
 
        esac
9606
 
      else
9607
 
        case $host_cpu in
9608
 
        hppa*64*)
9609
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9610
 
          ;;
9611
 
        ia64*)
9612
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9613
 
          ;;
9614
 
        *)
9615
 
 
9616
 
          # Older versions of the 11.00 compiler do not understand -b yet
9617
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9618
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9619
 
$as_echo_n "checking if $CC understands -b... " >&6; }
9620
 
if ${lt_cv_prog_compiler__b+:} false; then :
9621
 
  $as_echo_n "(cached) " >&6
9622
 
else
9623
 
  lt_cv_prog_compiler__b=no
9624
 
   save_LDFLAGS="$LDFLAGS"
9625
 
   LDFLAGS="$LDFLAGS -b"
9626
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9627
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9628
 
     # The linker can only warn and ignore the option if not recognized
9629
 
     # So say no if there are warnings
9630
 
     if test -s conftest.err; then
9631
 
       # Append any errors to the config.log.
9632
 
       cat conftest.err 1>&5
9633
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9634
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9635
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9636
 
         lt_cv_prog_compiler__b=yes
9637
 
       fi
9638
 
     else
9639
 
       lt_cv_prog_compiler__b=yes
9640
 
     fi
9641
 
   fi
9642
 
   $RM -r conftest*
9643
 
   LDFLAGS="$save_LDFLAGS"
9644
 
 
9645
 
fi
9646
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9647
 
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9648
 
 
9649
 
if test x"$lt_cv_prog_compiler__b" = xyes; then
9650
 
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9651
 
else
9652
 
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9653
 
fi
9654
 
 
9655
 
          ;;
9656
 
        esac
9657
 
      fi
9658
 
      if test "$with_gnu_ld" = no; then
9659
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660
 
        hardcode_libdir_separator=:
9661
 
 
9662
 
        case $host_cpu in
9663
 
        hppa*64*|ia64*)
9664
 
          hardcode_direct=no
9665
 
          hardcode_shlibpath_var=no
9666
 
          ;;
9667
 
        *)
9668
 
          hardcode_direct=yes
9669
 
          hardcode_direct_absolute=yes
9670
 
          export_dynamic_flag_spec='${wl}-E'
9671
 
 
9672
 
          # hardcode_minus_L: Not really in the search PATH,
9673
 
          # but as the default location of the library.
9674
 
          hardcode_minus_L=yes
9675
 
          ;;
9676
 
        esac
9677
 
      fi
9678
 
      ;;
9679
 
 
9680
 
    irix5* | irix6* | nonstopux*)
9681
 
      if test "$GCC" = yes; then
9682
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9683
 
        # Try to use the -exported_symbol ld option, if it does not
9684
 
        # work, assume that -exports_file does not work either and
9685
 
        # implicitly export all symbols.
9686
 
        # This should be the same for all languages, so no per-tag cache variable.
9687
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9688
 
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9689
 
if ${lt_cv_irix_exported_symbol+:} false; then :
9690
 
  $as_echo_n "(cached) " >&6
9691
 
else
9692
 
  save_LDFLAGS="$LDFLAGS"
9693
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9694
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695
 
/* end confdefs.h.  */
9696
 
int foo (void) { return 0; }
9697
 
_ACEOF
9698
 
if ac_fn_c_try_link "$LINENO"; then :
9699
 
  lt_cv_irix_exported_symbol=yes
9700
 
else
9701
 
  lt_cv_irix_exported_symbol=no
9702
 
fi
9703
 
rm -f core conftest.err conftest.$ac_objext \
9704
 
    conftest$ac_exeext conftest.$ac_ext
9705
 
           LDFLAGS="$save_LDFLAGS"
9706
 
fi
9707
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9708
 
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9709
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
9710
 
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9711
 
        fi
9712
 
      else
9713
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9714
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9715
 
      fi
9716
 
      archive_cmds_need_lc='no'
9717
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718
 
      hardcode_libdir_separator=:
9719
 
      inherit_rpath=yes
9720
 
      link_all_deplibs=yes
9721
 
      ;;
9722
 
 
9723
 
    netbsd* | netbsdelf*-gnu)
9724
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9725
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9726
 
      else
9727
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9728
 
      fi
9729
 
      hardcode_libdir_flag_spec='-R$libdir'
9730
 
      hardcode_direct=yes
9731
 
      hardcode_shlibpath_var=no
9732
 
      ;;
9733
 
 
9734
 
    newsos6)
9735
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736
 
      hardcode_direct=yes
9737
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738
 
      hardcode_libdir_separator=:
9739
 
      hardcode_shlibpath_var=no
9740
 
      ;;
9741
 
 
9742
 
    *nto* | *qnx*)
9743
 
      ;;
9744
 
 
9745
 
    openbsd*)
9746
 
      if test -f /usr/libexec/ld.so; then
9747
 
        hardcode_direct=yes
9748
 
        hardcode_shlibpath_var=no
9749
 
        hardcode_direct_absolute=yes
9750
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9751
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9752
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9753
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9754
 
          export_dynamic_flag_spec='${wl}-E'
9755
 
        else
9756
 
          case $host_os in
9757
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9758
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759
 
             hardcode_libdir_flag_spec='-R$libdir'
9760
 
             ;;
9761
 
           *)
9762
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9763
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9764
 
             ;;
9765
 
          esac
9766
 
        fi
9767
 
      else
9768
 
        ld_shlibs=no
9769
 
      fi
9770
 
      ;;
9771
 
 
9772
 
    os2*)
9773
 
      hardcode_libdir_flag_spec='-L$libdir'
9774
 
      hardcode_minus_L=yes
9775
 
      allow_undefined_flag=unsupported
9776
 
      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'
9777
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9778
 
      ;;
9779
 
 
9780
 
    osf3*)
9781
 
      if test "$GCC" = yes; then
9782
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9783
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9784
 
      else
9785
 
        allow_undefined_flag=' -expect_unresolved \*'
9786
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9787
 
      fi
9788
 
      archive_cmds_need_lc='no'
9789
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790
 
      hardcode_libdir_separator=:
9791
 
      ;;
9792
 
 
9793
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9794
 
      if test "$GCC" = yes; then
9795
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9796
 
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9797
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798
 
      else
9799
 
        allow_undefined_flag=' -expect_unresolved \*'
9800
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9801
 
        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~
9802
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9803
 
 
9804
 
        # Both c and cxx compiler support -rpath directly
9805
 
        hardcode_libdir_flag_spec='-rpath $libdir'
9806
 
      fi
9807
 
      archive_cmds_need_lc='no'
9808
 
      hardcode_libdir_separator=:
9809
 
      ;;
9810
 
 
9811
 
    solaris*)
9812
 
      no_undefined_flag=' -z defs'
9813
 
      if test "$GCC" = yes; then
9814
 
        wlarc='${wl}'
9815
 
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9817
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9818
 
      else
9819
 
        case `$CC -V 2>&1` in
9820
 
        *"Compilers 5.0"*)
9821
 
          wlarc=''
9822
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9825
 
          ;;
9826
 
        *)
9827
 
          wlarc='${wl}'
9828
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9829
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9830
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9831
 
          ;;
9832
 
        esac
9833
 
      fi
9834
 
      hardcode_libdir_flag_spec='-R$libdir'
9835
 
      hardcode_shlibpath_var=no
9836
 
      case $host_os in
9837
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9838
 
      *)
9839
 
        # The compiler driver will combine and reorder linker options,
9840
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9841
 
        # but is careful enough not to reorder.
9842
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9843
 
        if test "$GCC" = yes; then
9844
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9845
 
        else
9846
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9847
 
        fi
9848
 
        ;;
9849
 
      esac
9850
 
      link_all_deplibs=yes
9851
 
      ;;
9852
 
 
9853
 
    sunos4*)
9854
 
      if test "x$host_vendor" = xsequent; then
9855
 
        # Use $CC to link under sequent, because it throws in some extra .o
9856
 
        # files that make .init and .fini sections work.
9857
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9858
 
      else
9859
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9860
 
      fi
9861
 
      hardcode_libdir_flag_spec='-L$libdir'
9862
 
      hardcode_direct=yes
9863
 
      hardcode_minus_L=yes
9864
 
      hardcode_shlibpath_var=no
9865
 
      ;;
9866
 
 
9867
 
    sysv4)
9868
 
      case $host_vendor in
9869
 
        sni)
9870
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871
 
          hardcode_direct=yes # is this really true???
9872
 
        ;;
9873
 
        siemens)
9874
 
          ## LD is ld it makes a PLAMLIB
9875
 
          ## CC just makes a GrossModule.
9876
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9877
 
          reload_cmds='$CC -r -o $output$reload_objs'
9878
 
          hardcode_direct=no
9879
 
        ;;
9880
 
        motorola)
9881
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9883
 
        ;;
9884
 
      esac
9885
 
      runpath_var='LD_RUN_PATH'
9886
 
      hardcode_shlibpath_var=no
9887
 
      ;;
9888
 
 
9889
 
    sysv4.3*)
9890
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891
 
      hardcode_shlibpath_var=no
9892
 
      export_dynamic_flag_spec='-Bexport'
9893
 
      ;;
9894
 
 
9895
 
    sysv4*MP*)
9896
 
      if test -d /usr/nec; then
9897
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898
 
        hardcode_shlibpath_var=no
9899
 
        runpath_var=LD_RUN_PATH
9900
 
        hardcode_runpath_var=yes
9901
 
        ld_shlibs=yes
9902
 
      fi
9903
 
      ;;
9904
 
 
9905
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9906
 
      no_undefined_flag='${wl}-z,text'
9907
 
      archive_cmds_need_lc=no
9908
 
      hardcode_shlibpath_var=no
9909
 
      runpath_var='LD_RUN_PATH'
9910
 
 
9911
 
      if test "$GCC" = yes; then
9912
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914
 
      else
9915
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917
 
      fi
9918
 
      ;;
9919
 
 
9920
 
    sysv5* | sco3.2v5* | sco5v6*)
9921
 
      # Note: We can NOT use -z defs as we might desire, because we do not
9922
 
      # link with -lc, and that would cause any symbols used from libc to
9923
 
      # always be unresolved, which means just about no library would
9924
 
      # ever link correctly.  If we're not using GNU ld we use -z text
9925
 
      # though, which does catch some bad symbols but isn't as heavy-handed
9926
 
      # as -z defs.
9927
 
      no_undefined_flag='${wl}-z,text'
9928
 
      allow_undefined_flag='${wl}-z,nodefs'
9929
 
      archive_cmds_need_lc=no
9930
 
      hardcode_shlibpath_var=no
9931
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9932
 
      hardcode_libdir_separator=':'
9933
 
      link_all_deplibs=yes
9934
 
      export_dynamic_flag_spec='${wl}-Bexport'
9935
 
      runpath_var='LD_RUN_PATH'
9936
 
 
9937
 
      if test "$GCC" = yes; then
9938
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940
 
      else
9941
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943
 
      fi
9944
 
      ;;
9945
 
 
9946
 
    uts4*)
9947
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948
 
      hardcode_libdir_flag_spec='-L$libdir'
9949
 
      hardcode_shlibpath_var=no
9950
 
      ;;
9951
 
 
9952
 
    *)
9953
 
      ld_shlibs=no
9954
 
      ;;
9955
 
    esac
9956
 
 
9957
 
    if test x$host_vendor = xsni; then
9958
 
      case $host in
9959
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9960
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9961
 
        ;;
9962
 
      esac
9963
 
    fi
9964
 
  fi
9965
 
 
9966
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9967
 
$as_echo "$ld_shlibs" >&6; }
9968
 
test "$ld_shlibs" = no && can_build_shared=no
9969
 
 
9970
 
with_gnu_ld=$with_gnu_ld
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
#
9987
 
# Do we need to explicitly link libc?
9988
 
#
9989
 
case "x$archive_cmds_need_lc" in
9990
 
x|xyes)
9991
 
  # Assume -lc should be added
9992
 
  archive_cmds_need_lc=yes
9993
 
 
9994
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9995
 
    case $archive_cmds in
9996
 
    *'~'*)
9997
 
      # FIXME: we may have to deal with multi-command sequences.
9998
 
      ;;
9999
 
    '$CC '*)
10000
 
      # Test whether the compiler implicitly links with -lc since on some
10001
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10002
 
      # to ld, don't add -lc before -lgcc.
10003
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10004
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10005
 
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10006
 
  $as_echo_n "(cached) " >&6
10007
 
else
10008
 
  $RM conftest*
10009
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010
 
 
10011
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10012
 
  (eval $ac_compile) 2>&5
10013
 
  ac_status=$?
10014
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10015
 
  test $ac_status = 0; } 2>conftest.err; then
10016
 
          soname=conftest
10017
 
          lib=conftest
10018
 
          libobjs=conftest.$ac_objext
10019
 
          deplibs=
10020
 
          wl=$lt_prog_compiler_wl
10021
 
          pic_flag=$lt_prog_compiler_pic
10022
 
          compiler_flags=-v
10023
 
          linker_flags=-v
10024
 
          verstring=
10025
 
          output_objdir=.
10026
 
          libname=conftest
10027
 
          lt_save_allow_undefined_flag=$allow_undefined_flag
10028
 
          allow_undefined_flag=
10029
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10030
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10031
 
  ac_status=$?
10032
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10033
 
  test $ac_status = 0; }
10034
 
          then
10035
 
            lt_cv_archive_cmds_need_lc=no
10036
 
          else
10037
 
            lt_cv_archive_cmds_need_lc=yes
10038
 
          fi
10039
 
          allow_undefined_flag=$lt_save_allow_undefined_flag
10040
 
        else
10041
 
          cat conftest.err 1>&5
10042
 
        fi
10043
 
        $RM conftest*
10044
 
 
10045
 
fi
10046
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10047
 
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10048
 
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10049
 
      ;;
10050
 
    esac
10051
 
  fi
10052
 
  ;;
10053
 
esac
10054
 
 
10055
 
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
 
 
10102
 
 
10103
 
 
10104
 
 
10105
 
 
10106
 
 
10107
 
 
10108
 
 
10109
 
 
10110
 
 
10111
 
 
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10207
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10208
 
 
10209
 
if test "$GCC" = yes; then
10210
 
  case $host_os in
10211
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10212
 
    *) lt_awk_arg="/^libraries:/" ;;
10213
 
  esac
10214
 
  case $host_os in
10215
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10216
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10217
 
  esac
10218
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10219
 
  case $lt_search_path_spec in
10220
 
  *\;*)
10221
 
    # if the path contains ";" then we assume it to be the separator
10222
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10223
 
    # assumed that no part of a normal pathname contains ";" but that should
10224
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10225
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10226
 
    ;;
10227
 
  *)
10228
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10229
 
    ;;
10230
 
  esac
10231
 
  # Ok, now we have the path, separated by spaces, we can step through it
10232
 
  # and add multilib dir if necessary.
10233
 
  lt_tmp_lt_search_path_spec=
10234
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10235
 
  for lt_sys_path in $lt_search_path_spec; do
10236
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10237
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10238
 
    else
10239
 
      test -d "$lt_sys_path" && \
10240
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10241
 
    fi
10242
 
  done
10243
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10244
 
BEGIN {RS=" "; FS="/|\n";} {
10245
 
  lt_foo="";
10246
 
  lt_count=0;
10247
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
10248
 
    if ($lt_i != "" && $lt_i != ".") {
10249
 
      if ($lt_i == "..") {
10250
 
        lt_count++;
10251
 
      } else {
10252
 
        if (lt_count == 0) {
10253
 
          lt_foo="/" $lt_i lt_foo;
10254
 
        } else {
10255
 
          lt_count--;
10256
 
        }
10257
 
      }
10258
 
    }
10259
 
  }
10260
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10261
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10262
 
}'`
10263
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
10264
 
  # for these hosts.
10265
 
  case $host_os in
10266
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10267
 
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10268
 
  esac
10269
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10270
 
else
10271
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10272
 
fi
10273
 
library_names_spec=
10274
 
libname_spec='lib$name'
10275
 
soname_spec=
10276
 
shrext_cmds=".so"
10277
 
postinstall_cmds=
10278
 
postuninstall_cmds=
10279
 
finish_cmds=
10280
 
finish_eval=
10281
 
shlibpath_var=
10282
 
shlibpath_overrides_runpath=unknown
10283
 
version_type=none
10284
 
dynamic_linker="$host_os ld.so"
10285
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10286
 
need_lib_prefix=unknown
10287
 
hardcode_into_libs=no
10288
 
 
10289
 
# when you set need_version to no, make sure it does not cause -set_version
10290
 
# flags to be left without arguments
10291
 
need_version=unknown
10292
 
 
10293
 
case $host_os in
10294
 
aix3*)
10295
 
  version_type=linux # correct to gnu/linux during the next big refactor
10296
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10297
 
  shlibpath_var=LIBPATH
10298
 
 
10299
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10300
 
  soname_spec='${libname}${release}${shared_ext}$major'
10301
 
  ;;
10302
 
 
10303
 
aix[4-9]*)
10304
 
  version_type=linux # correct to gnu/linux during the next big refactor
10305
 
  need_lib_prefix=no
10306
 
  need_version=no
10307
 
  hardcode_into_libs=yes
10308
 
  if test "$host_cpu" = ia64; then
10309
 
    # AIX 5 supports IA64
10310
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10311
 
    shlibpath_var=LD_LIBRARY_PATH
10312
 
  else
10313
 
    # With GCC up to 2.95.x, collect2 would create an import file
10314
 
    # for dependence libraries.  The import file would start with
10315
 
    # the line `#! .'.  This would cause the generated library to
10316
 
    # depend on `.', always an invalid library.  This was fixed in
10317
 
    # development snapshots of GCC prior to 3.0.
10318
 
    case $host_os in
10319
 
      aix4 | aix4.[01] | aix4.[01].*)
10320
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10321
 
           echo ' yes '
10322
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10323
 
        :
10324
 
      else
10325
 
        can_build_shared=no
10326
 
      fi
10327
 
      ;;
10328
 
    esac
10329
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10330
 
    # soname into executable. Probably we can add versioning support to
10331
 
    # collect2, so additional links can be useful in future.
10332
 
    if test "$aix_use_runtimelinking" = yes; then
10333
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10334
 
      # instead of lib<name>.a to let people know that these are not
10335
 
      # typical AIX shared libraries.
10336
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337
 
    else
10338
 
      # We preserve .a as extension for shared libraries through AIX4.2
10339
 
      # and later when we are not doing run time linking.
10340
 
      library_names_spec='${libname}${release}.a $libname.a'
10341
 
      soname_spec='${libname}${release}${shared_ext}$major'
10342
 
    fi
10343
 
    shlibpath_var=LIBPATH
10344
 
  fi
10345
 
  ;;
10346
 
 
10347
 
amigaos*)
10348
 
  case $host_cpu in
10349
 
  powerpc)
10350
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10351
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10352
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353
 
    ;;
10354
 
  m68k)
10355
 
    library_names_spec='$libname.ixlibrary $libname.a'
10356
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10357
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10358
 
    ;;
10359
 
  esac
10360
 
  ;;
10361
 
 
10362
 
beos*)
10363
 
  library_names_spec='${libname}${shared_ext}'
10364
 
  dynamic_linker="$host_os ld.so"
10365
 
  shlibpath_var=LIBRARY_PATH
10366
 
  ;;
10367
 
 
10368
 
bsdi[45]*)
10369
 
  version_type=linux # correct to gnu/linux during the next big refactor
10370
 
  need_version=no
10371
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372
 
  soname_spec='${libname}${release}${shared_ext}$major'
10373
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10374
 
  shlibpath_var=LD_LIBRARY_PATH
10375
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10376
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10377
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10378
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10379
 
  # libtool to hard-code these into programs
10380
 
  ;;
10381
 
 
10382
 
cygwin* | mingw* | pw32* | cegcc*)
10383
 
  version_type=windows
10384
 
  shrext_cmds=".dll"
10385
 
  need_version=no
10386
 
  need_lib_prefix=no
10387
 
 
10388
 
  case $GCC,$cc_basename in
10389
 
  yes,*)
10390
 
    # gcc
10391
 
    library_names_spec='$libname.dll.a'
10392
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393
 
    postinstall_cmds='base_file=`basename \${file}`~
10394
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10395
 
      dldir=$destdir/`dirname \$dlpath`~
10396
 
      test -d \$dldir || mkdir -p \$dldir~
10397
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10398
 
      chmod a+x \$dldir/$dlname~
10399
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10400
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10401
 
      fi'
10402
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10403
 
      dlpath=$dir/\$dldll~
10404
 
       $RM \$dlpath'
10405
 
    shlibpath_overrides_runpath=yes
10406
 
 
10407
 
    case $host_os in
10408
 
    cygwin*)
10409
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10410
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10411
 
 
10412
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10413
 
      ;;
10414
 
    mingw* | cegcc*)
10415
 
      # MinGW DLLs use traditional 'lib' prefix
10416
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417
 
      ;;
10418
 
    pw32*)
10419
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10420
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10421
 
      ;;
10422
 
    esac
10423
 
    dynamic_linker='Win32 ld.exe'
10424
 
    ;;
10425
 
 
10426
 
  *,cl*)
10427
 
    # Native MSVC
10428
 
    libname_spec='$name'
10429
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10430
 
    library_names_spec='${libname}.dll.lib'
10431
 
 
10432
 
    case $build_os in
10433
 
    mingw*)
10434
 
      sys_lib_search_path_spec=
10435
 
      lt_save_ifs=$IFS
10436
 
      IFS=';'
10437
 
      for lt_path in $LIB
10438
 
      do
10439
 
        IFS=$lt_save_ifs
10440
 
        # Let DOS variable expansion print the short 8.3 style file name.
10441
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10442
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10443
 
      done
10444
 
      IFS=$lt_save_ifs
10445
 
      # Convert to MSYS style.
10446
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10447
 
      ;;
10448
 
    cygwin*)
10449
 
      # Convert to unix form, then to dos form, then back to unix form
10450
 
      # but this time dos style (no spaces!) so that the unix form looks
10451
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
10452
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10453
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10454
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10455
 
      ;;
10456
 
    *)
10457
 
      sys_lib_search_path_spec="$LIB"
10458
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10459
 
        # It is most probably a Windows format PATH.
10460
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10461
 
      else
10462
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10463
 
      fi
10464
 
      # FIXME: find the short name or the path components, as spaces are
10465
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
10466
 
      ;;
10467
 
    esac
10468
 
 
10469
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10470
 
    postinstall_cmds='base_file=`basename \${file}`~
10471
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10472
 
      dldir=$destdir/`dirname \$dlpath`~
10473
 
      test -d \$dldir || mkdir -p \$dldir~
10474
 
      $install_prog $dir/$dlname \$dldir/$dlname'
10475
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10476
 
      dlpath=$dir/\$dldll~
10477
 
       $RM \$dlpath'
10478
 
    shlibpath_overrides_runpath=yes
10479
 
    dynamic_linker='Win32 link.exe'
10480
 
    ;;
10481
 
 
10482
 
  *)
10483
 
    # Assume MSVC wrapper
10484
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10485
 
    dynamic_linker='Win32 ld.exe'
10486
 
    ;;
10487
 
  esac
10488
 
  # FIXME: first we should search . and the directory the executable is in
10489
 
  shlibpath_var=PATH
10490
 
  ;;
10491
 
 
10492
 
darwin* | rhapsody*)
10493
 
  dynamic_linker="$host_os dyld"
10494
 
  version_type=darwin
10495
 
  need_lib_prefix=no
10496
 
  need_version=no
10497
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10498
 
  soname_spec='${libname}${release}${major}$shared_ext'
10499
 
  shlibpath_overrides_runpath=yes
10500
 
  shlibpath_var=DYLD_LIBRARY_PATH
10501
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10502
 
 
10503
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10504
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10505
 
  ;;
10506
 
 
10507
 
dgux*)
10508
 
  version_type=linux # correct to gnu/linux during the next big refactor
10509
 
  need_lib_prefix=no
10510
 
  need_version=no
10511
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10512
 
  soname_spec='${libname}${release}${shared_ext}$major'
10513
 
  shlibpath_var=LD_LIBRARY_PATH
10514
 
  ;;
10515
 
 
10516
 
freebsd* | dragonfly*)
10517
 
  # DragonFly does not have aout.  When/if they implement a new
10518
 
  # versioning mechanism, adjust this.
10519
 
  if test -x /usr/bin/objformat; then
10520
 
    objformat=`/usr/bin/objformat`
10521
 
  else
10522
 
    case $host_os in
10523
 
    freebsd[23].*) objformat=aout ;;
10524
 
    *) objformat=elf ;;
10525
 
    esac
10526
 
  fi
10527
 
  version_type=freebsd-$objformat
10528
 
  case $version_type in
10529
 
    freebsd-elf*)
10530
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10531
 
      need_version=no
10532
 
      need_lib_prefix=no
10533
 
      ;;
10534
 
    freebsd-*)
10535
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10536
 
      need_version=yes
10537
 
      ;;
10538
 
  esac
10539
 
  shlibpath_var=LD_LIBRARY_PATH
10540
 
  case $host_os in
10541
 
  freebsd2.*)
10542
 
    shlibpath_overrides_runpath=yes
10543
 
    ;;
10544
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10545
 
    shlibpath_overrides_runpath=yes
10546
 
    hardcode_into_libs=yes
10547
 
    ;;
10548
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10549
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10550
 
    shlibpath_overrides_runpath=no
10551
 
    hardcode_into_libs=yes
10552
 
    ;;
10553
 
  *) # from 4.6 on, and DragonFly
10554
 
    shlibpath_overrides_runpath=yes
10555
 
    hardcode_into_libs=yes
10556
 
    ;;
10557
 
  esac
10558
 
  ;;
10559
 
 
10560
 
gnu*)
10561
 
  version_type=linux # correct to gnu/linux during the next big refactor
10562
 
  need_lib_prefix=no
10563
 
  need_version=no
10564
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10565
 
  soname_spec='${libname}${release}${shared_ext}$major'
10566
 
  shlibpath_var=LD_LIBRARY_PATH
10567
 
  shlibpath_overrides_runpath=no
10568
 
  hardcode_into_libs=yes
10569
 
  ;;
10570
 
 
10571
 
haiku*)
10572
 
  version_type=linux # correct to gnu/linux during the next big refactor
10573
 
  need_lib_prefix=no
10574
 
  need_version=no
10575
 
  dynamic_linker="$host_os runtime_loader"
10576
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10577
 
  soname_spec='${libname}${release}${shared_ext}$major'
10578
 
  shlibpath_var=LIBRARY_PATH
10579
 
  shlibpath_overrides_runpath=yes
10580
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10581
 
  hardcode_into_libs=yes
10582
 
  ;;
10583
 
 
10584
 
hpux9* | hpux10* | hpux11*)
10585
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10586
 
  # link against other versions.
10587
 
  version_type=sunos
10588
 
  need_lib_prefix=no
10589
 
  need_version=no
10590
 
  case $host_cpu in
10591
 
  ia64*)
10592
 
    shrext_cmds='.so'
10593
 
    hardcode_into_libs=yes
10594
 
    dynamic_linker="$host_os dld.so"
10595
 
    shlibpath_var=LD_LIBRARY_PATH
10596
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10597
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598
 
    soname_spec='${libname}${release}${shared_ext}$major'
10599
 
    if test "X$HPUX_IA64_MODE" = X32; then
10600
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10601
 
    else
10602
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10603
 
    fi
10604
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10605
 
    ;;
10606
 
  hppa*64*)
10607
 
    shrext_cmds='.sl'
10608
 
    hardcode_into_libs=yes
10609
 
    dynamic_linker="$host_os dld.sl"
10610
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10611
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10612
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613
 
    soname_spec='${libname}${release}${shared_ext}$major'
10614
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10615
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10616
 
    ;;
10617
 
  *)
10618
 
    shrext_cmds='.sl'
10619
 
    dynamic_linker="$host_os dld.sl"
10620
 
    shlibpath_var=SHLIB_PATH
10621
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10622
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623
 
    soname_spec='${libname}${release}${shared_ext}$major'
10624
 
    ;;
10625
 
  esac
10626
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10627
 
  postinstall_cmds='chmod 555 $lib'
10628
 
  # or fails outright, so override atomically:
10629
 
  install_override_mode=555
10630
 
  ;;
10631
 
 
10632
 
interix[3-9]*)
10633
 
  version_type=linux # correct to gnu/linux during the next big refactor
10634
 
  need_lib_prefix=no
10635
 
  need_version=no
10636
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10637
 
  soname_spec='${libname}${release}${shared_ext}$major'
10638
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10639
 
  shlibpath_var=LD_LIBRARY_PATH
10640
 
  shlibpath_overrides_runpath=no
10641
 
  hardcode_into_libs=yes
10642
 
  ;;
10643
 
 
10644
 
irix5* | irix6* | nonstopux*)
10645
 
  case $host_os in
10646
 
    nonstopux*) version_type=nonstopux ;;
10647
 
    *)
10648
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10649
 
                version_type=linux # correct to gnu/linux during the next big refactor
10650
 
        else
10651
 
                version_type=irix
10652
 
        fi ;;
10653
 
  esac
10654
 
  need_lib_prefix=no
10655
 
  need_version=no
10656
 
  soname_spec='${libname}${release}${shared_ext}$major'
10657
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10658
 
  case $host_os in
10659
 
  irix5* | nonstopux*)
10660
 
    libsuff= shlibsuff=
10661
 
    ;;
10662
 
  *)
10663
 
    case $LD in # libtool.m4 will add one of these switches to LD
10664
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10665
 
      libsuff= shlibsuff= libmagic=32-bit;;
10666
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10667
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10668
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10669
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10670
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10671
 
    esac
10672
 
    ;;
10673
 
  esac
10674
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10675
 
  shlibpath_overrides_runpath=no
10676
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10677
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10678
 
  hardcode_into_libs=yes
10679
 
  ;;
10680
 
 
10681
 
# No shared lib support for Linux oldld, aout, or coff.
10682
 
linux*oldld* | linux*aout* | linux*coff*)
10683
 
  dynamic_linker=no
10684
 
  ;;
10685
 
 
10686
 
# This must be glibc/ELF.
10687
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10688
 
  version_type=linux # correct to gnu/linux during the next big refactor
10689
 
  need_lib_prefix=no
10690
 
  need_version=no
10691
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692
 
  soname_spec='${libname}${release}${shared_ext}$major'
10693
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10694
 
  shlibpath_var=LD_LIBRARY_PATH
10695
 
  shlibpath_overrides_runpath=no
10696
 
 
10697
 
  # Some binutils ld are patched to set DT_RUNPATH
10698
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10699
 
  $as_echo_n "(cached) " >&6
10700
 
else
10701
 
  lt_cv_shlibpath_overrides_runpath=no
10702
 
    save_LDFLAGS=$LDFLAGS
10703
 
    save_libdir=$libdir
10704
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10705
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10706
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707
 
/* end confdefs.h.  */
10708
 
 
10709
 
int
10710
 
main ()
10711
 
{
10712
 
 
10713
 
  ;
10714
 
  return 0;
10715
 
}
10716
 
_ACEOF
10717
 
if ac_fn_c_try_link "$LINENO"; then :
10718
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10719
 
  lt_cv_shlibpath_overrides_runpath=yes
10720
 
fi
10721
 
fi
10722
 
rm -f core conftest.err conftest.$ac_objext \
10723
 
    conftest$ac_exeext conftest.$ac_ext
10724
 
    LDFLAGS=$save_LDFLAGS
10725
 
    libdir=$save_libdir
10726
 
 
10727
 
fi
10728
 
 
10729
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10730
 
 
10731
 
  # This implies no fast_install, which is unacceptable.
10732
 
  # Some rework will be needed to allow for fast_install
10733
 
  # before this can be enabled.
10734
 
  hardcode_into_libs=yes
10735
 
 
10736
 
  # Append ld.so.conf contents to the search path
10737
 
  if test -f /etc/ld.so.conf; then
10738
 
    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;s/"//g;/^$/d' | tr '\n' ' '`
10739
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10740
 
  fi
10741
 
 
10742
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10743
 
  # powerpc, because MkLinux only supported shared libraries with the
10744
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
10745
 
  # most powerpc-linux boxes support dynamic linking these days and
10746
 
  # people can always --disable-shared, the test was removed, and we
10747
 
  # assume the GNU/Linux dynamic linker is in use.
10748
 
  dynamic_linker='GNU/Linux ld.so'
10749
 
  ;;
10750
 
 
10751
 
netbsdelf*-gnu)
10752
 
  version_type=linux
10753
 
  need_lib_prefix=no
10754
 
  need_version=no
10755
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756
 
  soname_spec='${libname}${release}${shared_ext}$major'
10757
 
  shlibpath_var=LD_LIBRARY_PATH
10758
 
  shlibpath_overrides_runpath=no
10759
 
  hardcode_into_libs=yes
10760
 
  dynamic_linker='NetBSD ld.elf_so'
10761
 
  ;;
10762
 
 
10763
 
netbsd*)
10764
 
  version_type=sunos
10765
 
  need_lib_prefix=no
10766
 
  need_version=no
10767
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10768
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10769
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10770
 
    dynamic_linker='NetBSD (a.out) ld.so'
10771
 
  else
10772
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10773
 
    soname_spec='${libname}${release}${shared_ext}$major'
10774
 
    dynamic_linker='NetBSD ld.elf_so'
10775
 
  fi
10776
 
  shlibpath_var=LD_LIBRARY_PATH
10777
 
  shlibpath_overrides_runpath=yes
10778
 
  hardcode_into_libs=yes
10779
 
  ;;
10780
 
 
10781
 
newsos6)
10782
 
  version_type=linux # correct to gnu/linux during the next big refactor
10783
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784
 
  shlibpath_var=LD_LIBRARY_PATH
10785
 
  shlibpath_overrides_runpath=yes
10786
 
  ;;
10787
 
 
10788
 
*nto* | *qnx*)
10789
 
  version_type=qnx
10790
 
  need_lib_prefix=no
10791
 
  need_version=no
10792
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793
 
  soname_spec='${libname}${release}${shared_ext}$major'
10794
 
  shlibpath_var=LD_LIBRARY_PATH
10795
 
  shlibpath_overrides_runpath=no
10796
 
  hardcode_into_libs=yes
10797
 
  dynamic_linker='ldqnx.so'
10798
 
  ;;
10799
 
 
10800
 
openbsd*)
10801
 
  version_type=sunos
10802
 
  sys_lib_dlsearch_path_spec="/usr/lib"
10803
 
  need_lib_prefix=no
10804
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10805
 
  case $host_os in
10806
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10807
 
    *)                          need_version=no  ;;
10808
 
  esac
10809
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10810
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10811
 
  shlibpath_var=LD_LIBRARY_PATH
10812
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10813
 
    case $host_os in
10814
 
      openbsd2.[89] | openbsd2.[89].*)
10815
 
        shlibpath_overrides_runpath=no
10816
 
        ;;
10817
 
      *)
10818
 
        shlibpath_overrides_runpath=yes
10819
 
        ;;
10820
 
      esac
10821
 
  else
10822
 
    shlibpath_overrides_runpath=yes
10823
 
  fi
10824
 
  ;;
10825
 
 
10826
 
os2*)
10827
 
  libname_spec='$name'
10828
 
  shrext_cmds=".dll"
10829
 
  need_lib_prefix=no
10830
 
  library_names_spec='$libname${shared_ext} $libname.a'
10831
 
  dynamic_linker='OS/2 ld.exe'
10832
 
  shlibpath_var=LIBPATH
10833
 
  ;;
10834
 
 
10835
 
osf3* | osf4* | osf5*)
10836
 
  version_type=osf
10837
 
  need_lib_prefix=no
10838
 
  need_version=no
10839
 
  soname_spec='${libname}${release}${shared_ext}$major'
10840
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841
 
  shlibpath_var=LD_LIBRARY_PATH
10842
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10843
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10844
 
  ;;
10845
 
 
10846
 
rdos*)
10847
 
  dynamic_linker=no
10848
 
  ;;
10849
 
 
10850
 
solaris*)
10851
 
  version_type=linux # correct to gnu/linux during the next big refactor
10852
 
  need_lib_prefix=no
10853
 
  need_version=no
10854
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855
 
  soname_spec='${libname}${release}${shared_ext}$major'
10856
 
  shlibpath_var=LD_LIBRARY_PATH
10857
 
  shlibpath_overrides_runpath=yes
10858
 
  hardcode_into_libs=yes
10859
 
  # ldd complains unless libraries are executable
10860
 
  postinstall_cmds='chmod +x $lib'
10861
 
  ;;
10862
 
 
10863
 
sunos4*)
10864
 
  version_type=sunos
10865
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10866
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10867
 
  shlibpath_var=LD_LIBRARY_PATH
10868
 
  shlibpath_overrides_runpath=yes
10869
 
  if test "$with_gnu_ld" = yes; then
10870
 
    need_lib_prefix=no
10871
 
  fi
10872
 
  need_version=yes
10873
 
  ;;
10874
 
 
10875
 
sysv4 | sysv4.3*)
10876
 
  version_type=linux # correct to gnu/linux during the next big refactor
10877
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878
 
  soname_spec='${libname}${release}${shared_ext}$major'
10879
 
  shlibpath_var=LD_LIBRARY_PATH
10880
 
  case $host_vendor in
10881
 
    sni)
10882
 
      shlibpath_overrides_runpath=no
10883
 
      need_lib_prefix=no
10884
 
      runpath_var=LD_RUN_PATH
10885
 
      ;;
10886
 
    siemens)
10887
 
      need_lib_prefix=no
10888
 
      ;;
10889
 
    motorola)
10890
 
      need_lib_prefix=no
10891
 
      need_version=no
10892
 
      shlibpath_overrides_runpath=no
10893
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10894
 
      ;;
10895
 
  esac
10896
 
  ;;
10897
 
 
10898
 
sysv4*MP*)
10899
 
  if test -d /usr/nec ;then
10900
 
    version_type=linux # correct to gnu/linux during the next big refactor
10901
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10902
 
    soname_spec='$libname${shared_ext}.$major'
10903
 
    shlibpath_var=LD_LIBRARY_PATH
10904
 
  fi
10905
 
  ;;
10906
 
 
10907
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10908
 
  version_type=freebsd-elf
10909
 
  need_lib_prefix=no
10910
 
  need_version=no
10911
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10912
 
  soname_spec='${libname}${release}${shared_ext}$major'
10913
 
  shlibpath_var=LD_LIBRARY_PATH
10914
 
  shlibpath_overrides_runpath=yes
10915
 
  hardcode_into_libs=yes
10916
 
  if test "$with_gnu_ld" = yes; then
10917
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10918
 
  else
10919
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10920
 
    case $host_os in
10921
 
      sco3.2v5*)
10922
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10923
 
        ;;
10924
 
    esac
10925
 
  fi
10926
 
  sys_lib_dlsearch_path_spec='/usr/lib'
10927
 
  ;;
10928
 
 
10929
 
tpf*)
10930
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10931
 
  version_type=linux # correct to gnu/linux during the next big refactor
10932
 
  need_lib_prefix=no
10933
 
  need_version=no
10934
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935
 
  shlibpath_var=LD_LIBRARY_PATH
10936
 
  shlibpath_overrides_runpath=no
10937
 
  hardcode_into_libs=yes
10938
 
  ;;
10939
 
 
10940
 
uts4*)
10941
 
  version_type=linux # correct to gnu/linux during the next big refactor
10942
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943
 
  soname_spec='${libname}${release}${shared_ext}$major'
10944
 
  shlibpath_var=LD_LIBRARY_PATH
10945
 
  ;;
10946
 
 
10947
 
*)
10948
 
  dynamic_linker=no
10949
 
  ;;
10950
 
esac
10951
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10952
 
$as_echo "$dynamic_linker" >&6; }
10953
 
test "$dynamic_linker" = no && can_build_shared=no
10954
 
 
10955
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10956
 
if test "$GCC" = yes; then
10957
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10958
 
fi
10959
 
 
10960
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10961
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10962
 
fi
10963
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10964
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10965
 
fi
10966
 
 
10967
 
 
10968
 
 
10969
 
 
10970
 
 
10971
 
 
10972
 
 
10973
 
 
10974
 
 
10975
 
 
10976
 
 
10977
 
 
10978
 
 
10979
 
 
10980
 
 
10981
 
 
10982
 
 
10983
 
 
10984
 
 
10985
 
 
10986
 
 
10987
 
 
10988
 
 
10989
 
 
10990
 
 
10991
 
 
10992
 
 
10993
 
 
10994
 
 
10995
 
 
10996
 
 
10997
 
 
10998
 
 
10999
 
 
11000
 
 
11001
 
 
11002
 
 
11003
 
 
11004
 
 
11005
 
 
11006
 
 
11007
 
 
11008
 
 
11009
 
 
11010
 
 
11011
 
 
11012
 
 
11013
 
 
11014
 
 
11015
 
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
 
 
11024
 
 
11025
 
 
11026
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11059
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11060
 
hardcode_action=
11061
 
if test -n "$hardcode_libdir_flag_spec" ||
11062
 
   test -n "$runpath_var" ||
11063
 
   test "X$hardcode_automatic" = "Xyes" ; then
11064
 
 
11065
 
  # We can hardcode non-existent directories.
11066
 
  if test "$hardcode_direct" != no &&
11067
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11068
 
     # have to relink, otherwise we might link with an installed library
11069
 
     # when we should be linking with a yet-to-be-installed one
11070
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11071
 
     test "$hardcode_minus_L" != no; then
11072
 
    # Linking always hardcodes the temporary library directory.
11073
 
    hardcode_action=relink
11074
 
  else
11075
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11076
 
    hardcode_action=immediate
11077
 
  fi
11078
 
else
11079
 
  # We cannot hardcode anything, or else we can only hardcode existing
11080
 
  # directories.
11081
 
  hardcode_action=unsupported
11082
 
fi
11083
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11084
 
$as_echo "$hardcode_action" >&6; }
11085
 
 
11086
 
if test "$hardcode_action" = relink ||
11087
 
   test "$inherit_rpath" = yes; then
11088
 
  # Fast installation is not supported
11089
 
  enable_fast_install=no
11090
 
elif test "$shlibpath_overrides_runpath" = yes ||
11091
 
     test "$enable_shared" = no; then
11092
 
  # Fast installation is not necessary
11093
 
  enable_fast_install=needless
11094
 
fi
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
  if test "x$enable_dlopen" != xyes; then
11102
 
  enable_dlopen=unknown
11103
 
  enable_dlopen_self=unknown
11104
 
  enable_dlopen_self_static=unknown
11105
 
else
11106
 
  lt_cv_dlopen=no
11107
 
  lt_cv_dlopen_libs=
11108
 
 
11109
 
  case $host_os in
11110
 
  beos*)
11111
 
    lt_cv_dlopen="load_add_on"
11112
 
    lt_cv_dlopen_libs=
11113
 
    lt_cv_dlopen_self=yes
11114
 
    ;;
11115
 
 
11116
 
  mingw* | pw32* | cegcc*)
11117
 
    lt_cv_dlopen="LoadLibrary"
11118
 
    lt_cv_dlopen_libs=
11119
 
    ;;
11120
 
 
11121
 
  cygwin*)
11122
 
    lt_cv_dlopen="dlopen"
11123
 
    lt_cv_dlopen_libs=
11124
 
    ;;
11125
 
 
11126
 
  darwin*)
11127
 
  # if libdl is installed we need to link against it
11128
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11129
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11130
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
11131
 
  $as_echo_n "(cached) " >&6
11132
 
else
11133
 
  ac_check_lib_save_LIBS=$LIBS
11134
 
LIBS="-ldl  $LIBS"
11135
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136
 
/* end confdefs.h.  */
11137
 
 
11138
 
/* Override any GCC internal prototype to avoid an error.
11139
 
   Use char because int might match the return type of a GCC
11140
 
   builtin and then its argument prototype would still apply.  */
11141
 
#ifdef __cplusplus
11142
 
extern "C"
11143
 
#endif
11144
 
char dlopen ();
11145
 
int
11146
 
main ()
11147
 
{
11148
 
return dlopen ();
11149
 
  ;
11150
 
  return 0;
11151
 
}
11152
 
_ACEOF
11153
 
if ac_fn_c_try_link "$LINENO"; then :
11154
 
  ac_cv_lib_dl_dlopen=yes
11155
 
else
11156
 
  ac_cv_lib_dl_dlopen=no
11157
 
fi
11158
 
rm -f core conftest.err conftest.$ac_objext \
11159
 
    conftest$ac_exeext conftest.$ac_ext
11160
 
LIBS=$ac_check_lib_save_LIBS
11161
 
fi
11162
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11163
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11164
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11165
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166
 
else
11167
 
 
11168
 
    lt_cv_dlopen="dyld"
11169
 
    lt_cv_dlopen_libs=
11170
 
    lt_cv_dlopen_self=yes
11171
 
 
11172
 
fi
11173
 
 
11174
 
    ;;
11175
 
 
11176
 
  *)
11177
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11178
 
if test "x$ac_cv_func_shl_load" = xyes; then :
11179
 
  lt_cv_dlopen="shl_load"
11180
 
else
11181
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11182
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11183
 
if ${ac_cv_lib_dld_shl_load+:} false; then :
11184
 
  $as_echo_n "(cached) " >&6
11185
 
else
11186
 
  ac_check_lib_save_LIBS=$LIBS
11187
 
LIBS="-ldld  $LIBS"
11188
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189
 
/* end confdefs.h.  */
11190
 
 
11191
 
/* Override any GCC internal prototype to avoid an error.
11192
 
   Use char because int might match the return type of a GCC
11193
 
   builtin and then its argument prototype would still apply.  */
11194
 
#ifdef __cplusplus
11195
 
extern "C"
11196
 
#endif
11197
 
char shl_load ();
11198
 
int
11199
 
main ()
11200
 
{
11201
 
return shl_load ();
11202
 
  ;
11203
 
  return 0;
11204
 
}
11205
 
_ACEOF
11206
 
if ac_fn_c_try_link "$LINENO"; then :
11207
 
  ac_cv_lib_dld_shl_load=yes
11208
 
else
11209
 
  ac_cv_lib_dld_shl_load=no
11210
 
fi
11211
 
rm -f core conftest.err conftest.$ac_objext \
11212
 
    conftest$ac_exeext conftest.$ac_ext
11213
 
LIBS=$ac_check_lib_save_LIBS
11214
 
fi
11215
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11216
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11217
 
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11218
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11219
 
else
11220
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11221
 
if test "x$ac_cv_func_dlopen" = xyes; then :
11222
 
  lt_cv_dlopen="dlopen"
11223
 
else
11224
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11225
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11226
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
11227
 
  $as_echo_n "(cached) " >&6
11228
 
else
11229
 
  ac_check_lib_save_LIBS=$LIBS
11230
 
LIBS="-ldl  $LIBS"
11231
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232
 
/* end confdefs.h.  */
11233
 
 
11234
 
/* Override any GCC internal prototype to avoid an error.
11235
 
   Use char because int might match the return type of a GCC
11236
 
   builtin and then its argument prototype would still apply.  */
11237
 
#ifdef __cplusplus
11238
 
extern "C"
11239
 
#endif
11240
 
char dlopen ();
11241
 
int
11242
 
main ()
11243
 
{
11244
 
return dlopen ();
11245
 
  ;
11246
 
  return 0;
11247
 
}
11248
 
_ACEOF
11249
 
if ac_fn_c_try_link "$LINENO"; then :
11250
 
  ac_cv_lib_dl_dlopen=yes
11251
 
else
11252
 
  ac_cv_lib_dl_dlopen=no
11253
 
fi
11254
 
rm -f core conftest.err conftest.$ac_objext \
11255
 
    conftest$ac_exeext conftest.$ac_ext
11256
 
LIBS=$ac_check_lib_save_LIBS
11257
 
fi
11258
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11259
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11260
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11261
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11262
 
else
11263
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11264
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11265
 
if ${ac_cv_lib_svld_dlopen+:} false; then :
11266
 
  $as_echo_n "(cached) " >&6
11267
 
else
11268
 
  ac_check_lib_save_LIBS=$LIBS
11269
 
LIBS="-lsvld  $LIBS"
11270
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271
 
/* end confdefs.h.  */
11272
 
 
11273
 
/* Override any GCC internal prototype to avoid an error.
11274
 
   Use char because int might match the return type of a GCC
11275
 
   builtin and then its argument prototype would still apply.  */
11276
 
#ifdef __cplusplus
11277
 
extern "C"
11278
 
#endif
11279
 
char dlopen ();
11280
 
int
11281
 
main ()
11282
 
{
11283
 
return dlopen ();
11284
 
  ;
11285
 
  return 0;
11286
 
}
11287
 
_ACEOF
11288
 
if ac_fn_c_try_link "$LINENO"; then :
11289
 
  ac_cv_lib_svld_dlopen=yes
11290
 
else
11291
 
  ac_cv_lib_svld_dlopen=no
11292
 
fi
11293
 
rm -f core conftest.err conftest.$ac_objext \
11294
 
    conftest$ac_exeext conftest.$ac_ext
11295
 
LIBS=$ac_check_lib_save_LIBS
11296
 
fi
11297
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11298
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11299
 
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11300
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11301
 
else
11302
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11303
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11304
 
if ${ac_cv_lib_dld_dld_link+:} false; then :
11305
 
  $as_echo_n "(cached) " >&6
11306
 
else
11307
 
  ac_check_lib_save_LIBS=$LIBS
11308
 
LIBS="-ldld  $LIBS"
11309
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310
 
/* end confdefs.h.  */
11311
 
 
11312
 
/* Override any GCC internal prototype to avoid an error.
11313
 
   Use char because int might match the return type of a GCC
11314
 
   builtin and then its argument prototype would still apply.  */
11315
 
#ifdef __cplusplus
11316
 
extern "C"
11317
 
#endif
11318
 
char dld_link ();
11319
 
int
11320
 
main ()
11321
 
{
11322
 
return dld_link ();
11323
 
  ;
11324
 
  return 0;
11325
 
}
11326
 
_ACEOF
11327
 
if ac_fn_c_try_link "$LINENO"; then :
11328
 
  ac_cv_lib_dld_dld_link=yes
11329
 
else
11330
 
  ac_cv_lib_dld_dld_link=no
11331
 
fi
11332
 
rm -f core conftest.err conftest.$ac_objext \
11333
 
    conftest$ac_exeext conftest.$ac_ext
11334
 
LIBS=$ac_check_lib_save_LIBS
11335
 
fi
11336
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11337
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11338
 
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11339
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11340
 
fi
11341
 
 
11342
 
 
11343
 
fi
11344
 
 
11345
 
 
11346
 
fi
11347
 
 
11348
 
 
11349
 
fi
11350
 
 
11351
 
 
11352
 
fi
11353
 
 
11354
 
 
11355
 
fi
11356
 
 
11357
 
    ;;
11358
 
  esac
11359
 
 
11360
 
  if test "x$lt_cv_dlopen" != xno; then
11361
 
    enable_dlopen=yes
11362
 
  else
11363
 
    enable_dlopen=no
11364
 
  fi
11365
 
 
11366
 
  case $lt_cv_dlopen in
11367
 
  dlopen)
11368
 
    save_CPPFLAGS="$CPPFLAGS"
11369
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11370
 
 
11371
 
    save_LDFLAGS="$LDFLAGS"
11372
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11373
 
 
11374
 
    save_LIBS="$LIBS"
11375
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11376
 
 
11377
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11378
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11379
 
if ${lt_cv_dlopen_self+:} false; then :
11380
 
  $as_echo_n "(cached) " >&6
11381
 
else
11382
 
          if test "$cross_compiling" = yes; then :
11383
 
  lt_cv_dlopen_self=cross
11384
 
else
11385
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11386
 
  lt_status=$lt_dlunknown
11387
 
  cat > conftest.$ac_ext <<_LT_EOF
11388
 
#line $LINENO "configure"
11389
 
#include "confdefs.h"
11390
 
 
11391
 
#if HAVE_DLFCN_H
11392
 
#include <dlfcn.h>
11393
 
#endif
11394
 
 
11395
 
#include <stdio.h>
11396
 
 
11397
 
#ifdef RTLD_GLOBAL
11398
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11399
 
#else
11400
 
#  ifdef DL_GLOBAL
11401
 
#    define LT_DLGLOBAL         DL_GLOBAL
11402
 
#  else
11403
 
#    define LT_DLGLOBAL         0
11404
 
#  endif
11405
 
#endif
11406
 
 
11407
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11408
 
   find out it does not work in some platform. */
11409
 
#ifndef LT_DLLAZY_OR_NOW
11410
 
#  ifdef RTLD_LAZY
11411
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11412
 
#  else
11413
 
#    ifdef DL_LAZY
11414
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11415
 
#    else
11416
 
#      ifdef RTLD_NOW
11417
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11418
 
#      else
11419
 
#        ifdef DL_NOW
11420
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11421
 
#        else
11422
 
#          define LT_DLLAZY_OR_NOW      0
11423
 
#        endif
11424
 
#      endif
11425
 
#    endif
11426
 
#  endif
11427
 
#endif
11428
 
 
11429
 
/* When -fvisbility=hidden is used, assume the code has been annotated
11430
 
   correspondingly for the symbols needed.  */
11431
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11432
 
int fnord () __attribute__((visibility("default")));
11433
 
#endif
11434
 
 
11435
 
int fnord () { return 42; }
11436
 
int main ()
11437
 
{
11438
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11439
 
  int status = $lt_dlunknown;
11440
 
 
11441
 
  if (self)
11442
 
    {
11443
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11444
 
      else
11445
 
        {
11446
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11447
 
          else puts (dlerror ());
11448
 
        }
11449
 
      /* dlclose (self); */
11450
 
    }
11451
 
  else
11452
 
    puts (dlerror ());
11453
 
 
11454
 
  return status;
11455
 
}
11456
 
_LT_EOF
11457
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11458
 
  (eval $ac_link) 2>&5
11459
 
  ac_status=$?
11460
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11461
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11462
 
    (./conftest; exit; ) >&5 2>/dev/null
11463
 
    lt_status=$?
11464
 
    case x$lt_status in
11465
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11466
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11467
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11468
 
    esac
11469
 
  else :
11470
 
    # compilation failed
11471
 
    lt_cv_dlopen_self=no
11472
 
  fi
11473
 
fi
11474
 
rm -fr conftest*
11475
 
 
11476
 
 
11477
 
fi
11478
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11479
 
$as_echo "$lt_cv_dlopen_self" >&6; }
11480
 
 
11481
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11482
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11483
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11484
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11485
 
if ${lt_cv_dlopen_self_static+:} false; then :
11486
 
  $as_echo_n "(cached) " >&6
11487
 
else
11488
 
          if test "$cross_compiling" = yes; then :
11489
 
  lt_cv_dlopen_self_static=cross
11490
 
else
11491
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11492
 
  lt_status=$lt_dlunknown
11493
 
  cat > conftest.$ac_ext <<_LT_EOF
11494
 
#line $LINENO "configure"
11495
 
#include "confdefs.h"
11496
 
 
11497
 
#if HAVE_DLFCN_H
11498
 
#include <dlfcn.h>
11499
 
#endif
11500
 
 
11501
 
#include <stdio.h>
11502
 
 
11503
 
#ifdef RTLD_GLOBAL
11504
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11505
 
#else
11506
 
#  ifdef DL_GLOBAL
11507
 
#    define LT_DLGLOBAL         DL_GLOBAL
11508
 
#  else
11509
 
#    define LT_DLGLOBAL         0
11510
 
#  endif
11511
 
#endif
11512
 
 
11513
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11514
 
   find out it does not work in some platform. */
11515
 
#ifndef LT_DLLAZY_OR_NOW
11516
 
#  ifdef RTLD_LAZY
11517
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11518
 
#  else
11519
 
#    ifdef DL_LAZY
11520
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11521
 
#    else
11522
 
#      ifdef RTLD_NOW
11523
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11524
 
#      else
11525
 
#        ifdef DL_NOW
11526
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11527
 
#        else
11528
 
#          define LT_DLLAZY_OR_NOW      0
11529
 
#        endif
11530
 
#      endif
11531
 
#    endif
11532
 
#  endif
11533
 
#endif
11534
 
 
11535
 
/* When -fvisbility=hidden is used, assume the code has been annotated
11536
 
   correspondingly for the symbols needed.  */
11537
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11538
 
int fnord () __attribute__((visibility("default")));
11539
 
#endif
11540
 
 
11541
 
int fnord () { return 42; }
11542
 
int main ()
11543
 
{
11544
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545
 
  int status = $lt_dlunknown;
11546
 
 
11547
 
  if (self)
11548
 
    {
11549
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11550
 
      else
11551
 
        {
11552
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11553
 
          else puts (dlerror ());
11554
 
        }
11555
 
      /* dlclose (self); */
11556
 
    }
11557
 
  else
11558
 
    puts (dlerror ());
11559
 
 
11560
 
  return status;
11561
 
}
11562
 
_LT_EOF
11563
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11564
 
  (eval $ac_link) 2>&5
11565
 
  ac_status=$?
11566
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11568
 
    (./conftest; exit; ) >&5 2>/dev/null
11569
 
    lt_status=$?
11570
 
    case x$lt_status in
11571
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11572
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11573
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11574
 
    esac
11575
 
  else :
11576
 
    # compilation failed
11577
 
    lt_cv_dlopen_self_static=no
11578
 
  fi
11579
 
fi
11580
 
rm -fr conftest*
11581
 
 
11582
 
 
11583
 
fi
11584
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11585
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11586
 
    fi
11587
 
 
11588
 
    CPPFLAGS="$save_CPPFLAGS"
11589
 
    LDFLAGS="$save_LDFLAGS"
11590
 
    LIBS="$save_LIBS"
11591
 
    ;;
11592
 
  esac
11593
 
 
11594
 
  case $lt_cv_dlopen_self in
11595
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11596
 
  *) enable_dlopen_self=unknown ;;
11597
 
  esac
11598
 
 
11599
 
  case $lt_cv_dlopen_self_static in
11600
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11601
 
  *) enable_dlopen_self_static=unknown ;;
11602
 
  esac
11603
 
fi
11604
 
 
11605
 
 
11606
 
 
11607
 
 
11608
 
 
11609
 
 
11610
 
 
11611
 
 
11612
 
 
11613
 
 
11614
 
 
11615
 
 
11616
 
 
11617
 
 
11618
 
 
11619
 
 
11620
 
 
11621
 
striplib=
11622
 
old_striplib=
11623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11624
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11625
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11626
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11627
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11628
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11629
 
$as_echo "yes" >&6; }
11630
 
else
11631
 
# FIXME - insert some real tests, host_os isn't really good enough
11632
 
  case $host_os in
11633
 
  darwin*)
11634
 
    if test -n "$STRIP" ; then
11635
 
      striplib="$STRIP -x"
11636
 
      old_striplib="$STRIP -S"
11637
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638
 
$as_echo "yes" >&6; }
11639
 
    else
11640
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641
 
$as_echo "no" >&6; }
11642
 
    fi
11643
 
    ;;
11644
 
  *)
11645
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646
 
$as_echo "no" >&6; }
11647
 
    ;;
11648
 
  esac
11649
 
fi
11650
 
 
11651
 
 
11652
 
 
11653
 
 
11654
 
 
11655
 
 
11656
 
 
11657
 
 
11658
 
 
11659
 
 
11660
 
 
11661
 
 
11662
 
  # Report which library types will actually be built
11663
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11664
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11665
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11666
 
$as_echo "$can_build_shared" >&6; }
11667
 
 
11668
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11669
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11670
 
  test "$can_build_shared" = "no" && enable_shared=no
11671
 
 
11672
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11673
 
  # are all built from PIC.
11674
 
  case $host_os in
11675
 
  aix3*)
11676
 
    test "$enable_shared" = yes && enable_static=no
11677
 
    if test -n "$RANLIB"; then
11678
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11679
 
      postinstall_cmds='$RANLIB $lib'
11680
 
    fi
11681
 
    ;;
11682
 
 
11683
 
  aix[4-9]*)
11684
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11685
 
      test "$enable_shared" = yes && enable_static=no
11686
 
    fi
11687
 
    ;;
11688
 
  esac
11689
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11690
 
$as_echo "$enable_shared" >&6; }
11691
 
 
11692
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11693
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11694
 
  # Make sure either enable_shared or enable_static is yes.
11695
 
  test "$enable_shared" = yes || enable_static=yes
11696
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11697
 
$as_echo "$enable_static" >&6; }
11698
 
 
11699
 
 
11700
 
 
11701
 
 
11702
 
fi
11703
 
ac_ext=cpp
11704
 
ac_cpp='$CXXCPP $CPPFLAGS'
11705
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11706
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11707
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11708
 
 
11709
 
CC="$lt_save_CC"
11710
 
 
11711
 
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11712
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11713
 
    (test "X$CXX" != "Xg++"))) ; then
11714
 
  ac_ext=cpp
11715
 
ac_cpp='$CXXCPP $CPPFLAGS'
11716
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11719
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11720
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11721
 
if test -z "$CXXCPP"; then
11722
 
  if ${ac_cv_prog_CXXCPP+:} false; then :
11723
 
  $as_echo_n "(cached) " >&6
11724
 
else
11725
 
      # Double quotes because CXXCPP needs to be expanded
11726
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
11727
 
    do
11728
 
      ac_preproc_ok=false
11729
 
for ac_cxx_preproc_warn_flag in '' yes
11730
 
do
11731
 
  # Use a header file that comes with gcc, so configuring glibc
11732
 
  # with a fresh cross-compiler works.
11733
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734
 
  # <limits.h> exists even on freestanding compilers.
11735
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
11736
 
  # not just through cpp. "Syntax error" is here to catch this case.
11737
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738
 
/* end confdefs.h.  */
11739
 
#ifdef __STDC__
11740
 
# include <limits.h>
11741
 
#else
11742
 
# include <assert.h>
11743
 
#endif
11744
 
                     Syntax error
11745
 
_ACEOF
11746
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
11747
 
 
11748
 
else
11749
 
  # Broken: fails on valid input.
11750
 
continue
11751
 
fi
11752
 
rm -f conftest.err conftest.i conftest.$ac_ext
11753
 
 
11754
 
  # OK, works on sane cases.  Now check whether nonexistent headers
11755
 
  # can be detected and how.
11756
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757
 
/* end confdefs.h.  */
11758
 
#include <ac_nonexistent.h>
11759
 
_ACEOF
11760
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
11761
 
  # Broken: success on invalid input.
11762
 
continue
11763
 
else
11764
 
  # Passes both tests.
11765
 
ac_preproc_ok=:
11766
 
break
11767
 
fi
11768
 
rm -f conftest.err conftest.i conftest.$ac_ext
11769
 
 
11770
 
done
11771
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11772
 
rm -f conftest.i conftest.err conftest.$ac_ext
11773
 
if $ac_preproc_ok; then :
11774
 
  break
11775
 
fi
11776
 
 
11777
 
    done
11778
 
    ac_cv_prog_CXXCPP=$CXXCPP
11779
 
 
11780
 
fi
11781
 
  CXXCPP=$ac_cv_prog_CXXCPP
11782
 
else
11783
 
  ac_cv_prog_CXXCPP=$CXXCPP
11784
 
fi
11785
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11786
 
$as_echo "$CXXCPP" >&6; }
11787
 
ac_preproc_ok=false
11788
 
for ac_cxx_preproc_warn_flag in '' yes
11789
 
do
11790
 
  # Use a header file that comes with gcc, so configuring glibc
11791
 
  # with a fresh cross-compiler works.
11792
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793
 
  # <limits.h> exists even on freestanding compilers.
11794
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
11795
 
  # not just through cpp. "Syntax error" is here to catch this case.
11796
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797
 
/* end confdefs.h.  */
11798
 
#ifdef __STDC__
11799
 
# include <limits.h>
11800
 
#else
11801
 
# include <assert.h>
11802
 
#endif
11803
 
                     Syntax error
11804
 
_ACEOF
11805
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
11806
 
 
11807
 
else
11808
 
  # Broken: fails on valid input.
11809
 
continue
11810
 
fi
11811
 
rm -f conftest.err conftest.i conftest.$ac_ext
11812
 
 
11813
 
  # OK, works on sane cases.  Now check whether nonexistent headers
11814
 
  # can be detected and how.
11815
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816
 
/* end confdefs.h.  */
11817
 
#include <ac_nonexistent.h>
11818
 
_ACEOF
11819
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
11820
 
  # Broken: success on invalid input.
11821
 
continue
11822
 
else
11823
 
  # Passes both tests.
11824
 
ac_preproc_ok=:
11825
 
break
11826
 
fi
11827
 
rm -f conftest.err conftest.i conftest.$ac_ext
11828
 
 
11829
 
done
11830
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11831
 
rm -f conftest.i conftest.err conftest.$ac_ext
11832
 
if $ac_preproc_ok; then :
11833
 
 
11834
 
else
11835
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11836
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11837
 
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11838
 
See \`config.log' for more details" "$LINENO" 5; }
11839
 
fi
11840
 
 
11841
 
ac_ext=cpp
11842
 
ac_cpp='$CXXCPP $CPPFLAGS'
11843
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11846
 
 
11847
 
else
11848
 
  _lt_caught_CXX_error=yes
11849
 
fi
11850
 
 
11851
 
ac_ext=cpp
11852
 
ac_cpp='$CXXCPP $CPPFLAGS'
11853
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11856
 
 
11857
 
archive_cmds_need_lc_CXX=no
11858
 
allow_undefined_flag_CXX=
11859
 
always_export_symbols_CXX=no
11860
 
archive_expsym_cmds_CXX=
11861
 
compiler_needs_object_CXX=no
11862
 
export_dynamic_flag_spec_CXX=
11863
 
hardcode_direct_CXX=no
11864
 
hardcode_direct_absolute_CXX=no
11865
 
hardcode_libdir_flag_spec_CXX=
11866
 
hardcode_libdir_separator_CXX=
11867
 
hardcode_minus_L_CXX=no
11868
 
hardcode_shlibpath_var_CXX=unsupported
11869
 
hardcode_automatic_CXX=no
11870
 
inherit_rpath_CXX=no
11871
 
module_cmds_CXX=
11872
 
module_expsym_cmds_CXX=
11873
 
link_all_deplibs_CXX=unknown
11874
 
old_archive_cmds_CXX=$old_archive_cmds
11875
 
reload_flag_CXX=$reload_flag
11876
 
reload_cmds_CXX=$reload_cmds
11877
 
no_undefined_flag_CXX=
11878
 
whole_archive_flag_spec_CXX=
11879
 
enable_shared_with_static_runtimes_CXX=no
11880
 
 
11881
 
# Source file extension for C++ test sources.
11882
 
ac_ext=cpp
11883
 
 
11884
 
# Object file extension for compiled C++ test sources.
11885
 
objext=o
11886
 
objext_CXX=$objext
11887
 
 
11888
 
# No sense in running all these tests if we already determined that
11889
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
11890
 
# are currently assumed to apply to all compilers on this platform,
11891
 
# and will be corrupted by setting them based on a non-working compiler.
11892
 
if test "$_lt_caught_CXX_error" != yes; then
11893
 
  # Code to be used in simple compile tests
11894
 
  lt_simple_compile_test_code="int some_variable = 0;"
11895
 
 
11896
 
  # Code to be used in simple link tests
11897
 
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11898
 
 
11899
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11900
 
 
11901
 
 
11902
 
 
11903
 
 
11904
 
 
11905
 
 
11906
 
# If no C compiler was specified, use CC.
11907
 
LTCC=${LTCC-"$CC"}
11908
 
 
11909
 
# If no C compiler flags were specified, use CFLAGS.
11910
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11911
 
 
11912
 
# Allow CC to be a program name with arguments.
11913
 
compiler=$CC
11914
 
 
11915
 
 
11916
 
  # save warnings/boilerplate of simple test code
11917
 
  ac_outfile=conftest.$ac_objext
11918
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11919
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11920
 
_lt_compiler_boilerplate=`cat conftest.err`
11921
 
$RM conftest*
11922
 
 
11923
 
  ac_outfile=conftest.$ac_objext
11924
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11925
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11926
 
_lt_linker_boilerplate=`cat conftest.err`
11927
 
$RM -r conftest*
11928
 
 
11929
 
 
11930
 
  # Allow CC to be a program name with arguments.
11931
 
  lt_save_CC=$CC
11932
 
  lt_save_CFLAGS=$CFLAGS
11933
 
  lt_save_LD=$LD
11934
 
  lt_save_GCC=$GCC
11935
 
  GCC=$GXX
11936
 
  lt_save_with_gnu_ld=$with_gnu_ld
11937
 
  lt_save_path_LD=$lt_cv_path_LD
11938
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11939
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11940
 
  else
11941
 
    $as_unset lt_cv_prog_gnu_ld
11942
 
  fi
11943
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
11944
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
11945
 
  else
11946
 
    $as_unset lt_cv_path_LD
11947
 
  fi
11948
 
  test -z "${LDCXX+set}" || LD=$LDCXX
11949
 
  CC=${CXX-"c++"}
11950
 
  CFLAGS=$CXXFLAGS
11951
 
  compiler=$CC
11952
 
  compiler_CXX=$CC
11953
 
  for cc_temp in $compiler""; do
11954
 
  case $cc_temp in
11955
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11956
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11957
 
    \-*) ;;
11958
 
    *) break;;
11959
 
  esac
11960
 
done
11961
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11962
 
 
11963
 
 
11964
 
  if test -n "$compiler"; then
11965
 
    # We don't want -fno-exception when compiling C++ code, so set the
11966
 
    # no_builtin_flag separately
11967
 
    if test "$GXX" = yes; then
11968
 
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11969
 
    else
11970
 
      lt_prog_compiler_no_builtin_flag_CXX=
11971
 
    fi
11972
 
 
11973
 
    if test "$GXX" = yes; then
11974
 
      # Set up default GNU C++ configuration
11975
 
 
11976
 
 
11977
 
 
11978
 
# Check whether --with-gnu-ld was given.
11979
 
if test "${with_gnu_ld+set}" = set; then :
11980
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11981
 
else
11982
 
  with_gnu_ld=no
11983
 
fi
11984
 
 
11985
 
ac_prog=ld
11986
 
if test "$GCC" = yes; then
11987
 
  # Check if gcc -print-prog-name=ld gives a path.
11988
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11989
 
$as_echo_n "checking for ld used by $CC... " >&6; }
11990
 
  case $host in
11991
 
  *-*-mingw*)
11992
 
    # gcc leaves a trailing carriage return which upsets mingw
11993
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11994
 
  *)
11995
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11996
 
  esac
11997
 
  case $ac_prog in
11998
 
    # Accept absolute paths.
11999
 
    [\\/]* | ?:[\\/]*)
12000
 
      re_direlt='/[^/][^/]*/\.\./'
12001
 
      # Canonicalize the pathname of ld
12002
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12003
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12004
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12005
 
      done
12006
 
      test -z "$LD" && LD="$ac_prog"
12007
 
      ;;
12008
 
  "")
12009
 
    # If it fails, then pretend we aren't using GCC.
12010
 
    ac_prog=ld
12011
 
    ;;
12012
 
  *)
12013
 
    # If it is relative, then search for the first ld in PATH.
12014
 
    with_gnu_ld=unknown
12015
 
    ;;
12016
 
  esac
12017
 
elif test "$with_gnu_ld" = yes; then
12018
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12019
 
$as_echo_n "checking for GNU ld... " >&6; }
12020
 
else
12021
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12022
 
$as_echo_n "checking for non-GNU ld... " >&6; }
12023
 
fi
12024
 
if ${lt_cv_path_LD+:} false; then :
12025
 
  $as_echo_n "(cached) " >&6
12026
 
else
12027
 
  if test -z "$LD"; then
12028
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12029
 
  for ac_dir in $PATH; do
12030
 
    IFS="$lt_save_ifs"
12031
 
    test -z "$ac_dir" && ac_dir=.
12032
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12033
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
12034
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
12035
 
      # but apparently some variants of GNU ld only accept -v.
12036
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
12037
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12038
 
      *GNU* | *'with BFD'*)
12039
 
        test "$with_gnu_ld" != no && break
12040
 
        ;;
12041
 
      *)
12042
 
        test "$with_gnu_ld" != yes && break
12043
 
        ;;
12044
 
      esac
12045
 
    fi
12046
 
  done
12047
 
  IFS="$lt_save_ifs"
12048
 
else
12049
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12050
 
fi
12051
 
fi
12052
 
 
12053
 
LD="$lt_cv_path_LD"
12054
 
if test -n "$LD"; then
12055
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12056
 
$as_echo "$LD" >&6; }
12057
 
else
12058
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059
 
$as_echo "no" >&6; }
12060
 
fi
12061
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12062
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12063
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12064
 
if ${lt_cv_prog_gnu_ld+:} false; then :
12065
 
  $as_echo_n "(cached) " >&6
12066
 
else
12067
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12068
 
case `$LD -v 2>&1 </dev/null` in
12069
 
*GNU* | *'with BFD'*)
12070
 
  lt_cv_prog_gnu_ld=yes
12071
 
  ;;
12072
 
*)
12073
 
  lt_cv_prog_gnu_ld=no
12074
 
  ;;
12075
 
esac
12076
 
fi
12077
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12078
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12079
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12080
 
 
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
 
12086
 
 
12087
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12088
 
      # archiving commands below assume that GNU ld is being used.
12089
 
      if test "$with_gnu_ld" = yes; then
12090
 
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12091
 
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12092
 
 
12093
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12094
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12095
 
 
12096
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
12097
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12098
 
        #     investigate it a little bit more. (MM)
12099
 
        wlarc='${wl}'
12100
 
 
12101
 
        # ancient GNU ld didn't support --whole-archive et. al.
12102
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12103
 
          $GREP 'no-whole-archive' > /dev/null; then
12104
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12105
 
        else
12106
 
          whole_archive_flag_spec_CXX=
12107
 
        fi
12108
 
      else
12109
 
        with_gnu_ld=no
12110
 
        wlarc=
12111
 
 
12112
 
        # A generic and very simple default shared library creation
12113
 
        # command for GNU C++ for the case where it uses the native
12114
 
        # linker, instead of GNU ld.  If possible, this setting should
12115
 
        # overridden to take advantage of the native linker features on
12116
 
        # the platform it is being used on.
12117
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12118
 
      fi
12119
 
 
12120
 
      # Commands to make compiler produce verbose output that lists
12121
 
      # what "hidden" libraries, object files and flags are used when
12122
 
      # linking a shared library.
12123
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12124
 
 
12125
 
    else
12126
 
      GXX=no
12127
 
      with_gnu_ld=no
12128
 
      wlarc=
12129
 
    fi
12130
 
 
12131
 
    # PORTME: fill in a description of your system's C++ link characteristics
12132
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12133
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12134
 
    ld_shlibs_CXX=yes
12135
 
    case $host_os in
12136
 
      aix3*)
12137
 
        # FIXME: insert proper C++ library support
12138
 
        ld_shlibs_CXX=no
12139
 
        ;;
12140
 
      aix[4-9]*)
12141
 
        if test "$host_cpu" = ia64; then
12142
 
          # On IA64, the linker does run time linking by default, so we don't
12143
 
          # have to do anything special.
12144
 
          aix_use_runtimelinking=no
12145
 
          exp_sym_flag='-Bexport'
12146
 
          no_entry_flag=""
12147
 
        else
12148
 
          aix_use_runtimelinking=no
12149
 
 
12150
 
          # Test if we are trying to use run time linking or normal
12151
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12152
 
          # need to do runtime linking.
12153
 
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12154
 
            for ld_flag in $LDFLAGS; do
12155
 
              case $ld_flag in
12156
 
              *-brtl*)
12157
 
                aix_use_runtimelinking=yes
12158
 
                break
12159
 
                ;;
12160
 
              esac
12161
 
            done
12162
 
            ;;
12163
 
          esac
12164
 
 
12165
 
          exp_sym_flag='-bexport'
12166
 
          no_entry_flag='-bnoentry'
12167
 
        fi
12168
 
 
12169
 
        # When large executables or shared objects are built, AIX ld can
12170
 
        # have problems creating the table of contents.  If linking a library
12171
 
        # or program results in "error TOC overflow" add -mminimal-toc to
12172
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12173
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12174
 
 
12175
 
        archive_cmds_CXX=''
12176
 
        hardcode_direct_CXX=yes
12177
 
        hardcode_direct_absolute_CXX=yes
12178
 
        hardcode_libdir_separator_CXX=':'
12179
 
        link_all_deplibs_CXX=yes
12180
 
        file_list_spec_CXX='${wl}-f,'
12181
 
 
12182
 
        if test "$GXX" = yes; then
12183
 
          case $host_os in aix4.[012]|aix4.[012].*)
12184
 
          # We only want to do this on AIX 4.2 and lower, the check
12185
 
          # below for broken collect2 doesn't work under 4.3+
12186
 
          collect2name=`${CC} -print-prog-name=collect2`
12187
 
          if test -f "$collect2name" &&
12188
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12189
 
          then
12190
 
            # We have reworked collect2
12191
 
            :
12192
 
          else
12193
 
            # We have old collect2
12194
 
            hardcode_direct_CXX=unsupported
12195
 
            # It fails to find uninstalled libraries when the uninstalled
12196
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
12197
 
            # to unsupported forces relinking
12198
 
            hardcode_minus_L_CXX=yes
12199
 
            hardcode_libdir_flag_spec_CXX='-L$libdir'
12200
 
            hardcode_libdir_separator_CXX=
12201
 
          fi
12202
 
          esac
12203
 
          shared_flag='-shared'
12204
 
          if test "$aix_use_runtimelinking" = yes; then
12205
 
            shared_flag="$shared_flag "'${wl}-G'
12206
 
          fi
12207
 
        else
12208
 
          # not using gcc
12209
 
          if test "$host_cpu" = ia64; then
12210
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12211
 
          # chokes on -Wl,-G. The following line is correct:
12212
 
          shared_flag='-G'
12213
 
          else
12214
 
            if test "$aix_use_runtimelinking" = yes; then
12215
 
              shared_flag='${wl}-G'
12216
 
            else
12217
 
              shared_flag='${wl}-bM:SRE'
12218
 
            fi
12219
 
          fi
12220
 
        fi
12221
 
 
12222
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12223
 
        # It seems that -bexpall does not export symbols beginning with
12224
 
        # underscore (_), so it is better to generate a list of symbols to
12225
 
        # export.
12226
 
        always_export_symbols_CXX=yes
12227
 
        if test "$aix_use_runtimelinking" = yes; then
12228
 
          # Warning - without using the other runtime loading flags (-brtl),
12229
 
          # -berok will link without error, but may produce a broken library.
12230
 
          allow_undefined_flag_CXX='-berok'
12231
 
          # Determine the default libpath from the value encoded in an empty
12232
 
          # executable.
12233
 
          if test "${lt_cv_aix_libpath+set}" = set; then
12234
 
  aix_libpath=$lt_cv_aix_libpath
12235
 
else
12236
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
12237
 
  $as_echo_n "(cached) " >&6
12238
 
else
12239
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240
 
/* end confdefs.h.  */
12241
 
 
12242
 
int
12243
 
main ()
12244
 
{
12245
 
 
12246
 
  ;
12247
 
  return 0;
12248
 
}
12249
 
_ACEOF
12250
 
if ac_fn_cxx_try_link "$LINENO"; then :
12251
 
 
12252
 
  lt_aix_libpath_sed='
12253
 
      /Import File Strings/,/^$/ {
12254
 
          /^0/ {
12255
 
              s/^0  *\([^ ]*\) *$/\1/
12256
 
              p
12257
 
          }
12258
 
      }'
12259
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12260
 
  # Check for a 64-bit object if we didn't find anything.
12261
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
12262
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12263
 
  fi
12264
 
fi
12265
 
rm -f core conftest.err conftest.$ac_objext \
12266
 
    conftest$ac_exeext conftest.$ac_ext
12267
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
12268
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12269
 
  fi
12270
 
 
12271
 
fi
12272
 
 
12273
 
  aix_libpath=$lt_cv_aix_libpath__CXX
12274
 
fi
12275
 
 
12276
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12277
 
 
12278
 
          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12279
 
        else
12280
 
          if test "$host_cpu" = ia64; then
12281
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12282
 
            allow_undefined_flag_CXX="-z nodefs"
12283
 
            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"
12284
 
          else
12285
 
            # Determine the default libpath from the value encoded in an
12286
 
            # empty executable.
12287
 
            if test "${lt_cv_aix_libpath+set}" = set; then
12288
 
  aix_libpath=$lt_cv_aix_libpath
12289
 
else
12290
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
12291
 
  $as_echo_n "(cached) " >&6
12292
 
else
12293
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294
 
/* end confdefs.h.  */
12295
 
 
12296
 
int
12297
 
main ()
12298
 
{
12299
 
 
12300
 
  ;
12301
 
  return 0;
12302
 
}
12303
 
_ACEOF
12304
 
if ac_fn_cxx_try_link "$LINENO"; then :
12305
 
 
12306
 
  lt_aix_libpath_sed='
12307
 
      /Import File Strings/,/^$/ {
12308
 
          /^0/ {
12309
 
              s/^0  *\([^ ]*\) *$/\1/
12310
 
              p
12311
 
          }
12312
 
      }'
12313
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12314
 
  # Check for a 64-bit object if we didn't find anything.
12315
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
12316
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12317
 
  fi
12318
 
fi
12319
 
rm -f core conftest.err conftest.$ac_objext \
12320
 
    conftest$ac_exeext conftest.$ac_ext
12321
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
12322
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12323
 
  fi
12324
 
 
12325
 
fi
12326
 
 
12327
 
  aix_libpath=$lt_cv_aix_libpath__CXX
12328
 
fi
12329
 
 
12330
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12331
 
            # Warning - without using the other run time loading flags,
12332
 
            # -berok will link without error, but may produce a broken library.
12333
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
12334
 
            allow_undefined_flag_CXX=' ${wl}-berok'
12335
 
            if test "$with_gnu_ld" = yes; then
12336
 
              # We only use this code for GNU lds that support --whole-archive.
12337
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12338
 
            else
12339
 
              # Exported symbols can be pulled into shared objects from archives
12340
 
              whole_archive_flag_spec_CXX='$convenience'
12341
 
            fi
12342
 
            archive_cmds_need_lc_CXX=yes
12343
 
            # This is similar to how AIX traditionally builds its shared
12344
 
            # libraries.
12345
 
            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'
12346
 
          fi
12347
 
        fi
12348
 
        ;;
12349
 
 
12350
 
      beos*)
12351
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12352
 
          allow_undefined_flag_CXX=unsupported
12353
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12354
 
          # support --undefined.  This deserves some investigation.  FIXME
12355
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12356
 
        else
12357
 
          ld_shlibs_CXX=no
12358
 
        fi
12359
 
        ;;
12360
 
 
12361
 
      chorus*)
12362
 
        case $cc_basename in
12363
 
          *)
12364
 
          # FIXME: insert proper C++ library support
12365
 
          ld_shlibs_CXX=no
12366
 
          ;;
12367
 
        esac
12368
 
        ;;
12369
 
 
12370
 
      cygwin* | mingw* | pw32* | cegcc*)
12371
 
        case $GXX,$cc_basename in
12372
 
        ,cl* | no,cl*)
12373
 
          # Native MSVC
12374
 
          # hardcode_libdir_flag_spec is actually meaningless, as there is
12375
 
          # no search path for DLLs.
12376
 
          hardcode_libdir_flag_spec_CXX=' '
12377
 
          allow_undefined_flag_CXX=unsupported
12378
 
          always_export_symbols_CXX=yes
12379
 
          file_list_spec_CXX='@'
12380
 
          # Tell ltmain to make .lib files, not .a files.
12381
 
          libext=lib
12382
 
          # Tell ltmain to make .dll files, not .so files.
12383
 
          shrext_cmds=".dll"
12384
 
          # FIXME: Setting linknames here is a bad hack.
12385
 
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12386
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12388
 
            else
12389
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12390
 
            fi~
12391
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12392
 
            linknames='
12393
 
          # The linker will not automatically build a static lib if we build a DLL.
12394
 
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12395
 
          enable_shared_with_static_runtimes_CXX=yes
12396
 
          # Don't use ranlib
12397
 
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
12398
 
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12399
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
12400
 
            case $lt_outputfile in
12401
 
              *.exe|*.EXE) ;;
12402
 
              *)
12403
 
                lt_outputfile="$lt_outputfile.exe"
12404
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
12405
 
                ;;
12406
 
            esac~
12407
 
            func_to_tool_file "$lt_outputfile"~
12408
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12409
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12410
 
              $RM "$lt_outputfile.manifest";
12411
 
            fi'
12412
 
          ;;
12413
 
        *)
12414
 
          # g++
12415
 
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12416
 
          # as there is no search path for DLLs.
12417
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12418
 
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12419
 
          allow_undefined_flag_CXX=unsupported
12420
 
          always_export_symbols_CXX=no
12421
 
          enable_shared_with_static_runtimes_CXX=yes
12422
 
 
12423
 
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12424
 
            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'
12425
 
            # If the export-symbols file already is a .def file (1st line
12426
 
            # is EXPORTS), use it as is; otherwise, prepend...
12427
 
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12428
 
              cp $export_symbols $output_objdir/$soname.def;
12429
 
            else
12430
 
              echo EXPORTS > $output_objdir/$soname.def;
12431
 
              cat $export_symbols >> $output_objdir/$soname.def;
12432
 
            fi~
12433
 
            $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'
12434
 
          else
12435
 
            ld_shlibs_CXX=no
12436
 
          fi
12437
 
          ;;
12438
 
        esac
12439
 
        ;;
12440
 
      darwin* | rhapsody*)
12441
 
 
12442
 
 
12443
 
  archive_cmds_need_lc_CXX=no
12444
 
  hardcode_direct_CXX=no
12445
 
  hardcode_automatic_CXX=yes
12446
 
  hardcode_shlibpath_var_CXX=unsupported
12447
 
  if test "$lt_cv_ld_force_load" = "yes"; then
12448
 
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12449
 
 
12450
 
  else
12451
 
    whole_archive_flag_spec_CXX=''
12452
 
  fi
12453
 
  link_all_deplibs_CXX=yes
12454
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12455
 
  case $cc_basename in
12456
 
     ifort*) _lt_dar_can_shared=yes ;;
12457
 
     *) _lt_dar_can_shared=$GCC ;;
12458
 
  esac
12459
 
  if test "$_lt_dar_can_shared" = "yes"; then
12460
 
    output_verbose_link_cmd=func_echo_all
12461
 
    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}"
12462
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12463
 
    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}"
12464
 
    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}"
12465
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12466
 
      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}"
12467
 
      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}"
12468
 
    fi
12469
 
 
12470
 
  else
12471
 
  ld_shlibs_CXX=no
12472
 
  fi
12473
 
 
12474
 
        ;;
12475
 
 
12476
 
      dgux*)
12477
 
        case $cc_basename in
12478
 
          ec++*)
12479
 
            # FIXME: insert proper C++ library support
12480
 
            ld_shlibs_CXX=no
12481
 
            ;;
12482
 
          ghcx*)
12483
 
            # Green Hills C++ Compiler
12484
 
            # FIXME: insert proper C++ library support
12485
 
            ld_shlibs_CXX=no
12486
 
            ;;
12487
 
          *)
12488
 
            # FIXME: insert proper C++ library support
12489
 
            ld_shlibs_CXX=no
12490
 
            ;;
12491
 
        esac
12492
 
        ;;
12493
 
 
12494
 
      freebsd2.*)
12495
 
        # C++ shared libraries reported to be fairly broken before
12496
 
        # switch to ELF
12497
 
        ld_shlibs_CXX=no
12498
 
        ;;
12499
 
 
12500
 
      freebsd-elf*)
12501
 
        archive_cmds_need_lc_CXX=no
12502
 
        ;;
12503
 
 
12504
 
      freebsd* | dragonfly*)
12505
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12506
 
        # conventions
12507
 
        ld_shlibs_CXX=yes
12508
 
        ;;
12509
 
 
12510
 
      gnu*)
12511
 
        ;;
12512
 
 
12513
 
      haiku*)
12514
 
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12515
 
        link_all_deplibs_CXX=yes
12516
 
        ;;
12517
 
 
12518
 
      hpux9*)
12519
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12520
 
        hardcode_libdir_separator_CXX=:
12521
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12522
 
        hardcode_direct_CXX=yes
12523
 
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12524
 
                                             # but as the default
12525
 
                                             # location of the library.
12526
 
 
12527
 
        case $cc_basename in
12528
 
          CC*)
12529
 
            # FIXME: insert proper C++ library support
12530
 
            ld_shlibs_CXX=no
12531
 
            ;;
12532
 
          aCC*)
12533
 
            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'
12534
 
            # Commands to make compiler produce verbose output that lists
12535
 
            # what "hidden" libraries, object files and flags are used when
12536
 
            # linking a shared library.
12537
 
            #
12538
 
            # There doesn't appear to be a way to prevent this compiler from
12539
 
            # explicitly linking system object files so we need to strip them
12540
 
            # from the output so that they don't get included in the library
12541
 
            # dependencies.
12542
 
            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; func_echo_all "$list"'
12543
 
            ;;
12544
 
          *)
12545
 
            if test "$GXX" = yes; then
12546
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12547
 
            else
12548
 
              # FIXME: insert proper C++ library support
12549
 
              ld_shlibs_CXX=no
12550
 
            fi
12551
 
            ;;
12552
 
        esac
12553
 
        ;;
12554
 
 
12555
 
      hpux10*|hpux11*)
12556
 
        if test $with_gnu_ld = no; then
12557
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12558
 
          hardcode_libdir_separator_CXX=:
12559
 
 
12560
 
          case $host_cpu in
12561
 
            hppa*64*|ia64*)
12562
 
              ;;
12563
 
            *)
12564
 
              export_dynamic_flag_spec_CXX='${wl}-E'
12565
 
              ;;
12566
 
          esac
12567
 
        fi
12568
 
        case $host_cpu in
12569
 
          hppa*64*|ia64*)
12570
 
            hardcode_direct_CXX=no
12571
 
            hardcode_shlibpath_var_CXX=no
12572
 
            ;;
12573
 
          *)
12574
 
            hardcode_direct_CXX=yes
12575
 
            hardcode_direct_absolute_CXX=yes
12576
 
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12577
 
                                                 # but as the default
12578
 
                                                 # location of the library.
12579
 
            ;;
12580
 
        esac
12581
 
 
12582
 
        case $cc_basename in
12583
 
          CC*)
12584
 
            # FIXME: insert proper C++ library support
12585
 
            ld_shlibs_CXX=no
12586
 
            ;;
12587
 
          aCC*)
12588
 
            case $host_cpu in
12589
 
              hppa*64*)
12590
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12591
 
                ;;
12592
 
              ia64*)
12593
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12594
 
                ;;
12595
 
              *)
12596
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12597
 
                ;;
12598
 
            esac
12599
 
            # Commands to make compiler produce verbose output that lists
12600
 
            # what "hidden" libraries, object files and flags are used when
12601
 
            # linking a shared library.
12602
 
            #
12603
 
            # There doesn't appear to be a way to prevent this compiler from
12604
 
            # explicitly linking system object files so we need to strip them
12605
 
            # from the output so that they don't get included in the library
12606
 
            # dependencies.
12607
 
            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; func_echo_all "$list"'
12608
 
            ;;
12609
 
          *)
12610
 
            if test "$GXX" = yes; then
12611
 
              if test $with_gnu_ld = no; then
12612
 
                case $host_cpu in
12613
 
                  hppa*64*)
12614
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12615
 
                    ;;
12616
 
                  ia64*)
12617
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12618
 
                    ;;
12619
 
                  *)
12620
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12621
 
                    ;;
12622
 
                esac
12623
 
              fi
12624
 
            else
12625
 
              # FIXME: insert proper C++ library support
12626
 
              ld_shlibs_CXX=no
12627
 
            fi
12628
 
            ;;
12629
 
        esac
12630
 
        ;;
12631
 
 
12632
 
      interix[3-9]*)
12633
 
        hardcode_direct_CXX=no
12634
 
        hardcode_shlibpath_var_CXX=no
12635
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12637
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12638
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
12639
 
        # default) and relocated if they conflict, which is a slow very memory
12640
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
12641
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12642
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12643
 
        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'
12644
 
        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'
12645
 
        ;;
12646
 
      irix5* | irix6*)
12647
 
        case $cc_basename in
12648
 
          CC*)
12649
 
            # SGI C++
12650
 
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12651
 
 
12652
 
            # Archives containing C++ object files must be created using
12653
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12654
 
            # necessary to make sure instantiated templates are included
12655
 
            # in the archive.
12656
 
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12657
 
            ;;
12658
 
          *)
12659
 
            if test "$GXX" = yes; then
12660
 
              if test "$with_gnu_ld" = no; then
12661
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12662
 
              else
12663
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12664
 
              fi
12665
 
            fi
12666
 
            link_all_deplibs_CXX=yes
12667
 
            ;;
12668
 
        esac
12669
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670
 
        hardcode_libdir_separator_CXX=:
12671
 
        inherit_rpath_CXX=yes
12672
 
        ;;
12673
 
 
12674
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12675
 
        case $cc_basename in
12676
 
          KCC*)
12677
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12678
 
 
12679
 
            # KCC will only create a shared library if the output file
12680
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12681
 
            # to its proper name (with version) after linking.
12682
 
            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'
12683
 
            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'
12684
 
            # Commands to make compiler produce verbose output that lists
12685
 
            # what "hidden" libraries, object files and flags are used when
12686
 
            # linking a shared library.
12687
 
            #
12688
 
            # There doesn't appear to be a way to prevent this compiler from
12689
 
            # explicitly linking system object files so we need to strip them
12690
 
            # from the output so that they don't get included in the library
12691
 
            # dependencies.
12692
 
            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; func_echo_all "$list"'
12693
 
 
12694
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12695
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12696
 
 
12697
 
            # Archives containing C++ object files must be created using
12698
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12699
 
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12700
 
            ;;
12701
 
          icpc* | ecpc* )
12702
 
            # Intel C++
12703
 
            with_gnu_ld=yes
12704
 
            # version 8.0 and above of icpc choke on multiply defined symbols
12705
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
12706
 
            # earlier do not add the objects themselves.
12707
 
            case `$CC -V 2>&1` in
12708
 
              *"Version 7."*)
12709
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710
 
                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'
12711
 
                ;;
12712
 
              *)  # Version 8.0 or newer
12713
 
                tmp_idyn=
12714
 
                case $host_cpu in
12715
 
                  ia64*) tmp_idyn=' -i_dynamic';;
12716
 
                esac
12717
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12718
 
                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'
12719
 
                ;;
12720
 
            esac
12721
 
            archive_cmds_need_lc_CXX=no
12722
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12723
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12724
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12725
 
            ;;
12726
 
          pgCC* | pgcpp*)
12727
 
            # Portland Group C++ compiler
12728
 
            case `$CC -V` in
12729
 
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12730
 
              prelink_cmds_CXX='tpldir=Template.dir~
12731
 
                rm -rf $tpldir~
12732
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12733
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12734
 
              old_archive_cmds_CXX='tpldir=Template.dir~
12735
 
                rm -rf $tpldir~
12736
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12737
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12738
 
                $RANLIB $oldlib'
12739
 
              archive_cmds_CXX='tpldir=Template.dir~
12740
 
                rm -rf $tpldir~
12741
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12742
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12743
 
              archive_expsym_cmds_CXX='tpldir=Template.dir~
12744
 
                rm -rf $tpldir~
12745
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12746
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12747
 
              ;;
12748
 
            *) # Version 6 and above use weak symbols
12749
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12750
 
              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'
12751
 
              ;;
12752
 
            esac
12753
 
 
12754
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12755
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12757
 
            ;;
12758
 
          cxx*)
12759
 
            # Compaq C++
12760
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761
 
            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'
12762
 
 
12763
 
            runpath_var=LD_RUN_PATH
12764
 
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12765
 
            hardcode_libdir_separator_CXX=:
12766
 
 
12767
 
            # Commands to make compiler produce verbose output that lists
12768
 
            # what "hidden" libraries, object files and flags are used when
12769
 
            # linking a shared library.
12770
 
            #
12771
 
            # There doesn't appear to be a way to prevent this compiler from
12772
 
            # explicitly linking system object files so we need to strip them
12773
 
            # from the output so that they don't get included in the library
12774
 
            # dependencies.
12775
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12776
 
            ;;
12777
 
          xl* | mpixl* | bgxl*)
12778
 
            # IBM XL 8.0 on PPC, with GNU ld
12779
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12780
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12781
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782
 
            if test "x$supports_anon_versioning" = xyes; then
12783
 
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12784
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12785
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
12786
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12787
 
            fi
12788
 
            ;;
12789
 
          *)
12790
 
            case `$CC -V 2>&1 | sed 5q` in
12791
 
            *Sun\ C*)
12792
 
              # Sun C++ 5.9
12793
 
              no_undefined_flag_CXX=' -zdefs'
12794
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12795
 
              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'
12796
 
              hardcode_libdir_flag_spec_CXX='-R$libdir'
12797
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12798
 
              compiler_needs_object_CXX=yes
12799
 
 
12800
 
              # Not sure whether something based on
12801
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12802
 
              # would be better.
12803
 
              output_verbose_link_cmd='func_echo_all'
12804
 
 
12805
 
              # Archives containing C++ object files must be created using
12806
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12807
 
              # necessary to make sure instantiated templates are included
12808
 
              # in the archive.
12809
 
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12810
 
              ;;
12811
 
            esac
12812
 
            ;;
12813
 
        esac
12814
 
        ;;
12815
 
 
12816
 
      lynxos*)
12817
 
        # FIXME: insert proper C++ library support
12818
 
        ld_shlibs_CXX=no
12819
 
        ;;
12820
 
 
12821
 
      m88k*)
12822
 
        # FIXME: insert proper C++ library support
12823
 
        ld_shlibs_CXX=no
12824
 
        ;;
12825
 
 
12826
 
      mvs*)
12827
 
        case $cc_basename in
12828
 
          cxx*)
12829
 
            # FIXME: insert proper C++ library support
12830
 
            ld_shlibs_CXX=no
12831
 
            ;;
12832
 
          *)
12833
 
            # FIXME: insert proper C++ library support
12834
 
            ld_shlibs_CXX=no
12835
 
            ;;
12836
 
        esac
12837
 
        ;;
12838
 
 
12839
 
      netbsd*)
12840
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12841
 
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12842
 
          wlarc=
12843
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12844
 
          hardcode_direct_CXX=yes
12845
 
          hardcode_shlibpath_var_CXX=no
12846
 
        fi
12847
 
        # Workaround some broken pre-1.5 toolchains
12848
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12849
 
        ;;
12850
 
 
12851
 
      *nto* | *qnx*)
12852
 
        ld_shlibs_CXX=yes
12853
 
        ;;
12854
 
 
12855
 
      openbsd2*)
12856
 
        # C++ shared libraries are fairly broken
12857
 
        ld_shlibs_CXX=no
12858
 
        ;;
12859
 
 
12860
 
      openbsd*)
12861
 
        if test -f /usr/libexec/ld.so; then
12862
 
          hardcode_direct_CXX=yes
12863
 
          hardcode_shlibpath_var_CXX=no
12864
 
          hardcode_direct_absolute_CXX=yes
12865
 
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12866
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12867
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12868
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12869
 
            export_dynamic_flag_spec_CXX='${wl}-E'
12870
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12871
 
          fi
12872
 
          output_verbose_link_cmd=func_echo_all
12873
 
        else
12874
 
          ld_shlibs_CXX=no
12875
 
        fi
12876
 
        ;;
12877
 
 
12878
 
      osf3* | osf4* | osf5*)
12879
 
        case $cc_basename in
12880
 
          KCC*)
12881
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12882
 
 
12883
 
            # KCC will only create a shared library if the output file
12884
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12885
 
            # to its proper name (with version) after linking.
12886
 
            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'
12887
 
 
12888
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889
 
            hardcode_libdir_separator_CXX=:
12890
 
 
12891
 
            # Archives containing C++ object files must be created using
12892
 
            # the KAI C++ compiler.
12893
 
            case $host in
12894
 
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12895
 
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12896
 
            esac
12897
 
            ;;
12898
 
          RCC*)
12899
 
            # Rational C++ 2.4.1
12900
 
            # FIXME: insert proper C++ library support
12901
 
            ld_shlibs_CXX=no
12902
 
            ;;
12903
 
          cxx*)
12904
 
            case $host in
12905
 
              osf3*)
12906
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12907
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12908
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12909
 
                ;;
12910
 
              *)
12911
 
                allow_undefined_flag_CXX=' -expect_unresolved \*'
12912
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12913
 
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12914
 
                  echo "-hidden">> $lib.exp~
12915
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12916
 
                  $RM $lib.exp'
12917
 
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12918
 
                ;;
12919
 
            esac
12920
 
 
12921
 
            hardcode_libdir_separator_CXX=:
12922
 
 
12923
 
            # Commands to make compiler produce verbose output that lists
12924
 
            # what "hidden" libraries, object files and flags are used when
12925
 
            # linking a shared library.
12926
 
            #
12927
 
            # There doesn't appear to be a way to prevent this compiler from
12928
 
            # explicitly linking system object files so we need to strip them
12929
 
            # from the output so that they don't get included in the library
12930
 
            # dependencies.
12931
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12932
 
            ;;
12933
 
          *)
12934
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12935
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12936
 
              case $host in
12937
 
                osf3*)
12938
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12939
 
                  ;;
12940
 
                *)
12941
 
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12942
 
                  ;;
12943
 
              esac
12944
 
 
12945
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946
 
              hardcode_libdir_separator_CXX=:
12947
 
 
12948
 
              # Commands to make compiler produce verbose output that lists
12949
 
              # what "hidden" libraries, object files and flags are used when
12950
 
              # linking a shared library.
12951
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12952
 
 
12953
 
            else
12954
 
              # FIXME: insert proper C++ library support
12955
 
              ld_shlibs_CXX=no
12956
 
            fi
12957
 
            ;;
12958
 
        esac
12959
 
        ;;
12960
 
 
12961
 
      psos*)
12962
 
        # FIXME: insert proper C++ library support
12963
 
        ld_shlibs_CXX=no
12964
 
        ;;
12965
 
 
12966
 
      sunos4*)
12967
 
        case $cc_basename in
12968
 
          CC*)
12969
 
            # Sun C++ 4.x
12970
 
            # FIXME: insert proper C++ library support
12971
 
            ld_shlibs_CXX=no
12972
 
            ;;
12973
 
          lcc*)
12974
 
            # Lucid
12975
 
            # FIXME: insert proper C++ library support
12976
 
            ld_shlibs_CXX=no
12977
 
            ;;
12978
 
          *)
12979
 
            # FIXME: insert proper C++ library support
12980
 
            ld_shlibs_CXX=no
12981
 
            ;;
12982
 
        esac
12983
 
        ;;
12984
 
 
12985
 
      solaris*)
12986
 
        case $cc_basename in
12987
 
          CC* | sunCC*)
12988
 
            # Sun C++ 4.2, 5.x and Centerline C++
12989
 
            archive_cmds_need_lc_CXX=yes
12990
 
            no_undefined_flag_CXX=' -zdefs'
12991
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992
 
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993
 
              $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'
12994
 
 
12995
 
            hardcode_libdir_flag_spec_CXX='-R$libdir'
12996
 
            hardcode_shlibpath_var_CXX=no
12997
 
            case $host_os in
12998
 
              solaris2.[0-5] | solaris2.[0-5].*) ;;
12999
 
              *)
13000
 
                # The compiler driver will combine and reorder linker options,
13001
 
                # but understands `-z linker_flag'.
13002
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
13003
 
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13004
 
                ;;
13005
 
            esac
13006
 
            link_all_deplibs_CXX=yes
13007
 
 
13008
 
            output_verbose_link_cmd='func_echo_all'
13009
 
 
13010
 
            # Archives containing C++ object files must be created using
13011
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13012
 
            # necessary to make sure instantiated templates are included
13013
 
            # in the archive.
13014
 
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13015
 
            ;;
13016
 
          gcx*)
13017
 
            # Green Hills C++ Compiler
13018
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13019
 
 
13020
 
            # The C++ compiler must be used to create the archive.
13021
 
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13022
 
            ;;
13023
 
          *)
13024
 
            # GNU C++ compiler with Solaris linker
13025
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13026
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13027
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13028
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13029
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13030
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13031
 
 
13032
 
                # Commands to make compiler produce verbose output that lists
13033
 
                # what "hidden" libraries, object files and flags are used when
13034
 
                # linking a shared library.
13035
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13036
 
              else
13037
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
13038
 
                # platform.
13039
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13040
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13041
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13042
 
 
13043
 
                # Commands to make compiler produce verbose output that lists
13044
 
                # what "hidden" libraries, object files and flags are used when
13045
 
                # linking a shared library.
13046
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13047
 
              fi
13048
 
 
13049
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13050
 
              case $host_os in
13051
 
                solaris2.[0-5] | solaris2.[0-5].*) ;;
13052
 
                *)
13053
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13054
 
                  ;;
13055
 
              esac
13056
 
            fi
13057
 
            ;;
13058
 
        esac
13059
 
        ;;
13060
 
 
13061
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13062
 
      no_undefined_flag_CXX='${wl}-z,text'
13063
 
      archive_cmds_need_lc_CXX=no
13064
 
      hardcode_shlibpath_var_CXX=no
13065
 
      runpath_var='LD_RUN_PATH'
13066
 
 
13067
 
      case $cc_basename in
13068
 
        CC*)
13069
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071
 
          ;;
13072
 
        *)
13073
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075
 
          ;;
13076
 
      esac
13077
 
      ;;
13078
 
 
13079
 
      sysv5* | sco3.2v5* | sco5v6*)
13080
 
        # Note: We can NOT use -z defs as we might desire, because we do not
13081
 
        # link with -lc, and that would cause any symbols used from libc to
13082
 
        # always be unresolved, which means just about no library would
13083
 
        # ever link correctly.  If we're not using GNU ld we use -z text
13084
 
        # though, which does catch some bad symbols but isn't as heavy-handed
13085
 
        # as -z defs.
13086
 
        no_undefined_flag_CXX='${wl}-z,text'
13087
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
13088
 
        archive_cmds_need_lc_CXX=no
13089
 
        hardcode_shlibpath_var_CXX=no
13090
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13091
 
        hardcode_libdir_separator_CXX=':'
13092
 
        link_all_deplibs_CXX=yes
13093
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
13094
 
        runpath_var='LD_RUN_PATH'
13095
 
 
13096
 
        case $cc_basename in
13097
 
          CC*)
13098
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100
 
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13101
 
              '"$old_archive_cmds_CXX"
13102
 
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13103
 
              '"$reload_cmds_CXX"
13104
 
            ;;
13105
 
          *)
13106
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13108
 
            ;;
13109
 
        esac
13110
 
      ;;
13111
 
 
13112
 
      tandem*)
13113
 
        case $cc_basename in
13114
 
          NCC*)
13115
 
            # NonStop-UX NCC 3.20
13116
 
            # FIXME: insert proper C++ library support
13117
 
            ld_shlibs_CXX=no
13118
 
            ;;
13119
 
          *)
13120
 
            # FIXME: insert proper C++ library support
13121
 
            ld_shlibs_CXX=no
13122
 
            ;;
13123
 
        esac
13124
 
        ;;
13125
 
 
13126
 
      vxworks*)
13127
 
        # FIXME: insert proper C++ library support
13128
 
        ld_shlibs_CXX=no
13129
 
        ;;
13130
 
 
13131
 
      *)
13132
 
        # FIXME: insert proper C++ library support
13133
 
        ld_shlibs_CXX=no
13134
 
        ;;
13135
 
    esac
13136
 
 
13137
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13138
 
$as_echo "$ld_shlibs_CXX" >&6; }
13139
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13140
 
 
13141
 
    GCC_CXX="$GXX"
13142
 
    LD_CXX="$LD"
13143
 
 
13144
 
    ## CAVEAT EMPTOR:
13145
 
    ## There is no encapsulation within the following macros, do not change
13146
 
    ## the running order or otherwise move them around unless you know exactly
13147
 
    ## what you are doing...
13148
 
    # Dependencies to place before and after the object being linked:
13149
 
predep_objects_CXX=
13150
 
postdep_objects_CXX=
13151
 
predeps_CXX=
13152
 
postdeps_CXX=
13153
 
compiler_lib_search_path_CXX=
13154
 
 
13155
 
cat > conftest.$ac_ext <<_LT_EOF
13156
 
class Foo
13157
 
{
13158
 
public:
13159
 
  Foo (void) { a = 0; }
13160
 
private:
13161
 
  int a;
13162
 
};
13163
 
_LT_EOF
13164
 
 
13165
 
 
13166
 
_lt_libdeps_save_CFLAGS=$CFLAGS
13167
 
case "$CC $CFLAGS " in #(
13168
 
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13169
 
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13170
 
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13171
 
esac
13172
 
 
13173
 
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13174
 
  (eval $ac_compile) 2>&5
13175
 
  ac_status=$?
13176
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177
 
  test $ac_status = 0; }; then
13178
 
  # Parse the compiler output and extract the necessary
13179
 
  # objects, libraries and library flags.
13180
 
 
13181
 
  # Sentinel used to keep track of whether or not we are before
13182
 
  # the conftest object file.
13183
 
  pre_test_object_deps_done=no
13184
 
 
13185
 
  for p in `eval "$output_verbose_link_cmd"`; do
13186
 
    case ${prev}${p} in
13187
 
 
13188
 
    -L* | -R* | -l*)
13189
 
       # Some compilers place space between "-{L,R}" and the path.
13190
 
       # Remove the space.
13191
 
       if test $p = "-L" ||
13192
 
          test $p = "-R"; then
13193
 
         prev=$p
13194
 
         continue
13195
 
       fi
13196
 
 
13197
 
       # Expand the sysroot to ease extracting the directories later.
13198
 
       if test -z "$prev"; then
13199
 
         case $p in
13200
 
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13201
 
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13202
 
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13203
 
         esac
13204
 
       fi
13205
 
       case $p in
13206
 
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13207
 
       esac
13208
 
       if test "$pre_test_object_deps_done" = no; then
13209
 
         case ${prev} in
13210
 
         -L | -R)
13211
 
           # Internal compiler library paths should come after those
13212
 
           # provided the user.  The postdeps already come after the
13213
 
           # user supplied libs so there is no need to process them.
13214
 
           if test -z "$compiler_lib_search_path_CXX"; then
13215
 
             compiler_lib_search_path_CXX="${prev}${p}"
13216
 
           else
13217
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13218
 
           fi
13219
 
           ;;
13220
 
         # The "-l" case would never come before the object being
13221
 
         # linked, so don't bother handling this case.
13222
 
         esac
13223
 
       else
13224
 
         if test -z "$postdeps_CXX"; then
13225
 
           postdeps_CXX="${prev}${p}"
13226
 
         else
13227
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13228
 
         fi
13229
 
       fi
13230
 
       prev=
13231
 
       ;;
13232
 
 
13233
 
    *.lto.$objext) ;; # Ignore GCC LTO objects
13234
 
    *.$objext)
13235
 
       # This assumes that the test object file only shows up
13236
 
       # once in the compiler output.
13237
 
       if test "$p" = "conftest.$objext"; then
13238
 
         pre_test_object_deps_done=yes
13239
 
         continue
13240
 
       fi
13241
 
 
13242
 
       if test "$pre_test_object_deps_done" = no; then
13243
 
         if test -z "$predep_objects_CXX"; then
13244
 
           predep_objects_CXX="$p"
13245
 
         else
13246
 
           predep_objects_CXX="$predep_objects_CXX $p"
13247
 
         fi
13248
 
       else
13249
 
         if test -z "$postdep_objects_CXX"; then
13250
 
           postdep_objects_CXX="$p"
13251
 
         else
13252
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13253
 
         fi
13254
 
       fi
13255
 
       ;;
13256
 
 
13257
 
    *) ;; # Ignore the rest.
13258
 
 
13259
 
    esac
13260
 
  done
13261
 
 
13262
 
  # Clean up.
13263
 
  rm -f a.out a.exe
13264
 
else
13265
 
  echo "libtool.m4: error: problem compiling CXX test program"
13266
 
fi
13267
 
 
13268
 
$RM -f confest.$objext
13269
 
CFLAGS=$_lt_libdeps_save_CFLAGS
13270
 
 
13271
 
# PORTME: override above test on systems where it is broken
13272
 
case $host_os in
13273
 
interix[3-9]*)
13274
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13275
 
  # hack all around it, let's just trust "g++" to DTRT.
13276
 
  predep_objects_CXX=
13277
 
  postdep_objects_CXX=
13278
 
  postdeps_CXX=
13279
 
  ;;
13280
 
 
13281
 
linux*)
13282
 
  case `$CC -V 2>&1 | sed 5q` in
13283
 
  *Sun\ C*)
13284
 
    # Sun C++ 5.9
13285
 
 
13286
 
    # The more standards-conforming stlport4 library is
13287
 
    # incompatible with the Cstd library. Avoid specifying
13288
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13289
 
    # -library=stlport4 depends on it.
13290
 
    case " $CXX $CXXFLAGS " in
13291
 
    *" -library=stlport4 "*)
13292
 
      solaris_use_stlport4=yes
13293
 
      ;;
13294
 
    esac
13295
 
 
13296
 
    if test "$solaris_use_stlport4" != yes; then
13297
 
      postdeps_CXX='-library=Cstd -library=Crun'
13298
 
    fi
13299
 
    ;;
13300
 
  esac
13301
 
  ;;
13302
 
 
13303
 
solaris*)
13304
 
  case $cc_basename in
13305
 
  CC* | sunCC*)
13306
 
    # The more standards-conforming stlport4 library is
13307
 
    # incompatible with the Cstd library. Avoid specifying
13308
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13309
 
    # -library=stlport4 depends on it.
13310
 
    case " $CXX $CXXFLAGS " in
13311
 
    *" -library=stlport4 "*)
13312
 
      solaris_use_stlport4=yes
13313
 
      ;;
13314
 
    esac
13315
 
 
13316
 
    # Adding this requires a known-good setup of shared libraries for
13317
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13318
 
    # archive will be linked into the output, leading to subtle bugs.
13319
 
    if test "$solaris_use_stlport4" != yes; then
13320
 
      postdeps_CXX='-library=Cstd -library=Crun'
13321
 
    fi
13322
 
    ;;
13323
 
  esac
13324
 
  ;;
13325
 
esac
13326
 
 
13327
 
 
13328
 
case " $postdeps_CXX " in
13329
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13330
 
esac
13331
 
 compiler_lib_search_dirs_CXX=
13332
 
if test -n "${compiler_lib_search_path_CXX}"; then
13333
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13334
 
fi
13335
 
 
13336
 
 
13337
 
 
13338
 
 
13339
 
 
13340
 
 
13341
 
 
13342
 
 
13343
 
 
13344
 
 
13345
 
 
13346
 
 
13347
 
 
13348
 
 
13349
 
 
13350
 
 
13351
 
 
13352
 
 
13353
 
 
13354
 
 
13355
 
 
13356
 
 
13357
 
 
13358
 
 
13359
 
 
13360
 
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
 
 
13366
 
    lt_prog_compiler_wl_CXX=
13367
 
lt_prog_compiler_pic_CXX=
13368
 
lt_prog_compiler_static_CXX=
13369
 
 
13370
 
 
13371
 
  # C++ specific cases for pic, static, wl, etc.
13372
 
  if test "$GXX" = yes; then
13373
 
    lt_prog_compiler_wl_CXX='-Wl,'
13374
 
    lt_prog_compiler_static_CXX='-static'
13375
 
 
13376
 
    case $host_os in
13377
 
    aix*)
13378
 
      # All AIX code is PIC.
13379
 
      if test "$host_cpu" = ia64; then
13380
 
        # AIX 5 now supports IA64 processor
13381
 
        lt_prog_compiler_static_CXX='-Bstatic'
13382
 
      fi
13383
 
      ;;
13384
 
 
13385
 
    amigaos*)
13386
 
      case $host_cpu in
13387
 
      powerpc)
13388
 
            # see comment about AmigaOS4 .so support
13389
 
            lt_prog_compiler_pic_CXX='-fPIC'
13390
 
        ;;
13391
 
      m68k)
13392
 
            # FIXME: we need at least 68020 code to build shared libraries, but
13393
 
            # adding the `-m68020' flag to GCC prevents building anything better,
13394
 
            # like `-m68040'.
13395
 
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13396
 
        ;;
13397
 
      esac
13398
 
      ;;
13399
 
 
13400
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13401
 
      # PIC is the default for these OSes.
13402
 
      ;;
13403
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13404
 
      # This hack is so that the source file can tell whether it is being
13405
 
      # built for inclusion in a dll (and should export symbols for example).
13406
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13407
 
      # (--disable-auto-import) libraries
13408
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13409
 
      ;;
13410
 
    darwin* | rhapsody*)
13411
 
      # PIC is the default on this platform
13412
 
      # Common symbols not allowed in MH_DYLIB files
13413
 
      lt_prog_compiler_pic_CXX='-fno-common'
13414
 
      ;;
13415
 
    *djgpp*)
13416
 
      # DJGPP does not support shared libraries at all
13417
 
      lt_prog_compiler_pic_CXX=
13418
 
      ;;
13419
 
    haiku*)
13420
 
      # PIC is the default for Haiku.
13421
 
      # The "-static" flag exists, but is broken.
13422
 
      lt_prog_compiler_static_CXX=
13423
 
      ;;
13424
 
    interix[3-9]*)
13425
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13426
 
      # Instead, we relocate shared libraries at runtime.
13427
 
      ;;
13428
 
    sysv4*MP*)
13429
 
      if test -d /usr/nec; then
13430
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
13431
 
      fi
13432
 
      ;;
13433
 
    hpux*)
13434
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13435
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13436
 
      # sets the default TLS model and affects inlining.
13437
 
      case $host_cpu in
13438
 
      hppa*64*)
13439
 
        ;;
13440
 
      *)
13441
 
        lt_prog_compiler_pic_CXX='-fPIC'
13442
 
        ;;
13443
 
      esac
13444
 
      ;;
13445
 
    *qnx* | *nto*)
13446
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13447
 
      # it will coredump.
13448
 
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13449
 
      ;;
13450
 
    *)
13451
 
      lt_prog_compiler_pic_CXX='-fPIC'
13452
 
      ;;
13453
 
    esac
13454
 
  else
13455
 
    case $host_os in
13456
 
      aix[4-9]*)
13457
 
        # All AIX code is PIC.
13458
 
        if test "$host_cpu" = ia64; then
13459
 
          # AIX 5 now supports IA64 processor
13460
 
          lt_prog_compiler_static_CXX='-Bstatic'
13461
 
        else
13462
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13463
 
        fi
13464
 
        ;;
13465
 
      chorus*)
13466
 
        case $cc_basename in
13467
 
        cxch68*)
13468
 
          # Green Hills C++ Compiler
13469
 
          # _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"
13470
 
          ;;
13471
 
        esac
13472
 
        ;;
13473
 
      mingw* | cygwin* | os2* | pw32* | cegcc*)
13474
 
        # This hack is so that the source file can tell whether it is being
13475
 
        # built for inclusion in a dll (and should export symbols for example).
13476
 
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13477
 
        ;;
13478
 
      dgux*)
13479
 
        case $cc_basename in
13480
 
          ec++*)
13481
 
            lt_prog_compiler_pic_CXX='-KPIC'
13482
 
            ;;
13483
 
          ghcx*)
13484
 
            # Green Hills C++ Compiler
13485
 
            lt_prog_compiler_pic_CXX='-pic'
13486
 
            ;;
13487
 
          *)
13488
 
            ;;
13489
 
        esac
13490
 
        ;;
13491
 
      freebsd* | dragonfly*)
13492
 
        # FreeBSD uses GNU C++
13493
 
        ;;
13494
 
      hpux9* | hpux10* | hpux11*)
13495
 
        case $cc_basename in
13496
 
          CC*)
13497
 
            lt_prog_compiler_wl_CXX='-Wl,'
13498
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13499
 
            if test "$host_cpu" != ia64; then
13500
 
              lt_prog_compiler_pic_CXX='+Z'
13501
 
            fi
13502
 
            ;;
13503
 
          aCC*)
13504
 
            lt_prog_compiler_wl_CXX='-Wl,'
13505
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13506
 
            case $host_cpu in
13507
 
            hppa*64*|ia64*)
13508
 
              # +Z the default
13509
 
              ;;
13510
 
            *)
13511
 
              lt_prog_compiler_pic_CXX='+Z'
13512
 
              ;;
13513
 
            esac
13514
 
            ;;
13515
 
          *)
13516
 
            ;;
13517
 
        esac
13518
 
        ;;
13519
 
      interix*)
13520
 
        # This is c89, which is MS Visual C++ (no shared libs)
13521
 
        # Anyone wants to do a port?
13522
 
        ;;
13523
 
      irix5* | irix6* | nonstopux*)
13524
 
        case $cc_basename in
13525
 
          CC*)
13526
 
            lt_prog_compiler_wl_CXX='-Wl,'
13527
 
            lt_prog_compiler_static_CXX='-non_shared'
13528
 
            # CC pic flag -KPIC is the default.
13529
 
            ;;
13530
 
          *)
13531
 
            ;;
13532
 
        esac
13533
 
        ;;
13534
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13535
 
        case $cc_basename in
13536
 
          KCC*)
13537
 
            # KAI C++ Compiler
13538
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13539
 
            lt_prog_compiler_pic_CXX='-fPIC'
13540
 
            ;;
13541
 
          ecpc* )
13542
 
            # old Intel C++ for x86_64 which still supported -KPIC.
13543
 
            lt_prog_compiler_wl_CXX='-Wl,'
13544
 
            lt_prog_compiler_pic_CXX='-KPIC'
13545
 
            lt_prog_compiler_static_CXX='-static'
13546
 
            ;;
13547
 
          icpc* )
13548
 
            # Intel C++, used to be incompatible with GCC.
13549
 
            # ICC 10 doesn't accept -KPIC any more.
13550
 
            lt_prog_compiler_wl_CXX='-Wl,'
13551
 
            lt_prog_compiler_pic_CXX='-fPIC'
13552
 
            lt_prog_compiler_static_CXX='-static'
13553
 
            ;;
13554
 
          pgCC* | pgcpp*)
13555
 
            # Portland Group C++ compiler
13556
 
            lt_prog_compiler_wl_CXX='-Wl,'
13557
 
            lt_prog_compiler_pic_CXX='-fpic'
13558
 
            lt_prog_compiler_static_CXX='-Bstatic'
13559
 
            ;;
13560
 
          cxx*)
13561
 
            # Compaq C++
13562
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13563
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13564
 
            lt_prog_compiler_pic_CXX=
13565
 
            lt_prog_compiler_static_CXX='-non_shared'
13566
 
            ;;
13567
 
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13568
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
13569
 
            lt_prog_compiler_wl_CXX='-Wl,'
13570
 
            lt_prog_compiler_pic_CXX='-qpic'
13571
 
            lt_prog_compiler_static_CXX='-qstaticlink'
13572
 
            ;;
13573
 
          *)
13574
 
            case `$CC -V 2>&1 | sed 5q` in
13575
 
            *Sun\ C*)
13576
 
              # Sun C++ 5.9
13577
 
              lt_prog_compiler_pic_CXX='-KPIC'
13578
 
              lt_prog_compiler_static_CXX='-Bstatic'
13579
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
13580
 
              ;;
13581
 
            esac
13582
 
            ;;
13583
 
        esac
13584
 
        ;;
13585
 
      lynxos*)
13586
 
        ;;
13587
 
      m88k*)
13588
 
        ;;
13589
 
      mvs*)
13590
 
        case $cc_basename in
13591
 
          cxx*)
13592
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13593
 
            ;;
13594
 
          *)
13595
 
            ;;
13596
 
        esac
13597
 
        ;;
13598
 
      netbsd* | netbsdelf*-gnu)
13599
 
        ;;
13600
 
      *qnx* | *nto*)
13601
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13602
 
        # it will coredump.
13603
 
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13604
 
        ;;
13605
 
      osf3* | osf4* | osf5*)
13606
 
        case $cc_basename in
13607
 
          KCC*)
13608
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13609
 
            ;;
13610
 
          RCC*)
13611
 
            # Rational C++ 2.4.1
13612
 
            lt_prog_compiler_pic_CXX='-pic'
13613
 
            ;;
13614
 
          cxx*)
13615
 
            # Digital/Compaq C++
13616
 
            lt_prog_compiler_wl_CXX='-Wl,'
13617
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13618
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13619
 
            lt_prog_compiler_pic_CXX=
13620
 
            lt_prog_compiler_static_CXX='-non_shared'
13621
 
            ;;
13622
 
          *)
13623
 
            ;;
13624
 
        esac
13625
 
        ;;
13626
 
      psos*)
13627
 
        ;;
13628
 
      solaris*)
13629
 
        case $cc_basename in
13630
 
          CC* | sunCC*)
13631
 
            # Sun C++ 4.2, 5.x and Centerline C++
13632
 
            lt_prog_compiler_pic_CXX='-KPIC'
13633
 
            lt_prog_compiler_static_CXX='-Bstatic'
13634
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13635
 
            ;;
13636
 
          gcx*)
13637
 
            # Green Hills C++ Compiler
13638
 
            lt_prog_compiler_pic_CXX='-PIC'
13639
 
            ;;
13640
 
          *)
13641
 
            ;;
13642
 
        esac
13643
 
        ;;
13644
 
      sunos4*)
13645
 
        case $cc_basename in
13646
 
          CC*)
13647
 
            # Sun C++ 4.x
13648
 
            lt_prog_compiler_pic_CXX='-pic'
13649
 
            lt_prog_compiler_static_CXX='-Bstatic'
13650
 
            ;;
13651
 
          lcc*)
13652
 
            # Lucid
13653
 
            lt_prog_compiler_pic_CXX='-pic'
13654
 
            ;;
13655
 
          *)
13656
 
            ;;
13657
 
        esac
13658
 
        ;;
13659
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13660
 
        case $cc_basename in
13661
 
          CC*)
13662
 
            lt_prog_compiler_wl_CXX='-Wl,'
13663
 
            lt_prog_compiler_pic_CXX='-KPIC'
13664
 
            lt_prog_compiler_static_CXX='-Bstatic'
13665
 
            ;;
13666
 
        esac
13667
 
        ;;
13668
 
      tandem*)
13669
 
        case $cc_basename in
13670
 
          NCC*)
13671
 
            # NonStop-UX NCC 3.20
13672
 
            lt_prog_compiler_pic_CXX='-KPIC'
13673
 
            ;;
13674
 
          *)
13675
 
            ;;
13676
 
        esac
13677
 
        ;;
13678
 
      vxworks*)
13679
 
        ;;
13680
 
      *)
13681
 
        lt_prog_compiler_can_build_shared_CXX=no
13682
 
        ;;
13683
 
    esac
13684
 
  fi
13685
 
 
13686
 
case $host_os in
13687
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13688
 
  *djgpp*)
13689
 
    lt_prog_compiler_pic_CXX=
13690
 
    ;;
13691
 
  *)
13692
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13693
 
    ;;
13694
 
esac
13695
 
 
13696
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13697
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13698
 
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13699
 
  $as_echo_n "(cached) " >&6
13700
 
else
13701
 
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13702
 
fi
13703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13704
 
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13705
 
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13706
 
 
13707
 
#
13708
 
# Check to make sure the PIC flag actually works.
13709
 
#
13710
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13711
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13712
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13713
 
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13714
 
  $as_echo_n "(cached) " >&6
13715
 
else
13716
 
  lt_cv_prog_compiler_pic_works_CXX=no
13717
 
   ac_outfile=conftest.$ac_objext
13718
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13720
 
   # Insert the option either (1) after the last *FLAGS variable, or
13721
 
   # (2) before a word containing "conftest.", or (3) at the end.
13722
 
   # Note that $ac_compile itself does not contain backslashes and begins
13723
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13724
 
   # The option is referenced via a variable to avoid confusing sed.
13725
 
   lt_compile=`echo "$ac_compile" | $SED \
13726
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728
 
   -e 's:$: $lt_compiler_flag:'`
13729
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13730
 
   (eval "$lt_compile" 2>conftest.err)
13731
 
   ac_status=$?
13732
 
   cat conftest.err >&5
13733
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13735
 
     # The compiler can only warn and ignore the option if not recognized
13736
 
     # So say no if there are warnings other than the usual output.
13737
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13738
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13739
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13740
 
       lt_cv_prog_compiler_pic_works_CXX=yes
13741
 
     fi
13742
 
   fi
13743
 
   $RM conftest*
13744
 
 
13745
 
fi
13746
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13747
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13748
 
 
13749
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13750
 
    case $lt_prog_compiler_pic_CXX in
13751
 
     "" | " "*) ;;
13752
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13753
 
     esac
13754
 
else
13755
 
    lt_prog_compiler_pic_CXX=
13756
 
     lt_prog_compiler_can_build_shared_CXX=no
13757
 
fi
13758
 
 
13759
 
fi
13760
 
 
13761
 
 
13762
 
 
13763
 
 
13764
 
 
13765
 
#
13766
 
# Check to make sure the static flag actually works.
13767
 
#
13768
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13769
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13770
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13771
 
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13772
 
  $as_echo_n "(cached) " >&6
13773
 
else
13774
 
  lt_cv_prog_compiler_static_works_CXX=no
13775
 
   save_LDFLAGS="$LDFLAGS"
13776
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13777
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13778
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13779
 
     # The linker can only warn and ignore the option if not recognized
13780
 
     # So say no if there are warnings
13781
 
     if test -s conftest.err; then
13782
 
       # Append any errors to the config.log.
13783
 
       cat conftest.err 1>&5
13784
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13785
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13787
 
         lt_cv_prog_compiler_static_works_CXX=yes
13788
 
       fi
13789
 
     else
13790
 
       lt_cv_prog_compiler_static_works_CXX=yes
13791
 
     fi
13792
 
   fi
13793
 
   $RM -r conftest*
13794
 
   LDFLAGS="$save_LDFLAGS"
13795
 
 
13796
 
fi
13797
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13798
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13799
 
 
13800
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13801
 
    :
13802
 
else
13803
 
    lt_prog_compiler_static_CXX=
13804
 
fi
13805
 
 
13806
 
 
13807
 
 
13808
 
 
13809
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13810
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13811
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13812
 
  $as_echo_n "(cached) " >&6
13813
 
else
13814
 
  lt_cv_prog_compiler_c_o_CXX=no
13815
 
   $RM -r conftest 2>/dev/null
13816
 
   mkdir conftest
13817
 
   cd conftest
13818
 
   mkdir out
13819
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13820
 
 
13821
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13822
 
   # Insert the option either (1) after the last *FLAGS variable, or
13823
 
   # (2) before a word containing "conftest.", or (3) at the end.
13824
 
   # Note that $ac_compile itself does not contain backslashes and begins
13825
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13826
 
   lt_compile=`echo "$ac_compile" | $SED \
13827
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13828
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13829
 
   -e 's:$: $lt_compiler_flag:'`
13830
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13831
 
   (eval "$lt_compile" 2>out/conftest.err)
13832
 
   ac_status=$?
13833
 
   cat out/conftest.err >&5
13834
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13836
 
   then
13837
 
     # The compiler can only warn and ignore the option if not recognized
13838
 
     # So say no if there are warnings
13839
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13840
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13841
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13842
 
       lt_cv_prog_compiler_c_o_CXX=yes
13843
 
     fi
13844
 
   fi
13845
 
   chmod u+w . 2>&5
13846
 
   $RM conftest*
13847
 
   # SGI C++ compiler will create directory out/ii_files/ for
13848
 
   # template instantiation
13849
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13850
 
   $RM out/* && rmdir out
13851
 
   cd ..
13852
 
   $RM -r conftest
13853
 
   $RM conftest*
13854
 
 
13855
 
fi
13856
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13857
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13858
 
 
13859
 
 
13860
 
 
13861
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13862
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13863
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13864
 
  $as_echo_n "(cached) " >&6
13865
 
else
13866
 
  lt_cv_prog_compiler_c_o_CXX=no
13867
 
   $RM -r conftest 2>/dev/null
13868
 
   mkdir conftest
13869
 
   cd conftest
13870
 
   mkdir out
13871
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13872
 
 
13873
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13874
 
   # Insert the option either (1) after the last *FLAGS variable, or
13875
 
   # (2) before a word containing "conftest.", or (3) at the end.
13876
 
   # Note that $ac_compile itself does not contain backslashes and begins
13877
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13878
 
   lt_compile=`echo "$ac_compile" | $SED \
13879
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881
 
   -e 's:$: $lt_compiler_flag:'`
13882
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13883
 
   (eval "$lt_compile" 2>out/conftest.err)
13884
 
   ac_status=$?
13885
 
   cat out/conftest.err >&5
13886
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13888
 
   then
13889
 
     # The compiler can only warn and ignore the option if not recognized
13890
 
     # So say no if there are warnings
13891
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13892
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894
 
       lt_cv_prog_compiler_c_o_CXX=yes
13895
 
     fi
13896
 
   fi
13897
 
   chmod u+w . 2>&5
13898
 
   $RM conftest*
13899
 
   # SGI C++ compiler will create directory out/ii_files/ for
13900
 
   # template instantiation
13901
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13902
 
   $RM out/* && rmdir out
13903
 
   cd ..
13904
 
   $RM -r conftest
13905
 
   $RM conftest*
13906
 
 
13907
 
fi
13908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13909
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13910
 
 
13911
 
 
13912
 
 
13913
 
 
13914
 
hard_links="nottested"
13915
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13916
 
  # do not overwrite the value of need_locks provided by the user
13917
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13918
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13919
 
  hard_links=yes
13920
 
  $RM conftest*
13921
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13922
 
  touch conftest.a
13923
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13924
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13925
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13926
 
$as_echo "$hard_links" >&6; }
13927
 
  if test "$hard_links" = no; then
13928
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13929
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13930
 
    need_locks=warn
13931
 
  fi
13932
 
else
13933
 
  need_locks=no
13934
 
fi
13935
 
 
13936
 
 
13937
 
 
13938
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13940
 
 
13941
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13942
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13943
 
  case $host_os in
13944
 
  aix[4-9]*)
13945
 
    # If we're using GNU nm, then we don't want the "-C" option.
13946
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13947
 
    # Also, AIX nm treats weak defined symbols like other global defined
13948
 
    # symbols, whereas GNU nm marks them as "W".
13949
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13950
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13951
 
    else
13952
 
      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'
13953
 
    fi
13954
 
    ;;
13955
 
  pw32*)
13956
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13957
 
    ;;
13958
 
  cygwin* | mingw* | cegcc*)
13959
 
    case $cc_basename in
13960
 
    cl*)
13961
 
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13962
 
      ;;
13963
 
    *)
13964
 
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13965
 
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13966
 
      ;;
13967
 
    esac
13968
 
    ;;
13969
 
  linux* | k*bsd*-gnu | gnu*)
13970
 
    link_all_deplibs_CXX=no
13971
 
    ;;
13972
 
  *)
13973
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13974
 
    ;;
13975
 
  esac
13976
 
 
13977
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978
 
$as_echo "$ld_shlibs_CXX" >&6; }
13979
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13980
 
 
13981
 
with_gnu_ld_CXX=$with_gnu_ld
13982
 
 
13983
 
 
13984
 
 
13985
 
 
13986
 
 
13987
 
 
13988
 
#
13989
 
# Do we need to explicitly link libc?
13990
 
#
13991
 
case "x$archive_cmds_need_lc_CXX" in
13992
 
x|xyes)
13993
 
  # Assume -lc should be added
13994
 
  archive_cmds_need_lc_CXX=yes
13995
 
 
13996
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13997
 
    case $archive_cmds_CXX in
13998
 
    *'~'*)
13999
 
      # FIXME: we may have to deal with multi-command sequences.
14000
 
      ;;
14001
 
    '$CC '*)
14002
 
      # Test whether the compiler implicitly links with -lc since on some
14003
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14004
 
      # to ld, don't add -lc before -lgcc.
14005
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14006
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14007
 
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14008
 
  $as_echo_n "(cached) " >&6
14009
 
else
14010
 
  $RM conftest*
14011
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012
 
 
14013
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014
 
  (eval $ac_compile) 2>&5
14015
 
  ac_status=$?
14016
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017
 
  test $ac_status = 0; } 2>conftest.err; then
14018
 
          soname=conftest
14019
 
          lib=conftest
14020
 
          libobjs=conftest.$ac_objext
14021
 
          deplibs=
14022
 
          wl=$lt_prog_compiler_wl_CXX
14023
 
          pic_flag=$lt_prog_compiler_pic_CXX
14024
 
          compiler_flags=-v
14025
 
          linker_flags=-v
14026
 
          verstring=
14027
 
          output_objdir=.
14028
 
          libname=conftest
14029
 
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14030
 
          allow_undefined_flag_CXX=
14031
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14032
 
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14033
 
  ac_status=$?
14034
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035
 
  test $ac_status = 0; }
14036
 
          then
14037
 
            lt_cv_archive_cmds_need_lc_CXX=no
14038
 
          else
14039
 
            lt_cv_archive_cmds_need_lc_CXX=yes
14040
 
          fi
14041
 
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14042
 
        else
14043
 
          cat conftest.err 1>&5
14044
 
        fi
14045
 
        $RM conftest*
14046
 
 
14047
 
fi
14048
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14049
 
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14050
 
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14051
 
      ;;
14052
 
    esac
14053
 
  fi
14054
 
  ;;
14055
 
esac
14056
 
 
14057
 
 
14058
 
 
14059
 
 
14060
 
 
14061
 
 
14062
 
 
14063
 
 
14064
 
 
14065
 
 
14066
 
 
14067
 
 
14068
 
 
14069
 
 
14070
 
 
14071
 
 
14072
 
 
14073
 
 
14074
 
 
14075
 
 
14076
 
 
14077
 
 
14078
 
 
14079
 
 
14080
 
 
14081
 
 
14082
 
 
14083
 
 
14084
 
 
14085
 
 
14086
 
 
14087
 
 
14088
 
 
14089
 
 
14090
 
 
14091
 
 
14092
 
 
14093
 
 
14094
 
 
14095
 
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
 
 
14101
 
 
14102
 
 
14103
 
 
14104
 
 
14105
 
 
14106
 
 
14107
 
 
14108
 
 
14109
 
 
14110
 
 
14111
 
 
14112
 
 
14113
 
 
14114
 
 
14115
 
 
14116
 
 
14117
 
 
14118
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14119
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14120
 
 
14121
 
library_names_spec=
14122
 
libname_spec='lib$name'
14123
 
soname_spec=
14124
 
shrext_cmds=".so"
14125
 
postinstall_cmds=
14126
 
postuninstall_cmds=
14127
 
finish_cmds=
14128
 
finish_eval=
14129
 
shlibpath_var=
14130
 
shlibpath_overrides_runpath=unknown
14131
 
version_type=none
14132
 
dynamic_linker="$host_os ld.so"
14133
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14134
 
need_lib_prefix=unknown
14135
 
hardcode_into_libs=no
14136
 
 
14137
 
# when you set need_version to no, make sure it does not cause -set_version
14138
 
# flags to be left without arguments
14139
 
need_version=unknown
14140
 
 
14141
 
case $host_os in
14142
 
aix3*)
14143
 
  version_type=linux # correct to gnu/linux during the next big refactor
14144
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14145
 
  shlibpath_var=LIBPATH
14146
 
 
14147
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14148
 
  soname_spec='${libname}${release}${shared_ext}$major'
14149
 
  ;;
14150
 
 
14151
 
aix[4-9]*)
14152
 
  version_type=linux # correct to gnu/linux during the next big refactor
14153
 
  need_lib_prefix=no
14154
 
  need_version=no
14155
 
  hardcode_into_libs=yes
14156
 
  if test "$host_cpu" = ia64; then
14157
 
    # AIX 5 supports IA64
14158
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14159
 
    shlibpath_var=LD_LIBRARY_PATH
14160
 
  else
14161
 
    # With GCC up to 2.95.x, collect2 would create an import file
14162
 
    # for dependence libraries.  The import file would start with
14163
 
    # the line `#! .'.  This would cause the generated library to
14164
 
    # depend on `.', always an invalid library.  This was fixed in
14165
 
    # development snapshots of GCC prior to 3.0.
14166
 
    case $host_os in
14167
 
      aix4 | aix4.[01] | aix4.[01].*)
14168
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14169
 
           echo ' yes '
14170
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14171
 
        :
14172
 
      else
14173
 
        can_build_shared=no
14174
 
      fi
14175
 
      ;;
14176
 
    esac
14177
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14178
 
    # soname into executable. Probably we can add versioning support to
14179
 
    # collect2, so additional links can be useful in future.
14180
 
    if test "$aix_use_runtimelinking" = yes; then
14181
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14182
 
      # instead of lib<name>.a to let people know that these are not
14183
 
      # typical AIX shared libraries.
14184
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185
 
    else
14186
 
      # We preserve .a as extension for shared libraries through AIX4.2
14187
 
      # and later when we are not doing run time linking.
14188
 
      library_names_spec='${libname}${release}.a $libname.a'
14189
 
      soname_spec='${libname}${release}${shared_ext}$major'
14190
 
    fi
14191
 
    shlibpath_var=LIBPATH
14192
 
  fi
14193
 
  ;;
14194
 
 
14195
 
amigaos*)
14196
 
  case $host_cpu in
14197
 
  powerpc)
14198
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14199
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14200
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201
 
    ;;
14202
 
  m68k)
14203
 
    library_names_spec='$libname.ixlibrary $libname.a'
14204
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14205
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14206
 
    ;;
14207
 
  esac
14208
 
  ;;
14209
 
 
14210
 
beos*)
14211
 
  library_names_spec='${libname}${shared_ext}'
14212
 
  dynamic_linker="$host_os ld.so"
14213
 
  shlibpath_var=LIBRARY_PATH
14214
 
  ;;
14215
 
 
14216
 
bsdi[45]*)
14217
 
  version_type=linux # correct to gnu/linux during the next big refactor
14218
 
  need_version=no
14219
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220
 
  soname_spec='${libname}${release}${shared_ext}$major'
14221
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14222
 
  shlibpath_var=LD_LIBRARY_PATH
14223
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14224
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14225
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14226
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14227
 
  # libtool to hard-code these into programs
14228
 
  ;;
14229
 
 
14230
 
cygwin* | mingw* | pw32* | cegcc*)
14231
 
  version_type=windows
14232
 
  shrext_cmds=".dll"
14233
 
  need_version=no
14234
 
  need_lib_prefix=no
14235
 
 
14236
 
  case $GCC,$cc_basename in
14237
 
  yes,*)
14238
 
    # gcc
14239
 
    library_names_spec='$libname.dll.a'
14240
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14241
 
    postinstall_cmds='base_file=`basename \${file}`~
14242
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14243
 
      dldir=$destdir/`dirname \$dlpath`~
14244
 
      test -d \$dldir || mkdir -p \$dldir~
14245
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14246
 
      chmod a+x \$dldir/$dlname~
14247
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14248
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14249
 
      fi'
14250
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14251
 
      dlpath=$dir/\$dldll~
14252
 
       $RM \$dlpath'
14253
 
    shlibpath_overrides_runpath=yes
14254
 
 
14255
 
    case $host_os in
14256
 
    cygwin*)
14257
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14258
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14259
 
 
14260
 
      ;;
14261
 
    mingw* | cegcc*)
14262
 
      # MinGW DLLs use traditional 'lib' prefix
14263
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14264
 
      ;;
14265
 
    pw32*)
14266
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14267
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14268
 
      ;;
14269
 
    esac
14270
 
    dynamic_linker='Win32 ld.exe'
14271
 
    ;;
14272
 
 
14273
 
  *,cl*)
14274
 
    # Native MSVC
14275
 
    libname_spec='$name'
14276
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14277
 
    library_names_spec='${libname}.dll.lib'
14278
 
 
14279
 
    case $build_os in
14280
 
    mingw*)
14281
 
      sys_lib_search_path_spec=
14282
 
      lt_save_ifs=$IFS
14283
 
      IFS=';'
14284
 
      for lt_path in $LIB
14285
 
      do
14286
 
        IFS=$lt_save_ifs
14287
 
        # Let DOS variable expansion print the short 8.3 style file name.
14288
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14289
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14290
 
      done
14291
 
      IFS=$lt_save_ifs
14292
 
      # Convert to MSYS style.
14293
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14294
 
      ;;
14295
 
    cygwin*)
14296
 
      # Convert to unix form, then to dos form, then back to unix form
14297
 
      # but this time dos style (no spaces!) so that the unix form looks
14298
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
14299
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14300
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14301
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14302
 
      ;;
14303
 
    *)
14304
 
      sys_lib_search_path_spec="$LIB"
14305
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14306
 
        # It is most probably a Windows format PATH.
14307
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14308
 
      else
14309
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14310
 
      fi
14311
 
      # FIXME: find the short name or the path components, as spaces are
14312
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
14313
 
      ;;
14314
 
    esac
14315
 
 
14316
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14317
 
    postinstall_cmds='base_file=`basename \${file}`~
14318
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14319
 
      dldir=$destdir/`dirname \$dlpath`~
14320
 
      test -d \$dldir || mkdir -p \$dldir~
14321
 
      $install_prog $dir/$dlname \$dldir/$dlname'
14322
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14323
 
      dlpath=$dir/\$dldll~
14324
 
       $RM \$dlpath'
14325
 
    shlibpath_overrides_runpath=yes
14326
 
    dynamic_linker='Win32 link.exe'
14327
 
    ;;
14328
 
 
14329
 
  *)
14330
 
    # Assume MSVC wrapper
14331
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14332
 
    dynamic_linker='Win32 ld.exe'
14333
 
    ;;
14334
 
  esac
14335
 
  # FIXME: first we should search . and the directory the executable is in
14336
 
  shlibpath_var=PATH
14337
 
  ;;
14338
 
 
14339
 
darwin* | rhapsody*)
14340
 
  dynamic_linker="$host_os dyld"
14341
 
  version_type=darwin
14342
 
  need_lib_prefix=no
14343
 
  need_version=no
14344
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345
 
  soname_spec='${libname}${release}${major}$shared_ext'
14346
 
  shlibpath_overrides_runpath=yes
14347
 
  shlibpath_var=DYLD_LIBRARY_PATH
14348
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14349
 
 
14350
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14351
 
  ;;
14352
 
 
14353
 
dgux*)
14354
 
  version_type=linux # correct to gnu/linux during the next big refactor
14355
 
  need_lib_prefix=no
14356
 
  need_version=no
14357
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14358
 
  soname_spec='${libname}${release}${shared_ext}$major'
14359
 
  shlibpath_var=LD_LIBRARY_PATH
14360
 
  ;;
14361
 
 
14362
 
freebsd* | dragonfly*)
14363
 
  # DragonFly does not have aout.  When/if they implement a new
14364
 
  # versioning mechanism, adjust this.
14365
 
  if test -x /usr/bin/objformat; then
14366
 
    objformat=`/usr/bin/objformat`
14367
 
  else
14368
 
    case $host_os in
14369
 
    freebsd[23].*) objformat=aout ;;
14370
 
    *) objformat=elf ;;
14371
 
    esac
14372
 
  fi
14373
 
  version_type=freebsd-$objformat
14374
 
  case $version_type in
14375
 
    freebsd-elf*)
14376
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14377
 
      need_version=no
14378
 
      need_lib_prefix=no
14379
 
      ;;
14380
 
    freebsd-*)
14381
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14382
 
      need_version=yes
14383
 
      ;;
14384
 
  esac
14385
 
  shlibpath_var=LD_LIBRARY_PATH
14386
 
  case $host_os in
14387
 
  freebsd2.*)
14388
 
    shlibpath_overrides_runpath=yes
14389
 
    ;;
14390
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14391
 
    shlibpath_overrides_runpath=yes
14392
 
    hardcode_into_libs=yes
14393
 
    ;;
14394
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14395
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14396
 
    shlibpath_overrides_runpath=no
14397
 
    hardcode_into_libs=yes
14398
 
    ;;
14399
 
  *) # from 4.6 on, and DragonFly
14400
 
    shlibpath_overrides_runpath=yes
14401
 
    hardcode_into_libs=yes
14402
 
    ;;
14403
 
  esac
14404
 
  ;;
14405
 
 
14406
 
gnu*)
14407
 
  version_type=linux # correct to gnu/linux during the next big refactor
14408
 
  need_lib_prefix=no
14409
 
  need_version=no
14410
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14411
 
  soname_spec='${libname}${release}${shared_ext}$major'
14412
 
  shlibpath_var=LD_LIBRARY_PATH
14413
 
  shlibpath_overrides_runpath=no
14414
 
  hardcode_into_libs=yes
14415
 
  ;;
14416
 
 
14417
 
haiku*)
14418
 
  version_type=linux # correct to gnu/linux during the next big refactor
14419
 
  need_lib_prefix=no
14420
 
  need_version=no
14421
 
  dynamic_linker="$host_os runtime_loader"
14422
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14423
 
  soname_spec='${libname}${release}${shared_ext}$major'
14424
 
  shlibpath_var=LIBRARY_PATH
14425
 
  shlibpath_overrides_runpath=yes
14426
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14427
 
  hardcode_into_libs=yes
14428
 
  ;;
14429
 
 
14430
 
hpux9* | hpux10* | hpux11*)
14431
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14432
 
  # link against other versions.
14433
 
  version_type=sunos
14434
 
  need_lib_prefix=no
14435
 
  need_version=no
14436
 
  case $host_cpu in
14437
 
  ia64*)
14438
 
    shrext_cmds='.so'
14439
 
    hardcode_into_libs=yes
14440
 
    dynamic_linker="$host_os dld.so"
14441
 
    shlibpath_var=LD_LIBRARY_PATH
14442
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14443
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444
 
    soname_spec='${libname}${release}${shared_ext}$major'
14445
 
    if test "X$HPUX_IA64_MODE" = X32; then
14446
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14447
 
    else
14448
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14449
 
    fi
14450
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14451
 
    ;;
14452
 
  hppa*64*)
14453
 
    shrext_cmds='.sl'
14454
 
    hardcode_into_libs=yes
14455
 
    dynamic_linker="$host_os dld.sl"
14456
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14457
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14458
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459
 
    soname_spec='${libname}${release}${shared_ext}$major'
14460
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14461
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14462
 
    ;;
14463
 
  *)
14464
 
    shrext_cmds='.sl'
14465
 
    dynamic_linker="$host_os dld.sl"
14466
 
    shlibpath_var=SHLIB_PATH
14467
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14468
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469
 
    soname_spec='${libname}${release}${shared_ext}$major'
14470
 
    ;;
14471
 
  esac
14472
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14473
 
  postinstall_cmds='chmod 555 $lib'
14474
 
  # or fails outright, so override atomically:
14475
 
  install_override_mode=555
14476
 
  ;;
14477
 
 
14478
 
interix[3-9]*)
14479
 
  version_type=linux # correct to gnu/linux during the next big refactor
14480
 
  need_lib_prefix=no
14481
 
  need_version=no
14482
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14483
 
  soname_spec='${libname}${release}${shared_ext}$major'
14484
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14485
 
  shlibpath_var=LD_LIBRARY_PATH
14486
 
  shlibpath_overrides_runpath=no
14487
 
  hardcode_into_libs=yes
14488
 
  ;;
14489
 
 
14490
 
irix5* | irix6* | nonstopux*)
14491
 
  case $host_os in
14492
 
    nonstopux*) version_type=nonstopux ;;
14493
 
    *)
14494
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14495
 
                version_type=linux # correct to gnu/linux during the next big refactor
14496
 
        else
14497
 
                version_type=irix
14498
 
        fi ;;
14499
 
  esac
14500
 
  need_lib_prefix=no
14501
 
  need_version=no
14502
 
  soname_spec='${libname}${release}${shared_ext}$major'
14503
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14504
 
  case $host_os in
14505
 
  irix5* | nonstopux*)
14506
 
    libsuff= shlibsuff=
14507
 
    ;;
14508
 
  *)
14509
 
    case $LD in # libtool.m4 will add one of these switches to LD
14510
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14511
 
      libsuff= shlibsuff= libmagic=32-bit;;
14512
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14513
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14514
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14515
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14516
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14517
 
    esac
14518
 
    ;;
14519
 
  esac
14520
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14521
 
  shlibpath_overrides_runpath=no
14522
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14523
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14524
 
  hardcode_into_libs=yes
14525
 
  ;;
14526
 
 
14527
 
# No shared lib support for Linux oldld, aout, or coff.
14528
 
linux*oldld* | linux*aout* | linux*coff*)
14529
 
  dynamic_linker=no
14530
 
  ;;
14531
 
 
14532
 
# This must be glibc/ELF.
14533
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14534
 
  version_type=linux # correct to gnu/linux during the next big refactor
14535
 
  need_lib_prefix=no
14536
 
  need_version=no
14537
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538
 
  soname_spec='${libname}${release}${shared_ext}$major'
14539
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14540
 
  shlibpath_var=LD_LIBRARY_PATH
14541
 
  shlibpath_overrides_runpath=no
14542
 
 
14543
 
  # Some binutils ld are patched to set DT_RUNPATH
14544
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14545
 
  $as_echo_n "(cached) " >&6
14546
 
else
14547
 
  lt_cv_shlibpath_overrides_runpath=no
14548
 
    save_LDFLAGS=$LDFLAGS
14549
 
    save_libdir=$libdir
14550
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14551
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14552
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553
 
/* end confdefs.h.  */
14554
 
 
14555
 
int
14556
 
main ()
14557
 
{
14558
 
 
14559
 
  ;
14560
 
  return 0;
14561
 
}
14562
 
_ACEOF
14563
 
if ac_fn_cxx_try_link "$LINENO"; then :
14564
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14565
 
  lt_cv_shlibpath_overrides_runpath=yes
14566
 
fi
14567
 
fi
14568
 
rm -f core conftest.err conftest.$ac_objext \
14569
 
    conftest$ac_exeext conftest.$ac_ext
14570
 
    LDFLAGS=$save_LDFLAGS
14571
 
    libdir=$save_libdir
14572
 
 
14573
 
fi
14574
 
 
14575
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14576
 
 
14577
 
  # This implies no fast_install, which is unacceptable.
14578
 
  # Some rework will be needed to allow for fast_install
14579
 
  # before this can be enabled.
14580
 
  hardcode_into_libs=yes
14581
 
 
14582
 
  # Append ld.so.conf contents to the search path
14583
 
  if test -f /etc/ld.so.conf; then
14584
 
    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;s/"//g;/^$/d' | tr '\n' ' '`
14585
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14586
 
  fi
14587
 
 
14588
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14589
 
  # powerpc, because MkLinux only supported shared libraries with the
14590
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14591
 
  # most powerpc-linux boxes support dynamic linking these days and
14592
 
  # people can always --disable-shared, the test was removed, and we
14593
 
  # assume the GNU/Linux dynamic linker is in use.
14594
 
  dynamic_linker='GNU/Linux ld.so'
14595
 
  ;;
14596
 
 
14597
 
netbsdelf*-gnu)
14598
 
  version_type=linux
14599
 
  need_lib_prefix=no
14600
 
  need_version=no
14601
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14602
 
  soname_spec='${libname}${release}${shared_ext}$major'
14603
 
  shlibpath_var=LD_LIBRARY_PATH
14604
 
  shlibpath_overrides_runpath=no
14605
 
  hardcode_into_libs=yes
14606
 
  dynamic_linker='NetBSD ld.elf_so'
14607
 
  ;;
14608
 
 
14609
 
netbsd*)
14610
 
  version_type=sunos
14611
 
  need_lib_prefix=no
14612
 
  need_version=no
14613
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14614
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14615
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14616
 
    dynamic_linker='NetBSD (a.out) ld.so'
14617
 
  else
14618
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14619
 
    soname_spec='${libname}${release}${shared_ext}$major'
14620
 
    dynamic_linker='NetBSD ld.elf_so'
14621
 
  fi
14622
 
  shlibpath_var=LD_LIBRARY_PATH
14623
 
  shlibpath_overrides_runpath=yes
14624
 
  hardcode_into_libs=yes
14625
 
  ;;
14626
 
 
14627
 
newsos6)
14628
 
  version_type=linux # correct to gnu/linux during the next big refactor
14629
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630
 
  shlibpath_var=LD_LIBRARY_PATH
14631
 
  shlibpath_overrides_runpath=yes
14632
 
  ;;
14633
 
 
14634
 
*nto* | *qnx*)
14635
 
  version_type=qnx
14636
 
  need_lib_prefix=no
14637
 
  need_version=no
14638
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639
 
  soname_spec='${libname}${release}${shared_ext}$major'
14640
 
  shlibpath_var=LD_LIBRARY_PATH
14641
 
  shlibpath_overrides_runpath=no
14642
 
  hardcode_into_libs=yes
14643
 
  dynamic_linker='ldqnx.so'
14644
 
  ;;
14645
 
 
14646
 
openbsd*)
14647
 
  version_type=sunos
14648
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14649
 
  need_lib_prefix=no
14650
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14651
 
  case $host_os in
14652
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14653
 
    *)                          need_version=no  ;;
14654
 
  esac
14655
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657
 
  shlibpath_var=LD_LIBRARY_PATH
14658
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14659
 
    case $host_os in
14660
 
      openbsd2.[89] | openbsd2.[89].*)
14661
 
        shlibpath_overrides_runpath=no
14662
 
        ;;
14663
 
      *)
14664
 
        shlibpath_overrides_runpath=yes
14665
 
        ;;
14666
 
      esac
14667
 
  else
14668
 
    shlibpath_overrides_runpath=yes
14669
 
  fi
14670
 
  ;;
14671
 
 
14672
 
os2*)
14673
 
  libname_spec='$name'
14674
 
  shrext_cmds=".dll"
14675
 
  need_lib_prefix=no
14676
 
  library_names_spec='$libname${shared_ext} $libname.a'
14677
 
  dynamic_linker='OS/2 ld.exe'
14678
 
  shlibpath_var=LIBPATH
14679
 
  ;;
14680
 
 
14681
 
osf3* | osf4* | osf5*)
14682
 
  version_type=osf
14683
 
  need_lib_prefix=no
14684
 
  need_version=no
14685
 
  soname_spec='${libname}${release}${shared_ext}$major'
14686
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687
 
  shlibpath_var=LD_LIBRARY_PATH
14688
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14689
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14690
 
  ;;
14691
 
 
14692
 
rdos*)
14693
 
  dynamic_linker=no
14694
 
  ;;
14695
 
 
14696
 
solaris*)
14697
 
  version_type=linux # correct to gnu/linux during the next big refactor
14698
 
  need_lib_prefix=no
14699
 
  need_version=no
14700
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701
 
  soname_spec='${libname}${release}${shared_ext}$major'
14702
 
  shlibpath_var=LD_LIBRARY_PATH
14703
 
  shlibpath_overrides_runpath=yes
14704
 
  hardcode_into_libs=yes
14705
 
  # ldd complains unless libraries are executable
14706
 
  postinstall_cmds='chmod +x $lib'
14707
 
  ;;
14708
 
 
14709
 
sunos4*)
14710
 
  version_type=sunos
14711
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14712
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14713
 
  shlibpath_var=LD_LIBRARY_PATH
14714
 
  shlibpath_overrides_runpath=yes
14715
 
  if test "$with_gnu_ld" = yes; then
14716
 
    need_lib_prefix=no
14717
 
  fi
14718
 
  need_version=yes
14719
 
  ;;
14720
 
 
14721
 
sysv4 | sysv4.3*)
14722
 
  version_type=linux # correct to gnu/linux during the next big refactor
14723
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724
 
  soname_spec='${libname}${release}${shared_ext}$major'
14725
 
  shlibpath_var=LD_LIBRARY_PATH
14726
 
  case $host_vendor in
14727
 
    sni)
14728
 
      shlibpath_overrides_runpath=no
14729
 
      need_lib_prefix=no
14730
 
      runpath_var=LD_RUN_PATH
14731
 
      ;;
14732
 
    siemens)
14733
 
      need_lib_prefix=no
14734
 
      ;;
14735
 
    motorola)
14736
 
      need_lib_prefix=no
14737
 
      need_version=no
14738
 
      shlibpath_overrides_runpath=no
14739
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14740
 
      ;;
14741
 
  esac
14742
 
  ;;
14743
 
 
14744
 
sysv4*MP*)
14745
 
  if test -d /usr/nec ;then
14746
 
    version_type=linux # correct to gnu/linux during the next big refactor
14747
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14748
 
    soname_spec='$libname${shared_ext}.$major'
14749
 
    shlibpath_var=LD_LIBRARY_PATH
14750
 
  fi
14751
 
  ;;
14752
 
 
14753
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14754
 
  version_type=freebsd-elf
14755
 
  need_lib_prefix=no
14756
 
  need_version=no
14757
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14758
 
  soname_spec='${libname}${release}${shared_ext}$major'
14759
 
  shlibpath_var=LD_LIBRARY_PATH
14760
 
  shlibpath_overrides_runpath=yes
14761
 
  hardcode_into_libs=yes
14762
 
  if test "$with_gnu_ld" = yes; then
14763
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14764
 
  else
14765
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14766
 
    case $host_os in
14767
 
      sco3.2v5*)
14768
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14769
 
        ;;
14770
 
    esac
14771
 
  fi
14772
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14773
 
  ;;
14774
 
 
14775
 
tpf*)
14776
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14777
 
  version_type=linux # correct to gnu/linux during the next big refactor
14778
 
  need_lib_prefix=no
14779
 
  need_version=no
14780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781
 
  shlibpath_var=LD_LIBRARY_PATH
14782
 
  shlibpath_overrides_runpath=no
14783
 
  hardcode_into_libs=yes
14784
 
  ;;
14785
 
 
14786
 
uts4*)
14787
 
  version_type=linux # correct to gnu/linux during the next big refactor
14788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789
 
  soname_spec='${libname}${release}${shared_ext}$major'
14790
 
  shlibpath_var=LD_LIBRARY_PATH
14791
 
  ;;
14792
 
 
14793
 
*)
14794
 
  dynamic_linker=no
14795
 
  ;;
14796
 
esac
14797
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14798
 
$as_echo "$dynamic_linker" >&6; }
14799
 
test "$dynamic_linker" = no && can_build_shared=no
14800
 
 
14801
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14802
 
if test "$GCC" = yes; then
14803
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14804
 
fi
14805
 
 
14806
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14807
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14808
 
fi
14809
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14810
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14811
 
fi
14812
 
 
14813
 
 
14814
 
 
14815
 
 
14816
 
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
 
14846
 
 
14847
 
 
14848
 
 
14849
 
 
14850
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14851
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14852
 
hardcode_action_CXX=
14853
 
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14854
 
   test -n "$runpath_var_CXX" ||
14855
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14856
 
 
14857
 
  # We can hardcode non-existent directories.
14858
 
  if test "$hardcode_direct_CXX" != no &&
14859
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14860
 
     # have to relink, otherwise we might link with an installed library
14861
 
     # when we should be linking with a yet-to-be-installed one
14862
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14863
 
     test "$hardcode_minus_L_CXX" != no; then
14864
 
    # Linking always hardcodes the temporary library directory.
14865
 
    hardcode_action_CXX=relink
14866
 
  else
14867
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14868
 
    hardcode_action_CXX=immediate
14869
 
  fi
14870
 
else
14871
 
  # We cannot hardcode anything, or else we can only hardcode existing
14872
 
  # directories.
14873
 
  hardcode_action_CXX=unsupported
14874
 
fi
14875
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14876
 
$as_echo "$hardcode_action_CXX" >&6; }
14877
 
 
14878
 
if test "$hardcode_action_CXX" = relink ||
14879
 
   test "$inherit_rpath_CXX" = yes; then
14880
 
  # Fast installation is not supported
14881
 
  enable_fast_install=no
14882
 
elif test "$shlibpath_overrides_runpath" = yes ||
14883
 
     test "$enable_shared" = no; then
14884
 
  # Fast installation is not necessary
14885
 
  enable_fast_install=needless
14886
 
fi
14887
 
 
14888
 
 
14889
 
 
14890
 
 
14891
 
 
14892
 
 
14893
 
 
14894
 
  fi # test -n "$compiler"
14895
 
 
14896
 
  CC=$lt_save_CC
14897
 
  CFLAGS=$lt_save_CFLAGS
14898
 
  LDCXX=$LD
14899
 
  LD=$lt_save_LD
14900
 
  GCC=$lt_save_GCC
14901
 
  with_gnu_ld=$lt_save_with_gnu_ld
14902
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
14903
 
  lt_cv_path_LD=$lt_save_path_LD
14904
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14905
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14906
 
fi # test "$_lt_caught_CXX_error" != yes
14907
 
 
14908
 
ac_ext=cpp
14909
 
ac_cpp='$CXXCPP $CPPFLAGS'
14910
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14913
 
 
14914
 
 
14915
 
 
14916
 
 
14917
 
 
14918
 
 
14919
 
 
14920
 
 
14921
 
 
14922
 
 
14923
 
 
14924
 
 
14925
 
 
14926
 
 
14927
 
 
14928
 
        ac_config_commands="$ac_config_commands libtool"
14929
 
 
14930
 
 
14931
 
 
14932
 
 
14933
 
# Only expand once:
14934
 
 
14935
 
 
14936
 
 
14937
 
# TODO(chandlerc@google.com): Currently we aren't running the Python tests
14938
 
# against the interpreter detected by AM_PATH_PYTHON, and so we condition
14939
 
# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14940
 
# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14941
 
# hashbang.
14942
 
PYTHON=  # We *do not* allow the user to specify a python interpreter
14943
 
# Extract the first word of "python", so it can be a program name with args.
14944
 
set dummy python; ac_word=$2
14945
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946
 
$as_echo_n "checking for $ac_word... " >&6; }
14947
 
if ${ac_cv_path_PYTHON+:} false; then :
14948
 
  $as_echo_n "(cached) " >&6
14949
 
else
14950
 
  case $PYTHON in
14951
 
  [\\/]* | ?:[\\/]*)
14952
 
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14953
 
  ;;
14954
 
  *)
14955
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956
 
for as_dir in $PATH
14957
 
do
14958
 
  IFS=$as_save_IFS
14959
 
  test -z "$as_dir" && as_dir=.
14960
 
    for ac_exec_ext in '' $ac_executable_extensions; do
14961
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14962
 
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14963
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964
 
    break 2
14965
 
  fi
14966
 
done
14967
 
  done
14968
 
IFS=$as_save_IFS
14969
 
 
14970
 
  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14971
 
  ;;
14972
 
esac
14973
 
fi
14974
 
PYTHON=$ac_cv_path_PYTHON
14975
 
if test -n "$PYTHON"; then
14976
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14977
 
$as_echo "$PYTHON" >&6; }
14978
 
else
14979
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980
 
$as_echo "no" >&6; }
14981
 
fi
14982
 
 
14983
 
 
14984
 
if test "$PYTHON" != ":"; then :
14985
 
  prog="import sys
14986
 
# split strings by '.' and convert to numeric.  Append some zeros
14987
 
# because we need at least 4 digits for the hex conversion.
14988
 
# map returns an iterator in Python 3.0 and a list in 2.x
14989
 
minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
14990
 
minverhex = 0
14991
 
# xrange is not present in Python 3.0 and range returns an iterator
14992
 
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14993
 
sys.exit(sys.hexversion < minverhex)"
14994
 
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14995
 
   ($PYTHON -c "$prog") >&5 2>&5
14996
 
   ac_status=$?
14997
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998
 
   (exit $ac_status); }; then :
14999
 
  :
15000
 
else
15001
 
  PYTHON=":"
15002
 
fi
15003
 
fi
15004
 
 if test "$PYTHON" != ":"; then
15005
 
  HAVE_PYTHON_TRUE=
15006
 
  HAVE_PYTHON_FALSE='#'
15007
 
else
15008
 
  HAVE_PYTHON_TRUE='#'
15009
 
  HAVE_PYTHON_FALSE=
15010
 
fi
15011
 
 
15012
 
 
15013
 
# Configure pthreads.
15014
 
 
15015
 
# Check whether --with-pthreads was given.
15016
 
if test "${with_pthreads+set}" = set; then :
15017
 
  withval=$with_pthreads; with_pthreads=$withval
15018
 
else
15019
 
  with_pthreads=check
15020
 
fi
15021
 
 
15022
 
 
15023
 
have_pthreads=no
15024
 
if test "x$with_pthreads" != "xno"; then :
15025
 
 
15026
 
 
15027
 
 
15028
 
ac_ext=c
15029
 
ac_cpp='$CPP $CPPFLAGS'
15030
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15033
 
 
15034
 
acx_pthread_ok=no
15035
 
 
15036
 
# We used to check for pthread.h first, but this fails if pthread.h
15037
 
# requires special compiler flags (e.g. on True64 or Sequent).
15038
 
# It gets checked for in the link test anyway.
15039
 
 
15040
 
# First of all, check if the user has set any of the PTHREAD_LIBS,
15041
 
# etcetera environment variables, and if threads linking works using
15042
 
# them:
15043
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15044
 
        save_CFLAGS="$CFLAGS"
15045
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15046
 
        save_LIBS="$LIBS"
15047
 
        LIBS="$PTHREAD_LIBS $LIBS"
15048
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15049
 
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15050
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051
 
/* end confdefs.h.  */
15052
 
 
15053
 
/* Override any GCC internal prototype to avoid an error.
15054
 
   Use char because int might match the return type of a GCC
15055
 
   builtin and then its argument prototype would still apply.  */
15056
 
#ifdef __cplusplus
15057
 
extern "C"
15058
 
#endif
15059
 
char pthread_join ();
15060
 
int
15061
 
main ()
15062
 
{
15063
 
return pthread_join ();
15064
 
  ;
15065
 
  return 0;
15066
 
}
15067
 
_ACEOF
15068
 
if ac_fn_c_try_link "$LINENO"; then :
15069
 
  acx_pthread_ok=yes
15070
 
fi
15071
 
rm -f core conftest.err conftest.$ac_objext \
15072
 
    conftest$ac_exeext conftest.$ac_ext
15073
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15074
 
$as_echo "$acx_pthread_ok" >&6; }
15075
 
        if test x"$acx_pthread_ok" = xno; then
15076
 
                PTHREAD_LIBS=""
15077
 
                PTHREAD_CFLAGS=""
15078
 
        fi
15079
 
        LIBS="$save_LIBS"
15080
 
        CFLAGS="$save_CFLAGS"
15081
 
fi
15082
 
 
15083
 
# We must check for the threads library under a number of different
15084
 
# names; the ordering is very important because some systems
15085
 
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15086
 
# libraries is broken (non-POSIX).
15087
 
 
15088
 
# Create a list of thread flags to try.  Items starting with a "-" are
15089
 
# C compiler flags, and other items are library names, except for "none"
15090
 
# which indicates that we try without any flags at all, and "pthread-config"
15091
 
# which is a program returning the flags for the Pth emulation library.
15092
 
 
15093
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15094
 
 
15095
 
# The ordering *is* (sometimes) important.  Some notes on the
15096
 
# individual items follow:
15097
 
 
15098
 
# pthreads: AIX (must check this before -lpthread)
15099
 
# none: in case threads are in libc; should be tried before -Kthread and
15100
 
#       other compiler flags to prevent continual compiler warnings
15101
 
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15102
 
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15103
 
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15104
 
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15105
 
# -pthreads: Solaris/gcc
15106
 
# -mthreads: Mingw32/gcc, Lynx/gcc
15107
 
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15108
 
#      doesn't hurt to check since this sometimes defines pthreads too;
15109
 
#      also defines -D_REENTRANT)
15110
 
#      ... -mt is also the pthreads flag for HP/aCC
15111
 
# pthread: Linux, etcetera
15112
 
# --thread-safe: KAI C++
15113
 
# pthread-config: use pthread-config program (for GNU Pth library)
15114
 
 
15115
 
case "${host_cpu}-${host_os}" in
15116
 
        *solaris*)
15117
 
 
15118
 
        # On Solaris (at least, for some versions), libc contains stubbed
15119
 
        # (non-functional) versions of the pthreads routines, so link-based
15120
 
        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15121
 
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15122
 
        # a function called by this macro, so we could check for that, but
15123
 
        # who knows whether they'll stub that too in a future libc.)  So,
15124
 
        # we'll just look for -pthreads and -lpthread first:
15125
 
 
15126
 
        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15127
 
        ;;
15128
 
esac
15129
 
 
15130
 
if test x"$acx_pthread_ok" = xno; then
15131
 
for flag in $acx_pthread_flags; do
15132
 
 
15133
 
        case $flag in
15134
 
                none)
15135
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15136
 
$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15137
 
                ;;
15138
 
 
15139
 
                -*)
15140
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15141
 
$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15142
 
                PTHREAD_CFLAGS="$flag"
15143
 
                ;;
15144
 
 
15145
 
                pthread-config)
15146
 
                # Extract the first word of "pthread-config", so it can be a program name with args.
15147
 
set dummy pthread-config; ac_word=$2
15148
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15149
 
$as_echo_n "checking for $ac_word... " >&6; }
15150
 
if ${ac_cv_prog_acx_pthread_config+:} false; then :
15151
 
  $as_echo_n "(cached) " >&6
15152
 
else
15153
 
  if test -n "$acx_pthread_config"; then
15154
 
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15155
 
else
15156
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157
 
for as_dir in $PATH
15158
 
do
15159
 
  IFS=$as_save_IFS
15160
 
  test -z "$as_dir" && as_dir=.
15161
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15162
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15163
 
    ac_cv_prog_acx_pthread_config="yes"
15164
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15165
 
    break 2
15166
 
  fi
15167
 
done
15168
 
  done
15169
 
IFS=$as_save_IFS
15170
 
 
15171
 
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15172
 
fi
15173
 
fi
15174
 
acx_pthread_config=$ac_cv_prog_acx_pthread_config
15175
 
if test -n "$acx_pthread_config"; then
15176
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15177
 
$as_echo "$acx_pthread_config" >&6; }
15178
 
else
15179
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180
 
$as_echo "no" >&6; }
15181
 
fi
15182
 
 
15183
 
 
15184
 
                if test x"$acx_pthread_config" = xno; then continue; fi
15185
 
                PTHREAD_CFLAGS="`pthread-config --cflags`"
15186
 
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15187
 
                ;;
15188
 
 
15189
 
                *)
15190
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15191
 
$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15192
 
                PTHREAD_LIBS="-l$flag"
15193
 
                ;;
15194
 
        esac
15195
 
 
15196
 
        save_LIBS="$LIBS"
15197
 
        save_CFLAGS="$CFLAGS"
15198
 
        LIBS="$PTHREAD_LIBS $LIBS"
15199
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15200
 
 
15201
 
        # Check for various functions.  We must include pthread.h,
15202
 
        # since some functions may be macros.  (On the Sequent, we
15203
 
        # need a special flag -Kthread to make this header compile.)
15204
 
        # We check for pthread_join because it is in -lpthread on IRIX
15205
 
        # while pthread_create is in libc.  We check for pthread_attr_init
15206
 
        # due to DEC craziness with -lpthreads.  We check for
15207
 
        # pthread_cleanup_push because it is one of the few pthread
15208
 
        # functions on Solaris that doesn't have a non-functional libc stub.
15209
 
        # We try pthread_create on general principles.
15210
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211
 
/* end confdefs.h.  */
15212
 
#include <pthread.h>
15213
 
int
15214
 
main ()
15215
 
{
15216
 
pthread_t th; pthread_join(th, 0);
15217
 
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
15218
 
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15219
 
  ;
15220
 
  return 0;
15221
 
}
15222
 
_ACEOF
15223
 
if ac_fn_c_try_link "$LINENO"; then :
15224
 
  acx_pthread_ok=yes
15225
 
fi
15226
 
rm -f core conftest.err conftest.$ac_objext \
15227
 
    conftest$ac_exeext conftest.$ac_ext
15228
 
 
15229
 
        LIBS="$save_LIBS"
15230
 
        CFLAGS="$save_CFLAGS"
15231
 
 
15232
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15233
 
$as_echo "$acx_pthread_ok" >&6; }
15234
 
        if test "x$acx_pthread_ok" = xyes; then
15235
 
                break;
15236
 
        fi
15237
 
 
15238
 
        PTHREAD_LIBS=""
15239
 
        PTHREAD_CFLAGS=""
15240
 
done
15241
 
fi
15242
 
 
15243
 
# Various other checks:
15244
 
if test "x$acx_pthread_ok" = xyes; then
15245
 
        save_LIBS="$LIBS"
15246
 
        LIBS="$PTHREAD_LIBS $LIBS"
15247
 
        save_CFLAGS="$CFLAGS"
15248
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15249
 
 
15250
 
        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15251
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15252
 
$as_echo_n "checking for joinable pthread attribute... " >&6; }
15253
 
        attr_name=unknown
15254
 
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15255
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256
 
/* end confdefs.h.  */
15257
 
#include <pthread.h>
15258
 
int
15259
 
main ()
15260
 
{
15261
 
int attr=$attr; return attr;
15262
 
  ;
15263
 
  return 0;
15264
 
}
15265
 
_ACEOF
15266
 
if ac_fn_c_try_link "$LINENO"; then :
15267
 
  attr_name=$attr; break
15268
 
fi
15269
 
rm -f core conftest.err conftest.$ac_objext \
15270
 
    conftest$ac_exeext conftest.$ac_ext
15271
 
        done
15272
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15273
 
$as_echo "$attr_name" >&6; }
15274
 
        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15275
 
 
15276
 
cat >>confdefs.h <<_ACEOF
15277
 
#define PTHREAD_CREATE_JOINABLE $attr_name
15278
 
_ACEOF
15279
 
 
15280
 
        fi
15281
 
 
15282
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15283
 
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15284
 
        flag=no
15285
 
        case "${host_cpu}-${host_os}" in
15286
 
            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15287
 
            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15288
 
        esac
15289
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15290
 
$as_echo "${flag}" >&6; }
15291
 
        if test "x$flag" != xno; then
15292
 
            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15293
 
        fi
15294
 
 
15295
 
        LIBS="$save_LIBS"
15296
 
        CFLAGS="$save_CFLAGS"
15297
 
        # More AIX lossage: must compile with xlc_r or cc_r
15298
 
        if test x"$GCC" != xyes; then
15299
 
          for ac_prog in xlc_r cc_r
15300
 
do
15301
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
15302
 
set dummy $ac_prog; ac_word=$2
15303
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304
 
$as_echo_n "checking for $ac_word... " >&6; }
15305
 
if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15306
 
  $as_echo_n "(cached) " >&6
15307
 
else
15308
 
  if test -n "$PTHREAD_CC"; then
15309
 
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15310
 
else
15311
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312
 
for as_dir in $PATH
15313
 
do
15314
 
  IFS=$as_save_IFS
15315
 
  test -z "$as_dir" && as_dir=.
15316
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15317
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15318
 
    ac_cv_prog_PTHREAD_CC="$ac_prog"
15319
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320
 
    break 2
15321
 
  fi
15322
 
done
15323
 
  done
15324
 
IFS=$as_save_IFS
15325
 
 
15326
 
fi
15327
 
fi
15328
 
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15329
 
if test -n "$PTHREAD_CC"; then
15330
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15331
 
$as_echo "$PTHREAD_CC" >&6; }
15332
 
else
15333
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334
 
$as_echo "no" >&6; }
15335
 
fi
15336
 
 
15337
 
 
15338
 
  test -n "$PTHREAD_CC" && break
15339
 
done
15340
 
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15341
 
 
15342
 
        else
15343
 
          PTHREAD_CC=$CC
15344
 
        fi
15345
 
 
15346
 
        # The next part tries to detect GCC inconsistency with -shared on some
15347
 
        # architectures and systems. The problem is that in certain
15348
 
        # configurations, when -shared is specified, GCC "forgets" to
15349
 
        # internally use various flags which are still necessary.
15350
 
 
15351
 
        #
15352
 
        # Prepare the flags
15353
 
        #
15354
 
        save_CFLAGS="$CFLAGS"
15355
 
        save_LIBS="$LIBS"
15356
 
        save_CC="$CC"
15357
 
 
15358
 
        # Try with the flags determined by the earlier checks.
15359
 
        #
15360
 
        # -Wl,-z,defs forces link-time symbol resolution, so that the
15361
 
        # linking checks with -shared actually have any value
15362
 
        #
15363
 
        # FIXME: -fPIC is required for -shared on many architectures,
15364
 
        # so we specify it here, but the right way would probably be to
15365
 
        # properly detect whether it is actually required.
15366
 
        CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15367
 
        LIBS="$PTHREAD_LIBS $LIBS"
15368
 
        CC="$PTHREAD_CC"
15369
 
 
15370
 
        # In order not to create several levels of indentation, we test
15371
 
        # the value of "$done" until we find the cure or run out of ideas.
15372
 
        done="no"
15373
 
 
15374
 
        # First, make sure the CFLAGS we added are actually accepted by our
15375
 
        # compiler.  If not (and OS X's ld, for instance, does not accept -z),
15376
 
        # then we can't do this test.
15377
 
        if test x"$done" = xno; then
15378
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15379
 
$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15380
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381
 
/* end confdefs.h.  */
15382
 
 
15383
 
int
15384
 
main ()
15385
 
{
15386
 
 
15387
 
  ;
15388
 
  return 0;
15389
 
}
15390
 
_ACEOF
15391
 
if ac_fn_c_try_link "$LINENO"; then :
15392
 
 
15393
 
else
15394
 
  done=yes
15395
 
fi
15396
 
rm -f core conftest.err conftest.$ac_objext \
15397
 
    conftest$ac_exeext conftest.$ac_ext
15398
 
 
15399
 
           if test "x$done" = xyes ; then
15400
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401
 
$as_echo "no" >&6; }
15402
 
           else
15403
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15404
 
$as_echo "yes" >&6; }
15405
 
           fi
15406
 
        fi
15407
 
 
15408
 
        if test x"$done" = xno; then
15409
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15410
 
$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15411
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412
 
/* end confdefs.h.  */
15413
 
#include <pthread.h>
15414
 
int
15415
 
main ()
15416
 
{
15417
 
pthread_t th; pthread_join(th, 0);
15418
 
              pthread_attr_init(0); pthread_cleanup_push(0, 0);
15419
 
              pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15420
 
  ;
15421
 
  return 0;
15422
 
}
15423
 
_ACEOF
15424
 
if ac_fn_c_try_link "$LINENO"; then :
15425
 
  done=yes
15426
 
fi
15427
 
rm -f core conftest.err conftest.$ac_objext \
15428
 
    conftest$ac_exeext conftest.$ac_ext
15429
 
 
15430
 
           if test "x$done" = xyes; then
15431
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15432
 
$as_echo "yes" >&6; }
15433
 
           else
15434
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435
 
$as_echo "no" >&6; }
15436
 
           fi
15437
 
        fi
15438
 
 
15439
 
        #
15440
 
        # Linux gcc on some architectures such as mips/mipsel forgets
15441
 
        # about -lpthread
15442
 
        #
15443
 
        if test x"$done" = xno; then
15444
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15445
 
$as_echo_n "checking whether -lpthread fixes that... " >&6; }
15446
 
           LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15447
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448
 
/* end confdefs.h.  */
15449
 
#include <pthread.h>
15450
 
int
15451
 
main ()
15452
 
{
15453
 
pthread_t th; pthread_join(th, 0);
15454
 
              pthread_attr_init(0); pthread_cleanup_push(0, 0);
15455
 
              pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15456
 
  ;
15457
 
  return 0;
15458
 
}
15459
 
_ACEOF
15460
 
if ac_fn_c_try_link "$LINENO"; then :
15461
 
  done=yes
15462
 
fi
15463
 
rm -f core conftest.err conftest.$ac_objext \
15464
 
    conftest$ac_exeext conftest.$ac_ext
15465
 
 
15466
 
           if test "x$done" = xyes; then
15467
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468
 
$as_echo "yes" >&6; }
15469
 
              PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15470
 
           else
15471
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472
 
$as_echo "no" >&6; }
15473
 
           fi
15474
 
        fi
15475
 
        #
15476
 
        # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15477
 
        #
15478
 
        if test x"$done" = xno; then
15479
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15480
 
$as_echo_n "checking whether -lc_r fixes that... " >&6; }
15481
 
           LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15482
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483
 
/* end confdefs.h.  */
15484
 
#include <pthread.h>
15485
 
int
15486
 
main ()
15487
 
{
15488
 
pthread_t th; pthread_join(th, 0);
15489
 
                pthread_attr_init(0); pthread_cleanup_push(0, 0);
15490
 
                pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15491
 
  ;
15492
 
  return 0;
15493
 
}
15494
 
_ACEOF
15495
 
if ac_fn_c_try_link "$LINENO"; then :
15496
 
  done=yes
15497
 
fi
15498
 
rm -f core conftest.err conftest.$ac_objext \
15499
 
    conftest$ac_exeext conftest.$ac_ext
15500
 
 
15501
 
           if test "x$done" = xyes; then
15502
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15503
 
$as_echo "yes" >&6; }
15504
 
              PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15505
 
           else
15506
 
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507
 
$as_echo "no" >&6; }
15508
 
           fi
15509
 
        fi
15510
 
        if test x"$done" = xno; then
15511
 
           # OK, we have run out of ideas
15512
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15513
 
$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15514
 
 
15515
 
           # so it's not safe to assume that we may use pthreads
15516
 
           acx_pthread_ok=no
15517
 
        fi
15518
 
 
15519
 
        CFLAGS="$save_CFLAGS"
15520
 
        LIBS="$save_LIBS"
15521
 
        CC="$save_CC"
15522
 
else
15523
 
        PTHREAD_CC="$CC"
15524
 
fi
15525
 
 
15526
 
 
15527
 
 
15528
 
 
15529
 
 
15530
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15531
 
if test x"$acx_pthread_ok" = xyes; then
15532
 
 
15533
 
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15534
 
 
15535
 
        :
15536
 
else
15537
 
        acx_pthread_ok=no
15538
 
        if test "x$with_pthreads" != "xcheck"; then :
15539
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541
 
as_fn_error $? "--with-pthreads was specified, but unable to be used
15542
 
See \`config.log' for more details" "$LINENO" 5; }
15543
 
fi
15544
 
fi
15545
 
ac_ext=cpp
15546
 
ac_cpp='$CXXCPP $CPPFLAGS'
15547
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15548
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15549
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15550
 
 
15551
 
 
15552
 
       have_pthreads="$acx_pthread_ok"
15553
 
fi
15554
 
 if test "x$have_pthreads" == "xyes"; then
15555
 
  HAVE_PTHREADS_TRUE=
15556
 
  HAVE_PTHREADS_FALSE='#'
15557
 
else
15558
 
  HAVE_PTHREADS_TRUE='#'
15559
 
  HAVE_PTHREADS_FALSE=
15560
 
fi
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
# TODO(chandlerc@google.com) Check for the necessary system headers.
15566
 
 
15567
 
# TODO(chandlerc@google.com) Check the types, structures, and other compiler
15568
 
# and architecture characteristics.
15569
 
 
15570
 
# Output the generated files. No further autoconf macros may be used.
15571
 
cat >confcache <<\_ACEOF
15572
 
# This file is a shell script that caches the results of configure
15573
 
# tests run on this system so they can be shared between configure
15574
 
# scripts and configure runs, see configure's option --config-cache.
15575
 
# It is not useful on other systems.  If it contains results you don't
15576
 
# want to keep, you may remove or edit it.
15577
 
#
15578
 
# config.status only pays attention to the cache file if you give it
15579
 
# the --recheck option to rerun configure.
15580
 
#
15581
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15582
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15583
 
# following values.
15584
 
 
15585
 
_ACEOF
15586
 
 
15587
 
# The following way of writing the cache mishandles newlines in values,
15588
 
# but we know of no workaround that is simple, portable, and efficient.
15589
 
# So, we kill variables containing newlines.
15590
 
# Ultrix sh set writes to stderr and can't be redirected directly,
15591
 
# and sets the high bit in the cache file unless we assign to the vars.
15592
 
(
15593
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15594
 
    eval ac_val=\$$ac_var
15595
 
    case $ac_val in #(
15596
 
    *${as_nl}*)
15597
 
      case $ac_var in #(
15598
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15599
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15600
 
      esac
15601
 
      case $ac_var in #(
15602
 
      _ | IFS | as_nl) ;; #(
15603
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15604
 
      *) { eval $ac_var=; unset $ac_var;} ;;
15605
 
      esac ;;
15606
 
    esac
15607
 
  done
15608
 
 
15609
 
  (set) 2>&1 |
15610
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15611
 
    *${as_nl}ac_space=\ *)
15612
 
      # `set' does not quote correctly, so add quotes: double-quote
15613
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15614
 
      sed -n \
15615
 
        "s/'/'\\\\''/g;
15616
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15617
 
      ;; #(
15618
 
    *)
15619
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15620
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15621
 
      ;;
15622
 
    esac |
15623
 
    sort
15624
 
) |
15625
 
  sed '
15626
 
     /^ac_cv_env_/b end
15627
 
     t clear
15628
 
     :clear
15629
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15630
 
     t end
15631
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15632
 
     :end' >>confcache
15633
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15634
 
  if test -w "$cache_file"; then
15635
 
    if test "x$cache_file" != "x/dev/null"; then
15636
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15637
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
15638
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
15639
 
        cat confcache >"$cache_file"
15640
 
      else
15641
 
        case $cache_file in #(
15642
 
        */* | ?:*)
15643
 
          mv -f confcache "$cache_file"$$ &&
15644
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
15645
 
        *)
15646
 
          mv -f confcache "$cache_file" ;;
15647
 
        esac
15648
 
      fi
15649
 
    fi
15650
 
  else
15651
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15652
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15653
 
  fi
15654
 
fi
15655
 
rm -f confcache
15656
 
 
15657
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15658
 
# Let make expand exec_prefix.
15659
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15660
 
 
15661
 
DEFS=-DHAVE_CONFIG_H
15662
 
 
15663
 
ac_libobjs=
15664
 
ac_ltlibobjs=
15665
 
U=
15666
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15667
 
  # 1. Remove the extension, and $U if already installed.
15668
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15669
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15670
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15671
 
  #    will be set to the directory where LIBOBJS objects are built.
15672
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15673
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15674
 
done
15675
 
LIBOBJS=$ac_libobjs
15676
 
 
15677
 
LTLIBOBJS=$ac_ltlibobjs
15678
 
 
15679
 
 
15680
 
 if test -n "$EXEEXT"; then
15681
 
  am__EXEEXT_TRUE=
15682
 
  am__EXEEXT_FALSE='#'
15683
 
else
15684
 
  am__EXEEXT_TRUE='#'
15685
 
  am__EXEEXT_FALSE=
15686
 
fi
15687
 
 
15688
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15689
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
15690
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691
 
fi
15692
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15693
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15694
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695
 
fi
15696
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15697
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15698
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699
 
fi
15700
 
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15701
 
  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15702
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703
 
fi
15704
 
if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15705
 
  as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
15706
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707
 
fi
15708
 
 
15709
 
: "${CONFIG_STATUS=./config.status}"
15710
 
ac_write_fail=0
15711
 
ac_clean_files_save=$ac_clean_files
15712
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15713
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15714
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15715
 
as_write_fail=0
15716
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15717
 
#! $SHELL
15718
 
# Generated by $as_me.
15719
 
# Run this file to recreate the current configuration.
15720
 
# Compiler output produced by configure, useful for debugging
15721
 
# configure, is in config.log if it exists.
15722
 
 
15723
 
debug=false
15724
 
ac_cs_recheck=false
15725
 
ac_cs_silent=false
15726
 
 
15727
 
SHELL=\${CONFIG_SHELL-$SHELL}
15728
 
export SHELL
15729
 
_ASEOF
15730
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15731
 
## -------------------- ##
15732
 
## M4sh Initialization. ##
15733
 
## -------------------- ##
15734
 
 
15735
 
# Be more Bourne compatible
15736
 
DUALCASE=1; export DUALCASE # for MKS sh
15737
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15738
 
  emulate sh
15739
 
  NULLCMD=:
15740
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15741
 
  # is contrary to our usage.  Disable this feature.
15742
 
  alias -g '${1+"$@"}'='"$@"'
15743
 
  setopt NO_GLOB_SUBST
15744
 
else
15745
 
  case `(set -o) 2>/dev/null` in #(
15746
 
  *posix*) :
15747
 
    set -o posix ;; #(
15748
 
  *) :
15749
 
     ;;
15750
 
esac
15751
 
fi
15752
 
 
15753
 
 
15754
 
as_nl='
15755
 
'
15756
 
export as_nl
15757
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15758
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15759
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15760
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15761
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
15762
 
# but without wasting forks for bash or zsh.
15763
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
15764
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15765
 
  as_echo='print -r --'
15766
 
  as_echo_n='print -rn --'
15767
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15768
 
  as_echo='printf %s\n'
15769
 
  as_echo_n='printf %s'
15770
 
else
15771
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15772
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15773
 
    as_echo_n='/usr/ucb/echo -n'
15774
 
  else
15775
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15776
 
    as_echo_n_body='eval
15777
 
      arg=$1;
15778
 
      case $arg in #(
15779
 
      *"$as_nl"*)
15780
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
15781
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15782
 
      esac;
15783
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15784
 
    '
15785
 
    export as_echo_n_body
15786
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
15787
 
  fi
15788
 
  export as_echo_body
15789
 
  as_echo='sh -c $as_echo_body as_echo'
15790
 
fi
15791
 
 
15792
 
# The user is always right.
15793
 
if test "${PATH_SEPARATOR+set}" != set; then
15794
 
  PATH_SEPARATOR=:
15795
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15796
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15797
 
      PATH_SEPARATOR=';'
15798
 
  }
15799
 
fi
15800
 
 
15801
 
 
15802
 
# IFS
15803
 
# We need space, tab and new line, in precisely that order.  Quoting is
15804
 
# there to prevent editors from complaining about space-tab.
15805
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15806
 
# splitting by setting IFS to empty value.)
15807
 
IFS=" ""        $as_nl"
15808
 
 
15809
 
# Find who we are.  Look in the path if we contain no directory separator.
15810
 
as_myself=
15811
 
case $0 in #((
15812
 
  *[\\/]* ) as_myself=$0 ;;
15813
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814
 
for as_dir in $PATH
15815
 
do
15816
 
  IFS=$as_save_IFS
15817
 
  test -z "$as_dir" && as_dir=.
15818
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15819
 
  done
15820
 
IFS=$as_save_IFS
15821
 
 
15822
 
     ;;
15823
 
esac
15824
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
15825
 
# in which case we are not to be found in the path.
15826
 
if test "x$as_myself" = x; then
15827
 
  as_myself=$0
15828
 
fi
15829
 
if test ! -f "$as_myself"; then
15830
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15831
 
  exit 1
15832
 
fi
15833
 
 
15834
 
# Unset variables that we do not need and which cause bugs (e.g. in
15835
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15836
 
# suppresses any "Segmentation fault" message there.  '((' could
15837
 
# trigger a bug in pdksh 5.2.14.
15838
 
for as_var in BASH_ENV ENV MAIL MAILPATH
15839
 
do eval test x\${$as_var+set} = xset \
15840
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15841
 
done
15842
 
PS1='$ '
15843
 
PS2='> '
15844
 
PS4='+ '
15845
 
 
15846
 
# NLS nuisances.
15847
 
LC_ALL=C
15848
 
export LC_ALL
15849
 
LANGUAGE=C
15850
 
export LANGUAGE
15851
 
 
15852
 
# CDPATH.
15853
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15854
 
 
15855
 
 
15856
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15857
 
# ----------------------------------------
15858
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15859
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15860
 
# script with STATUS, using 1 if that was 0.
15861
 
as_fn_error ()
15862
 
{
15863
 
  as_status=$1; test $as_status -eq 0 && as_status=1
15864
 
  if test "$4"; then
15865
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15866
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15867
 
  fi
15868
 
  $as_echo "$as_me: error: $2" >&2
15869
 
  as_fn_exit $as_status
15870
 
} # as_fn_error
15871
 
 
15872
 
 
15873
 
# as_fn_set_status STATUS
15874
 
# -----------------------
15875
 
# Set $? to STATUS, without forking.
15876
 
as_fn_set_status ()
15877
 
{
15878
 
  return $1
15879
 
} # as_fn_set_status
15880
 
 
15881
 
# as_fn_exit STATUS
15882
 
# -----------------
15883
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15884
 
as_fn_exit ()
15885
 
{
15886
 
  set +e
15887
 
  as_fn_set_status $1
15888
 
  exit $1
15889
 
} # as_fn_exit
15890
 
 
15891
 
# as_fn_unset VAR
15892
 
# ---------------
15893
 
# Portably unset VAR.
15894
 
as_fn_unset ()
15895
 
{
15896
 
  { eval $1=; unset $1;}
15897
 
}
15898
 
as_unset=as_fn_unset
15899
 
# as_fn_append VAR VALUE
15900
 
# ----------------------
15901
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
15902
 
# advantage of any shell optimizations that allow amortized linear growth over
15903
 
# repeated appends, instead of the typical quadratic growth present in naive
15904
 
# implementations.
15905
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15906
 
  eval 'as_fn_append ()
15907
 
  {
15908
 
    eval $1+=\$2
15909
 
  }'
15910
 
else
15911
 
  as_fn_append ()
15912
 
  {
15913
 
    eval $1=\$$1\$2
15914
 
  }
15915
 
fi # as_fn_append
15916
 
 
15917
 
# as_fn_arith ARG...
15918
 
# ------------------
15919
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
15920
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15921
 
# must be portable across $(()) and expr.
15922
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15923
 
  eval 'as_fn_arith ()
15924
 
  {
15925
 
    as_val=$(( $* ))
15926
 
  }'
15927
 
else
15928
 
  as_fn_arith ()
15929
 
  {
15930
 
    as_val=`expr "$@" || test $? -eq 1`
15931
 
  }
15932
 
fi # as_fn_arith
15933
 
 
15934
 
 
15935
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
15936
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15937
 
  as_expr=expr
15938
 
else
15939
 
  as_expr=false
15940
 
fi
15941
 
 
15942
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15943
 
  as_basename=basename
15944
 
else
15945
 
  as_basename=false
15946
 
fi
15947
 
 
15948
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15949
 
  as_dirname=dirname
15950
 
else
15951
 
  as_dirname=false
15952
 
fi
15953
 
 
15954
 
as_me=`$as_basename -- "$0" ||
15955
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15956
 
         X"$0" : 'X\(//\)$' \| \
15957
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15958
 
$as_echo X/"$0" |
15959
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15960
 
            s//\1/
15961
 
            q
15962
 
          }
15963
 
          /^X\/\(\/\/\)$/{
15964
 
            s//\1/
15965
 
            q
15966
 
          }
15967
 
          /^X\/\(\/\).*/{
15968
 
            s//\1/
15969
 
            q
15970
 
          }
15971
 
          s/.*/./; q'`
15972
 
 
15973
 
# Avoid depending upon Character Ranges.
15974
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15975
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15976
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15977
 
as_cr_digits='0123456789'
15978
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
15979
 
 
15980
 
ECHO_C= ECHO_N= ECHO_T=
15981
 
case `echo -n x` in #(((((
15982
 
-n*)
15983
 
  case `echo 'xy\c'` in
15984
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15985
 
  xy)  ECHO_C='\c';;
15986
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15987
 
       ECHO_T=' ';;
15988
 
  esac;;
15989
 
*)
15990
 
  ECHO_N='-n';;
15991
 
esac
15992
 
 
15993
 
rm -f conf$$ conf$$.exe conf$$.file
15994
 
if test -d conf$$.dir; then
15995
 
  rm -f conf$$.dir/conf$$.file
15996
 
else
15997
 
  rm -f conf$$.dir
15998
 
  mkdir conf$$.dir 2>/dev/null
15999
 
fi
16000
 
if (echo >conf$$.file) 2>/dev/null; then
16001
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
16002
 
    as_ln_s='ln -s'
16003
 
    # ... but there are two gotchas:
16004
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16005
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16006
 
    # In both cases, we have to default to `cp -p'.
16007
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16008
 
      as_ln_s='cp -p'
16009
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
16010
 
    as_ln_s=ln
16011
 
  else
16012
 
    as_ln_s='cp -p'
16013
 
  fi
16014
 
else
16015
 
  as_ln_s='cp -p'
16016
 
fi
16017
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16018
 
rmdir conf$$.dir 2>/dev/null
16019
 
 
16020
 
 
16021
 
# as_fn_mkdir_p
16022
 
# -------------
16023
 
# Create "$as_dir" as a directory, including parents if necessary.
16024
 
as_fn_mkdir_p ()
16025
 
{
16026
 
 
16027
 
  case $as_dir in #(
16028
 
  -*) as_dir=./$as_dir;;
16029
 
  esac
16030
 
  test -d "$as_dir" || eval $as_mkdir_p || {
16031
 
    as_dirs=
16032
 
    while :; do
16033
 
      case $as_dir in #(
16034
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16035
 
      *) as_qdir=$as_dir;;
16036
 
      esac
16037
 
      as_dirs="'$as_qdir' $as_dirs"
16038
 
      as_dir=`$as_dirname -- "$as_dir" ||
16039
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
16041
 
         X"$as_dir" : 'X\(//\)$' \| \
16042
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16043
 
$as_echo X"$as_dir" |
16044
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045
 
            s//\1/
16046
 
            q
16047
 
          }
16048
 
          /^X\(\/\/\)[^/].*/{
16049
 
            s//\1/
16050
 
            q
16051
 
          }
16052
 
          /^X\(\/\/\)$/{
16053
 
            s//\1/
16054
 
            q
16055
 
          }
16056
 
          /^X\(\/\).*/{
16057
 
            s//\1/
16058
 
            q
16059
 
          }
16060
 
          s/.*/./; q'`
16061
 
      test -d "$as_dir" && break
16062
 
    done
16063
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
16064
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16065
 
 
16066
 
 
16067
 
} # as_fn_mkdir_p
16068
 
if mkdir -p . 2>/dev/null; then
16069
 
  as_mkdir_p='mkdir -p "$as_dir"'
16070
 
else
16071
 
  test -d ./-p && rmdir ./-p
16072
 
  as_mkdir_p=false
16073
 
fi
16074
 
 
16075
 
if test -x / >/dev/null 2>&1; then
16076
 
  as_test_x='test -x'
16077
 
else
16078
 
  if ls -dL / >/dev/null 2>&1; then
16079
 
    as_ls_L_option=L
16080
 
  else
16081
 
    as_ls_L_option=
16082
 
  fi
16083
 
  as_test_x='
16084
 
    eval sh -c '\''
16085
 
      if test -d "$1"; then
16086
 
        test -d "$1/.";
16087
 
      else
16088
 
        case $1 in #(
16089
 
        -*)set "./$1";;
16090
 
        esac;
16091
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16092
 
        ???[sx]*):;;*)false;;esac;fi
16093
 
    '\'' sh
16094
 
  '
16095
 
fi
16096
 
as_executable_p=$as_test_x
16097
 
 
16098
 
# Sed expression to map a string onto a valid CPP name.
16099
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16100
 
 
16101
 
# Sed expression to map a string onto a valid variable name.
16102
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16103
 
 
16104
 
 
16105
 
exec 6>&1
16106
 
## ----------------------------------- ##
16107
 
## Main body of $CONFIG_STATUS script. ##
16108
 
## ----------------------------------- ##
16109
 
_ASEOF
16110
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16111
 
 
16112
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113
 
# Save the log message, to keep $0 and so on meaningful, and to
16114
 
# report actual input values of CONFIG_FILES etc. instead of their
16115
 
# values after options handling.
16116
 
ac_log="
16117
 
This file was extended by Google C++ Testing Framework $as_me 1.5.0, which was
16118
 
generated by GNU Autoconf 2.68.  Invocation command line was
16119
 
 
16120
 
  CONFIG_FILES    = $CONFIG_FILES
16121
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
16122
 
  CONFIG_LINKS    = $CONFIG_LINKS
16123
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16124
 
  $ $0 $@
16125
 
 
16126
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16127
 
"
16128
 
 
16129
 
_ACEOF
16130
 
 
16131
 
case $ac_config_files in *"
16132
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16133
 
esac
16134
 
 
16135
 
case $ac_config_headers in *"
16136
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16137
 
esac
16138
 
 
16139
 
 
16140
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141
 
# Files that config.status was made for.
16142
 
config_files="$ac_config_files"
16143
 
config_headers="$ac_config_headers"
16144
 
config_commands="$ac_config_commands"
16145
 
 
16146
 
_ACEOF
16147
 
 
16148
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149
 
ac_cs_usage="\
16150
 
\`$as_me' instantiates files and other configuration actions
16151
 
from templates according to the current configuration.  Unless the files
16152
 
and actions are specified as TAGs, all are instantiated by default.
16153
 
 
16154
 
Usage: $0 [OPTION]... [TAG]...
16155
 
 
16156
 
  -h, --help       print this help, then exit
16157
 
  -V, --version    print version number and configuration settings, then exit
16158
 
      --config     print configuration, then exit
16159
 
  -q, --quiet, --silent
16160
 
                   do not print progress messages
16161
 
  -d, --debug      don't remove temporary files
16162
 
      --recheck    update $as_me by reconfiguring in the same conditions
16163
 
      --file=FILE[:TEMPLATE]
16164
 
                   instantiate the configuration file FILE
16165
 
      --header=FILE[:TEMPLATE]
16166
 
                   instantiate the configuration header FILE
16167
 
 
16168
 
Configuration files:
16169
 
$config_files
16170
 
 
16171
 
Configuration headers:
16172
 
$config_headers
16173
 
 
16174
 
Configuration commands:
16175
 
$config_commands
16176
 
 
16177
 
Report bugs to <googletestframework@googlegroups.com>."
16178
 
 
16179
 
_ACEOF
16180
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16181
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16182
 
ac_cs_version="\\
16183
 
Google C++ Testing Framework config.status 1.5.0
16184
 
configured by $0, generated by GNU Autoconf 2.68,
16185
 
  with options \\"\$ac_cs_config\\"
16186
 
 
16187
 
Copyright (C) 2010 Free Software Foundation, Inc.
16188
 
This config.status script is free software; the Free Software Foundation
16189
 
gives unlimited permission to copy, distribute and modify it."
16190
 
 
16191
 
ac_pwd='$ac_pwd'
16192
 
srcdir='$srcdir'
16193
 
INSTALL='$INSTALL'
16194
 
MKDIR_P='$MKDIR_P'
16195
 
AWK='$AWK'
16196
 
test -n "\$AWK" || AWK=awk
16197
 
_ACEOF
16198
 
 
16199
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200
 
# The default lists apply if the user does not specify any file.
16201
 
ac_need_defaults=:
16202
 
while test $# != 0
16203
 
do
16204
 
  case $1 in
16205
 
  --*=?*)
16206
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16207
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16208
 
    ac_shift=:
16209
 
    ;;
16210
 
  --*=)
16211
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16212
 
    ac_optarg=
16213
 
    ac_shift=:
16214
 
    ;;
16215
 
  *)
16216
 
    ac_option=$1
16217
 
    ac_optarg=$2
16218
 
    ac_shift=shift
16219
 
    ;;
16220
 
  esac
16221
 
 
16222
 
  case $ac_option in
16223
 
  # Handling of the options.
16224
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16225
 
    ac_cs_recheck=: ;;
16226
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16227
 
    $as_echo "$ac_cs_version"; exit ;;
16228
 
  --config | --confi | --conf | --con | --co | --c )
16229
 
    $as_echo "$ac_cs_config"; exit ;;
16230
 
  --debug | --debu | --deb | --de | --d | -d )
16231
 
    debug=: ;;
16232
 
  --file | --fil | --fi | --f )
16233
 
    $ac_shift
16234
 
    case $ac_optarg in
16235
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16236
 
    '') as_fn_error $? "missing file argument" ;;
16237
 
    esac
16238
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
16239
 
    ac_need_defaults=false;;
16240
 
  --header | --heade | --head | --hea )
16241
 
    $ac_shift
16242
 
    case $ac_optarg in
16243
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16244
 
    esac
16245
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16246
 
    ac_need_defaults=false;;
16247
 
  --he | --h)
16248
 
    # Conflict between --help and --header
16249
 
    as_fn_error $? "ambiguous option: \`$1'
16250
 
Try \`$0 --help' for more information.";;
16251
 
  --help | --hel | -h )
16252
 
    $as_echo "$ac_cs_usage"; exit ;;
16253
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16254
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16255
 
    ac_cs_silent=: ;;
16256
 
 
16257
 
  # This is an error.
16258
 
  -*) as_fn_error $? "unrecognized option: \`$1'
16259
 
Try \`$0 --help' for more information." ;;
16260
 
 
16261
 
  *) as_fn_append ac_config_targets " $1"
16262
 
     ac_need_defaults=false ;;
16263
 
 
16264
 
  esac
16265
 
  shift
16266
 
done
16267
 
 
16268
 
ac_configure_extra_args=
16269
 
 
16270
 
if $ac_cs_silent; then
16271
 
  exec 6>/dev/null
16272
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16273
 
fi
16274
 
 
16275
 
_ACEOF
16276
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277
 
if \$ac_cs_recheck; then
16278
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16279
 
  shift
16280
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16281
 
  CONFIG_SHELL='$SHELL'
16282
 
  export CONFIG_SHELL
16283
 
  exec "\$@"
16284
 
fi
16285
 
 
16286
 
_ACEOF
16287
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288
 
exec 5>>config.log
16289
 
{
16290
 
  echo
16291
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16292
 
## Running $as_me. ##
16293
 
_ASBOX
16294
 
  $as_echo "$ac_log"
16295
 
} >&5
16296
 
 
16297
 
_ACEOF
16298
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299
 
#
16300
 
# INIT-COMMANDS
16301
 
#
16302
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16303
 
 
16304
 
 
16305
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
16306
 
# if CDPATH is set.
16307
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16308
 
 
16309
 
sed_quote_subst='$sed_quote_subst'
16310
 
double_quote_subst='$double_quote_subst'
16311
 
delay_variable_subst='$delay_variable_subst'
16312
 
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16313
 
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16314
 
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16315
 
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16316
 
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16317
 
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16318
 
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16319
 
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16320
 
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16321
 
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16322
 
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16323
 
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16324
 
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16325
 
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16326
 
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16327
 
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16328
 
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16329
 
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16330
 
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16331
 
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16332
 
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16333
 
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16334
 
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16335
 
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16336
 
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16337
 
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16338
 
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16339
 
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16340
 
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16341
 
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16342
 
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16343
 
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16344
 
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16345
 
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16346
 
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16347
 
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16348
 
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16349
 
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16350
 
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16351
 
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16352
 
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16353
 
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16354
 
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16355
 
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16356
 
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16357
 
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16358
 
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16359
 
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16360
 
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16361
 
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16362
 
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16363
 
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16364
 
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16365
 
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16366
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16367
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16368
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16369
 
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16370
 
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16371
 
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16372
 
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16373
 
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16374
 
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16375
 
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16376
 
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16377
 
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16378
 
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16379
 
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16380
 
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16381
 
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16382
 
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16383
 
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16384
 
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16385
 
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16386
 
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16387
 
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16388
 
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16389
 
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16390
 
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16391
 
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16392
 
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16393
 
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16394
 
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16395
 
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16396
 
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16397
 
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16398
 
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16399
 
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16400
 
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16401
 
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16402
 
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16403
 
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16404
 
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16405
 
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16406
 
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16407
 
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16408
 
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16409
 
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16410
 
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16411
 
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16412
 
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16413
 
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16414
 
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16415
 
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16416
 
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16417
 
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16418
 
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16419
 
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16420
 
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16421
 
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16422
 
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16423
 
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16424
 
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16425
 
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16426
 
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16427
 
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16428
 
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16429
 
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16430
 
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16431
 
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16432
 
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16433
 
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16434
 
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16435
 
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16436
 
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16437
 
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16438
 
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16439
 
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16440
 
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16441
 
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16442
 
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16443
 
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16444
 
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16445
 
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16446
 
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16447
 
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16448
 
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16449
 
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16450
 
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16451
 
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16452
 
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16453
 
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16454
 
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16455
 
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16456
 
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16457
 
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16458
 
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16459
 
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16460
 
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16461
 
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16462
 
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16463
 
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16464
 
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16465
 
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16466
 
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16467
 
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16468
 
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16469
 
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16470
 
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16471
 
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16472
 
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16473
 
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16474
 
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16475
 
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16476
 
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16477
 
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16478
 
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16479
 
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16480
 
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16481
 
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16482
 
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16483
 
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16484
 
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16485
 
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16486
 
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16487
 
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16488
 
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16489
 
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16490
 
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16491
 
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16492
 
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16493
 
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16494
 
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16495
 
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16496
 
 
16497
 
LTCC='$LTCC'
16498
 
LTCFLAGS='$LTCFLAGS'
16499
 
compiler='$compiler_DEFAULT'
16500
 
 
16501
 
# A function that is used when there is no print builtin or printf.
16502
 
func_fallback_echo ()
16503
 
{
16504
 
  eval 'cat <<_LTECHO_EOF
16505
 
\$1
16506
 
_LTECHO_EOF'
16507
 
}
16508
 
 
16509
 
# Quote evaled strings.
16510
 
for var in SHELL \
16511
 
ECHO \
16512
 
PATH_SEPARATOR \
16513
 
SED \
16514
 
GREP \
16515
 
EGREP \
16516
 
FGREP \
16517
 
LD \
16518
 
NM \
16519
 
LN_S \
16520
 
lt_SP2NL \
16521
 
lt_NL2SP \
16522
 
reload_flag \
16523
 
OBJDUMP \
16524
 
deplibs_check_method \
16525
 
file_magic_cmd \
16526
 
file_magic_glob \
16527
 
want_nocaseglob \
16528
 
DLLTOOL \
16529
 
sharedlib_from_linklib_cmd \
16530
 
AR \
16531
 
AR_FLAGS \
16532
 
archiver_list_spec \
16533
 
STRIP \
16534
 
RANLIB \
16535
 
CC \
16536
 
CFLAGS \
16537
 
compiler \
16538
 
lt_cv_sys_global_symbol_pipe \
16539
 
lt_cv_sys_global_symbol_to_cdecl \
16540
 
lt_cv_sys_global_symbol_to_c_name_address \
16541
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16542
 
nm_file_list_spec \
16543
 
lt_prog_compiler_no_builtin_flag \
16544
 
lt_prog_compiler_pic \
16545
 
lt_prog_compiler_wl \
16546
 
lt_prog_compiler_static \
16547
 
lt_cv_prog_compiler_c_o \
16548
 
need_locks \
16549
 
MANIFEST_TOOL \
16550
 
DSYMUTIL \
16551
 
NMEDIT \
16552
 
LIPO \
16553
 
OTOOL \
16554
 
OTOOL64 \
16555
 
shrext_cmds \
16556
 
export_dynamic_flag_spec \
16557
 
whole_archive_flag_spec \
16558
 
compiler_needs_object \
16559
 
with_gnu_ld \
16560
 
allow_undefined_flag \
16561
 
no_undefined_flag \
16562
 
hardcode_libdir_flag_spec \
16563
 
hardcode_libdir_separator \
16564
 
exclude_expsyms \
16565
 
include_expsyms \
16566
 
file_list_spec \
16567
 
variables_saved_for_relink \
16568
 
libname_spec \
16569
 
library_names_spec \
16570
 
soname_spec \
16571
 
install_override_mode \
16572
 
finish_eval \
16573
 
old_striplib \
16574
 
striplib \
16575
 
compiler_lib_search_dirs \
16576
 
predep_objects \
16577
 
postdep_objects \
16578
 
predeps \
16579
 
postdeps \
16580
 
compiler_lib_search_path \
16581
 
LD_CXX \
16582
 
reload_flag_CXX \
16583
 
compiler_CXX \
16584
 
lt_prog_compiler_no_builtin_flag_CXX \
16585
 
lt_prog_compiler_pic_CXX \
16586
 
lt_prog_compiler_wl_CXX \
16587
 
lt_prog_compiler_static_CXX \
16588
 
lt_cv_prog_compiler_c_o_CXX \
16589
 
export_dynamic_flag_spec_CXX \
16590
 
whole_archive_flag_spec_CXX \
16591
 
compiler_needs_object_CXX \
16592
 
with_gnu_ld_CXX \
16593
 
allow_undefined_flag_CXX \
16594
 
no_undefined_flag_CXX \
16595
 
hardcode_libdir_flag_spec_CXX \
16596
 
hardcode_libdir_separator_CXX \
16597
 
exclude_expsyms_CXX \
16598
 
include_expsyms_CXX \
16599
 
file_list_spec_CXX \
16600
 
compiler_lib_search_dirs_CXX \
16601
 
predep_objects_CXX \
16602
 
postdep_objects_CXX \
16603
 
predeps_CXX \
16604
 
postdeps_CXX \
16605
 
compiler_lib_search_path_CXX; do
16606
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16607
 
    *[\\\\\\\`\\"\\\$]*)
16608
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16609
 
      ;;
16610
 
    *)
16611
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16612
 
      ;;
16613
 
    esac
16614
 
done
16615
 
 
16616
 
# Double-quote double-evaled strings.
16617
 
for var in reload_cmds \
16618
 
old_postinstall_cmds \
16619
 
old_postuninstall_cmds \
16620
 
old_archive_cmds \
16621
 
extract_expsyms_cmds \
16622
 
old_archive_from_new_cmds \
16623
 
old_archive_from_expsyms_cmds \
16624
 
archive_cmds \
16625
 
archive_expsym_cmds \
16626
 
module_cmds \
16627
 
module_expsym_cmds \
16628
 
export_symbols_cmds \
16629
 
prelink_cmds \
16630
 
postlink_cmds \
16631
 
postinstall_cmds \
16632
 
postuninstall_cmds \
16633
 
finish_cmds \
16634
 
sys_lib_search_path_spec \
16635
 
sys_lib_dlsearch_path_spec \
16636
 
reload_cmds_CXX \
16637
 
old_archive_cmds_CXX \
16638
 
old_archive_from_new_cmds_CXX \
16639
 
old_archive_from_expsyms_cmds_CXX \
16640
 
archive_cmds_CXX \
16641
 
archive_expsym_cmds_CXX \
16642
 
module_cmds_CXX \
16643
 
module_expsym_cmds_CXX \
16644
 
export_symbols_cmds_CXX \
16645
 
prelink_cmds_CXX \
16646
 
postlink_cmds_CXX; do
16647
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16648
 
    *[\\\\\\\`\\"\\\$]*)
16649
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16650
 
      ;;
16651
 
    *)
16652
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16653
 
      ;;
16654
 
    esac
16655
 
done
16656
 
 
16657
 
ac_aux_dir='$ac_aux_dir'
16658
 
xsi_shell='$xsi_shell'
16659
 
lt_shell_append='$lt_shell_append'
16660
 
 
16661
 
# See if we are running on zsh, and set the options which allow our
16662
 
# commands through without removal of \ escapes INIT.
16663
 
if test -n "\${ZSH_VERSION+set}" ; then
16664
 
   setopt NO_GLOB_SUBST
16665
 
fi
16666
 
 
16667
 
 
16668
 
    PACKAGE='$PACKAGE'
16669
 
    VERSION='$VERSION'
16670
 
    TIMESTAMP='$TIMESTAMP'
16671
 
    RM='$RM'
16672
 
    ofile='$ofile'
16673
 
 
16674
 
 
16675
 
 
16676
 
 
16677
 
 
16678
 
 
16679
 
_ACEOF
16680
 
 
16681
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16682
 
 
16683
 
# Handling of arguments.
16684
 
for ac_config_target in $ac_config_targets
16685
 
do
16686
 
  case $ac_config_target in
16687
 
    "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16688
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16689
 
    "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16690
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16691
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16692
 
 
16693
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16694
 
  esac
16695
 
done
16696
 
 
16697
 
 
16698
 
# If the user did not use the arguments to specify the items to instantiate,
16699
 
# then the envvar interface is used.  Set only those that are not.
16700
 
# We use the long form for the default assignment because of an extremely
16701
 
# bizarre bug on SunOS 4.1.3.
16702
 
if $ac_need_defaults; then
16703
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16704
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16705
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16706
 
fi
16707
 
 
16708
 
# Have a temporary directory for convenience.  Make it in the build tree
16709
 
# simply because there is no reason against having it here, and in addition,
16710
 
# creating and moving files from /tmp can sometimes cause problems.
16711
 
# Hook for its removal unless debugging.
16712
 
# Note that there is a small window in which the directory will not be cleaned:
16713
 
# after its creation but before its name has been assigned to `$tmp'.
16714
 
$debug ||
16715
 
{
16716
 
  tmp= ac_tmp=
16717
 
  trap 'exit_status=$?
16718
 
  : "${ac_tmp:=$tmp}"
16719
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16720
 
' 0
16721
 
  trap 'as_fn_exit 1' 1 2 13 15
16722
 
}
16723
 
# Create a (secure) tmp directory for tmp files.
16724
 
 
16725
 
{
16726
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16727
 
  test -d "$tmp"
16728
 
}  ||
16729
 
{
16730
 
  tmp=./conf$$-$RANDOM
16731
 
  (umask 077 && mkdir "$tmp")
16732
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16733
 
ac_tmp=$tmp
16734
 
 
16735
 
# Set up the scripts for CONFIG_FILES section.
16736
 
# No need to generate them if there are no CONFIG_FILES.
16737
 
# This happens for instance with `./config.status config.h'.
16738
 
if test -n "$CONFIG_FILES"; then
16739
 
 
16740
 
 
16741
 
ac_cr=`echo X | tr X '\015'`
16742
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16743
 
# But we know of no other shell where ac_cr would be empty at this
16744
 
# point, so we can use a bashism as a fallback.
16745
 
if test "x$ac_cr" = x; then
16746
 
  eval ac_cr=\$\'\\r\'
16747
 
fi
16748
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16749
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16750
 
  ac_cs_awk_cr='\\r'
16751
 
else
16752
 
  ac_cs_awk_cr=$ac_cr
16753
 
fi
16754
 
 
16755
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16756
 
_ACEOF
16757
 
 
16758
 
 
16759
 
{
16760
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16761
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16762
 
  echo "_ACEOF"
16763
 
} >conf$$subs.sh ||
16764
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16765
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16766
 
ac_delim='%!_!# '
16767
 
for ac_last_try in false false false false false :; do
16768
 
  . ./conf$$subs.sh ||
16769
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16770
 
 
16771
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16772
 
  if test $ac_delim_n = $ac_delim_num; then
16773
 
    break
16774
 
  elif $ac_last_try; then
16775
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16776
 
  else
16777
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16778
 
  fi
16779
 
done
16780
 
rm -f conf$$subs.sh
16781
 
 
16782
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16784
 
_ACEOF
16785
 
sed -n '
16786
 
h
16787
 
s/^/S["/; s/!.*/"]=/
16788
 
p
16789
 
g
16790
 
s/^[^!]*!//
16791
 
:repl
16792
 
t repl
16793
 
s/'"$ac_delim"'$//
16794
 
t delim
16795
 
:nl
16796
 
h
16797
 
s/\(.\{148\}\)..*/\1/
16798
 
t more1
16799
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16800
 
p
16801
 
n
16802
 
b repl
16803
 
:more1
16804
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16805
 
p
16806
 
g
16807
 
s/.\{148\}//
16808
 
t nl
16809
 
:delim
16810
 
h
16811
 
s/\(.\{148\}\)..*/\1/
16812
 
t more2
16813
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
16814
 
p
16815
 
b
16816
 
:more2
16817
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16818
 
p
16819
 
g
16820
 
s/.\{148\}//
16821
 
t delim
16822
 
' <conf$$subs.awk | sed '
16823
 
/^[^""]/{
16824
 
  N
16825
 
  s/\n//
16826
 
}
16827
 
' >>$CONFIG_STATUS || ac_write_fail=1
16828
 
rm -f conf$$subs.awk
16829
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16830
 
_ACAWK
16831
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16832
 
  for (key in S) S_is_set[key] = 1
16833
 
  FS = ""
16834
 
 
16835
 
}
16836
 
{
16837
 
  line = $ 0
16838
 
  nfields = split(line, field, "@")
16839
 
  substed = 0
16840
 
  len = length(field[1])
16841
 
  for (i = 2; i < nfields; i++) {
16842
 
    key = field[i]
16843
 
    keylen = length(key)
16844
 
    if (S_is_set[key]) {
16845
 
      value = S[key]
16846
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16847
 
      len += length(value) + length(field[++i])
16848
 
      substed = 1
16849
 
    } else
16850
 
      len += 1 + keylen
16851
 
  }
16852
 
 
16853
 
  print line
16854
 
}
16855
 
 
16856
 
_ACAWK
16857
 
_ACEOF
16858
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16860
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16861
 
else
16862
 
  cat
16863
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16864
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16865
 
_ACEOF
16866
 
 
16867
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16868
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16869
 
# trailing colons and then remove the whole line if VPATH becomes empty
16870
 
# (actually we leave an empty line to preserve line numbers).
16871
 
if test "x$srcdir" = x.; then
16872
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16873
 
h
16874
 
s///
16875
 
s/^/:/
16876
 
s/[      ]*$/:/
16877
 
s/:\$(srcdir):/:/g
16878
 
s/:\${srcdir}:/:/g
16879
 
s/:@srcdir@:/:/g
16880
 
s/^:*//
16881
 
s/:*$//
16882
 
x
16883
 
s/\(=[   ]*\).*/\1/
16884
 
G
16885
 
s/\n//
16886
 
s/^[^=]*=[       ]*$//
16887
 
}'
16888
 
fi
16889
 
 
16890
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891
 
fi # test -n "$CONFIG_FILES"
16892
 
 
16893
 
# Set up the scripts for CONFIG_HEADERS section.
16894
 
# No need to generate them if there are no CONFIG_HEADERS.
16895
 
# This happens for instance with `./config.status Makefile'.
16896
 
if test -n "$CONFIG_HEADERS"; then
16897
 
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16898
 
BEGIN {
16899
 
_ACEOF
16900
 
 
16901
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
16902
 
# here-document in config.status, that substitutes the proper values into
16903
 
# config.h.in to produce config.h.
16904
 
 
16905
 
# Create a delimiter string that does not exist in confdefs.h, to ease
16906
 
# handling of long lines.
16907
 
ac_delim='%!_!# '
16908
 
for ac_last_try in false false :; do
16909
 
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16910
 
  if test -z "$ac_tt"; then
16911
 
    break
16912
 
  elif $ac_last_try; then
16913
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16914
 
  else
16915
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16916
 
  fi
16917
 
done
16918
 
 
16919
 
# For the awk script, D is an array of macro values keyed by name,
16920
 
# likewise P contains macro parameters if any.  Preserve backslash
16921
 
# newline sequences.
16922
 
 
16923
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16924
 
sed -n '
16925
 
s/.\{148\}/&'"$ac_delim"'/g
16926
 
t rset
16927
 
:rset
16928
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
16929
 
t def
16930
 
d
16931
 
:def
16932
 
s/\\$//
16933
 
t bsnl
16934
 
s/["\\]/\\&/g
16935
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16936
 
D["\1"]=" \3"/p
16937
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16938
 
d
16939
 
:bsnl
16940
 
s/["\\]/\\&/g
16941
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16942
 
D["\1"]=" \3\\\\\\n"\\/p
16943
 
t cont
16944
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16945
 
t cont
16946
 
d
16947
 
:cont
16948
 
n
16949
 
s/.\{148\}/&'"$ac_delim"'/g
16950
 
t clear
16951
 
:clear
16952
 
s/\\$//
16953
 
t bsnlc
16954
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16955
 
d
16956
 
:bsnlc
16957
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16958
 
b cont
16959
 
' <confdefs.h | sed '
16960
 
s/'"$ac_delim"'/"\\\
16961
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16962
 
 
16963
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16964
 
  for (key in D) D_is_set[key] = 1
16965
 
  FS = ""
16966
 
}
16967
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16968
 
  line = \$ 0
16969
 
  split(line, arg, " ")
16970
 
  if (arg[1] == "#") {
16971
 
    defundef = arg[2]
16972
 
    mac1 = arg[3]
16973
 
  } else {
16974
 
    defundef = substr(arg[1], 2)
16975
 
    mac1 = arg[2]
16976
 
  }
16977
 
  split(mac1, mac2, "(") #)
16978
 
  macro = mac2[1]
16979
 
  prefix = substr(line, 1, index(line, defundef) - 1)
16980
 
  if (D_is_set[macro]) {
16981
 
    # Preserve the white space surrounding the "#".
16982
 
    print prefix "define", macro P[macro] D[macro]
16983
 
    next
16984
 
  } else {
16985
 
    # Replace #undef with comments.  This is necessary, for example,
16986
 
    # in the case of _POSIX_SOURCE, which is predefined and required
16987
 
    # on some systems where configure will not decide to define it.
16988
 
    if (defundef == "undef") {
16989
 
      print "/*", prefix defundef, macro, "*/"
16990
 
      next
16991
 
    }
16992
 
  }
16993
 
}
16994
 
{ print }
16995
 
_ACAWK
16996
 
_ACEOF
16997
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16999
 
fi # test -n "$CONFIG_HEADERS"
17000
 
 
17001
 
 
17002
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17003
 
shift
17004
 
for ac_tag
17005
 
do
17006
 
  case $ac_tag in
17007
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
17008
 
  esac
17009
 
  case $ac_mode$ac_tag in
17010
 
  :[FHL]*:*);;
17011
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17012
 
  :[FH]-) ac_tag=-:-;;
17013
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17014
 
  esac
17015
 
  ac_save_IFS=$IFS
17016
 
  IFS=:
17017
 
  set x $ac_tag
17018
 
  IFS=$ac_save_IFS
17019
 
  shift
17020
 
  ac_file=$1
17021
 
  shift
17022
 
 
17023
 
  case $ac_mode in
17024
 
  :L) ac_source=$1;;
17025
 
  :[FH])
17026
 
    ac_file_inputs=
17027
 
    for ac_f
17028
 
    do
17029
 
      case $ac_f in
17030
 
      -) ac_f="$ac_tmp/stdin";;
17031
 
      *) # Look for the file first in the build tree, then in the source tree
17032
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
17033
 
         # because $ac_f cannot contain `:'.
17034
 
         test -f "$ac_f" ||
17035
 
           case $ac_f in
17036
 
           [\\/$]*) false;;
17037
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17038
 
           esac ||
17039
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17040
 
      esac
17041
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17042
 
      as_fn_append ac_file_inputs " '$ac_f'"
17043
 
    done
17044
 
 
17045
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
17046
 
    # use $as_me), people would be surprised to read:
17047
 
    #    /* config.h.  Generated by config.status.  */
17048
 
    configure_input='Generated from '`
17049
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17050
 
        `' by configure.'
17051
 
    if test x"$ac_file" != x-; then
17052
 
      configure_input="$ac_file.  $configure_input"
17053
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17054
 
$as_echo "$as_me: creating $ac_file" >&6;}
17055
 
    fi
17056
 
    # Neutralize special characters interpreted by sed in replacement strings.
17057
 
    case $configure_input in #(
17058
 
    *\&* | *\|* | *\\* )
17059
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
17060
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17061
 
    *) ac_sed_conf_input=$configure_input;;
17062
 
    esac
17063
 
 
17064
 
    case $ac_tag in
17065
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17066
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17067
 
    esac
17068
 
    ;;
17069
 
  esac
17070
 
 
17071
 
  ac_dir=`$as_dirname -- "$ac_file" ||
17072
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17073
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
17074
 
         X"$ac_file" : 'X\(//\)$' \| \
17075
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17076
 
$as_echo X"$ac_file" |
17077
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17078
 
            s//\1/
17079
 
            q
17080
 
          }
17081
 
          /^X\(\/\/\)[^/].*/{
17082
 
            s//\1/
17083
 
            q
17084
 
          }
17085
 
          /^X\(\/\/\)$/{
17086
 
            s//\1/
17087
 
            q
17088
 
          }
17089
 
          /^X\(\/\).*/{
17090
 
            s//\1/
17091
 
            q
17092
 
          }
17093
 
          s/.*/./; q'`
17094
 
  as_dir="$ac_dir"; as_fn_mkdir_p
17095
 
  ac_builddir=.
17096
 
 
17097
 
case "$ac_dir" in
17098
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17099
 
*)
17100
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17101
 
  # A ".." for each directory in $ac_dir_suffix.
17102
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17103
 
  case $ac_top_builddir_sub in
17104
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17105
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17106
 
  esac ;;
17107
 
esac
17108
 
ac_abs_top_builddir=$ac_pwd
17109
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17110
 
# for backward compatibility:
17111
 
ac_top_builddir=$ac_top_build_prefix
17112
 
 
17113
 
case $srcdir in
17114
 
  .)  # We are building in place.
17115
 
    ac_srcdir=.
17116
 
    ac_top_srcdir=$ac_top_builddir_sub
17117
 
    ac_abs_top_srcdir=$ac_pwd ;;
17118
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
17119
 
    ac_srcdir=$srcdir$ac_dir_suffix;
17120
 
    ac_top_srcdir=$srcdir
17121
 
    ac_abs_top_srcdir=$srcdir ;;
17122
 
  *) # Relative name.
17123
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17124
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17125
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17126
 
esac
17127
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17128
 
 
17129
 
 
17130
 
  case $ac_mode in
17131
 
  :F)
17132
 
  #
17133
 
  # CONFIG_FILE
17134
 
  #
17135
 
 
17136
 
  case $INSTALL in
17137
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17138
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17139
 
  esac
17140
 
  ac_MKDIR_P=$MKDIR_P
17141
 
  case $MKDIR_P in
17142
 
  [\\/$]* | ?:[\\/]* ) ;;
17143
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17144
 
  esac
17145
 
_ACEOF
17146
 
 
17147
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148
 
# If the template does not know about datarootdir, expand it.
17149
 
# FIXME: This hack should be removed a few years after 2.60.
17150
 
ac_datarootdir_hack=; ac_datarootdir_seen=
17151
 
ac_sed_dataroot='
17152
 
/datarootdir/ {
17153
 
  p
17154
 
  q
17155
 
}
17156
 
/@datadir@/p
17157
 
/@docdir@/p
17158
 
/@infodir@/p
17159
 
/@localedir@/p
17160
 
/@mandir@/p'
17161
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17162
 
*datarootdir*) ac_datarootdir_seen=yes;;
17163
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17164
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17165
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17166
 
_ACEOF
17167
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168
 
  ac_datarootdir_hack='
17169
 
  s&@datadir@&$datadir&g
17170
 
  s&@docdir@&$docdir&g
17171
 
  s&@infodir@&$infodir&g
17172
 
  s&@localedir@&$localedir&g
17173
 
  s&@mandir@&$mandir&g
17174
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
17175
 
esac
17176
 
_ACEOF
17177
 
 
17178
 
# Neutralize VPATH when `$srcdir' = `.'.
17179
 
# Shell code in configure.ac might set extrasub.
17180
 
# FIXME: do we really want to maintain this feature?
17181
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182
 
ac_sed_extra="$ac_vpsub
17183
 
$extrasub
17184
 
_ACEOF
17185
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17186
 
:t
17187
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17188
 
s|@configure_input@|$ac_sed_conf_input|;t t
17189
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
17190
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17191
 
s&@srcdir@&$ac_srcdir&;t t
17192
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17193
 
s&@top_srcdir@&$ac_top_srcdir&;t t
17194
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17195
 
s&@builddir@&$ac_builddir&;t t
17196
 
s&@abs_builddir@&$ac_abs_builddir&;t t
17197
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17198
 
s&@INSTALL@&$ac_INSTALL&;t t
17199
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17200
 
$ac_datarootdir_hack
17201
 
"
17202
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17203
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17204
 
 
17205
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17206
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17207
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17208
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17209
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17210
 
which seems to be undefined.  Please make sure it is defined" >&5
17211
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17212
 
which seems to be undefined.  Please make sure it is defined" >&2;}
17213
 
 
17214
 
  rm -f "$ac_tmp/stdin"
17215
 
  case $ac_file in
17216
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17217
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17218
 
  esac \
17219
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17220
 
 ;;
17221
 
  :H)
17222
 
  #
17223
 
  # CONFIG_HEADER
17224
 
  #
17225
 
  if test x"$ac_file" != x-; then
17226
 
    {
17227
 
      $as_echo "/* $configure_input  */" \
17228
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17229
 
    } >"$ac_tmp/config.h" \
17230
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17231
 
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17232
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17233
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17234
 
    else
17235
 
      rm -f "$ac_file"
17236
 
      mv "$ac_tmp/config.h" "$ac_file" \
17237
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17238
 
    fi
17239
 
  else
17240
 
    $as_echo "/* $configure_input  */" \
17241
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17242
 
      || as_fn_error $? "could not create -" "$LINENO" 5
17243
 
  fi
17244
 
# Compute "$ac_file"'s index in $config_headers.
17245
 
_am_arg="$ac_file"
17246
 
_am_stamp_count=1
17247
 
for _am_header in $config_headers :; do
17248
 
  case $_am_header in
17249
 
    $_am_arg | $_am_arg:* )
17250
 
      break ;;
17251
 
    * )
17252
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17253
 
  esac
17254
 
done
17255
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17256
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
17258
 
         X"$_am_arg" : 'X\(//\)$' \| \
17259
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17260
 
$as_echo X"$_am_arg" |
17261
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17262
 
            s//\1/
17263
 
            q
17264
 
          }
17265
 
          /^X\(\/\/\)[^/].*/{
17266
 
            s//\1/
17267
 
            q
17268
 
          }
17269
 
          /^X\(\/\/\)$/{
17270
 
            s//\1/
17271
 
            q
17272
 
          }
17273
 
          /^X\(\/\).*/{
17274
 
            s//\1/
17275
 
            q
17276
 
          }
17277
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
17278
 
 ;;
17279
 
 
17280
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17281
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
17282
 
 ;;
17283
 
  esac
17284
 
 
17285
 
 
17286
 
  case $ac_file$ac_mode in
17287
 
    "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
17288
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17289
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17290
 
  # are listed without --file.  Let's play safe and only enable the eval
17291
 
  # if we detect the quoting.
17292
 
  case $CONFIG_FILES in
17293
 
  *\'*) eval set x "$CONFIG_FILES" ;;
17294
 
  *)   set x $CONFIG_FILES ;;
17295
 
  esac
17296
 
  shift
17297
 
  for mf
17298
 
  do
17299
 
    # Strip MF so we end up with the name of the file.
17300
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
17301
 
    # Check whether this is an Automake generated Makefile or not.
17302
 
    # We used to match only the files named `Makefile.in', but
17303
 
    # some people rename them; so instead we look at the file content.
17304
 
    # Grep'ing the first line is not enough: some people post-process
17305
 
    # each Makefile.in and add a new line on top of each file to say so.
17306
 
    # Grep'ing the whole file is not good either: AIX grep has a line
17307
 
    # limit of 2048, but all sed's we know have understand at least 4000.
17308
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17309
 
      dirpart=`$as_dirname -- "$mf" ||
17310
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17311
 
         X"$mf" : 'X\(//\)[^/]' \| \
17312
 
         X"$mf" : 'X\(//\)$' \| \
17313
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17314
 
$as_echo X"$mf" |
17315
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17316
 
            s//\1/
17317
 
            q
17318
 
          }
17319
 
          /^X\(\/\/\)[^/].*/{
17320
 
            s//\1/
17321
 
            q
17322
 
          }
17323
 
          /^X\(\/\/\)$/{
17324
 
            s//\1/
17325
 
            q
17326
 
          }
17327
 
          /^X\(\/\).*/{
17328
 
            s//\1/
17329
 
            q
17330
 
          }
17331
 
          s/.*/./; q'`
17332
 
    else
17333
 
      continue
17334
 
    fi
17335
 
    # Extract the definition of DEPDIR, am__include, and am__quote
17336
 
    # from the Makefile without running `make'.
17337
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17338
 
    test -z "$DEPDIR" && continue
17339
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17340
 
    test -z "am__include" && continue
17341
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17342
 
    # When using ansi2knr, U may be empty or an underscore; expand it
17343
 
    U=`sed -n 's/^U = //p' < "$mf"`
17344
 
    # Find all dependency output files, they are included files with
17345
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17346
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
17347
 
    # expansion.
17348
 
    for file in `sed -n "
17349
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17350
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17351
 
      # Make sure the directory exists.
17352
 
      test -f "$dirpart/$file" && continue
17353
 
      fdir=`$as_dirname -- "$file" ||
17354
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17355
 
         X"$file" : 'X\(//\)[^/]' \| \
17356
 
         X"$file" : 'X\(//\)$' \| \
17357
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17358
 
$as_echo X"$file" |
17359
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17360
 
            s//\1/
17361
 
            q
17362
 
          }
17363
 
          /^X\(\/\/\)[^/].*/{
17364
 
            s//\1/
17365
 
            q
17366
 
          }
17367
 
          /^X\(\/\/\)$/{
17368
 
            s//\1/
17369
 
            q
17370
 
          }
17371
 
          /^X\(\/\).*/{
17372
 
            s//\1/
17373
 
            q
17374
 
          }
17375
 
          s/.*/./; q'`
17376
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17377
 
      # echo "creating $dirpart/$file"
17378
 
      echo '# dummy' > "$dirpart/$file"
17379
 
    done
17380
 
  done
17381
 
}
17382
 
 ;;
17383
 
    "libtool":C)
17384
 
 
17385
 
    # See if we are running on zsh, and set the options which allow our
17386
 
    # commands through without removal of \ escapes.
17387
 
    if test -n "${ZSH_VERSION+set}" ; then
17388
 
      setopt NO_GLOB_SUBST
17389
 
    fi
17390
 
 
17391
 
    cfgfile="${ofile}T"
17392
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17393
 
    $RM "$cfgfile"
17394
 
 
17395
 
    cat <<_LT_EOF >> "$cfgfile"
17396
 
#! $SHELL
17397
 
 
17398
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17399
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17400
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17401
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17402
 
#
17403
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17404
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17405
 
#                 Foundation, Inc.
17406
 
#   Written by Gordon Matzigkeit, 1996
17407
 
#
17408
 
#   This file is part of GNU Libtool.
17409
 
#
17410
 
# GNU Libtool is free software; you can redistribute it and/or
17411
 
# modify it under the terms of the GNU General Public License as
17412
 
# published by the Free Software Foundation; either version 2 of
17413
 
# the License, or (at your option) any later version.
17414
 
#
17415
 
# As a special exception to the GNU General Public License,
17416
 
# if you distribute this file as part of a program or library that
17417
 
# is built using GNU Libtool, you may include this file under the
17418
 
# same distribution terms that you use for the rest of that program.
17419
 
#
17420
 
# GNU Libtool is distributed in the hope that it will be useful,
17421
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17422
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17423
 
# GNU General Public License for more details.
17424
 
#
17425
 
# You should have received a copy of the GNU General Public License
17426
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
17427
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17428
 
# obtained by writing to the Free Software Foundation, Inc.,
17429
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17430
 
 
17431
 
 
17432
 
# The names of the tagged configurations supported by this script.
17433
 
available_tags="CXX "
17434
 
 
17435
 
# ### BEGIN LIBTOOL CONFIG
17436
 
 
17437
 
# Which release of libtool.m4 was used?
17438
 
macro_version=$macro_version
17439
 
macro_revision=$macro_revision
17440
 
 
17441
 
# Whether or not to build shared libraries.
17442
 
build_libtool_libs=$enable_shared
17443
 
 
17444
 
# Whether or not to build static libraries.
17445
 
build_old_libs=$enable_static
17446
 
 
17447
 
# What type of objects to build.
17448
 
pic_mode=$pic_mode
17449
 
 
17450
 
# Whether or not to optimize for fast installation.
17451
 
fast_install=$enable_fast_install
17452
 
 
17453
 
# Shell to use when invoking shell scripts.
17454
 
SHELL=$lt_SHELL
17455
 
 
17456
 
# An echo program that protects backslashes.
17457
 
ECHO=$lt_ECHO
17458
 
 
17459
 
# The PATH separator for the build system.
17460
 
PATH_SEPARATOR=$lt_PATH_SEPARATOR
17461
 
 
17462
 
# The host system.
17463
 
host_alias=$host_alias
17464
 
host=$host
17465
 
host_os=$host_os
17466
 
 
17467
 
# The build system.
17468
 
build_alias=$build_alias
17469
 
build=$build
17470
 
build_os=$build_os
17471
 
 
17472
 
# A sed program that does not truncate output.
17473
 
SED=$lt_SED
17474
 
 
17475
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17476
 
Xsed="\$SED -e 1s/^X//"
17477
 
 
17478
 
# A grep program that handles long lines.
17479
 
GREP=$lt_GREP
17480
 
 
17481
 
# An ERE matcher.
17482
 
EGREP=$lt_EGREP
17483
 
 
17484
 
# A literal string matcher.
17485
 
FGREP=$lt_FGREP
17486
 
 
17487
 
# A BSD- or MS-compatible name lister.
17488
 
NM=$lt_NM
17489
 
 
17490
 
# Whether we need soft or hard links.
17491
 
LN_S=$lt_LN_S
17492
 
 
17493
 
# What is the maximum length of a command?
17494
 
max_cmd_len=$max_cmd_len
17495
 
 
17496
 
# Object file suffix (normally "o").
17497
 
objext=$ac_objext
17498
 
 
17499
 
# Executable file suffix (normally "").
17500
 
exeext=$exeext
17501
 
 
17502
 
# whether the shell understands "unset".
17503
 
lt_unset=$lt_unset
17504
 
 
17505
 
# turn spaces into newlines.
17506
 
SP2NL=$lt_lt_SP2NL
17507
 
 
17508
 
# turn newlines into spaces.
17509
 
NL2SP=$lt_lt_NL2SP
17510
 
 
17511
 
# convert \$build file names to \$host format.
17512
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
17513
 
 
17514
 
# convert \$build files to toolchain format.
17515
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17516
 
 
17517
 
# An object symbol dumper.
17518
 
OBJDUMP=$lt_OBJDUMP
17519
 
 
17520
 
# Method to check whether dependent libraries are shared objects.
17521
 
deplibs_check_method=$lt_deplibs_check_method
17522
 
 
17523
 
# Command to use when deplibs_check_method = "file_magic".
17524
 
file_magic_cmd=$lt_file_magic_cmd
17525
 
 
17526
 
# How to find potential files when deplibs_check_method = "file_magic".
17527
 
file_magic_glob=$lt_file_magic_glob
17528
 
 
17529
 
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17530
 
want_nocaseglob=$lt_want_nocaseglob
17531
 
 
17532
 
# DLL creation program.
17533
 
DLLTOOL=$lt_DLLTOOL
17534
 
 
17535
 
# Command to associate shared and link libraries.
17536
 
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17537
 
 
17538
 
# The archiver.
17539
 
AR=$lt_AR
17540
 
 
17541
 
# Flags to create an archive.
17542
 
AR_FLAGS=$lt_AR_FLAGS
17543
 
 
17544
 
# How to feed a file listing to the archiver.
17545
 
archiver_list_spec=$lt_archiver_list_spec
17546
 
 
17547
 
# A symbol stripping program.
17548
 
STRIP=$lt_STRIP
17549
 
 
17550
 
# Commands used to install an old-style archive.
17551
 
RANLIB=$lt_RANLIB
17552
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17553
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17554
 
 
17555
 
# Whether to use a lock for old archive extraction.
17556
 
lock_old_archive_extraction=$lock_old_archive_extraction
17557
 
 
17558
 
# A C compiler.
17559
 
LTCC=$lt_CC
17560
 
 
17561
 
# LTCC compiler flags.
17562
 
LTCFLAGS=$lt_CFLAGS
17563
 
 
17564
 
# Take the output of nm and produce a listing of raw symbols and C names.
17565
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17566
 
 
17567
 
# Transform the output of nm in a proper C declaration.
17568
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17569
 
 
17570
 
# Transform the output of nm in a C name address pair.
17571
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17572
 
 
17573
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
17574
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17575
 
 
17576
 
# Specify filename containing input files for \$NM.
17577
 
nm_file_list_spec=$lt_nm_file_list_spec
17578
 
 
17579
 
# The root where to search for dependent libraries,and in which our libraries should be installed.
17580
 
lt_sysroot=$lt_sysroot
17581
 
 
17582
 
# The name of the directory that contains temporary libtool files.
17583
 
objdir=$objdir
17584
 
 
17585
 
# Used to examine libraries when file_magic_cmd begins with "file".
17586
 
MAGIC_CMD=$MAGIC_CMD
17587
 
 
17588
 
# Must we lock files when doing compilation?
17589
 
need_locks=$lt_need_locks
17590
 
 
17591
 
# Manifest tool.
17592
 
MANIFEST_TOOL=$lt_MANIFEST_TOOL
17593
 
 
17594
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17595
 
DSYMUTIL=$lt_DSYMUTIL
17596
 
 
17597
 
# Tool to change global to local symbols on Mac OS X.
17598
 
NMEDIT=$lt_NMEDIT
17599
 
 
17600
 
# Tool to manipulate fat objects and archives on Mac OS X.
17601
 
LIPO=$lt_LIPO
17602
 
 
17603
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17604
 
OTOOL=$lt_OTOOL
17605
 
 
17606
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17607
 
OTOOL64=$lt_OTOOL64
17608
 
 
17609
 
# Old archive suffix (normally "a").
17610
 
libext=$libext
17611
 
 
17612
 
# Shared library suffix (normally ".so").
17613
 
shrext_cmds=$lt_shrext_cmds
17614
 
 
17615
 
# The commands to extract the exported symbol list from a shared archive.
17616
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17617
 
 
17618
 
# Variables whose values should be saved in libtool wrapper scripts and
17619
 
# restored at link time.
17620
 
variables_saved_for_relink=$lt_variables_saved_for_relink
17621
 
 
17622
 
# Do we need the "lib" prefix for modules?
17623
 
need_lib_prefix=$need_lib_prefix
17624
 
 
17625
 
# Do we need a version for libraries?
17626
 
need_version=$need_version
17627
 
 
17628
 
# Library versioning type.
17629
 
version_type=$version_type
17630
 
 
17631
 
# Shared library runtime path variable.
17632
 
runpath_var=$runpath_var
17633
 
 
17634
 
# Shared library path variable.
17635
 
shlibpath_var=$shlibpath_var
17636
 
 
17637
 
# Is shlibpath searched before the hard-coded library search path?
17638
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17639
 
 
17640
 
# Format of library name prefix.
17641
 
libname_spec=$lt_libname_spec
17642
 
 
17643
 
# List of archive names.  First name is the real one, the rest are links.
17644
 
# The last name is the one that the linker finds with -lNAME
17645
 
library_names_spec=$lt_library_names_spec
17646
 
 
17647
 
# The coded name of the library, if different from the real name.
17648
 
soname_spec=$lt_soname_spec
17649
 
 
17650
 
# Permission mode override for installation of shared libraries.
17651
 
install_override_mode=$lt_install_override_mode
17652
 
 
17653
 
# Command to use after installation of a shared archive.
17654
 
postinstall_cmds=$lt_postinstall_cmds
17655
 
 
17656
 
# Command to use after uninstallation of a shared archive.
17657
 
postuninstall_cmds=$lt_postuninstall_cmds
17658
 
 
17659
 
# Commands used to finish a libtool library installation in a directory.
17660
 
finish_cmds=$lt_finish_cmds
17661
 
 
17662
 
# As "finish_cmds", except a single script fragment to be evaled but
17663
 
# not shown.
17664
 
finish_eval=$lt_finish_eval
17665
 
 
17666
 
# Whether we should hardcode library paths into libraries.
17667
 
hardcode_into_libs=$hardcode_into_libs
17668
 
 
17669
 
# Compile-time system search path for libraries.
17670
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17671
 
 
17672
 
# Run-time system search path for libraries.
17673
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17674
 
 
17675
 
# Whether dlopen is supported.
17676
 
dlopen_support=$enable_dlopen
17677
 
 
17678
 
# Whether dlopen of programs is supported.
17679
 
dlopen_self=$enable_dlopen_self
17680
 
 
17681
 
# Whether dlopen of statically linked programs is supported.
17682
 
dlopen_self_static=$enable_dlopen_self_static
17683
 
 
17684
 
# Commands to strip libraries.
17685
 
old_striplib=$lt_old_striplib
17686
 
striplib=$lt_striplib
17687
 
 
17688
 
 
17689
 
# The linker used to build libraries.
17690
 
LD=$lt_LD
17691
 
 
17692
 
# How to create reloadable object files.
17693
 
reload_flag=$lt_reload_flag
17694
 
reload_cmds=$lt_reload_cmds
17695
 
 
17696
 
# Commands used to build an old-style archive.
17697
 
old_archive_cmds=$lt_old_archive_cmds
17698
 
 
17699
 
# A language specific compiler.
17700
 
CC=$lt_compiler
17701
 
 
17702
 
# Is the compiler the GNU compiler?
17703
 
with_gcc=$GCC
17704
 
 
17705
 
# Compiler flag to turn off builtin functions.
17706
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17707
 
 
17708
 
# Additional compiler flags for building library objects.
17709
 
pic_flag=$lt_lt_prog_compiler_pic
17710
 
 
17711
 
# How to pass a linker flag through the compiler.
17712
 
wl=$lt_lt_prog_compiler_wl
17713
 
 
17714
 
# Compiler flag to prevent dynamic linking.
17715
 
link_static_flag=$lt_lt_prog_compiler_static
17716
 
 
17717
 
# Does compiler simultaneously support -c and -o options?
17718
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17719
 
 
17720
 
# Whether or not to add -lc for building shared libraries.
17721
 
build_libtool_need_lc=$archive_cmds_need_lc
17722
 
 
17723
 
# Whether or not to disallow shared libs when runtime libs are static.
17724
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17725
 
 
17726
 
# Compiler flag to allow reflexive dlopens.
17727
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17728
 
 
17729
 
# Compiler flag to generate shared objects directly from archives.
17730
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17731
 
 
17732
 
# Whether the compiler copes with passing no objects directly.
17733
 
compiler_needs_object=$lt_compiler_needs_object
17734
 
 
17735
 
# Create an old-style archive from a shared archive.
17736
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17737
 
 
17738
 
# Create a temporary old-style archive to link instead of a shared archive.
17739
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17740
 
 
17741
 
# Commands used to build a shared archive.
17742
 
archive_cmds=$lt_archive_cmds
17743
 
archive_expsym_cmds=$lt_archive_expsym_cmds
17744
 
 
17745
 
# Commands used to build a loadable module if different from building
17746
 
# a shared archive.
17747
 
module_cmds=$lt_module_cmds
17748
 
module_expsym_cmds=$lt_module_expsym_cmds
17749
 
 
17750
 
# Whether we are building with GNU ld or not.
17751
 
with_gnu_ld=$lt_with_gnu_ld
17752
 
 
17753
 
# Flag that allows shared libraries with undefined symbols to be built.
17754
 
allow_undefined_flag=$lt_allow_undefined_flag
17755
 
 
17756
 
# Flag that enforces no undefined symbols.
17757
 
no_undefined_flag=$lt_no_undefined_flag
17758
 
 
17759
 
# Flag to hardcode \$libdir into a binary during linking.
17760
 
# This must work even if \$libdir does not exist
17761
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17762
 
 
17763
 
# Whether we need a single "-rpath" flag with a separated argument.
17764
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17765
 
 
17766
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767
 
# DIR into the resulting binary.
17768
 
hardcode_direct=$hardcode_direct
17769
 
 
17770
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17771
 
# DIR into the resulting binary and the resulting library dependency is
17772
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17773
 
# library is relocated.
17774
 
hardcode_direct_absolute=$hardcode_direct_absolute
17775
 
 
17776
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17777
 
# into the resulting binary.
17778
 
hardcode_minus_L=$hardcode_minus_L
17779
 
 
17780
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17781
 
# into the resulting binary.
17782
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
17783
 
 
17784
 
# Set to "yes" if building a shared library automatically hardcodes DIR
17785
 
# into the library and all subsequent libraries and executables linked
17786
 
# against it.
17787
 
hardcode_automatic=$hardcode_automatic
17788
 
 
17789
 
# Set to yes if linker adds runtime paths of dependent libraries
17790
 
# to runtime path list.
17791
 
inherit_rpath=$inherit_rpath
17792
 
 
17793
 
# Whether libtool must link a program against all its dependency libraries.
17794
 
link_all_deplibs=$link_all_deplibs
17795
 
 
17796
 
# Set to "yes" if exported symbols are required.
17797
 
always_export_symbols=$always_export_symbols
17798
 
 
17799
 
# The commands to list exported symbols.
17800
 
export_symbols_cmds=$lt_export_symbols_cmds
17801
 
 
17802
 
# Symbols that should not be listed in the preloaded symbols.
17803
 
exclude_expsyms=$lt_exclude_expsyms
17804
 
 
17805
 
# Symbols that must always be exported.
17806
 
include_expsyms=$lt_include_expsyms
17807
 
 
17808
 
# Commands necessary for linking programs (against libraries) with templates.
17809
 
prelink_cmds=$lt_prelink_cmds
17810
 
 
17811
 
# Commands necessary for finishing linking programs.
17812
 
postlink_cmds=$lt_postlink_cmds
17813
 
 
17814
 
# Specify filename containing input files.
17815
 
file_list_spec=$lt_file_list_spec
17816
 
 
17817
 
# How to hardcode a shared library path into an executable.
17818
 
hardcode_action=$hardcode_action
17819
 
 
17820
 
# The directories searched by this compiler when creating a shared library.
17821
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17822
 
 
17823
 
# Dependencies to place before and after the objects being linked to
17824
 
# create a shared library.
17825
 
predep_objects=$lt_predep_objects
17826
 
postdep_objects=$lt_postdep_objects
17827
 
predeps=$lt_predeps
17828
 
postdeps=$lt_postdeps
17829
 
 
17830
 
# The library search path used internally by the compiler when linking
17831
 
# a shared library.
17832
 
compiler_lib_search_path=$lt_compiler_lib_search_path
17833
 
 
17834
 
# ### END LIBTOOL CONFIG
17835
 
 
17836
 
_LT_EOF
17837
 
 
17838
 
  case $host_os in
17839
 
  aix3*)
17840
 
    cat <<\_LT_EOF >> "$cfgfile"
17841
 
# AIX sometimes has problems with the GCC collect2 program.  For some
17842
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
17843
 
# vanish in a puff of smoke.
17844
 
if test "X${COLLECT_NAMES+set}" != Xset; then
17845
 
  COLLECT_NAMES=
17846
 
  export COLLECT_NAMES
17847
 
fi
17848
 
_LT_EOF
17849
 
    ;;
17850
 
  esac
17851
 
 
17852
 
 
17853
 
ltmain="$ac_aux_dir/ltmain.sh"
17854
 
 
17855
 
 
17856
 
  # We use sed instead of cat because bash on DJGPP gets confused if
17857
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17858
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
17859
 
  # is reportedly fixed, but why not run on old versions too?
17860
 
  sed '$q' "$ltmain" >> "$cfgfile" \
17861
 
     || (rm -f "$cfgfile"; exit 1)
17862
 
 
17863
 
  if test x"$xsi_shell" = xyes; then
17864
 
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17865
 
func_dirname ()\
17866
 
{\
17867
 
\    case ${1} in\
17868
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
17869
 
\      *  ) func_dirname_result="${3}" ;;\
17870
 
\    esac\
17871
 
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17872
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17873
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17874
 
test 0 -eq $? || _lt_function_replace_fail=:
17875
 
 
17876
 
 
17877
 
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17878
 
func_basename ()\
17879
 
{\
17880
 
\    func_basename_result="${1##*/}"\
17881
 
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17882
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17883
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17884
 
test 0 -eq $? || _lt_function_replace_fail=:
17885
 
 
17886
 
 
17887
 
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17888
 
func_dirname_and_basename ()\
17889
 
{\
17890
 
\    case ${1} in\
17891
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
17892
 
\      *  ) func_dirname_result="${3}" ;;\
17893
 
\    esac\
17894
 
\    func_basename_result="${1##*/}"\
17895
 
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17896
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17897
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17898
 
test 0 -eq $? || _lt_function_replace_fail=:
17899
 
 
17900
 
 
17901
 
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17902
 
func_stripname ()\
17903
 
{\
17904
 
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17905
 
\    # positional parameters, so assign one to ordinary parameter first.\
17906
 
\    func_stripname_result=${3}\
17907
 
\    func_stripname_result=${func_stripname_result#"${1}"}\
17908
 
\    func_stripname_result=${func_stripname_result%"${2}"}\
17909
 
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17910
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17911
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912
 
test 0 -eq $? || _lt_function_replace_fail=:
17913
 
 
17914
 
 
17915
 
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17916
 
func_split_long_opt ()\
17917
 
{\
17918
 
\    func_split_long_opt_name=${1%%=*}\
17919
 
\    func_split_long_opt_arg=${1#*=}\
17920
 
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17921
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17922
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17923
 
test 0 -eq $? || _lt_function_replace_fail=:
17924
 
 
17925
 
 
17926
 
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17927
 
func_split_short_opt ()\
17928
 
{\
17929
 
\    func_split_short_opt_arg=${1#??}\
17930
 
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17931
 
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17932
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17933
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17934
 
test 0 -eq $? || _lt_function_replace_fail=:
17935
 
 
17936
 
 
17937
 
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17938
 
func_lo2o ()\
17939
 
{\
17940
 
\    case ${1} in\
17941
 
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17942
 
\      *)    func_lo2o_result=${1} ;;\
17943
 
\    esac\
17944
 
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17945
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17946
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17947
 
test 0 -eq $? || _lt_function_replace_fail=:
17948
 
 
17949
 
 
17950
 
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17951
 
func_xform ()\
17952
 
{\
17953
 
    func_xform_result=${1%.*}.lo\
17954
 
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17955
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17956
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957
 
test 0 -eq $? || _lt_function_replace_fail=:
17958
 
 
17959
 
 
17960
 
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17961
 
func_arith ()\
17962
 
{\
17963
 
    func_arith_result=$(( $* ))\
17964
 
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17965
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17966
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17967
 
test 0 -eq $? || _lt_function_replace_fail=:
17968
 
 
17969
 
 
17970
 
  sed -e '/^func_len ()$/,/^} # func_len /c\
17971
 
func_len ()\
17972
 
{\
17973
 
    func_len_result=${#1}\
17974
 
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17975
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17976
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17977
 
test 0 -eq $? || _lt_function_replace_fail=:
17978
 
 
17979
 
fi
17980
 
 
17981
 
if test x"$lt_shell_append" = xyes; then
17982
 
  sed -e '/^func_append ()$/,/^} # func_append /c\
17983
 
func_append ()\
17984
 
{\
17985
 
    eval "${1}+=\\${2}"\
17986
 
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17987
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17988
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989
 
test 0 -eq $? || _lt_function_replace_fail=:
17990
 
 
17991
 
 
17992
 
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17993
 
func_append_quoted ()\
17994
 
{\
17995
 
\    func_quote_for_eval "${2}"\
17996
 
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17997
 
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17998
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
17999
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18000
 
test 0 -eq $? || _lt_function_replace_fail=:
18001
 
 
18002
 
 
18003
 
  # Save a `func_append' function call where possible by direct use of '+='
18004
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18005
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
18006
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18007
 
  test 0 -eq $? || _lt_function_replace_fail=:
18008
 
else
18009
 
  # Save a `func_append' function call even when '+=' is not available
18010
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18011
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
18012
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18013
 
  test 0 -eq $? || _lt_function_replace_fail=:
18014
 
fi
18015
 
 
18016
 
if test x"$_lt_function_replace_fail" = x":"; then
18017
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18018
 
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18019
 
fi
18020
 
 
18021
 
 
18022
 
   mv -f "$cfgfile" "$ofile" ||
18023
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18024
 
  chmod +x "$ofile"
18025
 
 
18026
 
 
18027
 
    cat <<_LT_EOF >> "$ofile"
18028
 
 
18029
 
# ### BEGIN LIBTOOL TAG CONFIG: CXX
18030
 
 
18031
 
# The linker used to build libraries.
18032
 
LD=$lt_LD_CXX
18033
 
 
18034
 
# How to create reloadable object files.
18035
 
reload_flag=$lt_reload_flag_CXX
18036
 
reload_cmds=$lt_reload_cmds_CXX
18037
 
 
18038
 
# Commands used to build an old-style archive.
18039
 
old_archive_cmds=$lt_old_archive_cmds_CXX
18040
 
 
18041
 
# A language specific compiler.
18042
 
CC=$lt_compiler_CXX
18043
 
 
18044
 
# Is the compiler the GNU compiler?
18045
 
with_gcc=$GCC_CXX
18046
 
 
18047
 
# Compiler flag to turn off builtin functions.
18048
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18049
 
 
18050
 
# Additional compiler flags for building library objects.
18051
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
18052
 
 
18053
 
# How to pass a linker flag through the compiler.
18054
 
wl=$lt_lt_prog_compiler_wl_CXX
18055
 
 
18056
 
# Compiler flag to prevent dynamic linking.
18057
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
18058
 
 
18059
 
# Does compiler simultaneously support -c and -o options?
18060
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18061
 
 
18062
 
# Whether or not to add -lc for building shared libraries.
18063
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
18064
 
 
18065
 
# Whether or not to disallow shared libs when runtime libs are static.
18066
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18067
 
 
18068
 
# Compiler flag to allow reflexive dlopens.
18069
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18070
 
 
18071
 
# Compiler flag to generate shared objects directly from archives.
18072
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18073
 
 
18074
 
# Whether the compiler copes with passing no objects directly.
18075
 
compiler_needs_object=$lt_compiler_needs_object_CXX
18076
 
 
18077
 
# Create an old-style archive from a shared archive.
18078
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18079
 
 
18080
 
# Create a temporary old-style archive to link instead of a shared archive.
18081
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18082
 
 
18083
 
# Commands used to build a shared archive.
18084
 
archive_cmds=$lt_archive_cmds_CXX
18085
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18086
 
 
18087
 
# Commands used to build a loadable module if different from building
18088
 
# a shared archive.
18089
 
module_cmds=$lt_module_cmds_CXX
18090
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
18091
 
 
18092
 
# Whether we are building with GNU ld or not.
18093
 
with_gnu_ld=$lt_with_gnu_ld_CXX
18094
 
 
18095
 
# Flag that allows shared libraries with undefined symbols to be built.
18096
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18097
 
 
18098
 
# Flag that enforces no undefined symbols.
18099
 
no_undefined_flag=$lt_no_undefined_flag_CXX
18100
 
 
18101
 
# Flag to hardcode \$libdir into a binary during linking.
18102
 
# This must work even if \$libdir does not exist
18103
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18104
 
 
18105
 
# Whether we need a single "-rpath" flag with a separated argument.
18106
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18107
 
 
18108
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18109
 
# DIR into the resulting binary.
18110
 
hardcode_direct=$hardcode_direct_CXX
18111
 
 
18112
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18113
 
# DIR into the resulting binary and the resulting library dependency is
18114
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18115
 
# library is relocated.
18116
 
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18117
 
 
18118
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18119
 
# into the resulting binary.
18120
 
hardcode_minus_L=$hardcode_minus_L_CXX
18121
 
 
18122
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18123
 
# into the resulting binary.
18124
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18125
 
 
18126
 
# Set to "yes" if building a shared library automatically hardcodes DIR
18127
 
# into the library and all subsequent libraries and executables linked
18128
 
# against it.
18129
 
hardcode_automatic=$hardcode_automatic_CXX
18130
 
 
18131
 
# Set to yes if linker adds runtime paths of dependent libraries
18132
 
# to runtime path list.
18133
 
inherit_rpath=$inherit_rpath_CXX
18134
 
 
18135
 
# Whether libtool must link a program against all its dependency libraries.
18136
 
link_all_deplibs=$link_all_deplibs_CXX
18137
 
 
18138
 
# Set to "yes" if exported symbols are required.
18139
 
always_export_symbols=$always_export_symbols_CXX
18140
 
 
18141
 
# The commands to list exported symbols.
18142
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18143
 
 
18144
 
# Symbols that should not be listed in the preloaded symbols.
18145
 
exclude_expsyms=$lt_exclude_expsyms_CXX
18146
 
 
18147
 
# Symbols that must always be exported.
18148
 
include_expsyms=$lt_include_expsyms_CXX
18149
 
 
18150
 
# Commands necessary for linking programs (against libraries) with templates.
18151
 
prelink_cmds=$lt_prelink_cmds_CXX
18152
 
 
18153
 
# Commands necessary for finishing linking programs.
18154
 
postlink_cmds=$lt_postlink_cmds_CXX
18155
 
 
18156
 
# Specify filename containing input files.
18157
 
file_list_spec=$lt_file_list_spec_CXX
18158
 
 
18159
 
# How to hardcode a shared library path into an executable.
18160
 
hardcode_action=$hardcode_action_CXX
18161
 
 
18162
 
# The directories searched by this compiler when creating a shared library.
18163
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18164
 
 
18165
 
# Dependencies to place before and after the objects being linked to
18166
 
# create a shared library.
18167
 
predep_objects=$lt_predep_objects_CXX
18168
 
postdep_objects=$lt_postdep_objects_CXX
18169
 
predeps=$lt_predeps_CXX
18170
 
postdeps=$lt_postdeps_CXX
18171
 
 
18172
 
# The library search path used internally by the compiler when linking
18173
 
# a shared library.
18174
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18175
 
 
18176
 
# ### END LIBTOOL TAG CONFIG: CXX
18177
 
_LT_EOF
18178
 
 
18179
 
 ;;
18180
 
 
18181
 
  esac
18182
 
done # for ac_tag
18183
 
 
18184
 
 
18185
 
as_fn_exit 0
18186
 
_ACEOF
18187
 
ac_clean_files=$ac_clean_files_save
18188
 
 
18189
 
test $ac_write_fail = 0 ||
18190
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18191
 
 
18192
 
 
18193
 
# configure is writing to config.log, and then calls config.status.
18194
 
# config.status does its own redirection, appending to config.log.
18195
 
# Unfortunately, on DOS this fails, as config.log is still kept open
18196
 
# by configure, so config.status won't be able to write to it; its
18197
 
# output is simply discarded.  So we exec the FD to /dev/null,
18198
 
# effectively closing config.log, so it can be properly (re)opened and
18199
 
# appended to by config.status.  When coming back to configure, we
18200
 
# need to make the FD available again.
18201
 
if test "$no_create" != yes; then
18202
 
  ac_cs_success=:
18203
 
  ac_config_status_args=
18204
 
  test "$silent" = yes &&
18205
 
    ac_config_status_args="$ac_config_status_args --quiet"
18206
 
  exec 5>/dev/null
18207
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18208
 
  exec 5>>config.log
18209
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18210
 
  # would make configure fail if this is the last instruction.
18211
 
  $ac_cs_success || as_fn_exit 1
18212
 
fi
18213
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18214
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18215
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18216
 
fi
18217