~ubuntu-branches/ubuntu/vivid/debtags/vivid-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Enrico Zini
  • Date: 2014-10-26 14:14:06 UTC
  • mfrom: (15.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20141026141406-4iqav6lctycy01jf
Tags: 1.12.3
Remove leftover empty dirs in /etc. Closes: #764235

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.69 for debtags 1.12.2.
 
4
#
 
5
# Report bugs to <enrico@debian.org>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
 
202
 
 
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
207
    PATH=/empty FPATH=/empty; export PATH FPATH
 
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and enrico@debian.org
 
278
$0: about your system, including any error possibly output
 
279
$0: before this message. Then install a modern shell, or
 
280
$0: manually run the script under such a shell if you do
 
281
$0: have one."
 
282
  fi
 
283
  exit 1
 
284
fi
 
285
fi
 
286
fi
 
287
SHELL=${CONFIG_SHELL-/bin/sh}
 
288
export SHELL
 
289
# Unset more variables known to interfere with behavior of common tools.
 
290
CLICOLOR_FORCE= GREP_OPTIONS=
 
291
unset CLICOLOR_FORCE GREP_OPTIONS
 
292
 
 
293
## --------------------- ##
 
294
## M4sh Shell Functions. ##
 
295
## --------------------- ##
 
296
# as_fn_unset VAR
 
297
# ---------------
 
298
# Portably unset VAR.
 
299
as_fn_unset ()
 
300
{
 
301
  { eval $1=; unset $1;}
 
302
}
 
303
as_unset=as_fn_unset
 
304
 
 
305
# as_fn_set_status STATUS
 
306
# -----------------------
 
307
# Set $? to STATUS, without forking.
 
308
as_fn_set_status ()
 
309
{
 
310
  return $1
 
311
} # as_fn_set_status
 
312
 
 
313
# as_fn_exit STATUS
 
314
# -----------------
 
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
316
as_fn_exit ()
 
317
{
 
318
  set +e
 
319
  as_fn_set_status $1
 
320
  exit $1
 
321
} # as_fn_exit
 
322
 
 
323
# as_fn_mkdir_p
 
324
# -------------
 
325
# Create "$as_dir" as a directory, including parents if necessary.
 
326
as_fn_mkdir_p ()
 
327
{
 
328
 
 
329
  case $as_dir in #(
 
330
  -*) as_dir=./$as_dir;;
 
331
  esac
 
332
  test -d "$as_dir" || eval $as_mkdir_p || {
 
333
    as_dirs=
 
334
    while :; do
 
335
      case $as_dir in #(
 
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
337
      *) as_qdir=$as_dir;;
 
338
      esac
 
339
      as_dirs="'$as_qdir' $as_dirs"
 
340
      as_dir=`$as_dirname -- "$as_dir" ||
 
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
343
         X"$as_dir" : 'X\(//\)$' \| \
 
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
345
$as_echo X"$as_dir" |
 
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
347
            s//\1/
 
348
            q
 
349
          }
 
350
          /^X\(\/\/\)[^/].*/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)$/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\).*/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          s/.*/./; q'`
 
363
      test -d "$as_dir" && break
 
364
    done
 
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
367
 
 
368
 
 
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
 
378
# as_fn_append VAR VALUE
 
379
# ----------------------
 
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
381
# advantage of any shell optimizations that allow amortized linear growth over
 
382
# repeated appends, instead of the typical quadratic growth present in naive
 
383
# implementations.
 
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
385
  eval 'as_fn_append ()
 
386
  {
 
387
    eval $1+=\$2
 
388
  }'
 
389
else
 
390
  as_fn_append ()
 
391
  {
 
392
    eval $1=\$$1\$2
 
393
  }
 
394
fi # as_fn_append
 
395
 
 
396
# as_fn_arith ARG...
 
397
# ------------------
 
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
400
# must be portable across $(()) and expr.
 
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
402
  eval 'as_fn_arith ()
 
403
  {
 
404
    as_val=$(( $* ))
 
405
  }'
 
406
else
 
407
  as_fn_arith ()
 
408
  {
 
409
    as_val=`expr "$@" || test $? -eq 1`
 
410
  }
 
411
fi # as_fn_arith
 
412
 
 
413
 
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
415
# ----------------------------------------
 
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
418
# script with STATUS, using 1 if that was 0.
 
419
as_fn_error ()
 
420
{
 
421
  as_status=$1; test $as_status -eq 0 && as_status=1
 
422
  if test "$4"; then
 
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
425
  fi
 
426
  $as_echo "$as_me: error: $2" >&2
 
427
  as_fn_exit $as_status
 
428
} # as_fn_error
 
429
 
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
432
  as_expr=expr
 
433
else
 
434
  as_expr=false
 
435
fi
 
436
 
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
438
  as_basename=basename
 
439
else
 
440
  as_basename=false
 
441
fi
 
442
 
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
444
  as_dirname=dirname
 
445
else
 
446
  as_dirname=false
 
447
fi
 
448
 
 
449
as_me=`$as_basename -- "$0" ||
 
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
451
         X"$0" : 'X\(//\)$' \| \
 
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
453
$as_echo X/"$0" |
 
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
455
            s//\1/
 
456
            q
 
457
          }
 
458
          /^X\/\(\/\/\)$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\).*/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          s/.*/./; q'`
 
467
 
 
468
# Avoid depending upon Character Ranges.
 
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
472
as_cr_digits='0123456789'
 
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
474
 
 
475
 
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
481
  sed -n '
 
482
    p
 
483
    /[$]LINENO/=
 
484
  ' <$as_myself |
 
485
    sed '
 
486
      s/[$]LINENO.*/&-/
 
487
      t lineno
 
488
      b
 
489
      :lineno
 
490
      N
 
491
      :loop
 
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
493
      t loop
 
494
      s/-\n.*//
 
495
    ' >$as_me.lineno &&
 
496
  chmod +x "$as_me.lineno" ||
 
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
 
503
  # Don't try to exec as it changes $[0], causing all sort of problems
 
504
  # (the dirname of $[0] is not the place where we might find the
 
505
  # original and so on.  Autoconf is especially sensitive to this).
 
506
  . "./$as_me.lineno"
 
507
  # Exit status is that of the last command.
 
508
  exit
 
509
}
 
510
 
 
511
ECHO_C= ECHO_N= ECHO_T=
 
512
case `echo -n x` in #(((((
 
513
-n*)
 
514
  case `echo 'xy\c'` in
 
515
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
516
  xy)  ECHO_C='\c';;
 
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
518
       ECHO_T=' ';;
 
519
  esac;;
 
520
*)
 
521
  ECHO_N='-n';;
 
522
esac
 
523
 
 
524
rm -f conf$$ conf$$.exe conf$$.file
 
525
if test -d conf$$.dir; then
 
526
  rm -f conf$$.dir/conf$$.file
 
527
else
 
528
  rm -f conf$$.dir
 
529
  mkdir conf$$.dir 2>/dev/null
 
530
fi
 
531
if (echo >conf$$.file) 2>/dev/null; then
 
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
533
    as_ln_s='ln -s'
 
534
    # ... but there are two gotchas:
 
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
537
    # In both cases, we have to default to `cp -pR'.
 
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
539
      as_ln_s='cp -pR'
 
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
541
    as_ln_s=ln
 
542
  else
 
543
    as_ln_s='cp -pR'
 
544
  fi
 
545
else
 
546
  as_ln_s='cp -pR'
 
547
fi
 
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
549
rmdir conf$$.dir 2>/dev/null
 
550
 
 
551
if mkdir -p . 2>/dev/null; then
 
552
  as_mkdir_p='mkdir -p "$as_dir"'
 
553
else
 
554
  test -d ./-p && rmdir ./-p
 
555
  as_mkdir_p=false
 
556
fi
 
557
 
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
 
560
 
 
561
# Sed expression to map a string onto a valid CPP name.
 
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
# Sed expression to map a string onto a valid variable name.
 
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
566
 
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
 
568
 
 
569
 
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
 
571
exec 6>&1
 
572
 
 
573
# Name of the host.
 
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
575
# so uname gets run too.
 
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
577
 
 
578
#
 
579
# Initializations.
 
580
#
 
581
ac_default_prefix=/usr/local
 
582
ac_clean_files=
 
583
ac_config_libobj_dir=.
 
584
LIBOBJS=
 
585
cross_compiling=no
 
586
subdirs=
 
587
MFLAGS=
 
588
MAKEFLAGS=
 
589
 
 
590
# Identity of this package.
 
591
PACKAGE_NAME='debtags'
 
592
PACKAGE_TARNAME='debtags'
 
593
PACKAGE_VERSION='1.12.2'
 
594
PACKAGE_STRING='debtags 1.12.2'
 
595
PACKAGE_BUGREPORT='enrico@debian.org'
 
596
PACKAGE_URL=''
 
597
 
 
598
ac_unique_file="configure.ac"
 
599
# Factoring default headers for most tests.
 
600
ac_includes_default="\
 
601
#include <stdio.h>
 
602
#ifdef HAVE_SYS_TYPES_H
 
603
# include <sys/types.h>
 
604
#endif
 
605
#ifdef HAVE_SYS_STAT_H
 
606
# include <sys/stat.h>
 
607
#endif
 
608
#ifdef STDC_HEADERS
 
609
# include <stdlib.h>
 
610
# include <stddef.h>
 
611
#else
 
612
# ifdef HAVE_STDLIB_H
 
613
#  include <stdlib.h>
 
614
# endif
 
615
#endif
 
616
#ifdef HAVE_STRING_H
 
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
618
#  include <memory.h>
 
619
# endif
 
620
# include <string.h>
 
621
#endif
 
622
#ifdef HAVE_STRINGS_H
 
623
# include <strings.h>
 
624
#endif
 
625
#ifdef HAVE_INTTYPES_H
 
626
# include <inttypes.h>
 
627
#endif
 
628
#ifdef HAVE_STDINT_H
 
629
# include <stdint.h>
 
630
#endif
 
631
#ifdef HAVE_UNISTD_H
 
632
# include <unistd.h>
 
633
#endif"
 
634
 
 
635
ac_subst_vars='am__EXEEXT_FALSE
 
636
am__EXEEXT_TRUE
 
637
LTLIBOBJS
 
638
LIBOBJS
 
639
APTGET
 
640
bashcompdir
 
641
confdir
 
642
pkgcachedir
 
643
databasedir
 
644
LIBEPT_LIBS
 
645
LIBEPT_CFLAGS
 
646
LIBTAGCOLL_LIBS
 
647
LIBTAGCOLL_CFLAGS
 
648
LIBWIBBLE_LIBS
 
649
LIBWIBBLE_CFLAGS
 
650
PKG_CONFIG_LIBDIR
 
651
PKG_CONFIG_PATH
 
652
PKG_CONFIG
 
653
OTOOL64
 
654
OTOOL
 
655
LIPO
 
656
NMEDIT
 
657
DSYMUTIL
 
658
MANIFEST_TOOL
 
659
RANLIB
 
660
ac_ct_AR
 
661
AR
 
662
DLLTOOL
 
663
OBJDUMP
 
664
LN_S
 
665
NM
 
666
ac_ct_DUMPBIN
 
667
DUMPBIN
 
668
LD
 
669
FGREP
 
670
SED
 
671
host_os
 
672
host_vendor
 
673
host_cpu
 
674
host
 
675
build_os
 
676
build_vendor
 
677
build_cpu
 
678
build
 
679
LIBTOOL
 
680
am__fastdepCC_FALSE
 
681
am__fastdepCC_TRUE
 
682
CCDEPMODE
 
683
ac_ct_CC
 
684
CFLAGS
 
685
CC
 
686
EGREP
 
687
GREP
 
688
CXXCPP
 
689
am__fastdepCXX_FALSE
 
690
am__fastdepCXX_TRUE
 
691
CXXDEPMODE
 
692
am__nodep
 
693
AMDEPBACKSLASH
 
694
AMDEP_FALSE
 
695
AMDEP_TRUE
 
696
am__quote
 
697
am__include
 
698
DEPDIR
 
699
OBJEXT
 
700
EXEEXT
 
701
ac_ct_CXX
 
702
CPPFLAGS
 
703
LDFLAGS
 
704
CXXFLAGS
 
705
CXX
 
706
DO_DOCS_FALSE
 
707
DO_DOCS_TRUE
 
708
AM_BACKSLASH
 
709
AM_DEFAULT_VERBOSITY
 
710
AM_DEFAULT_V
 
711
AM_V
 
712
am__untar
 
713
am__tar
 
714
AMTAR
 
715
am__leading_dot
 
716
SET_MAKE
 
717
AWK
 
718
mkdir_p
 
719
MKDIR_P
 
720
INSTALL_STRIP_PROGRAM
 
721
STRIP
 
722
install_sh
 
723
MAKEINFO
 
724
AUTOHEADER
 
725
AUTOMAKE
 
726
AUTOCONF
 
727
ACLOCAL
 
728
VERSION
 
729
PACKAGE
 
730
CYGPATH_W
 
731
am__isrc
 
732
INSTALL_DATA
 
733
INSTALL_SCRIPT
 
734
INSTALL_PROGRAM
 
735
target_alias
 
736
host_alias
 
737
build_alias
 
738
LIBS
 
739
ECHO_T
 
740
ECHO_N
 
741
ECHO_C
 
742
DEFS
 
743
mandir
 
744
localedir
 
745
libdir
 
746
psdir
 
747
pdfdir
 
748
dvidir
 
749
htmldir
 
750
infodir
 
751
docdir
 
752
oldincludedir
 
753
includedir
 
754
localstatedir
 
755
sharedstatedir
 
756
sysconfdir
 
757
datadir
 
758
datarootdir
 
759
libexecdir
 
760
sbindir
 
761
bindir
 
762
program_transform_name
 
763
prefix
 
764
exec_prefix
 
765
PACKAGE_URL
 
766
PACKAGE_BUGREPORT
 
767
PACKAGE_STRING
 
768
PACKAGE_VERSION
 
769
PACKAGE_TARNAME
 
770
PACKAGE_NAME
 
771
PATH_SEPARATOR
 
772
SHELL'
 
773
ac_subst_files=''
 
774
ac_user_opts='
 
775
enable_option_checking
 
776
enable_silent_rules
 
777
enable_docs
 
778
enable_dependency_tracking
 
779
enable_shared
 
780
enable_static
 
781
with_pic
 
782
enable_fast_install
 
783
with_gnu_ld
 
784
with_sysroot
 
785
enable_libtool_lock
 
786
'
 
787
      ac_precious_vars='build_alias
 
788
host_alias
 
789
target_alias
 
790
CXX
 
791
CXXFLAGS
 
792
LDFLAGS
 
793
LIBS
 
794
CPPFLAGS
 
795
CCC
 
796
CXXCPP
 
797
CC
 
798
CFLAGS
 
799
PKG_CONFIG
 
800
PKG_CONFIG_PATH
 
801
PKG_CONFIG_LIBDIR
 
802
LIBWIBBLE_CFLAGS
 
803
LIBWIBBLE_LIBS
 
804
LIBTAGCOLL_CFLAGS
 
805
LIBTAGCOLL_LIBS
 
806
LIBEPT_CFLAGS
 
807
LIBEPT_LIBS'
 
808
 
 
809
 
 
810
# Initialize some variables set by options.
 
811
ac_init_help=
 
812
ac_init_version=false
 
813
ac_unrecognized_opts=
 
814
ac_unrecognized_sep=
 
815
# The variables have the same names as the options, with
 
816
# dashes changed to underlines.
 
817
cache_file=/dev/null
 
818
exec_prefix=NONE
 
819
no_create=
 
820
no_recursion=
 
821
prefix=NONE
 
822
program_prefix=NONE
 
823
program_suffix=NONE
 
824
program_transform_name=s,x,x,
 
825
silent=
 
826
site=
 
827
srcdir=
 
828
verbose=
 
829
x_includes=NONE
 
830
x_libraries=NONE
 
831
 
 
832
# Installation directory options.
 
833
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
834
# and all the variables that are supposed to be based on exec_prefix
 
835
# by default will actually change.
 
836
# Use braces instead of parens because sh, perl, etc. also accept them.
 
837
# (The list follows the same order as the GNU Coding Standards.)
 
838
bindir='${exec_prefix}/bin'
 
839
sbindir='${exec_prefix}/sbin'
 
840
libexecdir='${exec_prefix}/libexec'
 
841
datarootdir='${prefix}/share'
 
842
datadir='${datarootdir}'
 
843
sysconfdir='${prefix}/etc'
 
844
sharedstatedir='${prefix}/com'
 
845
localstatedir='${prefix}/var'
 
846
includedir='${prefix}/include'
 
847
oldincludedir='/usr/include'
 
848
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
849
infodir='${datarootdir}/info'
 
850
htmldir='${docdir}'
 
851
dvidir='${docdir}'
 
852
pdfdir='${docdir}'
 
853
psdir='${docdir}'
 
854
libdir='${exec_prefix}/lib'
 
855
localedir='${datarootdir}/locale'
 
856
mandir='${datarootdir}/man'
 
857
 
 
858
ac_prev=
 
859
ac_dashdash=
 
860
for ac_option
 
861
do
 
862
  # If the previous option needs an argument, assign it.
 
863
  if test -n "$ac_prev"; then
 
864
    eval $ac_prev=\$ac_option
 
865
    ac_prev=
 
866
    continue
 
867
  fi
 
868
 
 
869
  case $ac_option in
 
870
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
871
  *=)   ac_optarg= ;;
 
872
  *)    ac_optarg=yes ;;
 
873
  esac
 
874
 
 
875
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
876
 
 
877
  case $ac_dashdash$ac_option in
 
878
  --)
 
879
    ac_dashdash=yes ;;
 
880
 
 
881
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
882
    ac_prev=bindir ;;
 
883
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
884
    bindir=$ac_optarg ;;
 
885
 
 
886
  -build | --build | --buil | --bui | --bu)
 
887
    ac_prev=build_alias ;;
 
888
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
889
    build_alias=$ac_optarg ;;
 
890
 
 
891
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
892
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
893
    ac_prev=cache_file ;;
 
894
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
895
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
896
    cache_file=$ac_optarg ;;
 
897
 
 
898
  --config-cache | -C)
 
899
    cache_file=config.cache ;;
 
900
 
 
901
  -datadir | --datadir | --datadi | --datad)
 
902
    ac_prev=datadir ;;
 
903
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
904
    datadir=$ac_optarg ;;
 
905
 
 
906
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
907
  | --dataroo | --dataro | --datar)
 
908
    ac_prev=datarootdir ;;
 
909
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
910
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
911
    datarootdir=$ac_optarg ;;
 
912
 
 
913
  -disable-* | --disable-*)
 
914
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
915
    # Reject names that are not valid shell variable names.
 
916
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
917
      as_fn_error $? "invalid feature name: $ac_useropt"
 
918
    ac_useropt_orig=$ac_useropt
 
919
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
920
    case $ac_user_opts in
 
921
      *"
 
922
"enable_$ac_useropt"
 
923
"*) ;;
 
924
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
925
         ac_unrecognized_sep=', ';;
 
926
    esac
 
927
    eval enable_$ac_useropt=no ;;
 
928
 
 
929
  -docdir | --docdir | --docdi | --doc | --do)
 
930
    ac_prev=docdir ;;
 
931
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
932
    docdir=$ac_optarg ;;
 
933
 
 
934
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
935
    ac_prev=dvidir ;;
 
936
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
937
    dvidir=$ac_optarg ;;
 
938
 
 
939
  -enable-* | --enable-*)
 
940
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
941
    # Reject names that are not valid shell variable names.
 
942
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
943
      as_fn_error $? "invalid feature name: $ac_useropt"
 
944
    ac_useropt_orig=$ac_useropt
 
945
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
946
    case $ac_user_opts in
 
947
      *"
 
948
"enable_$ac_useropt"
 
949
"*) ;;
 
950
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
951
         ac_unrecognized_sep=', ';;
 
952
    esac
 
953
    eval enable_$ac_useropt=\$ac_optarg ;;
 
954
 
 
955
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
956
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
957
  | --exec | --exe | --ex)
 
958
    ac_prev=exec_prefix ;;
 
959
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
960
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
961
  | --exec=* | --exe=* | --ex=*)
 
962
    exec_prefix=$ac_optarg ;;
 
963
 
 
964
  -gas | --gas | --ga | --g)
 
965
    # Obsolete; use --with-gas.
 
966
    with_gas=yes ;;
 
967
 
 
968
  -help | --help | --hel | --he | -h)
 
969
    ac_init_help=long ;;
 
970
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
971
    ac_init_help=recursive ;;
 
972
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
973
    ac_init_help=short ;;
 
974
 
 
975
  -host | --host | --hos | --ho)
 
976
    ac_prev=host_alias ;;
 
977
  -host=* | --host=* | --hos=* | --ho=*)
 
978
    host_alias=$ac_optarg ;;
 
979
 
 
980
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
981
    ac_prev=htmldir ;;
 
982
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
983
  | --ht=*)
 
984
    htmldir=$ac_optarg ;;
 
985
 
 
986
  -includedir | --includedir | --includedi | --included | --include \
 
987
  | --includ | --inclu | --incl | --inc)
 
988
    ac_prev=includedir ;;
 
989
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
990
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
991
    includedir=$ac_optarg ;;
 
992
 
 
993
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
994
    ac_prev=infodir ;;
 
995
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
996
    infodir=$ac_optarg ;;
 
997
 
 
998
  -libdir | --libdir | --libdi | --libd)
 
999
    ac_prev=libdir ;;
 
1000
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1001
    libdir=$ac_optarg ;;
 
1002
 
 
1003
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1004
  | --libexe | --libex | --libe)
 
1005
    ac_prev=libexecdir ;;
 
1006
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1007
  | --libexe=* | --libex=* | --libe=*)
 
1008
    libexecdir=$ac_optarg ;;
 
1009
 
 
1010
  -localedir | --localedir | --localedi | --localed | --locale)
 
1011
    ac_prev=localedir ;;
 
1012
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1013
    localedir=$ac_optarg ;;
 
1014
 
 
1015
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1016
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1017
    ac_prev=localstatedir ;;
 
1018
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1019
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1020
    localstatedir=$ac_optarg ;;
 
1021
 
 
1022
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1023
    ac_prev=mandir ;;
 
1024
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1025
    mandir=$ac_optarg ;;
 
1026
 
 
1027
  -nfp | --nfp | --nf)
 
1028
    # Obsolete; use --without-fp.
 
1029
    with_fp=no ;;
 
1030
 
 
1031
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1032
  | --no-cr | --no-c | -n)
 
1033
    no_create=yes ;;
 
1034
 
 
1035
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1036
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1037
    no_recursion=yes ;;
 
1038
 
 
1039
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1040
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1041
  | --oldin | --oldi | --old | --ol | --o)
 
1042
    ac_prev=oldincludedir ;;
 
1043
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1044
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1045
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1046
    oldincludedir=$ac_optarg ;;
 
1047
 
 
1048
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1049
    ac_prev=prefix ;;
 
1050
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1051
    prefix=$ac_optarg ;;
 
1052
 
 
1053
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1054
  | --program-pre | --program-pr | --program-p)
 
1055
    ac_prev=program_prefix ;;
 
1056
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1057
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1058
    program_prefix=$ac_optarg ;;
 
1059
 
 
1060
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1061
  | --program-suf | --program-su | --program-s)
 
1062
    ac_prev=program_suffix ;;
 
1063
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1064
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1065
    program_suffix=$ac_optarg ;;
 
1066
 
 
1067
  -program-transform-name | --program-transform-name \
 
1068
  | --program-transform-nam | --program-transform-na \
 
1069
  | --program-transform-n | --program-transform- \
 
1070
  | --program-transform | --program-transfor \
 
1071
  | --program-transfo | --program-transf \
 
1072
  | --program-trans | --program-tran \
 
1073
  | --progr-tra | --program-tr | --program-t)
 
1074
    ac_prev=program_transform_name ;;
 
1075
  -program-transform-name=* | --program-transform-name=* \
 
1076
  | --program-transform-nam=* | --program-transform-na=* \
 
1077
  | --program-transform-n=* | --program-transform-=* \
 
1078
  | --program-transform=* | --program-transfor=* \
 
1079
  | --program-transfo=* | --program-transf=* \
 
1080
  | --program-trans=* | --program-tran=* \
 
1081
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1082
    program_transform_name=$ac_optarg ;;
 
1083
 
 
1084
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1085
    ac_prev=pdfdir ;;
 
1086
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1087
    pdfdir=$ac_optarg ;;
 
1088
 
 
1089
  -psdir | --psdir | --psdi | --psd | --ps)
 
1090
    ac_prev=psdir ;;
 
1091
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1092
    psdir=$ac_optarg ;;
 
1093
 
 
1094
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1095
  | -silent | --silent | --silen | --sile | --sil)
 
1096
    silent=yes ;;
 
1097
 
 
1098
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1099
    ac_prev=sbindir ;;
 
1100
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1101
  | --sbi=* | --sb=*)
 
1102
    sbindir=$ac_optarg ;;
 
1103
 
 
1104
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1105
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1106
  | --sharedst | --shareds | --shared | --share | --shar \
 
1107
  | --sha | --sh)
 
1108
    ac_prev=sharedstatedir ;;
 
1109
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1110
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1111
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1112
  | --sha=* | --sh=*)
 
1113
    sharedstatedir=$ac_optarg ;;
 
1114
 
 
1115
  -site | --site | --sit)
 
1116
    ac_prev=site ;;
 
1117
  -site=* | --site=* | --sit=*)
 
1118
    site=$ac_optarg ;;
 
1119
 
 
1120
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1121
    ac_prev=srcdir ;;
 
1122
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1123
    srcdir=$ac_optarg ;;
 
1124
 
 
1125
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1126
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1127
    ac_prev=sysconfdir ;;
 
1128
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1129
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1130
    sysconfdir=$ac_optarg ;;
 
1131
 
 
1132
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1133
    ac_prev=target_alias ;;
 
1134
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1135
    target_alias=$ac_optarg ;;
 
1136
 
 
1137
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1138
    verbose=yes ;;
 
1139
 
 
1140
  -version | --version | --versio | --versi | --vers | -V)
 
1141
    ac_init_version=: ;;
 
1142
 
 
1143
  -with-* | --with-*)
 
1144
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1145
    # Reject names that are not valid shell variable names.
 
1146
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1147
      as_fn_error $? "invalid package name: $ac_useropt"
 
1148
    ac_useropt_orig=$ac_useropt
 
1149
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1150
    case $ac_user_opts in
 
1151
      *"
 
1152
"with_$ac_useropt"
 
1153
"*) ;;
 
1154
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1155
         ac_unrecognized_sep=', ';;
 
1156
    esac
 
1157
    eval with_$ac_useropt=\$ac_optarg ;;
 
1158
 
 
1159
  -without-* | --without-*)
 
1160
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1161
    # Reject names that are not valid shell variable names.
 
1162
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1163
      as_fn_error $? "invalid package name: $ac_useropt"
 
1164
    ac_useropt_orig=$ac_useropt
 
1165
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1166
    case $ac_user_opts in
 
1167
      *"
 
1168
"with_$ac_useropt"
 
1169
"*) ;;
 
1170
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1171
         ac_unrecognized_sep=', ';;
 
1172
    esac
 
1173
    eval with_$ac_useropt=no ;;
 
1174
 
 
1175
  --x)
 
1176
    # Obsolete; use --with-x.
 
1177
    with_x=yes ;;
 
1178
 
 
1179
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1180
  | --x-incl | --x-inc | --x-in | --x-i)
 
1181
    ac_prev=x_includes ;;
 
1182
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1183
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1184
    x_includes=$ac_optarg ;;
 
1185
 
 
1186
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1187
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1188
    ac_prev=x_libraries ;;
 
1189
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1190
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1191
    x_libraries=$ac_optarg ;;
 
1192
 
 
1193
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1194
Try \`$0 --help' for more information"
 
1195
    ;;
 
1196
 
 
1197
  *=*)
 
1198
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1199
    # Reject names that are not valid shell variable names.
 
1200
    case $ac_envvar in #(
 
1201
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1202
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1203
    esac
 
1204
    eval $ac_envvar=\$ac_optarg
 
1205
    export $ac_envvar ;;
 
1206
 
 
1207
  *)
 
1208
    # FIXME: should be removed in autoconf 3.0.
 
1209
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1210
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1211
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1212
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1213
    ;;
 
1214
 
 
1215
  esac
 
1216
done
 
1217
 
 
1218
if test -n "$ac_prev"; then
 
1219
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1220
  as_fn_error $? "missing argument to $ac_option"
 
1221
fi
 
1222
 
 
1223
if test -n "$ac_unrecognized_opts"; then
 
1224
  case $enable_option_checking in
 
1225
    no) ;;
 
1226
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1227
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1228
  esac
 
1229
fi
 
1230
 
 
1231
# Check all directory arguments for consistency.
 
1232
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1233
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1234
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1235
                libdir localedir mandir
 
1236
do
 
1237
  eval ac_val=\$$ac_var
 
1238
  # Remove trailing slashes.
 
1239
  case $ac_val in
 
1240
    */ )
 
1241
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1242
      eval $ac_var=\$ac_val;;
 
1243
  esac
 
1244
  # Be sure to have absolute directory names.
 
1245
  case $ac_val in
 
1246
    [\\/$]* | ?:[\\/]* )  continue;;
 
1247
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1248
  esac
 
1249
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1250
done
 
1251
 
 
1252
# There might be people who depend on the old broken behavior: `$host'
 
1253
# used to hold the argument of --host etc.
 
1254
# FIXME: To remove some day.
 
1255
build=$build_alias
 
1256
host=$host_alias
 
1257
target=$target_alias
 
1258
 
 
1259
# FIXME: To remove some day.
 
1260
if test "x$host_alias" != x; then
 
1261
  if test "x$build_alias" = x; then
 
1262
    cross_compiling=maybe
 
1263
  elif test "x$build_alias" != "x$host_alias"; then
 
1264
    cross_compiling=yes
 
1265
  fi
 
1266
fi
 
1267
 
 
1268
ac_tool_prefix=
 
1269
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1270
 
 
1271
test "$silent" = yes && exec 6>/dev/null
 
1272
 
 
1273
 
 
1274
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1275
ac_ls_di=`ls -di .` &&
 
1276
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1277
  as_fn_error $? "working directory cannot be determined"
 
1278
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1279
  as_fn_error $? "pwd does not report name of working directory"
 
1280
 
 
1281
 
 
1282
# Find the source files, if location was not specified.
 
1283
if test -z "$srcdir"; then
 
1284
  ac_srcdir_defaulted=yes
 
1285
  # Try the directory containing this script, then the parent directory.
 
1286
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1287
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1288
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1289
         X"$as_myself" : 'X\(//\)$' \| \
 
1290
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1291
$as_echo X"$as_myself" |
 
1292
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1293
            s//\1/
 
1294
            q
 
1295
          }
 
1296
          /^X\(\/\/\)[^/].*/{
 
1297
            s//\1/
 
1298
            q
 
1299
          }
 
1300
          /^X\(\/\/\)$/{
 
1301
            s//\1/
 
1302
            q
 
1303
          }
 
1304
          /^X\(\/\).*/{
 
1305
            s//\1/
 
1306
            q
 
1307
          }
 
1308
          s/.*/./; q'`
 
1309
  srcdir=$ac_confdir
 
1310
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1311
    srcdir=..
 
1312
  fi
 
1313
else
 
1314
  ac_srcdir_defaulted=no
 
1315
fi
 
1316
if test ! -r "$srcdir/$ac_unique_file"; then
 
1317
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1318
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1319
fi
 
1320
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1321
ac_abs_confdir=`(
 
1322
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1323
        pwd)`
 
1324
# When building in place, set srcdir=.
 
1325
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1326
  srcdir=.
 
1327
fi
 
1328
# Remove unnecessary trailing slashes from srcdir.
 
1329
# Double slashes in file names in object file debugging info
 
1330
# mess up M-x gdb in Emacs.
 
1331
case $srcdir in
 
1332
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1333
esac
 
1334
for ac_var in $ac_precious_vars; do
 
1335
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1336
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1337
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1338
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1339
done
 
1340
 
 
1341
#
 
1342
# Report the --help message.
 
1343
#
 
1344
if test "$ac_init_help" = "long"; then
 
1345
  # Omit some internal or obsolete options to make the list less imposing.
 
1346
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1347
  cat <<_ACEOF
 
1348
\`configure' configures debtags 1.12.2 to adapt to many kinds of systems.
 
1349
 
 
1350
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1351
 
 
1352
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1353
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1354
 
 
1355
Defaults for the options are specified in brackets.
 
1356
 
 
1357
Configuration:
 
1358
  -h, --help              display this help and exit
 
1359
      --help=short        display options specific to this package
 
1360
      --help=recursive    display the short help of all the included packages
 
1361
  -V, --version           display version information and exit
 
1362
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1363
      --cache-file=FILE   cache test results in FILE [disabled]
 
1364
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1365
  -n, --no-create         do not create output files
 
1366
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1367
 
 
1368
Installation directories:
 
1369
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1370
                          [$ac_default_prefix]
 
1371
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1372
                          [PREFIX]
 
1373
 
 
1374
By default, \`make install' will install all the files in
 
1375
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1376
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1377
for instance \`--prefix=\$HOME'.
 
1378
 
 
1379
For better control, use the options below.
 
1380
 
 
1381
Fine tuning of the installation directories:
 
1382
  --bindir=DIR            user executables [EPREFIX/bin]
 
1383
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1384
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1385
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1386
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1387
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1388
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1389
  --includedir=DIR        C header files [PREFIX/include]
 
1390
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1391
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1392
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1393
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1394
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1395
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1396
  --docdir=DIR            documentation root [DATAROOTDIR/doc/debtags]
 
1397
  --htmldir=DIR           html documentation [DOCDIR]
 
1398
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1399
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1400
  --psdir=DIR             ps documentation [DOCDIR]
 
1401
_ACEOF
 
1402
 
 
1403
  cat <<\_ACEOF
 
1404
 
 
1405
Program names:
 
1406
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1407
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1408
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1409
 
 
1410
System types:
 
1411
  --build=BUILD     configure for building on BUILD [guessed]
 
1412
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1413
_ACEOF
 
1414
fi
 
1415
 
 
1416
if test -n "$ac_init_help"; then
 
1417
  case $ac_init_help in
 
1418
     short | recursive ) echo "Configuration of debtags 1.12.2:";;
 
1419
   esac
 
1420
  cat <<\_ACEOF
 
1421
 
 
1422
Optional Features:
 
1423
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1424
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1425
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1426
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1427
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1428
  --enable-docs    Turn on generation of documentation
 
1429
  --enable-dependency-tracking
 
1430
                          do not reject slow dependency extractors
 
1431
  --disable-dependency-tracking
 
1432
                          speeds up one-time build
 
1433
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1434
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1435
  --enable-fast-install[=PKGS]
 
1436
                          optimize for fast installation [default=yes]
 
1437
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1438
 
 
1439
Optional Packages:
 
1440
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1441
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1442
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1443
                          both]
 
1444
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1445
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1446
                        (or the compiler's sysroot if not specified).
 
1447
 
 
1448
Some influential environment variables:
 
1449
  CXX         C++ compiler command
 
1450
  CXXFLAGS    C++ compiler flags
 
1451
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1452
              nonstandard directory <lib dir>
 
1453
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1454
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1455
              you have headers in a nonstandard directory <include dir>
 
1456
  CXXCPP      C++ preprocessor
 
1457
  CC          C compiler command
 
1458
  CFLAGS      C compiler flags
 
1459
  PKG_CONFIG  path to pkg-config utility
 
1460
  PKG_CONFIG_PATH
 
1461
              directories to add to pkg-config's search path
 
1462
  PKG_CONFIG_LIBDIR
 
1463
              path overriding pkg-config's built-in search path
 
1464
  LIBWIBBLE_CFLAGS
 
1465
              C compiler flags for LIBWIBBLE, overriding pkg-config
 
1466
  LIBWIBBLE_LIBS
 
1467
              linker flags for LIBWIBBLE, overriding pkg-config
 
1468
  LIBTAGCOLL_CFLAGS
 
1469
              C compiler flags for LIBTAGCOLL, overriding pkg-config
 
1470
  LIBTAGCOLL_LIBS
 
1471
              linker flags for LIBTAGCOLL, overriding pkg-config
 
1472
  LIBEPT_CFLAGS
 
1473
              C compiler flags for LIBEPT, overriding pkg-config
 
1474
  LIBEPT_LIBS linker flags for LIBEPT, overriding pkg-config
 
1475
 
 
1476
Use these variables to override the choices made by `configure' or to help
 
1477
it to find libraries and programs with nonstandard names/locations.
 
1478
 
 
1479
Report bugs to <enrico@debian.org>.
 
1480
_ACEOF
 
1481
ac_status=$?
 
1482
fi
 
1483
 
 
1484
if test "$ac_init_help" = "recursive"; then
 
1485
  # If there are subdirs, report their specific --help.
 
1486
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1487
    test -d "$ac_dir" ||
 
1488
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1489
      continue
 
1490
    ac_builddir=.
 
1491
 
 
1492
case "$ac_dir" in
 
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1494
*)
 
1495
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1496
  # A ".." for each directory in $ac_dir_suffix.
 
1497
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1498
  case $ac_top_builddir_sub in
 
1499
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1500
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1501
  esac ;;
 
1502
esac
 
1503
ac_abs_top_builddir=$ac_pwd
 
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1505
# for backward compatibility:
 
1506
ac_top_builddir=$ac_top_build_prefix
 
1507
 
 
1508
case $srcdir in
 
1509
  .)  # We are building in place.
 
1510
    ac_srcdir=.
 
1511
    ac_top_srcdir=$ac_top_builddir_sub
 
1512
    ac_abs_top_srcdir=$ac_pwd ;;
 
1513
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1514
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1515
    ac_top_srcdir=$srcdir
 
1516
    ac_abs_top_srcdir=$srcdir ;;
 
1517
  *) # Relative name.
 
1518
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1519
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1520
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1521
esac
 
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1523
 
 
1524
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1525
    # Check for guested configure.
 
1526
    if test -f "$ac_srcdir/configure.gnu"; then
 
1527
      echo &&
 
1528
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1529
    elif test -f "$ac_srcdir/configure"; then
 
1530
      echo &&
 
1531
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1532
    else
 
1533
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1534
    fi || ac_status=$?
 
1535
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1536
  done
 
1537
fi
 
1538
 
 
1539
test -n "$ac_init_help" && exit $ac_status
 
1540
if $ac_init_version; then
 
1541
  cat <<\_ACEOF
 
1542
debtags configure 1.12.2
 
1543
generated by GNU Autoconf 2.69
 
1544
 
 
1545
Copyright (C) 2012 Free Software Foundation, Inc.
 
1546
This configure script is free software; the Free Software Foundation
 
1547
gives unlimited permission to copy, distribute and modify it.
 
1548
_ACEOF
 
1549
  exit
 
1550
fi
 
1551
 
 
1552
## ------------------------ ##
 
1553
## Autoconf initialization. ##
 
1554
## ------------------------ ##
 
1555
 
 
1556
# ac_fn_cxx_try_compile LINENO
 
1557
# ----------------------------
 
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1559
ac_fn_cxx_try_compile ()
 
1560
{
 
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1562
  rm -f conftest.$ac_objext
 
1563
  if { { ac_try="$ac_compile"
 
1564
case "(($ac_try" in
 
1565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1566
  *) ac_try_echo=$ac_try;;
 
1567
esac
 
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1569
$as_echo "$ac_try_echo"; } >&5
 
1570
  (eval "$ac_compile") 2>conftest.err
 
1571
  ac_status=$?
 
1572
  if test -s conftest.err; then
 
1573
    grep -v '^ *+' conftest.err >conftest.er1
 
1574
    cat conftest.er1 >&5
 
1575
    mv -f conftest.er1 conftest.err
 
1576
  fi
 
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1578
  test $ac_status = 0; } && {
 
1579
         test -z "$ac_cxx_werror_flag" ||
 
1580
         test ! -s conftest.err
 
1581
       } && test -s conftest.$ac_objext; then :
 
1582
  ac_retval=0
 
1583
else
 
1584
  $as_echo "$as_me: failed program was:" >&5
 
1585
sed 's/^/| /' conftest.$ac_ext >&5
 
1586
 
 
1587
        ac_retval=1
 
1588
fi
 
1589
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1590
  as_fn_set_status $ac_retval
 
1591
 
 
1592
} # ac_fn_cxx_try_compile
 
1593
 
 
1594
# ac_fn_cxx_try_cpp LINENO
 
1595
# ------------------------
 
1596
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1597
ac_fn_cxx_try_cpp ()
 
1598
{
 
1599
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1600
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1601
case "(($ac_try" in
 
1602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1603
  *) ac_try_echo=$ac_try;;
 
1604
esac
 
1605
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1606
$as_echo "$ac_try_echo"; } >&5
 
1607
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1608
  ac_status=$?
 
1609
  if test -s conftest.err; then
 
1610
    grep -v '^ *+' conftest.err >conftest.er1
 
1611
    cat conftest.er1 >&5
 
1612
    mv -f conftest.er1 conftest.err
 
1613
  fi
 
1614
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1615
  test $ac_status = 0; } > conftest.i && {
 
1616
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1617
         test ! -s conftest.err
 
1618
       }; then :
 
1619
  ac_retval=0
 
1620
else
 
1621
  $as_echo "$as_me: failed program was:" >&5
 
1622
sed 's/^/| /' conftest.$ac_ext >&5
 
1623
 
 
1624
    ac_retval=1
 
1625
fi
 
1626
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1627
  as_fn_set_status $ac_retval
 
1628
 
 
1629
} # ac_fn_cxx_try_cpp
 
1630
 
 
1631
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1632
# ---------------------------------------------------------
 
1633
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1634
# the include files in INCLUDES and setting the cache variable VAR
 
1635
# accordingly.
 
1636
ac_fn_cxx_check_header_mongrel ()
 
1637
{
 
1638
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1639
  if eval \${$3+:} false; then :
 
1640
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1641
$as_echo_n "checking for $2... " >&6; }
 
1642
if eval \${$3+:} false; then :
 
1643
  $as_echo_n "(cached) " >&6
 
1644
fi
 
1645
eval ac_res=\$$3
 
1646
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1647
$as_echo "$ac_res" >&6; }
 
1648
else
 
1649
  # Is the header compilable?
 
1650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1651
$as_echo_n "checking $2 usability... " >&6; }
 
1652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1653
/* end confdefs.h.  */
 
1654
$4
 
1655
#include <$2>
 
1656
_ACEOF
 
1657
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1658
  ac_header_compiler=yes
 
1659
else
 
1660
  ac_header_compiler=no
 
1661
fi
 
1662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1664
$as_echo "$ac_header_compiler" >&6; }
 
1665
 
 
1666
# Is the header present?
 
1667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1668
$as_echo_n "checking $2 presence... " >&6; }
 
1669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1670
/* end confdefs.h.  */
 
1671
#include <$2>
 
1672
_ACEOF
 
1673
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
1674
  ac_header_preproc=yes
 
1675
else
 
1676
  ac_header_preproc=no
 
1677
fi
 
1678
rm -f conftest.err conftest.i conftest.$ac_ext
 
1679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1680
$as_echo "$ac_header_preproc" >&6; }
 
1681
 
 
1682
# So?  What about this header?
 
1683
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
 
1684
  yes:no: )
 
1685
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1686
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1687
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1688
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1689
    ;;
 
1690
  no:yes:* )
 
1691
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1692
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1693
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1694
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1695
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1696
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1697
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1698
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1699
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1700
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1701
( $as_echo "## -------------------------------- ##
 
1702
## Report this to enrico@debian.org ##
 
1703
## -------------------------------- ##"
 
1704
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1705
    ;;
 
1706
esac
 
1707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1708
$as_echo_n "checking for $2... " >&6; }
 
1709
if eval \${$3+:} false; then :
 
1710
  $as_echo_n "(cached) " >&6
 
1711
else
 
1712
  eval "$3=\$ac_header_compiler"
 
1713
fi
 
1714
eval ac_res=\$$3
 
1715
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1716
$as_echo "$ac_res" >&6; }
 
1717
fi
 
1718
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1719
 
 
1720
} # ac_fn_cxx_check_header_mongrel
 
1721
 
 
1722
# ac_fn_cxx_try_run LINENO
 
1723
# ------------------------
 
1724
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1725
# that executables *can* be run.
 
1726
ac_fn_cxx_try_run ()
 
1727
{
 
1728
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1729
  if { { ac_try="$ac_link"
 
1730
case "(($ac_try" in
 
1731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1732
  *) ac_try_echo=$ac_try;;
 
1733
esac
 
1734
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1735
$as_echo "$ac_try_echo"; } >&5
 
1736
  (eval "$ac_link") 2>&5
 
1737
  ac_status=$?
 
1738
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1739
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1740
  { { case "(($ac_try" in
 
1741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1742
  *) ac_try_echo=$ac_try;;
 
1743
esac
 
1744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1745
$as_echo "$ac_try_echo"; } >&5
 
1746
  (eval "$ac_try") 2>&5
 
1747
  ac_status=$?
 
1748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1749
  test $ac_status = 0; }; }; then :
 
1750
  ac_retval=0
 
1751
else
 
1752
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1753
       $as_echo "$as_me: failed program was:" >&5
 
1754
sed 's/^/| /' conftest.$ac_ext >&5
 
1755
 
 
1756
       ac_retval=$ac_status
 
1757
fi
 
1758
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1759
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1760
  as_fn_set_status $ac_retval
 
1761
 
 
1762
} # ac_fn_cxx_try_run
 
1763
 
 
1764
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
 
1765
# ---------------------------------------------------------
 
1766
# Tests whether HEADER exists and can be compiled using the include files in
 
1767
# INCLUDES, setting the cache variable VAR accordingly.
 
1768
ac_fn_cxx_check_header_compile ()
 
1769
{
 
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1771
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1772
$as_echo_n "checking for $2... " >&6; }
 
1773
if eval \${$3+:} false; then :
 
1774
  $as_echo_n "(cached) " >&6
 
1775
else
 
1776
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1777
/* end confdefs.h.  */
 
1778
$4
 
1779
#include <$2>
 
1780
_ACEOF
 
1781
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1782
  eval "$3=yes"
 
1783
else
 
1784
  eval "$3=no"
 
1785
fi
 
1786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1787
fi
 
1788
eval ac_res=\$$3
 
1789
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1790
$as_echo "$ac_res" >&6; }
 
1791
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1792
 
 
1793
} # ac_fn_cxx_check_header_compile
 
1794
 
 
1795
# ac_fn_c_try_compile LINENO
 
1796
# --------------------------
 
1797
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1798
ac_fn_c_try_compile ()
 
1799
{
 
1800
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1801
  rm -f conftest.$ac_objext
 
1802
  if { { ac_try="$ac_compile"
 
1803
case "(($ac_try" in
 
1804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1805
  *) ac_try_echo=$ac_try;;
 
1806
esac
 
1807
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1808
$as_echo "$ac_try_echo"; } >&5
 
1809
  (eval "$ac_compile") 2>conftest.err
 
1810
  ac_status=$?
 
1811
  if test -s conftest.err; then
 
1812
    grep -v '^ *+' conftest.err >conftest.er1
 
1813
    cat conftest.er1 >&5
 
1814
    mv -f conftest.er1 conftest.err
 
1815
  fi
 
1816
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1817
  test $ac_status = 0; } && {
 
1818
         test -z "$ac_c_werror_flag" ||
 
1819
         test ! -s conftest.err
 
1820
       } && test -s conftest.$ac_objext; then :
 
1821
  ac_retval=0
 
1822
else
 
1823
  $as_echo "$as_me: failed program was:" >&5
 
1824
sed 's/^/| /' conftest.$ac_ext >&5
 
1825
 
 
1826
        ac_retval=1
 
1827
fi
 
1828
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1829
  as_fn_set_status $ac_retval
 
1830
 
 
1831
} # ac_fn_c_try_compile
 
1832
 
 
1833
# ac_fn_c_try_link LINENO
 
1834
# -----------------------
 
1835
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1836
ac_fn_c_try_link ()
 
1837
{
 
1838
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1839
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1840
  if { { ac_try="$ac_link"
 
1841
case "(($ac_try" in
 
1842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1843
  *) ac_try_echo=$ac_try;;
 
1844
esac
 
1845
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1846
$as_echo "$ac_try_echo"; } >&5
 
1847
  (eval "$ac_link") 2>conftest.err
 
1848
  ac_status=$?
 
1849
  if test -s conftest.err; then
 
1850
    grep -v '^ *+' conftest.err >conftest.er1
 
1851
    cat conftest.er1 >&5
 
1852
    mv -f conftest.er1 conftest.err
 
1853
  fi
 
1854
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1855
  test $ac_status = 0; } && {
 
1856
         test -z "$ac_c_werror_flag" ||
 
1857
         test ! -s conftest.err
 
1858
       } && test -s conftest$ac_exeext && {
 
1859
         test "$cross_compiling" = yes ||
 
1860
         test -x conftest$ac_exeext
 
1861
       }; then :
 
1862
  ac_retval=0
 
1863
else
 
1864
  $as_echo "$as_me: failed program was:" >&5
 
1865
sed 's/^/| /' conftest.$ac_ext >&5
 
1866
 
 
1867
        ac_retval=1
 
1868
fi
 
1869
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1870
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1871
  # interfere with the next link command; also delete a directory that is
 
1872
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1873
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1874
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1875
  as_fn_set_status $ac_retval
 
1876
 
 
1877
} # ac_fn_c_try_link
 
1878
 
 
1879
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1880
# -------------------------------------------------------
 
1881
# Tests whether HEADER exists and can be compiled using the include files in
 
1882
# INCLUDES, setting the cache variable VAR accordingly.
 
1883
ac_fn_c_check_header_compile ()
 
1884
{
 
1885
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1886
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1887
$as_echo_n "checking for $2... " >&6; }
 
1888
if eval \${$3+:} false; then :
 
1889
  $as_echo_n "(cached) " >&6
 
1890
else
 
1891
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1892
/* end confdefs.h.  */
 
1893
$4
 
1894
#include <$2>
 
1895
_ACEOF
 
1896
if ac_fn_c_try_compile "$LINENO"; then :
 
1897
  eval "$3=yes"
 
1898
else
 
1899
  eval "$3=no"
 
1900
fi
 
1901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1902
fi
 
1903
eval ac_res=\$$3
 
1904
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1905
$as_echo "$ac_res" >&6; }
 
1906
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1907
 
 
1908
} # ac_fn_c_check_header_compile
 
1909
 
 
1910
# ac_fn_c_check_func LINENO FUNC VAR
 
1911
# ----------------------------------
 
1912
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1913
ac_fn_c_check_func ()
 
1914
{
 
1915
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1916
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1917
$as_echo_n "checking for $2... " >&6; }
 
1918
if eval \${$3+:} false; then :
 
1919
  $as_echo_n "(cached) " >&6
 
1920
else
 
1921
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1922
/* end confdefs.h.  */
 
1923
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1924
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1925
#define $2 innocuous_$2
 
1926
 
 
1927
/* System header to define __stub macros and hopefully few prototypes,
 
1928
    which can conflict with char $2 (); below.
 
1929
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1930
    <limits.h> exists even on freestanding compilers.  */
 
1931
 
 
1932
#ifdef __STDC__
 
1933
# include <limits.h>
 
1934
#else
 
1935
# include <assert.h>
 
1936
#endif
 
1937
 
 
1938
#undef $2
 
1939
 
 
1940
/* Override any GCC internal prototype to avoid an error.
 
1941
   Use char because int might match the return type of a GCC
 
1942
   builtin and then its argument prototype would still apply.  */
 
1943
#ifdef __cplusplus
 
1944
extern "C"
 
1945
#endif
 
1946
char $2 ();
 
1947
/* The GNU C library defines this for functions which it implements
 
1948
    to always fail with ENOSYS.  Some functions are actually named
 
1949
    something starting with __ and the normal name is an alias.  */
 
1950
#if defined __stub_$2 || defined __stub___$2
 
1951
choke me
 
1952
#endif
 
1953
 
 
1954
int
 
1955
main ()
 
1956
{
 
1957
return $2 ();
 
1958
  ;
 
1959
  return 0;
 
1960
}
 
1961
_ACEOF
 
1962
if ac_fn_c_try_link "$LINENO"; then :
 
1963
  eval "$3=yes"
 
1964
else
 
1965
  eval "$3=no"
 
1966
fi
 
1967
rm -f core conftest.err conftest.$ac_objext \
 
1968
    conftest$ac_exeext conftest.$ac_ext
 
1969
fi
 
1970
eval ac_res=\$$3
 
1971
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1972
$as_echo "$ac_res" >&6; }
 
1973
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1974
 
 
1975
} # ac_fn_c_check_func
 
1976
 
 
1977
# ac_fn_cxx_try_link LINENO
 
1978
# -------------------------
 
1979
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1980
ac_fn_cxx_try_link ()
 
1981
{
 
1982
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1983
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1984
  if { { ac_try="$ac_link"
 
1985
case "(($ac_try" in
 
1986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1987
  *) ac_try_echo=$ac_try;;
 
1988
esac
 
1989
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1990
$as_echo "$ac_try_echo"; } >&5
 
1991
  (eval "$ac_link") 2>conftest.err
 
1992
  ac_status=$?
 
1993
  if test -s conftest.err; then
 
1994
    grep -v '^ *+' conftest.err >conftest.er1
 
1995
    cat conftest.er1 >&5
 
1996
    mv -f conftest.er1 conftest.err
 
1997
  fi
 
1998
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1999
  test $ac_status = 0; } && {
 
2000
         test -z "$ac_cxx_werror_flag" ||
 
2001
         test ! -s conftest.err
 
2002
       } && test -s conftest$ac_exeext && {
 
2003
         test "$cross_compiling" = yes ||
 
2004
         test -x conftest$ac_exeext
 
2005
       }; then :
 
2006
  ac_retval=0
 
2007
else
 
2008
  $as_echo "$as_me: failed program was:" >&5
 
2009
sed 's/^/| /' conftest.$ac_ext >&5
 
2010
 
 
2011
        ac_retval=1
 
2012
fi
 
2013
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2014
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2015
  # interfere with the next link command; also delete a directory that is
 
2016
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2017
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2018
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2019
  as_fn_set_status $ac_retval
 
2020
 
 
2021
} # ac_fn_cxx_try_link
 
2022
cat >config.log <<_ACEOF
 
2023
This file contains any messages produced by compilers while
 
2024
running configure, to aid debugging if configure makes a mistake.
 
2025
 
 
2026
It was created by debtags $as_me 1.12.2, which was
 
2027
generated by GNU Autoconf 2.69.  Invocation command line was
 
2028
 
 
2029
  $ $0 $@
 
2030
 
 
2031
_ACEOF
 
2032
exec 5>>config.log
 
2033
{
 
2034
cat <<_ASUNAME
 
2035
## --------- ##
 
2036
## Platform. ##
 
2037
## --------- ##
 
2038
 
 
2039
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2040
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2041
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2042
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2043
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2044
 
 
2045
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2046
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2047
 
 
2048
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2049
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2050
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2051
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2052
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2053
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2054
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2055
 
 
2056
_ASUNAME
 
2057
 
 
2058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2059
for as_dir in $PATH
 
2060
do
 
2061
  IFS=$as_save_IFS
 
2062
  test -z "$as_dir" && as_dir=.
 
2063
    $as_echo "PATH: $as_dir"
 
2064
  done
 
2065
IFS=$as_save_IFS
 
2066
 
 
2067
} >&5
 
2068
 
 
2069
cat >&5 <<_ACEOF
 
2070
 
 
2071
 
 
2072
## ----------- ##
 
2073
## Core tests. ##
 
2074
## ----------- ##
 
2075
 
 
2076
_ACEOF
 
2077
 
 
2078
 
 
2079
# Keep a trace of the command line.
 
2080
# Strip out --no-create and --no-recursion so they do not pile up.
 
2081
# Strip out --silent because we don't want to record it for future runs.
 
2082
# Also quote any args containing shell meta-characters.
 
2083
# Make two passes to allow for proper duplicate-argument suppression.
 
2084
ac_configure_args=
 
2085
ac_configure_args0=
 
2086
ac_configure_args1=
 
2087
ac_must_keep_next=false
 
2088
for ac_pass in 1 2
 
2089
do
 
2090
  for ac_arg
 
2091
  do
 
2092
    case $ac_arg in
 
2093
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2094
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2095
    | -silent | --silent | --silen | --sile | --sil)
 
2096
      continue ;;
 
2097
    *\'*)
 
2098
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2099
    esac
 
2100
    case $ac_pass in
 
2101
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2102
    2)
 
2103
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2104
      if test $ac_must_keep_next = true; then
 
2105
        ac_must_keep_next=false # Got value, back to normal.
 
2106
      else
 
2107
        case $ac_arg in
 
2108
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2109
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2110
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2111
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2112
            case "$ac_configure_args0 " in
 
2113
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2114
            esac
 
2115
            ;;
 
2116
          -* ) ac_must_keep_next=true ;;
 
2117
        esac
 
2118
      fi
 
2119
      as_fn_append ac_configure_args " '$ac_arg'"
 
2120
      ;;
 
2121
    esac
 
2122
  done
 
2123
done
 
2124
{ ac_configure_args0=; unset ac_configure_args0;}
 
2125
{ ac_configure_args1=; unset ac_configure_args1;}
 
2126
 
 
2127
# When interrupted or exit'd, cleanup temporary files, and complete
 
2128
# config.log.  We remove comments because anyway the quotes in there
 
2129
# would cause problems or look ugly.
 
2130
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2131
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2132
trap 'exit_status=$?
 
2133
  # Save into config.log some information that might help in debugging.
 
2134
  {
 
2135
    echo
 
2136
 
 
2137
    $as_echo "## ---------------- ##
 
2138
## Cache variables. ##
 
2139
## ---------------- ##"
 
2140
    echo
 
2141
    # The following way of writing the cache mishandles newlines in values,
 
2142
(
 
2143
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2144
    eval ac_val=\$$ac_var
 
2145
    case $ac_val in #(
 
2146
    *${as_nl}*)
 
2147
      case $ac_var in #(
 
2148
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2149
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2150
      esac
 
2151
      case $ac_var in #(
 
2152
      _ | IFS | as_nl) ;; #(
 
2153
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2154
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2155
      esac ;;
 
2156
    esac
 
2157
  done
 
2158
  (set) 2>&1 |
 
2159
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2160
    *${as_nl}ac_space=\ *)
 
2161
      sed -n \
 
2162
        "s/'\''/'\''\\\\'\'''\''/g;
 
2163
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2164
      ;; #(
 
2165
    *)
 
2166
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2167
      ;;
 
2168
    esac |
 
2169
    sort
 
2170
)
 
2171
    echo
 
2172
 
 
2173
    $as_echo "## ----------------- ##
 
2174
## Output variables. ##
 
2175
## ----------------- ##"
 
2176
    echo
 
2177
    for ac_var in $ac_subst_vars
 
2178
    do
 
2179
      eval ac_val=\$$ac_var
 
2180
      case $ac_val in
 
2181
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2182
      esac
 
2183
      $as_echo "$ac_var='\''$ac_val'\''"
 
2184
    done | sort
 
2185
    echo
 
2186
 
 
2187
    if test -n "$ac_subst_files"; then
 
2188
      $as_echo "## ------------------- ##
 
2189
## File substitutions. ##
 
2190
## ------------------- ##"
 
2191
      echo
 
2192
      for ac_var in $ac_subst_files
 
2193
      do
 
2194
        eval ac_val=\$$ac_var
 
2195
        case $ac_val in
 
2196
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2197
        esac
 
2198
        $as_echo "$ac_var='\''$ac_val'\''"
 
2199
      done | sort
 
2200
      echo
 
2201
    fi
 
2202
 
 
2203
    if test -s confdefs.h; then
 
2204
      $as_echo "## ----------- ##
 
2205
## confdefs.h. ##
 
2206
## ----------- ##"
 
2207
      echo
 
2208
      cat confdefs.h
 
2209
      echo
 
2210
    fi
 
2211
    test "$ac_signal" != 0 &&
 
2212
      $as_echo "$as_me: caught signal $ac_signal"
 
2213
    $as_echo "$as_me: exit $exit_status"
 
2214
  } >&5
 
2215
  rm -f core *.core core.conftest.* &&
 
2216
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2217
    exit $exit_status
 
2218
' 0
 
2219
for ac_signal in 1 2 13 15; do
 
2220
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2221
done
 
2222
ac_signal=0
 
2223
 
 
2224
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2225
rm -f -r conftest* confdefs.h
 
2226
 
 
2227
$as_echo "/* confdefs.h */" > confdefs.h
 
2228
 
 
2229
# Predefined preprocessor variables.
 
2230
 
 
2231
cat >>confdefs.h <<_ACEOF
 
2232
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2233
_ACEOF
 
2234
 
 
2235
cat >>confdefs.h <<_ACEOF
 
2236
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2237
_ACEOF
 
2238
 
 
2239
cat >>confdefs.h <<_ACEOF
 
2240
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2241
_ACEOF
 
2242
 
 
2243
cat >>confdefs.h <<_ACEOF
 
2244
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2245
_ACEOF
 
2246
 
 
2247
cat >>confdefs.h <<_ACEOF
 
2248
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2249
_ACEOF
 
2250
 
 
2251
cat >>confdefs.h <<_ACEOF
 
2252
#define PACKAGE_URL "$PACKAGE_URL"
 
2253
_ACEOF
 
2254
 
 
2255
 
 
2256
# Let the site file select an alternate cache file if it wants to.
 
2257
# Prefer an explicitly selected file to automatically selected ones.
 
2258
ac_site_file1=NONE
 
2259
ac_site_file2=NONE
 
2260
if test -n "$CONFIG_SITE"; then
 
2261
  # We do not want a PATH search for config.site.
 
2262
  case $CONFIG_SITE in #((
 
2263
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2264
    */*) ac_site_file1=$CONFIG_SITE;;
 
2265
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2266
  esac
 
2267
elif test "x$prefix" != xNONE; then
 
2268
  ac_site_file1=$prefix/share/config.site
 
2269
  ac_site_file2=$prefix/etc/config.site
 
2270
else
 
2271
  ac_site_file1=$ac_default_prefix/share/config.site
 
2272
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2273
fi
 
2274
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2275
do
 
2276
  test "x$ac_site_file" = xNONE && continue
 
2277
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2278
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2279
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2280
    sed 's/^/| /' "$ac_site_file" >&5
 
2281
    . "$ac_site_file" \
 
2282
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2283
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2284
as_fn_error $? "failed to load site script $ac_site_file
 
2285
See \`config.log' for more details" "$LINENO" 5; }
 
2286
  fi
 
2287
done
 
2288
 
 
2289
if test -r "$cache_file"; then
 
2290
  # Some versions of bash will fail to source /dev/null (special files
 
2291
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2292
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2293
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2294
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2295
    case $cache_file in
 
2296
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2297
      *)                      . "./$cache_file";;
 
2298
    esac
 
2299
  fi
 
2300
else
 
2301
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2302
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2303
  >$cache_file
 
2304
fi
 
2305
 
 
2306
# Check that the precious variables saved in the cache have kept the same
 
2307
# value.
 
2308
ac_cache_corrupted=false
 
2309
for ac_var in $ac_precious_vars; do
 
2310
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2311
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2312
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2313
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2314
  case $ac_old_set,$ac_new_set in
 
2315
    set,)
 
2316
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2317
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2318
      ac_cache_corrupted=: ;;
 
2319
    ,set)
 
2320
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2321
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2322
      ac_cache_corrupted=: ;;
 
2323
    ,);;
 
2324
    *)
 
2325
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2326
        # differences in whitespace do not lead to failure.
 
2327
        ac_old_val_w=`echo x $ac_old_val`
 
2328
        ac_new_val_w=`echo x $ac_new_val`
 
2329
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2330
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2331
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2332
          ac_cache_corrupted=:
 
2333
        else
 
2334
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2335
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2336
          eval $ac_var=\$ac_old_val
 
2337
        fi
 
2338
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2339
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2340
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2341
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2342
      fi;;
 
2343
  esac
 
2344
  # Pass precious variables to config.status.
 
2345
  if test "$ac_new_set" = set; then
 
2346
    case $ac_new_val in
 
2347
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2348
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2349
    esac
 
2350
    case " $ac_configure_args " in
 
2351
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2352
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2353
    esac
 
2354
  fi
 
2355
done
 
2356
if $ac_cache_corrupted; then
 
2357
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2358
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2359
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2360
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2361
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2362
fi
 
2363
## -------------------- ##
 
2364
## Main body of script. ##
 
2365
## -------------------- ##
 
2366
 
 
2367
ac_ext=c
 
2368
ac_cpp='$CPP $CPPFLAGS'
 
2369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2372
 
 
2373
 
 
2374
 
 
2375
ac_config_headers="$ac_config_headers config.h"
 
2376
 
 
2377
am__api_version='1.14'
 
2378
 
 
2379
ac_aux_dir=
 
2380
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2381
  if test -f "$ac_dir/install-sh"; then
 
2382
    ac_aux_dir=$ac_dir
 
2383
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2384
    break
 
2385
  elif test -f "$ac_dir/install.sh"; then
 
2386
    ac_aux_dir=$ac_dir
 
2387
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2388
    break
 
2389
  elif test -f "$ac_dir/shtool"; then
 
2390
    ac_aux_dir=$ac_dir
 
2391
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2392
    break
 
2393
  fi
 
2394
done
 
2395
if test -z "$ac_aux_dir"; then
 
2396
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2397
fi
 
2398
 
 
2399
# These three variables are undocumented and unsupported,
 
2400
# and are intended to be withdrawn in a future Autoconf release.
 
2401
# They can cause serious problems if a builder's source tree is in a directory
 
2402
# whose full name contains unusual characters.
 
2403
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2404
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2405
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2406
 
 
2407
 
 
2408
# Find a good install program.  We prefer a C program (faster),
 
2409
# so one script is as good as another.  But avoid the broken or
 
2410
# incompatible versions:
 
2411
# SysV /etc/install, /usr/sbin/install
 
2412
# SunOS /usr/etc/install
 
2413
# IRIX /sbin/install
 
2414
# AIX /bin/install
 
2415
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2416
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2417
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2418
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2419
# OS/2's system install, which has a completely different semantic
 
2420
# ./install, which can be erroneously created by make from ./install.sh.
 
2421
# Reject install programs that cannot install multiple files.
 
2422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2423
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2424
if test -z "$INSTALL"; then
 
2425
if ${ac_cv_path_install+:} false; then :
 
2426
  $as_echo_n "(cached) " >&6
 
2427
else
 
2428
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2429
for as_dir in $PATH
 
2430
do
 
2431
  IFS=$as_save_IFS
 
2432
  test -z "$as_dir" && as_dir=.
 
2433
    # Account for people who put trailing slashes in PATH elements.
 
2434
case $as_dir/ in #((
 
2435
  ./ | .// | /[cC]/* | \
 
2436
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2437
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2438
  /usr/ucb/* ) ;;
 
2439
  *)
 
2440
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2441
    # Don't use installbsd from OSF since it installs stuff as root
 
2442
    # by default.
 
2443
    for ac_prog in ginstall scoinst install; do
 
2444
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2445
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2446
          if test $ac_prog = install &&
 
2447
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2448
            # AIX install.  It has an incompatible calling convention.
 
2449
            :
 
2450
          elif test $ac_prog = install &&
 
2451
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2452
            # program-specific install script used by HP pwplus--don't use.
 
2453
            :
 
2454
          else
 
2455
            rm -rf conftest.one conftest.two conftest.dir
 
2456
            echo one > conftest.one
 
2457
            echo two > conftest.two
 
2458
            mkdir conftest.dir
 
2459
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2460
              test -s conftest.one && test -s conftest.two &&
 
2461
              test -s conftest.dir/conftest.one &&
 
2462
              test -s conftest.dir/conftest.two
 
2463
            then
 
2464
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2465
              break 3
 
2466
            fi
 
2467
          fi
 
2468
        fi
 
2469
      done
 
2470
    done
 
2471
    ;;
 
2472
esac
 
2473
 
 
2474
  done
 
2475
IFS=$as_save_IFS
 
2476
 
 
2477
rm -rf conftest.one conftest.two conftest.dir
 
2478
 
 
2479
fi
 
2480
  if test "${ac_cv_path_install+set}" = set; then
 
2481
    INSTALL=$ac_cv_path_install
 
2482
  else
 
2483
    # As a last resort, use the slow shell script.  Don't cache a
 
2484
    # value for INSTALL within a source directory, because that will
 
2485
    # break other packages using the cache if that directory is
 
2486
    # removed, or if the value is a relative name.
 
2487
    INSTALL=$ac_install_sh
 
2488
  fi
 
2489
fi
 
2490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2491
$as_echo "$INSTALL" >&6; }
 
2492
 
 
2493
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2494
# It thinks the first close brace ends the variable substitution.
 
2495
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2496
 
 
2497
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2498
 
 
2499
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2500
 
 
2501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2502
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2503
# Reject unsafe characters in $srcdir or the absolute working directory
 
2504
# name.  Accept space and tab only in the latter.
 
2505
am_lf='
 
2506
'
 
2507
case `pwd` in
 
2508
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2509
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2510
esac
 
2511
case $srcdir in
 
2512
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2513
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2514
esac
 
2515
 
 
2516
# Do 'set' in a subshell so we don't clobber the current shell's
 
2517
# arguments.  Must try -L first in case configure is actually a
 
2518
# symlink; some systems play weird games with the mod time of symlinks
 
2519
# (eg FreeBSD returns the mod time of the symlink's containing
 
2520
# directory).
 
2521
if (
 
2522
   am_has_slept=no
 
2523
   for am_try in 1 2; do
 
2524
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2525
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2526
     if test "$*" = "X"; then
 
2527
        # -L didn't work.
 
2528
        set X `ls -t "$srcdir/configure" conftest.file`
 
2529
     fi
 
2530
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2531
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2532
 
 
2533
        # If neither matched, then we have a broken ls.  This can happen
 
2534
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2535
        # broken ls alias from the environment.  This has actually
 
2536
        # happened.  Such a system could not be considered "sane".
 
2537
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2538
  alias in your environment" "$LINENO" 5
 
2539
     fi
 
2540
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2541
       break
 
2542
     fi
 
2543
     # Just in case.
 
2544
     sleep 1
 
2545
     am_has_slept=yes
 
2546
   done
 
2547
   test "$2" = conftest.file
 
2548
   )
 
2549
then
 
2550
   # Ok.
 
2551
   :
 
2552
else
 
2553
   as_fn_error $? "newly created file is older than distributed files!
 
2554
Check your system clock" "$LINENO" 5
 
2555
fi
 
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2557
$as_echo "yes" >&6; }
 
2558
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2559
# generated files are strictly newer.
 
2560
am_sleep_pid=
 
2561
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2562
  ( sleep 1 ) &
 
2563
  am_sleep_pid=$!
 
2564
fi
 
2565
 
 
2566
rm -f conftest.file
 
2567
 
 
2568
test "$program_prefix" != NONE &&
 
2569
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2570
# Use a double $ so make ignores it.
 
2571
test "$program_suffix" != NONE &&
 
2572
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2573
# Double any \ or $.
 
2574
# By default was `s,x,x', remove it if useless.
 
2575
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2576
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2577
 
 
2578
# expand $ac_aux_dir to an absolute path
 
2579
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2580
 
 
2581
if test x"${MISSING+set}" != xset; then
 
2582
  case $am_aux_dir in
 
2583
  *\ * | *\     *)
 
2584
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2585
  *)
 
2586
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2587
  esac
 
2588
fi
 
2589
# Use eval to expand $SHELL
 
2590
if eval "$MISSING --is-lightweight"; then
 
2591
  am_missing_run="$MISSING "
 
2592
else
 
2593
  am_missing_run=
 
2594
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2595
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2596
fi
 
2597
 
 
2598
if test x"${install_sh}" != xset; then
 
2599
  case $am_aux_dir in
 
2600
  *\ * | *\     *)
 
2601
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2602
  *)
 
2603
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2604
  esac
 
2605
fi
 
2606
 
 
2607
# Installed binaries are usually stripped using 'strip' when the user
 
2608
# run "make install-strip".  However 'strip' might not be the right
 
2609
# tool to use in cross-compilation environments, therefore Automake
 
2610
# will honor the 'STRIP' environment variable to overrule this program.
 
2611
if test "$cross_compiling" != no; then
 
2612
  if test -n "$ac_tool_prefix"; then
 
2613
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2614
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2616
$as_echo_n "checking for $ac_word... " >&6; }
 
2617
if ${ac_cv_prog_STRIP+:} false; then :
 
2618
  $as_echo_n "(cached) " >&6
 
2619
else
 
2620
  if test -n "$STRIP"; then
 
2621
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2622
else
 
2623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2624
for as_dir in $PATH
 
2625
do
 
2626
  IFS=$as_save_IFS
 
2627
  test -z "$as_dir" && as_dir=.
 
2628
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2629
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2630
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2631
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2632
    break 2
 
2633
  fi
 
2634
done
 
2635
  done
 
2636
IFS=$as_save_IFS
 
2637
 
 
2638
fi
 
2639
fi
 
2640
STRIP=$ac_cv_prog_STRIP
 
2641
if test -n "$STRIP"; then
 
2642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2643
$as_echo "$STRIP" >&6; }
 
2644
else
 
2645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2646
$as_echo "no" >&6; }
 
2647
fi
 
2648
 
 
2649
 
 
2650
fi
 
2651
if test -z "$ac_cv_prog_STRIP"; then
 
2652
  ac_ct_STRIP=$STRIP
 
2653
  # Extract the first word of "strip", so it can be a program name with args.
 
2654
set dummy strip; ac_word=$2
 
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2656
$as_echo_n "checking for $ac_word... " >&6; }
 
2657
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2658
  $as_echo_n "(cached) " >&6
 
2659
else
 
2660
  if test -n "$ac_ct_STRIP"; then
 
2661
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2662
else
 
2663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2664
for as_dir in $PATH
 
2665
do
 
2666
  IFS=$as_save_IFS
 
2667
  test -z "$as_dir" && as_dir=.
 
2668
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2669
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2670
    ac_cv_prog_ac_ct_STRIP="strip"
 
2671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2672
    break 2
 
2673
  fi
 
2674
done
 
2675
  done
 
2676
IFS=$as_save_IFS
 
2677
 
 
2678
fi
 
2679
fi
 
2680
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2681
if test -n "$ac_ct_STRIP"; then
 
2682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2683
$as_echo "$ac_ct_STRIP" >&6; }
 
2684
else
 
2685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2686
$as_echo "no" >&6; }
 
2687
fi
 
2688
 
 
2689
  if test "x$ac_ct_STRIP" = x; then
 
2690
    STRIP=":"
 
2691
  else
 
2692
    case $cross_compiling:$ac_tool_warned in
 
2693
yes:)
 
2694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2696
ac_tool_warned=yes ;;
 
2697
esac
 
2698
    STRIP=$ac_ct_STRIP
 
2699
  fi
 
2700
else
 
2701
  STRIP="$ac_cv_prog_STRIP"
 
2702
fi
 
2703
 
 
2704
fi
 
2705
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2706
 
 
2707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2708
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2709
if test -z "$MKDIR_P"; then
 
2710
  if ${ac_cv_path_mkdir+:} false; then :
 
2711
  $as_echo_n "(cached) " >&6
 
2712
else
 
2713
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2714
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2715
do
 
2716
  IFS=$as_save_IFS
 
2717
  test -z "$as_dir" && as_dir=.
 
2718
    for ac_prog in mkdir gmkdir; do
 
2719
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2720
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2721
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2722
             'mkdir (GNU coreutils) '* | \
 
2723
             'mkdir (coreutils) '* | \
 
2724
             'mkdir (fileutils) '4.1*)
 
2725
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2726
               break 3;;
 
2727
           esac
 
2728
         done
 
2729
       done
 
2730
  done
 
2731
IFS=$as_save_IFS
 
2732
 
 
2733
fi
 
2734
 
 
2735
  test -d ./--version && rmdir ./--version
 
2736
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2737
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2738
  else
 
2739
    # As a last resort, use the slow shell script.  Don't cache a
 
2740
    # value for MKDIR_P within a source directory, because that will
 
2741
    # break other packages using the cache if that directory is
 
2742
    # removed, or if the value is a relative name.
 
2743
    MKDIR_P="$ac_install_sh -d"
 
2744
  fi
 
2745
fi
 
2746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2747
$as_echo "$MKDIR_P" >&6; }
 
2748
 
 
2749
for ac_prog in gawk mawk nawk awk
 
2750
do
 
2751
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2752
set dummy $ac_prog; ac_word=$2
 
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2754
$as_echo_n "checking for $ac_word... " >&6; }
 
2755
if ${ac_cv_prog_AWK+:} false; then :
 
2756
  $as_echo_n "(cached) " >&6
 
2757
else
 
2758
  if test -n "$AWK"; then
 
2759
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2760
else
 
2761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2762
for as_dir in $PATH
 
2763
do
 
2764
  IFS=$as_save_IFS
 
2765
  test -z "$as_dir" && as_dir=.
 
2766
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2767
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2768
    ac_cv_prog_AWK="$ac_prog"
 
2769
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2770
    break 2
 
2771
  fi
 
2772
done
 
2773
  done
 
2774
IFS=$as_save_IFS
 
2775
 
 
2776
fi
 
2777
fi
 
2778
AWK=$ac_cv_prog_AWK
 
2779
if test -n "$AWK"; then
 
2780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2781
$as_echo "$AWK" >&6; }
 
2782
else
 
2783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2784
$as_echo "no" >&6; }
 
2785
fi
 
2786
 
 
2787
 
 
2788
  test -n "$AWK" && break
 
2789
done
 
2790
 
 
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2792
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2793
set x ${MAKE-make}
 
2794
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2795
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2796
  $as_echo_n "(cached) " >&6
 
2797
else
 
2798
  cat >conftest.make <<\_ACEOF
 
2799
SHELL = /bin/sh
 
2800
all:
 
2801
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2802
_ACEOF
 
2803
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2804
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2805
  *@@@%%%=?*=@@@%%%*)
 
2806
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2807
  *)
 
2808
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2809
esac
 
2810
rm -f conftest.make
 
2811
fi
 
2812
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2814
$as_echo "yes" >&6; }
 
2815
  SET_MAKE=
 
2816
else
 
2817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2818
$as_echo "no" >&6; }
 
2819
  SET_MAKE="MAKE=${MAKE-make}"
 
2820
fi
 
2821
 
 
2822
rm -rf .tst 2>/dev/null
 
2823
mkdir .tst 2>/dev/null
 
2824
if test -d .tst; then
 
2825
  am__leading_dot=.
 
2826
else
 
2827
  am__leading_dot=_
 
2828
fi
 
2829
rmdir .tst 2>/dev/null
 
2830
 
 
2831
# Check whether --enable-silent-rules was given.
 
2832
if test "${enable_silent_rules+set}" = set; then :
 
2833
  enableval=$enable_silent_rules;
 
2834
fi
 
2835
 
 
2836
case $enable_silent_rules in # (((
 
2837
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2838
   no) AM_DEFAULT_VERBOSITY=1;;
 
2839
    *) AM_DEFAULT_VERBOSITY=1;;
 
2840
esac
 
2841
am_make=${MAKE-make}
 
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2843
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2844
if ${am_cv_make_support_nested_variables+:} false; then :
 
2845
  $as_echo_n "(cached) " >&6
 
2846
else
 
2847
  if $as_echo 'TRUE=$(BAR$(V))
 
2848
BAR0=false
 
2849
BAR1=true
 
2850
V=1
 
2851
am__doit:
 
2852
        @$(TRUE)
 
2853
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2854
  am_cv_make_support_nested_variables=yes
 
2855
else
 
2856
  am_cv_make_support_nested_variables=no
 
2857
fi
 
2858
fi
 
2859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2860
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2861
if test $am_cv_make_support_nested_variables = yes; then
 
2862
    AM_V='$(V)'
 
2863
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2864
else
 
2865
  AM_V=$AM_DEFAULT_VERBOSITY
 
2866
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2867
fi
 
2868
AM_BACKSLASH='\'
 
2869
 
 
2870
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2871
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2872
  # is not polluted with repeated "-I."
 
2873
  am__isrc=' -I$(srcdir)'
 
2874
  # test to see if srcdir already configured
 
2875
  if test -f $srcdir/config.status; then
 
2876
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2877
  fi
 
2878
fi
 
2879
 
 
2880
# test whether we have cygpath
 
2881
if test -z "$CYGPATH_W"; then
 
2882
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2883
    CYGPATH_W='cygpath -w'
 
2884
  else
 
2885
    CYGPATH_W=echo
 
2886
  fi
 
2887
fi
 
2888
 
 
2889
 
 
2890
# Define the identity of the package.
 
2891
 PACKAGE='debtags'
 
2892
 VERSION='1.12.2'
 
2893
 
 
2894
 
 
2895
cat >>confdefs.h <<_ACEOF
 
2896
#define PACKAGE "$PACKAGE"
 
2897
_ACEOF
 
2898
 
 
2899
 
 
2900
cat >>confdefs.h <<_ACEOF
 
2901
#define VERSION "$VERSION"
 
2902
_ACEOF
 
2903
 
 
2904
# Some tools Automake needs.
 
2905
 
 
2906
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2907
 
 
2908
 
 
2909
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2910
 
 
2911
 
 
2912
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2913
 
 
2914
 
 
2915
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2916
 
 
2917
 
 
2918
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2919
 
 
2920
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2921
# dies out for good.  For more background, see:
 
2922
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2923
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2924
mkdir_p='$(MKDIR_P)'
 
2925
 
 
2926
# We need awk for the "check" target.  The system "awk" is bad on
 
2927
# some platforms.
 
2928
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2929
# in the wild :-(  We should find a proper way to deprecate it ...
 
2930
AMTAR='$${TAR-tar}'
 
2931
 
 
2932
 
 
2933
# We'll loop over all known methods to create a tar archive until one works.
 
2934
_am_tools='gnutar  pax cpio none'
 
2935
 
 
2936
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2937
 
 
2938
 
 
2939
 
 
2940
 
 
2941
 
 
2942
 
 
2943
# POSIX will say in a future version that running "rm -f" with no argument
 
2944
# is OK; and we want to be able to make that assumption in our Makefile
 
2945
# recipes.  So use an aggressive probe to check that the usage we want is
 
2946
# actually supported "in the wild" to an acceptable degree.
 
2947
# See automake bug#10828.
 
2948
# To make any issue more visible, cause the running configure to be aborted
 
2949
# by default if the 'rm' program in use doesn't match our expectations; the
 
2950
# user can still override this though.
 
2951
if rm -f && rm -fr && rm -rf; then : OK; else
 
2952
  cat >&2 <<'END'
 
2953
Oops!
 
2954
 
 
2955
Your 'rm' program seems unable to run without file operands specified
 
2956
on the command line, even when the '-f' option is present.  This is contrary
 
2957
to the behaviour of most rm programs out there, and not conforming with
 
2958
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2959
 
 
2960
Please tell bug-automake@gnu.org about your system, including the value
 
2961
of your $PATH and any error possibly output before this message.  This
 
2962
can help us improve future automake versions.
 
2963
 
 
2964
END
 
2965
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2966
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2967
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2968
    echo >&2
 
2969
  else
 
2970
    cat >&2 <<'END'
 
2971
Aborting the configuration process, to ensure you take notice of the issue.
 
2972
 
 
2973
You can download and install GNU coreutils to get an 'rm' implementation
 
2974
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2975
 
 
2976
If you want to complete the configuration process using your problematic
 
2977
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2978
to "yes", and re-run configure.
 
2979
 
 
2980
END
 
2981
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
2982
  fi
 
2983
fi
 
2984
 
 
2985
 
 
2986
# Check whether --enable-docs was given.
 
2987
if test "${enable_docs+set}" = set; then :
 
2988
  enableval=$enable_docs; case "${enableval}" in
 
2989
                        yes) swig=true ;;
 
2990
                        no)  swig=false ;;
 
2991
                        *) as_fn_error $? "bad value ${enableval} for --enable-docs" "$LINENO" 5 ;;
 
2992
                esac
 
2993
else
 
2994
  swig=true
 
2995
fi
 
2996
 
 
2997
 if test x$swig = xtrue; then
 
2998
  DO_DOCS_TRUE=
 
2999
  DO_DOCS_FALSE='#'
 
3000
else
 
3001
  DO_DOCS_TRUE='#'
 
3002
  DO_DOCS_FALSE=
 
3003
fi
 
3004
 
 
3005
 
 
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3007
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3008
set x ${MAKE-make}
 
3009
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3010
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3011
  $as_echo_n "(cached) " >&6
 
3012
else
 
3013
  cat >conftest.make <<\_ACEOF
 
3014
SHELL = /bin/sh
 
3015
all:
 
3016
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3017
_ACEOF
 
3018
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3019
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3020
  *@@@%%%=?*=@@@%%%*)
 
3021
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3022
  *)
 
3023
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3024
esac
 
3025
rm -f conftest.make
 
3026
fi
 
3027
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3029
$as_echo "yes" >&6; }
 
3030
  SET_MAKE=
 
3031
else
 
3032
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3033
$as_echo "no" >&6; }
 
3034
  SET_MAKE="MAKE=${MAKE-make}"
 
3035
fi
 
3036
 
 
3037
 
 
3038
ac_ext=cpp
 
3039
ac_cpp='$CXXCPP $CPPFLAGS'
 
3040
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3041
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3042
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3043
 
 
3044
 
 
3045
DEPDIR="${am__leading_dot}deps"
 
3046
 
 
3047
ac_config_commands="$ac_config_commands depfiles"
 
3048
 
 
3049
 
 
3050
am_make=${MAKE-make}
 
3051
cat > confinc << 'END'
 
3052
am__doit:
 
3053
        @echo this is the am__doit target
 
3054
.PHONY: am__doit
 
3055
END
 
3056
# If we don't find an include directive, just comment out the code.
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3058
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3059
am__include="#"
 
3060
am__quote=
 
3061
_am_result=none
 
3062
# First try GNU make style include.
 
3063
echo "include confinc" > confmf
 
3064
# Ignore all kinds of additional output from 'make'.
 
3065
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3066
*the\ am__doit\ target*)
 
3067
  am__include=include
 
3068
  am__quote=
 
3069
  _am_result=GNU
 
3070
  ;;
 
3071
esac
 
3072
# Now try BSD make style include.
 
3073
if test "$am__include" = "#"; then
 
3074
   echo '.include "confinc"' > confmf
 
3075
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3076
   *the\ am__doit\ target*)
 
3077
     am__include=.include
 
3078
     am__quote="\""
 
3079
     _am_result=BSD
 
3080
     ;;
 
3081
   esac
 
3082
fi
 
3083
 
 
3084
 
 
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3086
$as_echo "$_am_result" >&6; }
 
3087
rm -f confinc confmf
 
3088
 
 
3089
# Check whether --enable-dependency-tracking was given.
 
3090
if test "${enable_dependency_tracking+set}" = set; then :
 
3091
  enableval=$enable_dependency_tracking;
 
3092
fi
 
3093
 
 
3094
if test "x$enable_dependency_tracking" != xno; then
 
3095
  am_depcomp="$ac_aux_dir/depcomp"
 
3096
  AMDEPBACKSLASH='\'
 
3097
  am__nodep='_no'
 
3098
fi
 
3099
 if test "x$enable_dependency_tracking" != xno; then
 
3100
  AMDEP_TRUE=
 
3101
  AMDEP_FALSE='#'
 
3102
else
 
3103
  AMDEP_TRUE='#'
 
3104
  AMDEP_FALSE=
 
3105
fi
 
3106
 
 
3107
 
 
3108
ac_ext=cpp
 
3109
ac_cpp='$CXXCPP $CPPFLAGS'
 
3110
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3111
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3112
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3113
if test -z "$CXX"; then
 
3114
  if test -n "$CCC"; then
 
3115
    CXX=$CCC
 
3116
  else
 
3117
    if test -n "$ac_tool_prefix"; then
 
3118
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3119
  do
 
3120
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3121
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3123
$as_echo_n "checking for $ac_word... " >&6; }
 
3124
if ${ac_cv_prog_CXX+:} false; then :
 
3125
  $as_echo_n "(cached) " >&6
 
3126
else
 
3127
  if test -n "$CXX"; then
 
3128
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3129
else
 
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3131
for as_dir in $PATH
 
3132
do
 
3133
  IFS=$as_save_IFS
 
3134
  test -z "$as_dir" && as_dir=.
 
3135
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3136
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3137
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3138
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3139
    break 2
 
3140
  fi
 
3141
done
 
3142
  done
 
3143
IFS=$as_save_IFS
 
3144
 
 
3145
fi
 
3146
fi
 
3147
CXX=$ac_cv_prog_CXX
 
3148
if test -n "$CXX"; then
 
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3150
$as_echo "$CXX" >&6; }
 
3151
else
 
3152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3153
$as_echo "no" >&6; }
 
3154
fi
 
3155
 
 
3156
 
 
3157
    test -n "$CXX" && break
 
3158
  done
 
3159
fi
 
3160
if test -z "$CXX"; then
 
3161
  ac_ct_CXX=$CXX
 
3162
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3163
do
 
3164
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3165
set dummy $ac_prog; ac_word=$2
 
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3167
$as_echo_n "checking for $ac_word... " >&6; }
 
3168
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
3169
  $as_echo_n "(cached) " >&6
 
3170
else
 
3171
  if test -n "$ac_ct_CXX"; then
 
3172
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3173
else
 
3174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3175
for as_dir in $PATH
 
3176
do
 
3177
  IFS=$as_save_IFS
 
3178
  test -z "$as_dir" && as_dir=.
 
3179
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3180
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3181
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3182
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3183
    break 2
 
3184
  fi
 
3185
done
 
3186
  done
 
3187
IFS=$as_save_IFS
 
3188
 
 
3189
fi
 
3190
fi
 
3191
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3192
if test -n "$ac_ct_CXX"; then
 
3193
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3194
$as_echo "$ac_ct_CXX" >&6; }
 
3195
else
 
3196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3197
$as_echo "no" >&6; }
 
3198
fi
 
3199
 
 
3200
 
 
3201
  test -n "$ac_ct_CXX" && break
 
3202
done
 
3203
 
 
3204
  if test "x$ac_ct_CXX" = x; then
 
3205
    CXX="g++"
 
3206
  else
 
3207
    case $cross_compiling:$ac_tool_warned in
 
3208
yes:)
 
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3210
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3211
ac_tool_warned=yes ;;
 
3212
esac
 
3213
    CXX=$ac_ct_CXX
 
3214
  fi
 
3215
fi
 
3216
 
 
3217
  fi
 
3218
fi
 
3219
# Provide some information about the compiler.
 
3220
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3221
set X $ac_compile
 
3222
ac_compiler=$2
 
3223
for ac_option in --version -v -V -qversion; do
 
3224
  { { ac_try="$ac_compiler $ac_option >&5"
 
3225
case "(($ac_try" in
 
3226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3227
  *) ac_try_echo=$ac_try;;
 
3228
esac
 
3229
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3230
$as_echo "$ac_try_echo"; } >&5
 
3231
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3232
  ac_status=$?
 
3233
  if test -s conftest.err; then
 
3234
    sed '10a\
 
3235
... rest of stderr output deleted ...
 
3236
         10q' conftest.err >conftest.er1
 
3237
    cat conftest.er1 >&5
 
3238
  fi
 
3239
  rm -f conftest.er1 conftest.err
 
3240
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3241
  test $ac_status = 0; }
 
3242
done
 
3243
 
 
3244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3245
/* end confdefs.h.  */
 
3246
 
 
3247
int
 
3248
main ()
 
3249
{
 
3250
 
 
3251
  ;
 
3252
  return 0;
 
3253
}
 
3254
_ACEOF
 
3255
ac_clean_files_save=$ac_clean_files
 
3256
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3257
# Try to create an executable without -o first, disregard a.out.
 
3258
# It will help us diagnose broken compilers, and finding out an intuition
 
3259
# of exeext.
 
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
3261
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
3262
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3263
 
 
3264
# The possible output files:
 
3265
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3266
 
 
3267
ac_rmfiles=
 
3268
for ac_file in $ac_files
 
3269
do
 
3270
  case $ac_file in
 
3271
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3272
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3273
  esac
 
3274
done
 
3275
rm -f $ac_rmfiles
 
3276
 
 
3277
if { { ac_try="$ac_link_default"
 
3278
case "(($ac_try" in
 
3279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3280
  *) ac_try_echo=$ac_try;;
 
3281
esac
 
3282
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3283
$as_echo "$ac_try_echo"; } >&5
 
3284
  (eval "$ac_link_default") 2>&5
 
3285
  ac_status=$?
 
3286
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3287
  test $ac_status = 0; }; then :
 
3288
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3289
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3290
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3291
# so that the user can short-circuit this test for compilers unknown to
 
3292
# Autoconf.
 
3293
for ac_file in $ac_files ''
 
3294
do
 
3295
  test -f "$ac_file" || continue
 
3296
  case $ac_file in
 
3297
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3298
        ;;
 
3299
    [ab].out )
 
3300
        # We found the default executable, but exeext='' is most
 
3301
        # certainly right.
 
3302
        break;;
 
3303
    *.* )
 
3304
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3305
        then :; else
 
3306
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3307
        fi
 
3308
        # We set ac_cv_exeext here because the later test for it is not
 
3309
        # safe: cross compilers may not add the suffix if given an `-o'
 
3310
        # argument, so we may need to know it at that point already.
 
3311
        # Even if this section looks crufty: it has the advantage of
 
3312
        # actually working.
 
3313
        break;;
 
3314
    * )
 
3315
        break;;
 
3316
  esac
 
3317
done
 
3318
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3319
 
 
3320
else
 
3321
  ac_file=''
 
3322
fi
 
3323
if test -z "$ac_file"; then :
 
3324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3325
$as_echo "no" >&6; }
 
3326
$as_echo "$as_me: failed program was:" >&5
 
3327
sed 's/^/| /' conftest.$ac_ext >&5
 
3328
 
 
3329
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3330
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3331
as_fn_error 77 "C++ compiler cannot create executables
 
3332
See \`config.log' for more details" "$LINENO" 5; }
 
3333
else
 
3334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3335
$as_echo "yes" >&6; }
 
3336
fi
 
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
3338
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
3339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3340
$as_echo "$ac_file" >&6; }
 
3341
ac_exeext=$ac_cv_exeext
 
3342
 
 
3343
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3344
ac_clean_files=$ac_clean_files_save
 
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3346
$as_echo_n "checking for suffix of executables... " >&6; }
 
3347
if { { ac_try="$ac_link"
 
3348
case "(($ac_try" in
 
3349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3350
  *) ac_try_echo=$ac_try;;
 
3351
esac
 
3352
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3353
$as_echo "$ac_try_echo"; } >&5
 
3354
  (eval "$ac_link") 2>&5
 
3355
  ac_status=$?
 
3356
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3357
  test $ac_status = 0; }; then :
 
3358
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3359
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3360
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3361
# `rm'.
 
3362
for ac_file in conftest.exe conftest conftest.*; do
 
3363
  test -f "$ac_file" || continue
 
3364
  case $ac_file in
 
3365
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3366
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3367
          break;;
 
3368
    * ) break;;
 
3369
  esac
 
3370
done
 
3371
else
 
3372
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3373
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3374
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3375
See \`config.log' for more details" "$LINENO" 5; }
 
3376
fi
 
3377
rm -f conftest conftest$ac_cv_exeext
 
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3379
$as_echo "$ac_cv_exeext" >&6; }
 
3380
 
 
3381
rm -f conftest.$ac_ext
 
3382
EXEEXT=$ac_cv_exeext
 
3383
ac_exeext=$EXEEXT
 
3384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3385
/* end confdefs.h.  */
 
3386
#include <stdio.h>
 
3387
int
 
3388
main ()
 
3389
{
 
3390
FILE *f = fopen ("conftest.out", "w");
 
3391
 return ferror (f) || fclose (f) != 0;
 
3392
 
 
3393
  ;
 
3394
  return 0;
 
3395
}
 
3396
_ACEOF
 
3397
ac_clean_files="$ac_clean_files conftest.out"
 
3398
# Check that the compiler produces executables we can run.  If not, either
 
3399
# the compiler is broken, or we cross compile.
 
3400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3401
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3402
if test "$cross_compiling" != yes; then
 
3403
  { { ac_try="$ac_link"
 
3404
case "(($ac_try" in
 
3405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3406
  *) ac_try_echo=$ac_try;;
 
3407
esac
 
3408
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3409
$as_echo "$ac_try_echo"; } >&5
 
3410
  (eval "$ac_link") 2>&5
 
3411
  ac_status=$?
 
3412
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3413
  test $ac_status = 0; }
 
3414
  if { ac_try='./conftest$ac_cv_exeext'
 
3415
  { { case "(($ac_try" in
 
3416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3417
  *) ac_try_echo=$ac_try;;
 
3418
esac
 
3419
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3420
$as_echo "$ac_try_echo"; } >&5
 
3421
  (eval "$ac_try") 2>&5
 
3422
  ac_status=$?
 
3423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3424
  test $ac_status = 0; }; }; then
 
3425
    cross_compiling=no
 
3426
  else
 
3427
    if test "$cross_compiling" = maybe; then
 
3428
        cross_compiling=yes
 
3429
    else
 
3430
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3431
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3432
as_fn_error $? "cannot run C++ compiled programs.
 
3433
If you meant to cross compile, use \`--host'.
 
3434
See \`config.log' for more details" "$LINENO" 5; }
 
3435
    fi
 
3436
  fi
 
3437
fi
 
3438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3439
$as_echo "$cross_compiling" >&6; }
 
3440
 
 
3441
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3442
ac_clean_files=$ac_clean_files_save
 
3443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3444
$as_echo_n "checking for suffix of object files... " >&6; }
 
3445
if ${ac_cv_objext+:} false; then :
 
3446
  $as_echo_n "(cached) " >&6
 
3447
else
 
3448
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3449
/* end confdefs.h.  */
 
3450
 
 
3451
int
 
3452
main ()
 
3453
{
 
3454
 
 
3455
  ;
 
3456
  return 0;
 
3457
}
 
3458
_ACEOF
 
3459
rm -f conftest.o conftest.obj
 
3460
if { { ac_try="$ac_compile"
 
3461
case "(($ac_try" in
 
3462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3463
  *) ac_try_echo=$ac_try;;
 
3464
esac
 
3465
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3466
$as_echo "$ac_try_echo"; } >&5
 
3467
  (eval "$ac_compile") 2>&5
 
3468
  ac_status=$?
 
3469
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3470
  test $ac_status = 0; }; then :
 
3471
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3472
  test -f "$ac_file" || continue;
 
3473
  case $ac_file in
 
3474
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3475
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3476
       break;;
 
3477
  esac
 
3478
done
 
3479
else
 
3480
  $as_echo "$as_me: failed program was:" >&5
 
3481
sed 's/^/| /' conftest.$ac_ext >&5
 
3482
 
 
3483
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3484
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3485
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3486
See \`config.log' for more details" "$LINENO" 5; }
 
3487
fi
 
3488
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3489
fi
 
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3491
$as_echo "$ac_cv_objext" >&6; }
 
3492
OBJEXT=$ac_cv_objext
 
3493
ac_objext=$OBJEXT
 
3494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3495
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3496
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
3497
  $as_echo_n "(cached) " >&6
 
3498
else
 
3499
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3500
/* end confdefs.h.  */
 
3501
 
 
3502
int
 
3503
main ()
 
3504
{
 
3505
#ifndef __GNUC__
 
3506
       choke me
 
3507
#endif
 
3508
 
 
3509
  ;
 
3510
  return 0;
 
3511
}
 
3512
_ACEOF
 
3513
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3514
  ac_compiler_gnu=yes
 
3515
else
 
3516
  ac_compiler_gnu=no
 
3517
fi
 
3518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3519
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3520
 
 
3521
fi
 
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3523
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3524
if test $ac_compiler_gnu = yes; then
 
3525
  GXX=yes
 
3526
else
 
3527
  GXX=
 
3528
fi
 
3529
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3530
ac_save_CXXFLAGS=$CXXFLAGS
 
3531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3532
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3533
if ${ac_cv_prog_cxx_g+:} false; then :
 
3534
  $as_echo_n "(cached) " >&6
 
3535
else
 
3536
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3537
   ac_cxx_werror_flag=yes
 
3538
   ac_cv_prog_cxx_g=no
 
3539
   CXXFLAGS="-g"
 
3540
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3541
/* end confdefs.h.  */
 
3542
 
 
3543
int
 
3544
main ()
 
3545
{
 
3546
 
 
3547
  ;
 
3548
  return 0;
 
3549
}
 
3550
_ACEOF
 
3551
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3552
  ac_cv_prog_cxx_g=yes
 
3553
else
 
3554
  CXXFLAGS=""
 
3555
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3556
/* end confdefs.h.  */
 
3557
 
 
3558
int
 
3559
main ()
 
3560
{
 
3561
 
 
3562
  ;
 
3563
  return 0;
 
3564
}
 
3565
_ACEOF
 
3566
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3567
 
 
3568
else
 
3569
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3570
         CXXFLAGS="-g"
 
3571
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3572
/* end confdefs.h.  */
 
3573
 
 
3574
int
 
3575
main ()
 
3576
{
 
3577
 
 
3578
  ;
 
3579
  return 0;
 
3580
}
 
3581
_ACEOF
 
3582
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3583
  ac_cv_prog_cxx_g=yes
 
3584
fi
 
3585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3586
fi
 
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3588
fi
 
3589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3590
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3591
fi
 
3592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3593
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3594
if test "$ac_test_CXXFLAGS" = set; then
 
3595
  CXXFLAGS=$ac_save_CXXFLAGS
 
3596
elif test $ac_cv_prog_cxx_g = yes; then
 
3597
  if test "$GXX" = yes; then
 
3598
    CXXFLAGS="-g -O2"
 
3599
  else
 
3600
    CXXFLAGS="-g"
 
3601
  fi
 
3602
else
 
3603
  if test "$GXX" = yes; then
 
3604
    CXXFLAGS="-O2"
 
3605
  else
 
3606
    CXXFLAGS=
 
3607
  fi
 
3608
fi
 
3609
ac_ext=cpp
 
3610
ac_cpp='$CXXCPP $CPPFLAGS'
 
3611
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3612
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3613
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3614
 
 
3615
depcc="$CXX"  am_compiler_list=
 
3616
 
 
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3618
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3619
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
3620
  $as_echo_n "(cached) " >&6
 
3621
else
 
3622
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3623
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3624
  # making bogus files that we don't know about and never remove.  For
 
3625
  # instance it was reported that on HP-UX the gcc test will end up
 
3626
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3627
  # in D".
 
3628
  rm -rf conftest.dir
 
3629
  mkdir conftest.dir
 
3630
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3631
  # using a relative directory.
 
3632
  cp "$am_depcomp" conftest.dir
 
3633
  cd conftest.dir
 
3634
  # We will build objects and dependencies in a subdirectory because
 
3635
  # it helps to detect inapplicable dependency modes.  For instance
 
3636
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3637
  # side effect of compilation, but ICC will put the dependencies in
 
3638
  # the current directory while Tru64 will put them in the object
 
3639
  # directory.
 
3640
  mkdir sub
 
3641
 
 
3642
  am_cv_CXX_dependencies_compiler_type=none
 
3643
  if test "$am_compiler_list" = ""; then
 
3644
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3645
  fi
 
3646
  am__universal=false
 
3647
  case " $depcc " in #(
 
3648
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3649
     esac
 
3650
 
 
3651
  for depmode in $am_compiler_list; do
 
3652
    # Setup a source with many dependencies, because some compilers
 
3653
    # like to wrap large dependency lists on column 80 (with \), and
 
3654
    # we should not choose a depcomp mode which is confused by this.
 
3655
    #
 
3656
    # We need to recreate these files for each test, as the compiler may
 
3657
    # overwrite some of them when testing with obscure command lines.
 
3658
    # This happens at least with the AIX C compiler.
 
3659
    : > sub/conftest.c
 
3660
    for i in 1 2 3 4 5 6; do
 
3661
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3662
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3663
      # Solaris 10 /bin/sh.
 
3664
      echo '/* dummy */' > sub/conftst$i.h
 
3665
    done
 
3666
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3667
 
 
3668
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3669
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3670
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3671
    # versions had trouble with output in subdirs.
 
3672
    am__obj=sub/conftest.${OBJEXT-o}
 
3673
    am__minus_obj="-o $am__obj"
 
3674
    case $depmode in
 
3675
    gcc)
 
3676
      # This depmode causes a compiler race in universal mode.
 
3677
      test "$am__universal" = false || continue
 
3678
      ;;
 
3679
    nosideeffect)
 
3680
      # After this tag, mechanisms are not by side-effect, so they'll
 
3681
      # only be used when explicitly requested.
 
3682
      if test "x$enable_dependency_tracking" = xyes; then
 
3683
        continue
 
3684
      else
 
3685
        break
 
3686
      fi
 
3687
      ;;
 
3688
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3689
      # This compiler won't grok '-c -o', but also, the minuso test has
 
3690
      # not run yet.  These depmodes are late enough in the game, and
 
3691
      # so weak that their functioning should not be impacted.
 
3692
      am__obj=conftest.${OBJEXT-o}
 
3693
      am__minus_obj=
 
3694
      ;;
 
3695
    none) break ;;
 
3696
    esac
 
3697
    if depmode=$depmode \
 
3698
       source=sub/conftest.c object=$am__obj \
 
3699
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3700
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3701
         >/dev/null 2>conftest.err &&
 
3702
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3703
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3704
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3705
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3706
      # icc doesn't choke on unknown options, it will just issue warnings
 
3707
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3708
      # that says an option was ignored or not supported.
 
3709
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3710
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3711
      # The diagnosis changed in icc 8.0:
 
3712
      #   icc: Command line remark: option '-MP' not supported
 
3713
      if (grep 'ignoring option' conftest.err ||
 
3714
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3715
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3716
        break
 
3717
      fi
 
3718
    fi
 
3719
  done
 
3720
 
 
3721
  cd ..
 
3722
  rm -rf conftest.dir
 
3723
else
 
3724
  am_cv_CXX_dependencies_compiler_type=none
 
3725
fi
 
3726
 
 
3727
fi
 
3728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3729
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3730
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3731
 
 
3732
 if
 
3733
  test "x$enable_dependency_tracking" != xno \
 
3734
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3735
  am__fastdepCXX_TRUE=
 
3736
  am__fastdepCXX_FALSE='#'
 
3737
else
 
3738
  am__fastdepCXX_TRUE='#'
 
3739
  am__fastdepCXX_FALSE=
 
3740
fi
 
3741
 
 
3742
 
 
3743
 
 
3744
ac_ext=cpp
 
3745
ac_cpp='$CXXCPP $CPPFLAGS'
 
3746
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3747
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3748
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
3750
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
3751
if test -z "$CXXCPP"; then
 
3752
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
3753
  $as_echo_n "(cached) " >&6
 
3754
else
 
3755
      # Double quotes because CXXCPP needs to be expanded
 
3756
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
3757
    do
 
3758
      ac_preproc_ok=false
 
3759
for ac_cxx_preproc_warn_flag in '' yes
 
3760
do
 
3761
  # Use a header file that comes with gcc, so configuring glibc
 
3762
  # with a fresh cross-compiler works.
 
3763
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3764
  # <limits.h> exists even on freestanding compilers.
 
3765
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3766
  # not just through cpp. "Syntax error" is here to catch this case.
 
3767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3768
/* end confdefs.h.  */
 
3769
#ifdef __STDC__
 
3770
# include <limits.h>
 
3771
#else
 
3772
# include <assert.h>
 
3773
#endif
 
3774
                     Syntax error
 
3775
_ACEOF
 
3776
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3777
 
 
3778
else
 
3779
  # Broken: fails on valid input.
 
3780
continue
 
3781
fi
 
3782
rm -f conftest.err conftest.i conftest.$ac_ext
 
3783
 
 
3784
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3785
  # can be detected and how.
 
3786
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3787
/* end confdefs.h.  */
 
3788
#include <ac_nonexistent.h>
 
3789
_ACEOF
 
3790
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3791
  # Broken: success on invalid input.
 
3792
continue
 
3793
else
 
3794
  # Passes both tests.
 
3795
ac_preproc_ok=:
 
3796
break
 
3797
fi
 
3798
rm -f conftest.err conftest.i conftest.$ac_ext
 
3799
 
 
3800
done
 
3801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3802
rm -f conftest.i conftest.err conftest.$ac_ext
 
3803
if $ac_preproc_ok; then :
 
3804
  break
 
3805
fi
 
3806
 
 
3807
    done
 
3808
    ac_cv_prog_CXXCPP=$CXXCPP
 
3809
 
 
3810
fi
 
3811
  CXXCPP=$ac_cv_prog_CXXCPP
 
3812
else
 
3813
  ac_cv_prog_CXXCPP=$CXXCPP
 
3814
fi
 
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
3816
$as_echo "$CXXCPP" >&6; }
 
3817
ac_preproc_ok=false
 
3818
for ac_cxx_preproc_warn_flag in '' yes
 
3819
do
 
3820
  # Use a header file that comes with gcc, so configuring glibc
 
3821
  # with a fresh cross-compiler works.
 
3822
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3823
  # <limits.h> exists even on freestanding compilers.
 
3824
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3825
  # not just through cpp. "Syntax error" is here to catch this case.
 
3826
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3827
/* end confdefs.h.  */
 
3828
#ifdef __STDC__
 
3829
# include <limits.h>
 
3830
#else
 
3831
# include <assert.h>
 
3832
#endif
 
3833
                     Syntax error
 
3834
_ACEOF
 
3835
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3836
 
 
3837
else
 
3838
  # Broken: fails on valid input.
 
3839
continue
 
3840
fi
 
3841
rm -f conftest.err conftest.i conftest.$ac_ext
 
3842
 
 
3843
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3844
  # can be detected and how.
 
3845
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3846
/* end confdefs.h.  */
 
3847
#include <ac_nonexistent.h>
 
3848
_ACEOF
 
3849
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3850
  # Broken: success on invalid input.
 
3851
continue
 
3852
else
 
3853
  # Passes both tests.
 
3854
ac_preproc_ok=:
 
3855
break
 
3856
fi
 
3857
rm -f conftest.err conftest.i conftest.$ac_ext
 
3858
 
 
3859
done
 
3860
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3861
rm -f conftest.i conftest.err conftest.$ac_ext
 
3862
if $ac_preproc_ok; then :
 
3863
 
 
3864
else
 
3865
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3866
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3867
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
3868
See \`config.log' for more details" "$LINENO" 5; }
 
3869
fi
 
3870
 
 
3871
ac_ext=cpp
 
3872
ac_cpp='$CXXCPP $CPPFLAGS'
 
3873
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3874
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3875
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3876
 
 
3877
 
 
3878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3879
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3880
if ${ac_cv_path_GREP+:} false; then :
 
3881
  $as_echo_n "(cached) " >&6
 
3882
else
 
3883
  if test -z "$GREP"; then
 
3884
  ac_path_GREP_found=false
 
3885
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3886
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3887
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3888
do
 
3889
  IFS=$as_save_IFS
 
3890
  test -z "$as_dir" && as_dir=.
 
3891
    for ac_prog in grep ggrep; do
 
3892
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3893
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3894
      as_fn_executable_p "$ac_path_GREP" || continue
 
3895
# Check for GNU ac_path_GREP and select it if it is found.
 
3896
  # Check for GNU $ac_path_GREP
 
3897
case `"$ac_path_GREP" --version 2>&1` in
 
3898
*GNU*)
 
3899
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3900
*)
 
3901
  ac_count=0
 
3902
  $as_echo_n 0123456789 >"conftest.in"
 
3903
  while :
 
3904
  do
 
3905
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3906
    mv "conftest.tmp" "conftest.in"
 
3907
    cp "conftest.in" "conftest.nl"
 
3908
    $as_echo 'GREP' >> "conftest.nl"
 
3909
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3910
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3911
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3912
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3913
      # Best one so far, save it but keep looking for a better one
 
3914
      ac_cv_path_GREP="$ac_path_GREP"
 
3915
      ac_path_GREP_max=$ac_count
 
3916
    fi
 
3917
    # 10*(2^10) chars as input seems more than enough
 
3918
    test $ac_count -gt 10 && break
 
3919
  done
 
3920
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3921
esac
 
3922
 
 
3923
      $ac_path_GREP_found && break 3
 
3924
    done
 
3925
  done
 
3926
  done
 
3927
IFS=$as_save_IFS
 
3928
  if test -z "$ac_cv_path_GREP"; then
 
3929
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3930
  fi
 
3931
else
 
3932
  ac_cv_path_GREP=$GREP
 
3933
fi
 
3934
 
 
3935
fi
 
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3937
$as_echo "$ac_cv_path_GREP" >&6; }
 
3938
 GREP="$ac_cv_path_GREP"
 
3939
 
 
3940
 
 
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3942
$as_echo_n "checking for egrep... " >&6; }
 
3943
if ${ac_cv_path_EGREP+:} false; then :
 
3944
  $as_echo_n "(cached) " >&6
 
3945
else
 
3946
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3947
   then ac_cv_path_EGREP="$GREP -E"
 
3948
   else
 
3949
     if test -z "$EGREP"; then
 
3950
  ac_path_EGREP_found=false
 
3951
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3952
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3953
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3954
do
 
3955
  IFS=$as_save_IFS
 
3956
  test -z "$as_dir" && as_dir=.
 
3957
    for ac_prog in egrep; do
 
3958
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3959
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3960
      as_fn_executable_p "$ac_path_EGREP" || continue
 
3961
# Check for GNU ac_path_EGREP and select it if it is found.
 
3962
  # Check for GNU $ac_path_EGREP
 
3963
case `"$ac_path_EGREP" --version 2>&1` in
 
3964
*GNU*)
 
3965
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3966
*)
 
3967
  ac_count=0
 
3968
  $as_echo_n 0123456789 >"conftest.in"
 
3969
  while :
 
3970
  do
 
3971
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3972
    mv "conftest.tmp" "conftest.in"
 
3973
    cp "conftest.in" "conftest.nl"
 
3974
    $as_echo 'EGREP' >> "conftest.nl"
 
3975
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3976
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3977
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3978
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3979
      # Best one so far, save it but keep looking for a better one
 
3980
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3981
      ac_path_EGREP_max=$ac_count
 
3982
    fi
 
3983
    # 10*(2^10) chars as input seems more than enough
 
3984
    test $ac_count -gt 10 && break
 
3985
  done
 
3986
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3987
esac
 
3988
 
 
3989
      $ac_path_EGREP_found && break 3
 
3990
    done
 
3991
  done
 
3992
  done
 
3993
IFS=$as_save_IFS
 
3994
  if test -z "$ac_cv_path_EGREP"; then
 
3995
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3996
  fi
 
3997
else
 
3998
  ac_cv_path_EGREP=$EGREP
 
3999
fi
 
4000
 
 
4001
   fi
 
4002
fi
 
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4004
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4005
 EGREP="$ac_cv_path_EGREP"
 
4006
 
 
4007
 
 
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4009
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4010
if ${ac_cv_header_stdc+:} false; then :
 
4011
  $as_echo_n "(cached) " >&6
 
4012
else
 
4013
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4014
/* end confdefs.h.  */
 
4015
#include <stdlib.h>
 
4016
#include <stdarg.h>
 
4017
#include <string.h>
 
4018
#include <float.h>
 
4019
 
 
4020
int
 
4021
main ()
 
4022
{
 
4023
 
 
4024
  ;
 
4025
  return 0;
 
4026
}
 
4027
_ACEOF
 
4028
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4029
  ac_cv_header_stdc=yes
 
4030
else
 
4031
  ac_cv_header_stdc=no
 
4032
fi
 
4033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4034
 
 
4035
if test $ac_cv_header_stdc = yes; then
 
4036
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4038
/* end confdefs.h.  */
 
4039
#include <string.h>
 
4040
 
 
4041
_ACEOF
 
4042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4043
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4044
 
 
4045
else
 
4046
  ac_cv_header_stdc=no
 
4047
fi
 
4048
rm -f conftest*
 
4049
 
 
4050
fi
 
4051
 
 
4052
if test $ac_cv_header_stdc = yes; then
 
4053
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4055
/* end confdefs.h.  */
 
4056
#include <stdlib.h>
 
4057
 
 
4058
_ACEOF
 
4059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4060
  $EGREP "free" >/dev/null 2>&1; then :
 
4061
 
 
4062
else
 
4063
  ac_cv_header_stdc=no
 
4064
fi
 
4065
rm -f conftest*
 
4066
 
 
4067
fi
 
4068
 
 
4069
if test $ac_cv_header_stdc = yes; then
 
4070
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4071
  if test "$cross_compiling" = yes; then :
 
4072
  :
 
4073
else
 
4074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4075
/* end confdefs.h.  */
 
4076
#include <ctype.h>
 
4077
#include <stdlib.h>
 
4078
#if ((' ' & 0x0FF) == 0x020)
 
4079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4081
#else
 
4082
# define ISLOWER(c) \
 
4083
                   (('a' <= (c) && (c) <= 'i') \
 
4084
                     || ('j' <= (c) && (c) <= 'r') \
 
4085
                     || ('s' <= (c) && (c) <= 'z'))
 
4086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4087
#endif
 
4088
 
 
4089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4090
int
 
4091
main ()
 
4092
{
 
4093
  int i;
 
4094
  for (i = 0; i < 256; i++)
 
4095
    if (XOR (islower (i), ISLOWER (i))
 
4096
        || toupper (i) != TOUPPER (i))
 
4097
      return 2;
 
4098
  return 0;
 
4099
}
 
4100
_ACEOF
 
4101
if ac_fn_cxx_try_run "$LINENO"; then :
 
4102
 
 
4103
else
 
4104
  ac_cv_header_stdc=no
 
4105
fi
 
4106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4107
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4108
fi
 
4109
 
 
4110
fi
 
4111
fi
 
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4113
$as_echo "$ac_cv_header_stdc" >&6; }
 
4114
if test $ac_cv_header_stdc = yes; then
 
4115
 
 
4116
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4117
 
 
4118
fi
 
4119
 
 
4120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4122
                  inttypes.h stdint.h unistd.h
 
4123
do :
 
4124
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4125
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4126
"
 
4127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4128
  cat >>confdefs.h <<_ACEOF
 
4129
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4130
_ACEOF
 
4131
 
 
4132
fi
 
4133
 
 
4134
done
 
4135
 
 
4136
 
 
4137
 
 
4138
  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4139
if test "x$ac_cv_header_minix_config_h" = xyes; then :
 
4140
  MINIX=yes
 
4141
else
 
4142
  MINIX=
 
4143
fi
 
4144
 
 
4145
 
 
4146
  if test "$MINIX" = yes; then
 
4147
 
 
4148
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4149
 
 
4150
 
 
4151
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4152
 
 
4153
 
 
4154
$as_echo "#define _MINIX 1" >>confdefs.h
 
4155
 
 
4156
  fi
 
4157
 
 
4158
 
 
4159
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4160
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4161
if ${ac_cv_safe_to_define___extensions__+:} false; then :
 
4162
  $as_echo_n "(cached) " >&6
 
4163
else
 
4164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4165
/* end confdefs.h.  */
 
4166
 
 
4167
#         define __EXTENSIONS__ 1
 
4168
          $ac_includes_default
 
4169
int
 
4170
main ()
 
4171
{
 
4172
 
 
4173
  ;
 
4174
  return 0;
 
4175
}
 
4176
_ACEOF
 
4177
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4178
  ac_cv_safe_to_define___extensions__=yes
 
4179
else
 
4180
  ac_cv_safe_to_define___extensions__=no
 
4181
fi
 
4182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4183
fi
 
4184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4185
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4186
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4187
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4188
 
 
4189
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4190
 
 
4191
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4192
 
 
4193
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4194
 
 
4195
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4196
 
 
4197
 
 
4198
 
 
4199
ac_ext=cpp
 
4200
ac_cpp='$CXXCPP $CPPFLAGS'
 
4201
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4202
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4203
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4204
if test -z "$CXX"; then
 
4205
  if test -n "$CCC"; then
 
4206
    CXX=$CCC
 
4207
  else
 
4208
    if test -n "$ac_tool_prefix"; then
 
4209
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4210
  do
 
4211
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4214
$as_echo_n "checking for $ac_word... " >&6; }
 
4215
if ${ac_cv_prog_CXX+:} false; then :
 
4216
  $as_echo_n "(cached) " >&6
 
4217
else
 
4218
  if test -n "$CXX"; then
 
4219
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4220
else
 
4221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4222
for as_dir in $PATH
 
4223
do
 
4224
  IFS=$as_save_IFS
 
4225
  test -z "$as_dir" && as_dir=.
 
4226
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4227
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4228
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4229
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4230
    break 2
 
4231
  fi
 
4232
done
 
4233
  done
 
4234
IFS=$as_save_IFS
 
4235
 
 
4236
fi
 
4237
fi
 
4238
CXX=$ac_cv_prog_CXX
 
4239
if test -n "$CXX"; then
 
4240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
4241
$as_echo "$CXX" >&6; }
 
4242
else
 
4243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4244
$as_echo "no" >&6; }
 
4245
fi
 
4246
 
 
4247
 
 
4248
    test -n "$CXX" && break
 
4249
  done
 
4250
fi
 
4251
if test -z "$CXX"; then
 
4252
  ac_ct_CXX=$CXX
 
4253
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4254
do
 
4255
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4256
set dummy $ac_prog; ac_word=$2
 
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4258
$as_echo_n "checking for $ac_word... " >&6; }
 
4259
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
4260
  $as_echo_n "(cached) " >&6
 
4261
else
 
4262
  if test -n "$ac_ct_CXX"; then
 
4263
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4264
else
 
4265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4266
for as_dir in $PATH
 
4267
do
 
4268
  IFS=$as_save_IFS
 
4269
  test -z "$as_dir" && as_dir=.
 
4270
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4271
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4272
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4273
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4274
    break 2
 
4275
  fi
 
4276
done
 
4277
  done
 
4278
IFS=$as_save_IFS
 
4279
 
 
4280
fi
 
4281
fi
 
4282
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4283
if test -n "$ac_ct_CXX"; then
 
4284
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
4285
$as_echo "$ac_ct_CXX" >&6; }
 
4286
else
 
4287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4288
$as_echo "no" >&6; }
 
4289
fi
 
4290
 
 
4291
 
 
4292
  test -n "$ac_ct_CXX" && break
 
4293
done
 
4294
 
 
4295
  if test "x$ac_ct_CXX" = x; then
 
4296
    CXX="g++"
 
4297
  else
 
4298
    case $cross_compiling:$ac_tool_warned in
 
4299
yes:)
 
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4302
ac_tool_warned=yes ;;
 
4303
esac
 
4304
    CXX=$ac_ct_CXX
 
4305
  fi
 
4306
fi
 
4307
 
 
4308
  fi
 
4309
fi
 
4310
# Provide some information about the compiler.
 
4311
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
4312
set X $ac_compile
 
4313
ac_compiler=$2
 
4314
for ac_option in --version -v -V -qversion; do
 
4315
  { { ac_try="$ac_compiler $ac_option >&5"
 
4316
case "(($ac_try" in
 
4317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4318
  *) ac_try_echo=$ac_try;;
 
4319
esac
 
4320
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4321
$as_echo "$ac_try_echo"; } >&5
 
4322
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4323
  ac_status=$?
 
4324
  if test -s conftest.err; then
 
4325
    sed '10a\
 
4326
... rest of stderr output deleted ...
 
4327
         10q' conftest.err >conftest.er1
 
4328
    cat conftest.er1 >&5
 
4329
  fi
 
4330
  rm -f conftest.er1 conftest.err
 
4331
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4332
  test $ac_status = 0; }
 
4333
done
 
4334
 
 
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
4336
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
4337
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
4338
  $as_echo_n "(cached) " >&6
 
4339
else
 
4340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4341
/* end confdefs.h.  */
 
4342
 
 
4343
int
 
4344
main ()
 
4345
{
 
4346
#ifndef __GNUC__
 
4347
       choke me
 
4348
#endif
 
4349
 
 
4350
  ;
 
4351
  return 0;
 
4352
}
 
4353
_ACEOF
 
4354
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4355
  ac_compiler_gnu=yes
 
4356
else
 
4357
  ac_compiler_gnu=no
 
4358
fi
 
4359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4360
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4361
 
 
4362
fi
 
4363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
4364
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
4365
if test $ac_compiler_gnu = yes; then
 
4366
  GXX=yes
 
4367
else
 
4368
  GXX=
 
4369
fi
 
4370
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4371
ac_save_CXXFLAGS=$CXXFLAGS
 
4372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
4373
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
4374
if ${ac_cv_prog_cxx_g+:} false; then :
 
4375
  $as_echo_n "(cached) " >&6
 
4376
else
 
4377
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4378
   ac_cxx_werror_flag=yes
 
4379
   ac_cv_prog_cxx_g=no
 
4380
   CXXFLAGS="-g"
 
4381
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4382
/* end confdefs.h.  */
 
4383
 
 
4384
int
 
4385
main ()
 
4386
{
 
4387
 
 
4388
  ;
 
4389
  return 0;
 
4390
}
 
4391
_ACEOF
 
4392
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4393
  ac_cv_prog_cxx_g=yes
 
4394
else
 
4395
  CXXFLAGS=""
 
4396
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4397
/* end confdefs.h.  */
 
4398
 
 
4399
int
 
4400
main ()
 
4401
{
 
4402
 
 
4403
  ;
 
4404
  return 0;
 
4405
}
 
4406
_ACEOF
 
4407
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4408
 
 
4409
else
 
4410
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4411
         CXXFLAGS="-g"
 
4412
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4413
/* end confdefs.h.  */
 
4414
 
 
4415
int
 
4416
main ()
 
4417
{
 
4418
 
 
4419
  ;
 
4420
  return 0;
 
4421
}
 
4422
_ACEOF
 
4423
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4424
  ac_cv_prog_cxx_g=yes
 
4425
fi
 
4426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4427
fi
 
4428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4429
fi
 
4430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4431
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4432
fi
 
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
4434
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
4435
if test "$ac_test_CXXFLAGS" = set; then
 
4436
  CXXFLAGS=$ac_save_CXXFLAGS
 
4437
elif test $ac_cv_prog_cxx_g = yes; then
 
4438
  if test "$GXX" = yes; then
 
4439
    CXXFLAGS="-g -O2"
 
4440
  else
 
4441
    CXXFLAGS="-g"
 
4442
  fi
 
4443
else
 
4444
  if test "$GXX" = yes; then
 
4445
    CXXFLAGS="-O2"
 
4446
  else
 
4447
    CXXFLAGS=
 
4448
  fi
 
4449
fi
 
4450
ac_ext=cpp
 
4451
ac_cpp='$CXXCPP $CPPFLAGS'
 
4452
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4453
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4454
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4455
 
 
4456
depcc="$CXX"  am_compiler_list=
 
4457
 
 
4458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4459
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4460
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
4461
  $as_echo_n "(cached) " >&6
 
4462
else
 
4463
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4464
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4465
  # making bogus files that we don't know about and never remove.  For
 
4466
  # instance it was reported that on HP-UX the gcc test will end up
 
4467
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4468
  # in D".
 
4469
  rm -rf conftest.dir
 
4470
  mkdir conftest.dir
 
4471
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4472
  # using a relative directory.
 
4473
  cp "$am_depcomp" conftest.dir
 
4474
  cd conftest.dir
 
4475
  # We will build objects and dependencies in a subdirectory because
 
4476
  # it helps to detect inapplicable dependency modes.  For instance
 
4477
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4478
  # side effect of compilation, but ICC will put the dependencies in
 
4479
  # the current directory while Tru64 will put them in the object
 
4480
  # directory.
 
4481
  mkdir sub
 
4482
 
 
4483
  am_cv_CXX_dependencies_compiler_type=none
 
4484
  if test "$am_compiler_list" = ""; then
 
4485
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4486
  fi
 
4487
  am__universal=false
 
4488
  case " $depcc " in #(
 
4489
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4490
     esac
 
4491
 
 
4492
  for depmode in $am_compiler_list; do
 
4493
    # Setup a source with many dependencies, because some compilers
 
4494
    # like to wrap large dependency lists on column 80 (with \), and
 
4495
    # we should not choose a depcomp mode which is confused by this.
 
4496
    #
 
4497
    # We need to recreate these files for each test, as the compiler may
 
4498
    # overwrite some of them when testing with obscure command lines.
 
4499
    # This happens at least with the AIX C compiler.
 
4500
    : > sub/conftest.c
 
4501
    for i in 1 2 3 4 5 6; do
 
4502
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4503
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4504
      # Solaris 10 /bin/sh.
 
4505
      echo '/* dummy */' > sub/conftst$i.h
 
4506
    done
 
4507
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4508
 
 
4509
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
4510
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4511
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4512
    # versions had trouble with output in subdirs.
 
4513
    am__obj=sub/conftest.${OBJEXT-o}
 
4514
    am__minus_obj="-o $am__obj"
 
4515
    case $depmode in
 
4516
    gcc)
 
4517
      # This depmode causes a compiler race in universal mode.
 
4518
      test "$am__universal" = false || continue
 
4519
      ;;
 
4520
    nosideeffect)
 
4521
      # After this tag, mechanisms are not by side-effect, so they'll
 
4522
      # only be used when explicitly requested.
 
4523
      if test "x$enable_dependency_tracking" = xyes; then
 
4524
        continue
 
4525
      else
 
4526
        break
 
4527
      fi
 
4528
      ;;
 
4529
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4530
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4531
      # not run yet.  These depmodes are late enough in the game, and
 
4532
      # so weak that their functioning should not be impacted.
 
4533
      am__obj=conftest.${OBJEXT-o}
 
4534
      am__minus_obj=
 
4535
      ;;
 
4536
    none) break ;;
 
4537
    esac
 
4538
    if depmode=$depmode \
 
4539
       source=sub/conftest.c object=$am__obj \
 
4540
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4541
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4542
         >/dev/null 2>conftest.err &&
 
4543
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4544
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4545
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4546
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4547
      # icc doesn't choke on unknown options, it will just issue warnings
 
4548
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4549
      # that says an option was ignored or not supported.
 
4550
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4551
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4552
      # The diagnosis changed in icc 8.0:
 
4553
      #   icc: Command line remark: option '-MP' not supported
 
4554
      if (grep 'ignoring option' conftest.err ||
 
4555
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4556
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4557
        break
 
4558
      fi
 
4559
    fi
 
4560
  done
 
4561
 
 
4562
  cd ..
 
4563
  rm -rf conftest.dir
 
4564
else
 
4565
  am_cv_CXX_dependencies_compiler_type=none
 
4566
fi
 
4567
 
 
4568
fi
 
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4570
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4571
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4572
 
 
4573
 if
 
4574
  test "x$enable_dependency_tracking" != xno \
 
4575
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4576
  am__fastdepCXX_TRUE=
 
4577
  am__fastdepCXX_FALSE='#'
 
4578
else
 
4579
  am__fastdepCXX_TRUE='#'
 
4580
  am__fastdepCXX_FALSE=
 
4581
fi
 
4582
 
 
4583
 
 
4584
ac_ext=cpp
 
4585
ac_cpp='$CXXCPP $CPPFLAGS'
 
4586
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4587
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4588
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
4590
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
4591
if test -z "$CXXCPP"; then
 
4592
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
4593
  $as_echo_n "(cached) " >&6
 
4594
else
 
4595
      # Double quotes because CXXCPP needs to be expanded
 
4596
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4597
    do
 
4598
      ac_preproc_ok=false
 
4599
for ac_cxx_preproc_warn_flag in '' yes
 
4600
do
 
4601
  # Use a header file that comes with gcc, so configuring glibc
 
4602
  # with a fresh cross-compiler works.
 
4603
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4604
  # <limits.h> exists even on freestanding compilers.
 
4605
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4606
  # not just through cpp. "Syntax error" is here to catch this case.
 
4607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4608
/* end confdefs.h.  */
 
4609
#ifdef __STDC__
 
4610
# include <limits.h>
 
4611
#else
 
4612
# include <assert.h>
 
4613
#endif
 
4614
                     Syntax error
 
4615
_ACEOF
 
4616
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4617
 
 
4618
else
 
4619
  # Broken: fails on valid input.
 
4620
continue
 
4621
fi
 
4622
rm -f conftest.err conftest.i conftest.$ac_ext
 
4623
 
 
4624
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4625
  # can be detected and how.
 
4626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4627
/* end confdefs.h.  */
 
4628
#include <ac_nonexistent.h>
 
4629
_ACEOF
 
4630
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4631
  # Broken: success on invalid input.
 
4632
continue
 
4633
else
 
4634
  # Passes both tests.
 
4635
ac_preproc_ok=:
 
4636
break
 
4637
fi
 
4638
rm -f conftest.err conftest.i conftest.$ac_ext
 
4639
 
 
4640
done
 
4641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4642
rm -f conftest.i conftest.err conftest.$ac_ext
 
4643
if $ac_preproc_ok; then :
 
4644
  break
 
4645
fi
 
4646
 
 
4647
    done
 
4648
    ac_cv_prog_CXXCPP=$CXXCPP
 
4649
 
 
4650
fi
 
4651
  CXXCPP=$ac_cv_prog_CXXCPP
 
4652
else
 
4653
  ac_cv_prog_CXXCPP=$CXXCPP
 
4654
fi
 
4655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
4656
$as_echo "$CXXCPP" >&6; }
 
4657
ac_preproc_ok=false
 
4658
for ac_cxx_preproc_warn_flag in '' yes
 
4659
do
 
4660
  # Use a header file that comes with gcc, so configuring glibc
 
4661
  # with a fresh cross-compiler works.
 
4662
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4663
  # <limits.h> exists even on freestanding compilers.
 
4664
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4665
  # not just through cpp. "Syntax error" is here to catch this case.
 
4666
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4667
/* end confdefs.h.  */
 
4668
#ifdef __STDC__
 
4669
# include <limits.h>
 
4670
#else
 
4671
# include <assert.h>
 
4672
#endif
 
4673
                     Syntax error
 
4674
_ACEOF
 
4675
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4676
 
 
4677
else
 
4678
  # Broken: fails on valid input.
 
4679
continue
 
4680
fi
 
4681
rm -f conftest.err conftest.i conftest.$ac_ext
 
4682
 
 
4683
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4684
  # can be detected and how.
 
4685
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4686
/* end confdefs.h.  */
 
4687
#include <ac_nonexistent.h>
 
4688
_ACEOF
 
4689
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4690
  # Broken: success on invalid input.
 
4691
continue
 
4692
else
 
4693
  # Passes both tests.
 
4694
ac_preproc_ok=:
 
4695
break
 
4696
fi
 
4697
rm -f conftest.err conftest.i conftest.$ac_ext
 
4698
 
 
4699
done
 
4700
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4701
rm -f conftest.i conftest.err conftest.$ac_ext
 
4702
if $ac_preproc_ok; then :
 
4703
 
 
4704
else
 
4705
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4706
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4707
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
4708
See \`config.log' for more details" "$LINENO" 5; }
 
4709
fi
 
4710
 
 
4711
ac_ext=cpp
 
4712
ac_cpp='$CXXCPP $CPPFLAGS'
 
4713
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4714
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4715
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4716
 
 
4717
ac_ext=c
 
4718
ac_cpp='$CPP $CPPFLAGS'
 
4719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4722
if test -n "$ac_tool_prefix"; then
 
4723
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4724
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4726
$as_echo_n "checking for $ac_word... " >&6; }
 
4727
if ${ac_cv_prog_CC+:} false; then :
 
4728
  $as_echo_n "(cached) " >&6
 
4729
else
 
4730
  if test -n "$CC"; then
 
4731
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4732
else
 
4733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4734
for as_dir in $PATH
 
4735
do
 
4736
  IFS=$as_save_IFS
 
4737
  test -z "$as_dir" && as_dir=.
 
4738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4739
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4740
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4741
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4742
    break 2
 
4743
  fi
 
4744
done
 
4745
  done
 
4746
IFS=$as_save_IFS
 
4747
 
 
4748
fi
 
4749
fi
 
4750
CC=$ac_cv_prog_CC
 
4751
if test -n "$CC"; then
 
4752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4753
$as_echo "$CC" >&6; }
 
4754
else
 
4755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4756
$as_echo "no" >&6; }
 
4757
fi
 
4758
 
 
4759
 
 
4760
fi
 
4761
if test -z "$ac_cv_prog_CC"; then
 
4762
  ac_ct_CC=$CC
 
4763
  # Extract the first word of "gcc", so it can be a program name with args.
 
4764
set dummy gcc; ac_word=$2
 
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4766
$as_echo_n "checking for $ac_word... " >&6; }
 
4767
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4768
  $as_echo_n "(cached) " >&6
 
4769
else
 
4770
  if test -n "$ac_ct_CC"; then
 
4771
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4772
else
 
4773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4774
for as_dir in $PATH
 
4775
do
 
4776
  IFS=$as_save_IFS
 
4777
  test -z "$as_dir" && as_dir=.
 
4778
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4779
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4780
    ac_cv_prog_ac_ct_CC="gcc"
 
4781
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4782
    break 2
 
4783
  fi
 
4784
done
 
4785
  done
 
4786
IFS=$as_save_IFS
 
4787
 
 
4788
fi
 
4789
fi
 
4790
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4791
if test -n "$ac_ct_CC"; then
 
4792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4793
$as_echo "$ac_ct_CC" >&6; }
 
4794
else
 
4795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4796
$as_echo "no" >&6; }
 
4797
fi
 
4798
 
 
4799
  if test "x$ac_ct_CC" = x; then
 
4800
    CC=""
 
4801
  else
 
4802
    case $cross_compiling:$ac_tool_warned in
 
4803
yes:)
 
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4805
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4806
ac_tool_warned=yes ;;
 
4807
esac
 
4808
    CC=$ac_ct_CC
 
4809
  fi
 
4810
else
 
4811
  CC="$ac_cv_prog_CC"
 
4812
fi
 
4813
 
 
4814
if test -z "$CC"; then
 
4815
          if test -n "$ac_tool_prefix"; then
 
4816
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4817
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4819
$as_echo_n "checking for $ac_word... " >&6; }
 
4820
if ${ac_cv_prog_CC+:} false; then :
 
4821
  $as_echo_n "(cached) " >&6
 
4822
else
 
4823
  if test -n "$CC"; then
 
4824
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4825
else
 
4826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4827
for as_dir in $PATH
 
4828
do
 
4829
  IFS=$as_save_IFS
 
4830
  test -z "$as_dir" && as_dir=.
 
4831
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4832
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4833
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4834
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4835
    break 2
 
4836
  fi
 
4837
done
 
4838
  done
 
4839
IFS=$as_save_IFS
 
4840
 
 
4841
fi
 
4842
fi
 
4843
CC=$ac_cv_prog_CC
 
4844
if test -n "$CC"; then
 
4845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4846
$as_echo "$CC" >&6; }
 
4847
else
 
4848
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4849
$as_echo "no" >&6; }
 
4850
fi
 
4851
 
 
4852
 
 
4853
  fi
 
4854
fi
 
4855
if test -z "$CC"; then
 
4856
  # Extract the first word of "cc", so it can be a program name with args.
 
4857
set dummy cc; ac_word=$2
 
4858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4859
$as_echo_n "checking for $ac_word... " >&6; }
 
4860
if ${ac_cv_prog_CC+:} false; then :
 
4861
  $as_echo_n "(cached) " >&6
 
4862
else
 
4863
  if test -n "$CC"; then
 
4864
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4865
else
 
4866
  ac_prog_rejected=no
 
4867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4868
for as_dir in $PATH
 
4869
do
 
4870
  IFS=$as_save_IFS
 
4871
  test -z "$as_dir" && as_dir=.
 
4872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4873
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4874
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4875
       ac_prog_rejected=yes
 
4876
       continue
 
4877
     fi
 
4878
    ac_cv_prog_CC="cc"
 
4879
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4880
    break 2
 
4881
  fi
 
4882
done
 
4883
  done
 
4884
IFS=$as_save_IFS
 
4885
 
 
4886
if test $ac_prog_rejected = yes; then
 
4887
  # We found a bogon in the path, so make sure we never use it.
 
4888
  set dummy $ac_cv_prog_CC
 
4889
  shift
 
4890
  if test $# != 0; then
 
4891
    # We chose a different compiler from the bogus one.
 
4892
    # However, it has the same basename, so the bogon will be chosen
 
4893
    # first if we set CC to just the basename; use the full file name.
 
4894
    shift
 
4895
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4896
  fi
 
4897
fi
 
4898
fi
 
4899
fi
 
4900
CC=$ac_cv_prog_CC
 
4901
if test -n "$CC"; then
 
4902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4903
$as_echo "$CC" >&6; }
 
4904
else
 
4905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4906
$as_echo "no" >&6; }
 
4907
fi
 
4908
 
 
4909
 
 
4910
fi
 
4911
if test -z "$CC"; then
 
4912
  if test -n "$ac_tool_prefix"; then
 
4913
  for ac_prog in cl.exe
 
4914
  do
 
4915
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4916
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4918
$as_echo_n "checking for $ac_word... " >&6; }
 
4919
if ${ac_cv_prog_CC+:} false; then :
 
4920
  $as_echo_n "(cached) " >&6
 
4921
else
 
4922
  if test -n "$CC"; then
 
4923
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4924
else
 
4925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4926
for as_dir in $PATH
 
4927
do
 
4928
  IFS=$as_save_IFS
 
4929
  test -z "$as_dir" && as_dir=.
 
4930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4932
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4934
    break 2
 
4935
  fi
 
4936
done
 
4937
  done
 
4938
IFS=$as_save_IFS
 
4939
 
 
4940
fi
 
4941
fi
 
4942
CC=$ac_cv_prog_CC
 
4943
if test -n "$CC"; then
 
4944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4945
$as_echo "$CC" >&6; }
 
4946
else
 
4947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4948
$as_echo "no" >&6; }
 
4949
fi
 
4950
 
 
4951
 
 
4952
    test -n "$CC" && break
 
4953
  done
 
4954
fi
 
4955
if test -z "$CC"; then
 
4956
  ac_ct_CC=$CC
 
4957
  for ac_prog in cl.exe
 
4958
do
 
4959
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4960
set dummy $ac_prog; ac_word=$2
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4962
$as_echo_n "checking for $ac_word... " >&6; }
 
4963
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4964
  $as_echo_n "(cached) " >&6
 
4965
else
 
4966
  if test -n "$ac_ct_CC"; then
 
4967
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4968
else
 
4969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4970
for as_dir in $PATH
 
4971
do
 
4972
  IFS=$as_save_IFS
 
4973
  test -z "$as_dir" && as_dir=.
 
4974
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4975
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4976
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4977
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4978
    break 2
 
4979
  fi
 
4980
done
 
4981
  done
 
4982
IFS=$as_save_IFS
 
4983
 
 
4984
fi
 
4985
fi
 
4986
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4987
if test -n "$ac_ct_CC"; then
 
4988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4989
$as_echo "$ac_ct_CC" >&6; }
 
4990
else
 
4991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4992
$as_echo "no" >&6; }
 
4993
fi
 
4994
 
 
4995
 
 
4996
  test -n "$ac_ct_CC" && break
 
4997
done
 
4998
 
 
4999
  if test "x$ac_ct_CC" = x; then
 
5000
    CC=""
 
5001
  else
 
5002
    case $cross_compiling:$ac_tool_warned in
 
5003
yes:)
 
5004
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5005
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5006
ac_tool_warned=yes ;;
 
5007
esac
 
5008
    CC=$ac_ct_CC
 
5009
  fi
 
5010
fi
 
5011
 
 
5012
fi
 
5013
 
 
5014
 
 
5015
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5016
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5017
as_fn_error $? "no acceptable C compiler found in \$PATH
 
5018
See \`config.log' for more details" "$LINENO" 5; }
 
5019
 
 
5020
# Provide some information about the compiler.
 
5021
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
5022
set X $ac_compile
 
5023
ac_compiler=$2
 
5024
for ac_option in --version -v -V -qversion; do
 
5025
  { { ac_try="$ac_compiler $ac_option >&5"
 
5026
case "(($ac_try" in
 
5027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5028
  *) ac_try_echo=$ac_try;;
 
5029
esac
 
5030
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5031
$as_echo "$ac_try_echo"; } >&5
 
5032
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5033
  ac_status=$?
 
5034
  if test -s conftest.err; then
 
5035
    sed '10a\
 
5036
... rest of stderr output deleted ...
 
5037
         10q' conftest.err >conftest.er1
 
5038
    cat conftest.er1 >&5
 
5039
  fi
 
5040
  rm -f conftest.er1 conftest.err
 
5041
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5042
  test $ac_status = 0; }
 
5043
done
 
5044
 
 
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
5046
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5047
if ${ac_cv_c_compiler_gnu+:} false; then :
 
5048
  $as_echo_n "(cached) " >&6
 
5049
else
 
5050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5051
/* end confdefs.h.  */
 
5052
 
 
5053
int
 
5054
main ()
 
5055
{
 
5056
#ifndef __GNUC__
 
5057
       choke me
 
5058
#endif
 
5059
 
 
5060
  ;
 
5061
  return 0;
 
5062
}
 
5063
_ACEOF
 
5064
if ac_fn_c_try_compile "$LINENO"; then :
 
5065
  ac_compiler_gnu=yes
 
5066
else
 
5067
  ac_compiler_gnu=no
 
5068
fi
 
5069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5070
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5071
 
 
5072
fi
 
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
5074
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5075
if test $ac_compiler_gnu = yes; then
 
5076
  GCC=yes
 
5077
else
 
5078
  GCC=
 
5079
fi
 
5080
ac_test_CFLAGS=${CFLAGS+set}
 
5081
ac_save_CFLAGS=$CFLAGS
 
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
5083
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
5084
if ${ac_cv_prog_cc_g+:} false; then :
 
5085
  $as_echo_n "(cached) " >&6
 
5086
else
 
5087
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5088
   ac_c_werror_flag=yes
 
5089
   ac_cv_prog_cc_g=no
 
5090
   CFLAGS="-g"
 
5091
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5092
/* end confdefs.h.  */
 
5093
 
 
5094
int
 
5095
main ()
 
5096
{
 
5097
 
 
5098
  ;
 
5099
  return 0;
 
5100
}
 
5101
_ACEOF
 
5102
if ac_fn_c_try_compile "$LINENO"; then :
 
5103
  ac_cv_prog_cc_g=yes
 
5104
else
 
5105
  CFLAGS=""
 
5106
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5107
/* end confdefs.h.  */
 
5108
 
 
5109
int
 
5110
main ()
 
5111
{
 
5112
 
 
5113
  ;
 
5114
  return 0;
 
5115
}
 
5116
_ACEOF
 
5117
if ac_fn_c_try_compile "$LINENO"; then :
 
5118
 
 
5119
else
 
5120
  ac_c_werror_flag=$ac_save_c_werror_flag
 
5121
         CFLAGS="-g"
 
5122
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5123
/* end confdefs.h.  */
 
5124
 
 
5125
int
 
5126
main ()
 
5127
{
 
5128
 
 
5129
  ;
 
5130
  return 0;
 
5131
}
 
5132
_ACEOF
 
5133
if ac_fn_c_try_compile "$LINENO"; then :
 
5134
  ac_cv_prog_cc_g=yes
 
5135
fi
 
5136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5137
fi
 
5138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5139
fi
 
5140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5141
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5142
fi
 
5143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
5144
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
5145
if test "$ac_test_CFLAGS" = set; then
 
5146
  CFLAGS=$ac_save_CFLAGS
 
5147
elif test $ac_cv_prog_cc_g = yes; then
 
5148
  if test "$GCC" = yes; then
 
5149
    CFLAGS="-g -O2"
 
5150
  else
 
5151
    CFLAGS="-g"
 
5152
  fi
 
5153
else
 
5154
  if test "$GCC" = yes; then
 
5155
    CFLAGS="-O2"
 
5156
  else
 
5157
    CFLAGS=
 
5158
  fi
 
5159
fi
 
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
5161
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5162
if ${ac_cv_prog_cc_c89+:} false; then :
 
5163
  $as_echo_n "(cached) " >&6
 
5164
else
 
5165
  ac_cv_prog_cc_c89=no
 
5166
ac_save_CC=$CC
 
5167
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5168
/* end confdefs.h.  */
 
5169
#include <stdarg.h>
 
5170
#include <stdio.h>
 
5171
struct stat;
 
5172
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5173
struct buf { int x; };
 
5174
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5175
static char *e (p, i)
 
5176
     char **p;
 
5177
     int i;
 
5178
{
 
5179
  return p[i];
 
5180
}
 
5181
static char *f (char * (*g) (char **, int), char **p, ...)
 
5182
{
 
5183
  char *s;
 
5184
  va_list v;
 
5185
  va_start (v,p);
 
5186
  s = g (p, va_arg (v,int));
 
5187
  va_end (v);
 
5188
  return s;
 
5189
}
 
5190
 
 
5191
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5192
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5193
   These don't provoke an error unfortunately, instead are silently treated
 
5194
   as 'x'.  The following induces an error, until -std is added to get
 
5195
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5196
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5197
   that's true only with -std.  */
 
5198
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5199
 
 
5200
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5201
   inside strings and character constants.  */
 
5202
#define FOO(x) 'x'
 
5203
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5204
 
 
5205
int test (int i, double x);
 
5206
struct s1 {int (*f) (int a);};
 
5207
struct s2 {int (*f) (double a);};
 
5208
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5209
int argc;
 
5210
char **argv;
 
5211
int
 
5212
main ()
 
5213
{
 
5214
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5215
  ;
 
5216
  return 0;
 
5217
}
 
5218
_ACEOF
 
5219
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5220
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5221
do
 
5222
  CC="$ac_save_CC $ac_arg"
 
5223
  if ac_fn_c_try_compile "$LINENO"; then :
 
5224
  ac_cv_prog_cc_c89=$ac_arg
 
5225
fi
 
5226
rm -f core conftest.err conftest.$ac_objext
 
5227
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5228
done
 
5229
rm -f conftest.$ac_ext
 
5230
CC=$ac_save_CC
 
5231
 
 
5232
fi
 
5233
# AC_CACHE_VAL
 
5234
case "x$ac_cv_prog_cc_c89" in
 
5235
  x)
 
5236
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5237
$as_echo "none needed" >&6; } ;;
 
5238
  xno)
 
5239
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5240
$as_echo "unsupported" >&6; } ;;
 
5241
  *)
 
5242
    CC="$CC $ac_cv_prog_cc_c89"
 
5243
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5244
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5245
esac
 
5246
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5247
 
 
5248
fi
 
5249
 
 
5250
ac_ext=cpp
 
5251
ac_cpp='$CXXCPP $CPPFLAGS'
 
5252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5255
 
 
5256
ac_ext=c
 
5257
ac_cpp='$CPP $CPPFLAGS'
 
5258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
5262
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
5263
if ${am_cv_prog_cc_c_o+:} false; then :
 
5264
  $as_echo_n "(cached) " >&6
 
5265
else
 
5266
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5267
/* end confdefs.h.  */
 
5268
 
 
5269
int
 
5270
main ()
 
5271
{
 
5272
 
 
5273
  ;
 
5274
  return 0;
 
5275
}
 
5276
_ACEOF
 
5277
  # Make sure it works both with $CC and with simple cc.
 
5278
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
5279
  # compilers refuse to overwrite an existing .o file with -o,
 
5280
  # though they will create one.
 
5281
  am_cv_prog_cc_c_o=yes
 
5282
  for am_i in 1 2; do
 
5283
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
5284
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
5285
   ac_status=$?
 
5286
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5287
   (exit $ac_status); } \
 
5288
         && test -f conftest2.$ac_objext; then
 
5289
      : OK
 
5290
    else
 
5291
      am_cv_prog_cc_c_o=no
 
5292
      break
 
5293
    fi
 
5294
  done
 
5295
  rm -f core conftest*
 
5296
  unset am_i
 
5297
fi
 
5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
5299
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
5300
if test "$am_cv_prog_cc_c_o" != yes; then
 
5301
   # Losing compiler, so override with the script.
 
5302
   # FIXME: It is wrong to rewrite CC.
 
5303
   # But if we don't then we get into trouble of one sort or another.
 
5304
   # A longer-term fix would be to have automake use am__CC in this case,
 
5305
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
5306
   CC="$am_aux_dir/compile $CC"
 
5307
fi
 
5308
ac_ext=cpp
 
5309
ac_cpp='$CXXCPP $CPPFLAGS'
 
5310
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5311
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5312
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5313
 
 
5314
 
 
5315
depcc="$CC"   am_compiler_list=
 
5316
 
 
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
5318
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5319
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
5320
  $as_echo_n "(cached) " >&6
 
5321
else
 
5322
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5323
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5324
  # making bogus files that we don't know about and never remove.  For
 
5325
  # instance it was reported that on HP-UX the gcc test will end up
 
5326
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
5327
  # in D".
 
5328
  rm -rf conftest.dir
 
5329
  mkdir conftest.dir
 
5330
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5331
  # using a relative directory.
 
5332
  cp "$am_depcomp" conftest.dir
 
5333
  cd conftest.dir
 
5334
  # We will build objects and dependencies in a subdirectory because
 
5335
  # it helps to detect inapplicable dependency modes.  For instance
 
5336
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5337
  # side effect of compilation, but ICC will put the dependencies in
 
5338
  # the current directory while Tru64 will put them in the object
 
5339
  # directory.
 
5340
  mkdir sub
 
5341
 
 
5342
  am_cv_CC_dependencies_compiler_type=none
 
5343
  if test "$am_compiler_list" = ""; then
 
5344
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5345
  fi
 
5346
  am__universal=false
 
5347
  case " $depcc " in #(
 
5348
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5349
     esac
 
5350
 
 
5351
  for depmode in $am_compiler_list; do
 
5352
    # Setup a source with many dependencies, because some compilers
 
5353
    # like to wrap large dependency lists on column 80 (with \), and
 
5354
    # we should not choose a depcomp mode which is confused by this.
 
5355
    #
 
5356
    # We need to recreate these files for each test, as the compiler may
 
5357
    # overwrite some of them when testing with obscure command lines.
 
5358
    # This happens at least with the AIX C compiler.
 
5359
    : > sub/conftest.c
 
5360
    for i in 1 2 3 4 5 6; do
 
5361
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5362
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
5363
      # Solaris 10 /bin/sh.
 
5364
      echo '/* dummy */' > sub/conftst$i.h
 
5365
    done
 
5366
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5367
 
 
5368
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
5369
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5370
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
5371
    # versions had trouble with output in subdirs.
 
5372
    am__obj=sub/conftest.${OBJEXT-o}
 
5373
    am__minus_obj="-o $am__obj"
 
5374
    case $depmode in
 
5375
    gcc)
 
5376
      # This depmode causes a compiler race in universal mode.
 
5377
      test "$am__universal" = false || continue
 
5378
      ;;
 
5379
    nosideeffect)
 
5380
      # After this tag, mechanisms are not by side-effect, so they'll
 
5381
      # only be used when explicitly requested.
 
5382
      if test "x$enable_dependency_tracking" = xyes; then
 
5383
        continue
 
5384
      else
 
5385
        break
 
5386
      fi
 
5387
      ;;
 
5388
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
5389
      # This compiler won't grok '-c -o', but also, the minuso test has
 
5390
      # not run yet.  These depmodes are late enough in the game, and
 
5391
      # so weak that their functioning should not be impacted.
 
5392
      am__obj=conftest.${OBJEXT-o}
 
5393
      am__minus_obj=
 
5394
      ;;
 
5395
    none) break ;;
 
5396
    esac
 
5397
    if depmode=$depmode \
 
5398
       source=sub/conftest.c object=$am__obj \
 
5399
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5400
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5401
         >/dev/null 2>conftest.err &&
 
5402
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5403
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5404
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5405
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5406
      # icc doesn't choke on unknown options, it will just issue warnings
 
5407
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5408
      # that says an option was ignored or not supported.
 
5409
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5410
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5411
      # The diagnosis changed in icc 8.0:
 
5412
      #   icc: Command line remark: option '-MP' not supported
 
5413
      if (grep 'ignoring option' conftest.err ||
 
5414
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5415
        am_cv_CC_dependencies_compiler_type=$depmode
 
5416
        break
 
5417
      fi
 
5418
    fi
 
5419
  done
 
5420
 
 
5421
  cd ..
 
5422
  rm -rf conftest.dir
 
5423
else
 
5424
  am_cv_CC_dependencies_compiler_type=none
 
5425
fi
 
5426
 
 
5427
fi
 
5428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5429
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5430
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5431
 
 
5432
 if
 
5433
  test "x$enable_dependency_tracking" != xno \
 
5434
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5435
  am__fastdepCC_TRUE=
 
5436
  am__fastdepCC_FALSE='#'
 
5437
else
 
5438
  am__fastdepCC_TRUE='#'
 
5439
  am__fastdepCC_FALSE=
 
5440
fi
 
5441
 
 
5442
 
 
5443
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
5444
 
 
5445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5446
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5447
if ${ac_cv_header_stdc+:} false; then :
 
5448
  $as_echo_n "(cached) " >&6
 
5449
else
 
5450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5451
/* end confdefs.h.  */
 
5452
#include <stdlib.h>
 
5453
#include <stdarg.h>
 
5454
#include <string.h>
 
5455
#include <float.h>
 
5456
 
 
5457
int
 
5458
main ()
 
5459
{
 
5460
 
 
5461
  ;
 
5462
  return 0;
 
5463
}
 
5464
_ACEOF
 
5465
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5466
  ac_cv_header_stdc=yes
 
5467
else
 
5468
  ac_cv_header_stdc=no
 
5469
fi
 
5470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5471
 
 
5472
if test $ac_cv_header_stdc = yes; then
 
5473
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5474
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5475
/* end confdefs.h.  */
 
5476
#include <string.h>
 
5477
 
 
5478
_ACEOF
 
5479
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5480
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5481
 
 
5482
else
 
5483
  ac_cv_header_stdc=no
 
5484
fi
 
5485
rm -f conftest*
 
5486
 
 
5487
fi
 
5488
 
 
5489
if test $ac_cv_header_stdc = yes; then
 
5490
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5492
/* end confdefs.h.  */
 
5493
#include <stdlib.h>
 
5494
 
 
5495
_ACEOF
 
5496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5497
  $EGREP "free" >/dev/null 2>&1; then :
 
5498
 
 
5499
else
 
5500
  ac_cv_header_stdc=no
 
5501
fi
 
5502
rm -f conftest*
 
5503
 
 
5504
fi
 
5505
 
 
5506
if test $ac_cv_header_stdc = yes; then
 
5507
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5508
  if test "$cross_compiling" = yes; then :
 
5509
  :
 
5510
else
 
5511
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5512
/* end confdefs.h.  */
 
5513
#include <ctype.h>
 
5514
#include <stdlib.h>
 
5515
#if ((' ' & 0x0FF) == 0x020)
 
5516
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5517
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5518
#else
 
5519
# define ISLOWER(c) \
 
5520
                   (('a' <= (c) && (c) <= 'i') \
 
5521
                     || ('j' <= (c) && (c) <= 'r') \
 
5522
                     || ('s' <= (c) && (c) <= 'z'))
 
5523
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5524
#endif
 
5525
 
 
5526
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5527
int
 
5528
main ()
 
5529
{
 
5530
  int i;
 
5531
  for (i = 0; i < 256; i++)
 
5532
    if (XOR (islower (i), ISLOWER (i))
 
5533
        || toupper (i) != TOUPPER (i))
 
5534
      return 2;
 
5535
  return 0;
 
5536
}
 
5537
_ACEOF
 
5538
if ac_fn_cxx_try_run "$LINENO"; then :
 
5539
 
 
5540
else
 
5541
  ac_cv_header_stdc=no
 
5542
fi
 
5543
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5544
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5545
fi
 
5546
 
 
5547
fi
 
5548
fi
 
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5550
$as_echo "$ac_cv_header_stdc" >&6; }
 
5551
if test $ac_cv_header_stdc = yes; then
 
5552
 
 
5553
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
5554
 
 
5555
fi
 
5556
 
 
5557
 
 
5558
case `pwd` in
 
5559
  *\ * | *\     *)
 
5560
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5561
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5562
esac
 
5563
 
 
5564
 
 
5565
 
 
5566
macro_version='2.4.2'
 
5567
macro_revision='1.3337'
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
 
5579
 
 
5580
 
 
5581
ltmain="$ac_aux_dir/ltmain.sh"
 
5582
 
 
5583
# Make sure we can run config.sub.
 
5584
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5585
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
5586
 
 
5587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
5588
$as_echo_n "checking build system type... " >&6; }
 
5589
if ${ac_cv_build+:} false; then :
 
5590
  $as_echo_n "(cached) " >&6
 
5591
else
 
5592
  ac_build_alias=$build_alias
 
5593
test "x$ac_build_alias" = x &&
 
5594
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5595
test "x$ac_build_alias" = x &&
 
5596
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
5597
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5598
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
5599
 
 
5600
fi
 
5601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
5602
$as_echo "$ac_cv_build" >&6; }
 
5603
case $ac_cv_build in
 
5604
*-*-*) ;;
 
5605
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
5606
esac
 
5607
build=$ac_cv_build
 
5608
ac_save_IFS=$IFS; IFS='-'
 
5609
set x $ac_cv_build
 
5610
shift
 
5611
build_cpu=$1
 
5612
build_vendor=$2
 
5613
shift; shift
 
5614
# Remember, the first character of IFS is used to create $*,
 
5615
# except with old shells:
 
5616
build_os=$*
 
5617
IFS=$ac_save_IFS
 
5618
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5619
 
 
5620
 
 
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
5622
$as_echo_n "checking host system type... " >&6; }
 
5623
if ${ac_cv_host+:} false; then :
 
5624
  $as_echo_n "(cached) " >&6
 
5625
else
 
5626
  if test "x$host_alias" = x; then
 
5627
  ac_cv_host=$ac_cv_build
 
5628
else
 
5629
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5630
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
5631
fi
 
5632
 
 
5633
fi
 
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5635
$as_echo "$ac_cv_host" >&6; }
 
5636
case $ac_cv_host in
 
5637
*-*-*) ;;
 
5638
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
5639
esac
 
5640
host=$ac_cv_host
 
5641
ac_save_IFS=$IFS; IFS='-'
 
5642
set x $ac_cv_host
 
5643
shift
 
5644
host_cpu=$1
 
5645
host_vendor=$2
 
5646
shift; shift
 
5647
# Remember, the first character of IFS is used to create $*,
 
5648
# except with old shells:
 
5649
host_os=$*
 
5650
IFS=$ac_save_IFS
 
5651
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5652
 
 
5653
 
 
5654
# Backslashify metacharacters that are still active within
 
5655
# double-quoted strings.
 
5656
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
5657
 
 
5658
# Same as above, but do not quote variable references.
 
5659
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
5660
 
 
5661
# Sed substitution to delay expansion of an escaped shell variable in a
 
5662
# double_quote_subst'ed string.
 
5663
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5664
 
 
5665
# Sed substitution to delay expansion of an escaped single quote.
 
5666
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5667
 
 
5668
# Sed substitution to avoid accidental globbing in evaled expressions
 
5669
no_glob_subst='s/\*/\\\*/g'
 
5670
 
 
5671
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5672
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5673
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5674
 
 
5675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5676
$as_echo_n "checking how to print strings... " >&6; }
 
5677
# Test print first, because it will be a builtin if present.
 
5678
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5679
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5680
  ECHO='print -r --'
 
5681
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5682
  ECHO='printf %s\n'
 
5683
else
 
5684
  # Use this function as a fallback that always works.
 
5685
  func_fallback_echo ()
 
5686
  {
 
5687
    eval 'cat <<_LTECHO_EOF
 
5688
$1
 
5689
_LTECHO_EOF'
 
5690
  }
 
5691
  ECHO='func_fallback_echo'
 
5692
fi
 
5693
 
 
5694
# func_echo_all arg...
 
5695
# Invoke $ECHO with all args, space-separated.
 
5696
func_echo_all ()
 
5697
{
 
5698
    $ECHO ""
 
5699
}
 
5700
 
 
5701
case "$ECHO" in
 
5702
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5703
$as_echo "printf" >&6; } ;;
 
5704
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5705
$as_echo "print -r" >&6; } ;;
 
5706
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5707
$as_echo "cat" >&6; } ;;
 
5708
esac
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
 
5714
 
 
5715
 
 
5716
 
 
5717
 
 
5718
 
 
5719
 
 
5720
 
 
5721
 
 
5722
 
 
5723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5724
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5725
if ${ac_cv_path_SED+:} false; then :
 
5726
  $as_echo_n "(cached) " >&6
 
5727
else
 
5728
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5729
     for ac_i in 1 2 3 4 5 6 7; do
 
5730
       ac_script="$ac_script$as_nl$ac_script"
 
5731
     done
 
5732
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5733
     { ac_script=; unset ac_script;}
 
5734
     if test -z "$SED"; then
 
5735
  ac_path_SED_found=false
 
5736
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5737
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5738
for as_dir in $PATH
 
5739
do
 
5740
  IFS=$as_save_IFS
 
5741
  test -z "$as_dir" && as_dir=.
 
5742
    for ac_prog in sed gsed; do
 
5743
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5744
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5745
      as_fn_executable_p "$ac_path_SED" || continue
 
5746
# Check for GNU ac_path_SED and select it if it is found.
 
5747
  # Check for GNU $ac_path_SED
 
5748
case `"$ac_path_SED" --version 2>&1` in
 
5749
*GNU*)
 
5750
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5751
*)
 
5752
  ac_count=0
 
5753
  $as_echo_n 0123456789 >"conftest.in"
 
5754
  while :
 
5755
  do
 
5756
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5757
    mv "conftest.tmp" "conftest.in"
 
5758
    cp "conftest.in" "conftest.nl"
 
5759
    $as_echo '' >> "conftest.nl"
 
5760
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5761
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5762
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5763
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5764
      # Best one so far, save it but keep looking for a better one
 
5765
      ac_cv_path_SED="$ac_path_SED"
 
5766
      ac_path_SED_max=$ac_count
 
5767
    fi
 
5768
    # 10*(2^10) chars as input seems more than enough
 
5769
    test $ac_count -gt 10 && break
 
5770
  done
 
5771
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5772
esac
 
5773
 
 
5774
      $ac_path_SED_found && break 3
 
5775
    done
 
5776
  done
 
5777
  done
 
5778
IFS=$as_save_IFS
 
5779
  if test -z "$ac_cv_path_SED"; then
 
5780
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5781
  fi
 
5782
else
 
5783
  ac_cv_path_SED=$SED
 
5784
fi
 
5785
 
 
5786
fi
 
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5788
$as_echo "$ac_cv_path_SED" >&6; }
 
5789
 SED="$ac_cv_path_SED"
 
5790
  rm -f conftest.sed
 
5791
 
 
5792
test -z "$SED" && SED=sed
 
5793
Xsed="$SED -e 1s/^X//"
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5806
$as_echo_n "checking for fgrep... " >&6; }
 
5807
if ${ac_cv_path_FGREP+:} false; then :
 
5808
  $as_echo_n "(cached) " >&6
 
5809
else
 
5810
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5811
   then ac_cv_path_FGREP="$GREP -F"
 
5812
   else
 
5813
     if test -z "$FGREP"; then
 
5814
  ac_path_FGREP_found=false
 
5815
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5816
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5817
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5818
do
 
5819
  IFS=$as_save_IFS
 
5820
  test -z "$as_dir" && as_dir=.
 
5821
    for ac_prog in fgrep; do
 
5822
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5823
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5824
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5825
# Check for GNU ac_path_FGREP and select it if it is found.
 
5826
  # Check for GNU $ac_path_FGREP
 
5827
case `"$ac_path_FGREP" --version 2>&1` in
 
5828
*GNU*)
 
5829
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5830
*)
 
5831
  ac_count=0
 
5832
  $as_echo_n 0123456789 >"conftest.in"
 
5833
  while :
 
5834
  do
 
5835
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5836
    mv "conftest.tmp" "conftest.in"
 
5837
    cp "conftest.in" "conftest.nl"
 
5838
    $as_echo 'FGREP' >> "conftest.nl"
 
5839
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5840
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5841
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5842
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5843
      # Best one so far, save it but keep looking for a better one
 
5844
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5845
      ac_path_FGREP_max=$ac_count
 
5846
    fi
 
5847
    # 10*(2^10) chars as input seems more than enough
 
5848
    test $ac_count -gt 10 && break
 
5849
  done
 
5850
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5851
esac
 
5852
 
 
5853
      $ac_path_FGREP_found && break 3
 
5854
    done
 
5855
  done
 
5856
  done
 
5857
IFS=$as_save_IFS
 
5858
  if test -z "$ac_cv_path_FGREP"; then
 
5859
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5860
  fi
 
5861
else
 
5862
  ac_cv_path_FGREP=$FGREP
 
5863
fi
 
5864
 
 
5865
   fi
 
5866
fi
 
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5868
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5869
 FGREP="$ac_cv_path_FGREP"
 
5870
 
 
5871
 
 
5872
test -z "$GREP" && GREP=grep
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
# Check whether --with-gnu-ld was given.
 
5893
if test "${with_gnu_ld+set}" = set; then :
 
5894
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5895
else
 
5896
  with_gnu_ld=no
 
5897
fi
 
5898
 
 
5899
ac_prog=ld
 
5900
if test "$GCC" = yes; then
 
5901
  # Check if gcc -print-prog-name=ld gives a path.
 
5902
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5903
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5904
  case $host in
 
5905
  *-*-mingw*)
 
5906
    # gcc leaves a trailing carriage return which upsets mingw
 
5907
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5908
  *)
 
5909
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5910
  esac
 
5911
  case $ac_prog in
 
5912
    # Accept absolute paths.
 
5913
    [\\/]* | ?:[\\/]*)
 
5914
      re_direlt='/[^/][^/]*/\.\./'
 
5915
      # Canonicalize the pathname of ld
 
5916
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5917
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5918
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5919
      done
 
5920
      test -z "$LD" && LD="$ac_prog"
 
5921
      ;;
 
5922
  "")
 
5923
    # If it fails, then pretend we aren't using GCC.
 
5924
    ac_prog=ld
 
5925
    ;;
 
5926
  *)
 
5927
    # If it is relative, then search for the first ld in PATH.
 
5928
    with_gnu_ld=unknown
 
5929
    ;;
 
5930
  esac
 
5931
elif test "$with_gnu_ld" = yes; then
 
5932
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5933
$as_echo_n "checking for GNU ld... " >&6; }
 
5934
else
 
5935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5936
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5937
fi
 
5938
if ${lt_cv_path_LD+:} false; then :
 
5939
  $as_echo_n "(cached) " >&6
 
5940
else
 
5941
  if test -z "$LD"; then
 
5942
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5943
  for ac_dir in $PATH; do
 
5944
    IFS="$lt_save_ifs"
 
5945
    test -z "$ac_dir" && ac_dir=.
 
5946
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5947
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5948
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5949
      # but apparently some variants of GNU ld only accept -v.
 
5950
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5951
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5952
      *GNU* | *'with BFD'*)
 
5953
        test "$with_gnu_ld" != no && break
 
5954
        ;;
 
5955
      *)
 
5956
        test "$with_gnu_ld" != yes && break
 
5957
        ;;
 
5958
      esac
 
5959
    fi
 
5960
  done
 
5961
  IFS="$lt_save_ifs"
 
5962
else
 
5963
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5964
fi
 
5965
fi
 
5966
 
 
5967
LD="$lt_cv_path_LD"
 
5968
if test -n "$LD"; then
 
5969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5970
$as_echo "$LD" >&6; }
 
5971
else
 
5972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5973
$as_echo "no" >&6; }
 
5974
fi
 
5975
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5977
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5978
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5979
  $as_echo_n "(cached) " >&6
 
5980
else
 
5981
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5982
case `$LD -v 2>&1 </dev/null` in
 
5983
*GNU* | *'with BFD'*)
 
5984
  lt_cv_prog_gnu_ld=yes
 
5985
  ;;
 
5986
*)
 
5987
  lt_cv_prog_gnu_ld=no
 
5988
  ;;
 
5989
esac
 
5990
fi
 
5991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5992
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5993
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
6004
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
6005
if ${lt_cv_path_NM+:} false; then :
 
6006
  $as_echo_n "(cached) " >&6
 
6007
else
 
6008
  if test -n "$NM"; then
 
6009
  # Let the user override the test.
 
6010
  lt_cv_path_NM="$NM"
 
6011
else
 
6012
  lt_nm_to_check="${ac_tool_prefix}nm"
 
6013
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
6014
    lt_nm_to_check="$lt_nm_to_check nm"
 
6015
  fi
 
6016
  for lt_tmp_nm in $lt_nm_to_check; do
 
6017
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6018
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
6019
      IFS="$lt_save_ifs"
 
6020
      test -z "$ac_dir" && ac_dir=.
 
6021
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
6022
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6023
        # Check to see if the nm accepts a BSD-compat flag.
 
6024
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6025
        #   nm: unknown option "B" ignored
 
6026
        # Tru64's nm complains that /dev/null is an invalid object file
 
6027
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6028
        */dev/null* | *'Invalid file or object type'*)
 
6029
          lt_cv_path_NM="$tmp_nm -B"
 
6030
          break
 
6031
          ;;
 
6032
        *)
 
6033
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6034
          */dev/null*)
 
6035
            lt_cv_path_NM="$tmp_nm -p"
 
6036
            break
 
6037
            ;;
 
6038
          *)
 
6039
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6040
            continue # so that we can try to find one that supports BSD flags
 
6041
            ;;
 
6042
          esac
 
6043
          ;;
 
6044
        esac
 
6045
      fi
 
6046
    done
 
6047
    IFS="$lt_save_ifs"
 
6048
  done
 
6049
  : ${lt_cv_path_NM=no}
 
6050
fi
 
6051
fi
 
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
6053
$as_echo "$lt_cv_path_NM" >&6; }
 
6054
if test "$lt_cv_path_NM" != "no"; then
 
6055
  NM="$lt_cv_path_NM"
 
6056
else
 
6057
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
6058
  if test -n "$DUMPBIN"; then :
 
6059
    # Let the user override the test.
 
6060
  else
 
6061
    if test -n "$ac_tool_prefix"; then
 
6062
  for ac_prog in dumpbin "link -dump"
 
6063
  do
 
6064
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6065
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6067
$as_echo_n "checking for $ac_word... " >&6; }
 
6068
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
6069
  $as_echo_n "(cached) " >&6
 
6070
else
 
6071
  if test -n "$DUMPBIN"; then
 
6072
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
6073
else
 
6074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6075
for as_dir in $PATH
 
6076
do
 
6077
  IFS=$as_save_IFS
 
6078
  test -z "$as_dir" && as_dir=.
 
6079
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6080
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6081
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
6082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6083
    break 2
 
6084
  fi
 
6085
done
 
6086
  done
 
6087
IFS=$as_save_IFS
 
6088
 
 
6089
fi
 
6090
fi
 
6091
DUMPBIN=$ac_cv_prog_DUMPBIN
 
6092
if test -n "$DUMPBIN"; then
 
6093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
6094
$as_echo "$DUMPBIN" >&6; }
 
6095
else
 
6096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6097
$as_echo "no" >&6; }
 
6098
fi
 
6099
 
 
6100
 
 
6101
    test -n "$DUMPBIN" && break
 
6102
  done
 
6103
fi
 
6104
if test -z "$DUMPBIN"; then
 
6105
  ac_ct_DUMPBIN=$DUMPBIN
 
6106
  for ac_prog in dumpbin "link -dump"
 
6107
do
 
6108
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6109
set dummy $ac_prog; ac_word=$2
 
6110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6111
$as_echo_n "checking for $ac_word... " >&6; }
 
6112
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
6113
  $as_echo_n "(cached) " >&6
 
6114
else
 
6115
  if test -n "$ac_ct_DUMPBIN"; then
 
6116
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
6117
else
 
6118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6119
for as_dir in $PATH
 
6120
do
 
6121
  IFS=$as_save_IFS
 
6122
  test -z "$as_dir" && as_dir=.
 
6123
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6124
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6125
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
6126
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6127
    break 2
 
6128
  fi
 
6129
done
 
6130
  done
 
6131
IFS=$as_save_IFS
 
6132
 
 
6133
fi
 
6134
fi
 
6135
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
6136
if test -n "$ac_ct_DUMPBIN"; then
 
6137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
6138
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
6139
else
 
6140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6141
$as_echo "no" >&6; }
 
6142
fi
 
6143
 
 
6144
 
 
6145
  test -n "$ac_ct_DUMPBIN" && break
 
6146
done
 
6147
 
 
6148
  if test "x$ac_ct_DUMPBIN" = x; then
 
6149
    DUMPBIN=":"
 
6150
  else
 
6151
    case $cross_compiling:$ac_tool_warned in
 
6152
yes:)
 
6153
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6154
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6155
ac_tool_warned=yes ;;
 
6156
esac
 
6157
    DUMPBIN=$ac_ct_DUMPBIN
 
6158
  fi
 
6159
fi
 
6160
 
 
6161
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
6162
    *COFF*)
 
6163
      DUMPBIN="$DUMPBIN -symbols"
 
6164
      ;;
 
6165
    *)
 
6166
      DUMPBIN=:
 
6167
      ;;
 
6168
    esac
 
6169
  fi
 
6170
 
 
6171
  if test "$DUMPBIN" != ":"; then
 
6172
    NM="$DUMPBIN"
 
6173
  fi
 
6174
fi
 
6175
test -z "$NM" && NM=nm
 
6176
 
 
6177
 
 
6178
 
 
6179
 
 
6180
 
 
6181
 
 
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
6183
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
6184
if ${lt_cv_nm_interface+:} false; then :
 
6185
  $as_echo_n "(cached) " >&6
 
6186
else
 
6187
  lt_cv_nm_interface="BSD nm"
 
6188
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6189
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
6190
  (eval "$ac_compile" 2>conftest.err)
 
6191
  cat conftest.err >&5
 
6192
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6193
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
6194
  cat conftest.err >&5
 
6195
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
6196
  cat conftest.out >&5
 
6197
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
6198
    lt_cv_nm_interface="MS dumpbin"
 
6199
  fi
 
6200
  rm -f conftest*
 
6201
fi
 
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
6203
$as_echo "$lt_cv_nm_interface" >&6; }
 
6204
 
 
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
6206
$as_echo_n "checking whether ln -s works... " >&6; }
 
6207
LN_S=$as_ln_s
 
6208
if test "$LN_S" = "ln -s"; then
 
6209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6210
$as_echo "yes" >&6; }
 
6211
else
 
6212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
6213
$as_echo "no, using $LN_S" >&6; }
 
6214
fi
 
6215
 
 
6216
# find the maximum length of command line arguments
 
6217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
6218
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6219
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
6220
  $as_echo_n "(cached) " >&6
 
6221
else
 
6222
    i=0
 
6223
  teststring="ABCD"
 
6224
 
 
6225
  case $build_os in
 
6226
  msdosdjgpp*)
 
6227
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6228
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6229
    # during glob expansion).  Even if it were fixed, the result of this
 
6230
    # check would be larger than it should be.
 
6231
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6232
    ;;
 
6233
 
 
6234
  gnu*)
 
6235
    # Under GNU Hurd, this test is not required because there is
 
6236
    # no limit to the length of command line arguments.
 
6237
    # Libtool will interpret -1 as no limit whatsoever
 
6238
    lt_cv_sys_max_cmd_len=-1;
 
6239
    ;;
 
6240
 
 
6241
  cygwin* | mingw* | cegcc*)
 
6242
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6243
    # about 5 minutes as the teststring grows exponentially.
 
6244
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6245
    # you end up with a "frozen" computer, even though with patience
 
6246
    # the test eventually succeeds (with a max line length of 256k).
 
6247
    # Instead, let's just punt: use the minimum linelength reported by
 
6248
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6249
    lt_cv_sys_max_cmd_len=8192;
 
6250
    ;;
 
6251
 
 
6252
  mint*)
 
6253
    # On MiNT this can take a long time and run out of memory.
 
6254
    lt_cv_sys_max_cmd_len=8192;
 
6255
    ;;
 
6256
 
 
6257
  amigaos*)
 
6258
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6259
    # So we just punt and use a minimum line length of 8192.
 
6260
    lt_cv_sys_max_cmd_len=8192;
 
6261
    ;;
 
6262
 
 
6263
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6264
    # This has been around since 386BSD, at least.  Likely further.
 
6265
    if test -x /sbin/sysctl; then
 
6266
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6267
    elif test -x /usr/sbin/sysctl; then
 
6268
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6269
    else
 
6270
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6271
    fi
 
6272
    # And add a safety zone
 
6273
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6274
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6275
    ;;
 
6276
 
 
6277
  interix*)
 
6278
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6279
    lt_cv_sys_max_cmd_len=196608
 
6280
    ;;
 
6281
 
 
6282
  os2*)
 
6283
    # The test takes a long time on OS/2.
 
6284
    lt_cv_sys_max_cmd_len=8192
 
6285
    ;;
 
6286
 
 
6287
  osf*)
 
6288
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6289
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6290
    # nice to cause kernel panics so lets avoid the loop below.
 
6291
    # First set a reasonable default.
 
6292
    lt_cv_sys_max_cmd_len=16384
 
6293
    #
 
6294
    if test -x /sbin/sysconfig; then
 
6295
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6296
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6297
      esac
 
6298
    fi
 
6299
    ;;
 
6300
  sco3.2v5*)
 
6301
    lt_cv_sys_max_cmd_len=102400
 
6302
    ;;
 
6303
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6304
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6305
    if test -n "$kargmax"; then
 
6306
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6307
    else
 
6308
      lt_cv_sys_max_cmd_len=32768
 
6309
    fi
 
6310
    ;;
 
6311
  *)
 
6312
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6313
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
6314
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
6315
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6316
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6317
    else
 
6318
      # Make teststring a little bigger before we do anything with it.
 
6319
      # a 1K string should be a reasonable start.
 
6320
      for i in 1 2 3 4 5 6 7 8 ; do
 
6321
        teststring=$teststring$teststring
 
6322
      done
 
6323
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6324
      # If test is not a shell built-in, we'll probably end up computing a
 
6325
      # maximum length that is only half of the actual maximum length, but
 
6326
      # we can't tell.
 
6327
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
6328
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
6329
              test $i != 17 # 1/2 MB should be enough
 
6330
      do
 
6331
        i=`expr $i + 1`
 
6332
        teststring=$teststring$teststring
 
6333
      done
 
6334
      # Only check the string length outside the loop.
 
6335
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6336
      teststring=
 
6337
      # Add a significant safety factor because C++ compilers can tack on
 
6338
      # massive amounts of additional arguments before passing them to the
 
6339
      # linker.  It appears as though 1/2 is a usable value.
 
6340
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6341
    fi
 
6342
    ;;
 
6343
  esac
 
6344
 
 
6345
fi
 
6346
 
 
6347
if test -n $lt_cv_sys_max_cmd_len ; then
 
6348
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
6349
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6350
else
 
6351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
6352
$as_echo "none" >&6; }
 
6353
fi
 
6354
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6355
 
 
6356
 
 
6357
 
 
6358
 
 
6359
 
 
6360
 
 
6361
: ${CP="cp -f"}
 
6362
: ${MV="mv -f"}
 
6363
: ${RM="rm -f"}
 
6364
 
 
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
6366
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
6367
# Try some XSI features
 
6368
xsi_shell=no
 
6369
( _lt_dummy="a/b/c"
 
6370
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
6371
      = c,a/b,b/c, \
 
6372
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6373
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6374
  && xsi_shell=yes
 
6375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
6376
$as_echo "$xsi_shell" >&6; }
 
6377
 
 
6378
 
 
6379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
6380
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
6381
lt_shell_append=no
 
6382
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6383
    >/dev/null 2>&1 \
 
6384
  && lt_shell_append=yes
 
6385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
6386
$as_echo "$lt_shell_append" >&6; }
 
6387
 
 
6388
 
 
6389
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6390
  lt_unset=unset
 
6391
else
 
6392
  lt_unset=false
 
6393
fi
 
6394
 
 
6395
 
 
6396
 
 
6397
 
 
6398
 
 
6399
# test EBCDIC or ASCII
 
6400
case `echo X|tr X '\101'` in
 
6401
 A) # ASCII based system
 
6402
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6403
  lt_SP2NL='tr \040 \012'
 
6404
  lt_NL2SP='tr \015\012 \040\040'
 
6405
  ;;
 
6406
 *) # EBCDIC based system
 
6407
  lt_SP2NL='tr \100 \n'
 
6408
  lt_NL2SP='tr \r\n \100\100'
 
6409
  ;;
 
6410
esac
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
6421
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
6422
if ${lt_cv_to_host_file_cmd+:} false; then :
 
6423
  $as_echo_n "(cached) " >&6
 
6424
else
 
6425
  case $host in
 
6426
  *-*-mingw* )
 
6427
    case $build in
 
6428
      *-*-mingw* ) # actually msys
 
6429
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
6430
        ;;
 
6431
      *-*-cygwin* )
 
6432
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
6433
        ;;
 
6434
      * ) # otherwise, assume *nix
 
6435
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
6436
        ;;
 
6437
    esac
 
6438
    ;;
 
6439
  *-*-cygwin* )
 
6440
    case $build in
 
6441
      *-*-mingw* ) # actually msys
 
6442
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
6443
        ;;
 
6444
      *-*-cygwin* )
 
6445
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
6446
        ;;
 
6447
      * ) # otherwise, assume *nix
 
6448
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
6449
        ;;
 
6450
    esac
 
6451
    ;;
 
6452
  * ) # unhandled hosts (and "normal" native builds)
 
6453
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
6454
    ;;
 
6455
esac
 
6456
 
 
6457
fi
 
6458
 
 
6459
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
6461
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
6462
 
 
6463
 
 
6464
 
 
6465
 
 
6466
 
 
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
6468
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
6469
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
6470
  $as_echo_n "(cached) " >&6
 
6471
else
 
6472
  #assume ordinary cross tools, or native build.
 
6473
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
6474
case $host in
 
6475
  *-*-mingw* )
 
6476
    case $build in
 
6477
      *-*-mingw* ) # actually msys
 
6478
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
6479
        ;;
 
6480
    esac
 
6481
    ;;
 
6482
esac
 
6483
 
 
6484
fi
 
6485
 
 
6486
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
6487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
6488
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
6495
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
6496
if ${lt_cv_ld_reload_flag+:} false; then :
 
6497
  $as_echo_n "(cached) " >&6
 
6498
else
 
6499
  lt_cv_ld_reload_flag='-r'
 
6500
fi
 
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
6502
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
6503
reload_flag=$lt_cv_ld_reload_flag
 
6504
case $reload_flag in
 
6505
"" | " "*) ;;
 
6506
*) reload_flag=" $reload_flag" ;;
 
6507
esac
 
6508
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6509
case $host_os in
 
6510
  cygwin* | mingw* | pw32* | cegcc*)
 
6511
    if test "$GCC" != yes; then
 
6512
      reload_cmds=false
 
6513
    fi
 
6514
    ;;
 
6515
  darwin*)
 
6516
    if test "$GCC" = yes; then
 
6517
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6518
    else
 
6519
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6520
    fi
 
6521
    ;;
 
6522
esac
 
6523
 
 
6524
 
 
6525
 
 
6526
 
 
6527
 
 
6528
 
 
6529
 
 
6530
 
 
6531
 
 
6532
if test -n "$ac_tool_prefix"; then
 
6533
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6534
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6536
$as_echo_n "checking for $ac_word... " >&6; }
 
6537
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
6538
  $as_echo_n "(cached) " >&6
 
6539
else
 
6540
  if test -n "$OBJDUMP"; then
 
6541
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6542
else
 
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6544
for as_dir in $PATH
 
6545
do
 
6546
  IFS=$as_save_IFS
 
6547
  test -z "$as_dir" && as_dir=.
 
6548
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6549
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6550
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6551
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6552
    break 2
 
6553
  fi
 
6554
done
 
6555
  done
 
6556
IFS=$as_save_IFS
 
6557
 
 
6558
fi
 
6559
fi
 
6560
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6561
if test -n "$OBJDUMP"; then
 
6562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6563
$as_echo "$OBJDUMP" >&6; }
 
6564
else
 
6565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6566
$as_echo "no" >&6; }
 
6567
fi
 
6568
 
 
6569
 
 
6570
fi
 
6571
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6572
  ac_ct_OBJDUMP=$OBJDUMP
 
6573
  # Extract the first word of "objdump", so it can be a program name with args.
 
6574
set dummy objdump; ac_word=$2
 
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6576
$as_echo_n "checking for $ac_word... " >&6; }
 
6577
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
6578
  $as_echo_n "(cached) " >&6
 
6579
else
 
6580
  if test -n "$ac_ct_OBJDUMP"; then
 
6581
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6582
else
 
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6584
for as_dir in $PATH
 
6585
do
 
6586
  IFS=$as_save_IFS
 
6587
  test -z "$as_dir" && as_dir=.
 
6588
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6589
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6590
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6592
    break 2
 
6593
  fi
 
6594
done
 
6595
  done
 
6596
IFS=$as_save_IFS
 
6597
 
 
6598
fi
 
6599
fi
 
6600
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6601
if test -n "$ac_ct_OBJDUMP"; then
 
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6603
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6604
else
 
6605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6606
$as_echo "no" >&6; }
 
6607
fi
 
6608
 
 
6609
  if test "x$ac_ct_OBJDUMP" = x; then
 
6610
    OBJDUMP="false"
 
6611
  else
 
6612
    case $cross_compiling:$ac_tool_warned in
 
6613
yes:)
 
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6616
ac_tool_warned=yes ;;
 
6617
esac
 
6618
    OBJDUMP=$ac_ct_OBJDUMP
 
6619
  fi
 
6620
else
 
6621
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6622
fi
 
6623
 
 
6624
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6635
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6636
if ${lt_cv_deplibs_check_method+:} false; then :
 
6637
  $as_echo_n "(cached) " >&6
 
6638
else
 
6639
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6640
lt_cv_file_magic_test_file=
 
6641
lt_cv_deplibs_check_method='unknown'
 
6642
# Need to set the preceding variable on all platforms that support
 
6643
# interlibrary dependencies.
 
6644
# 'none' -- dependencies not supported.
 
6645
# `unknown' -- same as none, but documents that we really don't know.
 
6646
# 'pass_all' -- all dependencies passed with no checks.
 
6647
# 'test_compile' -- check by making test program.
 
6648
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6649
# which responds to the $file_magic_cmd with a given extended regex.
 
6650
# If you have `file' or equivalent on your system and you're not sure
 
6651
# whether `pass_all' will *always* work, you probably want this one.
 
6652
 
 
6653
case $host_os in
 
6654
aix[4-9]*)
 
6655
  lt_cv_deplibs_check_method=pass_all
 
6656
  ;;
 
6657
 
 
6658
beos*)
 
6659
  lt_cv_deplibs_check_method=pass_all
 
6660
  ;;
 
6661
 
 
6662
bsdi[45]*)
 
6663
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6664
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6665
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6666
  ;;
 
6667
 
 
6668
cygwin*)
 
6669
  # func_win32_libid is a shell function defined in ltmain.sh
 
6670
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6671
  lt_cv_file_magic_cmd='func_win32_libid'
 
6672
  ;;
 
6673
 
 
6674
mingw* | pw32*)
 
6675
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6676
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6677
  # unless we find 'file', for example because we are cross-compiling.
 
6678
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6679
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
6680
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6681
    lt_cv_file_magic_cmd='func_win32_libid'
 
6682
  else
 
6683
    # Keep this pattern in sync with the one in func_win32_libid.
 
6684
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6685
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6686
  fi
 
6687
  ;;
 
6688
 
 
6689
cegcc*)
 
6690
  # use the weaker test based on 'objdump'. See mingw*.
 
6691
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6692
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6693
  ;;
 
6694
 
 
6695
darwin* | rhapsody*)
 
6696
  lt_cv_deplibs_check_method=pass_all
 
6697
  ;;
 
6698
 
 
6699
freebsd* | dragonfly*)
 
6700
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6701
    case $host_cpu in
 
6702
    i*86 )
 
6703
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6704
      # Let's accept both of them until this is cleared up.
 
6705
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6706
      lt_cv_file_magic_cmd=/usr/bin/file
 
6707
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6708
      ;;
 
6709
    esac
 
6710
  else
 
6711
    lt_cv_deplibs_check_method=pass_all
 
6712
  fi
 
6713
  ;;
 
6714
 
 
6715
haiku*)
 
6716
  lt_cv_deplibs_check_method=pass_all
 
6717
  ;;
 
6718
 
 
6719
hpux10.20* | hpux11*)
 
6720
  lt_cv_file_magic_cmd=/usr/bin/file
 
6721
  case $host_cpu in
 
6722
  ia64*)
 
6723
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6724
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6725
    ;;
 
6726
  hppa*64*)
 
6727
    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]'
 
6728
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6729
    ;;
 
6730
  *)
 
6731
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6732
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6733
    ;;
 
6734
  esac
 
6735
  ;;
 
6736
 
 
6737
interix[3-9]*)
 
6738
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6739
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6740
  ;;
 
6741
 
 
6742
irix5* | irix6* | nonstopux*)
 
6743
  case $LD in
 
6744
  *-32|*"-32 ") libmagic=32-bit;;
 
6745
  *-n32|*"-n32 ") libmagic=N32;;
 
6746
  *-64|*"-64 ") libmagic=64-bit;;
 
6747
  *) libmagic=never-match;;
 
6748
  esac
 
6749
  lt_cv_deplibs_check_method=pass_all
 
6750
  ;;
 
6751
 
 
6752
# This must be glibc/ELF.
 
6753
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
6754
  lt_cv_deplibs_check_method=pass_all
 
6755
  ;;
 
6756
 
 
6757
netbsd* | netbsdelf*-gnu)
 
6758
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6759
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6760
  else
 
6761
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6762
  fi
 
6763
  ;;
 
6764
 
 
6765
newos6*)
 
6766
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6767
  lt_cv_file_magic_cmd=/usr/bin/file
 
6768
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6769
  ;;
 
6770
 
 
6771
*nto* | *qnx*)
 
6772
  lt_cv_deplibs_check_method=pass_all
 
6773
  ;;
 
6774
 
 
6775
openbsd*)
 
6776
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6777
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6778
  else
 
6779
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6780
  fi
 
6781
  ;;
 
6782
 
 
6783
osf3* | osf4* | osf5*)
 
6784
  lt_cv_deplibs_check_method=pass_all
 
6785
  ;;
 
6786
 
 
6787
rdos*)
 
6788
  lt_cv_deplibs_check_method=pass_all
 
6789
  ;;
 
6790
 
 
6791
solaris*)
 
6792
  lt_cv_deplibs_check_method=pass_all
 
6793
  ;;
 
6794
 
 
6795
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6796
  lt_cv_deplibs_check_method=pass_all
 
6797
  ;;
 
6798
 
 
6799
sysv4 | sysv4.3*)
 
6800
  case $host_vendor in
 
6801
  motorola)
 
6802
    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]'
 
6803
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6804
    ;;
 
6805
  ncr)
 
6806
    lt_cv_deplibs_check_method=pass_all
 
6807
    ;;
 
6808
  sequent)
 
6809
    lt_cv_file_magic_cmd='/bin/file'
 
6810
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6811
    ;;
 
6812
  sni)
 
6813
    lt_cv_file_magic_cmd='/bin/file'
 
6814
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6815
    lt_cv_file_magic_test_file=/lib/libc.so
 
6816
    ;;
 
6817
  siemens)
 
6818
    lt_cv_deplibs_check_method=pass_all
 
6819
    ;;
 
6820
  pc)
 
6821
    lt_cv_deplibs_check_method=pass_all
 
6822
    ;;
 
6823
  esac
 
6824
  ;;
 
6825
 
 
6826
tpf*)
 
6827
  lt_cv_deplibs_check_method=pass_all
 
6828
  ;;
 
6829
esac
 
6830
 
 
6831
fi
 
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6833
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6834
 
 
6835
file_magic_glob=
 
6836
want_nocaseglob=no
 
6837
if test "$build" = "$host"; then
 
6838
  case $host_os in
 
6839
  mingw* | pw32*)
 
6840
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6841
      want_nocaseglob=yes
 
6842
    else
 
6843
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6844
    fi
 
6845
    ;;
 
6846
  esac
 
6847
fi
 
6848
 
 
6849
file_magic_cmd=$lt_cv_file_magic_cmd
 
6850
deplibs_check_method=$lt_cv_deplibs_check_method
 
6851
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
if test -n "$ac_tool_prefix"; then
 
6875
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6876
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6878
$as_echo_n "checking for $ac_word... " >&6; }
 
6879
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6880
  $as_echo_n "(cached) " >&6
 
6881
else
 
6882
  if test -n "$DLLTOOL"; then
 
6883
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6884
else
 
6885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6886
for as_dir in $PATH
 
6887
do
 
6888
  IFS=$as_save_IFS
 
6889
  test -z "$as_dir" && as_dir=.
 
6890
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6891
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6892
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6893
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6894
    break 2
 
6895
  fi
 
6896
done
 
6897
  done
 
6898
IFS=$as_save_IFS
 
6899
 
 
6900
fi
 
6901
fi
 
6902
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6903
if test -n "$DLLTOOL"; then
 
6904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6905
$as_echo "$DLLTOOL" >&6; }
 
6906
else
 
6907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6908
$as_echo "no" >&6; }
 
6909
fi
 
6910
 
 
6911
 
 
6912
fi
 
6913
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6914
  ac_ct_DLLTOOL=$DLLTOOL
 
6915
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6916
set dummy dlltool; ac_word=$2
 
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6918
$as_echo_n "checking for $ac_word... " >&6; }
 
6919
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6920
  $as_echo_n "(cached) " >&6
 
6921
else
 
6922
  if test -n "$ac_ct_DLLTOOL"; then
 
6923
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6924
else
 
6925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6926
for as_dir in $PATH
 
6927
do
 
6928
  IFS=$as_save_IFS
 
6929
  test -z "$as_dir" && as_dir=.
 
6930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6932
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6934
    break 2
 
6935
  fi
 
6936
done
 
6937
  done
 
6938
IFS=$as_save_IFS
 
6939
 
 
6940
fi
 
6941
fi
 
6942
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6943
if test -n "$ac_ct_DLLTOOL"; then
 
6944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6945
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6946
else
 
6947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6948
$as_echo "no" >&6; }
 
6949
fi
 
6950
 
 
6951
  if test "x$ac_ct_DLLTOOL" = x; then
 
6952
    DLLTOOL="false"
 
6953
  else
 
6954
    case $cross_compiling:$ac_tool_warned in
 
6955
yes:)
 
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6957
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6958
ac_tool_warned=yes ;;
 
6959
esac
 
6960
    DLLTOOL=$ac_ct_DLLTOOL
 
6961
  fi
 
6962
else
 
6963
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6964
fi
 
6965
 
 
6966
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
 
 
6977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6978
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6979
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6980
  $as_echo_n "(cached) " >&6
 
6981
else
 
6982
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6983
 
 
6984
case $host_os in
 
6985
cygwin* | mingw* | pw32* | cegcc*)
 
6986
  # two different shell functions defined in ltmain.sh
 
6987
  # decide which to use based on capabilities of $DLLTOOL
 
6988
  case `$DLLTOOL --help 2>&1` in
 
6989
  *--identify-strict*)
 
6990
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6991
    ;;
 
6992
  *)
 
6993
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6994
    ;;
 
6995
  esac
 
6996
  ;;
 
6997
*)
 
6998
  # fallback: assume linklib IS sharedlib
 
6999
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
7000
  ;;
 
7001
esac
 
7002
 
 
7003
fi
 
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
7005
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
7006
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
7007
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
7008
 
 
7009
 
 
7010
 
 
7011
 
 
7012
 
 
7013
 
 
7014
 
 
7015
if test -n "$ac_tool_prefix"; then
 
7016
  for ac_prog in ar
 
7017
  do
 
7018
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7019
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7021
$as_echo_n "checking for $ac_word... " >&6; }
 
7022
if ${ac_cv_prog_AR+:} false; then :
 
7023
  $as_echo_n "(cached) " >&6
 
7024
else
 
7025
  if test -n "$AR"; then
 
7026
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7027
else
 
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7029
for as_dir in $PATH
 
7030
do
 
7031
  IFS=$as_save_IFS
 
7032
  test -z "$as_dir" && as_dir=.
 
7033
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7034
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7035
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
7036
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7037
    break 2
 
7038
  fi
 
7039
done
 
7040
  done
 
7041
IFS=$as_save_IFS
 
7042
 
 
7043
fi
 
7044
fi
 
7045
AR=$ac_cv_prog_AR
 
7046
if test -n "$AR"; then
 
7047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
7048
$as_echo "$AR" >&6; }
 
7049
else
 
7050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7051
$as_echo "no" >&6; }
 
7052
fi
 
7053
 
 
7054
 
 
7055
    test -n "$AR" && break
 
7056
  done
 
7057
fi
 
7058
if test -z "$AR"; then
 
7059
  ac_ct_AR=$AR
 
7060
  for ac_prog in ar
 
7061
do
 
7062
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7063
set dummy $ac_prog; ac_word=$2
 
7064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7065
$as_echo_n "checking for $ac_word... " >&6; }
 
7066
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
7067
  $as_echo_n "(cached) " >&6
 
7068
else
 
7069
  if test -n "$ac_ct_AR"; then
 
7070
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7071
else
 
7072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7073
for as_dir in $PATH
 
7074
do
 
7075
  IFS=$as_save_IFS
 
7076
  test -z "$as_dir" && as_dir=.
 
7077
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7078
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7079
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
7080
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7081
    break 2
 
7082
  fi
 
7083
done
 
7084
  done
 
7085
IFS=$as_save_IFS
 
7086
 
 
7087
fi
 
7088
fi
 
7089
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7090
if test -n "$ac_ct_AR"; then
 
7091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
7092
$as_echo "$ac_ct_AR" >&6; }
 
7093
else
 
7094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7095
$as_echo "no" >&6; }
 
7096
fi
 
7097
 
 
7098
 
 
7099
  test -n "$ac_ct_AR" && break
 
7100
done
 
7101
 
 
7102
  if test "x$ac_ct_AR" = x; then
 
7103
    AR="false"
 
7104
  else
 
7105
    case $cross_compiling:$ac_tool_warned in
 
7106
yes:)
 
7107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7109
ac_tool_warned=yes ;;
 
7110
esac
 
7111
    AR=$ac_ct_AR
 
7112
  fi
 
7113
fi
 
7114
 
 
7115
: ${AR=ar}
 
7116
: ${AR_FLAGS=cru}
 
7117
 
 
7118
 
 
7119
 
 
7120
 
 
7121
 
 
7122
 
 
7123
 
 
7124
 
 
7125
 
 
7126
 
 
7127
 
 
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
7129
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
7130
if ${lt_cv_ar_at_file+:} false; then :
 
7131
  $as_echo_n "(cached) " >&6
 
7132
else
 
7133
  lt_cv_ar_at_file=no
 
7134
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7135
/* end confdefs.h.  */
 
7136
 
 
7137
int
 
7138
main ()
 
7139
{
 
7140
 
 
7141
  ;
 
7142
  return 0;
 
7143
}
 
7144
_ACEOF
 
7145
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7146
  echo conftest.$ac_objext > conftest.lst
 
7147
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
7148
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
7149
  (eval $lt_ar_try) 2>&5
 
7150
  ac_status=$?
 
7151
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7152
  test $ac_status = 0; }
 
7153
      if test "$ac_status" -eq 0; then
 
7154
        # Ensure the archiver fails upon bogus file names.
 
7155
        rm -f conftest.$ac_objext libconftest.a
 
7156
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
7157
  (eval $lt_ar_try) 2>&5
 
7158
  ac_status=$?
 
7159
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7160
  test $ac_status = 0; }
 
7161
        if test "$ac_status" -ne 0; then
 
7162
          lt_cv_ar_at_file=@
 
7163
        fi
 
7164
      fi
 
7165
      rm -f conftest.* libconftest.a
 
7166
 
 
7167
fi
 
7168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7169
 
 
7170
fi
 
7171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
7172
$as_echo "$lt_cv_ar_at_file" >&6; }
 
7173
 
 
7174
if test "x$lt_cv_ar_at_file" = xno; then
 
7175
  archiver_list_spec=
 
7176
else
 
7177
  archiver_list_spec=$lt_cv_ar_at_file
 
7178
fi
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
 
7185
 
 
7186
if test -n "$ac_tool_prefix"; then
 
7187
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7188
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7190
$as_echo_n "checking for $ac_word... " >&6; }
 
7191
if ${ac_cv_prog_STRIP+:} false; then :
 
7192
  $as_echo_n "(cached) " >&6
 
7193
else
 
7194
  if test -n "$STRIP"; then
 
7195
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7196
else
 
7197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7198
for as_dir in $PATH
 
7199
do
 
7200
  IFS=$as_save_IFS
 
7201
  test -z "$as_dir" && as_dir=.
 
7202
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7203
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7204
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7205
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7206
    break 2
 
7207
  fi
 
7208
done
 
7209
  done
 
7210
IFS=$as_save_IFS
 
7211
 
 
7212
fi
 
7213
fi
 
7214
STRIP=$ac_cv_prog_STRIP
 
7215
if test -n "$STRIP"; then
 
7216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
7217
$as_echo "$STRIP" >&6; }
 
7218
else
 
7219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7220
$as_echo "no" >&6; }
 
7221
fi
 
7222
 
 
7223
 
 
7224
fi
 
7225
if test -z "$ac_cv_prog_STRIP"; then
 
7226
  ac_ct_STRIP=$STRIP
 
7227
  # Extract the first word of "strip", so it can be a program name with args.
 
7228
set dummy strip; ac_word=$2
 
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7230
$as_echo_n "checking for $ac_word... " >&6; }
 
7231
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
7232
  $as_echo_n "(cached) " >&6
 
7233
else
 
7234
  if test -n "$ac_ct_STRIP"; then
 
7235
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7236
else
 
7237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7238
for as_dir in $PATH
 
7239
do
 
7240
  IFS=$as_save_IFS
 
7241
  test -z "$as_dir" && as_dir=.
 
7242
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7244
    ac_cv_prog_ac_ct_STRIP="strip"
 
7245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7246
    break 2
 
7247
  fi
 
7248
done
 
7249
  done
 
7250
IFS=$as_save_IFS
 
7251
 
 
7252
fi
 
7253
fi
 
7254
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7255
if test -n "$ac_ct_STRIP"; then
 
7256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
7257
$as_echo "$ac_ct_STRIP" >&6; }
 
7258
else
 
7259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7260
$as_echo "no" >&6; }
 
7261
fi
 
7262
 
 
7263
  if test "x$ac_ct_STRIP" = x; then
 
7264
    STRIP=":"
 
7265
  else
 
7266
    case $cross_compiling:$ac_tool_warned in
 
7267
yes:)
 
7268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7270
ac_tool_warned=yes ;;
 
7271
esac
 
7272
    STRIP=$ac_ct_STRIP
 
7273
  fi
 
7274
else
 
7275
  STRIP="$ac_cv_prog_STRIP"
 
7276
fi
 
7277
 
 
7278
test -z "$STRIP" && STRIP=:
 
7279
 
 
7280
 
 
7281
 
 
7282
 
 
7283
 
 
7284
 
 
7285
if test -n "$ac_tool_prefix"; then
 
7286
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7287
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7289
$as_echo_n "checking for $ac_word... " >&6; }
 
7290
if ${ac_cv_prog_RANLIB+:} false; then :
 
7291
  $as_echo_n "(cached) " >&6
 
7292
else
 
7293
  if test -n "$RANLIB"; then
 
7294
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7295
else
 
7296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7297
for as_dir in $PATH
 
7298
do
 
7299
  IFS=$as_save_IFS
 
7300
  test -z "$as_dir" && as_dir=.
 
7301
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7302
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7303
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7304
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7305
    break 2
 
7306
  fi
 
7307
done
 
7308
  done
 
7309
IFS=$as_save_IFS
 
7310
 
 
7311
fi
 
7312
fi
 
7313
RANLIB=$ac_cv_prog_RANLIB
 
7314
if test -n "$RANLIB"; then
 
7315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
7316
$as_echo "$RANLIB" >&6; }
 
7317
else
 
7318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7319
$as_echo "no" >&6; }
 
7320
fi
 
7321
 
 
7322
 
 
7323
fi
 
7324
if test -z "$ac_cv_prog_RANLIB"; then
 
7325
  ac_ct_RANLIB=$RANLIB
 
7326
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7327
set dummy ranlib; ac_word=$2
 
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7329
$as_echo_n "checking for $ac_word... " >&6; }
 
7330
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
7331
  $as_echo_n "(cached) " >&6
 
7332
else
 
7333
  if test -n "$ac_ct_RANLIB"; then
 
7334
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7335
else
 
7336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7337
for as_dir in $PATH
 
7338
do
 
7339
  IFS=$as_save_IFS
 
7340
  test -z "$as_dir" && as_dir=.
 
7341
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7342
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7343
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7345
    break 2
 
7346
  fi
 
7347
done
 
7348
  done
 
7349
IFS=$as_save_IFS
 
7350
 
 
7351
fi
 
7352
fi
 
7353
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7354
if test -n "$ac_ct_RANLIB"; then
 
7355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
7356
$as_echo "$ac_ct_RANLIB" >&6; }
 
7357
else
 
7358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7359
$as_echo "no" >&6; }
 
7360
fi
 
7361
 
 
7362
  if test "x$ac_ct_RANLIB" = x; then
 
7363
    RANLIB=":"
 
7364
  else
 
7365
    case $cross_compiling:$ac_tool_warned in
 
7366
yes:)
 
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7368
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7369
ac_tool_warned=yes ;;
 
7370
esac
 
7371
    RANLIB=$ac_ct_RANLIB
 
7372
  fi
 
7373
else
 
7374
  RANLIB="$ac_cv_prog_RANLIB"
 
7375
fi
 
7376
 
 
7377
test -z "$RANLIB" && RANLIB=:
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
# Determine commands to create old-style static archives.
 
7385
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7386
old_postinstall_cmds='chmod 644 $oldlib'
 
7387
old_postuninstall_cmds=
 
7388
 
 
7389
if test -n "$RANLIB"; then
 
7390
  case $host_os in
 
7391
  openbsd*)
 
7392
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
7393
    ;;
 
7394
  *)
 
7395
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
7396
    ;;
 
7397
  esac
 
7398
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
7399
fi
 
7400
 
 
7401
case $host_os in
 
7402
  darwin*)
 
7403
    lock_old_archive_extraction=yes ;;
 
7404
  *)
 
7405
    lock_old_archive_extraction=no ;;
 
7406
esac
 
7407
 
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
 
 
7420
 
 
7421
 
 
7422
 
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
 
7435
 
 
7436
 
 
7437
 
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
# If no C compiler was specified, use CC.
 
7447
LTCC=${LTCC-"$CC"}
 
7448
 
 
7449
# If no C compiler flags were specified, use CFLAGS.
 
7450
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7451
 
 
7452
# Allow CC to be a program name with arguments.
 
7453
compiler=$CC
 
7454
 
 
7455
 
 
7456
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
7458
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
7459
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
7460
  $as_echo_n "(cached) " >&6
 
7461
else
 
7462
 
 
7463
# These are sane defaults that work on at least a few old systems.
 
7464
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7465
 
 
7466
# Character class describing NM global symbol codes.
 
7467
symcode='[BCDEGRST]'
 
7468
 
 
7469
# Regexp to match symbols that can be accessed directly from C.
 
7470
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7471
 
 
7472
# Define system-specific variables.
 
7473
case $host_os in
 
7474
aix*)
 
7475
  symcode='[BCDT]'
 
7476
  ;;
 
7477
cygwin* | mingw* | pw32* | cegcc*)
 
7478
  symcode='[ABCDGISTW]'
 
7479
  ;;
 
7480
hpux*)
 
7481
  if test "$host_cpu" = ia64; then
 
7482
    symcode='[ABCDEGRST]'
 
7483
  fi
 
7484
  ;;
 
7485
irix* | nonstopux*)
 
7486
  symcode='[BCDEGRST]'
 
7487
  ;;
 
7488
osf*)
 
7489
  symcode='[BCDEGQRST]'
 
7490
  ;;
 
7491
solaris*)
 
7492
  symcode='[BDRT]'
 
7493
  ;;
 
7494
sco3.2v5*)
 
7495
  symcode='[DT]'
 
7496
  ;;
 
7497
sysv4.2uw2*)
 
7498
  symcode='[DT]'
 
7499
  ;;
 
7500
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7501
  symcode='[ABDT]'
 
7502
  ;;
 
7503
sysv4)
 
7504
  symcode='[DFNSTU]'
 
7505
  ;;
 
7506
esac
 
7507
 
 
7508
# If we're using GNU nm, then use its standard symbol codes.
 
7509
case `$NM -V 2>&1` in
 
7510
*GNU* | *'with BFD'*)
 
7511
  symcode='[ABCDGIRSTW]' ;;
 
7512
esac
 
7513
 
 
7514
# Transform an extracted symbol line into a proper C declaration.
 
7515
# Some systems (esp. on ia64) link data and code symbols differently,
 
7516
# so use this general approach.
 
7517
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7518
 
 
7519
# Transform an extracted symbol line into symbol name and symbol address
 
7520
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7521
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'"
 
7522
 
 
7523
# Handle CRLF in mingw tool chain
 
7524
opt_cr=
 
7525
case $build_os in
 
7526
mingw*)
 
7527
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7528
  ;;
 
7529
esac
 
7530
 
 
7531
# Try without a prefix underscore, then with it.
 
7532
for ac_symprfx in "" "_"; do
 
7533
 
 
7534
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7535
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7536
 
 
7537
  # Write the raw and C identifiers.
 
7538
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7539
    # Fake it for dumpbin and say T for any non-static function
 
7540
    # and D for any global variable.
 
7541
    # Also find C++ and __fastcall symbols from MSVC++,
 
7542
    # which start with @ or ?.
 
7543
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7544
"     {last_section=section; section=\$ 3};"\
 
7545
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
7546
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7547
"     \$ 0!~/External *\|/{next};"\
 
7548
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7549
"     {if(hide[section]) next};"\
 
7550
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7551
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7552
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7553
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7554
"     ' prfx=^$ac_symprfx"
 
7555
  else
 
7556
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7557
  fi
 
7558
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
7559
 
 
7560
  # Check to see that the pipe works correctly.
 
7561
  pipe_works=no
 
7562
 
 
7563
  rm -f conftest*
 
7564
  cat > conftest.$ac_ext <<_LT_EOF
 
7565
#ifdef __cplusplus
 
7566
extern "C" {
 
7567
#endif
 
7568
char nm_test_var;
 
7569
void nm_test_func(void);
 
7570
void nm_test_func(void){}
 
7571
#ifdef __cplusplus
 
7572
}
 
7573
#endif
 
7574
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7575
_LT_EOF
 
7576
 
 
7577
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7578
  (eval $ac_compile) 2>&5
 
7579
  ac_status=$?
 
7580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7581
  test $ac_status = 0; }; then
 
7582
    # Now try to grab the symbols.
 
7583
    nlist=conftest.nm
 
7584
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7585
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7586
  ac_status=$?
 
7587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7588
  test $ac_status = 0; } && test -s "$nlist"; then
 
7589
      # Try sorting and uniquifying the output.
 
7590
      if sort "$nlist" | uniq > "$nlist"T; then
 
7591
        mv -f "$nlist"T "$nlist"
 
7592
      else
 
7593
        rm -f "$nlist"T
 
7594
      fi
 
7595
 
 
7596
      # Make sure that we snagged all the symbols we need.
 
7597
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7598
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7599
          cat <<_LT_EOF > conftest.$ac_ext
 
7600
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7601
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
7602
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7603
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7604
# define LT_DLSYM_CONST
 
7605
#elif defined(__osf__)
 
7606
/* This system does not cope well with relocations in const data.  */
 
7607
# define LT_DLSYM_CONST
 
7608
#else
 
7609
# define LT_DLSYM_CONST const
 
7610
#endif
 
7611
 
 
7612
#ifdef __cplusplus
 
7613
extern "C" {
 
7614
#endif
 
7615
 
 
7616
_LT_EOF
 
7617
          # Now generate the symbol file.
 
7618
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7619
 
 
7620
          cat <<_LT_EOF >> conftest.$ac_ext
 
7621
 
 
7622
/* The mapping between symbol names and symbols.  */
 
7623
LT_DLSYM_CONST struct {
 
7624
  const char *name;
 
7625
  void       *address;
 
7626
}
 
7627
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7628
{
 
7629
  { "@PROGRAM@", (void *) 0 },
 
7630
_LT_EOF
 
7631
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7632
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7633
  {0, (void *) 0}
 
7634
};
 
7635
 
 
7636
/* This works around a problem in FreeBSD linker */
 
7637
#ifdef FREEBSD_WORKAROUND
 
7638
static const void *lt_preloaded_setup() {
 
7639
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7640
}
 
7641
#endif
 
7642
 
 
7643
#ifdef __cplusplus
 
7644
}
 
7645
#endif
 
7646
_LT_EOF
 
7647
          # Now try linking the two files.
 
7648
          mv conftest.$ac_objext conftstm.$ac_objext
 
7649
          lt_globsym_save_LIBS=$LIBS
 
7650
          lt_globsym_save_CFLAGS=$CFLAGS
 
7651
          LIBS="conftstm.$ac_objext"
 
7652
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7653
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7654
  (eval $ac_link) 2>&5
 
7655
  ac_status=$?
 
7656
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7657
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7658
            pipe_works=yes
 
7659
          fi
 
7660
          LIBS=$lt_globsym_save_LIBS
 
7661
          CFLAGS=$lt_globsym_save_CFLAGS
 
7662
        else
 
7663
          echo "cannot find nm_test_func in $nlist" >&5
 
7664
        fi
 
7665
      else
 
7666
        echo "cannot find nm_test_var in $nlist" >&5
 
7667
      fi
 
7668
    else
 
7669
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7670
    fi
 
7671
  else
 
7672
    echo "$progname: failed program was:" >&5
 
7673
    cat conftest.$ac_ext >&5
 
7674
  fi
 
7675
  rm -rf conftest* conftst*
 
7676
 
 
7677
  # Do not use the global_symbol_pipe unless it works.
 
7678
  if test "$pipe_works" = yes; then
 
7679
    break
 
7680
  else
 
7681
    lt_cv_sys_global_symbol_pipe=
 
7682
  fi
 
7683
done
 
7684
 
 
7685
fi
 
7686
 
 
7687
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7688
  lt_cv_sys_global_symbol_to_cdecl=
 
7689
fi
 
7690
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7692
$as_echo "failed" >&6; }
 
7693
else
 
7694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7695
$as_echo "ok" >&6; }
 
7696
fi
 
7697
 
 
7698
# Response file support.
 
7699
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7700
  nm_file_list_spec='@'
 
7701
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7702
  nm_file_list_spec='@'
 
7703
fi
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
 
 
7713
 
 
7714
 
 
7715
 
 
7716
 
 
7717
 
 
7718
 
 
7719
 
 
7720
 
 
7721
 
 
7722
 
 
7723
 
 
7724
 
 
7725
 
 
7726
 
 
7727
 
 
7728
 
 
7729
 
 
7730
 
 
7731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7732
$as_echo_n "checking for sysroot... " >&6; }
 
7733
 
 
7734
# Check whether --with-sysroot was given.
 
7735
if test "${with_sysroot+set}" = set; then :
 
7736
  withval=$with_sysroot;
 
7737
else
 
7738
  with_sysroot=no
 
7739
fi
 
7740
 
 
7741
 
 
7742
lt_sysroot=
 
7743
case ${with_sysroot} in #(
 
7744
 yes)
 
7745
   if test "$GCC" = yes; then
 
7746
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7747
   fi
 
7748
   ;; #(
 
7749
 /*)
 
7750
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7751
   ;; #(
 
7752
 no|'')
 
7753
   ;; #(
 
7754
 *)
 
7755
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7756
$as_echo "${with_sysroot}" >&6; }
 
7757
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7758
   ;;
 
7759
esac
 
7760
 
 
7761
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7762
$as_echo "${lt_sysroot:-no}" >&6; }
 
7763
 
 
7764
 
 
7765
 
 
7766
 
 
7767
 
 
7768
 
 
7769
# Check whether --enable-libtool-lock was given.
 
7770
if test "${enable_libtool_lock+set}" = set; then :
 
7771
  enableval=$enable_libtool_lock;
 
7772
fi
 
7773
 
 
7774
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7775
 
 
7776
# Some flags need to be propagated to the compiler or linker for good
 
7777
# libtool support.
 
7778
case $host in
 
7779
ia64-*-hpux*)
 
7780
  # Find out which ABI we are using.
 
7781
  echo 'int i;' > conftest.$ac_ext
 
7782
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7783
  (eval $ac_compile) 2>&5
 
7784
  ac_status=$?
 
7785
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7786
  test $ac_status = 0; }; then
 
7787
    case `/usr/bin/file conftest.$ac_objext` in
 
7788
      *ELF-32*)
 
7789
        HPUX_IA64_MODE="32"
 
7790
        ;;
 
7791
      *ELF-64*)
 
7792
        HPUX_IA64_MODE="64"
 
7793
        ;;
 
7794
    esac
 
7795
  fi
 
7796
  rm -rf conftest*
 
7797
  ;;
 
7798
*-*-irix6*)
 
7799
  # Find out which ABI we are using.
 
7800
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7801
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7802
  (eval $ac_compile) 2>&5
 
7803
  ac_status=$?
 
7804
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7805
  test $ac_status = 0; }; then
 
7806
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7807
      case `/usr/bin/file conftest.$ac_objext` in
 
7808
        *32-bit*)
 
7809
          LD="${LD-ld} -melf32bsmip"
 
7810
          ;;
 
7811
        *N32*)
 
7812
          LD="${LD-ld} -melf32bmipn32"
 
7813
          ;;
 
7814
        *64-bit*)
 
7815
          LD="${LD-ld} -melf64bmip"
 
7816
        ;;
 
7817
      esac
 
7818
    else
 
7819
      case `/usr/bin/file conftest.$ac_objext` in
 
7820
        *32-bit*)
 
7821
          LD="${LD-ld} -32"
 
7822
          ;;
 
7823
        *N32*)
 
7824
          LD="${LD-ld} -n32"
 
7825
          ;;
 
7826
        *64-bit*)
 
7827
          LD="${LD-ld} -64"
 
7828
          ;;
 
7829
      esac
 
7830
    fi
 
7831
  fi
 
7832
  rm -rf conftest*
 
7833
  ;;
 
7834
 
 
7835
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
7836
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7837
  # Find out which ABI we are using.
 
7838
  echo 'int i;' > conftest.$ac_ext
 
7839
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7840
  (eval $ac_compile) 2>&5
 
7841
  ac_status=$?
 
7842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7843
  test $ac_status = 0; }; then
 
7844
    case `/usr/bin/file conftest.o` in
 
7845
      *32-bit*)
 
7846
        case $host in
 
7847
          x86_64-*kfreebsd*-gnu)
 
7848
            LD="${LD-ld} -m elf_i386_fbsd"
 
7849
            ;;
 
7850
          x86_64-*linux*)
 
7851
            case `/usr/bin/file conftest.o` in
 
7852
              *x86-64*)
 
7853
                LD="${LD-ld} -m elf32_x86_64"
 
7854
                ;;
 
7855
              *)
 
7856
                LD="${LD-ld} -m elf_i386"
 
7857
                ;;
 
7858
            esac
 
7859
            ;;
 
7860
          powerpc64le-*)
 
7861
            LD="${LD-ld} -m elf32lppclinux"
 
7862
            ;;
 
7863
          powerpc64-*)
 
7864
            LD="${LD-ld} -m elf32ppclinux"
 
7865
            ;;
 
7866
          s390x-*linux*)
 
7867
            LD="${LD-ld} -m elf_s390"
 
7868
            ;;
 
7869
          sparc64-*linux*)
 
7870
            LD="${LD-ld} -m elf32_sparc"
 
7871
            ;;
 
7872
        esac
 
7873
        ;;
 
7874
      *64-bit*)
 
7875
        case $host in
 
7876
          x86_64-*kfreebsd*-gnu)
 
7877
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7878
            ;;
 
7879
          x86_64-*linux*)
 
7880
            LD="${LD-ld} -m elf_x86_64"
 
7881
            ;;
 
7882
          powerpcle-*)
 
7883
            LD="${LD-ld} -m elf64lppc"
 
7884
            ;;
 
7885
          powerpc-*)
 
7886
            LD="${LD-ld} -m elf64ppc"
 
7887
            ;;
 
7888
          s390*-*linux*|s390*-*tpf*)
 
7889
            LD="${LD-ld} -m elf64_s390"
 
7890
            ;;
 
7891
          sparc*-*linux*)
 
7892
            LD="${LD-ld} -m elf64_sparc"
 
7893
            ;;
 
7894
        esac
 
7895
        ;;
 
7896
    esac
 
7897
  fi
 
7898
  rm -rf conftest*
 
7899
  ;;
 
7900
 
 
7901
*-*-sco3.2v5*)
 
7902
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7903
  SAVE_CFLAGS="$CFLAGS"
 
7904
  CFLAGS="$CFLAGS -belf"
 
7905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7906
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7907
if ${lt_cv_cc_needs_belf+:} false; then :
 
7908
  $as_echo_n "(cached) " >&6
 
7909
else
 
7910
  ac_ext=c
 
7911
ac_cpp='$CPP $CPPFLAGS'
 
7912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7915
 
 
7916
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7917
/* end confdefs.h.  */
 
7918
 
 
7919
int
 
7920
main ()
 
7921
{
 
7922
 
 
7923
  ;
 
7924
  return 0;
 
7925
}
 
7926
_ACEOF
 
7927
if ac_fn_c_try_link "$LINENO"; then :
 
7928
  lt_cv_cc_needs_belf=yes
 
7929
else
 
7930
  lt_cv_cc_needs_belf=no
 
7931
fi
 
7932
rm -f core conftest.err conftest.$ac_objext \
 
7933
    conftest$ac_exeext conftest.$ac_ext
 
7934
     ac_ext=c
 
7935
ac_cpp='$CPP $CPPFLAGS'
 
7936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7939
 
 
7940
fi
 
7941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7942
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7943
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7944
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7945
    CFLAGS="$SAVE_CFLAGS"
 
7946
  fi
 
7947
  ;;
 
7948
*-*solaris*)
 
7949
  # Find out which ABI we are using.
 
7950
  echo 'int i;' > conftest.$ac_ext
 
7951
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7952
  (eval $ac_compile) 2>&5
 
7953
  ac_status=$?
 
7954
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7955
  test $ac_status = 0; }; then
 
7956
    case `/usr/bin/file conftest.o` in
 
7957
    *64-bit*)
 
7958
      case $lt_cv_prog_gnu_ld in
 
7959
      yes*)
 
7960
        case $host in
 
7961
        i?86-*-solaris*)
 
7962
          LD="${LD-ld} -m elf_x86_64"
 
7963
          ;;
 
7964
        sparc*-*-solaris*)
 
7965
          LD="${LD-ld} -m elf64_sparc"
 
7966
          ;;
 
7967
        esac
 
7968
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7969
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7970
          LD="${LD-ld}_sol2"
 
7971
        fi
 
7972
        ;;
 
7973
      *)
 
7974
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7975
          LD="${LD-ld} -64"
 
7976
        fi
 
7977
        ;;
 
7978
      esac
 
7979
      ;;
 
7980
    esac
 
7981
  fi
 
7982
  rm -rf conftest*
 
7983
  ;;
 
7984
esac
 
7985
 
 
7986
need_locks="$enable_libtool_lock"
 
7987
 
 
7988
if test -n "$ac_tool_prefix"; then
 
7989
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7990
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7992
$as_echo_n "checking for $ac_word... " >&6; }
 
7993
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7994
  $as_echo_n "(cached) " >&6
 
7995
else
 
7996
  if test -n "$MANIFEST_TOOL"; then
 
7997
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7998
else
 
7999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8000
for as_dir in $PATH
 
8001
do
 
8002
  IFS=$as_save_IFS
 
8003
  test -z "$as_dir" && as_dir=.
 
8004
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8005
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8006
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
8007
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8008
    break 2
 
8009
  fi
 
8010
done
 
8011
  done
 
8012
IFS=$as_save_IFS
 
8013
 
 
8014
fi
 
8015
fi
 
8016
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
8017
if test -n "$MANIFEST_TOOL"; then
 
8018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
8019
$as_echo "$MANIFEST_TOOL" >&6; }
 
8020
else
 
8021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8022
$as_echo "no" >&6; }
 
8023
fi
 
8024
 
 
8025
 
 
8026
fi
 
8027
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
8028
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
8029
  # Extract the first word of "mt", so it can be a program name with args.
 
8030
set dummy mt; ac_word=$2
 
8031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8032
$as_echo_n "checking for $ac_word... " >&6; }
 
8033
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
8034
  $as_echo_n "(cached) " >&6
 
8035
else
 
8036
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
8037
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
8038
else
 
8039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8040
for as_dir in $PATH
 
8041
do
 
8042
  IFS=$as_save_IFS
 
8043
  test -z "$as_dir" && as_dir=.
 
8044
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8045
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8046
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
8047
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8048
    break 2
 
8049
  fi
 
8050
done
 
8051
  done
 
8052
IFS=$as_save_IFS
 
8053
 
 
8054
fi
 
8055
fi
 
8056
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
8057
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
8058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
8059
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
8060
else
 
8061
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8062
$as_echo "no" >&6; }
 
8063
fi
 
8064
 
 
8065
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
8066
    MANIFEST_TOOL=":"
 
8067
  else
 
8068
    case $cross_compiling:$ac_tool_warned in
 
8069
yes:)
 
8070
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8071
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8072
ac_tool_warned=yes ;;
 
8073
esac
 
8074
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
8075
  fi
 
8076
else
 
8077
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
8078
fi
 
8079
 
 
8080
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
8081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
8082
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
8083
if ${lt_cv_path_mainfest_tool+:} false; then :
 
8084
  $as_echo_n "(cached) " >&6
 
8085
else
 
8086
  lt_cv_path_mainfest_tool=no
 
8087
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
8088
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
8089
  cat conftest.err >&5
 
8090
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
8091
    lt_cv_path_mainfest_tool=yes
 
8092
  fi
 
8093
  rm -f conftest*
 
8094
fi
 
8095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
8096
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
8097
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
8098
  MANIFEST_TOOL=:
 
8099
fi
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
 
 
8105
 
 
8106
  case $host_os in
 
8107
    rhapsody* | darwin*)
 
8108
    if test -n "$ac_tool_prefix"; then
 
8109
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
8110
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8112
$as_echo_n "checking for $ac_word... " >&6; }
 
8113
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
8114
  $as_echo_n "(cached) " >&6
 
8115
else
 
8116
  if test -n "$DSYMUTIL"; then
 
8117
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
8118
else
 
8119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8120
for as_dir in $PATH
 
8121
do
 
8122
  IFS=$as_save_IFS
 
8123
  test -z "$as_dir" && as_dir=.
 
8124
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8125
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8126
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
8127
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8128
    break 2
 
8129
  fi
 
8130
done
 
8131
  done
 
8132
IFS=$as_save_IFS
 
8133
 
 
8134
fi
 
8135
fi
 
8136
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
8137
if test -n "$DSYMUTIL"; then
 
8138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
8139
$as_echo "$DSYMUTIL" >&6; }
 
8140
else
 
8141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8142
$as_echo "no" >&6; }
 
8143
fi
 
8144
 
 
8145
 
 
8146
fi
 
8147
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
8148
  ac_ct_DSYMUTIL=$DSYMUTIL
 
8149
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
8150
set dummy dsymutil; ac_word=$2
 
8151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8152
$as_echo_n "checking for $ac_word... " >&6; }
 
8153
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
8154
  $as_echo_n "(cached) " >&6
 
8155
else
 
8156
  if test -n "$ac_ct_DSYMUTIL"; then
 
8157
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
8158
else
 
8159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8160
for as_dir in $PATH
 
8161
do
 
8162
  IFS=$as_save_IFS
 
8163
  test -z "$as_dir" && as_dir=.
 
8164
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8165
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8166
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
8167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8168
    break 2
 
8169
  fi
 
8170
done
 
8171
  done
 
8172
IFS=$as_save_IFS
 
8173
 
 
8174
fi
 
8175
fi
 
8176
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
8177
if test -n "$ac_ct_DSYMUTIL"; then
 
8178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
8179
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
8180
else
 
8181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8182
$as_echo "no" >&6; }
 
8183
fi
 
8184
 
 
8185
  if test "x$ac_ct_DSYMUTIL" = x; then
 
8186
    DSYMUTIL=":"
 
8187
  else
 
8188
    case $cross_compiling:$ac_tool_warned in
 
8189
yes:)
 
8190
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8191
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8192
ac_tool_warned=yes ;;
 
8193
esac
 
8194
    DSYMUTIL=$ac_ct_DSYMUTIL
 
8195
  fi
 
8196
else
 
8197
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
8198
fi
 
8199
 
 
8200
    if test -n "$ac_tool_prefix"; then
 
8201
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
8202
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
8203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8204
$as_echo_n "checking for $ac_word... " >&6; }
 
8205
if ${ac_cv_prog_NMEDIT+:} false; then :
 
8206
  $as_echo_n "(cached) " >&6
 
8207
else
 
8208
  if test -n "$NMEDIT"; then
 
8209
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
8210
else
 
8211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8212
for as_dir in $PATH
 
8213
do
 
8214
  IFS=$as_save_IFS
 
8215
  test -z "$as_dir" && as_dir=.
 
8216
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8217
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8218
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
8219
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8220
    break 2
 
8221
  fi
 
8222
done
 
8223
  done
 
8224
IFS=$as_save_IFS
 
8225
 
 
8226
fi
 
8227
fi
 
8228
NMEDIT=$ac_cv_prog_NMEDIT
 
8229
if test -n "$NMEDIT"; then
 
8230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
8231
$as_echo "$NMEDIT" >&6; }
 
8232
else
 
8233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8234
$as_echo "no" >&6; }
 
8235
fi
 
8236
 
 
8237
 
 
8238
fi
 
8239
if test -z "$ac_cv_prog_NMEDIT"; then
 
8240
  ac_ct_NMEDIT=$NMEDIT
 
8241
  # Extract the first word of "nmedit", so it can be a program name with args.
 
8242
set dummy nmedit; ac_word=$2
 
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8244
$as_echo_n "checking for $ac_word... " >&6; }
 
8245
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
8246
  $as_echo_n "(cached) " >&6
 
8247
else
 
8248
  if test -n "$ac_ct_NMEDIT"; then
 
8249
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
8250
else
 
8251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8252
for as_dir in $PATH
 
8253
do
 
8254
  IFS=$as_save_IFS
 
8255
  test -z "$as_dir" && as_dir=.
 
8256
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8257
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8258
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
8259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8260
    break 2
 
8261
  fi
 
8262
done
 
8263
  done
 
8264
IFS=$as_save_IFS
 
8265
 
 
8266
fi
 
8267
fi
 
8268
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
8269
if test -n "$ac_ct_NMEDIT"; then
 
8270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
8271
$as_echo "$ac_ct_NMEDIT" >&6; }
 
8272
else
 
8273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8274
$as_echo "no" >&6; }
 
8275
fi
 
8276
 
 
8277
  if test "x$ac_ct_NMEDIT" = x; then
 
8278
    NMEDIT=":"
 
8279
  else
 
8280
    case $cross_compiling:$ac_tool_warned in
 
8281
yes:)
 
8282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8284
ac_tool_warned=yes ;;
 
8285
esac
 
8286
    NMEDIT=$ac_ct_NMEDIT
 
8287
  fi
 
8288
else
 
8289
  NMEDIT="$ac_cv_prog_NMEDIT"
 
8290
fi
 
8291
 
 
8292
    if test -n "$ac_tool_prefix"; then
 
8293
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
8294
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
8295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8296
$as_echo_n "checking for $ac_word... " >&6; }
 
8297
if ${ac_cv_prog_LIPO+:} false; then :
 
8298
  $as_echo_n "(cached) " >&6
 
8299
else
 
8300
  if test -n "$LIPO"; then
 
8301
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
8302
else
 
8303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8304
for as_dir in $PATH
 
8305
do
 
8306
  IFS=$as_save_IFS
 
8307
  test -z "$as_dir" && as_dir=.
 
8308
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8309
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8310
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
8311
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8312
    break 2
 
8313
  fi
 
8314
done
 
8315
  done
 
8316
IFS=$as_save_IFS
 
8317
 
 
8318
fi
 
8319
fi
 
8320
LIPO=$ac_cv_prog_LIPO
 
8321
if test -n "$LIPO"; then
 
8322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
8323
$as_echo "$LIPO" >&6; }
 
8324
else
 
8325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8326
$as_echo "no" >&6; }
 
8327
fi
 
8328
 
 
8329
 
 
8330
fi
 
8331
if test -z "$ac_cv_prog_LIPO"; then
 
8332
  ac_ct_LIPO=$LIPO
 
8333
  # Extract the first word of "lipo", so it can be a program name with args.
 
8334
set dummy lipo; ac_word=$2
 
8335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8336
$as_echo_n "checking for $ac_word... " >&6; }
 
8337
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
8338
  $as_echo_n "(cached) " >&6
 
8339
else
 
8340
  if test -n "$ac_ct_LIPO"; then
 
8341
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
8342
else
 
8343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8344
for as_dir in $PATH
 
8345
do
 
8346
  IFS=$as_save_IFS
 
8347
  test -z "$as_dir" && as_dir=.
 
8348
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8349
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8350
    ac_cv_prog_ac_ct_LIPO="lipo"
 
8351
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8352
    break 2
 
8353
  fi
 
8354
done
 
8355
  done
 
8356
IFS=$as_save_IFS
 
8357
 
 
8358
fi
 
8359
fi
 
8360
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
8361
if test -n "$ac_ct_LIPO"; then
 
8362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8363
$as_echo "$ac_ct_LIPO" >&6; }
 
8364
else
 
8365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8366
$as_echo "no" >&6; }
 
8367
fi
 
8368
 
 
8369
  if test "x$ac_ct_LIPO" = x; then
 
8370
    LIPO=":"
 
8371
  else
 
8372
    case $cross_compiling:$ac_tool_warned in
 
8373
yes:)
 
8374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8375
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8376
ac_tool_warned=yes ;;
 
8377
esac
 
8378
    LIPO=$ac_ct_LIPO
 
8379
  fi
 
8380
else
 
8381
  LIPO="$ac_cv_prog_LIPO"
 
8382
fi
 
8383
 
 
8384
    if test -n "$ac_tool_prefix"; then
 
8385
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8386
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8388
$as_echo_n "checking for $ac_word... " >&6; }
 
8389
if ${ac_cv_prog_OTOOL+:} false; then :
 
8390
  $as_echo_n "(cached) " >&6
 
8391
else
 
8392
  if test -n "$OTOOL"; then
 
8393
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8394
else
 
8395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8396
for as_dir in $PATH
 
8397
do
 
8398
  IFS=$as_save_IFS
 
8399
  test -z "$as_dir" && as_dir=.
 
8400
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8401
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8402
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8403
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8404
    break 2
 
8405
  fi
 
8406
done
 
8407
  done
 
8408
IFS=$as_save_IFS
 
8409
 
 
8410
fi
 
8411
fi
 
8412
OTOOL=$ac_cv_prog_OTOOL
 
8413
if test -n "$OTOOL"; then
 
8414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
8415
$as_echo "$OTOOL" >&6; }
 
8416
else
 
8417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8418
$as_echo "no" >&6; }
 
8419
fi
 
8420
 
 
8421
 
 
8422
fi
 
8423
if test -z "$ac_cv_prog_OTOOL"; then
 
8424
  ac_ct_OTOOL=$OTOOL
 
8425
  # Extract the first word of "otool", so it can be a program name with args.
 
8426
set dummy otool; ac_word=$2
 
8427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8428
$as_echo_n "checking for $ac_word... " >&6; }
 
8429
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
8430
  $as_echo_n "(cached) " >&6
 
8431
else
 
8432
  if test -n "$ac_ct_OTOOL"; then
 
8433
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8434
else
 
8435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8436
for as_dir in $PATH
 
8437
do
 
8438
  IFS=$as_save_IFS
 
8439
  test -z "$as_dir" && as_dir=.
 
8440
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8441
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8442
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8443
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8444
    break 2
 
8445
  fi
 
8446
done
 
8447
  done
 
8448
IFS=$as_save_IFS
 
8449
 
 
8450
fi
 
8451
fi
 
8452
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8453
if test -n "$ac_ct_OTOOL"; then
 
8454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8455
$as_echo "$ac_ct_OTOOL" >&6; }
 
8456
else
 
8457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8458
$as_echo "no" >&6; }
 
8459
fi
 
8460
 
 
8461
  if test "x$ac_ct_OTOOL" = x; then
 
8462
    OTOOL=":"
 
8463
  else
 
8464
    case $cross_compiling:$ac_tool_warned in
 
8465
yes:)
 
8466
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8467
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8468
ac_tool_warned=yes ;;
 
8469
esac
 
8470
    OTOOL=$ac_ct_OTOOL
 
8471
  fi
 
8472
else
 
8473
  OTOOL="$ac_cv_prog_OTOOL"
 
8474
fi
 
8475
 
 
8476
    if test -n "$ac_tool_prefix"; then
 
8477
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8478
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8480
$as_echo_n "checking for $ac_word... " >&6; }
 
8481
if ${ac_cv_prog_OTOOL64+:} false; then :
 
8482
  $as_echo_n "(cached) " >&6
 
8483
else
 
8484
  if test -n "$OTOOL64"; then
 
8485
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8486
else
 
8487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8488
for as_dir in $PATH
 
8489
do
 
8490
  IFS=$as_save_IFS
 
8491
  test -z "$as_dir" && as_dir=.
 
8492
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8493
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8494
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8495
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8496
    break 2
 
8497
  fi
 
8498
done
 
8499
  done
 
8500
IFS=$as_save_IFS
 
8501
 
 
8502
fi
 
8503
fi
 
8504
OTOOL64=$ac_cv_prog_OTOOL64
 
8505
if test -n "$OTOOL64"; then
 
8506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8507
$as_echo "$OTOOL64" >&6; }
 
8508
else
 
8509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8510
$as_echo "no" >&6; }
 
8511
fi
 
8512
 
 
8513
 
 
8514
fi
 
8515
if test -z "$ac_cv_prog_OTOOL64"; then
 
8516
  ac_ct_OTOOL64=$OTOOL64
 
8517
  # Extract the first word of "otool64", so it can be a program name with args.
 
8518
set dummy otool64; ac_word=$2
 
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8520
$as_echo_n "checking for $ac_word... " >&6; }
 
8521
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
8522
  $as_echo_n "(cached) " >&6
 
8523
else
 
8524
  if test -n "$ac_ct_OTOOL64"; then
 
8525
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8526
else
 
8527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8528
for as_dir in $PATH
 
8529
do
 
8530
  IFS=$as_save_IFS
 
8531
  test -z "$as_dir" && as_dir=.
 
8532
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8533
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8534
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8535
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8536
    break 2
 
8537
  fi
 
8538
done
 
8539
  done
 
8540
IFS=$as_save_IFS
 
8541
 
 
8542
fi
 
8543
fi
 
8544
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8545
if test -n "$ac_ct_OTOOL64"; then
 
8546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8547
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8548
else
 
8549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8550
$as_echo "no" >&6; }
 
8551
fi
 
8552
 
 
8553
  if test "x$ac_ct_OTOOL64" = x; then
 
8554
    OTOOL64=":"
 
8555
  else
 
8556
    case $cross_compiling:$ac_tool_warned in
 
8557
yes:)
 
8558
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8559
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8560
ac_tool_warned=yes ;;
 
8561
esac
 
8562
    OTOOL64=$ac_ct_OTOOL64
 
8563
  fi
 
8564
else
 
8565
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8566
fi
 
8567
 
 
8568
 
 
8569
 
 
8570
 
 
8571
 
 
8572
 
 
8573
 
 
8574
 
 
8575
 
 
8576
 
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
 
 
8583
 
 
8584
 
 
8585
 
 
8586
 
 
8587
 
 
8588
 
 
8589
 
 
8590
 
 
8591
 
 
8592
 
 
8593
 
 
8594
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8595
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8596
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
8597
  $as_echo_n "(cached) " >&6
 
8598
else
 
8599
  lt_cv_apple_cc_single_mod=no
 
8600
      if test -z "${LT_MULTI_MODULE}"; then
 
8601
        # By default we will add the -single_module flag. You can override
 
8602
        # by either setting the environment variable LT_MULTI_MODULE
 
8603
        # non-empty at configure time, or by adding -multi_module to the
 
8604
        # link flags.
 
8605
        rm -rf libconftest.dylib*
 
8606
        echo "int foo(void){return 1;}" > conftest.c
 
8607
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8608
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8609
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8610
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8611
        _lt_result=$?
 
8612
        # If there is a non-empty error log, and "single_module"
 
8613
        # appears in it, assume the flag caused a linker warning
 
8614
        if test -s conftest.err && $GREP single_module conftest.err; then
 
8615
          cat conftest.err >&5
 
8616
        # Otherwise, if the output was created with a 0 exit code from
 
8617
        # the compiler, it worked.
 
8618
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
8619
          lt_cv_apple_cc_single_mod=yes
 
8620
        else
 
8621
          cat conftest.err >&5
 
8622
        fi
 
8623
        rm -rf libconftest.dylib*
 
8624
        rm -f conftest.*
 
8625
      fi
 
8626
fi
 
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8628
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8629
 
 
8630
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8631
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8632
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
8633
  $as_echo_n "(cached) " >&6
 
8634
else
 
8635
  lt_cv_ld_exported_symbols_list=no
 
8636
      save_LDFLAGS=$LDFLAGS
 
8637
      echo "_main" > conftest.sym
 
8638
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8639
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8640
/* end confdefs.h.  */
 
8641
 
 
8642
int
 
8643
main ()
 
8644
{
 
8645
 
 
8646
  ;
 
8647
  return 0;
 
8648
}
 
8649
_ACEOF
 
8650
if ac_fn_c_try_link "$LINENO"; then :
 
8651
  lt_cv_ld_exported_symbols_list=yes
 
8652
else
 
8653
  lt_cv_ld_exported_symbols_list=no
 
8654
fi
 
8655
rm -f core conftest.err conftest.$ac_objext \
 
8656
    conftest$ac_exeext conftest.$ac_ext
 
8657
        LDFLAGS="$save_LDFLAGS"
 
8658
 
 
8659
fi
 
8660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8661
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8662
 
 
8663
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8664
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8665
if ${lt_cv_ld_force_load+:} false; then :
 
8666
  $as_echo_n "(cached) " >&6
 
8667
else
 
8668
  lt_cv_ld_force_load=no
 
8669
      cat > conftest.c << _LT_EOF
 
8670
int forced_loaded() { return 2;}
 
8671
_LT_EOF
 
8672
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8673
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8674
      echo "$AR cru libconftest.a conftest.o" >&5
 
8675
      $AR cru libconftest.a conftest.o 2>&5
 
8676
      echo "$RANLIB libconftest.a" >&5
 
8677
      $RANLIB libconftest.a 2>&5
 
8678
      cat > conftest.c << _LT_EOF
 
8679
int main() { return 0;}
 
8680
_LT_EOF
 
8681
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8682
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8683
      _lt_result=$?
 
8684
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8685
        cat conftest.err >&5
 
8686
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
8687
        lt_cv_ld_force_load=yes
 
8688
      else
 
8689
        cat conftest.err >&5
 
8690
      fi
 
8691
        rm -f conftest.err libconftest.a conftest conftest.c
 
8692
        rm -rf conftest.dSYM
 
8693
 
 
8694
fi
 
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8696
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8697
    case $host_os in
 
8698
    rhapsody* | darwin1.[012])
 
8699
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8700
    darwin1.*)
 
8701
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8702
    darwin*) # darwin 5.x on
 
8703
      # if running on 10.5 or later, the deployment target defaults
 
8704
      # to the OS version, if on x86, and 10.4, the deployment
 
8705
      # target defaults to 10.4. Don't you love it?
 
8706
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8707
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8708
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8709
        10.[012]*)
 
8710
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8711
        10.*)
 
8712
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8713
      esac
 
8714
    ;;
 
8715
  esac
 
8716
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8717
      _lt_dar_single_mod='$single_module'
 
8718
    fi
 
8719
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8720
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8721
    else
 
8722
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8723
    fi
 
8724
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8725
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8726
    else
 
8727
      _lt_dsymutil=
 
8728
    fi
 
8729
    ;;
 
8730
  esac
 
8731
 
 
8732
for ac_header in dlfcn.h
 
8733
do :
 
8734
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8735
"
 
8736
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8737
  cat >>confdefs.h <<_ACEOF
 
8738
#define HAVE_DLFCN_H 1
 
8739
_ACEOF
 
8740
 
 
8741
fi
 
8742
 
 
8743
done
 
8744
 
 
8745
 
 
8746
 
 
8747
func_stripname_cnf ()
 
8748
{
 
8749
  case ${2} in
 
8750
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8751
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8752
  esac
 
8753
} # func_stripname_cnf
 
8754
 
 
8755
 
 
8756
 
 
8757
 
 
8758
 
 
8759
# Set options
 
8760
 
 
8761
 
 
8762
 
 
8763
        enable_dlopen=no
 
8764
 
 
8765
 
 
8766
  enable_win32_dll=no
 
8767
 
 
8768
 
 
8769
            # Check whether --enable-shared was given.
 
8770
if test "${enable_shared+set}" = set; then :
 
8771
  enableval=$enable_shared; p=${PACKAGE-default}
 
8772
    case $enableval in
 
8773
    yes) enable_shared=yes ;;
 
8774
    no) enable_shared=no ;;
 
8775
    *)
 
8776
      enable_shared=no
 
8777
      # Look at the argument we got.  We use all the common list separators.
 
8778
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8779
      for pkg in $enableval; do
 
8780
        IFS="$lt_save_ifs"
 
8781
        if test "X$pkg" = "X$p"; then
 
8782
          enable_shared=yes
 
8783
        fi
 
8784
      done
 
8785
      IFS="$lt_save_ifs"
 
8786
      ;;
 
8787
    esac
 
8788
else
 
8789
  enable_shared=yes
 
8790
fi
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
 
 
8800
  # Check whether --enable-static was given.
 
8801
if test "${enable_static+set}" = set; then :
 
8802
  enableval=$enable_static; p=${PACKAGE-default}
 
8803
    case $enableval in
 
8804
    yes) enable_static=yes ;;
 
8805
    no) enable_static=no ;;
 
8806
    *)
 
8807
     enable_static=no
 
8808
      # Look at the argument we got.  We use all the common list separators.
 
8809
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8810
      for pkg in $enableval; do
 
8811
        IFS="$lt_save_ifs"
 
8812
        if test "X$pkg" = "X$p"; then
 
8813
          enable_static=yes
 
8814
        fi
 
8815
      done
 
8816
      IFS="$lt_save_ifs"
 
8817
      ;;
 
8818
    esac
 
8819
else
 
8820
  enable_static=yes
 
8821
fi
 
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
 
8827
 
 
8828
 
 
8829
 
 
8830
 
 
8831
 
 
8832
# Check whether --with-pic was given.
 
8833
if test "${with_pic+set}" = set; then :
 
8834
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8835
    case $withval in
 
8836
    yes|no) pic_mode=$withval ;;
 
8837
    *)
 
8838
      pic_mode=default
 
8839
      # Look at the argument we got.  We use all the common list separators.
 
8840
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8841
      for lt_pkg in $withval; do
 
8842
        IFS="$lt_save_ifs"
 
8843
        if test "X$lt_pkg" = "X$lt_p"; then
 
8844
          pic_mode=yes
 
8845
        fi
 
8846
      done
 
8847
      IFS="$lt_save_ifs"
 
8848
      ;;
 
8849
    esac
 
8850
else
 
8851
  pic_mode=default
 
8852
fi
 
8853
 
 
8854
 
 
8855
test -z "$pic_mode" && pic_mode=default
 
8856
 
 
8857
 
 
8858
 
 
8859
 
 
8860
 
 
8861
 
 
8862
 
 
8863
  # Check whether --enable-fast-install was given.
 
8864
if test "${enable_fast_install+set}" = set; then :
 
8865
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8866
    case $enableval in
 
8867
    yes) enable_fast_install=yes ;;
 
8868
    no) enable_fast_install=no ;;
 
8869
    *)
 
8870
      enable_fast_install=no
 
8871
      # Look at the argument we got.  We use all the common list separators.
 
8872
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8873
      for pkg in $enableval; do
 
8874
        IFS="$lt_save_ifs"
 
8875
        if test "X$pkg" = "X$p"; then
 
8876
          enable_fast_install=yes
 
8877
        fi
 
8878
      done
 
8879
      IFS="$lt_save_ifs"
 
8880
      ;;
 
8881
    esac
 
8882
else
 
8883
  enable_fast_install=yes
 
8884
fi
 
8885
 
 
8886
 
 
8887
 
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
 
 
8896
# This can be used to rebuild libtool when needed
 
8897
LIBTOOL_DEPS="$ltmain"
 
8898
 
 
8899
# Always use our own libtool.
 
8900
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
 
 
8910
 
 
8911
 
 
8912
 
 
8913
 
 
8914
 
 
8915
 
 
8916
 
 
8917
 
 
8918
 
 
8919
 
 
8920
 
 
8921
 
 
8922
 
 
8923
 
 
8924
 
 
8925
 
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
test -z "$LN_S" && LN_S="ln -s"
 
8932
 
 
8933
 
 
8934
 
 
8935
 
 
8936
 
 
8937
 
 
8938
 
 
8939
 
 
8940
 
 
8941
 
 
8942
 
 
8943
 
 
8944
 
 
8945
 
 
8946
if test -n "${ZSH_VERSION+set}" ; then
 
8947
   setopt NO_GLOB_SUBST
 
8948
fi
 
8949
 
 
8950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8951
$as_echo_n "checking for objdir... " >&6; }
 
8952
if ${lt_cv_objdir+:} false; then :
 
8953
  $as_echo_n "(cached) " >&6
 
8954
else
 
8955
  rm -f .libs 2>/dev/null
 
8956
mkdir .libs 2>/dev/null
 
8957
if test -d .libs; then
 
8958
  lt_cv_objdir=.libs
 
8959
else
 
8960
  # MS-DOS does not allow filenames that begin with a dot.
 
8961
  lt_cv_objdir=_libs
 
8962
fi
 
8963
rmdir .libs 2>/dev/null
 
8964
fi
 
8965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8966
$as_echo "$lt_cv_objdir" >&6; }
 
8967
objdir=$lt_cv_objdir
 
8968
 
 
8969
 
 
8970
 
 
8971
 
 
8972
 
 
8973
cat >>confdefs.h <<_ACEOF
 
8974
#define LT_OBJDIR "$lt_cv_objdir/"
 
8975
_ACEOF
 
8976
 
 
8977
 
 
8978
 
 
8979
 
 
8980
case $host_os in
 
8981
aix3*)
 
8982
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8983
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8984
  # vanish in a puff of smoke.
 
8985
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8986
    COLLECT_NAMES=
 
8987
    export COLLECT_NAMES
 
8988
  fi
 
8989
  ;;
 
8990
esac
 
8991
 
 
8992
# Global variables:
 
8993
ofile=libtool
 
8994
can_build_shared=yes
 
8995
 
 
8996
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8997
# which needs '.lib').
 
8998
libext=a
 
8999
 
 
9000
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9001
 
 
9002
old_CC="$CC"
 
9003
old_CFLAGS="$CFLAGS"
 
9004
 
 
9005
# Set sane defaults for various variables
 
9006
test -z "$CC" && CC=cc
 
9007
test -z "$LTCC" && LTCC=$CC
 
9008
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
9009
test -z "$LD" && LD=ld
 
9010
test -z "$ac_objext" && ac_objext=o
 
9011
 
 
9012
for cc_temp in $compiler""; do
 
9013
  case $cc_temp in
 
9014
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9015
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9016
    \-*) ;;
 
9017
    *) break;;
 
9018
  esac
 
9019
done
 
9020
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
9021
 
 
9022
 
 
9023
# Only perform the check for file, if the check method requires it
 
9024
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
9025
case $deplibs_check_method in
 
9026
file_magic*)
 
9027
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
9028
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
9029
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
9030
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9031
  $as_echo_n "(cached) " >&6
 
9032
else
 
9033
  case $MAGIC_CMD in
 
9034
[\\/*] |  ?:[\\/]*)
 
9035
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9036
  ;;
 
9037
*)
 
9038
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9039
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9040
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9041
  for ac_dir in $ac_dummy; do
 
9042
    IFS="$lt_save_ifs"
 
9043
    test -z "$ac_dir" && ac_dir=.
 
9044
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
9045
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9046
      if test -n "$file_magic_test_file"; then
 
9047
        case $deplibs_check_method in
 
9048
        "file_magic "*)
 
9049
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9050
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9051
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9052
            $EGREP "$file_magic_regex" > /dev/null; then
 
9053
            :
 
9054
          else
 
9055
            cat <<_LT_EOF 1>&2
 
9056
 
 
9057
*** Warning: the command libtool uses to detect shared libraries,
 
9058
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9059
*** The result is that libtool may fail to recognize shared libraries
 
9060
*** as such.  This will affect the creation of libtool libraries that
 
9061
*** depend on shared libraries, but programs linked with such libtool
 
9062
*** libraries will work regardless of this problem.  Nevertheless, you
 
9063
*** may want to report the problem to your system manager and/or to
 
9064
*** bug-libtool@gnu.org
 
9065
 
 
9066
_LT_EOF
 
9067
          fi ;;
 
9068
        esac
 
9069
      fi
 
9070
      break
 
9071
    fi
 
9072
  done
 
9073
  IFS="$lt_save_ifs"
 
9074
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9075
  ;;
 
9076
esac
 
9077
fi
 
9078
 
 
9079
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9080
if test -n "$MAGIC_CMD"; then
 
9081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9082
$as_echo "$MAGIC_CMD" >&6; }
 
9083
else
 
9084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9085
$as_echo "no" >&6; }
 
9086
fi
 
9087
 
 
9088
 
 
9089
 
 
9090
 
 
9091
 
 
9092
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9093
  if test -n "$ac_tool_prefix"; then
 
9094
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
9095
$as_echo_n "checking for file... " >&6; }
 
9096
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9097
  $as_echo_n "(cached) " >&6
 
9098
else
 
9099
  case $MAGIC_CMD in
 
9100
[\\/*] |  ?:[\\/]*)
 
9101
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9102
  ;;
 
9103
*)
 
9104
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9105
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9106
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9107
  for ac_dir in $ac_dummy; do
 
9108
    IFS="$lt_save_ifs"
 
9109
    test -z "$ac_dir" && ac_dir=.
 
9110
    if test -f $ac_dir/file; then
 
9111
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9112
      if test -n "$file_magic_test_file"; then
 
9113
        case $deplibs_check_method in
 
9114
        "file_magic "*)
 
9115
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9116
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9117
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9118
            $EGREP "$file_magic_regex" > /dev/null; then
 
9119
            :
 
9120
          else
 
9121
            cat <<_LT_EOF 1>&2
 
9122
 
 
9123
*** Warning: the command libtool uses to detect shared libraries,
 
9124
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9125
*** The result is that libtool may fail to recognize shared libraries
 
9126
*** as such.  This will affect the creation of libtool libraries that
 
9127
*** depend on shared libraries, but programs linked with such libtool
 
9128
*** libraries will work regardless of this problem.  Nevertheless, you
 
9129
*** may want to report the problem to your system manager and/or to
 
9130
*** bug-libtool@gnu.org
 
9131
 
 
9132
_LT_EOF
 
9133
          fi ;;
 
9134
        esac
 
9135
      fi
 
9136
      break
 
9137
    fi
 
9138
  done
 
9139
  IFS="$lt_save_ifs"
 
9140
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9141
  ;;
 
9142
esac
 
9143
fi
 
9144
 
 
9145
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9146
if test -n "$MAGIC_CMD"; then
 
9147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9148
$as_echo "$MAGIC_CMD" >&6; }
 
9149
else
 
9150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9151
$as_echo "no" >&6; }
 
9152
fi
 
9153
 
 
9154
 
 
9155
  else
 
9156
    MAGIC_CMD=:
 
9157
  fi
 
9158
fi
 
9159
 
 
9160
  fi
 
9161
  ;;
 
9162
esac
 
9163
 
 
9164
# Use C for the default configuration in the libtool script
 
9165
 
 
9166
lt_save_CC="$CC"
 
9167
ac_ext=c
 
9168
ac_cpp='$CPP $CPPFLAGS'
 
9169
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9170
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9171
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9172
 
 
9173
 
 
9174
# Source file extension for C test sources.
 
9175
ac_ext=c
 
9176
 
 
9177
# Object file extension for compiled C test sources.
 
9178
objext=o
 
9179
objext=$objext
 
9180
 
 
9181
# Code to be used in simple compile tests
 
9182
lt_simple_compile_test_code="int some_variable = 0;"
 
9183
 
 
9184
# Code to be used in simple link tests
 
9185
lt_simple_link_test_code='int main(){return(0);}'
 
9186
 
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
# If no C compiler was specified, use CC.
 
9194
LTCC=${LTCC-"$CC"}
 
9195
 
 
9196
# If no C compiler flags were specified, use CFLAGS.
 
9197
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9198
 
 
9199
# Allow CC to be a program name with arguments.
 
9200
compiler=$CC
 
9201
 
 
9202
# Save the default compiler, since it gets overwritten when the other
 
9203
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9204
compiler_DEFAULT=$CC
 
9205
 
 
9206
# save warnings/boilerplate of simple test code
 
9207
ac_outfile=conftest.$ac_objext
 
9208
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9209
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9210
_lt_compiler_boilerplate=`cat conftest.err`
 
9211
$RM conftest*
 
9212
 
 
9213
ac_outfile=conftest.$ac_objext
 
9214
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9215
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9216
_lt_linker_boilerplate=`cat conftest.err`
 
9217
$RM -r conftest*
 
9218
 
 
9219
 
 
9220
if test -n "$compiler"; then
 
9221
 
 
9222
lt_prog_compiler_no_builtin_flag=
 
9223
 
 
9224
if test "$GCC" = yes; then
 
9225
  case $cc_basename in
 
9226
  nvcc*)
 
9227
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9228
  *)
 
9229
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9230
  esac
 
9231
 
 
9232
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9233
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9234
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
9235
  $as_echo_n "(cached) " >&6
 
9236
else
 
9237
  lt_cv_prog_compiler_rtti_exceptions=no
 
9238
   ac_outfile=conftest.$ac_objext
 
9239
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9240
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9241
   # Insert the option either (1) after the last *FLAGS variable, or
 
9242
   # (2) before a word containing "conftest.", or (3) at the end.
 
9243
   # Note that $ac_compile itself does not contain backslashes and begins
 
9244
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9245
   # The option is referenced via a variable to avoid confusing sed.
 
9246
   lt_compile=`echo "$ac_compile" | $SED \
 
9247
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9248
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9249
   -e 's:$: $lt_compiler_flag:'`
 
9250
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9251
   (eval "$lt_compile" 2>conftest.err)
 
9252
   ac_status=$?
 
9253
   cat conftest.err >&5
 
9254
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9255
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9256
     # The compiler can only warn and ignore the option if not recognized
 
9257
     # So say no if there are warnings other than the usual output.
 
9258
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9259
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9260
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9261
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9262
     fi
 
9263
   fi
 
9264
   $RM conftest*
 
9265
 
 
9266
fi
 
9267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9268
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9269
 
 
9270
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9271
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9272
else
 
9273
    :
 
9274
fi
 
9275
 
 
9276
fi
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
  lt_prog_compiler_wl=
 
9284
lt_prog_compiler_pic=
 
9285
lt_prog_compiler_static=
 
9286
 
 
9287
 
 
9288
  if test "$GCC" = yes; then
 
9289
    lt_prog_compiler_wl='-Wl,'
 
9290
    lt_prog_compiler_static='-static'
 
9291
 
 
9292
    case $host_os in
 
9293
      aix*)
 
9294
      # All AIX code is PIC.
 
9295
      if test "$host_cpu" = ia64; then
 
9296
        # AIX 5 now supports IA64 processor
 
9297
        lt_prog_compiler_static='-Bstatic'
 
9298
      fi
 
9299
      ;;
 
9300
 
 
9301
    amigaos*)
 
9302
      case $host_cpu in
 
9303
      powerpc)
 
9304
            # see comment about AmigaOS4 .so support
 
9305
            lt_prog_compiler_pic='-fPIC'
 
9306
        ;;
 
9307
      m68k)
 
9308
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9309
            # adding the `-m68020' flag to GCC prevents building anything better,
 
9310
            # like `-m68040'.
 
9311
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9312
        ;;
 
9313
      esac
 
9314
      ;;
 
9315
 
 
9316
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9317
      # PIC is the default for these OSes.
 
9318
      ;;
 
9319
 
 
9320
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9321
      # This hack is so that the source file can tell whether it is being
 
9322
      # built for inclusion in a dll (and should export symbols for example).
 
9323
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9324
      # (--disable-auto-import) libraries
 
9325
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9326
      ;;
 
9327
 
 
9328
    darwin* | rhapsody*)
 
9329
      # PIC is the default on this platform
 
9330
      # Common symbols not allowed in MH_DYLIB files
 
9331
      lt_prog_compiler_pic='-fno-common'
 
9332
      ;;
 
9333
 
 
9334
    haiku*)
 
9335
      # PIC is the default for Haiku.
 
9336
      # The "-static" flag exists, but is broken.
 
9337
      lt_prog_compiler_static=
 
9338
      ;;
 
9339
 
 
9340
    hpux*)
 
9341
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9342
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9343
      # sets the default TLS model and affects inlining.
 
9344
      case $host_cpu in
 
9345
      hppa*64*)
 
9346
        # +Z the default
 
9347
        ;;
 
9348
      *)
 
9349
        lt_prog_compiler_pic='-fPIC'
 
9350
        ;;
 
9351
      esac
 
9352
      ;;
 
9353
 
 
9354
    interix[3-9]*)
 
9355
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9356
      # Instead, we relocate shared libraries at runtime.
 
9357
      ;;
 
9358
 
 
9359
    msdosdjgpp*)
 
9360
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9361
      # on systems that don't support them.
 
9362
      lt_prog_compiler_can_build_shared=no
 
9363
      enable_shared=no
 
9364
      ;;
 
9365
 
 
9366
    *nto* | *qnx*)
 
9367
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9368
      # it will coredump.
 
9369
      lt_prog_compiler_pic='-fPIC -shared'
 
9370
      ;;
 
9371
 
 
9372
    sysv4*MP*)
 
9373
      if test -d /usr/nec; then
 
9374
        lt_prog_compiler_pic=-Kconform_pic
 
9375
      fi
 
9376
      ;;
 
9377
 
 
9378
    *)
 
9379
      lt_prog_compiler_pic='-fPIC'
 
9380
      ;;
 
9381
    esac
 
9382
 
 
9383
    case $cc_basename in
 
9384
    nvcc*) # Cuda Compiler Driver 2.2
 
9385
      lt_prog_compiler_wl='-Xlinker '
 
9386
      if test -n "$lt_prog_compiler_pic"; then
 
9387
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9388
      fi
 
9389
      ;;
 
9390
    esac
 
9391
  else
 
9392
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9393
    case $host_os in
 
9394
    aix*)
 
9395
      lt_prog_compiler_wl='-Wl,'
 
9396
      if test "$host_cpu" = ia64; then
 
9397
        # AIX 5 now supports IA64 processor
 
9398
        lt_prog_compiler_static='-Bstatic'
 
9399
      else
 
9400
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9401
      fi
 
9402
      ;;
 
9403
 
 
9404
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9405
      # This hack is so that the source file can tell whether it is being
 
9406
      # built for inclusion in a dll (and should export symbols for example).
 
9407
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9408
      ;;
 
9409
 
 
9410
    hpux9* | hpux10* | hpux11*)
 
9411
      lt_prog_compiler_wl='-Wl,'
 
9412
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9413
      # not for PA HP-UX.
 
9414
      case $host_cpu in
 
9415
      hppa*64*|ia64*)
 
9416
        # +Z the default
 
9417
        ;;
 
9418
      *)
 
9419
        lt_prog_compiler_pic='+Z'
 
9420
        ;;
 
9421
      esac
 
9422
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9423
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9424
      ;;
 
9425
 
 
9426
    irix5* | irix6* | nonstopux*)
 
9427
      lt_prog_compiler_wl='-Wl,'
 
9428
      # PIC (with -KPIC) is the default.
 
9429
      lt_prog_compiler_static='-non_shared'
 
9430
      ;;
 
9431
 
 
9432
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9433
      case $cc_basename in
 
9434
      # old Intel for x86_64 which still supported -KPIC.
 
9435
      ecc*)
 
9436
        lt_prog_compiler_wl='-Wl,'
 
9437
        lt_prog_compiler_pic='-KPIC'
 
9438
        lt_prog_compiler_static='-static'
 
9439
        ;;
 
9440
      # icc used to be incompatible with GCC.
 
9441
      # ICC 10 doesn't accept -KPIC any more.
 
9442
      icc* | ifort*)
 
9443
        lt_prog_compiler_wl='-Wl,'
 
9444
        lt_prog_compiler_pic='-fPIC'
 
9445
        lt_prog_compiler_static='-static'
 
9446
        ;;
 
9447
      # Lahey Fortran 8.1.
 
9448
      lf95*)
 
9449
        lt_prog_compiler_wl='-Wl,'
 
9450
        lt_prog_compiler_pic='--shared'
 
9451
        lt_prog_compiler_static='--static'
 
9452
        ;;
 
9453
      nagfor*)
 
9454
        # NAG Fortran compiler
 
9455
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9456
        lt_prog_compiler_pic='-PIC'
 
9457
        lt_prog_compiler_static='-Bstatic'
 
9458
        ;;
 
9459
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9460
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9461
        # which looks to be a dead project)
 
9462
        lt_prog_compiler_wl='-Wl,'
 
9463
        lt_prog_compiler_pic='-fpic'
 
9464
        lt_prog_compiler_static='-Bstatic'
 
9465
        ;;
 
9466
      ccc*)
 
9467
        lt_prog_compiler_wl='-Wl,'
 
9468
        # All Alpha code is PIC.
 
9469
        lt_prog_compiler_static='-non_shared'
 
9470
        ;;
 
9471
      xl* | bgxl* | bgf* | mpixl*)
 
9472
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9473
        lt_prog_compiler_wl='-Wl,'
 
9474
        lt_prog_compiler_pic='-qpic'
 
9475
        lt_prog_compiler_static='-qstaticlink'
 
9476
        ;;
 
9477
      *)
 
9478
        case `$CC -V 2>&1 | sed 5q` in
 
9479
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9480
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9481
          lt_prog_compiler_pic='-KPIC'
 
9482
          lt_prog_compiler_static='-Bstatic'
 
9483
          lt_prog_compiler_wl=''
 
9484
          ;;
 
9485
        *Sun\ F* | *Sun*Fortran*)
 
9486
          lt_prog_compiler_pic='-KPIC'
 
9487
          lt_prog_compiler_static='-Bstatic'
 
9488
          lt_prog_compiler_wl='-Qoption ld '
 
9489
          ;;
 
9490
        *Sun\ C*)
 
9491
          # Sun C 5.9
 
9492
          lt_prog_compiler_pic='-KPIC'
 
9493
          lt_prog_compiler_static='-Bstatic'
 
9494
          lt_prog_compiler_wl='-Wl,'
 
9495
          ;;
 
9496
        *Intel*\ [CF]*Compiler*)
 
9497
          lt_prog_compiler_wl='-Wl,'
 
9498
          lt_prog_compiler_pic='-fPIC'
 
9499
          lt_prog_compiler_static='-static'
 
9500
          ;;
 
9501
        *Portland\ Group*)
 
9502
          lt_prog_compiler_wl='-Wl,'
 
9503
          lt_prog_compiler_pic='-fpic'
 
9504
          lt_prog_compiler_static='-Bstatic'
 
9505
          ;;
 
9506
        esac
 
9507
        ;;
 
9508
      esac
 
9509
      ;;
 
9510
 
 
9511
    newsos6)
 
9512
      lt_prog_compiler_pic='-KPIC'
 
9513
      lt_prog_compiler_static='-Bstatic'
 
9514
      ;;
 
9515
 
 
9516
    *nto* | *qnx*)
 
9517
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9518
      # it will coredump.
 
9519
      lt_prog_compiler_pic='-fPIC -shared'
 
9520
      ;;
 
9521
 
 
9522
    osf3* | osf4* | osf5*)
 
9523
      lt_prog_compiler_wl='-Wl,'
 
9524
      # All OSF/1 code is PIC.
 
9525
      lt_prog_compiler_static='-non_shared'
 
9526
      ;;
 
9527
 
 
9528
    rdos*)
 
9529
      lt_prog_compiler_static='-non_shared'
 
9530
      ;;
 
9531
 
 
9532
    solaris*)
 
9533
      lt_prog_compiler_pic='-KPIC'
 
9534
      lt_prog_compiler_static='-Bstatic'
 
9535
      case $cc_basename in
 
9536
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9537
        lt_prog_compiler_wl='-Qoption ld ';;
 
9538
      *)
 
9539
        lt_prog_compiler_wl='-Wl,';;
 
9540
      esac
 
9541
      ;;
 
9542
 
 
9543
    sunos4*)
 
9544
      lt_prog_compiler_wl='-Qoption ld '
 
9545
      lt_prog_compiler_pic='-PIC'
 
9546
      lt_prog_compiler_static='-Bstatic'
 
9547
      ;;
 
9548
 
 
9549
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9550
      lt_prog_compiler_wl='-Wl,'
 
9551
      lt_prog_compiler_pic='-KPIC'
 
9552
      lt_prog_compiler_static='-Bstatic'
 
9553
      ;;
 
9554
 
 
9555
    sysv4*MP*)
 
9556
      if test -d /usr/nec ;then
 
9557
        lt_prog_compiler_pic='-Kconform_pic'
 
9558
        lt_prog_compiler_static='-Bstatic'
 
9559
      fi
 
9560
      ;;
 
9561
 
 
9562
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9563
      lt_prog_compiler_wl='-Wl,'
 
9564
      lt_prog_compiler_pic='-KPIC'
 
9565
      lt_prog_compiler_static='-Bstatic'
 
9566
      ;;
 
9567
 
 
9568
    unicos*)
 
9569
      lt_prog_compiler_wl='-Wl,'
 
9570
      lt_prog_compiler_can_build_shared=no
 
9571
      ;;
 
9572
 
 
9573
    uts4*)
 
9574
      lt_prog_compiler_pic='-pic'
 
9575
      lt_prog_compiler_static='-Bstatic'
 
9576
      ;;
 
9577
 
 
9578
    *)
 
9579
      lt_prog_compiler_can_build_shared=no
 
9580
      ;;
 
9581
    esac
 
9582
  fi
 
9583
 
 
9584
case $host_os in
 
9585
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9586
  *djgpp*)
 
9587
    lt_prog_compiler_pic=
 
9588
    ;;
 
9589
  *)
 
9590
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9591
    ;;
 
9592
esac
 
9593
 
 
9594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9595
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9596
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9597
  $as_echo_n "(cached) " >&6
 
9598
else
 
9599
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9600
fi
 
9601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9602
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9603
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9604
 
 
9605
#
 
9606
# Check to make sure the PIC flag actually works.
 
9607
#
 
9608
if test -n "$lt_prog_compiler_pic"; then
 
9609
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9610
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9611
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9612
  $as_echo_n "(cached) " >&6
 
9613
else
 
9614
  lt_cv_prog_compiler_pic_works=no
 
9615
   ac_outfile=conftest.$ac_objext
 
9616
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9617
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9618
   # Insert the option either (1) after the last *FLAGS variable, or
 
9619
   # (2) before a word containing "conftest.", or (3) at the end.
 
9620
   # Note that $ac_compile itself does not contain backslashes and begins
 
9621
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9622
   # The option is referenced via a variable to avoid confusing sed.
 
9623
   lt_compile=`echo "$ac_compile" | $SED \
 
9624
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9625
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9626
   -e 's:$: $lt_compiler_flag:'`
 
9627
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9628
   (eval "$lt_compile" 2>conftest.err)
 
9629
   ac_status=$?
 
9630
   cat conftest.err >&5
 
9631
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9632
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9633
     # The compiler can only warn and ignore the option if not recognized
 
9634
     # So say no if there are warnings other than the usual output.
 
9635
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9636
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9637
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9638
       lt_cv_prog_compiler_pic_works=yes
 
9639
     fi
 
9640
   fi
 
9641
   $RM conftest*
 
9642
 
 
9643
fi
 
9644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9645
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9646
 
 
9647
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9648
    case $lt_prog_compiler_pic in
 
9649
     "" | " "*) ;;
 
9650
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9651
     esac
 
9652
else
 
9653
    lt_prog_compiler_pic=
 
9654
     lt_prog_compiler_can_build_shared=no
 
9655
fi
 
9656
 
 
9657
fi
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
#
 
9670
# Check to make sure the static flag actually works.
 
9671
#
 
9672
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9674
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9675
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9676
  $as_echo_n "(cached) " >&6
 
9677
else
 
9678
  lt_cv_prog_compiler_static_works=no
 
9679
   save_LDFLAGS="$LDFLAGS"
 
9680
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9681
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9682
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9683
     # The linker can only warn and ignore the option if not recognized
 
9684
     # So say no if there are warnings
 
9685
     if test -s conftest.err; then
 
9686
       # Append any errors to the config.log.
 
9687
       cat conftest.err 1>&5
 
9688
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9689
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9690
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9691
         lt_cv_prog_compiler_static_works=yes
 
9692
       fi
 
9693
     else
 
9694
       lt_cv_prog_compiler_static_works=yes
 
9695
     fi
 
9696
   fi
 
9697
   $RM -r conftest*
 
9698
   LDFLAGS="$save_LDFLAGS"
 
9699
 
 
9700
fi
 
9701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9702
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9703
 
 
9704
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9705
    :
 
9706
else
 
9707
    lt_prog_compiler_static=
 
9708
fi
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9717
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9718
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9719
  $as_echo_n "(cached) " >&6
 
9720
else
 
9721
  lt_cv_prog_compiler_c_o=no
 
9722
   $RM -r conftest 2>/dev/null
 
9723
   mkdir conftest
 
9724
   cd conftest
 
9725
   mkdir out
 
9726
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9727
 
 
9728
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9729
   # Insert the option either (1) after the last *FLAGS variable, or
 
9730
   # (2) before a word containing "conftest.", or (3) at the end.
 
9731
   # Note that $ac_compile itself does not contain backslashes and begins
 
9732
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9733
   lt_compile=`echo "$ac_compile" | $SED \
 
9734
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9735
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9736
   -e 's:$: $lt_compiler_flag:'`
 
9737
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9738
   (eval "$lt_compile" 2>out/conftest.err)
 
9739
   ac_status=$?
 
9740
   cat out/conftest.err >&5
 
9741
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9742
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9743
   then
 
9744
     # The compiler can only warn and ignore the option if not recognized
 
9745
     # So say no if there are warnings
 
9746
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9747
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9748
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9749
       lt_cv_prog_compiler_c_o=yes
 
9750
     fi
 
9751
   fi
 
9752
   chmod u+w . 2>&5
 
9753
   $RM conftest*
 
9754
   # SGI C++ compiler will create directory out/ii_files/ for
 
9755
   # template instantiation
 
9756
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9757
   $RM out/* && rmdir out
 
9758
   cd ..
 
9759
   $RM -r conftest
 
9760
   $RM conftest*
 
9761
 
 
9762
fi
 
9763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9764
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9772
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9773
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9774
  $as_echo_n "(cached) " >&6
 
9775
else
 
9776
  lt_cv_prog_compiler_c_o=no
 
9777
   $RM -r conftest 2>/dev/null
 
9778
   mkdir conftest
 
9779
   cd conftest
 
9780
   mkdir out
 
9781
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9782
 
 
9783
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9784
   # Insert the option either (1) after the last *FLAGS variable, or
 
9785
   # (2) before a word containing "conftest.", or (3) at the end.
 
9786
   # Note that $ac_compile itself does not contain backslashes and begins
 
9787
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9788
   lt_compile=`echo "$ac_compile" | $SED \
 
9789
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9790
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9791
   -e 's:$: $lt_compiler_flag:'`
 
9792
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9793
   (eval "$lt_compile" 2>out/conftest.err)
 
9794
   ac_status=$?
 
9795
   cat out/conftest.err >&5
 
9796
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9797
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9798
   then
 
9799
     # The compiler can only warn and ignore the option if not recognized
 
9800
     # So say no if there are warnings
 
9801
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9802
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9803
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9804
       lt_cv_prog_compiler_c_o=yes
 
9805
     fi
 
9806
   fi
 
9807
   chmod u+w . 2>&5
 
9808
   $RM conftest*
 
9809
   # SGI C++ compiler will create directory out/ii_files/ for
 
9810
   # template instantiation
 
9811
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9812
   $RM out/* && rmdir out
 
9813
   cd ..
 
9814
   $RM -r conftest
 
9815
   $RM conftest*
 
9816
 
 
9817
fi
 
9818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9819
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
hard_links="nottested"
 
9825
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9826
  # do not overwrite the value of need_locks provided by the user
 
9827
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9828
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9829
  hard_links=yes
 
9830
  $RM conftest*
 
9831
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9832
  touch conftest.a
 
9833
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9834
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9836
$as_echo "$hard_links" >&6; }
 
9837
  if test "$hard_links" = no; then
 
9838
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9839
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9840
    need_locks=warn
 
9841
  fi
 
9842
else
 
9843
  need_locks=no
 
9844
fi
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9852
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9853
 
 
9854
  runpath_var=
 
9855
  allow_undefined_flag=
 
9856
  always_export_symbols=no
 
9857
  archive_cmds=
 
9858
  archive_expsym_cmds=
 
9859
  compiler_needs_object=no
 
9860
  enable_shared_with_static_runtimes=no
 
9861
  export_dynamic_flag_spec=
 
9862
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9863
  hardcode_automatic=no
 
9864
  hardcode_direct=no
 
9865
  hardcode_direct_absolute=no
 
9866
  hardcode_libdir_flag_spec=
 
9867
  hardcode_libdir_separator=
 
9868
  hardcode_minus_L=no
 
9869
  hardcode_shlibpath_var=unsupported
 
9870
  inherit_rpath=no
 
9871
  link_all_deplibs=unknown
 
9872
  module_cmds=
 
9873
  module_expsym_cmds=
 
9874
  old_archive_from_new_cmds=
 
9875
  old_archive_from_expsyms_cmds=
 
9876
  thread_safe_flag_spec=
 
9877
  whole_archive_flag_spec=
 
9878
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9879
  # included in the symbol list
 
9880
  include_expsyms=
 
9881
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9882
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9883
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9884
  # as well as any symbol that contains `d'.
 
9885
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9886
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9887
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9888
  # the symbol is explicitly referenced.  Since portable code cannot
 
9889
  # rely on this symbol name, it's probably fine to never include it in
 
9890
  # preloaded symbol tables.
 
9891
  # Exclude shared library initialization/finalization symbols.
 
9892
  extract_expsyms_cmds=
 
9893
 
 
9894
  case $host_os in
 
9895
  cygwin* | mingw* | pw32* | cegcc*)
 
9896
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9897
    # When not using gcc, we currently assume that we are using
 
9898
    # Microsoft Visual C++.
 
9899
    if test "$GCC" != yes; then
 
9900
      with_gnu_ld=no
 
9901
    fi
 
9902
    ;;
 
9903
  interix*)
 
9904
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9905
    with_gnu_ld=yes
 
9906
    ;;
 
9907
  openbsd*)
 
9908
    with_gnu_ld=no
 
9909
    ;;
 
9910
  linux* | k*bsd*-gnu | gnu*)
 
9911
    link_all_deplibs=no
 
9912
    ;;
 
9913
  esac
 
9914
 
 
9915
  ld_shlibs=yes
 
9916
 
 
9917
  # On some targets, GNU ld is compatible enough with the native linker
 
9918
  # that we're better off using the native interface for both.
 
9919
  lt_use_gnu_ld_interface=no
 
9920
  if test "$with_gnu_ld" = yes; then
 
9921
    case $host_os in
 
9922
      aix*)
 
9923
        # The AIX port of GNU ld has always aspired to compatibility
 
9924
        # with the native linker.  However, as the warning in the GNU ld
 
9925
        # block says, versions before 2.19.5* couldn't really create working
 
9926
        # shared libraries, regardless of the interface used.
 
9927
        case `$LD -v 2>&1` in
 
9928
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9929
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9930
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9931
          *)
 
9932
            lt_use_gnu_ld_interface=yes
 
9933
            ;;
 
9934
        esac
 
9935
        ;;
 
9936
      *)
 
9937
        lt_use_gnu_ld_interface=yes
 
9938
        ;;
 
9939
    esac
 
9940
  fi
 
9941
 
 
9942
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9943
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9944
    wlarc='${wl}'
 
9945
 
 
9946
    # Set some defaults for GNU ld with shared library support. These
 
9947
    # are reset later if shared libraries are not supported. Putting them
 
9948
    # here allows them to be overridden if necessary.
 
9949
    runpath_var=LD_RUN_PATH
 
9950
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9951
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9952
    # ancient GNU ld didn't support --whole-archive et. al.
 
9953
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9954
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9955
    else
 
9956
      whole_archive_flag_spec=
 
9957
    fi
 
9958
    supports_anon_versioning=no
 
9959
    case `$LD -v 2>&1` in
 
9960
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9961
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9962
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9963
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9964
      *\ 2.11.*) ;; # other 2.11 versions
 
9965
      *) supports_anon_versioning=yes ;;
 
9966
    esac
 
9967
 
 
9968
    # See if GNU ld supports shared libraries.
 
9969
    case $host_os in
 
9970
    aix[3-9]*)
 
9971
      # On AIX/PPC, the GNU linker is very broken
 
9972
      if test "$host_cpu" != ia64; then
 
9973
        ld_shlibs=no
 
9974
        cat <<_LT_EOF 1>&2
 
9975
 
 
9976
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9977
*** to be unable to reliably create shared libraries on AIX.
 
9978
*** Therefore, libtool is disabling shared libraries support.  If you
 
9979
*** really care for shared libraries, you may want to install binutils
 
9980
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9981
*** You will then need to restart the configuration process.
 
9982
 
 
9983
_LT_EOF
 
9984
      fi
 
9985
      ;;
 
9986
 
 
9987
    amigaos*)
 
9988
      case $host_cpu in
 
9989
      powerpc)
 
9990
            # see comment about AmigaOS4 .so support
 
9991
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9992
            archive_expsym_cmds=''
 
9993
        ;;
 
9994
      m68k)
 
9995
            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)'
 
9996
            hardcode_libdir_flag_spec='-L$libdir'
 
9997
            hardcode_minus_L=yes
 
9998
        ;;
 
9999
      esac
 
10000
      ;;
 
10001
 
 
10002
    beos*)
 
10003
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10004
        allow_undefined_flag=unsupported
 
10005
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10006
        # support --undefined.  This deserves some investigation.  FIXME
 
10007
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10008
      else
 
10009
        ld_shlibs=no
 
10010
      fi
 
10011
      ;;
 
10012
 
 
10013
    cygwin* | mingw* | pw32* | cegcc*)
 
10014
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10015
      # as there is no search path for DLLs.
 
10016
      hardcode_libdir_flag_spec='-L$libdir'
 
10017
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
10018
      allow_undefined_flag=unsupported
 
10019
      always_export_symbols=no
 
10020
      enable_shared_with_static_runtimes=yes
 
10021
      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'
 
10022
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
10023
 
 
10024
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10025
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10026
        # If the export-symbols file already is a .def file (1st line
 
10027
        # is EXPORTS), use it as is; otherwise, prepend...
 
10028
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10029
          cp $export_symbols $output_objdir/$soname.def;
 
10030
        else
 
10031
          echo EXPORTS > $output_objdir/$soname.def;
 
10032
          cat $export_symbols >> $output_objdir/$soname.def;
 
10033
        fi~
 
10034
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10035
      else
 
10036
        ld_shlibs=no
 
10037
      fi
 
10038
      ;;
 
10039
 
 
10040
    haiku*)
 
10041
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10042
      link_all_deplibs=yes
 
10043
      ;;
 
10044
 
 
10045
    interix[3-9]*)
 
10046
      hardcode_direct=no
 
10047
      hardcode_shlibpath_var=no
 
10048
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10049
      export_dynamic_flag_spec='${wl}-E'
 
10050
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10051
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10052
      # default) and relocated if they conflict, which is a slow very memory
 
10053
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10054
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10055
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10056
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10057
      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'
 
10058
      ;;
 
10059
 
 
10060
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
10061
      tmp_diet=no
 
10062
      if test "$host_os" = linux-dietlibc; then
 
10063
        case $cc_basename in
 
10064
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
10065
        esac
 
10066
      fi
 
10067
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
10068
         && test "$tmp_diet" = no
 
10069
      then
 
10070
        tmp_addflag=' $pic_flag'
 
10071
        tmp_sharedflag='-shared'
 
10072
        case $cc_basename,$host_cpu in
 
10073
        pgcc*)                          # Portland Group C compiler
 
10074
          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'
 
10075
          tmp_addflag=' $pic_flag'
 
10076
          ;;
 
10077
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
10078
                                        # Portland Group f77 and f90 compilers
 
10079
          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'
 
10080
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10081
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
10082
          tmp_addflag=' -i_dynamic' ;;
 
10083
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10084
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10085
        ifc* | ifort*)                  # Intel Fortran compiler
 
10086
          tmp_addflag=' -nofor_main' ;;
 
10087
        lf95*)                          # Lahey Fortran 8.1
 
10088
          whole_archive_flag_spec=
 
10089
          tmp_sharedflag='--shared' ;;
 
10090
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
10091
          tmp_sharedflag='-qmkshrobj'
 
10092
          tmp_addflag= ;;
 
10093
        nvcc*)  # Cuda Compiler Driver 2.2
 
10094
          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'
 
10095
          compiler_needs_object=yes
 
10096
          ;;
 
10097
        esac
 
10098
        case `$CC -V 2>&1 | sed 5q` in
 
10099
        *Sun\ C*)                       # Sun C 5.9
 
10100
          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'
 
10101
          compiler_needs_object=yes
 
10102
          tmp_sharedflag='-G' ;;
 
10103
        *Sun\ F*)                       # Sun Fortran 8.3
 
10104
          tmp_sharedflag='-G' ;;
 
10105
        esac
 
10106
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10107
 
 
10108
        if test "x$supports_anon_versioning" = xyes; then
 
10109
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10110
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10111
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10112
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10113
        fi
 
10114
 
 
10115
        case $cc_basename in
 
10116
        xlf* | bgf* | bgxlf* | mpixlf*)
 
10117
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10118
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10119
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10120
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
10121
          if test "x$supports_anon_versioning" = xyes; then
 
10122
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10123
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10124
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10125
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10126
          fi
 
10127
          ;;
 
10128
        esac
 
10129
      else
 
10130
        ld_shlibs=no
 
10131
      fi
 
10132
      ;;
 
10133
 
 
10134
    netbsd* | netbsdelf*-gnu)
 
10135
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10136
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10137
        wlarc=
 
10138
      else
 
10139
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10140
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10141
      fi
 
10142
      ;;
 
10143
 
 
10144
    solaris*)
 
10145
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10146
        ld_shlibs=no
 
10147
        cat <<_LT_EOF 1>&2
 
10148
 
 
10149
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10150
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10151
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10152
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10153
*** your PATH or compiler configuration so that the native linker is
 
10154
*** used, and then restart.
 
10155
 
 
10156
_LT_EOF
 
10157
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10158
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10159
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10160
      else
 
10161
        ld_shlibs=no
 
10162
      fi
 
10163
      ;;
 
10164
 
 
10165
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10166
      case `$LD -v 2>&1` in
 
10167
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10168
        ld_shlibs=no
 
10169
        cat <<_LT_EOF 1>&2
 
10170
 
 
10171
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10172
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10173
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10174
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10175
*** your PATH or compiler configuration so that the native linker is
 
10176
*** used, and then restart.
 
10177
 
 
10178
_LT_EOF
 
10179
        ;;
 
10180
        *)
 
10181
          # For security reasons, it is highly recommended that you always
 
10182
          # use absolute paths for naming shared libraries, and exclude the
 
10183
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10184
          # requires that you compile everything twice, which is a pain.
 
10185
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10186
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10187
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10188
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10189
          else
 
10190
            ld_shlibs=no
 
10191
          fi
 
10192
        ;;
 
10193
      esac
 
10194
      ;;
 
10195
 
 
10196
    sunos4*)
 
10197
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10198
      wlarc=
 
10199
      hardcode_direct=yes
 
10200
      hardcode_shlibpath_var=no
 
10201
      ;;
 
10202
 
 
10203
    *)
 
10204
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10205
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10206
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10207
      else
 
10208
        ld_shlibs=no
 
10209
      fi
 
10210
      ;;
 
10211
    esac
 
10212
 
 
10213
    if test "$ld_shlibs" = no; then
 
10214
      runpath_var=
 
10215
      hardcode_libdir_flag_spec=
 
10216
      export_dynamic_flag_spec=
 
10217
      whole_archive_flag_spec=
 
10218
    fi
 
10219
  else
 
10220
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10221
    case $host_os in
 
10222
    aix3*)
 
10223
      allow_undefined_flag=unsupported
 
10224
      always_export_symbols=yes
 
10225
      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'
 
10226
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10227
      # are no directories specified by -L.
 
10228
      hardcode_minus_L=yes
 
10229
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10230
        # Neither direct hardcoding nor static linking is supported with a
 
10231
        # broken collect2.
 
10232
        hardcode_direct=unsupported
 
10233
      fi
 
10234
      ;;
 
10235
 
 
10236
    aix[4-9]*)
 
10237
      if test "$host_cpu" = ia64; then
 
10238
        # On IA64, the linker does run time linking by default, so we don't
 
10239
        # have to do anything special.
 
10240
        aix_use_runtimelinking=no
 
10241
        exp_sym_flag='-Bexport'
 
10242
        no_entry_flag=""
 
10243
      else
 
10244
        # If we're using GNU nm, then we don't want the "-C" option.
 
10245
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10246
        # Also, AIX nm treats weak defined symbols like other global
 
10247
        # defined symbols, whereas GNU nm marks them as "W".
 
10248
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10249
          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'
 
10250
        else
 
10251
          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'
 
10252
        fi
 
10253
        aix_use_runtimelinking=no
 
10254
 
 
10255
        # Test if we are trying to use run time linking or normal
 
10256
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10257
        # need to do runtime linking.
 
10258
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10259
          for ld_flag in $LDFLAGS; do
 
10260
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10261
            aix_use_runtimelinking=yes
 
10262
            break
 
10263
          fi
 
10264
          done
 
10265
          ;;
 
10266
        esac
 
10267
 
 
10268
        exp_sym_flag='-bexport'
 
10269
        no_entry_flag='-bnoentry'
 
10270
      fi
 
10271
 
 
10272
      # When large executables or shared objects are built, AIX ld can
 
10273
      # have problems creating the table of contents.  If linking a library
 
10274
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10275
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10276
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10277
 
 
10278
      archive_cmds=''
 
10279
      hardcode_direct=yes
 
10280
      hardcode_direct_absolute=yes
 
10281
      hardcode_libdir_separator=':'
 
10282
      link_all_deplibs=yes
 
10283
      file_list_spec='${wl}-f,'
 
10284
 
 
10285
      if test "$GCC" = yes; then
 
10286
        case $host_os in aix4.[012]|aix4.[012].*)
 
10287
        # We only want to do this on AIX 4.2 and lower, the check
 
10288
        # below for broken collect2 doesn't work under 4.3+
 
10289
          collect2name=`${CC} -print-prog-name=collect2`
 
10290
          if test -f "$collect2name" &&
 
10291
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10292
          then
 
10293
          # We have reworked collect2
 
10294
          :
 
10295
          else
 
10296
          # We have old collect2
 
10297
          hardcode_direct=unsupported
 
10298
          # It fails to find uninstalled libraries when the uninstalled
 
10299
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10300
          # to unsupported forces relinking
 
10301
          hardcode_minus_L=yes
 
10302
          hardcode_libdir_flag_spec='-L$libdir'
 
10303
          hardcode_libdir_separator=
 
10304
          fi
 
10305
          ;;
 
10306
        esac
 
10307
        shared_flag='-shared'
 
10308
        if test "$aix_use_runtimelinking" = yes; then
 
10309
          shared_flag="$shared_flag "'${wl}-G'
 
10310
        fi
 
10311
        link_all_deplibs=no
 
10312
      else
 
10313
        # not using gcc
 
10314
        if test "$host_cpu" = ia64; then
 
10315
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10316
        # chokes on -Wl,-G. The following line is correct:
 
10317
          shared_flag='-G'
 
10318
        else
 
10319
          if test "$aix_use_runtimelinking" = yes; then
 
10320
            shared_flag='${wl}-G'
 
10321
          else
 
10322
            shared_flag='${wl}-bM:SRE'
 
10323
          fi
 
10324
        fi
 
10325
      fi
 
10326
 
 
10327
      export_dynamic_flag_spec='${wl}-bexpall'
 
10328
      # It seems that -bexpall does not export symbols beginning with
 
10329
      # underscore (_), so it is better to generate a list of symbols to export.
 
10330
      always_export_symbols=yes
 
10331
      if test "$aix_use_runtimelinking" = yes; then
 
10332
        # Warning - without using the other runtime loading flags (-brtl),
 
10333
        # -berok will link without error, but may produce a broken library.
 
10334
        allow_undefined_flag='-berok'
 
10335
        # Determine the default libpath from the value encoded in an
 
10336
        # empty executable.
 
10337
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10338
  aix_libpath=$lt_cv_aix_libpath
 
10339
else
 
10340
  if ${lt_cv_aix_libpath_+:} false; then :
 
10341
  $as_echo_n "(cached) " >&6
 
10342
else
 
10343
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10344
/* end confdefs.h.  */
 
10345
 
 
10346
int
 
10347
main ()
 
10348
{
 
10349
 
 
10350
  ;
 
10351
  return 0;
 
10352
}
 
10353
_ACEOF
 
10354
if ac_fn_c_try_link "$LINENO"; then :
 
10355
 
 
10356
  lt_aix_libpath_sed='
 
10357
      /Import File Strings/,/^$/ {
 
10358
          /^0/ {
 
10359
              s/^0  *\([^ ]*\) *$/\1/
 
10360
              p
 
10361
          }
 
10362
      }'
 
10363
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10364
  # Check for a 64-bit object if we didn't find anything.
 
10365
  if test -z "$lt_cv_aix_libpath_"; then
 
10366
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10367
  fi
 
10368
fi
 
10369
rm -f core conftest.err conftest.$ac_objext \
 
10370
    conftest$ac_exeext conftest.$ac_ext
 
10371
  if test -z "$lt_cv_aix_libpath_"; then
 
10372
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10373
  fi
 
10374
 
 
10375
fi
 
10376
 
 
10377
  aix_libpath=$lt_cv_aix_libpath_
 
10378
fi
 
10379
 
 
10380
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10381
        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"
 
10382
      else
 
10383
        if test "$host_cpu" = ia64; then
 
10384
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10385
          allow_undefined_flag="-z nodefs"
 
10386
          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"
 
10387
        else
 
10388
         # Determine the default libpath from the value encoded in an
 
10389
         # empty executable.
 
10390
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10391
  aix_libpath=$lt_cv_aix_libpath
 
10392
else
 
10393
  if ${lt_cv_aix_libpath_+:} false; then :
 
10394
  $as_echo_n "(cached) " >&6
 
10395
else
 
10396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10397
/* end confdefs.h.  */
 
10398
 
 
10399
int
 
10400
main ()
 
10401
{
 
10402
 
 
10403
  ;
 
10404
  return 0;
 
10405
}
 
10406
_ACEOF
 
10407
if ac_fn_c_try_link "$LINENO"; then :
 
10408
 
 
10409
  lt_aix_libpath_sed='
 
10410
      /Import File Strings/,/^$/ {
 
10411
          /^0/ {
 
10412
              s/^0  *\([^ ]*\) *$/\1/
 
10413
              p
 
10414
          }
 
10415
      }'
 
10416
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10417
  # Check for a 64-bit object if we didn't find anything.
 
10418
  if test -z "$lt_cv_aix_libpath_"; then
 
10419
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10420
  fi
 
10421
fi
 
10422
rm -f core conftest.err conftest.$ac_objext \
 
10423
    conftest$ac_exeext conftest.$ac_ext
 
10424
  if test -z "$lt_cv_aix_libpath_"; then
 
10425
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10426
  fi
 
10427
 
 
10428
fi
 
10429
 
 
10430
  aix_libpath=$lt_cv_aix_libpath_
 
10431
fi
 
10432
 
 
10433
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10434
          # Warning - without using the other run time loading flags,
 
10435
          # -berok will link without error, but may produce a broken library.
 
10436
          no_undefined_flag=' ${wl}-bernotok'
 
10437
          allow_undefined_flag=' ${wl}-berok'
 
10438
          if test "$with_gnu_ld" = yes; then
 
10439
            # We only use this code for GNU lds that support --whole-archive.
 
10440
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10441
          else
 
10442
            # Exported symbols can be pulled into shared objects from archives
 
10443
            whole_archive_flag_spec='$convenience'
 
10444
          fi
 
10445
          archive_cmds_need_lc=yes
 
10446
          # This is similar to how AIX traditionally builds its shared libraries.
 
10447
          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'
 
10448
        fi
 
10449
      fi
 
10450
      ;;
 
10451
 
 
10452
    amigaos*)
 
10453
      case $host_cpu in
 
10454
      powerpc)
 
10455
            # see comment about AmigaOS4 .so support
 
10456
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10457
            archive_expsym_cmds=''
 
10458
        ;;
 
10459
      m68k)
 
10460
            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)'
 
10461
            hardcode_libdir_flag_spec='-L$libdir'
 
10462
            hardcode_minus_L=yes
 
10463
        ;;
 
10464
      esac
 
10465
      ;;
 
10466
 
 
10467
    bsdi[45]*)
 
10468
      export_dynamic_flag_spec=-rdynamic
 
10469
      ;;
 
10470
 
 
10471
    cygwin* | mingw* | pw32* | cegcc*)
 
10472
      # When not using gcc, we currently assume that we are using
 
10473
      # Microsoft Visual C++.
 
10474
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10475
      # no search path for DLLs.
 
10476
      case $cc_basename in
 
10477
      cl*)
 
10478
        # Native MSVC
 
10479
        hardcode_libdir_flag_spec=' '
 
10480
        allow_undefined_flag=unsupported
 
10481
        always_export_symbols=yes
 
10482
        file_list_spec='@'
 
10483
        # Tell ltmain to make .lib files, not .a files.
 
10484
        libext=lib
 
10485
        # Tell ltmain to make .dll files, not .so files.
 
10486
        shrext_cmds=".dll"
 
10487
        # FIXME: Setting linknames here is a bad hack.
 
10488
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
10489
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10490
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
10491
          else
 
10492
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
10493
          fi~
 
10494
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10495
          linknames='
 
10496
        # The linker will not automatically build a static lib if we build a DLL.
 
10497
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10498
        enable_shared_with_static_runtimes=yes
 
10499
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10500
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10501
        # Don't use ranlib
 
10502
        old_postinstall_cmds='chmod 644 $oldlib'
 
10503
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10504
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10505
          case $lt_outputfile in
 
10506
            *.exe|*.EXE) ;;
 
10507
            *)
 
10508
              lt_outputfile="$lt_outputfile.exe"
 
10509
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10510
              ;;
 
10511
          esac~
 
10512
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10513
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10514
            $RM "$lt_outputfile.manifest";
 
10515
          fi'
 
10516
        ;;
 
10517
      *)
 
10518
        # Assume MSVC wrapper
 
10519
        hardcode_libdir_flag_spec=' '
 
10520
        allow_undefined_flag=unsupported
 
10521
        # Tell ltmain to make .lib files, not .a files.
 
10522
        libext=lib
 
10523
        # Tell ltmain to make .dll files, not .so files.
 
10524
        shrext_cmds=".dll"
 
10525
        # FIXME: Setting linknames here is a bad hack.
 
10526
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10527
        # The linker will automatically build a .lib file if we build a DLL.
 
10528
        old_archive_from_new_cmds='true'
 
10529
        # FIXME: Should let the user specify the lib program.
 
10530
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10531
        enable_shared_with_static_runtimes=yes
 
10532
        ;;
 
10533
      esac
 
10534
      ;;
 
10535
 
 
10536
    darwin* | rhapsody*)
 
10537
 
 
10538
 
 
10539
  archive_cmds_need_lc=no
 
10540
  hardcode_direct=no
 
10541
  hardcode_automatic=yes
 
10542
  hardcode_shlibpath_var=unsupported
 
10543
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10544
    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\"`'
 
10545
 
 
10546
  else
 
10547
    whole_archive_flag_spec=''
 
10548
  fi
 
10549
  link_all_deplibs=yes
 
10550
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10551
  case $cc_basename in
 
10552
     ifort*) _lt_dar_can_shared=yes ;;
 
10553
     *) _lt_dar_can_shared=$GCC ;;
 
10554
  esac
 
10555
  if test "$_lt_dar_can_shared" = "yes"; then
 
10556
    output_verbose_link_cmd=func_echo_all
 
10557
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10558
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10559
    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}"
 
10560
    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}"
 
10561
 
 
10562
  else
 
10563
  ld_shlibs=no
 
10564
  fi
 
10565
 
 
10566
      ;;
 
10567
 
 
10568
    dgux*)
 
10569
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10570
      hardcode_libdir_flag_spec='-L$libdir'
 
10571
      hardcode_shlibpath_var=no
 
10572
      ;;
 
10573
 
 
10574
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10575
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10576
    # does not break anything, and helps significantly (at the cost of a little
 
10577
    # extra space).
 
10578
    freebsd2.2*)
 
10579
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10580
      hardcode_libdir_flag_spec='-R$libdir'
 
10581
      hardcode_direct=yes
 
10582
      hardcode_shlibpath_var=no
 
10583
      ;;
 
10584
 
 
10585
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10586
    freebsd2.*)
 
10587
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10588
      hardcode_direct=yes
 
10589
      hardcode_minus_L=yes
 
10590
      hardcode_shlibpath_var=no
 
10591
      ;;
 
10592
 
 
10593
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10594
    freebsd* | dragonfly*)
 
10595
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10596
      hardcode_libdir_flag_spec='-R$libdir'
 
10597
      hardcode_direct=yes
 
10598
      hardcode_shlibpath_var=no
 
10599
      ;;
 
10600
 
 
10601
    hpux9*)
 
10602
      if test "$GCC" = yes; then
 
10603
        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'
 
10604
      else
 
10605
        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'
 
10606
      fi
 
10607
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10608
      hardcode_libdir_separator=:
 
10609
      hardcode_direct=yes
 
10610
 
 
10611
      # hardcode_minus_L: Not really in the search PATH,
 
10612
      # but as the default location of the library.
 
10613
      hardcode_minus_L=yes
 
10614
      export_dynamic_flag_spec='${wl}-E'
 
10615
      ;;
 
10616
 
 
10617
    hpux10*)
 
10618
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10619
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10620
      else
 
10621
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10622
      fi
 
10623
      if test "$with_gnu_ld" = no; then
 
10624
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10625
        hardcode_libdir_separator=:
 
10626
        hardcode_direct=yes
 
10627
        hardcode_direct_absolute=yes
 
10628
        export_dynamic_flag_spec='${wl}-E'
 
10629
        # hardcode_minus_L: Not really in the search PATH,
 
10630
        # but as the default location of the library.
 
10631
        hardcode_minus_L=yes
 
10632
      fi
 
10633
      ;;
 
10634
 
 
10635
    hpux11*)
 
10636
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10637
        case $host_cpu in
 
10638
        hppa*64*)
 
10639
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10640
          ;;
 
10641
        ia64*)
 
10642
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10643
          ;;
 
10644
        *)
 
10645
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10646
          ;;
 
10647
        esac
 
10648
      else
 
10649
        case $host_cpu in
 
10650
        hppa*64*)
 
10651
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10652
          ;;
 
10653
        ia64*)
 
10654
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10655
          ;;
 
10656
        *)
 
10657
 
 
10658
          # Older versions of the 11.00 compiler do not understand -b yet
 
10659
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10660
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10661
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10662
if ${lt_cv_prog_compiler__b+:} false; then :
 
10663
  $as_echo_n "(cached) " >&6
 
10664
else
 
10665
  lt_cv_prog_compiler__b=no
 
10666
   save_LDFLAGS="$LDFLAGS"
 
10667
   LDFLAGS="$LDFLAGS -b"
 
10668
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10669
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10670
     # The linker can only warn and ignore the option if not recognized
 
10671
     # So say no if there are warnings
 
10672
     if test -s conftest.err; then
 
10673
       # Append any errors to the config.log.
 
10674
       cat conftest.err 1>&5
 
10675
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10676
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10677
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10678
         lt_cv_prog_compiler__b=yes
 
10679
       fi
 
10680
     else
 
10681
       lt_cv_prog_compiler__b=yes
 
10682
     fi
 
10683
   fi
 
10684
   $RM -r conftest*
 
10685
   LDFLAGS="$save_LDFLAGS"
 
10686
 
 
10687
fi
 
10688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10689
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10690
 
 
10691
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10692
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10693
else
 
10694
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10695
fi
 
10696
 
 
10697
          ;;
 
10698
        esac
 
10699
      fi
 
10700
      if test "$with_gnu_ld" = no; then
 
10701
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10702
        hardcode_libdir_separator=:
 
10703
 
 
10704
        case $host_cpu in
 
10705
        hppa*64*|ia64*)
 
10706
          hardcode_direct=no
 
10707
          hardcode_shlibpath_var=no
 
10708
          ;;
 
10709
        *)
 
10710
          hardcode_direct=yes
 
10711
          hardcode_direct_absolute=yes
 
10712
          export_dynamic_flag_spec='${wl}-E'
 
10713
 
 
10714
          # hardcode_minus_L: Not really in the search PATH,
 
10715
          # but as the default location of the library.
 
10716
          hardcode_minus_L=yes
 
10717
          ;;
 
10718
        esac
 
10719
      fi
 
10720
      ;;
 
10721
 
 
10722
    irix5* | irix6* | nonstopux*)
 
10723
      if test "$GCC" = yes; then
 
10724
        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'
 
10725
        # Try to use the -exported_symbol ld option, if it does not
 
10726
        # work, assume that -exports_file does not work either and
 
10727
        # implicitly export all symbols.
 
10728
        # This should be the same for all languages, so no per-tag cache variable.
 
10729
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10730
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10731
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10732
  $as_echo_n "(cached) " >&6
 
10733
else
 
10734
  save_LDFLAGS="$LDFLAGS"
 
10735
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10736
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10737
/* end confdefs.h.  */
 
10738
int foo (void) { return 0; }
 
10739
_ACEOF
 
10740
if ac_fn_c_try_link "$LINENO"; then :
 
10741
  lt_cv_irix_exported_symbol=yes
 
10742
else
 
10743
  lt_cv_irix_exported_symbol=no
 
10744
fi
 
10745
rm -f core conftest.err conftest.$ac_objext \
 
10746
    conftest$ac_exeext conftest.$ac_ext
 
10747
           LDFLAGS="$save_LDFLAGS"
 
10748
fi
 
10749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10750
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10751
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10752
          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'
 
10753
        fi
 
10754
      else
 
10755
        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'
 
10756
        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'
 
10757
      fi
 
10758
      archive_cmds_need_lc='no'
 
10759
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10760
      hardcode_libdir_separator=:
 
10761
      inherit_rpath=yes
 
10762
      link_all_deplibs=yes
 
10763
      ;;
 
10764
 
 
10765
    netbsd* | netbsdelf*-gnu)
 
10766
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10767
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10768
      else
 
10769
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10770
      fi
 
10771
      hardcode_libdir_flag_spec='-R$libdir'
 
10772
      hardcode_direct=yes
 
10773
      hardcode_shlibpath_var=no
 
10774
      ;;
 
10775
 
 
10776
    newsos6)
 
10777
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10778
      hardcode_direct=yes
 
10779
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10780
      hardcode_libdir_separator=:
 
10781
      hardcode_shlibpath_var=no
 
10782
      ;;
 
10783
 
 
10784
    *nto* | *qnx*)
 
10785
      ;;
 
10786
 
 
10787
    openbsd*)
 
10788
      if test -f /usr/libexec/ld.so; then
 
10789
        hardcode_direct=yes
 
10790
        hardcode_shlibpath_var=no
 
10791
        hardcode_direct_absolute=yes
 
10792
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10793
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10794
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10795
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10796
          export_dynamic_flag_spec='${wl}-E'
 
10797
        else
 
10798
          case $host_os in
 
10799
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10800
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10801
             hardcode_libdir_flag_spec='-R$libdir'
 
10802
             ;;
 
10803
           *)
 
10804
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10805
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10806
             ;;
 
10807
          esac
 
10808
        fi
 
10809
      else
 
10810
        ld_shlibs=no
 
10811
      fi
 
10812
      ;;
 
10813
 
 
10814
    os2*)
 
10815
      hardcode_libdir_flag_spec='-L$libdir'
 
10816
      hardcode_minus_L=yes
 
10817
      allow_undefined_flag=unsupported
 
10818
      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'
 
10819
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10820
      ;;
 
10821
 
 
10822
    osf3*)
 
10823
      if test "$GCC" = yes; then
 
10824
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10825
        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'
 
10826
      else
 
10827
        allow_undefined_flag=' -expect_unresolved \*'
 
10828
        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'
 
10829
      fi
 
10830
      archive_cmds_need_lc='no'
 
10831
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10832
      hardcode_libdir_separator=:
 
10833
      ;;
 
10834
 
 
10835
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10836
      if test "$GCC" = yes; then
 
10837
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10838
        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'
 
10839
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10840
      else
 
10841
        allow_undefined_flag=' -expect_unresolved \*'
 
10842
        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'
 
10843
        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~
 
10844
        $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'
 
10845
 
 
10846
        # Both c and cxx compiler support -rpath directly
 
10847
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10848
      fi
 
10849
      archive_cmds_need_lc='no'
 
10850
      hardcode_libdir_separator=:
 
10851
      ;;
 
10852
 
 
10853
    solaris*)
 
10854
      no_undefined_flag=' -z defs'
 
10855
      if test "$GCC" = yes; then
 
10856
        wlarc='${wl}'
 
10857
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10858
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10859
          $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'
 
10860
      else
 
10861
        case `$CC -V 2>&1` in
 
10862
        *"Compilers 5.0"*)
 
10863
          wlarc=''
 
10864
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10865
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10866
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10867
          ;;
 
10868
        *)
 
10869
          wlarc='${wl}'
 
10870
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10871
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10872
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10873
          ;;
 
10874
        esac
 
10875
      fi
 
10876
      hardcode_libdir_flag_spec='-R$libdir'
 
10877
      hardcode_shlibpath_var=no
 
10878
      case $host_os in
 
10879
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10880
      *)
 
10881
        # The compiler driver will combine and reorder linker options,
 
10882
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10883
        # but is careful enough not to reorder.
 
10884
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10885
        if test "$GCC" = yes; then
 
10886
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10887
        else
 
10888
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10889
        fi
 
10890
        ;;
 
10891
      esac
 
10892
      link_all_deplibs=yes
 
10893
      ;;
 
10894
 
 
10895
    sunos4*)
 
10896
      if test "x$host_vendor" = xsequent; then
 
10897
        # Use $CC to link under sequent, because it throws in some extra .o
 
10898
        # files that make .init and .fini sections work.
 
10899
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10900
      else
 
10901
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10902
      fi
 
10903
      hardcode_libdir_flag_spec='-L$libdir'
 
10904
      hardcode_direct=yes
 
10905
      hardcode_minus_L=yes
 
10906
      hardcode_shlibpath_var=no
 
10907
      ;;
 
10908
 
 
10909
    sysv4)
 
10910
      case $host_vendor in
 
10911
        sni)
 
10912
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10913
          hardcode_direct=yes # is this really true???
 
10914
        ;;
 
10915
        siemens)
 
10916
          ## LD is ld it makes a PLAMLIB
 
10917
          ## CC just makes a GrossModule.
 
10918
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10919
          reload_cmds='$CC -r -o $output$reload_objs'
 
10920
          hardcode_direct=no
 
10921
        ;;
 
10922
        motorola)
 
10923
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10924
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10925
        ;;
 
10926
      esac
 
10927
      runpath_var='LD_RUN_PATH'
 
10928
      hardcode_shlibpath_var=no
 
10929
      ;;
 
10930
 
 
10931
    sysv4.3*)
 
10932
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10933
      hardcode_shlibpath_var=no
 
10934
      export_dynamic_flag_spec='-Bexport'
 
10935
      ;;
 
10936
 
 
10937
    sysv4*MP*)
 
10938
      if test -d /usr/nec; then
 
10939
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10940
        hardcode_shlibpath_var=no
 
10941
        runpath_var=LD_RUN_PATH
 
10942
        hardcode_runpath_var=yes
 
10943
        ld_shlibs=yes
 
10944
      fi
 
10945
      ;;
 
10946
 
 
10947
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10948
      no_undefined_flag='${wl}-z,text'
 
10949
      archive_cmds_need_lc=no
 
10950
      hardcode_shlibpath_var=no
 
10951
      runpath_var='LD_RUN_PATH'
 
10952
 
 
10953
      if test "$GCC" = yes; then
 
10954
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10955
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10956
      else
 
10957
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10958
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10959
      fi
 
10960
      ;;
 
10961
 
 
10962
    sysv5* | sco3.2v5* | sco5v6*)
 
10963
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10964
      # link with -lc, and that would cause any symbols used from libc to
 
10965
      # always be unresolved, which means just about no library would
 
10966
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10967
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10968
      # as -z defs.
 
10969
      no_undefined_flag='${wl}-z,text'
 
10970
      allow_undefined_flag='${wl}-z,nodefs'
 
10971
      archive_cmds_need_lc=no
 
10972
      hardcode_shlibpath_var=no
 
10973
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10974
      hardcode_libdir_separator=':'
 
10975
      link_all_deplibs=yes
 
10976
      export_dynamic_flag_spec='${wl}-Bexport'
 
10977
      runpath_var='LD_RUN_PATH'
 
10978
 
 
10979
      if test "$GCC" = yes; then
 
10980
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10981
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10982
      else
 
10983
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10984
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10985
      fi
 
10986
      ;;
 
10987
 
 
10988
    uts4*)
 
10989
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10990
      hardcode_libdir_flag_spec='-L$libdir'
 
10991
      hardcode_shlibpath_var=no
 
10992
      ;;
 
10993
 
 
10994
    *)
 
10995
      ld_shlibs=no
 
10996
      ;;
 
10997
    esac
 
10998
 
 
10999
    if test x$host_vendor = xsni; then
 
11000
      case $host in
 
11001
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11002
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11003
        ;;
 
11004
      esac
 
11005
    fi
 
11006
  fi
 
11007
 
 
11008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
11009
$as_echo "$ld_shlibs" >&6; }
 
11010
test "$ld_shlibs" = no && can_build_shared=no
 
11011
 
 
11012
with_gnu_ld=$with_gnu_ld
 
11013
 
 
11014
 
 
11015
 
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
 
 
11024
 
 
11025
 
 
11026
 
 
11027
 
 
11028
#
 
11029
# Do we need to explicitly link libc?
 
11030
#
 
11031
case "x$archive_cmds_need_lc" in
 
11032
x|xyes)
 
11033
  # Assume -lc should be added
 
11034
  archive_cmds_need_lc=yes
 
11035
 
 
11036
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11037
    case $archive_cmds in
 
11038
    *'~'*)
 
11039
      # FIXME: we may have to deal with multi-command sequences.
 
11040
      ;;
 
11041
    '$CC '*)
 
11042
      # Test whether the compiler implicitly links with -lc since on some
 
11043
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11044
      # to ld, don't add -lc before -lgcc.
 
11045
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
11046
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
11047
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
11048
  $as_echo_n "(cached) " >&6
 
11049
else
 
11050
  $RM conftest*
 
11051
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11052
 
 
11053
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11054
  (eval $ac_compile) 2>&5
 
11055
  ac_status=$?
 
11056
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11057
  test $ac_status = 0; } 2>conftest.err; then
 
11058
          soname=conftest
 
11059
          lib=conftest
 
11060
          libobjs=conftest.$ac_objext
 
11061
          deplibs=
 
11062
          wl=$lt_prog_compiler_wl
 
11063
          pic_flag=$lt_prog_compiler_pic
 
11064
          compiler_flags=-v
 
11065
          linker_flags=-v
 
11066
          verstring=
 
11067
          output_objdir=.
 
11068
          libname=conftest
 
11069
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
11070
          allow_undefined_flag=
 
11071
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11072
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11073
  ac_status=$?
 
11074
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11075
  test $ac_status = 0; }
 
11076
          then
 
11077
            lt_cv_archive_cmds_need_lc=no
 
11078
          else
 
11079
            lt_cv_archive_cmds_need_lc=yes
 
11080
          fi
 
11081
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
11082
        else
 
11083
          cat conftest.err 1>&5
 
11084
        fi
 
11085
        $RM conftest*
 
11086
 
 
11087
fi
 
11088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
11089
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
11090
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
11091
      ;;
 
11092
    esac
 
11093
  fi
 
11094
  ;;
 
11095
esac
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
 
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11249
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
11250
 
 
11251
if test "$GCC" = yes; then
 
11252
  case $host_os in
 
11253
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
11254
    *) lt_awk_arg="/^libraries:/" ;;
 
11255
  esac
 
11256
  case $host_os in
 
11257
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
11258
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
11259
  esac
 
11260
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11261
  case $lt_search_path_spec in
 
11262
  *\;*)
 
11263
    # if the path contains ";" then we assume it to be the separator
 
11264
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11265
    # assumed that no part of a normal pathname contains ";" but that should
 
11266
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11267
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11268
    ;;
 
11269
  *)
 
11270
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11271
    ;;
 
11272
  esac
 
11273
  # Ok, now we have the path, separated by spaces, we can step through it
 
11274
  # and add multilib dir if necessary.
 
11275
  lt_tmp_lt_search_path_spec=
 
11276
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11277
  for lt_sys_path in $lt_search_path_spec; do
 
11278
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
11279
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
11280
    else
 
11281
      test -d "$lt_sys_path" && \
 
11282
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11283
    fi
 
11284
  done
 
11285
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
11286
BEGIN {RS=" "; FS="/|\n";} {
 
11287
  lt_foo="";
 
11288
  lt_count=0;
 
11289
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11290
    if ($lt_i != "" && $lt_i != ".") {
 
11291
      if ($lt_i == "..") {
 
11292
        lt_count++;
 
11293
      } else {
 
11294
        if (lt_count == 0) {
 
11295
          lt_foo="/" $lt_i lt_foo;
 
11296
        } else {
 
11297
          lt_count--;
 
11298
        }
 
11299
      }
 
11300
    }
 
11301
  }
 
11302
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11303
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11304
}'`
 
11305
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11306
  # for these hosts.
 
11307
  case $host_os in
 
11308
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11309
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
11310
  esac
 
11311
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
11312
else
 
11313
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11314
fi
 
11315
library_names_spec=
 
11316
libname_spec='lib$name'
 
11317
soname_spec=
 
11318
shrext_cmds=".so"
 
11319
postinstall_cmds=
 
11320
postuninstall_cmds=
 
11321
finish_cmds=
 
11322
finish_eval=
 
11323
shlibpath_var=
 
11324
shlibpath_overrides_runpath=unknown
 
11325
version_type=none
 
11326
dynamic_linker="$host_os ld.so"
 
11327
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11328
need_lib_prefix=unknown
 
11329
hardcode_into_libs=no
 
11330
 
 
11331
# when you set need_version to no, make sure it does not cause -set_version
 
11332
# flags to be left without arguments
 
11333
need_version=unknown
 
11334
 
 
11335
case $host_os in
 
11336
aix3*)
 
11337
  version_type=linux # correct to gnu/linux during the next big refactor
 
11338
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11339
  shlibpath_var=LIBPATH
 
11340
 
 
11341
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11342
  soname_spec='${libname}${release}${shared_ext}$major'
 
11343
  ;;
 
11344
 
 
11345
aix[4-9]*)
 
11346
  version_type=linux # correct to gnu/linux during the next big refactor
 
11347
  need_lib_prefix=no
 
11348
  need_version=no
 
11349
  hardcode_into_libs=yes
 
11350
  if test "$host_cpu" = ia64; then
 
11351
    # AIX 5 supports IA64
 
11352
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11353
    shlibpath_var=LD_LIBRARY_PATH
 
11354
  else
 
11355
    # With GCC up to 2.95.x, collect2 would create an import file
 
11356
    # for dependence libraries.  The import file would start with
 
11357
    # the line `#! .'.  This would cause the generated library to
 
11358
    # depend on `.', always an invalid library.  This was fixed in
 
11359
    # development snapshots of GCC prior to 3.0.
 
11360
    case $host_os in
 
11361
      aix4 | aix4.[01] | aix4.[01].*)
 
11362
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11363
           echo ' yes '
 
11364
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11365
        :
 
11366
      else
 
11367
        can_build_shared=no
 
11368
      fi
 
11369
      ;;
 
11370
    esac
 
11371
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11372
    # soname into executable. Probably we can add versioning support to
 
11373
    # collect2, so additional links can be useful in future.
 
11374
    if test "$aix_use_runtimelinking" = yes; then
 
11375
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11376
      # instead of lib<name>.a to let people know that these are not
 
11377
      # typical AIX shared libraries.
 
11378
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11379
    else
 
11380
      # We preserve .a as extension for shared libraries through AIX4.2
 
11381
      # and later when we are not doing run time linking.
 
11382
      library_names_spec='${libname}${release}.a $libname.a'
 
11383
      soname_spec='${libname}${release}${shared_ext}$major'
 
11384
    fi
 
11385
    shlibpath_var=LIBPATH
 
11386
  fi
 
11387
  ;;
 
11388
 
 
11389
amigaos*)
 
11390
  case $host_cpu in
 
11391
  powerpc)
 
11392
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11393
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11394
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11395
    ;;
 
11396
  m68k)
 
11397
    library_names_spec='$libname.ixlibrary $libname.a'
 
11398
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11399
    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'
 
11400
    ;;
 
11401
  esac
 
11402
  ;;
 
11403
 
 
11404
beos*)
 
11405
  library_names_spec='${libname}${shared_ext}'
 
11406
  dynamic_linker="$host_os ld.so"
 
11407
  shlibpath_var=LIBRARY_PATH
 
11408
  ;;
 
11409
 
 
11410
bsdi[45]*)
 
11411
  version_type=linux # correct to gnu/linux during the next big refactor
 
11412
  need_version=no
 
11413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11414
  soname_spec='${libname}${release}${shared_ext}$major'
 
11415
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11416
  shlibpath_var=LD_LIBRARY_PATH
 
11417
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11418
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11419
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11420
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11421
  # libtool to hard-code these into programs
 
11422
  ;;
 
11423
 
 
11424
cygwin* | mingw* | pw32* | cegcc*)
 
11425
  version_type=windows
 
11426
  shrext_cmds=".dll"
 
11427
  need_version=no
 
11428
  need_lib_prefix=no
 
11429
 
 
11430
  case $GCC,$cc_basename in
 
11431
  yes,*)
 
11432
    # gcc
 
11433
    library_names_spec='$libname.dll.a'
 
11434
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11435
    postinstall_cmds='base_file=`basename \${file}`~
 
11436
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11437
      dldir=$destdir/`dirname \$dlpath`~
 
11438
      test -d \$dldir || mkdir -p \$dldir~
 
11439
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11440
      chmod a+x \$dldir/$dlname~
 
11441
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11442
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11443
      fi'
 
11444
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11445
      dlpath=$dir/\$dldll~
 
11446
       $RM \$dlpath'
 
11447
    shlibpath_overrides_runpath=yes
 
11448
 
 
11449
    case $host_os in
 
11450
    cygwin*)
 
11451
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11452
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11453
 
 
11454
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11455
      ;;
 
11456
    mingw* | cegcc*)
 
11457
      # MinGW DLLs use traditional 'lib' prefix
 
11458
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11459
      ;;
 
11460
    pw32*)
 
11461
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11462
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11463
      ;;
 
11464
    esac
 
11465
    dynamic_linker='Win32 ld.exe'
 
11466
    ;;
 
11467
 
 
11468
  *,cl*)
 
11469
    # Native MSVC
 
11470
    libname_spec='$name'
 
11471
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11472
    library_names_spec='${libname}.dll.lib'
 
11473
 
 
11474
    case $build_os in
 
11475
    mingw*)
 
11476
      sys_lib_search_path_spec=
 
11477
      lt_save_ifs=$IFS
 
11478
      IFS=';'
 
11479
      for lt_path in $LIB
 
11480
      do
 
11481
        IFS=$lt_save_ifs
 
11482
        # Let DOS variable expansion print the short 8.3 style file name.
 
11483
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11484
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11485
      done
 
11486
      IFS=$lt_save_ifs
 
11487
      # Convert to MSYS style.
 
11488
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11489
      ;;
 
11490
    cygwin*)
 
11491
      # Convert to unix form, then to dos form, then back to unix form
 
11492
      # but this time dos style (no spaces!) so that the unix form looks
 
11493
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11494
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11495
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11496
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11497
      ;;
 
11498
    *)
 
11499
      sys_lib_search_path_spec="$LIB"
 
11500
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11501
        # It is most probably a Windows format PATH.
 
11502
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11503
      else
 
11504
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11505
      fi
 
11506
      # FIXME: find the short name or the path components, as spaces are
 
11507
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11508
      ;;
 
11509
    esac
 
11510
 
 
11511
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11512
    postinstall_cmds='base_file=`basename \${file}`~
 
11513
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11514
      dldir=$destdir/`dirname \$dlpath`~
 
11515
      test -d \$dldir || mkdir -p \$dldir~
 
11516
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11517
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11518
      dlpath=$dir/\$dldll~
 
11519
       $RM \$dlpath'
 
11520
    shlibpath_overrides_runpath=yes
 
11521
    dynamic_linker='Win32 link.exe'
 
11522
    ;;
 
11523
 
 
11524
  *)
 
11525
    # Assume MSVC wrapper
 
11526
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11527
    dynamic_linker='Win32 ld.exe'
 
11528
    ;;
 
11529
  esac
 
11530
  # FIXME: first we should search . and the directory the executable is in
 
11531
  shlibpath_var=PATH
 
11532
  ;;
 
11533
 
 
11534
darwin* | rhapsody*)
 
11535
  dynamic_linker="$host_os dyld"
 
11536
  version_type=darwin
 
11537
  need_lib_prefix=no
 
11538
  need_version=no
 
11539
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11540
  soname_spec='${libname}${release}${major}$shared_ext'
 
11541
  shlibpath_overrides_runpath=yes
 
11542
  shlibpath_var=DYLD_LIBRARY_PATH
 
11543
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11544
 
 
11545
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11546
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11547
  ;;
 
11548
 
 
11549
dgux*)
 
11550
  version_type=linux # correct to gnu/linux during the next big refactor
 
11551
  need_lib_prefix=no
 
11552
  need_version=no
 
11553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11554
  soname_spec='${libname}${release}${shared_ext}$major'
 
11555
  shlibpath_var=LD_LIBRARY_PATH
 
11556
  ;;
 
11557
 
 
11558
freebsd* | dragonfly*)
 
11559
  # DragonFly does not have aout.  When/if they implement a new
 
11560
  # versioning mechanism, adjust this.
 
11561
  if test -x /usr/bin/objformat; then
 
11562
    objformat=`/usr/bin/objformat`
 
11563
  else
 
11564
    case $host_os in
 
11565
    freebsd[23].*) objformat=aout ;;
 
11566
    *) objformat=elf ;;
 
11567
    esac
 
11568
  fi
 
11569
  version_type=freebsd-$objformat
 
11570
  case $version_type in
 
11571
    freebsd-elf*)
 
11572
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11573
      need_version=no
 
11574
      need_lib_prefix=no
 
11575
      ;;
 
11576
    freebsd-*)
 
11577
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11578
      need_version=yes
 
11579
      ;;
 
11580
  esac
 
11581
  shlibpath_var=LD_LIBRARY_PATH
 
11582
  case $host_os in
 
11583
  freebsd2.*)
 
11584
    shlibpath_overrides_runpath=yes
 
11585
    ;;
 
11586
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11587
    shlibpath_overrides_runpath=yes
 
11588
    hardcode_into_libs=yes
 
11589
    ;;
 
11590
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11591
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11592
    shlibpath_overrides_runpath=no
 
11593
    hardcode_into_libs=yes
 
11594
    ;;
 
11595
  *) # from 4.6 on, and DragonFly
 
11596
    shlibpath_overrides_runpath=yes
 
11597
    hardcode_into_libs=yes
 
11598
    ;;
 
11599
  esac
 
11600
  ;;
 
11601
 
 
11602
haiku*)
 
11603
  version_type=linux # correct to gnu/linux during the next big refactor
 
11604
  need_lib_prefix=no
 
11605
  need_version=no
 
11606
  dynamic_linker="$host_os runtime_loader"
 
11607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11608
  soname_spec='${libname}${release}${shared_ext}$major'
 
11609
  shlibpath_var=LIBRARY_PATH
 
11610
  shlibpath_overrides_runpath=yes
 
11611
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11612
  hardcode_into_libs=yes
 
11613
  ;;
 
11614
 
 
11615
hpux9* | hpux10* | hpux11*)
 
11616
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11617
  # link against other versions.
 
11618
  version_type=sunos
 
11619
  need_lib_prefix=no
 
11620
  need_version=no
 
11621
  case $host_cpu in
 
11622
  ia64*)
 
11623
    shrext_cmds='.so'
 
11624
    hardcode_into_libs=yes
 
11625
    dynamic_linker="$host_os dld.so"
 
11626
    shlibpath_var=LD_LIBRARY_PATH
 
11627
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11628
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11629
    soname_spec='${libname}${release}${shared_ext}$major'
 
11630
    if test "X$HPUX_IA64_MODE" = X32; then
 
11631
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11632
    else
 
11633
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11634
    fi
 
11635
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11636
    ;;
 
11637
  hppa*64*)
 
11638
    shrext_cmds='.sl'
 
11639
    hardcode_into_libs=yes
 
11640
    dynamic_linker="$host_os dld.sl"
 
11641
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11642
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11643
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11644
    soname_spec='${libname}${release}${shared_ext}$major'
 
11645
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11646
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11647
    ;;
 
11648
  *)
 
11649
    shrext_cmds='.sl'
 
11650
    dynamic_linker="$host_os dld.sl"
 
11651
    shlibpath_var=SHLIB_PATH
 
11652
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11653
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11654
    soname_spec='${libname}${release}${shared_ext}$major'
 
11655
    ;;
 
11656
  esac
 
11657
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11658
  postinstall_cmds='chmod 555 $lib'
 
11659
  # or fails outright, so override atomically:
 
11660
  install_override_mode=555
 
11661
  ;;
 
11662
 
 
11663
interix[3-9]*)
 
11664
  version_type=linux # correct to gnu/linux during the next big refactor
 
11665
  need_lib_prefix=no
 
11666
  need_version=no
 
11667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11668
  soname_spec='${libname}${release}${shared_ext}$major'
 
11669
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11670
  shlibpath_var=LD_LIBRARY_PATH
 
11671
  shlibpath_overrides_runpath=no
 
11672
  hardcode_into_libs=yes
 
11673
  ;;
 
11674
 
 
11675
irix5* | irix6* | nonstopux*)
 
11676
  case $host_os in
 
11677
    nonstopux*) version_type=nonstopux ;;
 
11678
    *)
 
11679
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11680
                version_type=linux # correct to gnu/linux during the next big refactor
 
11681
        else
 
11682
                version_type=irix
 
11683
        fi ;;
 
11684
  esac
 
11685
  need_lib_prefix=no
 
11686
  need_version=no
 
11687
  soname_spec='${libname}${release}${shared_ext}$major'
 
11688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11689
  case $host_os in
 
11690
  irix5* | nonstopux*)
 
11691
    libsuff= shlibsuff=
 
11692
    ;;
 
11693
  *)
 
11694
    case $LD in # libtool.m4 will add one of these switches to LD
 
11695
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11696
      libsuff= shlibsuff= libmagic=32-bit;;
 
11697
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11698
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11699
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11700
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11701
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11702
    esac
 
11703
    ;;
 
11704
  esac
 
11705
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11706
  shlibpath_overrides_runpath=no
 
11707
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11708
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11709
  hardcode_into_libs=yes
 
11710
  ;;
 
11711
 
 
11712
# No shared lib support for Linux oldld, aout, or coff.
 
11713
linux*oldld* | linux*aout* | linux*coff*)
 
11714
  dynamic_linker=no
 
11715
  ;;
 
11716
 
 
11717
# This must be glibc/ELF.
 
11718
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11719
  version_type=linux # correct to gnu/linux during the next big refactor
 
11720
  need_lib_prefix=no
 
11721
  need_version=no
 
11722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11723
  soname_spec='${libname}${release}${shared_ext}$major'
 
11724
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11725
  shlibpath_var=LD_LIBRARY_PATH
 
11726
  shlibpath_overrides_runpath=no
 
11727
 
 
11728
  # Some binutils ld are patched to set DT_RUNPATH
 
11729
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11730
  $as_echo_n "(cached) " >&6
 
11731
else
 
11732
  lt_cv_shlibpath_overrides_runpath=no
 
11733
    save_LDFLAGS=$LDFLAGS
 
11734
    save_libdir=$libdir
 
11735
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11736
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11737
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11738
/* end confdefs.h.  */
 
11739
 
 
11740
int
 
11741
main ()
 
11742
{
 
11743
 
 
11744
  ;
 
11745
  return 0;
 
11746
}
 
11747
_ACEOF
 
11748
if ac_fn_c_try_link "$LINENO"; then :
 
11749
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11750
  lt_cv_shlibpath_overrides_runpath=yes
 
11751
fi
 
11752
fi
 
11753
rm -f core conftest.err conftest.$ac_objext \
 
11754
    conftest$ac_exeext conftest.$ac_ext
 
11755
    LDFLAGS=$save_LDFLAGS
 
11756
    libdir=$save_libdir
 
11757
 
 
11758
fi
 
11759
 
 
11760
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11761
 
 
11762
  # This implies no fast_install, which is unacceptable.
 
11763
  # Some rework will be needed to allow for fast_install
 
11764
  # before this can be enabled.
 
11765
  hardcode_into_libs=yes
 
11766
 
 
11767
  # Append ld.so.conf contents to the search path
 
11768
  if test -f /etc/ld.so.conf; then
 
11769
    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' ' '`
 
11770
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11771
  fi
 
11772
 
 
11773
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11774
  # powerpc, because MkLinux only supported shared libraries with the
 
11775
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11776
  # most powerpc-linux boxes support dynamic linking these days and
 
11777
  # people can always --disable-shared, the test was removed, and we
 
11778
  # assume the GNU/Linux dynamic linker is in use.
 
11779
  dynamic_linker='GNU/Linux ld.so'
 
11780
  ;;
 
11781
 
 
11782
netbsdelf*-gnu)
 
11783
  version_type=linux
 
11784
  need_lib_prefix=no
 
11785
  need_version=no
 
11786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11787
  soname_spec='${libname}${release}${shared_ext}$major'
 
11788
  shlibpath_var=LD_LIBRARY_PATH
 
11789
  shlibpath_overrides_runpath=no
 
11790
  hardcode_into_libs=yes
 
11791
  dynamic_linker='NetBSD ld.elf_so'
 
11792
  ;;
 
11793
 
 
11794
netbsd*)
 
11795
  version_type=sunos
 
11796
  need_lib_prefix=no
 
11797
  need_version=no
 
11798
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11799
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11800
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11801
    dynamic_linker='NetBSD (a.out) ld.so'
 
11802
  else
 
11803
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11804
    soname_spec='${libname}${release}${shared_ext}$major'
 
11805
    dynamic_linker='NetBSD ld.elf_so'
 
11806
  fi
 
11807
  shlibpath_var=LD_LIBRARY_PATH
 
11808
  shlibpath_overrides_runpath=yes
 
11809
  hardcode_into_libs=yes
 
11810
  ;;
 
11811
 
 
11812
newsos6)
 
11813
  version_type=linux # correct to gnu/linux during the next big refactor
 
11814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11815
  shlibpath_var=LD_LIBRARY_PATH
 
11816
  shlibpath_overrides_runpath=yes
 
11817
  ;;
 
11818
 
 
11819
*nto* | *qnx*)
 
11820
  version_type=qnx
 
11821
  need_lib_prefix=no
 
11822
  need_version=no
 
11823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11824
  soname_spec='${libname}${release}${shared_ext}$major'
 
11825
  shlibpath_var=LD_LIBRARY_PATH
 
11826
  shlibpath_overrides_runpath=no
 
11827
  hardcode_into_libs=yes
 
11828
  dynamic_linker='ldqnx.so'
 
11829
  ;;
 
11830
 
 
11831
openbsd*)
 
11832
  version_type=sunos
 
11833
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11834
  need_lib_prefix=no
 
11835
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11836
  case $host_os in
 
11837
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11838
    *)                          need_version=no  ;;
 
11839
  esac
 
11840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11841
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11842
  shlibpath_var=LD_LIBRARY_PATH
 
11843
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11844
    case $host_os in
 
11845
      openbsd2.[89] | openbsd2.[89].*)
 
11846
        shlibpath_overrides_runpath=no
 
11847
        ;;
 
11848
      *)
 
11849
        shlibpath_overrides_runpath=yes
 
11850
        ;;
 
11851
      esac
 
11852
  else
 
11853
    shlibpath_overrides_runpath=yes
 
11854
  fi
 
11855
  ;;
 
11856
 
 
11857
os2*)
 
11858
  libname_spec='$name'
 
11859
  shrext_cmds=".dll"
 
11860
  need_lib_prefix=no
 
11861
  library_names_spec='$libname${shared_ext} $libname.a'
 
11862
  dynamic_linker='OS/2 ld.exe'
 
11863
  shlibpath_var=LIBPATH
 
11864
  ;;
 
11865
 
 
11866
osf3* | osf4* | osf5*)
 
11867
  version_type=osf
 
11868
  need_lib_prefix=no
 
11869
  need_version=no
 
11870
  soname_spec='${libname}${release}${shared_ext}$major'
 
11871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11872
  shlibpath_var=LD_LIBRARY_PATH
 
11873
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11874
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11875
  ;;
 
11876
 
 
11877
rdos*)
 
11878
  dynamic_linker=no
 
11879
  ;;
 
11880
 
 
11881
solaris*)
 
11882
  version_type=linux # correct to gnu/linux during the next big refactor
 
11883
  need_lib_prefix=no
 
11884
  need_version=no
 
11885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11886
  soname_spec='${libname}${release}${shared_ext}$major'
 
11887
  shlibpath_var=LD_LIBRARY_PATH
 
11888
  shlibpath_overrides_runpath=yes
 
11889
  hardcode_into_libs=yes
 
11890
  # ldd complains unless libraries are executable
 
11891
  postinstall_cmds='chmod +x $lib'
 
11892
  ;;
 
11893
 
 
11894
sunos4*)
 
11895
  version_type=sunos
 
11896
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11897
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11898
  shlibpath_var=LD_LIBRARY_PATH
 
11899
  shlibpath_overrides_runpath=yes
 
11900
  if test "$with_gnu_ld" = yes; then
 
11901
    need_lib_prefix=no
 
11902
  fi
 
11903
  need_version=yes
 
11904
  ;;
 
11905
 
 
11906
sysv4 | sysv4.3*)
 
11907
  version_type=linux # correct to gnu/linux during the next big refactor
 
11908
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11909
  soname_spec='${libname}${release}${shared_ext}$major'
 
11910
  shlibpath_var=LD_LIBRARY_PATH
 
11911
  case $host_vendor in
 
11912
    sni)
 
11913
      shlibpath_overrides_runpath=no
 
11914
      need_lib_prefix=no
 
11915
      runpath_var=LD_RUN_PATH
 
11916
      ;;
 
11917
    siemens)
 
11918
      need_lib_prefix=no
 
11919
      ;;
 
11920
    motorola)
 
11921
      need_lib_prefix=no
 
11922
      need_version=no
 
11923
      shlibpath_overrides_runpath=no
 
11924
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11925
      ;;
 
11926
  esac
 
11927
  ;;
 
11928
 
 
11929
sysv4*MP*)
 
11930
  if test -d /usr/nec ;then
 
11931
    version_type=linux # correct to gnu/linux during the next big refactor
 
11932
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11933
    soname_spec='$libname${shared_ext}.$major'
 
11934
    shlibpath_var=LD_LIBRARY_PATH
 
11935
  fi
 
11936
  ;;
 
11937
 
 
11938
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11939
  version_type=freebsd-elf
 
11940
  need_lib_prefix=no
 
11941
  need_version=no
 
11942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11943
  soname_spec='${libname}${release}${shared_ext}$major'
 
11944
  shlibpath_var=LD_LIBRARY_PATH
 
11945
  shlibpath_overrides_runpath=yes
 
11946
  hardcode_into_libs=yes
 
11947
  if test "$with_gnu_ld" = yes; then
 
11948
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11949
  else
 
11950
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11951
    case $host_os in
 
11952
      sco3.2v5*)
 
11953
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11954
        ;;
 
11955
    esac
 
11956
  fi
 
11957
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11958
  ;;
 
11959
 
 
11960
tpf*)
 
11961
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11962
  version_type=linux # correct to gnu/linux during the next big refactor
 
11963
  need_lib_prefix=no
 
11964
  need_version=no
 
11965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11966
  shlibpath_var=LD_LIBRARY_PATH
 
11967
  shlibpath_overrides_runpath=no
 
11968
  hardcode_into_libs=yes
 
11969
  ;;
 
11970
 
 
11971
uts4*)
 
11972
  version_type=linux # correct to gnu/linux during the next big refactor
 
11973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11974
  soname_spec='${libname}${release}${shared_ext}$major'
 
11975
  shlibpath_var=LD_LIBRARY_PATH
 
11976
  ;;
 
11977
 
 
11978
*)
 
11979
  dynamic_linker=no
 
11980
  ;;
 
11981
esac
 
11982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11983
$as_echo "$dynamic_linker" >&6; }
 
11984
test "$dynamic_linker" = no && can_build_shared=no
 
11985
 
 
11986
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11987
if test "$GCC" = yes; then
 
11988
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11989
fi
 
11990
 
 
11991
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11992
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11993
fi
 
11994
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11995
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11996
fi
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
 
12004
 
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
 
 
12010
 
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
 
 
12025
 
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
 
 
12063
 
 
12064
 
 
12065
 
 
12066
 
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
 
 
12072
 
 
12073
 
 
12074
 
 
12075
 
 
12076
 
 
12077
 
 
12078
 
 
12079
 
 
12080
 
 
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
 
12086
 
 
12087
 
 
12088
 
 
12089
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
12090
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
12091
hardcode_action=
 
12092
if test -n "$hardcode_libdir_flag_spec" ||
 
12093
   test -n "$runpath_var" ||
 
12094
   test "X$hardcode_automatic" = "Xyes" ; then
 
12095
 
 
12096
  # We can hardcode non-existent directories.
 
12097
  if test "$hardcode_direct" != no &&
 
12098
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12099
     # have to relink, otherwise we might link with an installed library
 
12100
     # when we should be linking with a yet-to-be-installed one
 
12101
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
12102
     test "$hardcode_minus_L" != no; then
 
12103
    # Linking always hardcodes the temporary library directory.
 
12104
    hardcode_action=relink
 
12105
  else
 
12106
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12107
    hardcode_action=immediate
 
12108
  fi
 
12109
else
 
12110
  # We cannot hardcode anything, or else we can only hardcode existing
 
12111
  # directories.
 
12112
  hardcode_action=unsupported
 
12113
fi
 
12114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
12115
$as_echo "$hardcode_action" >&6; }
 
12116
 
 
12117
if test "$hardcode_action" = relink ||
 
12118
   test "$inherit_rpath" = yes; then
 
12119
  # Fast installation is not supported
 
12120
  enable_fast_install=no
 
12121
elif test "$shlibpath_overrides_runpath" = yes ||
 
12122
     test "$enable_shared" = no; then
 
12123
  # Fast installation is not necessary
 
12124
  enable_fast_install=needless
 
12125
fi
 
12126
 
 
12127
 
 
12128
 
 
12129
 
 
12130
 
 
12131
 
 
12132
  if test "x$enable_dlopen" != xyes; then
 
12133
  enable_dlopen=unknown
 
12134
  enable_dlopen_self=unknown
 
12135
  enable_dlopen_self_static=unknown
 
12136
else
 
12137
  lt_cv_dlopen=no
 
12138
  lt_cv_dlopen_libs=
 
12139
 
 
12140
  case $host_os in
 
12141
  beos*)
 
12142
    lt_cv_dlopen="load_add_on"
 
12143
    lt_cv_dlopen_libs=
 
12144
    lt_cv_dlopen_self=yes
 
12145
    ;;
 
12146
 
 
12147
  mingw* | pw32* | cegcc*)
 
12148
    lt_cv_dlopen="LoadLibrary"
 
12149
    lt_cv_dlopen_libs=
 
12150
    ;;
 
12151
 
 
12152
  cygwin*)
 
12153
    lt_cv_dlopen="dlopen"
 
12154
    lt_cv_dlopen_libs=
 
12155
    ;;
 
12156
 
 
12157
  darwin*)
 
12158
  # if libdl is installed we need to link against it
 
12159
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12160
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12161
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12162
  $as_echo_n "(cached) " >&6
 
12163
else
 
12164
  ac_check_lib_save_LIBS=$LIBS
 
12165
LIBS="-ldl  $LIBS"
 
12166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12167
/* end confdefs.h.  */
 
12168
 
 
12169
/* Override any GCC internal prototype to avoid an error.
 
12170
   Use char because int might match the return type of a GCC
 
12171
   builtin and then its argument prototype would still apply.  */
 
12172
#ifdef __cplusplus
 
12173
extern "C"
 
12174
#endif
 
12175
char dlopen ();
 
12176
int
 
12177
main ()
 
12178
{
 
12179
return dlopen ();
 
12180
  ;
 
12181
  return 0;
 
12182
}
 
12183
_ACEOF
 
12184
if ac_fn_c_try_link "$LINENO"; then :
 
12185
  ac_cv_lib_dl_dlopen=yes
 
12186
else
 
12187
  ac_cv_lib_dl_dlopen=no
 
12188
fi
 
12189
rm -f core conftest.err conftest.$ac_objext \
 
12190
    conftest$ac_exeext conftest.$ac_ext
 
12191
LIBS=$ac_check_lib_save_LIBS
 
12192
fi
 
12193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12194
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12195
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12196
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12197
else
 
12198
 
 
12199
    lt_cv_dlopen="dyld"
 
12200
    lt_cv_dlopen_libs=
 
12201
    lt_cv_dlopen_self=yes
 
12202
 
 
12203
fi
 
12204
 
 
12205
    ;;
 
12206
 
 
12207
  *)
 
12208
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12209
if test "x$ac_cv_func_shl_load" = xyes; then :
 
12210
  lt_cv_dlopen="shl_load"
 
12211
else
 
12212
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12213
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12214
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
12215
  $as_echo_n "(cached) " >&6
 
12216
else
 
12217
  ac_check_lib_save_LIBS=$LIBS
 
12218
LIBS="-ldld  $LIBS"
 
12219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12220
/* end confdefs.h.  */
 
12221
 
 
12222
/* Override any GCC internal prototype to avoid an error.
 
12223
   Use char because int might match the return type of a GCC
 
12224
   builtin and then its argument prototype would still apply.  */
 
12225
#ifdef __cplusplus
 
12226
extern "C"
 
12227
#endif
 
12228
char shl_load ();
 
12229
int
 
12230
main ()
 
12231
{
 
12232
return shl_load ();
 
12233
  ;
 
12234
  return 0;
 
12235
}
 
12236
_ACEOF
 
12237
if ac_fn_c_try_link "$LINENO"; then :
 
12238
  ac_cv_lib_dld_shl_load=yes
 
12239
else
 
12240
  ac_cv_lib_dld_shl_load=no
 
12241
fi
 
12242
rm -f core conftest.err conftest.$ac_objext \
 
12243
    conftest$ac_exeext conftest.$ac_ext
 
12244
LIBS=$ac_check_lib_save_LIBS
 
12245
fi
 
12246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12247
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12248
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
12249
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12250
else
 
12251
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12252
if test "x$ac_cv_func_dlopen" = xyes; then :
 
12253
  lt_cv_dlopen="dlopen"
 
12254
else
 
12255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12256
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12257
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12258
  $as_echo_n "(cached) " >&6
 
12259
else
 
12260
  ac_check_lib_save_LIBS=$LIBS
 
12261
LIBS="-ldl  $LIBS"
 
12262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12263
/* end confdefs.h.  */
 
12264
 
 
12265
/* Override any GCC internal prototype to avoid an error.
 
12266
   Use char because int might match the return type of a GCC
 
12267
   builtin and then its argument prototype would still apply.  */
 
12268
#ifdef __cplusplus
 
12269
extern "C"
 
12270
#endif
 
12271
char dlopen ();
 
12272
int
 
12273
main ()
 
12274
{
 
12275
return dlopen ();
 
12276
  ;
 
12277
  return 0;
 
12278
}
 
12279
_ACEOF
 
12280
if ac_fn_c_try_link "$LINENO"; then :
 
12281
  ac_cv_lib_dl_dlopen=yes
 
12282
else
 
12283
  ac_cv_lib_dl_dlopen=no
 
12284
fi
 
12285
rm -f core conftest.err conftest.$ac_objext \
 
12286
    conftest$ac_exeext conftest.$ac_ext
 
12287
LIBS=$ac_check_lib_save_LIBS
 
12288
fi
 
12289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12290
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12291
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12292
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12293
else
 
12294
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12295
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
12296
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
12297
  $as_echo_n "(cached) " >&6
 
12298
else
 
12299
  ac_check_lib_save_LIBS=$LIBS
 
12300
LIBS="-lsvld  $LIBS"
 
12301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12302
/* end confdefs.h.  */
 
12303
 
 
12304
/* Override any GCC internal prototype to avoid an error.
 
12305
   Use char because int might match the return type of a GCC
 
12306
   builtin and then its argument prototype would still apply.  */
 
12307
#ifdef __cplusplus
 
12308
extern "C"
 
12309
#endif
 
12310
char dlopen ();
 
12311
int
 
12312
main ()
 
12313
{
 
12314
return dlopen ();
 
12315
  ;
 
12316
  return 0;
 
12317
}
 
12318
_ACEOF
 
12319
if ac_fn_c_try_link "$LINENO"; then :
 
12320
  ac_cv_lib_svld_dlopen=yes
 
12321
else
 
12322
  ac_cv_lib_svld_dlopen=no
 
12323
fi
 
12324
rm -f core conftest.err conftest.$ac_objext \
 
12325
    conftest$ac_exeext conftest.$ac_ext
 
12326
LIBS=$ac_check_lib_save_LIBS
 
12327
fi
 
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12329
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12330
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
12331
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12332
else
 
12333
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12334
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12335
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
12336
  $as_echo_n "(cached) " >&6
 
12337
else
 
12338
  ac_check_lib_save_LIBS=$LIBS
 
12339
LIBS="-ldld  $LIBS"
 
12340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12341
/* end confdefs.h.  */
 
12342
 
 
12343
/* Override any GCC internal prototype to avoid an error.
 
12344
   Use char because int might match the return type of a GCC
 
12345
   builtin and then its argument prototype would still apply.  */
 
12346
#ifdef __cplusplus
 
12347
extern "C"
 
12348
#endif
 
12349
char dld_link ();
 
12350
int
 
12351
main ()
 
12352
{
 
12353
return dld_link ();
 
12354
  ;
 
12355
  return 0;
 
12356
}
 
12357
_ACEOF
 
12358
if ac_fn_c_try_link "$LINENO"; then :
 
12359
  ac_cv_lib_dld_dld_link=yes
 
12360
else
 
12361
  ac_cv_lib_dld_dld_link=no
 
12362
fi
 
12363
rm -f core conftest.err conftest.$ac_objext \
 
12364
    conftest$ac_exeext conftest.$ac_ext
 
12365
LIBS=$ac_check_lib_save_LIBS
 
12366
fi
 
12367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12368
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12369
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
12370
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12371
fi
 
12372
 
 
12373
 
 
12374
fi
 
12375
 
 
12376
 
 
12377
fi
 
12378
 
 
12379
 
 
12380
fi
 
12381
 
 
12382
 
 
12383
fi
 
12384
 
 
12385
 
 
12386
fi
 
12387
 
 
12388
    ;;
 
12389
  esac
 
12390
 
 
12391
  if test "x$lt_cv_dlopen" != xno; then
 
12392
    enable_dlopen=yes
 
12393
  else
 
12394
    enable_dlopen=no
 
12395
  fi
 
12396
 
 
12397
  case $lt_cv_dlopen in
 
12398
  dlopen)
 
12399
    save_CPPFLAGS="$CPPFLAGS"
 
12400
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12401
 
 
12402
    save_LDFLAGS="$LDFLAGS"
 
12403
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12404
 
 
12405
    save_LIBS="$LIBS"
 
12406
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12407
 
 
12408
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12409
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12410
if ${lt_cv_dlopen_self+:} false; then :
 
12411
  $as_echo_n "(cached) " >&6
 
12412
else
 
12413
          if test "$cross_compiling" = yes; then :
 
12414
  lt_cv_dlopen_self=cross
 
12415
else
 
12416
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12417
  lt_status=$lt_dlunknown
 
12418
  cat > conftest.$ac_ext <<_LT_EOF
 
12419
#line $LINENO "configure"
 
12420
#include "confdefs.h"
 
12421
 
 
12422
#if HAVE_DLFCN_H
 
12423
#include <dlfcn.h>
 
12424
#endif
 
12425
 
 
12426
#include <stdio.h>
 
12427
 
 
12428
#ifdef RTLD_GLOBAL
 
12429
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12430
#else
 
12431
#  ifdef DL_GLOBAL
 
12432
#    define LT_DLGLOBAL         DL_GLOBAL
 
12433
#  else
 
12434
#    define LT_DLGLOBAL         0
 
12435
#  endif
 
12436
#endif
 
12437
 
 
12438
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12439
   find out it does not work in some platform. */
 
12440
#ifndef LT_DLLAZY_OR_NOW
 
12441
#  ifdef RTLD_LAZY
 
12442
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12443
#  else
 
12444
#    ifdef DL_LAZY
 
12445
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12446
#    else
 
12447
#      ifdef RTLD_NOW
 
12448
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12449
#      else
 
12450
#        ifdef DL_NOW
 
12451
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12452
#        else
 
12453
#          define LT_DLLAZY_OR_NOW      0
 
12454
#        endif
 
12455
#      endif
 
12456
#    endif
 
12457
#  endif
 
12458
#endif
 
12459
 
 
12460
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12461
   correspondingly for the symbols needed.  */
 
12462
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12463
int fnord () __attribute__((visibility("default")));
 
12464
#endif
 
12465
 
 
12466
int fnord () { return 42; }
 
12467
int main ()
 
12468
{
 
12469
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12470
  int status = $lt_dlunknown;
 
12471
 
 
12472
  if (self)
 
12473
    {
 
12474
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12475
      else
 
12476
        {
 
12477
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12478
          else puts (dlerror ());
 
12479
        }
 
12480
      /* dlclose (self); */
 
12481
    }
 
12482
  else
 
12483
    puts (dlerror ());
 
12484
 
 
12485
  return status;
 
12486
}
 
12487
_LT_EOF
 
12488
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12489
  (eval $ac_link) 2>&5
 
12490
  ac_status=$?
 
12491
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12492
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12493
    (./conftest; exit; ) >&5 2>/dev/null
 
12494
    lt_status=$?
 
12495
    case x$lt_status in
 
12496
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12497
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12498
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12499
    esac
 
12500
  else :
 
12501
    # compilation failed
 
12502
    lt_cv_dlopen_self=no
 
12503
  fi
 
12504
fi
 
12505
rm -fr conftest*
 
12506
 
 
12507
 
 
12508
fi
 
12509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12510
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12511
 
 
12512
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12513
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12514
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12515
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12516
if ${lt_cv_dlopen_self_static+:} false; then :
 
12517
  $as_echo_n "(cached) " >&6
 
12518
else
 
12519
          if test "$cross_compiling" = yes; then :
 
12520
  lt_cv_dlopen_self_static=cross
 
12521
else
 
12522
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12523
  lt_status=$lt_dlunknown
 
12524
  cat > conftest.$ac_ext <<_LT_EOF
 
12525
#line $LINENO "configure"
 
12526
#include "confdefs.h"
 
12527
 
 
12528
#if HAVE_DLFCN_H
 
12529
#include <dlfcn.h>
 
12530
#endif
 
12531
 
 
12532
#include <stdio.h>
 
12533
 
 
12534
#ifdef RTLD_GLOBAL
 
12535
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12536
#else
 
12537
#  ifdef DL_GLOBAL
 
12538
#    define LT_DLGLOBAL         DL_GLOBAL
 
12539
#  else
 
12540
#    define LT_DLGLOBAL         0
 
12541
#  endif
 
12542
#endif
 
12543
 
 
12544
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12545
   find out it does not work in some platform. */
 
12546
#ifndef LT_DLLAZY_OR_NOW
 
12547
#  ifdef RTLD_LAZY
 
12548
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12549
#  else
 
12550
#    ifdef DL_LAZY
 
12551
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12552
#    else
 
12553
#      ifdef RTLD_NOW
 
12554
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12555
#      else
 
12556
#        ifdef DL_NOW
 
12557
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12558
#        else
 
12559
#          define LT_DLLAZY_OR_NOW      0
 
12560
#        endif
 
12561
#      endif
 
12562
#    endif
 
12563
#  endif
 
12564
#endif
 
12565
 
 
12566
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12567
   correspondingly for the symbols needed.  */
 
12568
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12569
int fnord () __attribute__((visibility("default")));
 
12570
#endif
 
12571
 
 
12572
int fnord () { return 42; }
 
12573
int main ()
 
12574
{
 
12575
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12576
  int status = $lt_dlunknown;
 
12577
 
 
12578
  if (self)
 
12579
    {
 
12580
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12581
      else
 
12582
        {
 
12583
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12584
          else puts (dlerror ());
 
12585
        }
 
12586
      /* dlclose (self); */
 
12587
    }
 
12588
  else
 
12589
    puts (dlerror ());
 
12590
 
 
12591
  return status;
 
12592
}
 
12593
_LT_EOF
 
12594
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12595
  (eval $ac_link) 2>&5
 
12596
  ac_status=$?
 
12597
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12598
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12599
    (./conftest; exit; ) >&5 2>/dev/null
 
12600
    lt_status=$?
 
12601
    case x$lt_status in
 
12602
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12603
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12604
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12605
    esac
 
12606
  else :
 
12607
    # compilation failed
 
12608
    lt_cv_dlopen_self_static=no
 
12609
  fi
 
12610
fi
 
12611
rm -fr conftest*
 
12612
 
 
12613
 
 
12614
fi
 
12615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12616
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12617
    fi
 
12618
 
 
12619
    CPPFLAGS="$save_CPPFLAGS"
 
12620
    LDFLAGS="$save_LDFLAGS"
 
12621
    LIBS="$save_LIBS"
 
12622
    ;;
 
12623
  esac
 
12624
 
 
12625
  case $lt_cv_dlopen_self in
 
12626
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12627
  *) enable_dlopen_self=unknown ;;
 
12628
  esac
 
12629
 
 
12630
  case $lt_cv_dlopen_self_static in
 
12631
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12632
  *) enable_dlopen_self_static=unknown ;;
 
12633
  esac
 
12634
fi
 
12635
 
 
12636
 
 
12637
 
 
12638
 
 
12639
 
 
12640
 
 
12641
 
 
12642
 
 
12643
 
 
12644
 
 
12645
 
 
12646
 
 
12647
 
 
12648
 
 
12649
 
 
12650
 
 
12651
 
 
12652
striplib=
 
12653
old_striplib=
 
12654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12655
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12656
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12657
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12658
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12660
$as_echo "yes" >&6; }
 
12661
else
 
12662
# FIXME - insert some real tests, host_os isn't really good enough
 
12663
  case $host_os in
 
12664
  darwin*)
 
12665
    if test -n "$STRIP" ; then
 
12666
      striplib="$STRIP -x"
 
12667
      old_striplib="$STRIP -S"
 
12668
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12669
$as_echo "yes" >&6; }
 
12670
    else
 
12671
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12672
$as_echo "no" >&6; }
 
12673
    fi
 
12674
    ;;
 
12675
  *)
 
12676
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12677
$as_echo "no" >&6; }
 
12678
    ;;
 
12679
  esac
 
12680
fi
 
12681
 
 
12682
 
 
12683
 
 
12684
 
 
12685
 
 
12686
 
 
12687
 
 
12688
 
 
12689
 
 
12690
 
 
12691
 
 
12692
 
 
12693
  # Report which library types will actually be built
 
12694
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12695
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12696
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12697
$as_echo "$can_build_shared" >&6; }
 
12698
 
 
12699
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12700
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12701
  test "$can_build_shared" = "no" && enable_shared=no
 
12702
 
 
12703
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12704
  # are all built from PIC.
 
12705
  case $host_os in
 
12706
  aix3*)
 
12707
    test "$enable_shared" = yes && enable_static=no
 
12708
    if test -n "$RANLIB"; then
 
12709
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12710
      postinstall_cmds='$RANLIB $lib'
 
12711
    fi
 
12712
    ;;
 
12713
 
 
12714
  aix[4-9]*)
 
12715
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12716
      test "$enable_shared" = yes && enable_static=no
 
12717
    fi
 
12718
    ;;
 
12719
  esac
 
12720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12721
$as_echo "$enable_shared" >&6; }
 
12722
 
 
12723
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12724
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12725
  # Make sure either enable_shared or enable_static is yes.
 
12726
  test "$enable_shared" = yes || enable_static=yes
 
12727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12728
$as_echo "$enable_static" >&6; }
 
12729
 
 
12730
 
 
12731
 
 
12732
 
 
12733
fi
 
12734
ac_ext=cpp
 
12735
ac_cpp='$CXXCPP $CPPFLAGS'
 
12736
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12737
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12738
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12739
 
 
12740
CC="$lt_save_CC"
 
12741
 
 
12742
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12743
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12744
    (test "X$CXX" != "Xg++"))) ; then
 
12745
  ac_ext=cpp
 
12746
ac_cpp='$CXXCPP $CPPFLAGS'
 
12747
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12748
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12749
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12751
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12752
if test -z "$CXXCPP"; then
 
12753
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12754
  $as_echo_n "(cached) " >&6
 
12755
else
 
12756
      # Double quotes because CXXCPP needs to be expanded
 
12757
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12758
    do
 
12759
      ac_preproc_ok=false
 
12760
for ac_cxx_preproc_warn_flag in '' yes
 
12761
do
 
12762
  # Use a header file that comes with gcc, so configuring glibc
 
12763
  # with a fresh cross-compiler works.
 
12764
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12765
  # <limits.h> exists even on freestanding compilers.
 
12766
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12767
  # not just through cpp. "Syntax error" is here to catch this case.
 
12768
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12769
/* end confdefs.h.  */
 
12770
#ifdef __STDC__
 
12771
# include <limits.h>
 
12772
#else
 
12773
# include <assert.h>
 
12774
#endif
 
12775
                     Syntax error
 
12776
_ACEOF
 
12777
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12778
 
 
12779
else
 
12780
  # Broken: fails on valid input.
 
12781
continue
 
12782
fi
 
12783
rm -f conftest.err conftest.i conftest.$ac_ext
 
12784
 
 
12785
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12786
  # can be detected and how.
 
12787
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12788
/* end confdefs.h.  */
 
12789
#include <ac_nonexistent.h>
 
12790
_ACEOF
 
12791
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12792
  # Broken: success on invalid input.
 
12793
continue
 
12794
else
 
12795
  # Passes both tests.
 
12796
ac_preproc_ok=:
 
12797
break
 
12798
fi
 
12799
rm -f conftest.err conftest.i conftest.$ac_ext
 
12800
 
 
12801
done
 
12802
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12803
rm -f conftest.i conftest.err conftest.$ac_ext
 
12804
if $ac_preproc_ok; then :
 
12805
  break
 
12806
fi
 
12807
 
 
12808
    done
 
12809
    ac_cv_prog_CXXCPP=$CXXCPP
 
12810
 
 
12811
fi
 
12812
  CXXCPP=$ac_cv_prog_CXXCPP
 
12813
else
 
12814
  ac_cv_prog_CXXCPP=$CXXCPP
 
12815
fi
 
12816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12817
$as_echo "$CXXCPP" >&6; }
 
12818
ac_preproc_ok=false
 
12819
for ac_cxx_preproc_warn_flag in '' yes
 
12820
do
 
12821
  # Use a header file that comes with gcc, so configuring glibc
 
12822
  # with a fresh cross-compiler works.
 
12823
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12824
  # <limits.h> exists even on freestanding compilers.
 
12825
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12826
  # not just through cpp. "Syntax error" is here to catch this case.
 
12827
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12828
/* end confdefs.h.  */
 
12829
#ifdef __STDC__
 
12830
# include <limits.h>
 
12831
#else
 
12832
# include <assert.h>
 
12833
#endif
 
12834
                     Syntax error
 
12835
_ACEOF
 
12836
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12837
 
 
12838
else
 
12839
  # Broken: fails on valid input.
 
12840
continue
 
12841
fi
 
12842
rm -f conftest.err conftest.i conftest.$ac_ext
 
12843
 
 
12844
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12845
  # can be detected and how.
 
12846
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12847
/* end confdefs.h.  */
 
12848
#include <ac_nonexistent.h>
 
12849
_ACEOF
 
12850
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12851
  # Broken: success on invalid input.
 
12852
continue
 
12853
else
 
12854
  # Passes both tests.
 
12855
ac_preproc_ok=:
 
12856
break
 
12857
fi
 
12858
rm -f conftest.err conftest.i conftest.$ac_ext
 
12859
 
 
12860
done
 
12861
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12862
rm -f conftest.i conftest.err conftest.$ac_ext
 
12863
if $ac_preproc_ok; then :
 
12864
 
 
12865
else
 
12866
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12867
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12868
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12869
See \`config.log' for more details" "$LINENO" 5; }
 
12870
fi
 
12871
 
 
12872
ac_ext=cpp
 
12873
ac_cpp='$CXXCPP $CPPFLAGS'
 
12874
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12875
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12876
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12877
 
 
12878
else
 
12879
  _lt_caught_CXX_error=yes
 
12880
fi
 
12881
 
 
12882
ac_ext=cpp
 
12883
ac_cpp='$CXXCPP $CPPFLAGS'
 
12884
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12885
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12886
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12887
 
 
12888
archive_cmds_need_lc_CXX=no
 
12889
allow_undefined_flag_CXX=
 
12890
always_export_symbols_CXX=no
 
12891
archive_expsym_cmds_CXX=
 
12892
compiler_needs_object_CXX=no
 
12893
export_dynamic_flag_spec_CXX=
 
12894
hardcode_direct_CXX=no
 
12895
hardcode_direct_absolute_CXX=no
 
12896
hardcode_libdir_flag_spec_CXX=
 
12897
hardcode_libdir_separator_CXX=
 
12898
hardcode_minus_L_CXX=no
 
12899
hardcode_shlibpath_var_CXX=unsupported
 
12900
hardcode_automatic_CXX=no
 
12901
inherit_rpath_CXX=no
 
12902
module_cmds_CXX=
 
12903
module_expsym_cmds_CXX=
 
12904
link_all_deplibs_CXX=unknown
 
12905
old_archive_cmds_CXX=$old_archive_cmds
 
12906
reload_flag_CXX=$reload_flag
 
12907
reload_cmds_CXX=$reload_cmds
 
12908
no_undefined_flag_CXX=
 
12909
whole_archive_flag_spec_CXX=
 
12910
enable_shared_with_static_runtimes_CXX=no
 
12911
 
 
12912
# Source file extension for C++ test sources.
 
12913
ac_ext=cpp
 
12914
 
 
12915
# Object file extension for compiled C++ test sources.
 
12916
objext=o
 
12917
objext_CXX=$objext
 
12918
 
 
12919
# No sense in running all these tests if we already determined that
 
12920
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12921
# are currently assumed to apply to all compilers on this platform,
 
12922
# and will be corrupted by setting them based on a non-working compiler.
 
12923
if test "$_lt_caught_CXX_error" != yes; then
 
12924
  # Code to be used in simple compile tests
 
12925
  lt_simple_compile_test_code="int some_variable = 0;"
 
12926
 
 
12927
  # Code to be used in simple link tests
 
12928
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12929
 
 
12930
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12931
 
 
12932
 
 
12933
 
 
12934
 
 
12935
 
 
12936
 
 
12937
# If no C compiler was specified, use CC.
 
12938
LTCC=${LTCC-"$CC"}
 
12939
 
 
12940
# If no C compiler flags were specified, use CFLAGS.
 
12941
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12942
 
 
12943
# Allow CC to be a program name with arguments.
 
12944
compiler=$CC
 
12945
 
 
12946
 
 
12947
  # save warnings/boilerplate of simple test code
 
12948
  ac_outfile=conftest.$ac_objext
 
12949
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12950
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12951
_lt_compiler_boilerplate=`cat conftest.err`
 
12952
$RM conftest*
 
12953
 
 
12954
  ac_outfile=conftest.$ac_objext
 
12955
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12956
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12957
_lt_linker_boilerplate=`cat conftest.err`
 
12958
$RM -r conftest*
 
12959
 
 
12960
 
 
12961
  # Allow CC to be a program name with arguments.
 
12962
  lt_save_CC=$CC
 
12963
  lt_save_CFLAGS=$CFLAGS
 
12964
  lt_save_LD=$LD
 
12965
  lt_save_GCC=$GCC
 
12966
  GCC=$GXX
 
12967
  lt_save_with_gnu_ld=$with_gnu_ld
 
12968
  lt_save_path_LD=$lt_cv_path_LD
 
12969
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12970
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12971
  else
 
12972
    $as_unset lt_cv_prog_gnu_ld
 
12973
  fi
 
12974
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12975
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12976
  else
 
12977
    $as_unset lt_cv_path_LD
 
12978
  fi
 
12979
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12980
  CC=${CXX-"c++"}
 
12981
  CFLAGS=$CXXFLAGS
 
12982
  compiler=$CC
 
12983
  compiler_CXX=$CC
 
12984
  for cc_temp in $compiler""; do
 
12985
  case $cc_temp in
 
12986
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12987
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12988
    \-*) ;;
 
12989
    *) break;;
 
12990
  esac
 
12991
done
 
12992
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12993
 
 
12994
 
 
12995
  if test -n "$compiler"; then
 
12996
    # We don't want -fno-exception when compiling C++ code, so set the
 
12997
    # no_builtin_flag separately
 
12998
    if test "$GXX" = yes; then
 
12999
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
13000
    else
 
13001
      lt_prog_compiler_no_builtin_flag_CXX=
 
13002
    fi
 
13003
 
 
13004
    if test "$GXX" = yes; then
 
13005
      # Set up default GNU C++ configuration
 
13006
 
 
13007
 
 
13008
 
 
13009
# Check whether --with-gnu-ld was given.
 
13010
if test "${with_gnu_ld+set}" = set; then :
 
13011
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
13012
else
 
13013
  with_gnu_ld=no
 
13014
fi
 
13015
 
 
13016
ac_prog=ld
 
13017
if test "$GCC" = yes; then
 
13018
  # Check if gcc -print-prog-name=ld gives a path.
 
13019
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
13020
$as_echo_n "checking for ld used by $CC... " >&6; }
 
13021
  case $host in
 
13022
  *-*-mingw*)
 
13023
    # gcc leaves a trailing carriage return which upsets mingw
 
13024
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
13025
  *)
 
13026
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
13027
  esac
 
13028
  case $ac_prog in
 
13029
    # Accept absolute paths.
 
13030
    [\\/]* | ?:[\\/]*)
 
13031
      re_direlt='/[^/][^/]*/\.\./'
 
13032
      # Canonicalize the pathname of ld
 
13033
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
13034
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
13035
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
13036
      done
 
13037
      test -z "$LD" && LD="$ac_prog"
 
13038
      ;;
 
13039
  "")
 
13040
    # If it fails, then pretend we aren't using GCC.
 
13041
    ac_prog=ld
 
13042
    ;;
 
13043
  *)
 
13044
    # If it is relative, then search for the first ld in PATH.
 
13045
    with_gnu_ld=unknown
 
13046
    ;;
 
13047
  esac
 
13048
elif test "$with_gnu_ld" = yes; then
 
13049
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
13050
$as_echo_n "checking for GNU ld... " >&6; }
 
13051
else
 
13052
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
13053
$as_echo_n "checking for non-GNU ld... " >&6; }
 
13054
fi
 
13055
if ${lt_cv_path_LD+:} false; then :
 
13056
  $as_echo_n "(cached) " >&6
 
13057
else
 
13058
  if test -z "$LD"; then
 
13059
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13060
  for ac_dir in $PATH; do
 
13061
    IFS="$lt_save_ifs"
 
13062
    test -z "$ac_dir" && ac_dir=.
 
13063
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
13064
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
13065
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
13066
      # but apparently some variants of GNU ld only accept -v.
 
13067
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
13068
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
13069
      *GNU* | *'with BFD'*)
 
13070
        test "$with_gnu_ld" != no && break
 
13071
        ;;
 
13072
      *)
 
13073
        test "$with_gnu_ld" != yes && break
 
13074
        ;;
 
13075
      esac
 
13076
    fi
 
13077
  done
 
13078
  IFS="$lt_save_ifs"
 
13079
else
 
13080
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
13081
fi
 
13082
fi
 
13083
 
 
13084
LD="$lt_cv_path_LD"
 
13085
if test -n "$LD"; then
 
13086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
13087
$as_echo "$LD" >&6; }
 
13088
else
 
13089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13090
$as_echo "no" >&6; }
 
13091
fi
 
13092
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
13093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
13094
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
13095
if ${lt_cv_prog_gnu_ld+:} false; then :
 
13096
  $as_echo_n "(cached) " >&6
 
13097
else
 
13098
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
13099
case `$LD -v 2>&1 </dev/null` in
 
13100
*GNU* | *'with BFD'*)
 
13101
  lt_cv_prog_gnu_ld=yes
 
13102
  ;;
 
13103
*)
 
13104
  lt_cv_prog_gnu_ld=no
 
13105
  ;;
 
13106
esac
 
13107
fi
 
13108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
13109
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
13110
with_gnu_ld=$lt_cv_prog_gnu_ld
 
13111
 
 
13112
 
 
13113
 
 
13114
 
 
13115
 
 
13116
 
 
13117
 
 
13118
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
13119
      # archiving commands below assume that GNU ld is being used.
 
13120
      if test "$with_gnu_ld" = yes; then
 
13121
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13122
        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'
 
13123
 
 
13124
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13125
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13126
 
 
13127
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
13128
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
13129
        #     investigate it a little bit more. (MM)
 
13130
        wlarc='${wl}'
 
13131
 
 
13132
        # ancient GNU ld didn't support --whole-archive et. al.
 
13133
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
13134
          $GREP 'no-whole-archive' > /dev/null; then
 
13135
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13136
        else
 
13137
          whole_archive_flag_spec_CXX=
 
13138
        fi
 
13139
      else
 
13140
        with_gnu_ld=no
 
13141
        wlarc=
 
13142
 
 
13143
        # A generic and very simple default shared library creation
 
13144
        # command for GNU C++ for the case where it uses the native
 
13145
        # linker, instead of GNU ld.  If possible, this setting should
 
13146
        # overridden to take advantage of the native linker features on
 
13147
        # the platform it is being used on.
 
13148
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13149
      fi
 
13150
 
 
13151
      # Commands to make compiler produce verbose output that lists
 
13152
      # what "hidden" libraries, object files and flags are used when
 
13153
      # linking a shared library.
 
13154
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13155
 
 
13156
    else
 
13157
      GXX=no
 
13158
      with_gnu_ld=no
 
13159
      wlarc=
 
13160
    fi
 
13161
 
 
13162
    # PORTME: fill in a description of your system's C++ link characteristics
 
13163
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13164
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13165
    ld_shlibs_CXX=yes
 
13166
    case $host_os in
 
13167
      aix3*)
 
13168
        # FIXME: insert proper C++ library support
 
13169
        ld_shlibs_CXX=no
 
13170
        ;;
 
13171
      aix[4-9]*)
 
13172
        if test "$host_cpu" = ia64; then
 
13173
          # On IA64, the linker does run time linking by default, so we don't
 
13174
          # have to do anything special.
 
13175
          aix_use_runtimelinking=no
 
13176
          exp_sym_flag='-Bexport'
 
13177
          no_entry_flag=""
 
13178
        else
 
13179
          aix_use_runtimelinking=no
 
13180
 
 
13181
          # Test if we are trying to use run time linking or normal
 
13182
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13183
          # need to do runtime linking.
 
13184
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
13185
            for ld_flag in $LDFLAGS; do
 
13186
              case $ld_flag in
 
13187
              *-brtl*)
 
13188
                aix_use_runtimelinking=yes
 
13189
                break
 
13190
                ;;
 
13191
              esac
 
13192
            done
 
13193
            ;;
 
13194
          esac
 
13195
 
 
13196
          exp_sym_flag='-bexport'
 
13197
          no_entry_flag='-bnoentry'
 
13198
        fi
 
13199
 
 
13200
        # When large executables or shared objects are built, AIX ld can
 
13201
        # have problems creating the table of contents.  If linking a library
 
13202
        # or program results in "error TOC overflow" add -mminimal-toc to
 
13203
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13204
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13205
 
 
13206
        archive_cmds_CXX=''
 
13207
        hardcode_direct_CXX=yes
 
13208
        hardcode_direct_absolute_CXX=yes
 
13209
        hardcode_libdir_separator_CXX=':'
 
13210
        link_all_deplibs_CXX=yes
 
13211
        file_list_spec_CXX='${wl}-f,'
 
13212
 
 
13213
        if test "$GXX" = yes; then
 
13214
          case $host_os in aix4.[012]|aix4.[012].*)
 
13215
          # We only want to do this on AIX 4.2 and lower, the check
 
13216
          # below for broken collect2 doesn't work under 4.3+
 
13217
          collect2name=`${CC} -print-prog-name=collect2`
 
13218
          if test -f "$collect2name" &&
 
13219
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
13220
          then
 
13221
            # We have reworked collect2
 
13222
            :
 
13223
          else
 
13224
            # We have old collect2
 
13225
            hardcode_direct_CXX=unsupported
 
13226
            # It fails to find uninstalled libraries when the uninstalled
 
13227
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
13228
            # to unsupported forces relinking
 
13229
            hardcode_minus_L_CXX=yes
 
13230
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13231
            hardcode_libdir_separator_CXX=
 
13232
          fi
 
13233
          esac
 
13234
          shared_flag='-shared'
 
13235
          if test "$aix_use_runtimelinking" = yes; then
 
13236
            shared_flag="$shared_flag "'${wl}-G'
 
13237
          fi
 
13238
        else
 
13239
          # not using gcc
 
13240
          if test "$host_cpu" = ia64; then
 
13241
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13242
          # chokes on -Wl,-G. The following line is correct:
 
13243
          shared_flag='-G'
 
13244
          else
 
13245
            if test "$aix_use_runtimelinking" = yes; then
 
13246
              shared_flag='${wl}-G'
 
13247
            else
 
13248
              shared_flag='${wl}-bM:SRE'
 
13249
            fi
 
13250
          fi
 
13251
        fi
 
13252
 
 
13253
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
13254
        # It seems that -bexpall does not export symbols beginning with
 
13255
        # underscore (_), so it is better to generate a list of symbols to
 
13256
        # export.
 
13257
        always_export_symbols_CXX=yes
 
13258
        if test "$aix_use_runtimelinking" = yes; then
 
13259
          # Warning - without using the other runtime loading flags (-brtl),
 
13260
          # -berok will link without error, but may produce a broken library.
 
13261
          allow_undefined_flag_CXX='-berok'
 
13262
          # Determine the default libpath from the value encoded in an empty
 
13263
          # executable.
 
13264
          if test "${lt_cv_aix_libpath+set}" = set; then
 
13265
  aix_libpath=$lt_cv_aix_libpath
 
13266
else
 
13267
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13268
  $as_echo_n "(cached) " >&6
 
13269
else
 
13270
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13271
/* end confdefs.h.  */
 
13272
 
 
13273
int
 
13274
main ()
 
13275
{
 
13276
 
 
13277
  ;
 
13278
  return 0;
 
13279
}
 
13280
_ACEOF
 
13281
if ac_fn_cxx_try_link "$LINENO"; then :
 
13282
 
 
13283
  lt_aix_libpath_sed='
 
13284
      /Import File Strings/,/^$/ {
 
13285
          /^0/ {
 
13286
              s/^0  *\([^ ]*\) *$/\1/
 
13287
              p
 
13288
          }
 
13289
      }'
 
13290
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13291
  # Check for a 64-bit object if we didn't find anything.
 
13292
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13293
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13294
  fi
 
13295
fi
 
13296
rm -f core conftest.err conftest.$ac_objext \
 
13297
    conftest$ac_exeext conftest.$ac_ext
 
13298
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13299
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13300
  fi
 
13301
 
 
13302
fi
 
13303
 
 
13304
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13305
fi
 
13306
 
 
13307
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13308
 
 
13309
          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"
 
13310
        else
 
13311
          if test "$host_cpu" = ia64; then
 
13312
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13313
            allow_undefined_flag_CXX="-z nodefs"
 
13314
            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"
 
13315
          else
 
13316
            # Determine the default libpath from the value encoded in an
 
13317
            # empty executable.
 
13318
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13319
  aix_libpath=$lt_cv_aix_libpath
 
13320
else
 
13321
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13322
  $as_echo_n "(cached) " >&6
 
13323
else
 
13324
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13325
/* end confdefs.h.  */
 
13326
 
 
13327
int
 
13328
main ()
 
13329
{
 
13330
 
 
13331
  ;
 
13332
  return 0;
 
13333
}
 
13334
_ACEOF
 
13335
if ac_fn_cxx_try_link "$LINENO"; then :
 
13336
 
 
13337
  lt_aix_libpath_sed='
 
13338
      /Import File Strings/,/^$/ {
 
13339
          /^0/ {
 
13340
              s/^0  *\([^ ]*\) *$/\1/
 
13341
              p
 
13342
          }
 
13343
      }'
 
13344
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13345
  # Check for a 64-bit object if we didn't find anything.
 
13346
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13347
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13348
  fi
 
13349
fi
 
13350
rm -f core conftest.err conftest.$ac_objext \
 
13351
    conftest$ac_exeext conftest.$ac_ext
 
13352
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13353
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13354
  fi
 
13355
 
 
13356
fi
 
13357
 
 
13358
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13359
fi
 
13360
 
 
13361
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13362
            # Warning - without using the other run time loading flags,
 
13363
            # -berok will link without error, but may produce a broken library.
 
13364
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13365
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13366
            if test "$with_gnu_ld" = yes; then
 
13367
              # We only use this code for GNU lds that support --whole-archive.
 
13368
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13369
            else
 
13370
              # Exported symbols can be pulled into shared objects from archives
 
13371
              whole_archive_flag_spec_CXX='$convenience'
 
13372
            fi
 
13373
            archive_cmds_need_lc_CXX=yes
 
13374
            # This is similar to how AIX traditionally builds its shared
 
13375
            # libraries.
 
13376
            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'
 
13377
          fi
 
13378
        fi
 
13379
        ;;
 
13380
 
 
13381
      beos*)
 
13382
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13383
          allow_undefined_flag_CXX=unsupported
 
13384
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13385
          # support --undefined.  This deserves some investigation.  FIXME
 
13386
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13387
        else
 
13388
          ld_shlibs_CXX=no
 
13389
        fi
 
13390
        ;;
 
13391
 
 
13392
      chorus*)
 
13393
        case $cc_basename in
 
13394
          *)
 
13395
          # FIXME: insert proper C++ library support
 
13396
          ld_shlibs_CXX=no
 
13397
          ;;
 
13398
        esac
 
13399
        ;;
 
13400
 
 
13401
      cygwin* | mingw* | pw32* | cegcc*)
 
13402
        case $GXX,$cc_basename in
 
13403
        ,cl* | no,cl*)
 
13404
          # Native MSVC
 
13405
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13406
          # no search path for DLLs.
 
13407
          hardcode_libdir_flag_spec_CXX=' '
 
13408
          allow_undefined_flag_CXX=unsupported
 
13409
          always_export_symbols_CXX=yes
 
13410
          file_list_spec_CXX='@'
 
13411
          # Tell ltmain to make .lib files, not .a files.
 
13412
          libext=lib
 
13413
          # Tell ltmain to make .dll files, not .so files.
 
13414
          shrext_cmds=".dll"
 
13415
          # FIXME: Setting linknames here is a bad hack.
 
13416
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
13417
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13418
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
13419
            else
 
13420
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
13421
            fi~
 
13422
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
13423
            linknames='
 
13424
          # The linker will not automatically build a static lib if we build a DLL.
 
13425
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
13426
          enable_shared_with_static_runtimes_CXX=yes
 
13427
          # Don't use ranlib
 
13428
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
13429
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
13430
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
13431
            case $lt_outputfile in
 
13432
              *.exe|*.EXE) ;;
 
13433
              *)
 
13434
                lt_outputfile="$lt_outputfile.exe"
 
13435
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
13436
                ;;
 
13437
            esac~
 
13438
            func_to_tool_file "$lt_outputfile"~
 
13439
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
13440
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
13441
              $RM "$lt_outputfile.manifest";
 
13442
            fi'
 
13443
          ;;
 
13444
        *)
 
13445
          # g++
 
13446
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13447
          # as there is no search path for DLLs.
 
13448
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13449
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
13450
          allow_undefined_flag_CXX=unsupported
 
13451
          always_export_symbols_CXX=no
 
13452
          enable_shared_with_static_runtimes_CXX=yes
 
13453
 
 
13454
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13455
            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'
 
13456
            # If the export-symbols file already is a .def file (1st line
 
13457
            # is EXPORTS), use it as is; otherwise, prepend...
 
13458
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13459
              cp $export_symbols $output_objdir/$soname.def;
 
13460
            else
 
13461
              echo EXPORTS > $output_objdir/$soname.def;
 
13462
              cat $export_symbols >> $output_objdir/$soname.def;
 
13463
            fi~
 
13464
            $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'
 
13465
          else
 
13466
            ld_shlibs_CXX=no
 
13467
          fi
 
13468
          ;;
 
13469
        esac
 
13470
        ;;
 
13471
      darwin* | rhapsody*)
 
13472
 
 
13473
 
 
13474
  archive_cmds_need_lc_CXX=no
 
13475
  hardcode_direct_CXX=no
 
13476
  hardcode_automatic_CXX=yes
 
13477
  hardcode_shlibpath_var_CXX=unsupported
 
13478
  if test "$lt_cv_ld_force_load" = "yes"; then
 
13479
    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\"`'
 
13480
 
 
13481
  else
 
13482
    whole_archive_flag_spec_CXX=''
 
13483
  fi
 
13484
  link_all_deplibs_CXX=yes
 
13485
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13486
  case $cc_basename in
 
13487
     ifort*) _lt_dar_can_shared=yes ;;
 
13488
     *) _lt_dar_can_shared=$GCC ;;
 
13489
  esac
 
13490
  if test "$_lt_dar_can_shared" = "yes"; then
 
13491
    output_verbose_link_cmd=func_echo_all
 
13492
    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}"
 
13493
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13494
    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}"
 
13495
    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}"
 
13496
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13497
      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}"
 
13498
      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}"
 
13499
    fi
 
13500
 
 
13501
  else
 
13502
  ld_shlibs_CXX=no
 
13503
  fi
 
13504
 
 
13505
        ;;
 
13506
 
 
13507
      dgux*)
 
13508
        case $cc_basename in
 
13509
          ec++*)
 
13510
            # FIXME: insert proper C++ library support
 
13511
            ld_shlibs_CXX=no
 
13512
            ;;
 
13513
          ghcx*)
 
13514
            # Green Hills C++ Compiler
 
13515
            # FIXME: insert proper C++ library support
 
13516
            ld_shlibs_CXX=no
 
13517
            ;;
 
13518
          *)
 
13519
            # FIXME: insert proper C++ library support
 
13520
            ld_shlibs_CXX=no
 
13521
            ;;
 
13522
        esac
 
13523
        ;;
 
13524
 
 
13525
      freebsd2.*)
 
13526
        # C++ shared libraries reported to be fairly broken before
 
13527
        # switch to ELF
 
13528
        ld_shlibs_CXX=no
 
13529
        ;;
 
13530
 
 
13531
      freebsd-elf*)
 
13532
        archive_cmds_need_lc_CXX=no
 
13533
        ;;
 
13534
 
 
13535
      freebsd* | dragonfly*)
 
13536
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13537
        # conventions
 
13538
        ld_shlibs_CXX=yes
 
13539
        ;;
 
13540
 
 
13541
      haiku*)
 
13542
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13543
        link_all_deplibs_CXX=yes
 
13544
        ;;
 
13545
 
 
13546
      hpux9*)
 
13547
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13548
        hardcode_libdir_separator_CXX=:
 
13549
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13550
        hardcode_direct_CXX=yes
 
13551
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13552
                                             # but as the default
 
13553
                                             # location of the library.
 
13554
 
 
13555
        case $cc_basename in
 
13556
          CC*)
 
13557
            # FIXME: insert proper C++ library support
 
13558
            ld_shlibs_CXX=no
 
13559
            ;;
 
13560
          aCC*)
 
13561
            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'
 
13562
            # Commands to make compiler produce verbose output that lists
 
13563
            # what "hidden" libraries, object files and flags are used when
 
13564
            # linking a shared library.
 
13565
            #
 
13566
            # There doesn't appear to be a way to prevent this compiler from
 
13567
            # explicitly linking system object files so we need to strip them
 
13568
            # from the output so that they don't get included in the library
 
13569
            # dependencies.
 
13570
            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"'
 
13571
            ;;
 
13572
          *)
 
13573
            if test "$GXX" = yes; then
 
13574
              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'
 
13575
            else
 
13576
              # FIXME: insert proper C++ library support
 
13577
              ld_shlibs_CXX=no
 
13578
            fi
 
13579
            ;;
 
13580
        esac
 
13581
        ;;
 
13582
 
 
13583
      hpux10*|hpux11*)
 
13584
        if test $with_gnu_ld = no; then
 
13585
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13586
          hardcode_libdir_separator_CXX=:
 
13587
 
 
13588
          case $host_cpu in
 
13589
            hppa*64*|ia64*)
 
13590
              ;;
 
13591
            *)
 
13592
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13593
              ;;
 
13594
          esac
 
13595
        fi
 
13596
        case $host_cpu in
 
13597
          hppa*64*|ia64*)
 
13598
            hardcode_direct_CXX=no
 
13599
            hardcode_shlibpath_var_CXX=no
 
13600
            ;;
 
13601
          *)
 
13602
            hardcode_direct_CXX=yes
 
13603
            hardcode_direct_absolute_CXX=yes
 
13604
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13605
                                                 # but as the default
 
13606
                                                 # location of the library.
 
13607
            ;;
 
13608
        esac
 
13609
 
 
13610
        case $cc_basename in
 
13611
          CC*)
 
13612
            # FIXME: insert proper C++ library support
 
13613
            ld_shlibs_CXX=no
 
13614
            ;;
 
13615
          aCC*)
 
13616
            case $host_cpu in
 
13617
              hppa*64*)
 
13618
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13619
                ;;
 
13620
              ia64*)
 
13621
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13622
                ;;
 
13623
              *)
 
13624
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13625
                ;;
 
13626
            esac
 
13627
            # Commands to make compiler produce verbose output that lists
 
13628
            # what "hidden" libraries, object files and flags are used when
 
13629
            # linking a shared library.
 
13630
            #
 
13631
            # There doesn't appear to be a way to prevent this compiler from
 
13632
            # explicitly linking system object files so we need to strip them
 
13633
            # from the output so that they don't get included in the library
 
13634
            # dependencies.
 
13635
            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"'
 
13636
            ;;
 
13637
          *)
 
13638
            if test "$GXX" = yes; then
 
13639
              if test $with_gnu_ld = no; then
 
13640
                case $host_cpu in
 
13641
                  hppa*64*)
 
13642
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13643
                    ;;
 
13644
                  ia64*)
 
13645
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13646
                    ;;
 
13647
                  *)
 
13648
                    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'
 
13649
                    ;;
 
13650
                esac
 
13651
              fi
 
13652
            else
 
13653
              # FIXME: insert proper C++ library support
 
13654
              ld_shlibs_CXX=no
 
13655
            fi
 
13656
            ;;
 
13657
        esac
 
13658
        ;;
 
13659
 
 
13660
      interix[3-9]*)
 
13661
        hardcode_direct_CXX=no
 
13662
        hardcode_shlibpath_var_CXX=no
 
13663
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13664
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13665
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13666
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13667
        # default) and relocated if they conflict, which is a slow very memory
 
13668
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13669
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13670
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13671
        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'
 
13672
        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'
 
13673
        ;;
 
13674
      irix5* | irix6*)
 
13675
        case $cc_basename in
 
13676
          CC*)
 
13677
            # SGI C++
 
13678
            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'
 
13679
 
 
13680
            # Archives containing C++ object files must be created using
 
13681
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13682
            # necessary to make sure instantiated templates are included
 
13683
            # in the archive.
 
13684
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13685
            ;;
 
13686
          *)
 
13687
            if test "$GXX" = yes; then
 
13688
              if test "$with_gnu_ld" = no; then
 
13689
                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'
 
13690
              else
 
13691
                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'
 
13692
              fi
 
13693
            fi
 
13694
            link_all_deplibs_CXX=yes
 
13695
            ;;
 
13696
        esac
 
13697
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13698
        hardcode_libdir_separator_CXX=:
 
13699
        inherit_rpath_CXX=yes
 
13700
        ;;
 
13701
 
 
13702
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
13703
        case $cc_basename in
 
13704
          KCC*)
 
13705
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13706
 
 
13707
            # KCC will only create a shared library if the output file
 
13708
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13709
            # to its proper name (with version) after linking.
 
13710
            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'
 
13711
            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'
 
13712
            # Commands to make compiler produce verbose output that lists
 
13713
            # what "hidden" libraries, object files and flags are used when
 
13714
            # linking a shared library.
 
13715
            #
 
13716
            # There doesn't appear to be a way to prevent this compiler from
 
13717
            # explicitly linking system object files so we need to strip them
 
13718
            # from the output so that they don't get included in the library
 
13719
            # dependencies.
 
13720
            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"'
 
13721
 
 
13722
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13723
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13724
 
 
13725
            # Archives containing C++ object files must be created using
 
13726
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13727
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13728
            ;;
 
13729
          icpc* | ecpc* )
 
13730
            # Intel C++
 
13731
            with_gnu_ld=yes
 
13732
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13733
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13734
            # earlier do not add the objects themselves.
 
13735
            case `$CC -V 2>&1` in
 
13736
              *"Version 7."*)
 
13737
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13738
                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'
 
13739
                ;;
 
13740
              *)  # Version 8.0 or newer
 
13741
                tmp_idyn=
 
13742
                case $host_cpu in
 
13743
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13744
                esac
 
13745
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13746
                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'
 
13747
                ;;
 
13748
            esac
 
13749
            archive_cmds_need_lc_CXX=no
 
13750
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13751
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13752
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13753
            ;;
 
13754
          pgCC* | pgcpp*)
 
13755
            # Portland Group C++ compiler
 
13756
            case `$CC -V` in
 
13757
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13758
              prelink_cmds_CXX='tpldir=Template.dir~
 
13759
                rm -rf $tpldir~
 
13760
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13761
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13762
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13763
                rm -rf $tpldir~
 
13764
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13765
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13766
                $RANLIB $oldlib'
 
13767
              archive_cmds_CXX='tpldir=Template.dir~
 
13768
                rm -rf $tpldir~
 
13769
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13770
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13771
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13772
                rm -rf $tpldir~
 
13773
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13774
                $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'
 
13775
              ;;
 
13776
            *) # Version 6 and above use weak symbols
 
13777
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13778
              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'
 
13779
              ;;
 
13780
            esac
 
13781
 
 
13782
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13783
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13784
            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'
 
13785
            ;;
 
13786
          cxx*)
 
13787
            # Compaq C++
 
13788
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13789
            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'
 
13790
 
 
13791
            runpath_var=LD_RUN_PATH
 
13792
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13793
            hardcode_libdir_separator_CXX=:
 
13794
 
 
13795
            # Commands to make compiler produce verbose output that lists
 
13796
            # what "hidden" libraries, object files and flags are used when
 
13797
            # linking a shared library.
 
13798
            #
 
13799
            # There doesn't appear to be a way to prevent this compiler from
 
13800
            # explicitly linking system object files so we need to strip them
 
13801
            # from the output so that they don't get included in the library
 
13802
            # dependencies.
 
13803
            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'
 
13804
            ;;
 
13805
          xl* | mpixl* | bgxl*)
 
13806
            # IBM XL 8.0 on PPC, with GNU ld
 
13807
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13808
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13809
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13810
            if test "x$supports_anon_versioning" = xyes; then
 
13811
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13812
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13813
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13814
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13815
            fi
 
13816
            ;;
 
13817
          *)
 
13818
            case `$CC -V 2>&1 | sed 5q` in
 
13819
            *Sun\ C*)
 
13820
              # Sun C++ 5.9
 
13821
              no_undefined_flag_CXX=' -zdefs'
 
13822
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13823
              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'
 
13824
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13825
              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'
 
13826
              compiler_needs_object_CXX=yes
 
13827
 
 
13828
              # Not sure whether something based on
 
13829
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13830
              # would be better.
 
13831
              output_verbose_link_cmd='func_echo_all'
 
13832
 
 
13833
              # Archives containing C++ object files must be created using
 
13834
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13835
              # necessary to make sure instantiated templates are included
 
13836
              # in the archive.
 
13837
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13838
              ;;
 
13839
            esac
 
13840
            ;;
 
13841
        esac
 
13842
        ;;
 
13843
 
 
13844
      lynxos*)
 
13845
        # FIXME: insert proper C++ library support
 
13846
        ld_shlibs_CXX=no
 
13847
        ;;
 
13848
 
 
13849
      m88k*)
 
13850
        # FIXME: insert proper C++ library support
 
13851
        ld_shlibs_CXX=no
 
13852
        ;;
 
13853
 
 
13854
      mvs*)
 
13855
        case $cc_basename in
 
13856
          cxx*)
 
13857
            # FIXME: insert proper C++ library support
 
13858
            ld_shlibs_CXX=no
 
13859
            ;;
 
13860
          *)
 
13861
            # FIXME: insert proper C++ library support
 
13862
            ld_shlibs_CXX=no
 
13863
            ;;
 
13864
        esac
 
13865
        ;;
 
13866
 
 
13867
      netbsd*)
 
13868
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13869
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13870
          wlarc=
 
13871
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13872
          hardcode_direct_CXX=yes
 
13873
          hardcode_shlibpath_var_CXX=no
 
13874
        fi
 
13875
        # Workaround some broken pre-1.5 toolchains
 
13876
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13877
        ;;
 
13878
 
 
13879
      *nto* | *qnx*)
 
13880
        ld_shlibs_CXX=yes
 
13881
        ;;
 
13882
 
 
13883
      openbsd2*)
 
13884
        # C++ shared libraries are fairly broken
 
13885
        ld_shlibs_CXX=no
 
13886
        ;;
 
13887
 
 
13888
      openbsd*)
 
13889
        if test -f /usr/libexec/ld.so; then
 
13890
          hardcode_direct_CXX=yes
 
13891
          hardcode_shlibpath_var_CXX=no
 
13892
          hardcode_direct_absolute_CXX=yes
 
13893
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13894
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13895
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13896
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13897
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13898
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13899
          fi
 
13900
          output_verbose_link_cmd=func_echo_all
 
13901
        else
 
13902
          ld_shlibs_CXX=no
 
13903
        fi
 
13904
        ;;
 
13905
 
 
13906
      osf3* | osf4* | osf5*)
 
13907
        case $cc_basename in
 
13908
          KCC*)
 
13909
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13910
 
 
13911
            # KCC will only create a shared library if the output file
 
13912
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13913
            # to its proper name (with version) after linking.
 
13914
            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'
 
13915
 
 
13916
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13917
            hardcode_libdir_separator_CXX=:
 
13918
 
 
13919
            # Archives containing C++ object files must be created using
 
13920
            # the KAI C++ compiler.
 
13921
            case $host in
 
13922
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13923
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13924
            esac
 
13925
            ;;
 
13926
          RCC*)
 
13927
            # Rational C++ 2.4.1
 
13928
            # FIXME: insert proper C++ library support
 
13929
            ld_shlibs_CXX=no
 
13930
            ;;
 
13931
          cxx*)
 
13932
            case $host in
 
13933
              osf3*)
 
13934
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13935
                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'
 
13936
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13937
                ;;
 
13938
              *)
 
13939
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13940
                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'
 
13941
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13942
                  echo "-hidden">> $lib.exp~
 
13943
                  $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~
 
13944
                  $RM $lib.exp'
 
13945
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13946
                ;;
 
13947
            esac
 
13948
 
 
13949
            hardcode_libdir_separator_CXX=:
 
13950
 
 
13951
            # Commands to make compiler produce verbose output that lists
 
13952
            # what "hidden" libraries, object files and flags are used when
 
13953
            # linking a shared library.
 
13954
            #
 
13955
            # There doesn't appear to be a way to prevent this compiler from
 
13956
            # explicitly linking system object files so we need to strip them
 
13957
            # from the output so that they don't get included in the library
 
13958
            # dependencies.
 
13959
            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"'
 
13960
            ;;
 
13961
          *)
 
13962
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13963
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13964
              case $host in
 
13965
                osf3*)
 
13966
                  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'
 
13967
                  ;;
 
13968
                *)
 
13969
                  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'
 
13970
                  ;;
 
13971
              esac
 
13972
 
 
13973
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13974
              hardcode_libdir_separator_CXX=:
 
13975
 
 
13976
              # Commands to make compiler produce verbose output that lists
 
13977
              # what "hidden" libraries, object files and flags are used when
 
13978
              # linking a shared library.
 
13979
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13980
 
 
13981
            else
 
13982
              # FIXME: insert proper C++ library support
 
13983
              ld_shlibs_CXX=no
 
13984
            fi
 
13985
            ;;
 
13986
        esac
 
13987
        ;;
 
13988
 
 
13989
      psos*)
 
13990
        # FIXME: insert proper C++ library support
 
13991
        ld_shlibs_CXX=no
 
13992
        ;;
 
13993
 
 
13994
      sunos4*)
 
13995
        case $cc_basename in
 
13996
          CC*)
 
13997
            # Sun C++ 4.x
 
13998
            # FIXME: insert proper C++ library support
 
13999
            ld_shlibs_CXX=no
 
14000
            ;;
 
14001
          lcc*)
 
14002
            # Lucid
 
14003
            # FIXME: insert proper C++ library support
 
14004
            ld_shlibs_CXX=no
 
14005
            ;;
 
14006
          *)
 
14007
            # FIXME: insert proper C++ library support
 
14008
            ld_shlibs_CXX=no
 
14009
            ;;
 
14010
        esac
 
14011
        ;;
 
14012
 
 
14013
      solaris*)
 
14014
        case $cc_basename in
 
14015
          CC* | sunCC*)
 
14016
            # Sun C++ 4.2, 5.x and Centerline C++
 
14017
            archive_cmds_need_lc_CXX=yes
 
14018
            no_undefined_flag_CXX=' -zdefs'
 
14019
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14020
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14021
              $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'
 
14022
 
 
14023
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14024
            hardcode_shlibpath_var_CXX=no
 
14025
            case $host_os in
 
14026
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14027
              *)
 
14028
                # The compiler driver will combine and reorder linker options,
 
14029
                # but understands `-z linker_flag'.
 
14030
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14031
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
14032
                ;;
 
14033
            esac
 
14034
            link_all_deplibs_CXX=yes
 
14035
 
 
14036
            output_verbose_link_cmd='func_echo_all'
 
14037
 
 
14038
            # Archives containing C++ object files must be created using
 
14039
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
14040
            # necessary to make sure instantiated templates are included
 
14041
            # in the archive.
 
14042
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
14043
            ;;
 
14044
          gcx*)
 
14045
            # Green Hills C++ Compiler
 
14046
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14047
 
 
14048
            # The C++ compiler must be used to create the archive.
 
14049
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
14050
            ;;
 
14051
          *)
 
14052
            # GNU C++ compiler with Solaris linker
 
14053
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14054
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
14055
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
14056
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14057
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14058
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14059
 
 
14060
                # Commands to make compiler produce verbose output that lists
 
14061
                # what "hidden" libraries, object files and flags are used when
 
14062
                # linking a shared library.
 
14063
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
14064
              else
 
14065
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
14066
                # platform.
 
14067
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14068
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14069
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14070
 
 
14071
                # Commands to make compiler produce verbose output that lists
 
14072
                # what "hidden" libraries, object files and flags are used when
 
14073
                # linking a shared library.
 
14074
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
14075
              fi
 
14076
 
 
14077
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
14078
              case $host_os in
 
14079
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14080
                *)
 
14081
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14082
                  ;;
 
14083
              esac
 
14084
            fi
 
14085
            ;;
 
14086
        esac
 
14087
        ;;
 
14088
 
 
14089
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
14090
      no_undefined_flag_CXX='${wl}-z,text'
 
14091
      archive_cmds_need_lc_CXX=no
 
14092
      hardcode_shlibpath_var_CXX=no
 
14093
      runpath_var='LD_RUN_PATH'
 
14094
 
 
14095
      case $cc_basename in
 
14096
        CC*)
 
14097
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14098
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14099
          ;;
 
14100
        *)
 
14101
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14102
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14103
          ;;
 
14104
      esac
 
14105
      ;;
 
14106
 
 
14107
      sysv5* | sco3.2v5* | sco5v6*)
 
14108
        # Note: We can NOT use -z defs as we might desire, because we do not
 
14109
        # link with -lc, and that would cause any symbols used from libc to
 
14110
        # always be unresolved, which means just about no library would
 
14111
        # ever link correctly.  If we're not using GNU ld we use -z text
 
14112
        # though, which does catch some bad symbols but isn't as heavy-handed
 
14113
        # as -z defs.
 
14114
        no_undefined_flag_CXX='${wl}-z,text'
 
14115
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
14116
        archive_cmds_need_lc_CXX=no
 
14117
        hardcode_shlibpath_var_CXX=no
 
14118
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
14119
        hardcode_libdir_separator_CXX=':'
 
14120
        link_all_deplibs_CXX=yes
 
14121
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
14122
        runpath_var='LD_RUN_PATH'
 
14123
 
 
14124
        case $cc_basename in
 
14125
          CC*)
 
14126
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14127
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14128
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
14129
              '"$old_archive_cmds_CXX"
 
14130
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
14131
              '"$reload_cmds_CXX"
 
14132
            ;;
 
14133
          *)
 
14134
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14135
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14136
            ;;
 
14137
        esac
 
14138
      ;;
 
14139
 
 
14140
      tandem*)
 
14141
        case $cc_basename in
 
14142
          NCC*)
 
14143
            # NonStop-UX NCC 3.20
 
14144
            # FIXME: insert proper C++ library support
 
14145
            ld_shlibs_CXX=no
 
14146
            ;;
 
14147
          *)
 
14148
            # FIXME: insert proper C++ library support
 
14149
            ld_shlibs_CXX=no
 
14150
            ;;
 
14151
        esac
 
14152
        ;;
 
14153
 
 
14154
      vxworks*)
 
14155
        # FIXME: insert proper C++ library support
 
14156
        ld_shlibs_CXX=no
 
14157
        ;;
 
14158
 
 
14159
      *)
 
14160
        # FIXME: insert proper C++ library support
 
14161
        ld_shlibs_CXX=no
 
14162
        ;;
 
14163
    esac
 
14164
 
 
14165
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14166
$as_echo "$ld_shlibs_CXX" >&6; }
 
14167
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14168
 
 
14169
    GCC_CXX="$GXX"
 
14170
    LD_CXX="$LD"
 
14171
 
 
14172
    ## CAVEAT EMPTOR:
 
14173
    ## There is no encapsulation within the following macros, do not change
 
14174
    ## the running order or otherwise move them around unless you know exactly
 
14175
    ## what you are doing...
 
14176
    # Dependencies to place before and after the object being linked:
 
14177
predep_objects_CXX=
 
14178
postdep_objects_CXX=
 
14179
predeps_CXX=
 
14180
postdeps_CXX=
 
14181
compiler_lib_search_path_CXX=
 
14182
 
 
14183
cat > conftest.$ac_ext <<_LT_EOF
 
14184
class Foo
 
14185
{
 
14186
public:
 
14187
  Foo (void) { a = 0; }
 
14188
private:
 
14189
  int a;
 
14190
};
 
14191
_LT_EOF
 
14192
 
 
14193
 
 
14194
_lt_libdeps_save_CFLAGS=$CFLAGS
 
14195
case "$CC $CFLAGS " in #(
 
14196
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
14197
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
14198
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
14199
esac
 
14200
 
 
14201
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14202
  (eval $ac_compile) 2>&5
 
14203
  ac_status=$?
 
14204
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14205
  test $ac_status = 0; }; then
 
14206
  # Parse the compiler output and extract the necessary
 
14207
  # objects, libraries and library flags.
 
14208
 
 
14209
  # Sentinel used to keep track of whether or not we are before
 
14210
  # the conftest object file.
 
14211
  pre_test_object_deps_done=no
 
14212
 
 
14213
  for p in `eval "$output_verbose_link_cmd"`; do
 
14214
    case ${prev}${p} in
 
14215
 
 
14216
    -L* | -R* | -l*)
 
14217
       # Some compilers place space between "-{L,R}" and the path.
 
14218
       # Remove the space.
 
14219
       if test $p = "-L" ||
 
14220
          test $p = "-R"; then
 
14221
         prev=$p
 
14222
         continue
 
14223
       fi
 
14224
 
 
14225
       # Expand the sysroot to ease extracting the directories later.
 
14226
       if test -z "$prev"; then
 
14227
         case $p in
 
14228
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
14229
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
14230
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
14231
         esac
 
14232
       fi
 
14233
       case $p in
 
14234
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
14235
       esac
 
14236
       if test "$pre_test_object_deps_done" = no; then
 
14237
         case ${prev} in
 
14238
         -L | -R)
 
14239
           # Internal compiler library paths should come after those
 
14240
           # provided the user.  The postdeps already come after the
 
14241
           # user supplied libs so there is no need to process them.
 
14242
           if test -z "$compiler_lib_search_path_CXX"; then
 
14243
             compiler_lib_search_path_CXX="${prev}${p}"
 
14244
           else
 
14245
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14246
           fi
 
14247
           ;;
 
14248
         # The "-l" case would never come before the object being
 
14249
         # linked, so don't bother handling this case.
 
14250
         esac
 
14251
       else
 
14252
         if test -z "$postdeps_CXX"; then
 
14253
           postdeps_CXX="${prev}${p}"
 
14254
         else
 
14255
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14256
         fi
 
14257
       fi
 
14258
       prev=
 
14259
       ;;
 
14260
 
 
14261
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
14262
    *.$objext)
 
14263
       # This assumes that the test object file only shows up
 
14264
       # once in the compiler output.
 
14265
       if test "$p" = "conftest.$objext"; then
 
14266
         pre_test_object_deps_done=yes
 
14267
         continue
 
14268
       fi
 
14269
 
 
14270
       if test "$pre_test_object_deps_done" = no; then
 
14271
         if test -z "$predep_objects_CXX"; then
 
14272
           predep_objects_CXX="$p"
 
14273
         else
 
14274
           predep_objects_CXX="$predep_objects_CXX $p"
 
14275
         fi
 
14276
       else
 
14277
         if test -z "$postdep_objects_CXX"; then
 
14278
           postdep_objects_CXX="$p"
 
14279
         else
 
14280
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14281
         fi
 
14282
       fi
 
14283
       ;;
 
14284
 
 
14285
    *) ;; # Ignore the rest.
 
14286
 
 
14287
    esac
 
14288
  done
 
14289
 
 
14290
  # Clean up.
 
14291
  rm -f a.out a.exe
 
14292
else
 
14293
  echo "libtool.m4: error: problem compiling CXX test program"
 
14294
fi
 
14295
 
 
14296
$RM -f confest.$objext
 
14297
CFLAGS=$_lt_libdeps_save_CFLAGS
 
14298
 
 
14299
# PORTME: override above test on systems where it is broken
 
14300
case $host_os in
 
14301
interix[3-9]*)
 
14302
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14303
  # hack all around it, let's just trust "g++" to DTRT.
 
14304
  predep_objects_CXX=
 
14305
  postdep_objects_CXX=
 
14306
  postdeps_CXX=
 
14307
  ;;
 
14308
 
 
14309
linux*)
 
14310
  case `$CC -V 2>&1 | sed 5q` in
 
14311
  *Sun\ C*)
 
14312
    # Sun C++ 5.9
 
14313
 
 
14314
    # The more standards-conforming stlport4 library is
 
14315
    # incompatible with the Cstd library. Avoid specifying
 
14316
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14317
    # -library=stlport4 depends on it.
 
14318
    case " $CXX $CXXFLAGS " in
 
14319
    *" -library=stlport4 "*)
 
14320
      solaris_use_stlport4=yes
 
14321
      ;;
 
14322
    esac
 
14323
 
 
14324
    if test "$solaris_use_stlport4" != yes; then
 
14325
      postdeps_CXX='-library=Cstd -library=Crun'
 
14326
    fi
 
14327
    ;;
 
14328
  esac
 
14329
  ;;
 
14330
 
 
14331
solaris*)
 
14332
  case $cc_basename in
 
14333
  CC* | sunCC*)
 
14334
    # The more standards-conforming stlport4 library is
 
14335
    # incompatible with the Cstd library. Avoid specifying
 
14336
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14337
    # -library=stlport4 depends on it.
 
14338
    case " $CXX $CXXFLAGS " in
 
14339
    *" -library=stlport4 "*)
 
14340
      solaris_use_stlport4=yes
 
14341
      ;;
 
14342
    esac
 
14343
 
 
14344
    # Adding this requires a known-good setup of shared libraries for
 
14345
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14346
    # archive will be linked into the output, leading to subtle bugs.
 
14347
    if test "$solaris_use_stlport4" != yes; then
 
14348
      postdeps_CXX='-library=Cstd -library=Crun'
 
14349
    fi
 
14350
    ;;
 
14351
  esac
 
14352
  ;;
 
14353
esac
 
14354
 
 
14355
 
 
14356
case " $postdeps_CXX " in
 
14357
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14358
esac
 
14359
 compiler_lib_search_dirs_CXX=
 
14360
if test -n "${compiler_lib_search_path_CXX}"; then
 
14361
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14362
fi
 
14363
 
 
14364
 
 
14365
 
 
14366
 
 
14367
 
 
14368
 
 
14369
 
 
14370
 
 
14371
 
 
14372
 
 
14373
 
 
14374
 
 
14375
 
 
14376
 
 
14377
 
 
14378
 
 
14379
 
 
14380
 
 
14381
 
 
14382
 
 
14383
 
 
14384
 
 
14385
 
 
14386
 
 
14387
 
 
14388
 
 
14389
 
 
14390
 
 
14391
 
 
14392
 
 
14393
 
 
14394
    lt_prog_compiler_wl_CXX=
 
14395
lt_prog_compiler_pic_CXX=
 
14396
lt_prog_compiler_static_CXX=
 
14397
 
 
14398
 
 
14399
  # C++ specific cases for pic, static, wl, etc.
 
14400
  if test "$GXX" = yes; then
 
14401
    lt_prog_compiler_wl_CXX='-Wl,'
 
14402
    lt_prog_compiler_static_CXX='-static'
 
14403
 
 
14404
    case $host_os in
 
14405
    aix*)
 
14406
      # All AIX code is PIC.
 
14407
      if test "$host_cpu" = ia64; then
 
14408
        # AIX 5 now supports IA64 processor
 
14409
        lt_prog_compiler_static_CXX='-Bstatic'
 
14410
      fi
 
14411
      ;;
 
14412
 
 
14413
    amigaos*)
 
14414
      case $host_cpu in
 
14415
      powerpc)
 
14416
            # see comment about AmigaOS4 .so support
 
14417
            lt_prog_compiler_pic_CXX='-fPIC'
 
14418
        ;;
 
14419
      m68k)
 
14420
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14421
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14422
            # like `-m68040'.
 
14423
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14424
        ;;
 
14425
      esac
 
14426
      ;;
 
14427
 
 
14428
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14429
      # PIC is the default for these OSes.
 
14430
      ;;
 
14431
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14432
      # This hack is so that the source file can tell whether it is being
 
14433
      # built for inclusion in a dll (and should export symbols for example).
 
14434
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14435
      # (--disable-auto-import) libraries
 
14436
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14437
      ;;
 
14438
    darwin* | rhapsody*)
 
14439
      # PIC is the default on this platform
 
14440
      # Common symbols not allowed in MH_DYLIB files
 
14441
      lt_prog_compiler_pic_CXX='-fno-common'
 
14442
      ;;
 
14443
    *djgpp*)
 
14444
      # DJGPP does not support shared libraries at all
 
14445
      lt_prog_compiler_pic_CXX=
 
14446
      ;;
 
14447
    haiku*)
 
14448
      # PIC is the default for Haiku.
 
14449
      # The "-static" flag exists, but is broken.
 
14450
      lt_prog_compiler_static_CXX=
 
14451
      ;;
 
14452
    interix[3-9]*)
 
14453
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14454
      # Instead, we relocate shared libraries at runtime.
 
14455
      ;;
 
14456
    sysv4*MP*)
 
14457
      if test -d /usr/nec; then
 
14458
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14459
      fi
 
14460
      ;;
 
14461
    hpux*)
 
14462
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14463
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14464
      # sets the default TLS model and affects inlining.
 
14465
      case $host_cpu in
 
14466
      hppa*64*)
 
14467
        ;;
 
14468
      *)
 
14469
        lt_prog_compiler_pic_CXX='-fPIC'
 
14470
        ;;
 
14471
      esac
 
14472
      ;;
 
14473
    *qnx* | *nto*)
 
14474
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14475
      # it will coredump.
 
14476
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14477
      ;;
 
14478
    *)
 
14479
      lt_prog_compiler_pic_CXX='-fPIC'
 
14480
      ;;
 
14481
    esac
 
14482
  else
 
14483
    case $host_os in
 
14484
      aix[4-9]*)
 
14485
        # All AIX code is PIC.
 
14486
        if test "$host_cpu" = ia64; then
 
14487
          # AIX 5 now supports IA64 processor
 
14488
          lt_prog_compiler_static_CXX='-Bstatic'
 
14489
        else
 
14490
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14491
        fi
 
14492
        ;;
 
14493
      chorus*)
 
14494
        case $cc_basename in
 
14495
        cxch68*)
 
14496
          # Green Hills C++ Compiler
 
14497
          # _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"
 
14498
          ;;
 
14499
        esac
 
14500
        ;;
 
14501
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14502
        # This hack is so that the source file can tell whether it is being
 
14503
        # built for inclusion in a dll (and should export symbols for example).
 
14504
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14505
        ;;
 
14506
      dgux*)
 
14507
        case $cc_basename in
 
14508
          ec++*)
 
14509
            lt_prog_compiler_pic_CXX='-KPIC'
 
14510
            ;;
 
14511
          ghcx*)
 
14512
            # Green Hills C++ Compiler
 
14513
            lt_prog_compiler_pic_CXX='-pic'
 
14514
            ;;
 
14515
          *)
 
14516
            ;;
 
14517
        esac
 
14518
        ;;
 
14519
      freebsd* | dragonfly*)
 
14520
        # FreeBSD uses GNU C++
 
14521
        ;;
 
14522
      hpux9* | hpux10* | hpux11*)
 
14523
        case $cc_basename in
 
14524
          CC*)
 
14525
            lt_prog_compiler_wl_CXX='-Wl,'
 
14526
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14527
            if test "$host_cpu" != ia64; then
 
14528
              lt_prog_compiler_pic_CXX='+Z'
 
14529
            fi
 
14530
            ;;
 
14531
          aCC*)
 
14532
            lt_prog_compiler_wl_CXX='-Wl,'
 
14533
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14534
            case $host_cpu in
 
14535
            hppa*64*|ia64*)
 
14536
              # +Z the default
 
14537
              ;;
 
14538
            *)
 
14539
              lt_prog_compiler_pic_CXX='+Z'
 
14540
              ;;
 
14541
            esac
 
14542
            ;;
 
14543
          *)
 
14544
            ;;
 
14545
        esac
 
14546
        ;;
 
14547
      interix*)
 
14548
        # This is c89, which is MS Visual C++ (no shared libs)
 
14549
        # Anyone wants to do a port?
 
14550
        ;;
 
14551
      irix5* | irix6* | nonstopux*)
 
14552
        case $cc_basename in
 
14553
          CC*)
 
14554
            lt_prog_compiler_wl_CXX='-Wl,'
 
14555
            lt_prog_compiler_static_CXX='-non_shared'
 
14556
            # CC pic flag -KPIC is the default.
 
14557
            ;;
 
14558
          *)
 
14559
            ;;
 
14560
        esac
 
14561
        ;;
 
14562
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
14563
        case $cc_basename in
 
14564
          KCC*)
 
14565
            # KAI C++ Compiler
 
14566
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14567
            lt_prog_compiler_pic_CXX='-fPIC'
 
14568
            ;;
 
14569
          ecpc* )
 
14570
            # old Intel C++ for x86_64 which still supported -KPIC.
 
14571
            lt_prog_compiler_wl_CXX='-Wl,'
 
14572
            lt_prog_compiler_pic_CXX='-KPIC'
 
14573
            lt_prog_compiler_static_CXX='-static'
 
14574
            ;;
 
14575
          icpc* )
 
14576
            # Intel C++, used to be incompatible with GCC.
 
14577
            # ICC 10 doesn't accept -KPIC any more.
 
14578
            lt_prog_compiler_wl_CXX='-Wl,'
 
14579
            lt_prog_compiler_pic_CXX='-fPIC'
 
14580
            lt_prog_compiler_static_CXX='-static'
 
14581
            ;;
 
14582
          pgCC* | pgcpp*)
 
14583
            # Portland Group C++ compiler
 
14584
            lt_prog_compiler_wl_CXX='-Wl,'
 
14585
            lt_prog_compiler_pic_CXX='-fpic'
 
14586
            lt_prog_compiler_static_CXX='-Bstatic'
 
14587
            ;;
 
14588
          cxx*)
 
14589
            # Compaq C++
 
14590
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14591
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14592
            lt_prog_compiler_pic_CXX=
 
14593
            lt_prog_compiler_static_CXX='-non_shared'
 
14594
            ;;
 
14595
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14596
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
14597
            lt_prog_compiler_wl_CXX='-Wl,'
 
14598
            lt_prog_compiler_pic_CXX='-qpic'
 
14599
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14600
            ;;
 
14601
          *)
 
14602
            case `$CC -V 2>&1 | sed 5q` in
 
14603
            *Sun\ C*)
 
14604
              # Sun C++ 5.9
 
14605
              lt_prog_compiler_pic_CXX='-KPIC'
 
14606
              lt_prog_compiler_static_CXX='-Bstatic'
 
14607
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14608
              ;;
 
14609
            esac
 
14610
            ;;
 
14611
        esac
 
14612
        ;;
 
14613
      lynxos*)
 
14614
        ;;
 
14615
      m88k*)
 
14616
        ;;
 
14617
      mvs*)
 
14618
        case $cc_basename in
 
14619
          cxx*)
 
14620
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14621
            ;;
 
14622
          *)
 
14623
            ;;
 
14624
        esac
 
14625
        ;;
 
14626
      netbsd* | netbsdelf*-gnu)
 
14627
        ;;
 
14628
      *qnx* | *nto*)
 
14629
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14630
        # it will coredump.
 
14631
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14632
        ;;
 
14633
      osf3* | osf4* | osf5*)
 
14634
        case $cc_basename in
 
14635
          KCC*)
 
14636
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14637
            ;;
 
14638
          RCC*)
 
14639
            # Rational C++ 2.4.1
 
14640
            lt_prog_compiler_pic_CXX='-pic'
 
14641
            ;;
 
14642
          cxx*)
 
14643
            # Digital/Compaq C++
 
14644
            lt_prog_compiler_wl_CXX='-Wl,'
 
14645
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14646
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14647
            lt_prog_compiler_pic_CXX=
 
14648
            lt_prog_compiler_static_CXX='-non_shared'
 
14649
            ;;
 
14650
          *)
 
14651
            ;;
 
14652
        esac
 
14653
        ;;
 
14654
      psos*)
 
14655
        ;;
 
14656
      solaris*)
 
14657
        case $cc_basename in
 
14658
          CC* | sunCC*)
 
14659
            # Sun C++ 4.2, 5.x and Centerline C++
 
14660
            lt_prog_compiler_pic_CXX='-KPIC'
 
14661
            lt_prog_compiler_static_CXX='-Bstatic'
 
14662
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14663
            ;;
 
14664
          gcx*)
 
14665
            # Green Hills C++ Compiler
 
14666
            lt_prog_compiler_pic_CXX='-PIC'
 
14667
            ;;
 
14668
          *)
 
14669
            ;;
 
14670
        esac
 
14671
        ;;
 
14672
      sunos4*)
 
14673
        case $cc_basename in
 
14674
          CC*)
 
14675
            # Sun C++ 4.x
 
14676
            lt_prog_compiler_pic_CXX='-pic'
 
14677
            lt_prog_compiler_static_CXX='-Bstatic'
 
14678
            ;;
 
14679
          lcc*)
 
14680
            # Lucid
 
14681
            lt_prog_compiler_pic_CXX='-pic'
 
14682
            ;;
 
14683
          *)
 
14684
            ;;
 
14685
        esac
 
14686
        ;;
 
14687
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14688
        case $cc_basename in
 
14689
          CC*)
 
14690
            lt_prog_compiler_wl_CXX='-Wl,'
 
14691
            lt_prog_compiler_pic_CXX='-KPIC'
 
14692
            lt_prog_compiler_static_CXX='-Bstatic'
 
14693
            ;;
 
14694
        esac
 
14695
        ;;
 
14696
      tandem*)
 
14697
        case $cc_basename in
 
14698
          NCC*)
 
14699
            # NonStop-UX NCC 3.20
 
14700
            lt_prog_compiler_pic_CXX='-KPIC'
 
14701
            ;;
 
14702
          *)
 
14703
            ;;
 
14704
        esac
 
14705
        ;;
 
14706
      vxworks*)
 
14707
        ;;
 
14708
      *)
 
14709
        lt_prog_compiler_can_build_shared_CXX=no
 
14710
        ;;
 
14711
    esac
 
14712
  fi
 
14713
 
 
14714
case $host_os in
 
14715
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14716
  *djgpp*)
 
14717
    lt_prog_compiler_pic_CXX=
 
14718
    ;;
 
14719
  *)
 
14720
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14721
    ;;
 
14722
esac
 
14723
 
 
14724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14725
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14726
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14727
  $as_echo_n "(cached) " >&6
 
14728
else
 
14729
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14730
fi
 
14731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14732
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14733
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14734
 
 
14735
#
 
14736
# Check to make sure the PIC flag actually works.
 
14737
#
 
14738
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14739
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14740
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14741
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14742
  $as_echo_n "(cached) " >&6
 
14743
else
 
14744
  lt_cv_prog_compiler_pic_works_CXX=no
 
14745
   ac_outfile=conftest.$ac_objext
 
14746
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14747
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14748
   # Insert the option either (1) after the last *FLAGS variable, or
 
14749
   # (2) before a word containing "conftest.", or (3) at the end.
 
14750
   # Note that $ac_compile itself does not contain backslashes and begins
 
14751
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14752
   # The option is referenced via a variable to avoid confusing sed.
 
14753
   lt_compile=`echo "$ac_compile" | $SED \
 
14754
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14755
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14756
   -e 's:$: $lt_compiler_flag:'`
 
14757
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14758
   (eval "$lt_compile" 2>conftest.err)
 
14759
   ac_status=$?
 
14760
   cat conftest.err >&5
 
14761
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14762
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14763
     # The compiler can only warn and ignore the option if not recognized
 
14764
     # So say no if there are warnings other than the usual output.
 
14765
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14766
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14767
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14768
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14769
     fi
 
14770
   fi
 
14771
   $RM conftest*
 
14772
 
 
14773
fi
 
14774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14775
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14776
 
 
14777
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14778
    case $lt_prog_compiler_pic_CXX in
 
14779
     "" | " "*) ;;
 
14780
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14781
     esac
 
14782
else
 
14783
    lt_prog_compiler_pic_CXX=
 
14784
     lt_prog_compiler_can_build_shared_CXX=no
 
14785
fi
 
14786
 
 
14787
fi
 
14788
 
 
14789
 
 
14790
 
 
14791
 
 
14792
 
 
14793
#
 
14794
# Check to make sure the static flag actually works.
 
14795
#
 
14796
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14798
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14799
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14800
  $as_echo_n "(cached) " >&6
 
14801
else
 
14802
  lt_cv_prog_compiler_static_works_CXX=no
 
14803
   save_LDFLAGS="$LDFLAGS"
 
14804
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14805
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14806
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14807
     # The linker can only warn and ignore the option if not recognized
 
14808
     # So say no if there are warnings
 
14809
     if test -s conftest.err; then
 
14810
       # Append any errors to the config.log.
 
14811
       cat conftest.err 1>&5
 
14812
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14813
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14814
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14815
         lt_cv_prog_compiler_static_works_CXX=yes
 
14816
       fi
 
14817
     else
 
14818
       lt_cv_prog_compiler_static_works_CXX=yes
 
14819
     fi
 
14820
   fi
 
14821
   $RM -r conftest*
 
14822
   LDFLAGS="$save_LDFLAGS"
 
14823
 
 
14824
fi
 
14825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14826
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14827
 
 
14828
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14829
    :
 
14830
else
 
14831
    lt_prog_compiler_static_CXX=
 
14832
fi
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14838
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14839
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14840
  $as_echo_n "(cached) " >&6
 
14841
else
 
14842
  lt_cv_prog_compiler_c_o_CXX=no
 
14843
   $RM -r conftest 2>/dev/null
 
14844
   mkdir conftest
 
14845
   cd conftest
 
14846
   mkdir out
 
14847
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14848
 
 
14849
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14850
   # Insert the option either (1) after the last *FLAGS variable, or
 
14851
   # (2) before a word containing "conftest.", or (3) at the end.
 
14852
   # Note that $ac_compile itself does not contain backslashes and begins
 
14853
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14854
   lt_compile=`echo "$ac_compile" | $SED \
 
14855
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14856
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14857
   -e 's:$: $lt_compiler_flag:'`
 
14858
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14859
   (eval "$lt_compile" 2>out/conftest.err)
 
14860
   ac_status=$?
 
14861
   cat out/conftest.err >&5
 
14862
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14863
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14864
   then
 
14865
     # The compiler can only warn and ignore the option if not recognized
 
14866
     # So say no if there are warnings
 
14867
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14868
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14869
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14870
       lt_cv_prog_compiler_c_o_CXX=yes
 
14871
     fi
 
14872
   fi
 
14873
   chmod u+w . 2>&5
 
14874
   $RM conftest*
 
14875
   # SGI C++ compiler will create directory out/ii_files/ for
 
14876
   # template instantiation
 
14877
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14878
   $RM out/* && rmdir out
 
14879
   cd ..
 
14880
   $RM -r conftest
 
14881
   $RM conftest*
 
14882
 
 
14883
fi
 
14884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14885
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14886
 
 
14887
 
 
14888
 
 
14889
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14890
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14891
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14892
  $as_echo_n "(cached) " >&6
 
14893
else
 
14894
  lt_cv_prog_compiler_c_o_CXX=no
 
14895
   $RM -r conftest 2>/dev/null
 
14896
   mkdir conftest
 
14897
   cd conftest
 
14898
   mkdir out
 
14899
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14900
 
 
14901
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14902
   # Insert the option either (1) after the last *FLAGS variable, or
 
14903
   # (2) before a word containing "conftest.", or (3) at the end.
 
14904
   # Note that $ac_compile itself does not contain backslashes and begins
 
14905
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14906
   lt_compile=`echo "$ac_compile" | $SED \
 
14907
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14908
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14909
   -e 's:$: $lt_compiler_flag:'`
 
14910
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14911
   (eval "$lt_compile" 2>out/conftest.err)
 
14912
   ac_status=$?
 
14913
   cat out/conftest.err >&5
 
14914
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14915
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14916
   then
 
14917
     # The compiler can only warn and ignore the option if not recognized
 
14918
     # So say no if there are warnings
 
14919
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14920
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14921
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14922
       lt_cv_prog_compiler_c_o_CXX=yes
 
14923
     fi
 
14924
   fi
 
14925
   chmod u+w . 2>&5
 
14926
   $RM conftest*
 
14927
   # SGI C++ compiler will create directory out/ii_files/ for
 
14928
   # template instantiation
 
14929
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14930
   $RM out/* && rmdir out
 
14931
   cd ..
 
14932
   $RM -r conftest
 
14933
   $RM conftest*
 
14934
 
 
14935
fi
 
14936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14937
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14938
 
 
14939
 
 
14940
 
 
14941
 
 
14942
hard_links="nottested"
 
14943
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14944
  # do not overwrite the value of need_locks provided by the user
 
14945
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14946
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14947
  hard_links=yes
 
14948
  $RM conftest*
 
14949
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14950
  touch conftest.a
 
14951
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14952
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14953
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14954
$as_echo "$hard_links" >&6; }
 
14955
  if test "$hard_links" = no; then
 
14956
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14957
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14958
    need_locks=warn
 
14959
  fi
 
14960
else
 
14961
  need_locks=no
 
14962
fi
 
14963
 
 
14964
 
 
14965
 
 
14966
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14967
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14968
 
 
14969
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14970
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14971
  case $host_os in
 
14972
  aix[4-9]*)
 
14973
    # If we're using GNU nm, then we don't want the "-C" option.
 
14974
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14975
    # Also, AIX nm treats weak defined symbols like other global defined
 
14976
    # symbols, whereas GNU nm marks them as "W".
 
14977
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14978
      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'
 
14979
    else
 
14980
      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'
 
14981
    fi
 
14982
    ;;
 
14983
  pw32*)
 
14984
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14985
    ;;
 
14986
  cygwin* | mingw* | cegcc*)
 
14987
    case $cc_basename in
 
14988
    cl*)
 
14989
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14990
      ;;
 
14991
    *)
 
14992
      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'
 
14993
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14994
      ;;
 
14995
    esac
 
14996
    ;;
 
14997
  linux* | k*bsd*-gnu | gnu*)
 
14998
    link_all_deplibs_CXX=no
 
14999
    ;;
 
15000
  *)
 
15001
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15002
    ;;
 
15003
  esac
 
15004
 
 
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
15006
$as_echo "$ld_shlibs_CXX" >&6; }
 
15007
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15008
 
 
15009
with_gnu_ld_CXX=$with_gnu_ld
 
15010
 
 
15011
 
 
15012
 
 
15013
 
 
15014
 
 
15015
 
 
15016
#
 
15017
# Do we need to explicitly link libc?
 
15018
#
 
15019
case "x$archive_cmds_need_lc_CXX" in
 
15020
x|xyes)
 
15021
  # Assume -lc should be added
 
15022
  archive_cmds_need_lc_CXX=yes
 
15023
 
 
15024
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15025
    case $archive_cmds_CXX in
 
15026
    *'~'*)
 
15027
      # FIXME: we may have to deal with multi-command sequences.
 
15028
      ;;
 
15029
    '$CC '*)
 
15030
      # Test whether the compiler implicitly links with -lc since on some
 
15031
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15032
      # to ld, don't add -lc before -lgcc.
 
15033
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
15034
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15035
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
15036
  $as_echo_n "(cached) " >&6
 
15037
else
 
15038
  $RM conftest*
 
15039
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15040
 
 
15041
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
15042
  (eval $ac_compile) 2>&5
 
15043
  ac_status=$?
 
15044
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15045
  test $ac_status = 0; } 2>conftest.err; then
 
15046
          soname=conftest
 
15047
          lib=conftest
 
15048
          libobjs=conftest.$ac_objext
 
15049
          deplibs=
 
15050
          wl=$lt_prog_compiler_wl_CXX
 
15051
          pic_flag=$lt_prog_compiler_pic_CXX
 
15052
          compiler_flags=-v
 
15053
          linker_flags=-v
 
15054
          verstring=
 
15055
          output_objdir=.
 
15056
          libname=conftest
 
15057
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
15058
          allow_undefined_flag_CXX=
 
15059
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
15060
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15061
  ac_status=$?
 
15062
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15063
  test $ac_status = 0; }
 
15064
          then
 
15065
            lt_cv_archive_cmds_need_lc_CXX=no
 
15066
          else
 
15067
            lt_cv_archive_cmds_need_lc_CXX=yes
 
15068
          fi
 
15069
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
15070
        else
 
15071
          cat conftest.err 1>&5
 
15072
        fi
 
15073
        $RM conftest*
 
15074
 
 
15075
fi
 
15076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
15077
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
15078
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
15079
      ;;
 
15080
    esac
 
15081
  fi
 
15082
  ;;
 
15083
esac
 
15084
 
 
15085
 
 
15086
 
 
15087
 
 
15088
 
 
15089
 
 
15090
 
 
15091
 
 
15092
 
 
15093
 
 
15094
 
 
15095
 
 
15096
 
 
15097
 
 
15098
 
 
15099
 
 
15100
 
 
15101
 
 
15102
 
 
15103
 
 
15104
 
 
15105
 
 
15106
 
 
15107
 
 
15108
 
 
15109
 
 
15110
 
 
15111
 
 
15112
 
 
15113
 
 
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
 
 
15122
 
 
15123
 
 
15124
 
 
15125
 
 
15126
 
 
15127
 
 
15128
 
 
15129
 
 
15130
 
 
15131
 
 
15132
 
 
15133
 
 
15134
 
 
15135
 
 
15136
 
 
15137
 
 
15138
 
 
15139
 
 
15140
 
 
15141
 
 
15142
 
 
15143
 
 
15144
 
 
15145
 
 
15146
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
15147
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15148
 
 
15149
library_names_spec=
 
15150
libname_spec='lib$name'
 
15151
soname_spec=
 
15152
shrext_cmds=".so"
 
15153
postinstall_cmds=
 
15154
postuninstall_cmds=
 
15155
finish_cmds=
 
15156
finish_eval=
 
15157
shlibpath_var=
 
15158
shlibpath_overrides_runpath=unknown
 
15159
version_type=none
 
15160
dynamic_linker="$host_os ld.so"
 
15161
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15162
need_lib_prefix=unknown
 
15163
hardcode_into_libs=no
 
15164
 
 
15165
# when you set need_version to no, make sure it does not cause -set_version
 
15166
# flags to be left without arguments
 
15167
need_version=unknown
 
15168
 
 
15169
case $host_os in
 
15170
aix3*)
 
15171
  version_type=linux # correct to gnu/linux during the next big refactor
 
15172
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15173
  shlibpath_var=LIBPATH
 
15174
 
 
15175
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15176
  soname_spec='${libname}${release}${shared_ext}$major'
 
15177
  ;;
 
15178
 
 
15179
aix[4-9]*)
 
15180
  version_type=linux # correct to gnu/linux during the next big refactor
 
15181
  need_lib_prefix=no
 
15182
  need_version=no
 
15183
  hardcode_into_libs=yes
 
15184
  if test "$host_cpu" = ia64; then
 
15185
    # AIX 5 supports IA64
 
15186
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15187
    shlibpath_var=LD_LIBRARY_PATH
 
15188
  else
 
15189
    # With GCC up to 2.95.x, collect2 would create an import file
 
15190
    # for dependence libraries.  The import file would start with
 
15191
    # the line `#! .'.  This would cause the generated library to
 
15192
    # depend on `.', always an invalid library.  This was fixed in
 
15193
    # development snapshots of GCC prior to 3.0.
 
15194
    case $host_os in
 
15195
      aix4 | aix4.[01] | aix4.[01].*)
 
15196
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15197
           echo ' yes '
 
15198
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15199
        :
 
15200
      else
 
15201
        can_build_shared=no
 
15202
      fi
 
15203
      ;;
 
15204
    esac
 
15205
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15206
    # soname into executable. Probably we can add versioning support to
 
15207
    # collect2, so additional links can be useful in future.
 
15208
    if test "$aix_use_runtimelinking" = yes; then
 
15209
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15210
      # instead of lib<name>.a to let people know that these are not
 
15211
      # typical AIX shared libraries.
 
15212
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15213
    else
 
15214
      # We preserve .a as extension for shared libraries through AIX4.2
 
15215
      # and later when we are not doing run time linking.
 
15216
      library_names_spec='${libname}${release}.a $libname.a'
 
15217
      soname_spec='${libname}${release}${shared_ext}$major'
 
15218
    fi
 
15219
    shlibpath_var=LIBPATH
 
15220
  fi
 
15221
  ;;
 
15222
 
 
15223
amigaos*)
 
15224
  case $host_cpu in
 
15225
  powerpc)
 
15226
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
15227
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
15228
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15229
    ;;
 
15230
  m68k)
 
15231
    library_names_spec='$libname.ixlibrary $libname.a'
 
15232
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15233
    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'
 
15234
    ;;
 
15235
  esac
 
15236
  ;;
 
15237
 
 
15238
beos*)
 
15239
  library_names_spec='${libname}${shared_ext}'
 
15240
  dynamic_linker="$host_os ld.so"
 
15241
  shlibpath_var=LIBRARY_PATH
 
15242
  ;;
 
15243
 
 
15244
bsdi[45]*)
 
15245
  version_type=linux # correct to gnu/linux during the next big refactor
 
15246
  need_version=no
 
15247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15248
  soname_spec='${libname}${release}${shared_ext}$major'
 
15249
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15250
  shlibpath_var=LD_LIBRARY_PATH
 
15251
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15252
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15253
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15254
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15255
  # libtool to hard-code these into programs
 
15256
  ;;
 
15257
 
 
15258
cygwin* | mingw* | pw32* | cegcc*)
 
15259
  version_type=windows
 
15260
  shrext_cmds=".dll"
 
15261
  need_version=no
 
15262
  need_lib_prefix=no
 
15263
 
 
15264
  case $GCC,$cc_basename in
 
15265
  yes,*)
 
15266
    # gcc
 
15267
    library_names_spec='$libname.dll.a'
 
15268
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15269
    postinstall_cmds='base_file=`basename \${file}`~
 
15270
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15271
      dldir=$destdir/`dirname \$dlpath`~
 
15272
      test -d \$dldir || mkdir -p \$dldir~
 
15273
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15274
      chmod a+x \$dldir/$dlname~
 
15275
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15276
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15277
      fi'
 
15278
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15279
      dlpath=$dir/\$dldll~
 
15280
       $RM \$dlpath'
 
15281
    shlibpath_overrides_runpath=yes
 
15282
 
 
15283
    case $host_os in
 
15284
    cygwin*)
 
15285
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15286
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15287
 
 
15288
      ;;
 
15289
    mingw* | cegcc*)
 
15290
      # MinGW DLLs use traditional 'lib' prefix
 
15291
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15292
      ;;
 
15293
    pw32*)
 
15294
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15295
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15296
      ;;
 
15297
    esac
 
15298
    dynamic_linker='Win32 ld.exe'
 
15299
    ;;
 
15300
 
 
15301
  *,cl*)
 
15302
    # Native MSVC
 
15303
    libname_spec='$name'
 
15304
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15305
    library_names_spec='${libname}.dll.lib'
 
15306
 
 
15307
    case $build_os in
 
15308
    mingw*)
 
15309
      sys_lib_search_path_spec=
 
15310
      lt_save_ifs=$IFS
 
15311
      IFS=';'
 
15312
      for lt_path in $LIB
 
15313
      do
 
15314
        IFS=$lt_save_ifs
 
15315
        # Let DOS variable expansion print the short 8.3 style file name.
 
15316
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
15317
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
15318
      done
 
15319
      IFS=$lt_save_ifs
 
15320
      # Convert to MSYS style.
 
15321
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
15322
      ;;
 
15323
    cygwin*)
 
15324
      # Convert to unix form, then to dos form, then back to unix form
 
15325
      # but this time dos style (no spaces!) so that the unix form looks
 
15326
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
15327
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
15328
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
15329
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15330
      ;;
 
15331
    *)
 
15332
      sys_lib_search_path_spec="$LIB"
 
15333
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15334
        # It is most probably a Windows format PATH.
 
15335
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15336
      else
 
15337
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15338
      fi
 
15339
      # FIXME: find the short name or the path components, as spaces are
 
15340
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
15341
      ;;
 
15342
    esac
 
15343
 
 
15344
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15345
    postinstall_cmds='base_file=`basename \${file}`~
 
15346
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15347
      dldir=$destdir/`dirname \$dlpath`~
 
15348
      test -d \$dldir || mkdir -p \$dldir~
 
15349
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15350
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15351
      dlpath=$dir/\$dldll~
 
15352
       $RM \$dlpath'
 
15353
    shlibpath_overrides_runpath=yes
 
15354
    dynamic_linker='Win32 link.exe'
 
15355
    ;;
 
15356
 
 
15357
  *)
 
15358
    # Assume MSVC wrapper
 
15359
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15360
    dynamic_linker='Win32 ld.exe'
 
15361
    ;;
 
15362
  esac
 
15363
  # FIXME: first we should search . and the directory the executable is in
 
15364
  shlibpath_var=PATH
 
15365
  ;;
 
15366
 
 
15367
darwin* | rhapsody*)
 
15368
  dynamic_linker="$host_os dyld"
 
15369
  version_type=darwin
 
15370
  need_lib_prefix=no
 
15371
  need_version=no
 
15372
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15373
  soname_spec='${libname}${release}${major}$shared_ext'
 
15374
  shlibpath_overrides_runpath=yes
 
15375
  shlibpath_var=DYLD_LIBRARY_PATH
 
15376
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15377
 
 
15378
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15379
  ;;
 
15380
 
 
15381
dgux*)
 
15382
  version_type=linux # correct to gnu/linux during the next big refactor
 
15383
  need_lib_prefix=no
 
15384
  need_version=no
 
15385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15386
  soname_spec='${libname}${release}${shared_ext}$major'
 
15387
  shlibpath_var=LD_LIBRARY_PATH
 
15388
  ;;
 
15389
 
 
15390
freebsd* | dragonfly*)
 
15391
  # DragonFly does not have aout.  When/if they implement a new
 
15392
  # versioning mechanism, adjust this.
 
15393
  if test -x /usr/bin/objformat; then
 
15394
    objformat=`/usr/bin/objformat`
 
15395
  else
 
15396
    case $host_os in
 
15397
    freebsd[23].*) objformat=aout ;;
 
15398
    *) objformat=elf ;;
 
15399
    esac
 
15400
  fi
 
15401
  version_type=freebsd-$objformat
 
15402
  case $version_type in
 
15403
    freebsd-elf*)
 
15404
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15405
      need_version=no
 
15406
      need_lib_prefix=no
 
15407
      ;;
 
15408
    freebsd-*)
 
15409
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15410
      need_version=yes
 
15411
      ;;
 
15412
  esac
 
15413
  shlibpath_var=LD_LIBRARY_PATH
 
15414
  case $host_os in
 
15415
  freebsd2.*)
 
15416
    shlibpath_overrides_runpath=yes
 
15417
    ;;
 
15418
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15419
    shlibpath_overrides_runpath=yes
 
15420
    hardcode_into_libs=yes
 
15421
    ;;
 
15422
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15423
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15424
    shlibpath_overrides_runpath=no
 
15425
    hardcode_into_libs=yes
 
15426
    ;;
 
15427
  *) # from 4.6 on, and DragonFly
 
15428
    shlibpath_overrides_runpath=yes
 
15429
    hardcode_into_libs=yes
 
15430
    ;;
 
15431
  esac
 
15432
  ;;
 
15433
 
 
15434
haiku*)
 
15435
  version_type=linux # correct to gnu/linux during the next big refactor
 
15436
  need_lib_prefix=no
 
15437
  need_version=no
 
15438
  dynamic_linker="$host_os runtime_loader"
 
15439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15440
  soname_spec='${libname}${release}${shared_ext}$major'
 
15441
  shlibpath_var=LIBRARY_PATH
 
15442
  shlibpath_overrides_runpath=yes
 
15443
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
15444
  hardcode_into_libs=yes
 
15445
  ;;
 
15446
 
 
15447
hpux9* | hpux10* | hpux11*)
 
15448
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15449
  # link against other versions.
 
15450
  version_type=sunos
 
15451
  need_lib_prefix=no
 
15452
  need_version=no
 
15453
  case $host_cpu in
 
15454
  ia64*)
 
15455
    shrext_cmds='.so'
 
15456
    hardcode_into_libs=yes
 
15457
    dynamic_linker="$host_os dld.so"
 
15458
    shlibpath_var=LD_LIBRARY_PATH
 
15459
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15460
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15461
    soname_spec='${libname}${release}${shared_ext}$major'
 
15462
    if test "X$HPUX_IA64_MODE" = X32; then
 
15463
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15464
    else
 
15465
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15466
    fi
 
15467
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15468
    ;;
 
15469
  hppa*64*)
 
15470
    shrext_cmds='.sl'
 
15471
    hardcode_into_libs=yes
 
15472
    dynamic_linker="$host_os dld.sl"
 
15473
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15474
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15475
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15476
    soname_spec='${libname}${release}${shared_ext}$major'
 
15477
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15478
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15479
    ;;
 
15480
  *)
 
15481
    shrext_cmds='.sl'
 
15482
    dynamic_linker="$host_os dld.sl"
 
15483
    shlibpath_var=SHLIB_PATH
 
15484
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15485
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15486
    soname_spec='${libname}${release}${shared_ext}$major'
 
15487
    ;;
 
15488
  esac
 
15489
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
15490
  postinstall_cmds='chmod 555 $lib'
 
15491
  # or fails outright, so override atomically:
 
15492
  install_override_mode=555
 
15493
  ;;
 
15494
 
 
15495
interix[3-9]*)
 
15496
  version_type=linux # correct to gnu/linux during the next big refactor
 
15497
  need_lib_prefix=no
 
15498
  need_version=no
 
15499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15500
  soname_spec='${libname}${release}${shared_ext}$major'
 
15501
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15502
  shlibpath_var=LD_LIBRARY_PATH
 
15503
  shlibpath_overrides_runpath=no
 
15504
  hardcode_into_libs=yes
 
15505
  ;;
 
15506
 
 
15507
irix5* | irix6* | nonstopux*)
 
15508
  case $host_os in
 
15509
    nonstopux*) version_type=nonstopux ;;
 
15510
    *)
 
15511
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15512
                version_type=linux # correct to gnu/linux during the next big refactor
 
15513
        else
 
15514
                version_type=irix
 
15515
        fi ;;
 
15516
  esac
 
15517
  need_lib_prefix=no
 
15518
  need_version=no
 
15519
  soname_spec='${libname}${release}${shared_ext}$major'
 
15520
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15521
  case $host_os in
 
15522
  irix5* | nonstopux*)
 
15523
    libsuff= shlibsuff=
 
15524
    ;;
 
15525
  *)
 
15526
    case $LD in # libtool.m4 will add one of these switches to LD
 
15527
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15528
      libsuff= shlibsuff= libmagic=32-bit;;
 
15529
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15530
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15531
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15532
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15533
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15534
    esac
 
15535
    ;;
 
15536
  esac
 
15537
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15538
  shlibpath_overrides_runpath=no
 
15539
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15540
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15541
  hardcode_into_libs=yes
 
15542
  ;;
 
15543
 
 
15544
# No shared lib support for Linux oldld, aout, or coff.
 
15545
linux*oldld* | linux*aout* | linux*coff*)
 
15546
  dynamic_linker=no
 
15547
  ;;
 
15548
 
 
15549
# This must be glibc/ELF.
 
15550
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
15551
  version_type=linux # correct to gnu/linux during the next big refactor
 
15552
  need_lib_prefix=no
 
15553
  need_version=no
 
15554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15555
  soname_spec='${libname}${release}${shared_ext}$major'
 
15556
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15557
  shlibpath_var=LD_LIBRARY_PATH
 
15558
  shlibpath_overrides_runpath=no
 
15559
 
 
15560
  # Some binutils ld are patched to set DT_RUNPATH
 
15561
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15562
  $as_echo_n "(cached) " >&6
 
15563
else
 
15564
  lt_cv_shlibpath_overrides_runpath=no
 
15565
    save_LDFLAGS=$LDFLAGS
 
15566
    save_libdir=$libdir
 
15567
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15568
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15569
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15570
/* end confdefs.h.  */
 
15571
 
 
15572
int
 
15573
main ()
 
15574
{
 
15575
 
 
15576
  ;
 
15577
  return 0;
 
15578
}
 
15579
_ACEOF
 
15580
if ac_fn_cxx_try_link "$LINENO"; then :
 
15581
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15582
  lt_cv_shlibpath_overrides_runpath=yes
 
15583
fi
 
15584
fi
 
15585
rm -f core conftest.err conftest.$ac_objext \
 
15586
    conftest$ac_exeext conftest.$ac_ext
 
15587
    LDFLAGS=$save_LDFLAGS
 
15588
    libdir=$save_libdir
 
15589
 
 
15590
fi
 
15591
 
 
15592
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
15593
 
 
15594
  # This implies no fast_install, which is unacceptable.
 
15595
  # Some rework will be needed to allow for fast_install
 
15596
  # before this can be enabled.
 
15597
  hardcode_into_libs=yes
 
15598
 
 
15599
  # Append ld.so.conf contents to the search path
 
15600
  if test -f /etc/ld.so.conf; then
 
15601
    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' ' '`
 
15602
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15603
  fi
 
15604
 
 
15605
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15606
  # powerpc, because MkLinux only supported shared libraries with the
 
15607
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15608
  # most powerpc-linux boxes support dynamic linking these days and
 
15609
  # people can always --disable-shared, the test was removed, and we
 
15610
  # assume the GNU/Linux dynamic linker is in use.
 
15611
  dynamic_linker='GNU/Linux ld.so'
 
15612
  ;;
 
15613
 
 
15614
netbsdelf*-gnu)
 
15615
  version_type=linux
 
15616
  need_lib_prefix=no
 
15617
  need_version=no
 
15618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15619
  soname_spec='${libname}${release}${shared_ext}$major'
 
15620
  shlibpath_var=LD_LIBRARY_PATH
 
15621
  shlibpath_overrides_runpath=no
 
15622
  hardcode_into_libs=yes
 
15623
  dynamic_linker='NetBSD ld.elf_so'
 
15624
  ;;
 
15625
 
 
15626
netbsd*)
 
15627
  version_type=sunos
 
15628
  need_lib_prefix=no
 
15629
  need_version=no
 
15630
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15631
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15632
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15633
    dynamic_linker='NetBSD (a.out) ld.so'
 
15634
  else
 
15635
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15636
    soname_spec='${libname}${release}${shared_ext}$major'
 
15637
    dynamic_linker='NetBSD ld.elf_so'
 
15638
  fi
 
15639
  shlibpath_var=LD_LIBRARY_PATH
 
15640
  shlibpath_overrides_runpath=yes
 
15641
  hardcode_into_libs=yes
 
15642
  ;;
 
15643
 
 
15644
newsos6)
 
15645
  version_type=linux # correct to gnu/linux during the next big refactor
 
15646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15647
  shlibpath_var=LD_LIBRARY_PATH
 
15648
  shlibpath_overrides_runpath=yes
 
15649
  ;;
 
15650
 
 
15651
*nto* | *qnx*)
 
15652
  version_type=qnx
 
15653
  need_lib_prefix=no
 
15654
  need_version=no
 
15655
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15656
  soname_spec='${libname}${release}${shared_ext}$major'
 
15657
  shlibpath_var=LD_LIBRARY_PATH
 
15658
  shlibpath_overrides_runpath=no
 
15659
  hardcode_into_libs=yes
 
15660
  dynamic_linker='ldqnx.so'
 
15661
  ;;
 
15662
 
 
15663
openbsd*)
 
15664
  version_type=sunos
 
15665
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15666
  need_lib_prefix=no
 
15667
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15668
  case $host_os in
 
15669
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15670
    *)                          need_version=no  ;;
 
15671
  esac
 
15672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15673
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15674
  shlibpath_var=LD_LIBRARY_PATH
 
15675
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15676
    case $host_os in
 
15677
      openbsd2.[89] | openbsd2.[89].*)
 
15678
        shlibpath_overrides_runpath=no
 
15679
        ;;
 
15680
      *)
 
15681
        shlibpath_overrides_runpath=yes
 
15682
        ;;
 
15683
      esac
 
15684
  else
 
15685
    shlibpath_overrides_runpath=yes
 
15686
  fi
 
15687
  ;;
 
15688
 
 
15689
os2*)
 
15690
  libname_spec='$name'
 
15691
  shrext_cmds=".dll"
 
15692
  need_lib_prefix=no
 
15693
  library_names_spec='$libname${shared_ext} $libname.a'
 
15694
  dynamic_linker='OS/2 ld.exe'
 
15695
  shlibpath_var=LIBPATH
 
15696
  ;;
 
15697
 
 
15698
osf3* | osf4* | osf5*)
 
15699
  version_type=osf
 
15700
  need_lib_prefix=no
 
15701
  need_version=no
 
15702
  soname_spec='${libname}${release}${shared_ext}$major'
 
15703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15704
  shlibpath_var=LD_LIBRARY_PATH
 
15705
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15706
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15707
  ;;
 
15708
 
 
15709
rdos*)
 
15710
  dynamic_linker=no
 
15711
  ;;
 
15712
 
 
15713
solaris*)
 
15714
  version_type=linux # correct to gnu/linux during the next big refactor
 
15715
  need_lib_prefix=no
 
15716
  need_version=no
 
15717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15718
  soname_spec='${libname}${release}${shared_ext}$major'
 
15719
  shlibpath_var=LD_LIBRARY_PATH
 
15720
  shlibpath_overrides_runpath=yes
 
15721
  hardcode_into_libs=yes
 
15722
  # ldd complains unless libraries are executable
 
15723
  postinstall_cmds='chmod +x $lib'
 
15724
  ;;
 
15725
 
 
15726
sunos4*)
 
15727
  version_type=sunos
 
15728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15729
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15730
  shlibpath_var=LD_LIBRARY_PATH
 
15731
  shlibpath_overrides_runpath=yes
 
15732
  if test "$with_gnu_ld" = yes; then
 
15733
    need_lib_prefix=no
 
15734
  fi
 
15735
  need_version=yes
 
15736
  ;;
 
15737
 
 
15738
sysv4 | sysv4.3*)
 
15739
  version_type=linux # correct to gnu/linux during the next big refactor
 
15740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15741
  soname_spec='${libname}${release}${shared_ext}$major'
 
15742
  shlibpath_var=LD_LIBRARY_PATH
 
15743
  case $host_vendor in
 
15744
    sni)
 
15745
      shlibpath_overrides_runpath=no
 
15746
      need_lib_prefix=no
 
15747
      runpath_var=LD_RUN_PATH
 
15748
      ;;
 
15749
    siemens)
 
15750
      need_lib_prefix=no
 
15751
      ;;
 
15752
    motorola)
 
15753
      need_lib_prefix=no
 
15754
      need_version=no
 
15755
      shlibpath_overrides_runpath=no
 
15756
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15757
      ;;
 
15758
  esac
 
15759
  ;;
 
15760
 
 
15761
sysv4*MP*)
 
15762
  if test -d /usr/nec ;then
 
15763
    version_type=linux # correct to gnu/linux during the next big refactor
 
15764
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15765
    soname_spec='$libname${shared_ext}.$major'
 
15766
    shlibpath_var=LD_LIBRARY_PATH
 
15767
  fi
 
15768
  ;;
 
15769
 
 
15770
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15771
  version_type=freebsd-elf
 
15772
  need_lib_prefix=no
 
15773
  need_version=no
 
15774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15775
  soname_spec='${libname}${release}${shared_ext}$major'
 
15776
  shlibpath_var=LD_LIBRARY_PATH
 
15777
  shlibpath_overrides_runpath=yes
 
15778
  hardcode_into_libs=yes
 
15779
  if test "$with_gnu_ld" = yes; then
 
15780
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15781
  else
 
15782
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15783
    case $host_os in
 
15784
      sco3.2v5*)
 
15785
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15786
        ;;
 
15787
    esac
 
15788
  fi
 
15789
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15790
  ;;
 
15791
 
 
15792
tpf*)
 
15793
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15794
  version_type=linux # correct to gnu/linux during the next big refactor
 
15795
  need_lib_prefix=no
 
15796
  need_version=no
 
15797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15798
  shlibpath_var=LD_LIBRARY_PATH
 
15799
  shlibpath_overrides_runpath=no
 
15800
  hardcode_into_libs=yes
 
15801
  ;;
 
15802
 
 
15803
uts4*)
 
15804
  version_type=linux # correct to gnu/linux during the next big refactor
 
15805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15806
  soname_spec='${libname}${release}${shared_ext}$major'
 
15807
  shlibpath_var=LD_LIBRARY_PATH
 
15808
  ;;
 
15809
 
 
15810
*)
 
15811
  dynamic_linker=no
 
15812
  ;;
 
15813
esac
 
15814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15815
$as_echo "$dynamic_linker" >&6; }
 
15816
test "$dynamic_linker" = no && can_build_shared=no
 
15817
 
 
15818
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15819
if test "$GCC" = yes; then
 
15820
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15821
fi
 
15822
 
 
15823
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15824
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15825
fi
 
15826
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15827
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15828
fi
 
15829
 
 
15830
 
 
15831
 
 
15832
 
 
15833
 
 
15834
 
 
15835
 
 
15836
 
 
15837
 
 
15838
 
 
15839
 
 
15840
 
 
15841
 
 
15842
 
 
15843
 
 
15844
 
 
15845
 
 
15846
 
 
15847
 
 
15848
 
 
15849
 
 
15850
 
 
15851
 
 
15852
 
 
15853
 
 
15854
 
 
15855
 
 
15856
 
 
15857
 
 
15858
 
 
15859
 
 
15860
 
 
15861
 
 
15862
 
 
15863
 
 
15864
 
 
15865
 
 
15866
 
 
15867
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15868
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15869
hardcode_action_CXX=
 
15870
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15871
   test -n "$runpath_var_CXX" ||
 
15872
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15873
 
 
15874
  # We can hardcode non-existent directories.
 
15875
  if test "$hardcode_direct_CXX" != no &&
 
15876
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15877
     # have to relink, otherwise we might link with an installed library
 
15878
     # when we should be linking with a yet-to-be-installed one
 
15879
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15880
     test "$hardcode_minus_L_CXX" != no; then
 
15881
    # Linking always hardcodes the temporary library directory.
 
15882
    hardcode_action_CXX=relink
 
15883
  else
 
15884
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15885
    hardcode_action_CXX=immediate
 
15886
  fi
 
15887
else
 
15888
  # We cannot hardcode anything, or else we can only hardcode existing
 
15889
  # directories.
 
15890
  hardcode_action_CXX=unsupported
 
15891
fi
 
15892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15893
$as_echo "$hardcode_action_CXX" >&6; }
 
15894
 
 
15895
if test "$hardcode_action_CXX" = relink ||
 
15896
   test "$inherit_rpath_CXX" = yes; then
 
15897
  # Fast installation is not supported
 
15898
  enable_fast_install=no
 
15899
elif test "$shlibpath_overrides_runpath" = yes ||
 
15900
     test "$enable_shared" = no; then
 
15901
  # Fast installation is not necessary
 
15902
  enable_fast_install=needless
 
15903
fi
 
15904
 
 
15905
 
 
15906
 
 
15907
 
 
15908
 
 
15909
 
 
15910
 
 
15911
  fi # test -n "$compiler"
 
15912
 
 
15913
  CC=$lt_save_CC
 
15914
  CFLAGS=$lt_save_CFLAGS
 
15915
  LDCXX=$LD
 
15916
  LD=$lt_save_LD
 
15917
  GCC=$lt_save_GCC
 
15918
  with_gnu_ld=$lt_save_with_gnu_ld
 
15919
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15920
  lt_cv_path_LD=$lt_save_path_LD
 
15921
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15922
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15923
fi # test "$_lt_caught_CXX_error" != yes
 
15924
 
 
15925
ac_ext=cpp
 
15926
ac_cpp='$CXXCPP $CPPFLAGS'
 
15927
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15928
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15929
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15930
 
 
15931
 
 
15932
 
 
15933
 
 
15934
 
 
15935
 
 
15936
 
 
15937
 
 
15938
 
 
15939
 
 
15940
 
 
15941
 
 
15942
 
 
15943
 
 
15944
 
 
15945
        ac_config_commands="$ac_config_commands libtool"
 
15946
 
 
15947
 
 
15948
 
 
15949
 
 
15950
# Only expand once:
 
15951
 
 
15952
 
 
15953
 
 
15954
 
 
15955
 
 
15956
 
 
15957
 
 
15958
 
 
15959
 
 
15960
 
 
15961
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
15962
        if test -n "$ac_tool_prefix"; then
 
15963
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
15964
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
15965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15966
$as_echo_n "checking for $ac_word... " >&6; }
 
15967
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
15968
  $as_echo_n "(cached) " >&6
 
15969
else
 
15970
  case $PKG_CONFIG in
 
15971
  [\\/]* | ?:[\\/]*)
 
15972
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
15973
  ;;
 
15974
  *)
 
15975
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15976
for as_dir in $PATH
 
15977
do
 
15978
  IFS=$as_save_IFS
 
15979
  test -z "$as_dir" && as_dir=.
 
15980
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15981
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15982
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
15983
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15984
    break 2
 
15985
  fi
 
15986
done
 
15987
  done
 
15988
IFS=$as_save_IFS
 
15989
 
 
15990
  ;;
 
15991
esac
 
15992
fi
 
15993
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
15994
if test -n "$PKG_CONFIG"; then
 
15995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
15996
$as_echo "$PKG_CONFIG" >&6; }
 
15997
else
 
15998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15999
$as_echo "no" >&6; }
 
16000
fi
 
16001
 
 
16002
 
 
16003
fi
 
16004
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
16005
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
16006
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
16007
set dummy pkg-config; ac_word=$2
 
16008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16009
$as_echo_n "checking for $ac_word... " >&6; }
 
16010
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
16011
  $as_echo_n "(cached) " >&6
 
16012
else
 
16013
  case $ac_pt_PKG_CONFIG in
 
16014
  [\\/]* | ?:[\\/]*)
 
16015
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
16016
  ;;
 
16017
  *)
 
16018
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16019
for as_dir in $PATH
 
16020
do
 
16021
  IFS=$as_save_IFS
 
16022
  test -z "$as_dir" && as_dir=.
 
16023
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16024
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16025
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16026
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16027
    break 2
 
16028
  fi
 
16029
done
 
16030
  done
 
16031
IFS=$as_save_IFS
 
16032
 
 
16033
  ;;
 
16034
esac
 
16035
fi
 
16036
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
16037
if test -n "$ac_pt_PKG_CONFIG"; then
 
16038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
16039
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
16040
else
 
16041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16042
$as_echo "no" >&6; }
 
16043
fi
 
16044
 
 
16045
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
16046
    PKG_CONFIG=""
 
16047
  else
 
16048
    case $cross_compiling:$ac_tool_warned in
 
16049
yes:)
 
16050
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16051
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16052
ac_tool_warned=yes ;;
 
16053
esac
 
16054
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
16055
  fi
 
16056
else
 
16057
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
16058
fi
 
16059
 
 
16060
fi
 
16061
if test -n "$PKG_CONFIG"; then
 
16062
        _pkg_min_version=0.9.0
 
16063
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
16064
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
16065
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
16066
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16067
$as_echo "yes" >&6; }
 
16068
        else
 
16069
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16070
$as_echo "no" >&6; }
 
16071
                PKG_CONFIG=""
 
16072
        fi
 
16073
fi
 
16074
 
 
16075
pkg_failed=no
 
16076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWIBBLE" >&5
 
16077
$as_echo_n "checking for LIBWIBBLE... " >&6; }
 
16078
 
 
16079
if test -n "$LIBWIBBLE_CFLAGS"; then
 
16080
    pkg_cv_LIBWIBBLE_CFLAGS="$LIBWIBBLE_CFLAGS"
 
16081
 elif test -n "$PKG_CONFIG"; then
 
16082
    if test -n "$PKG_CONFIG" && \
 
16083
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwibble\""; } >&5
 
16084
  ($PKG_CONFIG --exists --print-errors "libwibble") 2>&5
 
16085
  ac_status=$?
 
16086
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16087
  test $ac_status = 0; }; then
 
16088
  pkg_cv_LIBWIBBLE_CFLAGS=`$PKG_CONFIG --cflags "libwibble" 2>/dev/null`
 
16089
                      test "x$?" != "x0" && pkg_failed=yes
 
16090
else
 
16091
  pkg_failed=yes
 
16092
fi
 
16093
 else
 
16094
    pkg_failed=untried
 
16095
fi
 
16096
if test -n "$LIBWIBBLE_LIBS"; then
 
16097
    pkg_cv_LIBWIBBLE_LIBS="$LIBWIBBLE_LIBS"
 
16098
 elif test -n "$PKG_CONFIG"; then
 
16099
    if test -n "$PKG_CONFIG" && \
 
16100
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwibble\""; } >&5
 
16101
  ($PKG_CONFIG --exists --print-errors "libwibble") 2>&5
 
16102
  ac_status=$?
 
16103
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16104
  test $ac_status = 0; }; then
 
16105
  pkg_cv_LIBWIBBLE_LIBS=`$PKG_CONFIG --libs "libwibble" 2>/dev/null`
 
16106
                      test "x$?" != "x0" && pkg_failed=yes
 
16107
else
 
16108
  pkg_failed=yes
 
16109
fi
 
16110
 else
 
16111
    pkg_failed=untried
 
16112
fi
 
16113
 
 
16114
 
 
16115
 
 
16116
if test $pkg_failed = yes; then
 
16117
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16118
$as_echo "no" >&6; }
 
16119
 
 
16120
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16121
        _pkg_short_errors_supported=yes
 
16122
else
 
16123
        _pkg_short_errors_supported=no
 
16124
fi
 
16125
        if test $_pkg_short_errors_supported = yes; then
 
16126
                LIBWIBBLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwibble" 2>&1`
 
16127
        else
 
16128
                LIBWIBBLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwibble" 2>&1`
 
16129
        fi
 
16130
        # Put the nasty error message in config.log where it belongs
 
16131
        echo "$LIBWIBBLE_PKG_ERRORS" >&5
 
16132
 
 
16133
        as_fn_error $? "Package requirements (libwibble) were not met:
 
16134
 
 
16135
$LIBWIBBLE_PKG_ERRORS
 
16136
 
 
16137
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16138
installed software in a non-standard prefix.
 
16139
 
 
16140
Alternatively, you may set the environment variables LIBWIBBLE_CFLAGS
 
16141
and LIBWIBBLE_LIBS to avoid the need to call pkg-config.
 
16142
See the pkg-config man page for more details." "$LINENO" 5
 
16143
elif test $pkg_failed = untried; then
 
16144
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16145
$as_echo "no" >&6; }
 
16146
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16147
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16148
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16149
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16150
path to pkg-config.
 
16151
 
 
16152
Alternatively, you may set the environment variables LIBWIBBLE_CFLAGS
 
16153
and LIBWIBBLE_LIBS to avoid the need to call pkg-config.
 
16154
See the pkg-config man page for more details.
 
16155
 
 
16156
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16157
See \`config.log' for more details" "$LINENO" 5; }
 
16158
else
 
16159
        LIBWIBBLE_CFLAGS=$pkg_cv_LIBWIBBLE_CFLAGS
 
16160
        LIBWIBBLE_LIBS=$pkg_cv_LIBWIBBLE_LIBS
 
16161
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16162
$as_echo "yes" >&6; }
 
16163
 
 
16164
fi
 
16165
 
 
16166
 
 
16167
 
 
16168
 
 
16169
pkg_failed=no
 
16170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTAGCOLL" >&5
 
16171
$as_echo_n "checking for LIBTAGCOLL... " >&6; }
 
16172
 
 
16173
if test -n "$LIBTAGCOLL_CFLAGS"; then
 
16174
    pkg_cv_LIBTAGCOLL_CFLAGS="$LIBTAGCOLL_CFLAGS"
 
16175
 elif test -n "$PKG_CONFIG"; then
 
16176
    if test -n "$PKG_CONFIG" && \
 
16177
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtagcoll2\""; } >&5
 
16178
  ($PKG_CONFIG --exists --print-errors "libtagcoll2") 2>&5
 
16179
  ac_status=$?
 
16180
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16181
  test $ac_status = 0; }; then
 
16182
  pkg_cv_LIBTAGCOLL_CFLAGS=`$PKG_CONFIG --cflags "libtagcoll2" 2>/dev/null`
 
16183
                      test "x$?" != "x0" && pkg_failed=yes
 
16184
else
 
16185
  pkg_failed=yes
 
16186
fi
 
16187
 else
 
16188
    pkg_failed=untried
 
16189
fi
 
16190
if test -n "$LIBTAGCOLL_LIBS"; then
 
16191
    pkg_cv_LIBTAGCOLL_LIBS="$LIBTAGCOLL_LIBS"
 
16192
 elif test -n "$PKG_CONFIG"; then
 
16193
    if test -n "$PKG_CONFIG" && \
 
16194
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtagcoll2\""; } >&5
 
16195
  ($PKG_CONFIG --exists --print-errors "libtagcoll2") 2>&5
 
16196
  ac_status=$?
 
16197
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16198
  test $ac_status = 0; }; then
 
16199
  pkg_cv_LIBTAGCOLL_LIBS=`$PKG_CONFIG --libs "libtagcoll2" 2>/dev/null`
 
16200
                      test "x$?" != "x0" && pkg_failed=yes
 
16201
else
 
16202
  pkg_failed=yes
 
16203
fi
 
16204
 else
 
16205
    pkg_failed=untried
 
16206
fi
 
16207
 
 
16208
 
 
16209
 
 
16210
if test $pkg_failed = yes; then
 
16211
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16212
$as_echo "no" >&6; }
 
16213
 
 
16214
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16215
        _pkg_short_errors_supported=yes
 
16216
else
 
16217
        _pkg_short_errors_supported=no
 
16218
fi
 
16219
        if test $_pkg_short_errors_supported = yes; then
 
16220
                LIBTAGCOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtagcoll2" 2>&1`
 
16221
        else
 
16222
                LIBTAGCOLL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtagcoll2" 2>&1`
 
16223
        fi
 
16224
        # Put the nasty error message in config.log where it belongs
 
16225
        echo "$LIBTAGCOLL_PKG_ERRORS" >&5
 
16226
 
 
16227
        as_fn_error $? "Package requirements (libtagcoll2) were not met:
 
16228
 
 
16229
$LIBTAGCOLL_PKG_ERRORS
 
16230
 
 
16231
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16232
installed software in a non-standard prefix.
 
16233
 
 
16234
Alternatively, you may set the environment variables LIBTAGCOLL_CFLAGS
 
16235
and LIBTAGCOLL_LIBS to avoid the need to call pkg-config.
 
16236
See the pkg-config man page for more details." "$LINENO" 5
 
16237
elif test $pkg_failed = untried; then
 
16238
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16239
$as_echo "no" >&6; }
 
16240
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16242
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16243
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16244
path to pkg-config.
 
16245
 
 
16246
Alternatively, you may set the environment variables LIBTAGCOLL_CFLAGS
 
16247
and LIBTAGCOLL_LIBS to avoid the need to call pkg-config.
 
16248
See the pkg-config man page for more details.
 
16249
 
 
16250
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16251
See \`config.log' for more details" "$LINENO" 5; }
 
16252
else
 
16253
        LIBTAGCOLL_CFLAGS=$pkg_cv_LIBTAGCOLL_CFLAGS
 
16254
        LIBTAGCOLL_LIBS=$pkg_cv_LIBTAGCOLL_LIBS
 
16255
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16256
$as_echo "yes" >&6; }
 
16257
 
 
16258
fi
 
16259
 
 
16260
 
 
16261
 
 
16262
 
 
16263
pkg_failed=no
 
16264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEPT" >&5
 
16265
$as_echo_n "checking for LIBEPT... " >&6; }
 
16266
 
 
16267
if test -n "$LIBEPT_CFLAGS"; then
 
16268
    pkg_cv_LIBEPT_CFLAGS="$LIBEPT_CFLAGS"
 
16269
 elif test -n "$PKG_CONFIG"; then
 
16270
    if test -n "$PKG_CONFIG" && \
 
16271
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libept\""; } >&5
 
16272
  ($PKG_CONFIG --exists --print-errors "libept") 2>&5
 
16273
  ac_status=$?
 
16274
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16275
  test $ac_status = 0; }; then
 
16276
  pkg_cv_LIBEPT_CFLAGS=`$PKG_CONFIG --cflags "libept" 2>/dev/null`
 
16277
                      test "x$?" != "x0" && pkg_failed=yes
 
16278
else
 
16279
  pkg_failed=yes
 
16280
fi
 
16281
 else
 
16282
    pkg_failed=untried
 
16283
fi
 
16284
if test -n "$LIBEPT_LIBS"; then
 
16285
    pkg_cv_LIBEPT_LIBS="$LIBEPT_LIBS"
 
16286
 elif test -n "$PKG_CONFIG"; then
 
16287
    if test -n "$PKG_CONFIG" && \
 
16288
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libept\""; } >&5
 
16289
  ($PKG_CONFIG --exists --print-errors "libept") 2>&5
 
16290
  ac_status=$?
 
16291
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16292
  test $ac_status = 0; }; then
 
16293
  pkg_cv_LIBEPT_LIBS=`$PKG_CONFIG --libs "libept" 2>/dev/null`
 
16294
                      test "x$?" != "x0" && pkg_failed=yes
 
16295
else
 
16296
  pkg_failed=yes
 
16297
fi
 
16298
 else
 
16299
    pkg_failed=untried
 
16300
fi
 
16301
 
 
16302
 
 
16303
 
 
16304
if test $pkg_failed = yes; then
 
16305
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16306
$as_echo "no" >&6; }
 
16307
 
 
16308
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16309
        _pkg_short_errors_supported=yes
 
16310
else
 
16311
        _pkg_short_errors_supported=no
 
16312
fi
 
16313
        if test $_pkg_short_errors_supported = yes; then
 
16314
                LIBEPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libept" 2>&1`
 
16315
        else
 
16316
                LIBEPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libept" 2>&1`
 
16317
        fi
 
16318
        # Put the nasty error message in config.log where it belongs
 
16319
        echo "$LIBEPT_PKG_ERRORS" >&5
 
16320
 
 
16321
        as_fn_error $? "Package requirements (libept) were not met:
 
16322
 
 
16323
$LIBEPT_PKG_ERRORS
 
16324
 
 
16325
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16326
installed software in a non-standard prefix.
 
16327
 
 
16328
Alternatively, you may set the environment variables LIBEPT_CFLAGS
 
16329
and LIBEPT_LIBS to avoid the need to call pkg-config.
 
16330
See the pkg-config man page for more details." "$LINENO" 5
 
16331
elif test $pkg_failed = untried; then
 
16332
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16333
$as_echo "no" >&6; }
 
16334
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16335
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16336
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16337
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16338
path to pkg-config.
 
16339
 
 
16340
Alternatively, you may set the environment variables LIBEPT_CFLAGS
 
16341
and LIBEPT_LIBS to avoid the need to call pkg-config.
 
16342
See the pkg-config man page for more details.
 
16343
 
 
16344
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16345
See \`config.log' for more details" "$LINENO" 5; }
 
16346
else
 
16347
        LIBEPT_CFLAGS=$pkg_cv_LIBEPT_CFLAGS
 
16348
        LIBEPT_LIBS=$pkg_cv_LIBEPT_LIBS
 
16349
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16350
$as_echo "yes" >&6; }
 
16351
 
 
16352
fi
 
16353
 
 
16354
 
 
16355
 
 
16356
databasedir="$localstatedir/lib/$PACKAGE"
 
16357
 
 
16358
 
 
16359
pkgcachedir="$localstatedir/cache/$PACKAGE"
 
16360
 
 
16361
 
 
16362
confdir="$sysconfdir/$PACKAGE"
 
16363
 
 
16364
 
 
16365
bashcompdir="$sysconfdir/bash_completion.d"
 
16366
 
 
16367
 
 
16368
 
 
16369
# Extract the first word of "apt-get", so it can be a program name with args.
 
16370
set dummy apt-get; ac_word=$2
 
16371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16372
$as_echo_n "checking for $ac_word... " >&6; }
 
16373
if ${ac_cv_path_APTGET+:} false; then :
 
16374
  $as_echo_n "(cached) " >&6
 
16375
else
 
16376
  case $APTGET in
 
16377
  [\\/]* | ?:[\\/]*)
 
16378
  ac_cv_path_APTGET="$APTGET" # Let the user override the test with a path.
 
16379
  ;;
 
16380
  *)
 
16381
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16382
for as_dir in $PATH
 
16383
do
 
16384
  IFS=$as_save_IFS
 
16385
  test -z "$as_dir" && as_dir=.
 
16386
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16387
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16388
    ac_cv_path_APTGET="$as_dir/$ac_word$ac_exec_ext"
 
16389
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16390
    break 2
 
16391
  fi
 
16392
done
 
16393
  done
 
16394
IFS=$as_save_IFS
 
16395
 
 
16396
  test -z "$ac_cv_path_APTGET" && ac_cv_path_APTGET="/usr/bin/apt-get"
 
16397
  ;;
 
16398
esac
 
16399
fi
 
16400
APTGET=$ac_cv_path_APTGET
 
16401
if test -n "$APTGET"; then
 
16402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APTGET" >&5
 
16403
$as_echo "$APTGET" >&6; }
 
16404
else
 
16405
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16406
$as_echo "no" >&6; }
 
16407
fi
 
16408
 
 
16409
 
 
16410
 
 
16411
 
 
16412
cat >>confdefs.h <<_ACEOF
 
16413
#define APTGET "$APTGET"
 
16414
_ACEOF
 
16415
 
 
16416
 
 
16417
extra_warnings=""
 
16418
#extra_warnings="-W -Wsystem-headers -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization"
 
16419
CXXFLAGS="$extra_warnings $CXXFLAGS"
 
16420
 
 
16421
ac_config_files="$ac_config_files Makefile doc/Makefile"
 
16422
 
 
16423
cat >confcache <<\_ACEOF
 
16424
# This file is a shell script that caches the results of configure
 
16425
# tests run on this system so they can be shared between configure
 
16426
# scripts and configure runs, see configure's option --config-cache.
 
16427
# It is not useful on other systems.  If it contains results you don't
 
16428
# want to keep, you may remove or edit it.
 
16429
#
 
16430
# config.status only pays attention to the cache file if you give it
 
16431
# the --recheck option to rerun configure.
 
16432
#
 
16433
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
16434
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
16435
# following values.
 
16436
 
 
16437
_ACEOF
 
16438
 
 
16439
# The following way of writing the cache mishandles newlines in values,
 
16440
# but we know of no workaround that is simple, portable, and efficient.
 
16441
# So, we kill variables containing newlines.
 
16442
# Ultrix sh set writes to stderr and can't be redirected directly,
 
16443
# and sets the high bit in the cache file unless we assign to the vars.
 
16444
(
 
16445
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
16446
    eval ac_val=\$$ac_var
 
16447
    case $ac_val in #(
 
16448
    *${as_nl}*)
 
16449
      case $ac_var in #(
 
16450
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
16451
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
16452
      esac
 
16453
      case $ac_var in #(
 
16454
      _ | IFS | as_nl) ;; #(
 
16455
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
16456
      *) { eval $ac_var=; unset $ac_var;} ;;
 
16457
      esac ;;
 
16458
    esac
 
16459
  done
 
16460
 
 
16461
  (set) 2>&1 |
 
16462
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
16463
    *${as_nl}ac_space=\ *)
 
16464
      # `set' does not quote correctly, so add quotes: double-quote
 
16465
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
16466
      sed -n \
 
16467
        "s/'/'\\\\''/g;
 
16468
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
16469
      ;; #(
 
16470
    *)
 
16471
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
16472
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
16473
      ;;
 
16474
    esac |
 
16475
    sort
 
16476
) |
 
16477
  sed '
 
16478
     /^ac_cv_env_/b end
 
16479
     t clear
 
16480
     :clear
 
16481
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
16482
     t end
 
16483
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16484
     :end' >>confcache
 
16485
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
16486
  if test -w "$cache_file"; then
 
16487
    if test "x$cache_file" != "x/dev/null"; then
 
16488
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
16489
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
16490
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
16491
        cat confcache >"$cache_file"
 
16492
      else
 
16493
        case $cache_file in #(
 
16494
        */* | ?:*)
 
16495
          mv -f confcache "$cache_file"$$ &&
 
16496
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
16497
        *)
 
16498
          mv -f confcache "$cache_file" ;;
 
16499
        esac
 
16500
      fi
 
16501
    fi
 
16502
  else
 
16503
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
16504
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
16505
  fi
 
16506
fi
 
16507
rm -f confcache
 
16508
 
 
16509
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
16510
# Let make expand exec_prefix.
 
16511
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
16512
 
 
16513
DEFS=-DHAVE_CONFIG_H
 
16514
 
 
16515
ac_libobjs=
 
16516
ac_ltlibobjs=
 
16517
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
16518
  # 1. Remove the extension, and $U if already installed.
 
16519
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
16520
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
16521
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
16522
  #    will be set to the directory where LIBOBJS objects are built.
 
16523
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
16524
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
16525
done
 
16526
LIBOBJS=$ac_libobjs
 
16527
 
 
16528
LTLIBOBJS=$ac_ltlibobjs
 
16529
 
 
16530
 
 
16531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
16532
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
16533
   if test -n "$am_sleep_pid"; then
 
16534
     # Hide warnings about reused PIDs.
 
16535
     wait $am_sleep_pid 2>/dev/null
 
16536
   fi
 
16537
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
16538
$as_echo "done" >&6; }
 
16539
 if test -n "$EXEEXT"; then
 
16540
  am__EXEEXT_TRUE=
 
16541
  am__EXEEXT_FALSE='#'
 
16542
else
 
16543
  am__EXEEXT_TRUE='#'
 
16544
  am__EXEEXT_FALSE=
 
16545
fi
 
16546
 
 
16547
if test -z "${DO_DOCS_TRUE}" && test -z "${DO_DOCS_FALSE}"; then
 
16548
  as_fn_error $? "conditional \"DO_DOCS\" was never defined.
 
16549
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16550
fi
 
16551
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
16552
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
16553
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16554
fi
 
16555
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16556
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
16557
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16558
fi
 
16559
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16560
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
16561
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16562
fi
 
16563
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16564
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
16565
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16566
fi
 
16567
 
 
16568
: "${CONFIG_STATUS=./config.status}"
 
16569
ac_write_fail=0
 
16570
ac_clean_files_save=$ac_clean_files
 
16571
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
16573
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16574
as_write_fail=0
 
16575
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
16576
#! $SHELL
 
16577
# Generated by $as_me.
 
16578
# Run this file to recreate the current configuration.
 
16579
# Compiler output produced by configure, useful for debugging
 
16580
# configure, is in config.log if it exists.
 
16581
 
 
16582
debug=false
 
16583
ac_cs_recheck=false
 
16584
ac_cs_silent=false
 
16585
 
 
16586
SHELL=\${CONFIG_SHELL-$SHELL}
 
16587
export SHELL
 
16588
_ASEOF
 
16589
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
16590
## -------------------- ##
 
16591
## M4sh Initialization. ##
 
16592
## -------------------- ##
 
16593
 
 
16594
# Be more Bourne compatible
 
16595
DUALCASE=1; export DUALCASE # for MKS sh
 
16596
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
16597
  emulate sh
 
16598
  NULLCMD=:
 
16599
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
16600
  # is contrary to our usage.  Disable this feature.
 
16601
  alias -g '${1+"$@"}'='"$@"'
 
16602
  setopt NO_GLOB_SUBST
 
16603
else
 
16604
  case `(set -o) 2>/dev/null` in #(
 
16605
  *posix*) :
 
16606
    set -o posix ;; #(
 
16607
  *) :
 
16608
     ;;
 
16609
esac
 
16610
fi
 
16611
 
 
16612
 
 
16613
as_nl='
 
16614
'
 
16615
export as_nl
 
16616
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
16617
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
16618
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
16619
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
16620
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
16621
# but without wasting forks for bash or zsh.
 
16622
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
16623
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16624
  as_echo='print -r --'
 
16625
  as_echo_n='print -rn --'
 
16626
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16627
  as_echo='printf %s\n'
 
16628
  as_echo_n='printf %s'
 
16629
else
 
16630
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
16631
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
16632
    as_echo_n='/usr/ucb/echo -n'
 
16633
  else
 
16634
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
16635
    as_echo_n_body='eval
 
16636
      arg=$1;
 
16637
      case $arg in #(
 
16638
      *"$as_nl"*)
 
16639
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
16640
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
16641
      esac;
 
16642
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
16643
    '
 
16644
    export as_echo_n_body
 
16645
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
16646
  fi
 
16647
  export as_echo_body
 
16648
  as_echo='sh -c $as_echo_body as_echo'
 
16649
fi
 
16650
 
 
16651
# The user is always right.
 
16652
if test "${PATH_SEPARATOR+set}" != set; then
 
16653
  PATH_SEPARATOR=:
 
16654
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
16655
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
16656
      PATH_SEPARATOR=';'
 
16657
  }
 
16658
fi
 
16659
 
 
16660
 
 
16661
# IFS
 
16662
# We need space, tab and new line, in precisely that order.  Quoting is
 
16663
# there to prevent editors from complaining about space-tab.
 
16664
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
16665
# splitting by setting IFS to empty value.)
 
16666
IFS=" ""        $as_nl"
 
16667
 
 
16668
# Find who we are.  Look in the path if we contain no directory separator.
 
16669
as_myself=
 
16670
case $0 in #((
 
16671
  *[\\/]* ) as_myself=$0 ;;
 
16672
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16673
for as_dir in $PATH
 
16674
do
 
16675
  IFS=$as_save_IFS
 
16676
  test -z "$as_dir" && as_dir=.
 
16677
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16678
  done
 
16679
IFS=$as_save_IFS
 
16680
 
 
16681
     ;;
 
16682
esac
 
16683
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
16684
# in which case we are not to be found in the path.
 
16685
if test "x$as_myself" = x; then
 
16686
  as_myself=$0
 
16687
fi
 
16688
if test ! -f "$as_myself"; then
 
16689
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
16690
  exit 1
 
16691
fi
 
16692
 
 
16693
# Unset variables that we do not need and which cause bugs (e.g. in
 
16694
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
16695
# suppresses any "Segmentation fault" message there.  '((' could
 
16696
# trigger a bug in pdksh 5.2.14.
 
16697
for as_var in BASH_ENV ENV MAIL MAILPATH
 
16698
do eval test x\${$as_var+set} = xset \
 
16699
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
16700
done
 
16701
PS1='$ '
 
16702
PS2='> '
 
16703
PS4='+ '
 
16704
 
 
16705
# NLS nuisances.
 
16706
LC_ALL=C
 
16707
export LC_ALL
 
16708
LANGUAGE=C
 
16709
export LANGUAGE
 
16710
 
 
16711
# CDPATH.
 
16712
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16713
 
 
16714
 
 
16715
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
16716
# ----------------------------------------
 
16717
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
16718
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
16719
# script with STATUS, using 1 if that was 0.
 
16720
as_fn_error ()
 
16721
{
 
16722
  as_status=$1; test $as_status -eq 0 && as_status=1
 
16723
  if test "$4"; then
 
16724
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
16725
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
16726
  fi
 
16727
  $as_echo "$as_me: error: $2" >&2
 
16728
  as_fn_exit $as_status
 
16729
} # as_fn_error
 
16730
 
 
16731
 
 
16732
# as_fn_set_status STATUS
 
16733
# -----------------------
 
16734
# Set $? to STATUS, without forking.
 
16735
as_fn_set_status ()
 
16736
{
 
16737
  return $1
 
16738
} # as_fn_set_status
 
16739
 
 
16740
# as_fn_exit STATUS
 
16741
# -----------------
 
16742
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
16743
as_fn_exit ()
 
16744
{
 
16745
  set +e
 
16746
  as_fn_set_status $1
 
16747
  exit $1
 
16748
} # as_fn_exit
 
16749
 
 
16750
# as_fn_unset VAR
 
16751
# ---------------
 
16752
# Portably unset VAR.
 
16753
as_fn_unset ()
 
16754
{
 
16755
  { eval $1=; unset $1;}
 
16756
}
 
16757
as_unset=as_fn_unset
 
16758
# as_fn_append VAR VALUE
 
16759
# ----------------------
 
16760
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
16761
# advantage of any shell optimizations that allow amortized linear growth over
 
16762
# repeated appends, instead of the typical quadratic growth present in naive
 
16763
# implementations.
 
16764
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
16765
  eval 'as_fn_append ()
 
16766
  {
 
16767
    eval $1+=\$2
 
16768
  }'
 
16769
else
 
16770
  as_fn_append ()
 
16771
  {
 
16772
    eval $1=\$$1\$2
 
16773
  }
 
16774
fi # as_fn_append
 
16775
 
 
16776
# as_fn_arith ARG...
 
16777
# ------------------
 
16778
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
16779
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
16780
# must be portable across $(()) and expr.
 
16781
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
16782
  eval 'as_fn_arith ()
 
16783
  {
 
16784
    as_val=$(( $* ))
 
16785
  }'
 
16786
else
 
16787
  as_fn_arith ()
 
16788
  {
 
16789
    as_val=`expr "$@" || test $? -eq 1`
 
16790
  }
 
16791
fi # as_fn_arith
 
16792
 
 
16793
 
 
16794
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
16795
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
16796
  as_expr=expr
 
16797
else
 
16798
  as_expr=false
 
16799
fi
 
16800
 
 
16801
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
16802
  as_basename=basename
 
16803
else
 
16804
  as_basename=false
 
16805
fi
 
16806
 
 
16807
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
16808
  as_dirname=dirname
 
16809
else
 
16810
  as_dirname=false
 
16811
fi
 
16812
 
 
16813
as_me=`$as_basename -- "$0" ||
 
16814
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
16815
         X"$0" : 'X\(//\)$' \| \
 
16816
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
16817
$as_echo X/"$0" |
 
16818
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
16819
            s//\1/
 
16820
            q
 
16821
          }
 
16822
          /^X\/\(\/\/\)$/{
 
16823
            s//\1/
 
16824
            q
 
16825
          }
 
16826
          /^X\/\(\/\).*/{
 
16827
            s//\1/
 
16828
            q
 
16829
          }
 
16830
          s/.*/./; q'`
 
16831
 
 
16832
# Avoid depending upon Character Ranges.
 
16833
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
16834
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
16835
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
16836
as_cr_digits='0123456789'
 
16837
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16838
 
 
16839
ECHO_C= ECHO_N= ECHO_T=
 
16840
case `echo -n x` in #(((((
 
16841
-n*)
 
16842
  case `echo 'xy\c'` in
 
16843
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
16844
  xy)  ECHO_C='\c';;
 
16845
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
16846
       ECHO_T=' ';;
 
16847
  esac;;
 
16848
*)
 
16849
  ECHO_N='-n';;
 
16850
esac
 
16851
 
 
16852
rm -f conf$$ conf$$.exe conf$$.file
 
16853
if test -d conf$$.dir; then
 
16854
  rm -f conf$$.dir/conf$$.file
 
16855
else
 
16856
  rm -f conf$$.dir
 
16857
  mkdir conf$$.dir 2>/dev/null
 
16858
fi
 
16859
if (echo >conf$$.file) 2>/dev/null; then
 
16860
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16861
    as_ln_s='ln -s'
 
16862
    # ... but there are two gotchas:
 
16863
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
16864
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
16865
    # In both cases, we have to default to `cp -pR'.
 
16866
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
16867
      as_ln_s='cp -pR'
 
16868
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
16869
    as_ln_s=ln
 
16870
  else
 
16871
    as_ln_s='cp -pR'
 
16872
  fi
 
16873
else
 
16874
  as_ln_s='cp -pR'
 
16875
fi
 
16876
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
16877
rmdir conf$$.dir 2>/dev/null
 
16878
 
 
16879
 
 
16880
# as_fn_mkdir_p
 
16881
# -------------
 
16882
# Create "$as_dir" as a directory, including parents if necessary.
 
16883
as_fn_mkdir_p ()
 
16884
{
 
16885
 
 
16886
  case $as_dir in #(
 
16887
  -*) as_dir=./$as_dir;;
 
16888
  esac
 
16889
  test -d "$as_dir" || eval $as_mkdir_p || {
 
16890
    as_dirs=
 
16891
    while :; do
 
16892
      case $as_dir in #(
 
16893
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
16894
      *) as_qdir=$as_dir;;
 
16895
      esac
 
16896
      as_dirs="'$as_qdir' $as_dirs"
 
16897
      as_dir=`$as_dirname -- "$as_dir" ||
 
16898
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16899
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16900
         X"$as_dir" : 'X\(//\)$' \| \
 
16901
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
16902
$as_echo X"$as_dir" |
 
16903
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16904
            s//\1/
 
16905
            q
 
16906
          }
 
16907
          /^X\(\/\/\)[^/].*/{
 
16908
            s//\1/
 
16909
            q
 
16910
          }
 
16911
          /^X\(\/\/\)$/{
 
16912
            s//\1/
 
16913
            q
 
16914
          }
 
16915
          /^X\(\/\).*/{
 
16916
            s//\1/
 
16917
            q
 
16918
          }
 
16919
          s/.*/./; q'`
 
16920
      test -d "$as_dir" && break
 
16921
    done
 
16922
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
16923
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
16924
 
 
16925
 
 
16926
} # as_fn_mkdir_p
 
16927
if mkdir -p . 2>/dev/null; then
 
16928
  as_mkdir_p='mkdir -p "$as_dir"'
 
16929
else
 
16930
  test -d ./-p && rmdir ./-p
 
16931
  as_mkdir_p=false
 
16932
fi
 
16933
 
 
16934
 
 
16935
# as_fn_executable_p FILE
 
16936
# -----------------------
 
16937
# Test if FILE is an executable regular file.
 
16938
as_fn_executable_p ()
 
16939
{
 
16940
  test -f "$1" && test -x "$1"
 
16941
} # as_fn_executable_p
 
16942
as_test_x='test -x'
 
16943
as_executable_p=as_fn_executable_p
 
16944
 
 
16945
# Sed expression to map a string onto a valid CPP name.
 
16946
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
16947
 
 
16948
# Sed expression to map a string onto a valid variable name.
 
16949
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
16950
 
 
16951
 
 
16952
exec 6>&1
 
16953
## ----------------------------------- ##
 
16954
## Main body of $CONFIG_STATUS script. ##
 
16955
## ----------------------------------- ##
 
16956
_ASEOF
 
16957
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
16958
 
 
16959
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16960
# Save the log message, to keep $0 and so on meaningful, and to
 
16961
# report actual input values of CONFIG_FILES etc. instead of their
 
16962
# values after options handling.
 
16963
ac_log="
 
16964
This file was extended by debtags $as_me 1.12.2, which was
 
16965
generated by GNU Autoconf 2.69.  Invocation command line was
 
16966
 
 
16967
  CONFIG_FILES    = $CONFIG_FILES
 
16968
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
16969
  CONFIG_LINKS    = $CONFIG_LINKS
 
16970
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
16971
  $ $0 $@
 
16972
 
 
16973
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
16974
"
 
16975
 
 
16976
_ACEOF
 
16977
 
 
16978
case $ac_config_files in *"
 
16979
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
16980
esac
 
16981
 
 
16982
case $ac_config_headers in *"
 
16983
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
16984
esac
 
16985
 
 
16986
 
 
16987
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16988
# Files that config.status was made for.
 
16989
config_files="$ac_config_files"
 
16990
config_headers="$ac_config_headers"
 
16991
config_commands="$ac_config_commands"
 
16992
 
 
16993
_ACEOF
 
16994
 
 
16995
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16996
ac_cs_usage="\
 
16997
\`$as_me' instantiates files and other configuration actions
 
16998
from templates according to the current configuration.  Unless the files
 
16999
and actions are specified as TAGs, all are instantiated by default.
 
17000
 
 
17001
Usage: $0 [OPTION]... [TAG]...
 
17002
 
 
17003
  -h, --help       print this help, then exit
 
17004
  -V, --version    print version number and configuration settings, then exit
 
17005
      --config     print configuration, then exit
 
17006
  -q, --quiet, --silent
 
17007
                   do not print progress messages
 
17008
  -d, --debug      don't remove temporary files
 
17009
      --recheck    update $as_me by reconfiguring in the same conditions
 
17010
      --file=FILE[:TEMPLATE]
 
17011
                   instantiate the configuration file FILE
 
17012
      --header=FILE[:TEMPLATE]
 
17013
                   instantiate the configuration header FILE
 
17014
 
 
17015
Configuration files:
 
17016
$config_files
 
17017
 
 
17018
Configuration headers:
 
17019
$config_headers
 
17020
 
 
17021
Configuration commands:
 
17022
$config_commands
 
17023
 
 
17024
Report bugs to <enrico@debian.org>."
 
17025
 
 
17026
_ACEOF
 
17027
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17028
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
17029
ac_cs_version="\\
 
17030
debtags config.status 1.12.2
 
17031
configured by $0, generated by GNU Autoconf 2.69,
 
17032
  with options \\"\$ac_cs_config\\"
 
17033
 
 
17034
Copyright (C) 2012 Free Software Foundation, Inc.
 
17035
This config.status script is free software; the Free Software Foundation
 
17036
gives unlimited permission to copy, distribute and modify it."
 
17037
 
 
17038
ac_pwd='$ac_pwd'
 
17039
srcdir='$srcdir'
 
17040
INSTALL='$INSTALL'
 
17041
MKDIR_P='$MKDIR_P'
 
17042
AWK='$AWK'
 
17043
test -n "\$AWK" || AWK=awk
 
17044
_ACEOF
 
17045
 
 
17046
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17047
# The default lists apply if the user does not specify any file.
 
17048
ac_need_defaults=:
 
17049
while test $# != 0
 
17050
do
 
17051
  case $1 in
 
17052
  --*=?*)
 
17053
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
17054
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
17055
    ac_shift=:
 
17056
    ;;
 
17057
  --*=)
 
17058
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
17059
    ac_optarg=
 
17060
    ac_shift=:
 
17061
    ;;
 
17062
  *)
 
17063
    ac_option=$1
 
17064
    ac_optarg=$2
 
17065
    ac_shift=shift
 
17066
    ;;
 
17067
  esac
 
17068
 
 
17069
  case $ac_option in
 
17070
  # Handling of the options.
 
17071
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
17072
    ac_cs_recheck=: ;;
 
17073
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
17074
    $as_echo "$ac_cs_version"; exit ;;
 
17075
  --config | --confi | --conf | --con | --co | --c )
 
17076
    $as_echo "$ac_cs_config"; exit ;;
 
17077
  --debug | --debu | --deb | --de | --d | -d )
 
17078
    debug=: ;;
 
17079
  --file | --fil | --fi | --f )
 
17080
    $ac_shift
 
17081
    case $ac_optarg in
 
17082
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
17083
    '') as_fn_error $? "missing file argument" ;;
 
17084
    esac
 
17085
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
17086
    ac_need_defaults=false;;
 
17087
  --header | --heade | --head | --hea )
 
17088
    $ac_shift
 
17089
    case $ac_optarg in
 
17090
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
17091
    esac
 
17092
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
17093
    ac_need_defaults=false;;
 
17094
  --he | --h)
 
17095
    # Conflict between --help and --header
 
17096
    as_fn_error $? "ambiguous option: \`$1'
 
17097
Try \`$0 --help' for more information.";;
 
17098
  --help | --hel | -h )
 
17099
    $as_echo "$ac_cs_usage"; exit ;;
 
17100
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
17101
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
17102
    ac_cs_silent=: ;;
 
17103
 
 
17104
  # This is an error.
 
17105
  -*) as_fn_error $? "unrecognized option: \`$1'
 
17106
Try \`$0 --help' for more information." ;;
 
17107
 
 
17108
  *) as_fn_append ac_config_targets " $1"
 
17109
     ac_need_defaults=false ;;
 
17110
 
 
17111
  esac
 
17112
  shift
 
17113
done
 
17114
 
 
17115
ac_configure_extra_args=
 
17116
 
 
17117
if $ac_cs_silent; then
 
17118
  exec 6>/dev/null
 
17119
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
17120
fi
 
17121
 
 
17122
_ACEOF
 
17123
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17124
if \$ac_cs_recheck; then
 
17125
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
17126
  shift
 
17127
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
17128
  CONFIG_SHELL='$SHELL'
 
17129
  export CONFIG_SHELL
 
17130
  exec "\$@"
 
17131
fi
 
17132
 
 
17133
_ACEOF
 
17134
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17135
exec 5>>config.log
 
17136
{
 
17137
  echo
 
17138
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
17139
## Running $as_me. ##
 
17140
_ASBOX
 
17141
  $as_echo "$ac_log"
 
17142
} >&5
 
17143
 
 
17144
_ACEOF
 
17145
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17146
#
 
17147
# INIT-COMMANDS
 
17148
#
 
17149
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
17150
 
 
17151
 
 
17152
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
17153
# if CDPATH is set.
 
17154
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
17155
 
 
17156
sed_quote_subst='$sed_quote_subst'
 
17157
double_quote_subst='$double_quote_subst'
 
17158
delay_variable_subst='$delay_variable_subst'
 
17159
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
17160
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
17161
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
17162
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
17163
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
17164
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
17165
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
17166
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
17167
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
17168
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
17169
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
17170
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
17171
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
17172
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
17173
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
17174
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
17175
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
17176
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
17177
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
17178
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
17179
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
17180
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
17181
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
17182
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
17183
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
17184
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
17185
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
17186
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
17187
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
17188
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
17189
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
17190
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
17191
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
17192
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
17193
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
17194
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
17195
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
17196
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
17197
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
17198
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
17199
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
17200
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
17201
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
17202
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
17203
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
17204
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17205
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17206
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
17207
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
17208
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
17209
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
17210
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
17211
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
17212
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
17213
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
17214
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
17215
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"`'
 
17216
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
17217
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
17218
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
17219
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
17220
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
17221
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
17222
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
17223
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
17224
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
17225
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
17226
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
17227
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
17228
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
17229
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
17230
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
17231
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
17232
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
17233
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
17234
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
17235
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
17236
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
17237
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17238
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17239
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
17240
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
17241
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
17242
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
17243
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
17244
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
17245
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
17246
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
17247
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
17248
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
17249
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17250
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
17251
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
17252
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
17253
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
17254
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
17255
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
17256
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
17257
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
17258
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
17259
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
17260
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
17261
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
17262
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
17263
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
17264
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
17265
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
17266
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
17267
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
17268
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
17269
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
17270
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
17271
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
17272
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
17273
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
17274
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
17275
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
17276
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17277
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17278
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
17279
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
17280
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
17281
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
17282
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
17283
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
17284
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
17285
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
17286
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
17287
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
17288
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
17289
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
17290
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
17291
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
17292
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
17293
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
17294
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
17295
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
17296
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17297
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17298
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17299
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
17300
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
17301
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17302
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
17303
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
17304
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
17305
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
17306
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
17307
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
17308
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17309
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17310
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
17311
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17312
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17313
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17314
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17315
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17316
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17317
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
17318
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17319
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17320
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17321
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
17322
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
17323
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
17324
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
17325
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
17326
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
17327
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
17328
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
17329
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
17330
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17331
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17332
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17333
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17334
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17335
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17336
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
17337
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
17338
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17339
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17340
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17341
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17342
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
17343
 
 
17344
LTCC='$LTCC'
 
17345
LTCFLAGS='$LTCFLAGS'
 
17346
compiler='$compiler_DEFAULT'
 
17347
 
 
17348
# A function that is used when there is no print builtin or printf.
 
17349
func_fallback_echo ()
 
17350
{
 
17351
  eval 'cat <<_LTECHO_EOF
 
17352
\$1
 
17353
_LTECHO_EOF'
 
17354
}
 
17355
 
 
17356
# Quote evaled strings.
 
17357
for var in SHELL \
 
17358
ECHO \
 
17359
PATH_SEPARATOR \
 
17360
SED \
 
17361
GREP \
 
17362
EGREP \
 
17363
FGREP \
 
17364
LD \
 
17365
NM \
 
17366
LN_S \
 
17367
lt_SP2NL \
 
17368
lt_NL2SP \
 
17369
reload_flag \
 
17370
OBJDUMP \
 
17371
deplibs_check_method \
 
17372
file_magic_cmd \
 
17373
file_magic_glob \
 
17374
want_nocaseglob \
 
17375
DLLTOOL \
 
17376
sharedlib_from_linklib_cmd \
 
17377
AR \
 
17378
AR_FLAGS \
 
17379
archiver_list_spec \
 
17380
STRIP \
 
17381
RANLIB \
 
17382
CC \
 
17383
CFLAGS \
 
17384
compiler \
 
17385
lt_cv_sys_global_symbol_pipe \
 
17386
lt_cv_sys_global_symbol_to_cdecl \
 
17387
lt_cv_sys_global_symbol_to_c_name_address \
 
17388
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
17389
nm_file_list_spec \
 
17390
lt_prog_compiler_no_builtin_flag \
 
17391
lt_prog_compiler_pic \
 
17392
lt_prog_compiler_wl \
 
17393
lt_prog_compiler_static \
 
17394
lt_cv_prog_compiler_c_o \
 
17395
need_locks \
 
17396
MANIFEST_TOOL \
 
17397
DSYMUTIL \
 
17398
NMEDIT \
 
17399
LIPO \
 
17400
OTOOL \
 
17401
OTOOL64 \
 
17402
shrext_cmds \
 
17403
export_dynamic_flag_spec \
 
17404
whole_archive_flag_spec \
 
17405
compiler_needs_object \
 
17406
with_gnu_ld \
 
17407
allow_undefined_flag \
 
17408
no_undefined_flag \
 
17409
hardcode_libdir_flag_spec \
 
17410
hardcode_libdir_separator \
 
17411
exclude_expsyms \
 
17412
include_expsyms \
 
17413
file_list_spec \
 
17414
variables_saved_for_relink \
 
17415
libname_spec \
 
17416
library_names_spec \
 
17417
soname_spec \
 
17418
install_override_mode \
 
17419
finish_eval \
 
17420
old_striplib \
 
17421
striplib \
 
17422
compiler_lib_search_dirs \
 
17423
predep_objects \
 
17424
postdep_objects \
 
17425
predeps \
 
17426
postdeps \
 
17427
compiler_lib_search_path \
 
17428
LD_CXX \
 
17429
reload_flag_CXX \
 
17430
compiler_CXX \
 
17431
lt_prog_compiler_no_builtin_flag_CXX \
 
17432
lt_prog_compiler_pic_CXX \
 
17433
lt_prog_compiler_wl_CXX \
 
17434
lt_prog_compiler_static_CXX \
 
17435
lt_cv_prog_compiler_c_o_CXX \
 
17436
export_dynamic_flag_spec_CXX \
 
17437
whole_archive_flag_spec_CXX \
 
17438
compiler_needs_object_CXX \
 
17439
with_gnu_ld_CXX \
 
17440
allow_undefined_flag_CXX \
 
17441
no_undefined_flag_CXX \
 
17442
hardcode_libdir_flag_spec_CXX \
 
17443
hardcode_libdir_separator_CXX \
 
17444
exclude_expsyms_CXX \
 
17445
include_expsyms_CXX \
 
17446
file_list_spec_CXX \
 
17447
compiler_lib_search_dirs_CXX \
 
17448
predep_objects_CXX \
 
17449
postdep_objects_CXX \
 
17450
predeps_CXX \
 
17451
postdeps_CXX \
 
17452
compiler_lib_search_path_CXX; do
 
17453
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17454
    *[\\\\\\\`\\"\\\$]*)
 
17455
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
17456
      ;;
 
17457
    *)
 
17458
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17459
      ;;
 
17460
    esac
 
17461
done
 
17462
 
 
17463
# Double-quote double-evaled strings.
 
17464
for var in reload_cmds \
 
17465
old_postinstall_cmds \
 
17466
old_postuninstall_cmds \
 
17467
old_archive_cmds \
 
17468
extract_expsyms_cmds \
 
17469
old_archive_from_new_cmds \
 
17470
old_archive_from_expsyms_cmds \
 
17471
archive_cmds \
 
17472
archive_expsym_cmds \
 
17473
module_cmds \
 
17474
module_expsym_cmds \
 
17475
export_symbols_cmds \
 
17476
prelink_cmds \
 
17477
postlink_cmds \
 
17478
postinstall_cmds \
 
17479
postuninstall_cmds \
 
17480
finish_cmds \
 
17481
sys_lib_search_path_spec \
 
17482
sys_lib_dlsearch_path_spec \
 
17483
reload_cmds_CXX \
 
17484
old_archive_cmds_CXX \
 
17485
old_archive_from_new_cmds_CXX \
 
17486
old_archive_from_expsyms_cmds_CXX \
 
17487
archive_cmds_CXX \
 
17488
archive_expsym_cmds_CXX \
 
17489
module_cmds_CXX \
 
17490
module_expsym_cmds_CXX \
 
17491
export_symbols_cmds_CXX \
 
17492
prelink_cmds_CXX \
 
17493
postlink_cmds_CXX; do
 
17494
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17495
    *[\\\\\\\`\\"\\\$]*)
 
17496
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
17497
      ;;
 
17498
    *)
 
17499
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17500
      ;;
 
17501
    esac
 
17502
done
 
17503
 
 
17504
ac_aux_dir='$ac_aux_dir'
 
17505
xsi_shell='$xsi_shell'
 
17506
lt_shell_append='$lt_shell_append'
 
17507
 
 
17508
# See if we are running on zsh, and set the options which allow our
 
17509
# commands through without removal of \ escapes INIT.
 
17510
if test -n "\${ZSH_VERSION+set}" ; then
 
17511
   setopt NO_GLOB_SUBST
 
17512
fi
 
17513
 
 
17514
 
 
17515
    PACKAGE='$PACKAGE'
 
17516
    VERSION='$VERSION'
 
17517
    TIMESTAMP='$TIMESTAMP'
 
17518
    RM='$RM'
 
17519
    ofile='$ofile'
 
17520
 
 
17521
 
 
17522
 
 
17523
 
 
17524
 
 
17525
 
 
17526
_ACEOF
 
17527
 
 
17528
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17529
 
 
17530
# Handling of arguments.
 
17531
for ac_config_target in $ac_config_targets
 
17532
do
 
17533
  case $ac_config_target in
 
17534
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
17535
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
17536
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
17537
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17538
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
17539
 
 
17540
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
17541
  esac
 
17542
done
 
17543
 
 
17544
 
 
17545
# If the user did not use the arguments to specify the items to instantiate,
 
17546
# then the envvar interface is used.  Set only those that are not.
 
17547
# We use the long form for the default assignment because of an extremely
 
17548
# bizarre bug on SunOS 4.1.3.
 
17549
if $ac_need_defaults; then
 
17550
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
17551
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
17552
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
17553
fi
 
17554
 
 
17555
# Have a temporary directory for convenience.  Make it in the build tree
 
17556
# simply because there is no reason against having it here, and in addition,
 
17557
# creating and moving files from /tmp can sometimes cause problems.
 
17558
# Hook for its removal unless debugging.
 
17559
# Note that there is a small window in which the directory will not be cleaned:
 
17560
# after its creation but before its name has been assigned to `$tmp'.
 
17561
$debug ||
 
17562
{
 
17563
  tmp= ac_tmp=
 
17564
  trap 'exit_status=$?
 
17565
  : "${ac_tmp:=$tmp}"
 
17566
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
17567
' 0
 
17568
  trap 'as_fn_exit 1' 1 2 13 15
 
17569
}
 
17570
# Create a (secure) tmp directory for tmp files.
 
17571
 
 
17572
{
 
17573
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
17574
  test -d "$tmp"
 
17575
}  ||
 
17576
{
 
17577
  tmp=./conf$$-$RANDOM
 
17578
  (umask 077 && mkdir "$tmp")
 
17579
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
17580
ac_tmp=$tmp
 
17581
 
 
17582
# Set up the scripts for CONFIG_FILES section.
 
17583
# No need to generate them if there are no CONFIG_FILES.
 
17584
# This happens for instance with `./config.status config.h'.
 
17585
if test -n "$CONFIG_FILES"; then
 
17586
 
 
17587
 
 
17588
ac_cr=`echo X | tr X '\015'`
 
17589
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
17590
# But we know of no other shell where ac_cr would be empty at this
 
17591
# point, so we can use a bashism as a fallback.
 
17592
if test "x$ac_cr" = x; then
 
17593
  eval ac_cr=\$\'\\r\'
 
17594
fi
 
17595
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
17596
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
17597
  ac_cs_awk_cr='\\r'
 
17598
else
 
17599
  ac_cs_awk_cr=$ac_cr
 
17600
fi
 
17601
 
 
17602
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
17603
_ACEOF
 
17604
 
 
17605
 
 
17606
{
 
17607
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
17608
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
17609
  echo "_ACEOF"
 
17610
} >conf$$subs.sh ||
 
17611
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17612
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
17613
ac_delim='%!_!# '
 
17614
for ac_last_try in false false false false false :; do
 
17615
  . ./conf$$subs.sh ||
 
17616
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17617
 
 
17618
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
17619
  if test $ac_delim_n = $ac_delim_num; then
 
17620
    break
 
17621
  elif $ac_last_try; then
 
17622
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17623
  else
 
17624
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17625
  fi
 
17626
done
 
17627
rm -f conf$$subs.sh
 
17628
 
 
17629
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17630
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
17631
_ACEOF
 
17632
sed -n '
 
17633
h
 
17634
s/^/S["/; s/!.*/"]=/
 
17635
p
 
17636
g
 
17637
s/^[^!]*!//
 
17638
:repl
 
17639
t repl
 
17640
s/'"$ac_delim"'$//
 
17641
t delim
 
17642
:nl
 
17643
h
 
17644
s/\(.\{148\}\)..*/\1/
 
17645
t more1
 
17646
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
17647
p
 
17648
n
 
17649
b repl
 
17650
:more1
 
17651
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17652
p
 
17653
g
 
17654
s/.\{148\}//
 
17655
t nl
 
17656
:delim
 
17657
h
 
17658
s/\(.\{148\}\)..*/\1/
 
17659
t more2
 
17660
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
17661
p
 
17662
b
 
17663
:more2
 
17664
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17665
p
 
17666
g
 
17667
s/.\{148\}//
 
17668
t delim
 
17669
' <conf$$subs.awk | sed '
 
17670
/^[^""]/{
 
17671
  N
 
17672
  s/\n//
 
17673
}
 
17674
' >>$CONFIG_STATUS || ac_write_fail=1
 
17675
rm -f conf$$subs.awk
 
17676
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17677
_ACAWK
 
17678
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
17679
  for (key in S) S_is_set[key] = 1
 
17680
  FS = ""
 
17681
 
 
17682
}
 
17683
{
 
17684
  line = $ 0
 
17685
  nfields = split(line, field, "@")
 
17686
  substed = 0
 
17687
  len = length(field[1])
 
17688
  for (i = 2; i < nfields; i++) {
 
17689
    key = field[i]
 
17690
    keylen = length(key)
 
17691
    if (S_is_set[key]) {
 
17692
      value = S[key]
 
17693
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
17694
      len += length(value) + length(field[++i])
 
17695
      substed = 1
 
17696
    } else
 
17697
      len += 1 + keylen
 
17698
  }
 
17699
 
 
17700
  print line
 
17701
}
 
17702
 
 
17703
_ACAWK
 
17704
_ACEOF
 
17705
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17706
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
17707
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
17708
else
 
17709
  cat
 
17710
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
17711
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
17712
_ACEOF
 
17713
 
 
17714
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
17715
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
17716
# trailing colons and then remove the whole line if VPATH becomes empty
 
17717
# (actually we leave an empty line to preserve line numbers).
 
17718
if test "x$srcdir" = x.; then
 
17719
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
17720
h
 
17721
s///
 
17722
s/^/:/
 
17723
s/[      ]*$/:/
 
17724
s/:\$(srcdir):/:/g
 
17725
s/:\${srcdir}:/:/g
 
17726
s/:@srcdir@:/:/g
 
17727
s/^:*//
 
17728
s/:*$//
 
17729
x
 
17730
s/\(=[   ]*\).*/\1/
 
17731
G
 
17732
s/\n//
 
17733
s/^[^=]*=[       ]*$//
 
17734
}'
 
17735
fi
 
17736
 
 
17737
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17738
fi # test -n "$CONFIG_FILES"
 
17739
 
 
17740
# Set up the scripts for CONFIG_HEADERS section.
 
17741
# No need to generate them if there are no CONFIG_HEADERS.
 
17742
# This happens for instance with `./config.status Makefile'.
 
17743
if test -n "$CONFIG_HEADERS"; then
 
17744
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
17745
BEGIN {
 
17746
_ACEOF
 
17747
 
 
17748
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
17749
# here-document in config.status, that substitutes the proper values into
 
17750
# config.h.in to produce config.h.
 
17751
 
 
17752
# Create a delimiter string that does not exist in confdefs.h, to ease
 
17753
# handling of long lines.
 
17754
ac_delim='%!_!# '
 
17755
for ac_last_try in false false :; do
 
17756
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
17757
  if test -z "$ac_tt"; then
 
17758
    break
 
17759
  elif $ac_last_try; then
 
17760
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
17761
  else
 
17762
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17763
  fi
 
17764
done
 
17765
 
 
17766
# For the awk script, D is an array of macro values keyed by name,
 
17767
# likewise P contains macro parameters if any.  Preserve backslash
 
17768
# newline sequences.
 
17769
 
 
17770
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
17771
sed -n '
 
17772
s/.\{148\}/&'"$ac_delim"'/g
 
17773
t rset
 
17774
:rset
 
17775
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
17776
t def
 
17777
d
 
17778
:def
 
17779
s/\\$//
 
17780
t bsnl
 
17781
s/["\\]/\\&/g
 
17782
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17783
D["\1"]=" \3"/p
 
17784
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
17785
d
 
17786
:bsnl
 
17787
s/["\\]/\\&/g
 
17788
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17789
D["\1"]=" \3\\\\\\n"\\/p
 
17790
t cont
 
17791
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
17792
t cont
 
17793
d
 
17794
:cont
 
17795
n
 
17796
s/.\{148\}/&'"$ac_delim"'/g
 
17797
t clear
 
17798
:clear
 
17799
s/\\$//
 
17800
t bsnlc
 
17801
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
17802
d
 
17803
:bsnlc
 
17804
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
17805
b cont
 
17806
' <confdefs.h | sed '
 
17807
s/'"$ac_delim"'/"\\\
 
17808
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
17809
 
 
17810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17811
  for (key in D) D_is_set[key] = 1
 
17812
  FS = ""
 
17813
}
 
17814
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
17815
  line = \$ 0
 
17816
  split(line, arg, " ")
 
17817
  if (arg[1] == "#") {
 
17818
    defundef = arg[2]
 
17819
    mac1 = arg[3]
 
17820
  } else {
 
17821
    defundef = substr(arg[1], 2)
 
17822
    mac1 = arg[2]
 
17823
  }
 
17824
  split(mac1, mac2, "(") #)
 
17825
  macro = mac2[1]
 
17826
  prefix = substr(line, 1, index(line, defundef) - 1)
 
17827
  if (D_is_set[macro]) {
 
17828
    # Preserve the white space surrounding the "#".
 
17829
    print prefix "define", macro P[macro] D[macro]
 
17830
    next
 
17831
  } else {
 
17832
    # Replace #undef with comments.  This is necessary, for example,
 
17833
    # in the case of _POSIX_SOURCE, which is predefined and required
 
17834
    # on some systems where configure will not decide to define it.
 
17835
    if (defundef == "undef") {
 
17836
      print "/*", prefix defundef, macro, "*/"
 
17837
      next
 
17838
    }
 
17839
  }
 
17840
}
 
17841
{ print }
 
17842
_ACAWK
 
17843
_ACEOF
 
17844
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17845
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
17846
fi # test -n "$CONFIG_HEADERS"
 
17847
 
 
17848
 
 
17849
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
17850
shift
 
17851
for ac_tag
 
17852
do
 
17853
  case $ac_tag in
 
17854
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
17855
  esac
 
17856
  case $ac_mode$ac_tag in
 
17857
  :[FHL]*:*);;
 
17858
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
17859
  :[FH]-) ac_tag=-:-;;
 
17860
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
17861
  esac
 
17862
  ac_save_IFS=$IFS
 
17863
  IFS=:
 
17864
  set x $ac_tag
 
17865
  IFS=$ac_save_IFS
 
17866
  shift
 
17867
  ac_file=$1
 
17868
  shift
 
17869
 
 
17870
  case $ac_mode in
 
17871
  :L) ac_source=$1;;
 
17872
  :[FH])
 
17873
    ac_file_inputs=
 
17874
    for ac_f
 
17875
    do
 
17876
      case $ac_f in
 
17877
      -) ac_f="$ac_tmp/stdin";;
 
17878
      *) # Look for the file first in the build tree, then in the source tree
 
17879
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
17880
         # because $ac_f cannot contain `:'.
 
17881
         test -f "$ac_f" ||
 
17882
           case $ac_f in
 
17883
           [\\/$]*) false;;
 
17884
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
17885
           esac ||
 
17886
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
17887
      esac
 
17888
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
17889
      as_fn_append ac_file_inputs " '$ac_f'"
 
17890
    done
 
17891
 
 
17892
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17893
    # use $as_me), people would be surprised to read:
 
17894
    #    /* config.h.  Generated by config.status.  */
 
17895
    configure_input='Generated from '`
 
17896
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
17897
        `' by configure.'
 
17898
    if test x"$ac_file" != x-; then
 
17899
      configure_input="$ac_file.  $configure_input"
 
17900
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
17901
$as_echo "$as_me: creating $ac_file" >&6;}
 
17902
    fi
 
17903
    # Neutralize special characters interpreted by sed in replacement strings.
 
17904
    case $configure_input in #(
 
17905
    *\&* | *\|* | *\\* )
 
17906
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
17907
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
17908
    *) ac_sed_conf_input=$configure_input;;
 
17909
    esac
 
17910
 
 
17911
    case $ac_tag in
 
17912
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
17913
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
17914
    esac
 
17915
    ;;
 
17916
  esac
 
17917
 
 
17918
  ac_dir=`$as_dirname -- "$ac_file" ||
 
17919
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17920
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17921
         X"$ac_file" : 'X\(//\)$' \| \
 
17922
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
17923
$as_echo X"$ac_file" |
 
17924
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17925
            s//\1/
 
17926
            q
 
17927
          }
 
17928
          /^X\(\/\/\)[^/].*/{
 
17929
            s//\1/
 
17930
            q
 
17931
          }
 
17932
          /^X\(\/\/\)$/{
 
17933
            s//\1/
 
17934
            q
 
17935
          }
 
17936
          /^X\(\/\).*/{
 
17937
            s//\1/
 
17938
            q
 
17939
          }
 
17940
          s/.*/./; q'`
 
17941
  as_dir="$ac_dir"; as_fn_mkdir_p
 
17942
  ac_builddir=.
 
17943
 
 
17944
case "$ac_dir" in
 
17945
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17946
*)
 
17947
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
17948
  # A ".." for each directory in $ac_dir_suffix.
 
17949
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
17950
  case $ac_top_builddir_sub in
 
17951
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17952
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
17953
  esac ;;
 
17954
esac
 
17955
ac_abs_top_builddir=$ac_pwd
 
17956
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
17957
# for backward compatibility:
 
17958
ac_top_builddir=$ac_top_build_prefix
 
17959
 
 
17960
case $srcdir in
 
17961
  .)  # We are building in place.
 
17962
    ac_srcdir=.
 
17963
    ac_top_srcdir=$ac_top_builddir_sub
 
17964
    ac_abs_top_srcdir=$ac_pwd ;;
 
17965
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
17966
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17967
    ac_top_srcdir=$srcdir
 
17968
    ac_abs_top_srcdir=$srcdir ;;
 
17969
  *) # Relative name.
 
17970
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
17971
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
17972
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
17973
esac
 
17974
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
17975
 
 
17976
 
 
17977
  case $ac_mode in
 
17978
  :F)
 
17979
  #
 
17980
  # CONFIG_FILE
 
17981
  #
 
17982
 
 
17983
  case $INSTALL in
 
17984
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
17985
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
17986
  esac
 
17987
  ac_MKDIR_P=$MKDIR_P
 
17988
  case $MKDIR_P in
 
17989
  [\\/$]* | ?:[\\/]* ) ;;
 
17990
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
17991
  esac
 
17992
_ACEOF
 
17993
 
 
17994
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17995
# If the template does not know about datarootdir, expand it.
 
17996
# FIXME: This hack should be removed a few years after 2.60.
 
17997
ac_datarootdir_hack=; ac_datarootdir_seen=
 
17998
ac_sed_dataroot='
 
17999
/datarootdir/ {
 
18000
  p
 
18001
  q
 
18002
}
 
18003
/@datadir@/p
 
18004
/@docdir@/p
 
18005
/@infodir@/p
 
18006
/@localedir@/p
 
18007
/@mandir@/p'
 
18008
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
18009
*datarootdir*) ac_datarootdir_seen=yes;;
 
18010
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
18011
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
18012
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
18013
_ACEOF
 
18014
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18015
  ac_datarootdir_hack='
 
18016
  s&@datadir@&$datadir&g
 
18017
  s&@docdir@&$docdir&g
 
18018
  s&@infodir@&$infodir&g
 
18019
  s&@localedir@&$localedir&g
 
18020
  s&@mandir@&$mandir&g
 
18021
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
18022
esac
 
18023
_ACEOF
 
18024
 
 
18025
# Neutralize VPATH when `$srcdir' = `.'.
 
18026
# Shell code in configure.ac might set extrasub.
 
18027
# FIXME: do we really want to maintain this feature?
 
18028
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18029
ac_sed_extra="$ac_vpsub
 
18030
$extrasub
 
18031
_ACEOF
 
18032
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18033
:t
 
18034
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
18035
s|@configure_input@|$ac_sed_conf_input|;t t
 
18036
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
18037
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
18038
s&@srcdir@&$ac_srcdir&;t t
 
18039
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
18040
s&@top_srcdir@&$ac_top_srcdir&;t t
 
18041
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
18042
s&@builddir@&$ac_builddir&;t t
 
18043
s&@abs_builddir@&$ac_abs_builddir&;t t
 
18044
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
18045
s&@INSTALL@&$ac_INSTALL&;t t
 
18046
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
18047
$ac_datarootdir_hack
 
18048
"
 
18049
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
18050
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
18051
 
 
18052
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
18053
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
18054
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
18055
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
18056
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
18057
which seems to be undefined.  Please make sure it is defined" >&5
 
18058
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
18059
which seems to be undefined.  Please make sure it is defined" >&2;}
 
18060
 
 
18061
  rm -f "$ac_tmp/stdin"
 
18062
  case $ac_file in
 
18063
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
18064
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
18065
  esac \
 
18066
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
18067
 ;;
 
18068
  :H)
 
18069
  #
 
18070
  # CONFIG_HEADER
 
18071
  #
 
18072
  if test x"$ac_file" != x-; then
 
18073
    {
 
18074
      $as_echo "/* $configure_input  */" \
 
18075
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
18076
    } >"$ac_tmp/config.h" \
 
18077
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
18078
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
18079
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
18080
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
18081
    else
 
18082
      rm -f "$ac_file"
 
18083
      mv "$ac_tmp/config.h" "$ac_file" \
 
18084
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
18085
    fi
 
18086
  else
 
18087
    $as_echo "/* $configure_input  */" \
 
18088
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
18089
      || as_fn_error $? "could not create -" "$LINENO" 5
 
18090
  fi
 
18091
# Compute "$ac_file"'s index in $config_headers.
 
18092
_am_arg="$ac_file"
 
18093
_am_stamp_count=1
 
18094
for _am_header in $config_headers :; do
 
18095
  case $_am_header in
 
18096
    $_am_arg | $_am_arg:* )
 
18097
      break ;;
 
18098
    * )
 
18099
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
18100
  esac
 
18101
done
 
18102
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
18103
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
18104
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
18105
         X"$_am_arg" : 'X\(//\)$' \| \
 
18106
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
18107
$as_echo X"$_am_arg" |
 
18108
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
18109
            s//\1/
 
18110
            q
 
18111
          }
 
18112
          /^X\(\/\/\)[^/].*/{
 
18113
            s//\1/
 
18114
            q
 
18115
          }
 
18116
          /^X\(\/\/\)$/{
 
18117
            s//\1/
 
18118
            q
 
18119
          }
 
18120
          /^X\(\/\).*/{
 
18121
            s//\1/
 
18122
            q
 
18123
          }
 
18124
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
18125
 ;;
 
18126
 
 
18127
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
18128
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
18129
 ;;
 
18130
  esac
 
18131
 
 
18132
 
 
18133
  case $ac_file$ac_mode in
 
18134
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
18135
  # Older Autoconf quotes --file arguments for eval, but not when files
 
18136
  # are listed without --file.  Let's play safe and only enable the eval
 
18137
  # if we detect the quoting.
 
18138
  case $CONFIG_FILES in
 
18139
  *\'*) eval set x "$CONFIG_FILES" ;;
 
18140
  *)   set x $CONFIG_FILES ;;
 
18141
  esac
 
18142
  shift
 
18143
  for mf
 
18144
  do
 
18145
    # Strip MF so we end up with the name of the file.
 
18146
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
18147
    # Check whether this is an Automake generated Makefile or not.
 
18148
    # We used to match only the files named 'Makefile.in', but
 
18149
    # some people rename them; so instead we look at the file content.
 
18150
    # Grep'ing the first line is not enough: some people post-process
 
18151
    # each Makefile.in and add a new line on top of each file to say so.
 
18152
    # Grep'ing the whole file is not good either: AIX grep has a line
 
18153
    # limit of 2048, but all sed's we know have understand at least 4000.
 
18154
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
18155
      dirpart=`$as_dirname -- "$mf" ||
 
18156
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
18157
         X"$mf" : 'X\(//\)[^/]' \| \
 
18158
         X"$mf" : 'X\(//\)$' \| \
 
18159
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
18160
$as_echo X"$mf" |
 
18161
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
18162
            s//\1/
 
18163
            q
 
18164
          }
 
18165
          /^X\(\/\/\)[^/].*/{
 
18166
            s//\1/
 
18167
            q
 
18168
          }
 
18169
          /^X\(\/\/\)$/{
 
18170
            s//\1/
 
18171
            q
 
18172
          }
 
18173
          /^X\(\/\).*/{
 
18174
            s//\1/
 
18175
            q
 
18176
          }
 
18177
          s/.*/./; q'`
 
18178
    else
 
18179
      continue
 
18180
    fi
 
18181
    # Extract the definition of DEPDIR, am__include, and am__quote
 
18182
    # from the Makefile without running 'make'.
 
18183
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
18184
    test -z "$DEPDIR" && continue
 
18185
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
18186
    test -z "$am__include" && continue
 
18187
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
18188
    # Find all dependency output files, they are included files with
 
18189
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
18190
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
18191
    # expansion.
 
18192
    for file in `sed -n "
 
18193
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
18194
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
18195
      # Make sure the directory exists.
 
18196
      test -f "$dirpart/$file" && continue
 
18197
      fdir=`$as_dirname -- "$file" ||
 
18198
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
18199
         X"$file" : 'X\(//\)[^/]' \| \
 
18200
         X"$file" : 'X\(//\)$' \| \
 
18201
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
18202
$as_echo X"$file" |
 
18203
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
18204
            s//\1/
 
18205
            q
 
18206
          }
 
18207
          /^X\(\/\/\)[^/].*/{
 
18208
            s//\1/
 
18209
            q
 
18210
          }
 
18211
          /^X\(\/\/\)$/{
 
18212
            s//\1/
 
18213
            q
 
18214
          }
 
18215
          /^X\(\/\).*/{
 
18216
            s//\1/
 
18217
            q
 
18218
          }
 
18219
          s/.*/./; q'`
 
18220
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
18221
      # echo "creating $dirpart/$file"
 
18222
      echo '# dummy' > "$dirpart/$file"
 
18223
    done
 
18224
  done
 
18225
}
 
18226
 ;;
 
18227
    "libtool":C)
 
18228
 
 
18229
    # See if we are running on zsh, and set the options which allow our
 
18230
    # commands through without removal of \ escapes.
 
18231
    if test -n "${ZSH_VERSION+set}" ; then
 
18232
      setopt NO_GLOB_SUBST
 
18233
    fi
 
18234
 
 
18235
    cfgfile="${ofile}T"
 
18236
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
18237
    $RM "$cfgfile"
 
18238
 
 
18239
    cat <<_LT_EOF >> "$cfgfile"
 
18240
#! $SHELL
 
18241
 
 
18242
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
18243
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
18244
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18245
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
18246
#
 
18247
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
18248
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
18249
#                 Foundation, Inc.
 
18250
#   Written by Gordon Matzigkeit, 1996
 
18251
#
 
18252
#   This file is part of GNU Libtool.
 
18253
#
 
18254
# GNU Libtool is free software; you can redistribute it and/or
 
18255
# modify it under the terms of the GNU General Public License as
 
18256
# published by the Free Software Foundation; either version 2 of
 
18257
# the License, or (at your option) any later version.
 
18258
#
 
18259
# As a special exception to the GNU General Public License,
 
18260
# if you distribute this file as part of a program or library that
 
18261
# is built using GNU Libtool, you may include this file under the
 
18262
# same distribution terms that you use for the rest of that program.
 
18263
#
 
18264
# GNU Libtool is distributed in the hope that it will be useful,
 
18265
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18266
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18267
# GNU General Public License for more details.
 
18268
#
 
18269
# You should have received a copy of the GNU General Public License
 
18270
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
18271
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
18272
# obtained by writing to the Free Software Foundation, Inc.,
 
18273
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
18274
 
 
18275
 
 
18276
# The names of the tagged configurations supported by this script.
 
18277
available_tags="CXX "
 
18278
 
 
18279
# ### BEGIN LIBTOOL CONFIG
 
18280
 
 
18281
# Which release of libtool.m4 was used?
 
18282
macro_version=$macro_version
 
18283
macro_revision=$macro_revision
 
18284
 
 
18285
# Whether or not to build shared libraries.
 
18286
build_libtool_libs=$enable_shared
 
18287
 
 
18288
# Whether or not to build static libraries.
 
18289
build_old_libs=$enable_static
 
18290
 
 
18291
# What type of objects to build.
 
18292
pic_mode=$pic_mode
 
18293
 
 
18294
# Whether or not to optimize for fast installation.
 
18295
fast_install=$enable_fast_install
 
18296
 
 
18297
# Shell to use when invoking shell scripts.
 
18298
SHELL=$lt_SHELL
 
18299
 
 
18300
# An echo program that protects backslashes.
 
18301
ECHO=$lt_ECHO
 
18302
 
 
18303
# The PATH separator for the build system.
 
18304
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
18305
 
 
18306
# The host system.
 
18307
host_alias=$host_alias
 
18308
host=$host
 
18309
host_os=$host_os
 
18310
 
 
18311
# The build system.
 
18312
build_alias=$build_alias
 
18313
build=$build
 
18314
build_os=$build_os
 
18315
 
 
18316
# A sed program that does not truncate output.
 
18317
SED=$lt_SED
 
18318
 
 
18319
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
18320
Xsed="\$SED -e 1s/^X//"
 
18321
 
 
18322
# A grep program that handles long lines.
 
18323
GREP=$lt_GREP
 
18324
 
 
18325
# An ERE matcher.
 
18326
EGREP=$lt_EGREP
 
18327
 
 
18328
# A literal string matcher.
 
18329
FGREP=$lt_FGREP
 
18330
 
 
18331
# A BSD- or MS-compatible name lister.
 
18332
NM=$lt_NM
 
18333
 
 
18334
# Whether we need soft or hard links.
 
18335
LN_S=$lt_LN_S
 
18336
 
 
18337
# What is the maximum length of a command?
 
18338
max_cmd_len=$max_cmd_len
 
18339
 
 
18340
# Object file suffix (normally "o").
 
18341
objext=$ac_objext
 
18342
 
 
18343
# Executable file suffix (normally "").
 
18344
exeext=$exeext
 
18345
 
 
18346
# whether the shell understands "unset".
 
18347
lt_unset=$lt_unset
 
18348
 
 
18349
# turn spaces into newlines.
 
18350
SP2NL=$lt_lt_SP2NL
 
18351
 
 
18352
# turn newlines into spaces.
 
18353
NL2SP=$lt_lt_NL2SP
 
18354
 
 
18355
# convert \$build file names to \$host format.
 
18356
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
18357
 
 
18358
# convert \$build files to toolchain format.
 
18359
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
18360
 
 
18361
# An object symbol dumper.
 
18362
OBJDUMP=$lt_OBJDUMP
 
18363
 
 
18364
# Method to check whether dependent libraries are shared objects.
 
18365
deplibs_check_method=$lt_deplibs_check_method
 
18366
 
 
18367
# Command to use when deplibs_check_method = "file_magic".
 
18368
file_magic_cmd=$lt_file_magic_cmd
 
18369
 
 
18370
# How to find potential files when deplibs_check_method = "file_magic".
 
18371
file_magic_glob=$lt_file_magic_glob
 
18372
 
 
18373
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
18374
want_nocaseglob=$lt_want_nocaseglob
 
18375
 
 
18376
# DLL creation program.
 
18377
DLLTOOL=$lt_DLLTOOL
 
18378
 
 
18379
# Command to associate shared and link libraries.
 
18380
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
18381
 
 
18382
# The archiver.
 
18383
AR=$lt_AR
 
18384
 
 
18385
# Flags to create an archive.
 
18386
AR_FLAGS=$lt_AR_FLAGS
 
18387
 
 
18388
# How to feed a file listing to the archiver.
 
18389
archiver_list_spec=$lt_archiver_list_spec
 
18390
 
 
18391
# A symbol stripping program.
 
18392
STRIP=$lt_STRIP
 
18393
 
 
18394
# Commands used to install an old-style archive.
 
18395
RANLIB=$lt_RANLIB
 
18396
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18397
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18398
 
 
18399
# Whether to use a lock for old archive extraction.
 
18400
lock_old_archive_extraction=$lock_old_archive_extraction
 
18401
 
 
18402
# A C compiler.
 
18403
LTCC=$lt_CC
 
18404
 
 
18405
# LTCC compiler flags.
 
18406
LTCFLAGS=$lt_CFLAGS
 
18407
 
 
18408
# Take the output of nm and produce a listing of raw symbols and C names.
 
18409
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18410
 
 
18411
# Transform the output of nm in a proper C declaration.
 
18412
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18413
 
 
18414
# Transform the output of nm in a C name address pair.
 
18415
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18416
 
 
18417
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
18418
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
18419
 
 
18420
# Specify filename containing input files for \$NM.
 
18421
nm_file_list_spec=$lt_nm_file_list_spec
 
18422
 
 
18423
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
18424
lt_sysroot=$lt_sysroot
 
18425
 
 
18426
# The name of the directory that contains temporary libtool files.
 
18427
objdir=$objdir
 
18428
 
 
18429
# Used to examine libraries when file_magic_cmd begins with "file".
 
18430
MAGIC_CMD=$MAGIC_CMD
 
18431
 
 
18432
# Must we lock files when doing compilation?
 
18433
need_locks=$lt_need_locks
 
18434
 
 
18435
# Manifest tool.
 
18436
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
18437
 
 
18438
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
18439
DSYMUTIL=$lt_DSYMUTIL
 
18440
 
 
18441
# Tool to change global to local symbols on Mac OS X.
 
18442
NMEDIT=$lt_NMEDIT
 
18443
 
 
18444
# Tool to manipulate fat objects and archives on Mac OS X.
 
18445
LIPO=$lt_LIPO
 
18446
 
 
18447
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
18448
OTOOL=$lt_OTOOL
 
18449
 
 
18450
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
18451
OTOOL64=$lt_OTOOL64
 
18452
 
 
18453
# Old archive suffix (normally "a").
 
18454
libext=$libext
 
18455
 
 
18456
# Shared library suffix (normally ".so").
 
18457
shrext_cmds=$lt_shrext_cmds
 
18458
 
 
18459
# The commands to extract the exported symbol list from a shared archive.
 
18460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18461
 
 
18462
# Variables whose values should be saved in libtool wrapper scripts and
 
18463
# restored at link time.
 
18464
variables_saved_for_relink=$lt_variables_saved_for_relink
 
18465
 
 
18466
# Do we need the "lib" prefix for modules?
 
18467
need_lib_prefix=$need_lib_prefix
 
18468
 
 
18469
# Do we need a version for libraries?
 
18470
need_version=$need_version
 
18471
 
 
18472
# Library versioning type.
 
18473
version_type=$version_type
 
18474
 
 
18475
# Shared library runtime path variable.
 
18476
runpath_var=$runpath_var
 
18477
 
 
18478
# Shared library path variable.
 
18479
shlibpath_var=$shlibpath_var
 
18480
 
 
18481
# Is shlibpath searched before the hard-coded library search path?
 
18482
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18483
 
 
18484
# Format of library name prefix.
 
18485
libname_spec=$lt_libname_spec
 
18486
 
 
18487
# List of archive names.  First name is the real one, the rest are links.
 
18488
# The last name is the one that the linker finds with -lNAME
 
18489
library_names_spec=$lt_library_names_spec
 
18490
 
 
18491
# The coded name of the library, if different from the real name.
 
18492
soname_spec=$lt_soname_spec
 
18493
 
 
18494
# Permission mode override for installation of shared libraries.
 
18495
install_override_mode=$lt_install_override_mode
 
18496
 
 
18497
# Command to use after installation of a shared archive.
 
18498
postinstall_cmds=$lt_postinstall_cmds
 
18499
 
 
18500
# Command to use after uninstallation of a shared archive.
 
18501
postuninstall_cmds=$lt_postuninstall_cmds
 
18502
 
 
18503
# Commands used to finish a libtool library installation in a directory.
 
18504
finish_cmds=$lt_finish_cmds
 
18505
 
 
18506
# As "finish_cmds", except a single script fragment to be evaled but
 
18507
# not shown.
 
18508
finish_eval=$lt_finish_eval
 
18509
 
 
18510
# Whether we should hardcode library paths into libraries.
 
18511
hardcode_into_libs=$hardcode_into_libs
 
18512
 
 
18513
# Compile-time system search path for libraries.
 
18514
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18515
 
 
18516
# Run-time system search path for libraries.
 
18517
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18518
 
 
18519
# Whether dlopen is supported.
 
18520
dlopen_support=$enable_dlopen
 
18521
 
 
18522
# Whether dlopen of programs is supported.
 
18523
dlopen_self=$enable_dlopen_self
 
18524
 
 
18525
# Whether dlopen of statically linked programs is supported.
 
18526
dlopen_self_static=$enable_dlopen_self_static
 
18527
 
 
18528
# Commands to strip libraries.
 
18529
old_striplib=$lt_old_striplib
 
18530
striplib=$lt_striplib
 
18531
 
 
18532
 
 
18533
# The linker used to build libraries.
 
18534
LD=$lt_LD
 
18535
 
 
18536
# How to create reloadable object files.
 
18537
reload_flag=$lt_reload_flag
 
18538
reload_cmds=$lt_reload_cmds
 
18539
 
 
18540
# Commands used to build an old-style archive.
 
18541
old_archive_cmds=$lt_old_archive_cmds
 
18542
 
 
18543
# A language specific compiler.
 
18544
CC=$lt_compiler
 
18545
 
 
18546
# Is the compiler the GNU compiler?
 
18547
with_gcc=$GCC
 
18548
 
 
18549
# Compiler flag to turn off builtin functions.
 
18550
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18551
 
 
18552
# Additional compiler flags for building library objects.
 
18553
pic_flag=$lt_lt_prog_compiler_pic
 
18554
 
 
18555
# How to pass a linker flag through the compiler.
 
18556
wl=$lt_lt_prog_compiler_wl
 
18557
 
 
18558
# Compiler flag to prevent dynamic linking.
 
18559
link_static_flag=$lt_lt_prog_compiler_static
 
18560
 
 
18561
# Does compiler simultaneously support -c and -o options?
 
18562
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18563
 
 
18564
# Whether or not to add -lc for building shared libraries.
 
18565
build_libtool_need_lc=$archive_cmds_need_lc
 
18566
 
 
18567
# Whether or not to disallow shared libs when runtime libs are static.
 
18568
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18569
 
 
18570
# Compiler flag to allow reflexive dlopens.
 
18571
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18572
 
 
18573
# Compiler flag to generate shared objects directly from archives.
 
18574
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18575
 
 
18576
# Whether the compiler copes with passing no objects directly.
 
18577
compiler_needs_object=$lt_compiler_needs_object
 
18578
 
 
18579
# Create an old-style archive from a shared archive.
 
18580
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18581
 
 
18582
# Create a temporary old-style archive to link instead of a shared archive.
 
18583
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18584
 
 
18585
# Commands used to build a shared archive.
 
18586
archive_cmds=$lt_archive_cmds
 
18587
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18588
 
 
18589
# Commands used to build a loadable module if different from building
 
18590
# a shared archive.
 
18591
module_cmds=$lt_module_cmds
 
18592
module_expsym_cmds=$lt_module_expsym_cmds
 
18593
 
 
18594
# Whether we are building with GNU ld or not.
 
18595
with_gnu_ld=$lt_with_gnu_ld
 
18596
 
 
18597
# Flag that allows shared libraries with undefined symbols to be built.
 
18598
allow_undefined_flag=$lt_allow_undefined_flag
 
18599
 
 
18600
# Flag that enforces no undefined symbols.
 
18601
no_undefined_flag=$lt_no_undefined_flag
 
18602
 
 
18603
# Flag to hardcode \$libdir into a binary during linking.
 
18604
# This must work even if \$libdir does not exist
 
18605
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18606
 
 
18607
# Whether we need a single "-rpath" flag with a separated argument.
 
18608
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18609
 
 
18610
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18611
# DIR into the resulting binary.
 
18612
hardcode_direct=$hardcode_direct
 
18613
 
 
18614
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18615
# DIR into the resulting binary and the resulting library dependency is
 
18616
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18617
# library is relocated.
 
18618
hardcode_direct_absolute=$hardcode_direct_absolute
 
18619
 
 
18620
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18621
# into the resulting binary.
 
18622
hardcode_minus_L=$hardcode_minus_L
 
18623
 
 
18624
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18625
# into the resulting binary.
 
18626
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18627
 
 
18628
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18629
# into the library and all subsequent libraries and executables linked
 
18630
# against it.
 
18631
hardcode_automatic=$hardcode_automatic
 
18632
 
 
18633
# Set to yes if linker adds runtime paths of dependent libraries
 
18634
# to runtime path list.
 
18635
inherit_rpath=$inherit_rpath
 
18636
 
 
18637
# Whether libtool must link a program against all its dependency libraries.
 
18638
link_all_deplibs=$link_all_deplibs
 
18639
 
 
18640
# Set to "yes" if exported symbols are required.
 
18641
always_export_symbols=$always_export_symbols
 
18642
 
 
18643
# The commands to list exported symbols.
 
18644
export_symbols_cmds=$lt_export_symbols_cmds
 
18645
 
 
18646
# Symbols that should not be listed in the preloaded symbols.
 
18647
exclude_expsyms=$lt_exclude_expsyms
 
18648
 
 
18649
# Symbols that must always be exported.
 
18650
include_expsyms=$lt_include_expsyms
 
18651
 
 
18652
# Commands necessary for linking programs (against libraries) with templates.
 
18653
prelink_cmds=$lt_prelink_cmds
 
18654
 
 
18655
# Commands necessary for finishing linking programs.
 
18656
postlink_cmds=$lt_postlink_cmds
 
18657
 
 
18658
# Specify filename containing input files.
 
18659
file_list_spec=$lt_file_list_spec
 
18660
 
 
18661
# How to hardcode a shared library path into an executable.
 
18662
hardcode_action=$hardcode_action
 
18663
 
 
18664
# The directories searched by this compiler when creating a shared library.
 
18665
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18666
 
 
18667
# Dependencies to place before and after the objects being linked to
 
18668
# create a shared library.
 
18669
predep_objects=$lt_predep_objects
 
18670
postdep_objects=$lt_postdep_objects
 
18671
predeps=$lt_predeps
 
18672
postdeps=$lt_postdeps
 
18673
 
 
18674
# The library search path used internally by the compiler when linking
 
18675
# a shared library.
 
18676
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18677
 
 
18678
# ### END LIBTOOL CONFIG
 
18679
 
 
18680
_LT_EOF
 
18681
 
 
18682
  case $host_os in
 
18683
  aix3*)
 
18684
    cat <<\_LT_EOF >> "$cfgfile"
 
18685
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18686
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18687
# vanish in a puff of smoke.
 
18688
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18689
  COLLECT_NAMES=
 
18690
  export COLLECT_NAMES
 
18691
fi
 
18692
_LT_EOF
 
18693
    ;;
 
18694
  esac
 
18695
 
 
18696
 
 
18697
ltmain="$ac_aux_dir/ltmain.sh"
 
18698
 
 
18699
 
 
18700
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18701
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18702
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18703
  # is reportedly fixed, but why not run on old versions too?
 
18704
  sed '$q' "$ltmain" >> "$cfgfile" \
 
18705
     || (rm -f "$cfgfile"; exit 1)
 
18706
 
 
18707
  if test x"$xsi_shell" = xyes; then
 
18708
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
18709
func_dirname ()\
 
18710
{\
 
18711
\    case ${1} in\
 
18712
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18713
\      *  ) func_dirname_result="${3}" ;;\
 
18714
\    esac\
 
18715
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
18716
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18717
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18718
test 0 -eq $? || _lt_function_replace_fail=:
 
18719
 
 
18720
 
 
18721
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
18722
func_basename ()\
 
18723
{\
 
18724
\    func_basename_result="${1##*/}"\
 
18725
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18726
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18727
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18728
test 0 -eq $? || _lt_function_replace_fail=:
 
18729
 
 
18730
 
 
18731
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
18732
func_dirname_and_basename ()\
 
18733
{\
 
18734
\    case ${1} in\
 
18735
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18736
\      *  ) func_dirname_result="${3}" ;;\
 
18737
\    esac\
 
18738
\    func_basename_result="${1##*/}"\
 
18739
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18740
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18741
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18742
test 0 -eq $? || _lt_function_replace_fail=:
 
18743
 
 
18744
 
 
18745
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
18746
func_stripname ()\
 
18747
{\
 
18748
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
18749
\    # positional parameters, so assign one to ordinary parameter first.\
 
18750
\    func_stripname_result=${3}\
 
18751
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
18752
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
18753
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
18754
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18755
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18756
test 0 -eq $? || _lt_function_replace_fail=:
 
18757
 
 
18758
 
 
18759
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
18760
func_split_long_opt ()\
 
18761
{\
 
18762
\    func_split_long_opt_name=${1%%=*}\
 
18763
\    func_split_long_opt_arg=${1#*=}\
 
18764
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18765
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18766
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18767
test 0 -eq $? || _lt_function_replace_fail=:
 
18768
 
 
18769
 
 
18770
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
18771
func_split_short_opt ()\
 
18772
{\
 
18773
\    func_split_short_opt_arg=${1#??}\
 
18774
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
18775
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18776
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18777
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18778
test 0 -eq $? || _lt_function_replace_fail=:
 
18779
 
 
18780
 
 
18781
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
18782
func_lo2o ()\
 
18783
{\
 
18784
\    case ${1} in\
 
18785
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
18786
\      *)    func_lo2o_result=${1} ;;\
 
18787
\    esac\
 
18788
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
18789
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18790
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18791
test 0 -eq $? || _lt_function_replace_fail=:
 
18792
 
 
18793
 
 
18794
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
18795
func_xform ()\
 
18796
{\
 
18797
    func_xform_result=${1%.*}.lo\
 
18798
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
18799
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18800
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18801
test 0 -eq $? || _lt_function_replace_fail=:
 
18802
 
 
18803
 
 
18804
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
18805
func_arith ()\
 
18806
{\
 
18807
    func_arith_result=$(( $* ))\
 
18808
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
18809
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18810
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18811
test 0 -eq $? || _lt_function_replace_fail=:
 
18812
 
 
18813
 
 
18814
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
18815
func_len ()\
 
18816
{\
 
18817
    func_len_result=${#1}\
 
18818
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
18819
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18820
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18821
test 0 -eq $? || _lt_function_replace_fail=:
 
18822
 
 
18823
fi
 
18824
 
 
18825
if test x"$lt_shell_append" = xyes; then
 
18826
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
18827
func_append ()\
 
18828
{\
 
18829
    eval "${1}+=\\${2}"\
 
18830
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
18831
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18832
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18833
test 0 -eq $? || _lt_function_replace_fail=:
 
18834
 
 
18835
 
 
18836
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
18837
func_append_quoted ()\
 
18838
{\
 
18839
\    func_quote_for_eval "${2}"\
 
18840
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
18841
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
18842
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18843
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18844
test 0 -eq $? || _lt_function_replace_fail=:
 
18845
 
 
18846
 
 
18847
  # Save a `func_append' function call where possible by direct use of '+='
 
18848
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
18849
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18850
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18851
  test 0 -eq $? || _lt_function_replace_fail=:
 
18852
else
 
18853
  # Save a `func_append' function call even when '+=' is not available
 
18854
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
18855
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18856
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18857
  test 0 -eq $? || _lt_function_replace_fail=:
 
18858
fi
 
18859
 
 
18860
if test x"$_lt_function_replace_fail" = x":"; then
 
18861
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
18862
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
18863
fi
 
18864
 
 
18865
 
 
18866
   mv -f "$cfgfile" "$ofile" ||
 
18867
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18868
  chmod +x "$ofile"
 
18869
 
 
18870
 
 
18871
    cat <<_LT_EOF >> "$ofile"
 
18872
 
 
18873
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
18874
 
 
18875
# The linker used to build libraries.
 
18876
LD=$lt_LD_CXX
 
18877
 
 
18878
# How to create reloadable object files.
 
18879
reload_flag=$lt_reload_flag_CXX
 
18880
reload_cmds=$lt_reload_cmds_CXX
 
18881
 
 
18882
# Commands used to build an old-style archive.
 
18883
old_archive_cmds=$lt_old_archive_cmds_CXX
 
18884
 
 
18885
# A language specific compiler.
 
18886
CC=$lt_compiler_CXX
 
18887
 
 
18888
# Is the compiler the GNU compiler?
 
18889
with_gcc=$GCC_CXX
 
18890
 
 
18891
# Compiler flag to turn off builtin functions.
 
18892
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
18893
 
 
18894
# Additional compiler flags for building library objects.
 
18895
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
18896
 
 
18897
# How to pass a linker flag through the compiler.
 
18898
wl=$lt_lt_prog_compiler_wl_CXX
 
18899
 
 
18900
# Compiler flag to prevent dynamic linking.
 
18901
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
18902
 
 
18903
# Does compiler simultaneously support -c and -o options?
 
18904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
18905
 
 
18906
# Whether or not to add -lc for building shared libraries.
 
18907
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
18908
 
 
18909
# Whether or not to disallow shared libs when runtime libs are static.
 
18910
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
18911
 
 
18912
# Compiler flag to allow reflexive dlopens.
 
18913
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
18914
 
 
18915
# Compiler flag to generate shared objects directly from archives.
 
18916
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
18917
 
 
18918
# Whether the compiler copes with passing no objects directly.
 
18919
compiler_needs_object=$lt_compiler_needs_object_CXX
 
18920
 
 
18921
# Create an old-style archive from a shared archive.
 
18922
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
18923
 
 
18924
# Create a temporary old-style archive to link instead of a shared archive.
 
18925
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
18926
 
 
18927
# Commands used to build a shared archive.
 
18928
archive_cmds=$lt_archive_cmds_CXX
 
18929
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
18930
 
 
18931
# Commands used to build a loadable module if different from building
 
18932
# a shared archive.
 
18933
module_cmds=$lt_module_cmds_CXX
 
18934
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
18935
 
 
18936
# Whether we are building with GNU ld or not.
 
18937
with_gnu_ld=$lt_with_gnu_ld_CXX
 
18938
 
 
18939
# Flag that allows shared libraries with undefined symbols to be built.
 
18940
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
18941
 
 
18942
# Flag that enforces no undefined symbols.
 
18943
no_undefined_flag=$lt_no_undefined_flag_CXX
 
18944
 
 
18945
# Flag to hardcode \$libdir into a binary during linking.
 
18946
# This must work even if \$libdir does not exist
 
18947
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
18948
 
 
18949
# Whether we need a single "-rpath" flag with a separated argument.
 
18950
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
18951
 
 
18952
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18953
# DIR into the resulting binary.
 
18954
hardcode_direct=$hardcode_direct_CXX
 
18955
 
 
18956
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18957
# DIR into the resulting binary and the resulting library dependency is
 
18958
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18959
# library is relocated.
 
18960
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
18961
 
 
18962
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18963
# into the resulting binary.
 
18964
hardcode_minus_L=$hardcode_minus_L_CXX
 
18965
 
 
18966
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18967
# into the resulting binary.
 
18968
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
18969
 
 
18970
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18971
# into the library and all subsequent libraries and executables linked
 
18972
# against it.
 
18973
hardcode_automatic=$hardcode_automatic_CXX
 
18974
 
 
18975
# Set to yes if linker adds runtime paths of dependent libraries
 
18976
# to runtime path list.
 
18977
inherit_rpath=$inherit_rpath_CXX
 
18978
 
 
18979
# Whether libtool must link a program against all its dependency libraries.
 
18980
link_all_deplibs=$link_all_deplibs_CXX
 
18981
 
 
18982
# Set to "yes" if exported symbols are required.
 
18983
always_export_symbols=$always_export_symbols_CXX
 
18984
 
 
18985
# The commands to list exported symbols.
 
18986
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
18987
 
 
18988
# Symbols that should not be listed in the preloaded symbols.
 
18989
exclude_expsyms=$lt_exclude_expsyms_CXX
 
18990
 
 
18991
# Symbols that must always be exported.
 
18992
include_expsyms=$lt_include_expsyms_CXX
 
18993
 
 
18994
# Commands necessary for linking programs (against libraries) with templates.
 
18995
prelink_cmds=$lt_prelink_cmds_CXX
 
18996
 
 
18997
# Commands necessary for finishing linking programs.
 
18998
postlink_cmds=$lt_postlink_cmds_CXX
 
18999
 
 
19000
# Specify filename containing input files.
 
19001
file_list_spec=$lt_file_list_spec_CXX
 
19002
 
 
19003
# How to hardcode a shared library path into an executable.
 
19004
hardcode_action=$hardcode_action_CXX
 
19005
 
 
19006
# The directories searched by this compiler when creating a shared library.
 
19007
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
19008
 
 
19009
# Dependencies to place before and after the objects being linked to
 
19010
# create a shared library.
 
19011
predep_objects=$lt_predep_objects_CXX
 
19012
postdep_objects=$lt_postdep_objects_CXX
 
19013
predeps=$lt_predeps_CXX
 
19014
postdeps=$lt_postdeps_CXX
 
19015
 
 
19016
# The library search path used internally by the compiler when linking
 
19017
# a shared library.
 
19018
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
19019
 
 
19020
# ### END LIBTOOL TAG CONFIG: CXX
 
19021
_LT_EOF
 
19022
 
 
19023
 ;;
 
19024
 
 
19025
  esac
 
19026
done # for ac_tag
 
19027
 
 
19028
 
 
19029
as_fn_exit 0
 
19030
_ACEOF
 
19031
ac_clean_files=$ac_clean_files_save
 
19032
 
 
19033
test $ac_write_fail = 0 ||
 
19034
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
19035
 
 
19036
 
 
19037
# configure is writing to config.log, and then calls config.status.
 
19038
# config.status does its own redirection, appending to config.log.
 
19039
# Unfortunately, on DOS this fails, as config.log is still kept open
 
19040
# by configure, so config.status won't be able to write to it; its
 
19041
# output is simply discarded.  So we exec the FD to /dev/null,
 
19042
# effectively closing config.log, so it can be properly (re)opened and
 
19043
# appended to by config.status.  When coming back to configure, we
 
19044
# need to make the FD available again.
 
19045
if test "$no_create" != yes; then
 
19046
  ac_cs_success=:
 
19047
  ac_config_status_args=
 
19048
  test "$silent" = yes &&
 
19049
    ac_config_status_args="$ac_config_status_args --quiet"
 
19050
  exec 5>/dev/null
 
19051
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
19052
  exec 5>>config.log
 
19053
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
19054
  # would make configure fail if this is the last instruction.
 
19055
  $ac_cs_success || as_fn_exit 1
 
19056
fi
 
19057
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
19058
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
19059
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
19060
fi
 
19061