~ubuntu-branches/debian/experimental/cubew/experimental

« back to all changes in this revision

Viewing changes to build-frontend/configure

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2017-12-22 10:16:20 UTC
  • Revision ID: package-import@ubuntu.com-20171222101620-5kgzz922neq7h2ho
Tags: upstream-4.4~rc1
ImportĀ upstreamĀ versionĀ 4.4~rc1

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 CubeW 4.4-RC1.
 
4
#
 
5
# Report bugs to <scalasca@fz-juelich.de>.
 
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
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || 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
 
278
$0: scalasca@fz-juelich.de about your system, including any
 
279
$0: error possibly output before this message. Then install
 
280
$0: a modern shell, or manually run the script under such a
 
281
$0: shell if you do 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 (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
431
  as_dirname=dirname
 
432
else
 
433
  as_dirname=false
 
434
fi
 
435
 
 
436
# Avoid depending upon Character Ranges.
 
437
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
438
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
439
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
440
as_cr_digits='0123456789'
 
441
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
442
 
 
443
 
 
444
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
445
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
446
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
447
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
448
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
449
  sed -n '
 
450
    p
 
451
    /[$]LINENO/=
 
452
  ' <$as_myself |
 
453
    sed '
 
454
      s/[$]LINENO.*/&-/
 
455
      t lineno
 
456
      b
 
457
      :lineno
 
458
      N
 
459
      :loop
 
460
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
461
      t loop
 
462
      s/-\n.*//
 
463
    ' >$as_me.lineno &&
 
464
  chmod +x "$as_me.lineno" ||
 
465
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
466
 
 
467
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
468
  # already done that, so ensure we don't try to do so again and fall
 
469
  # in an infinite loop.  This has already happened in practice.
 
470
  _as_can_reexec=no; export _as_can_reexec
 
471
  # Don't try to exec as it changes $[0], causing all sort of problems
 
472
  # (the dirname of $[0] is not the place where we might find the
 
473
  # original and so on.  Autoconf is especially sensitive to this).
 
474
  . "./$as_me.lineno"
 
475
  # Exit status is that of the last command.
 
476
  exit
 
477
}
 
478
 
 
479
ECHO_C= ECHO_N= ECHO_T=
 
480
case `echo -n x` in #(((((
 
481
-n*)
 
482
  case `echo 'xy\c'` in
 
483
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
484
  xy)  ECHO_C='\c';;
 
485
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
486
       ECHO_T=' ';;
 
487
  esac;;
 
488
*)
 
489
  ECHO_N='-n';;
 
490
esac
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir 2>/dev/null
 
498
fi
 
499
if (echo >conf$$.file) 2>/dev/null; then
 
500
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
    as_ln_s='ln -s'
 
502
    # ... but there are two gotchas:
 
503
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
    # In both cases, we have to default to `cp -pR'.
 
506
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
      as_ln_s='cp -pR'
 
508
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
    as_ln_s=ln
 
510
  else
 
511
    as_ln_s='cp -pR'
 
512
  fi
 
513
else
 
514
  as_ln_s='cp -pR'
 
515
fi
 
516
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
517
rmdir conf$$.dir 2>/dev/null
 
518
 
 
519
if mkdir -p . 2>/dev/null; then
 
520
  as_mkdir_p='mkdir -p "$as_dir"'
 
521
else
 
522
  test -d ./-p && rmdir ./-p
 
523
  as_mkdir_p=false
 
524
fi
 
525
 
 
526
as_test_x='test -x'
 
527
as_executable_p=as_fn_executable_p
 
528
 
 
529
# Sed expression to map a string onto a valid CPP name.
 
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
531
 
 
532
# Sed expression to map a string onto a valid variable name.
 
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
534
 
 
535
SHELL=${CONFIG_SHELL-/bin/sh}
 
536
 
 
537
 
 
538
test -n "$DJDIR" || exec 7<&0 </dev/null
 
539
exec 6>&1
 
540
 
 
541
# Name of the host.
 
542
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
543
# so uname gets run too.
 
544
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
545
 
 
546
#
 
547
# Initializations.
 
548
#
 
549
ac_default_prefix=/usr/local
 
550
ac_clean_files=
 
551
ac_config_libobj_dir=.
 
552
LIBOBJS=
 
553
cross_compiling=no
 
554
subdirs=
 
555
MFLAGS=
 
556
MAKEFLAGS=
 
557
 
 
558
# Identity of this package.
 
559
PACKAGE_NAME='CubeW'
 
560
PACKAGE_TARNAME='cubew'
 
561
PACKAGE_VERSION='4.4-RC1'
 
562
PACKAGE_STRING='CubeW 4.4-RC1'
 
563
PACKAGE_BUGREPORT='scalasca@fz-juelich.de'
 
564
PACKAGE_URL='http://www.scalasca.org'
 
565
 
 
566
# Factoring default headers for most tests.
 
567
ac_includes_default="\
 
568
#include <stdio.h>
 
569
#ifdef HAVE_SYS_TYPES_H
 
570
# include <sys/types.h>
 
571
#endif
 
572
#ifdef HAVE_SYS_STAT_H
 
573
# include <sys/stat.h>
 
574
#endif
 
575
#ifdef STDC_HEADERS
 
576
# include <stdlib.h>
 
577
# include <stddef.h>
 
578
#else
 
579
# ifdef HAVE_STDLIB_H
 
580
#  include <stdlib.h>
 
581
# endif
 
582
#endif
 
583
#ifdef HAVE_STRING_H
 
584
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
585
#  include <memory.h>
 
586
# endif
 
587
# include <string.h>
 
588
#endif
 
589
#ifdef HAVE_STRINGS_H
 
590
# include <strings.h>
 
591
#endif
 
592
#ifdef HAVE_INTTYPES_H
 
593
# include <inttypes.h>
 
594
#endif
 
595
#ifdef HAVE_STDINT_H
 
596
# include <stdint.h>
 
597
#endif
 
598
#ifdef HAVE_UNISTD_H
 
599
# include <unistd.h>
 
600
#endif"
 
601
 
 
602
ac_subst_vars='am__EXEEXT_FALSE
 
603
am__EXEEXT_TRUE
 
604
LTLIBOBJS
 
605
LIBOBJS
 
606
PACKAGE_ERROR_CODES_INCDIR
 
607
SYS_LIB_DLSEARCH_PATH_SPEC
 
608
HARDCODE_LIBDIR_AIX_LIBPATH
 
609
HARDCODE_LIBDIR_WL
 
610
HARDCODE_LIBDIR_FLAG_CXX
 
611
HARDCODE_LIBDIR_FLAG_CC
 
612
HARDCODE_INTO_LIBS
 
613
MPI_CUBEW_BACKEND_EXAMPLES_EXE
 
614
MPI_CUBEW_BACKEND_EXAMPLES_SRC
 
615
NOMPI_CUBEW_BACKEND_EXAMPLES_EXE
 
616
NOMPI_CUBEW_BACKEND_EXAMPLES_SRC
 
617
MPI_CUBEW_FRONTEND_EXAMPLES_EXE
 
618
MPI_CUBEW_FRONTEND_EXAMPLES_SRC
 
619
NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE
 
620
NOMPI_CUBEW_FRONTEND_EXAMPLES_SRC
 
621
CUBEW_COMPRESSION_BACKEND_FALSE
 
622
CUBEW_COMPRESSION_BACKEND_TRUE
 
623
CUBEW_COMPRESSION_FRONTEND_FALSE
 
624
CUBEW_COMPRESSION_FRONTEND_TRUE
 
625
WITH_C_WRITER_FALSE
 
626
WITH_C_WRITER_TRUE
 
627
WITH_C_WRITER
 
628
HAVE_MEMORY_TRACING_FALSE
 
629
HAVE_MEMORY_TRACING_TRUE
 
630
HAVE_MEMORY_TRACKING_FALSE
 
631
HAVE_MEMORY_TRACKING_TRUE
 
632
HAVE_ADVANCED_MEMORY_FALSE
 
633
HAVE_ADVANCED_MEMORY_TRUE
 
634
CXXCPP
 
635
am__fastdepCXX_FALSE
 
636
am__fastdepCXX_TRUE
 
637
CXXDEPMODE
 
638
ac_ct_CXX
 
639
CXXFLAGS
 
640
CXX
 
641
LIBTOOL_DEPS
 
642
CPP
 
643
LT_SYS_LIBRARY_PATH
 
644
OTOOL64
 
645
OTOOL
 
646
LIPO
 
647
NMEDIT
 
648
DSYMUTIL
 
649
MANIFEST_TOOL
 
650
RANLIB
 
651
DLLTOOL
 
652
OBJDUMP
 
653
LN_S
 
654
NM
 
655
ac_ct_DUMPBIN
 
656
DUMPBIN
 
657
LD
 
658
FGREP
 
659
EGREP
 
660
GREP
 
661
SED
 
662
host_os
 
663
host_vendor
 
664
host_cpu
 
665
host
 
666
LIBTOOL
 
667
am__fastdepCC_FALSE
 
668
am__fastdepCC_TRUE
 
669
CCDEPMODE
 
670
am__nodep
 
671
AMDEPBACKSLASH
 
672
AMDEP_FALSE
 
673
AMDEP_TRUE
 
674
am__quote
 
675
am__include
 
676
DEPDIR
 
677
OBJEXT
 
678
EXEEXT
 
679
ac_ct_CC
 
680
CPPFLAGS
 
681
LDFLAGS
 
682
CFLAGS
 
683
CC
 
684
ac_ct_AR
 
685
AR
 
686
AM_BACKSLASH
 
687
AM_DEFAULT_VERBOSITY
 
688
AM_DEFAULT_V
 
689
AM_V
 
690
am__untar
 
691
am__tar
 
692
AMTAR
 
693
am__leading_dot
 
694
SET_MAKE
 
695
AWK
 
696
mkdir_p
 
697
MKDIR_P
 
698
INSTALL_STRIP_PROGRAM
 
699
STRIP
 
700
install_sh
 
701
MAKEINFO
 
702
AUTOHEADER
 
703
AUTOMAKE
 
704
AUTOCONF
 
705
ACLOCAL
 
706
VERSION
 
707
PACKAGE
 
708
CYGPATH_W
 
709
am__isrc
 
710
INSTALL_DATA
 
711
INSTALL_SCRIPT
 
712
INSTALL_PROGRAM
 
713
CROSS_BUILD_FALSE
 
714
CROSS_BUILD_TRUE
 
715
MIC_SUPPORT_FALSE
 
716
MIC_SUPPORT_TRUE
 
717
PLATFORM_CRAY_FALSE
 
718
PLATFORM_CRAY_TRUE
 
719
PLATFORM_FX100_FALSE
 
720
PLATFORM_FX100_TRUE
 
721
PLATFORM_FX10_FALSE
 
722
PLATFORM_FX10_TRUE
 
723
PLATFORM_K_FALSE
 
724
PLATFORM_K_TRUE
 
725
PLATFORM_ARM_FALSE
 
726
PLATFORM_ARM_TRUE
 
727
PLATFORM_NECSX_FALSE
 
728
PLATFORM_NECSX_TRUE
 
729
PLATFORM_MIC_FALSE
 
730
PLATFORM_MIC_TRUE
 
731
PLATFORM_CYGWIN_FALSE
 
732
PLATFORM_CYGWIN_TRUE
 
733
PLATFORM_MINGW_FALSE
 
734
PLATFORM_MINGW_TRUE
 
735
PLATFORM_MAC_FALSE
 
736
PLATFORM_MAC_TRUE
 
737
PLATFORM_SOLARIS_FALSE
 
738
PLATFORM_SOLARIS_TRUE
 
739
PLATFORM_LINUX_FALSE
 
740
PLATFORM_LINUX_TRUE
 
741
PLATFORM_CRAYXC_FALSE
 
742
PLATFORM_CRAYXC_TRUE
 
743
PLATFORM_CRAYXK_FALSE
 
744
PLATFORM_CRAYXK_TRUE
 
745
PLATFORM_CRAYXE_FALSE
 
746
PLATFORM_CRAYXE_TRUE
 
747
PLATFORM_CRAYXT_FALSE
 
748
PLATFORM_CRAYXT_TRUE
 
749
PLATFORM_BGQ_FALSE
 
750
PLATFORM_BGQ_TRUE
 
751
PLATFORM_BGP_FALSE
 
752
PLATFORM_BGP_TRUE
 
753
PLATFORM_BGL_FALSE
 
754
PLATFORM_BGL_TRUE
 
755
PLATFORM_AIX_FALSE
 
756
PLATFORM_AIX_TRUE
 
757
PLATFORM_ALTIX_FALSE
 
758
PLATFORM_ALTIX_TRUE
 
759
build_os
 
760
build_vendor
 
761
build_cpu
 
762
build
 
763
AFS_PACKAGE_BUILD_NAME
 
764
AFS_PACKAGE_BUILD_name
 
765
afs_srcdir
 
766
AFS_PACKAGE_TO_TOP
 
767
AFS_PACKAGE_NAME
 
768
AFS_PACKAGE_name
 
769
LIBS_FOR_BUILD
 
770
LDFLAGS_FOR_BUILD
 
771
CFLAGS_FOR_BUILD
 
772
CPPFLAGS_FOR_BUILD
 
773
CXX_FOR_BUILD
 
774
CC_FOR_BUILD
 
775
DOCDIR
 
776
PKGDATADIR
 
777
BACKEND_PKGLIBDIR
 
778
PKGLIBDIR
 
779
BINDIR
 
780
INCLUDEDIR
 
781
LIBRARY_INTERFACE_VERSION
 
782
target_alias
 
783
host_alias
 
784
build_alias
 
785
LIBS
 
786
ECHO_T
 
787
ECHO_N
 
788
ECHO_C
 
789
DEFS
 
790
mandir
 
791
localedir
 
792
libdir
 
793
psdir
 
794
pdfdir
 
795
dvidir
 
796
htmldir
 
797
infodir
 
798
docdir
 
799
oldincludedir
 
800
includedir
 
801
localstatedir
 
802
sharedstatedir
 
803
sysconfdir
 
804
datadir
 
805
datarootdir
 
806
libexecdir
 
807
sbindir
 
808
bindir
 
809
program_transform_name
 
810
prefix
 
811
exec_prefix
 
812
PACKAGE_URL
 
813
PACKAGE_BUGREPORT
 
814
PACKAGE_STRING
 
815
PACKAGE_VERSION
 
816
PACKAGE_TARNAME
 
817
PACKAGE_NAME
 
818
PATH_SEPARATOR
 
819
SHELL
 
820
MSG_FRONTEND_COMPRESSION
 
821
COMPRESSION
 
822
FRONTEND_LIBZ_HEADERS
 
823
FRONTEND_LIBZ_LIBS
 
824
FRONTEND_LIBZ_LDFLAGS'
 
825
ac_subst_files=''
 
826
ac_user_opts='
 
827
enable_option_checking
 
828
enable_silent_rules
 
829
enable_dependency_tracking
 
830
enable_shared
 
831
enable_static
 
832
with_pic
 
833
enable_fast_install
 
834
with_aix_soname
 
835
with_gnu_ld
 
836
with_sysroot
 
837
enable_libtool_lock
 
838
with_advanced_memory
 
839
with_memory_tracking
 
840
with_memory_tracing
 
841
with_frontend_zlib
 
842
'
 
843
      ac_precious_vars='build_alias
 
844
host_alias
 
845
target_alias
 
846
CC_FOR_BUILD
 
847
CXX_FOR_BUILD
 
848
CPPFLAGS_FOR_BUILD
 
849
CFLAGS_FOR_BUILD
 
850
LDFLAGS_FOR_BUILD
 
851
LIBS_FOR_BUILD
 
852
CC
 
853
CFLAGS
 
854
LDFLAGS
 
855
LIBS
 
856
CPPFLAGS
 
857
LT_SYS_LIBRARY_PATH
 
858
CPP
 
859
CXX
 
860
CXXFLAGS
 
861
CCC
 
862
CXXCPP'
 
863
 
 
864
 
 
865
# Initialize some variables set by options.
 
866
ac_init_help=
 
867
ac_init_version=false
 
868
ac_unrecognized_opts=
 
869
ac_unrecognized_sep=
 
870
# The variables have the same names as the options, with
 
871
# dashes changed to underlines.
 
872
cache_file=/dev/null
 
873
exec_prefix=NONE
 
874
no_create=
 
875
no_recursion=
 
876
prefix=NONE
 
877
program_prefix=NONE
 
878
program_suffix=NONE
 
879
program_transform_name=s,x,x,
 
880
silent=
 
881
site=
 
882
srcdir=
 
883
verbose=
 
884
x_includes=NONE
 
885
x_libraries=NONE
 
886
 
 
887
# Installation directory options.
 
888
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
889
# and all the variables that are supposed to be based on exec_prefix
 
890
# by default will actually change.
 
891
# Use braces instead of parens because sh, perl, etc. also accept them.
 
892
# (The list follows the same order as the GNU Coding Standards.)
 
893
bindir='${exec_prefix}/bin'
 
894
sbindir='${exec_prefix}/sbin'
 
895
libexecdir='${exec_prefix}/libexec'
 
896
datarootdir='${prefix}/share'
 
897
datadir='${datarootdir}'
 
898
sysconfdir='${prefix}/etc'
 
899
sharedstatedir='${prefix}/com'
 
900
localstatedir='${prefix}/var'
 
901
includedir='${prefix}/include'
 
902
oldincludedir='/usr/include'
 
903
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
904
infodir='${datarootdir}/info'
 
905
htmldir='${docdir}'
 
906
dvidir='${docdir}'
 
907
pdfdir='${docdir}'
 
908
psdir='${docdir}'
 
909
libdir='${exec_prefix}/lib'
 
910
localedir='${datarootdir}/locale'
 
911
mandir='${datarootdir}/man'
 
912
 
 
913
ac_prev=
 
914
ac_dashdash=
 
915
for ac_option
 
916
do
 
917
  # If the previous option needs an argument, assign it.
 
918
  if test -n "$ac_prev"; then
 
919
    eval $ac_prev=\$ac_option
 
920
    ac_prev=
 
921
    continue
 
922
  fi
 
923
 
 
924
  case $ac_option in
 
925
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
926
  *=)   ac_optarg= ;;
 
927
  *)    ac_optarg=yes ;;
 
928
  esac
 
929
 
 
930
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
931
 
 
932
  case $ac_dashdash$ac_option in
 
933
  --)
 
934
    ac_dashdash=yes ;;
 
935
 
 
936
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
937
    ac_prev=bindir ;;
 
938
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
939
    bindir=$ac_optarg ;;
 
940
 
 
941
  -build | --build | --buil | --bui | --bu)
 
942
    ac_prev=build_alias ;;
 
943
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
944
    build_alias=$ac_optarg ;;
 
945
 
 
946
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
947
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
948
    ac_prev=cache_file ;;
 
949
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
950
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
951
    cache_file=$ac_optarg ;;
 
952
 
 
953
  --config-cache | -C)
 
954
    cache_file=config.cache ;;
 
955
 
 
956
  -datadir | --datadir | --datadi | --datad)
 
957
    ac_prev=datadir ;;
 
958
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
959
    datadir=$ac_optarg ;;
 
960
 
 
961
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
962
  | --dataroo | --dataro | --datar)
 
963
    ac_prev=datarootdir ;;
 
964
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
965
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
966
    datarootdir=$ac_optarg ;;
 
967
 
 
968
  -disable-* | --disable-*)
 
969
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
970
    # Reject names that are not valid shell variable names.
 
971
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
972
      as_fn_error $? "invalid feature name: $ac_useropt"
 
973
    ac_useropt_orig=$ac_useropt
 
974
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
975
    case $ac_user_opts in
 
976
      *"
 
977
"enable_$ac_useropt"
 
978
"*) ;;
 
979
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
980
         ac_unrecognized_sep=', ';;
 
981
    esac
 
982
    eval enable_$ac_useropt=no ;;
 
983
 
 
984
  -docdir | --docdir | --docdi | --doc | --do)
 
985
    ac_prev=docdir ;;
 
986
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
987
    docdir=$ac_optarg ;;
 
988
 
 
989
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
990
    ac_prev=dvidir ;;
 
991
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
992
    dvidir=$ac_optarg ;;
 
993
 
 
994
  -enable-* | --enable-*)
 
995
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
996
    # Reject names that are not valid shell variable names.
 
997
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
998
      as_fn_error $? "invalid feature name: $ac_useropt"
 
999
    ac_useropt_orig=$ac_useropt
 
1000
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1001
    case $ac_user_opts in
 
1002
      *"
 
1003
"enable_$ac_useropt"
 
1004
"*) ;;
 
1005
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1006
         ac_unrecognized_sep=', ';;
 
1007
    esac
 
1008
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1009
 
 
1010
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1011
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1012
  | --exec | --exe | --ex)
 
1013
    ac_prev=exec_prefix ;;
 
1014
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1015
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1016
  | --exec=* | --exe=* | --ex=*)
 
1017
    exec_prefix=$ac_optarg ;;
 
1018
 
 
1019
  -gas | --gas | --ga | --g)
 
1020
    # Obsolete; use --with-gas.
 
1021
    with_gas=yes ;;
 
1022
 
 
1023
  -help | --help | --hel | --he | -h)
 
1024
    ac_init_help=long ;;
 
1025
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1026
    ac_init_help=recursive ;;
 
1027
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1028
    ac_init_help=short ;;
 
1029
 
 
1030
  -host | --host | --hos | --ho)
 
1031
    ac_prev=host_alias ;;
 
1032
  -host=* | --host=* | --hos=* | --ho=*)
 
1033
    host_alias=$ac_optarg ;;
 
1034
 
 
1035
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1036
    ac_prev=htmldir ;;
 
1037
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1038
  | --ht=*)
 
1039
    htmldir=$ac_optarg ;;
 
1040
 
 
1041
  -includedir | --includedir | --includedi | --included | --include \
 
1042
  | --includ | --inclu | --incl | --inc)
 
1043
    ac_prev=includedir ;;
 
1044
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1045
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1046
    includedir=$ac_optarg ;;
 
1047
 
 
1048
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1049
    ac_prev=infodir ;;
 
1050
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1051
    infodir=$ac_optarg ;;
 
1052
 
 
1053
  -libdir | --libdir | --libdi | --libd)
 
1054
    ac_prev=libdir ;;
 
1055
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1056
    libdir=$ac_optarg ;;
 
1057
 
 
1058
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1059
  | --libexe | --libex | --libe)
 
1060
    ac_prev=libexecdir ;;
 
1061
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1062
  | --libexe=* | --libex=* | --libe=*)
 
1063
    libexecdir=$ac_optarg ;;
 
1064
 
 
1065
  -localedir | --localedir | --localedi | --localed | --locale)
 
1066
    ac_prev=localedir ;;
 
1067
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1068
    localedir=$ac_optarg ;;
 
1069
 
 
1070
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1071
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1072
    ac_prev=localstatedir ;;
 
1073
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1074
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1075
    localstatedir=$ac_optarg ;;
 
1076
 
 
1077
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1078
    ac_prev=mandir ;;
 
1079
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1080
    mandir=$ac_optarg ;;
 
1081
 
 
1082
  -nfp | --nfp | --nf)
 
1083
    # Obsolete; use --without-fp.
 
1084
    with_fp=no ;;
 
1085
 
 
1086
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1087
  | --no-cr | --no-c | -n)
 
1088
    no_create=yes ;;
 
1089
 
 
1090
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1091
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1092
    no_recursion=yes ;;
 
1093
 
 
1094
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1095
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1096
  | --oldin | --oldi | --old | --ol | --o)
 
1097
    ac_prev=oldincludedir ;;
 
1098
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1099
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1100
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1101
    oldincludedir=$ac_optarg ;;
 
1102
 
 
1103
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1104
    ac_prev=prefix ;;
 
1105
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1106
    prefix=$ac_optarg ;;
 
1107
 
 
1108
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1109
  | --program-pre | --program-pr | --program-p)
 
1110
    ac_prev=program_prefix ;;
 
1111
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1112
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1113
    program_prefix=$ac_optarg ;;
 
1114
 
 
1115
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1116
  | --program-suf | --program-su | --program-s)
 
1117
    ac_prev=program_suffix ;;
 
1118
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1119
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1120
    program_suffix=$ac_optarg ;;
 
1121
 
 
1122
  -program-transform-name | --program-transform-name \
 
1123
  | --program-transform-nam | --program-transform-na \
 
1124
  | --program-transform-n | --program-transform- \
 
1125
  | --program-transform | --program-transfor \
 
1126
  | --program-transfo | --program-transf \
 
1127
  | --program-trans | --program-tran \
 
1128
  | --progr-tra | --program-tr | --program-t)
 
1129
    ac_prev=program_transform_name ;;
 
1130
  -program-transform-name=* | --program-transform-name=* \
 
1131
  | --program-transform-nam=* | --program-transform-na=* \
 
1132
  | --program-transform-n=* | --program-transform-=* \
 
1133
  | --program-transform=* | --program-transfor=* \
 
1134
  | --program-transfo=* | --program-transf=* \
 
1135
  | --program-trans=* | --program-tran=* \
 
1136
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1137
    program_transform_name=$ac_optarg ;;
 
1138
 
 
1139
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1140
    ac_prev=pdfdir ;;
 
1141
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1142
    pdfdir=$ac_optarg ;;
 
1143
 
 
1144
  -psdir | --psdir | --psdi | --psd | --ps)
 
1145
    ac_prev=psdir ;;
 
1146
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1147
    psdir=$ac_optarg ;;
 
1148
 
 
1149
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1150
  | -silent | --silent | --silen | --sile | --sil)
 
1151
    silent=yes ;;
 
1152
 
 
1153
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1154
    ac_prev=sbindir ;;
 
1155
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1156
  | --sbi=* | --sb=*)
 
1157
    sbindir=$ac_optarg ;;
 
1158
 
 
1159
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1160
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1161
  | --sharedst | --shareds | --shared | --share | --shar \
 
1162
  | --sha | --sh)
 
1163
    ac_prev=sharedstatedir ;;
 
1164
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1165
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1166
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1167
  | --sha=* | --sh=*)
 
1168
    sharedstatedir=$ac_optarg ;;
 
1169
 
 
1170
  -site | --site | --sit)
 
1171
    ac_prev=site ;;
 
1172
  -site=* | --site=* | --sit=*)
 
1173
    site=$ac_optarg ;;
 
1174
 
 
1175
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1176
    ac_prev=srcdir ;;
 
1177
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1178
    srcdir=$ac_optarg ;;
 
1179
 
 
1180
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1181
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1182
    ac_prev=sysconfdir ;;
 
1183
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1184
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1185
    sysconfdir=$ac_optarg ;;
 
1186
 
 
1187
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1188
    ac_prev=target_alias ;;
 
1189
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1190
    target_alias=$ac_optarg ;;
 
1191
 
 
1192
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1193
    verbose=yes ;;
 
1194
 
 
1195
  -version | --version | --versio | --versi | --vers | -V)
 
1196
    ac_init_version=: ;;
 
1197
 
 
1198
  -with-* | --with-*)
 
1199
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1200
    # Reject names that are not valid shell variable names.
 
1201
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1202
      as_fn_error $? "invalid package name: $ac_useropt"
 
1203
    ac_useropt_orig=$ac_useropt
 
1204
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1205
    case $ac_user_opts in
 
1206
      *"
 
1207
"with_$ac_useropt"
 
1208
"*) ;;
 
1209
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1210
         ac_unrecognized_sep=', ';;
 
1211
    esac
 
1212
    eval with_$ac_useropt=\$ac_optarg ;;
 
1213
 
 
1214
  -without-* | --without-*)
 
1215
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1216
    # Reject names that are not valid shell variable names.
 
1217
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1218
      as_fn_error $? "invalid package name: $ac_useropt"
 
1219
    ac_useropt_orig=$ac_useropt
 
1220
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1221
    case $ac_user_opts in
 
1222
      *"
 
1223
"with_$ac_useropt"
 
1224
"*) ;;
 
1225
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1226
         ac_unrecognized_sep=', ';;
 
1227
    esac
 
1228
    eval with_$ac_useropt=no ;;
 
1229
 
 
1230
  --x)
 
1231
    # Obsolete; use --with-x.
 
1232
    with_x=yes ;;
 
1233
 
 
1234
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1235
  | --x-incl | --x-inc | --x-in | --x-i)
 
1236
    ac_prev=x_includes ;;
 
1237
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1238
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1239
    x_includes=$ac_optarg ;;
 
1240
 
 
1241
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1242
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1243
    ac_prev=x_libraries ;;
 
1244
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1245
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1246
    x_libraries=$ac_optarg ;;
 
1247
 
 
1248
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1249
Try \`$0 --help' for more information"
 
1250
    ;;
 
1251
 
 
1252
  *=*)
 
1253
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1254
    # Reject names that are not valid shell variable names.
 
1255
    case $ac_envvar in #(
 
1256
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1257
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1258
    esac
 
1259
    eval $ac_envvar=\$ac_optarg
 
1260
    export $ac_envvar ;;
 
1261
 
 
1262
  *)
 
1263
    # FIXME: should be removed in autoconf 3.0.
 
1264
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1265
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1266
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1267
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1268
    ;;
 
1269
 
 
1270
  esac
 
1271
done
 
1272
 
 
1273
if test -n "$ac_prev"; then
 
1274
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1275
  as_fn_error $? "missing argument to $ac_option"
 
1276
fi
 
1277
 
 
1278
if test -n "$ac_unrecognized_opts"; then
 
1279
  case $enable_option_checking in
 
1280
    no) ;;
 
1281
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1282
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1283
  esac
 
1284
fi
 
1285
 
 
1286
# Check all directory arguments for consistency.
 
1287
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1288
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1289
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1290
                libdir localedir mandir
 
1291
do
 
1292
  eval ac_val=\$$ac_var
 
1293
  # Remove trailing slashes.
 
1294
  case $ac_val in
 
1295
    */ )
 
1296
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1297
      eval $ac_var=\$ac_val;;
 
1298
  esac
 
1299
  # Be sure to have absolute directory names.
 
1300
  case $ac_val in
 
1301
    [\\/$]* | ?:[\\/]* )  continue;;
 
1302
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1303
  esac
 
1304
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1305
done
 
1306
 
 
1307
# There might be people who depend on the old broken behavior: `$host'
 
1308
# used to hold the argument of --host etc.
 
1309
# FIXME: To remove some day.
 
1310
build=$build_alias
 
1311
host=$host_alias
 
1312
target=$target_alias
 
1313
 
 
1314
# FIXME: To remove some day.
 
1315
if test "x$host_alias" != x; then
 
1316
  if test "x$build_alias" = x; then
 
1317
    cross_compiling=maybe
 
1318
  elif test "x$build_alias" != "x$host_alias"; then
 
1319
    cross_compiling=yes
 
1320
  fi
 
1321
fi
 
1322
 
 
1323
ac_tool_prefix=
 
1324
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1325
 
 
1326
test "$silent" = yes && exec 6>/dev/null
 
1327
 
 
1328
 
 
1329
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1330
ac_ls_di=`ls -di .` &&
 
1331
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1332
  as_fn_error $? "working directory cannot be determined"
 
1333
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1334
  as_fn_error $? "pwd does not report name of working directory"
 
1335
 
 
1336
 
 
1337
# Find the source files, if location was not specified.
 
1338
if test -z "$srcdir"; then
 
1339
  ac_srcdir_defaulted=yes
 
1340
  # Try the directory containing this script, then the parent directory.
 
1341
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1342
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1343
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1344
         X"$as_myself" : 'X\(//\)$' \| \
 
1345
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1346
$as_echo X"$as_myself" |
 
1347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1348
            s//\1/
 
1349
            q
 
1350
          }
 
1351
          /^X\(\/\/\)[^/].*/{
 
1352
            s//\1/
 
1353
            q
 
1354
          }
 
1355
          /^X\(\/\/\)$/{
 
1356
            s//\1/
 
1357
            q
 
1358
          }
 
1359
          /^X\(\/\).*/{
 
1360
            s//\1/
 
1361
            q
 
1362
          }
 
1363
          s/.*/./; q'`
 
1364
  srcdir=$ac_confdir
 
1365
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1366
    srcdir=..
 
1367
  fi
 
1368
else
 
1369
  ac_srcdir_defaulted=no
 
1370
fi
 
1371
if test ! -r "$srcdir/$ac_unique_file"; then
 
1372
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1373
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1374
fi
 
1375
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1376
ac_abs_confdir=`(
 
1377
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1378
        pwd)`
 
1379
# When building in place, set srcdir=.
 
1380
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1381
  srcdir=.
 
1382
fi
 
1383
# Remove unnecessary trailing slashes from srcdir.
 
1384
# Double slashes in file names in object file debugging info
 
1385
# mess up M-x gdb in Emacs.
 
1386
case $srcdir in
 
1387
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1388
esac
 
1389
for ac_var in $ac_precious_vars; do
 
1390
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1391
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1392
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1393
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1394
done
 
1395
 
 
1396
#
 
1397
# Report the --help message.
 
1398
#
 
1399
if test "$ac_init_help" = "long"; then
 
1400
  # Omit some internal or obsolete options to make the list less imposing.
 
1401
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1402
  cat <<_ACEOF
 
1403
\`configure' configures CubeW 4.4-RC1 to adapt to many kinds of systems.
 
1404
 
 
1405
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1406
 
 
1407
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1408
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1409
 
 
1410
Defaults for the options are specified in brackets.
 
1411
 
 
1412
Configuration:
 
1413
  -h, --help              display this help and exit
 
1414
      --help=short        display options specific to this package
 
1415
      --help=recursive    display the short help of all the included packages
 
1416
  -V, --version           display version information and exit
 
1417
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1418
      --cache-file=FILE   cache test results in FILE [disabled]
 
1419
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1420
  -n, --no-create         do not create output files
 
1421
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1422
 
 
1423
Installation directories:
 
1424
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1425
                          [$ac_default_prefix]
 
1426
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1427
                          [PREFIX]
 
1428
 
 
1429
By default, \`make install' will install all the files in
 
1430
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1431
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1432
for instance \`--prefix=\$HOME'.
 
1433
 
 
1434
For better control, use the options below.
 
1435
 
 
1436
Fine tuning of the installation directories:
 
1437
  --bindir=DIR            user executables [EPREFIX/bin]
 
1438
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1439
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1440
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1441
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1442
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1443
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1444
  --includedir=DIR        C header files [PREFIX/include]
 
1445
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1446
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1447
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1448
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1449
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1450
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1451
  --docdir=DIR            documentation root [DATAROOTDIR/doc/cubew]
 
1452
  --htmldir=DIR           html documentation [DOCDIR]
 
1453
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1454
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1455
  --psdir=DIR             ps documentation [DOCDIR]
 
1456
_ACEOF
 
1457
 
 
1458
  cat <<\_ACEOF
 
1459
 
 
1460
Program names:
 
1461
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1462
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1463
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1464
 
 
1465
System types:
 
1466
  --build=BUILD     configure for building on BUILD [guessed]
 
1467
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1468
_ACEOF
 
1469
fi
 
1470
 
 
1471
if test -n "$ac_init_help"; then
 
1472
  case $ac_init_help in
 
1473
     short | recursive ) echo "Configuration of CubeW 4.4-RC1:";;
 
1474
   esac
 
1475
  cat <<\_ACEOF
 
1476
 
 
1477
Optional Features:
 
1478
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1479
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1480
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1481
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1482
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1483
  --enable-dependency-tracking
 
1484
                          do not reject slow dependency extractors
 
1485
  --disable-dependency-tracking
 
1486
                          speeds up one-time build
 
1487
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1488
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1489
  --enable-fast-install[=PKGS]
 
1490
                          optimize for fast installation [default=yes]
 
1491
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1492
 
 
1493
Optional Packages:
 
1494
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1495
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1496
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1497
                          both]
 
1498
  --with-aix-soname=aix|svr4|both
 
1499
                          shared library versioning (aka "SONAME") variant to
 
1500
                          provide on AIX, [default=aix].
 
1501
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1502
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
 
1503
                          compiler's sysroot if not specified).
 
1504
  --with-advanced-memory | --without-advanced-memory
 
1505
                          Enables advanced memory features such as usage of an
 
1506
                          external memory allocator.
 
1507
  --with-memory-tracking | --without-memory-tracking
 
1508
                          Enables internal memory tracking (reguires
 
1509
                          --with-advanced-memory).
 
1510
  --with-memory-tracing | --without-memory-tracing
 
1511
                          Enables internal memory tracing (reguires
 
1512
                          --with-advanced-memory), more intensive memory usage
 
1513
                          report.
 
1514
  --with-frontend-zlib="path to frontrend zlib"
 
1515
                          Defines the zlib library, used by frontend c-writer
 
1516
                          library
 
1517
 
 
1518
Some influential environment variables:
 
1519
  CC_FOR_BUILD
 
1520
              C compiler command for the frontend build
 
1521
  CXX_FOR_BUILD
 
1522
              C++ compiler command for the frontend build
 
1523
  CPPFLAGS_FOR_BUILD
 
1524
              (Objective) C/C++ preprocessor flags for the frontend build,
 
1525
              e.g. -I<include dir> if you have headers in a nonstandard
 
1526
              directory <include dir>
 
1527
  CFLAGS_FOR_BUILD
 
1528
              C compiler flags for the frontend build
 
1529
  LDFLAGS_FOR_BUILD
 
1530
              linker flags for the frontend build, e.g. -L<lib dir> if you
 
1531
              have libraries in a nonstandard directory <lib dir>
 
1532
  LIBS_FOR_BUILD
 
1533
              libraries to pass to the linker for the frontend build, e.g.
 
1534
              -l<library>
 
1535
  CC          C compiler command
 
1536
  CFLAGS      C compiler flags
 
1537
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1538
              nonstandard directory <lib dir>
 
1539
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1540
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1541
              you have headers in a nonstandard directory <include dir>
 
1542
  LT_SYS_LIBRARY_PATH
 
1543
              User-defined run-time library search path.
 
1544
  CPP         C preprocessor
 
1545
  CXX         C++ compiler command
 
1546
  CXXFLAGS    C++ compiler flags
 
1547
  CXXCPP      C++ preprocessor
 
1548
 
 
1549
Use these variables to override the choices made by `configure' or to help
 
1550
it to find libraries and programs with nonstandard names/locations.
 
1551
 
 
1552
Report bugs to <scalasca@fz-juelich.de>.
 
1553
CubeW home page: <http://www.scalasca.org>.
 
1554
_ACEOF
 
1555
ac_status=$?
 
1556
fi
 
1557
 
 
1558
if test "$ac_init_help" = "recursive"; then
 
1559
  # If there are subdirs, report their specific --help.
 
1560
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1561
    test -d "$ac_dir" ||
 
1562
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1563
      continue
 
1564
    ac_builddir=.
 
1565
 
 
1566
case "$ac_dir" in
 
1567
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1568
*)
 
1569
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1570
  # A ".." for each directory in $ac_dir_suffix.
 
1571
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1572
  case $ac_top_builddir_sub in
 
1573
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1574
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1575
  esac ;;
 
1576
esac
 
1577
ac_abs_top_builddir=$ac_pwd
 
1578
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1579
# for backward compatibility:
 
1580
ac_top_builddir=$ac_top_build_prefix
 
1581
 
 
1582
case $srcdir in
 
1583
  .)  # We are building in place.
 
1584
    ac_srcdir=.
 
1585
    ac_top_srcdir=$ac_top_builddir_sub
 
1586
    ac_abs_top_srcdir=$ac_pwd ;;
 
1587
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1588
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1589
    ac_top_srcdir=$srcdir
 
1590
    ac_abs_top_srcdir=$srcdir ;;
 
1591
  *) # Relative name.
 
1592
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1593
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1594
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1595
esac
 
1596
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1597
 
 
1598
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1599
    # Check for guested configure.
 
1600
    if test -f "$ac_srcdir/configure.gnu"; then
 
1601
      echo &&
 
1602
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1603
    elif test -f "$ac_srcdir/configure"; then
 
1604
      echo &&
 
1605
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1606
    else
 
1607
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1608
    fi || ac_status=$?
 
1609
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1610
  done
 
1611
fi
 
1612
 
 
1613
test -n "$ac_init_help" && exit $ac_status
 
1614
if $ac_init_version; then
 
1615
  cat <<\_ACEOF
 
1616
CubeW configure 4.4-RC1
 
1617
generated by GNU Autoconf 2.69
 
1618
 
 
1619
Copyright (C) 2012 Free Software Foundation, Inc.
 
1620
This configure script is free software; the Free Software Foundation
 
1621
gives unlimited permission to copy, distribute and modify it.
 
1622
_ACEOF
 
1623
  exit
 
1624
fi
 
1625
 
 
1626
## ------------------------ ##
 
1627
## Autoconf initialization. ##
 
1628
## ------------------------ ##
 
1629
 
 
1630
# ac_fn_c_try_compile LINENO
 
1631
# --------------------------
 
1632
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1633
ac_fn_c_try_compile ()
 
1634
{
 
1635
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1636
  rm -f conftest.$ac_objext
 
1637
  if { { ac_try="$ac_compile"
 
1638
case "(($ac_try" in
 
1639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1640
  *) ac_try_echo=$ac_try;;
 
1641
esac
 
1642
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1643
$as_echo "$ac_try_echo"; } >&5
 
1644
  (eval "$ac_compile") 2>conftest.err
 
1645
  ac_status=$?
 
1646
  if test -s conftest.err; then
 
1647
    grep -v '^ *+' conftest.err >conftest.er1
 
1648
    cat conftest.er1 >&5
 
1649
    mv -f conftest.er1 conftest.err
 
1650
  fi
 
1651
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1652
  test $ac_status = 0; } && {
 
1653
         test -z "$ac_c_werror_flag" ||
 
1654
         test ! -s conftest.err
 
1655
       } && test -s conftest.$ac_objext; then :
 
1656
  ac_retval=0
 
1657
else
 
1658
  $as_echo "$as_me: failed program was:" >&5
 
1659
sed 's/^/| /' conftest.$ac_ext >&5
 
1660
 
 
1661
        ac_retval=1
 
1662
fi
 
1663
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1664
  as_fn_set_status $ac_retval
 
1665
 
 
1666
} # ac_fn_c_try_compile
 
1667
 
 
1668
# ac_fn_c_try_link LINENO
 
1669
# -----------------------
 
1670
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1671
ac_fn_c_try_link ()
 
1672
{
 
1673
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1674
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1675
  if { { ac_try="$ac_link"
 
1676
case "(($ac_try" in
 
1677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1678
  *) ac_try_echo=$ac_try;;
 
1679
esac
 
1680
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1681
$as_echo "$ac_try_echo"; } >&5
 
1682
  (eval "$ac_link") 2>conftest.err
 
1683
  ac_status=$?
 
1684
  if test -s conftest.err; then
 
1685
    grep -v '^ *+' conftest.err >conftest.er1
 
1686
    cat conftest.er1 >&5
 
1687
    mv -f conftest.er1 conftest.err
 
1688
  fi
 
1689
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1690
  test $ac_status = 0; } && {
 
1691
         test -z "$ac_c_werror_flag" ||
 
1692
         test ! -s conftest.err
 
1693
       } && test -s conftest$ac_exeext && {
 
1694
         test "$cross_compiling" = yes ||
 
1695
         test -x conftest$ac_exeext
 
1696
       }; then :
 
1697
  ac_retval=0
 
1698
else
 
1699
  $as_echo "$as_me: failed program was:" >&5
 
1700
sed 's/^/| /' conftest.$ac_ext >&5
 
1701
 
 
1702
        ac_retval=1
 
1703
fi
 
1704
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1705
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1706
  # interfere with the next link command; also delete a directory that is
 
1707
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1708
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1709
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1710
  as_fn_set_status $ac_retval
 
1711
 
 
1712
} # ac_fn_c_try_link
 
1713
 
 
1714
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1715
# -------------------------------------------------------
 
1716
# Tests whether HEADER exists and can be compiled using the include files in
 
1717
# INCLUDES, setting the cache variable VAR accordingly.
 
1718
ac_fn_c_check_header_compile ()
 
1719
{
 
1720
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1721
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1722
$as_echo_n "checking for $2... " >&6; }
 
1723
if eval \${$3+:} false; then :
 
1724
  $as_echo_n "(cached) " >&6
 
1725
else
 
1726
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1727
/* end confdefs.h.  */
 
1728
$4
 
1729
#include <$2>
 
1730
_ACEOF
 
1731
if ac_fn_c_try_compile "$LINENO"; then :
 
1732
  eval "$3=yes"
 
1733
else
 
1734
  eval "$3=no"
 
1735
fi
 
1736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1737
fi
 
1738
eval ac_res=\$$3
 
1739
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1740
$as_echo "$ac_res" >&6; }
 
1741
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1742
 
 
1743
} # ac_fn_c_check_header_compile
 
1744
 
 
1745
# ac_fn_c_try_cpp LINENO
 
1746
# ----------------------
 
1747
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1748
ac_fn_c_try_cpp ()
 
1749
{
 
1750
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1751
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1752
case "(($ac_try" in
 
1753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1754
  *) ac_try_echo=$ac_try;;
 
1755
esac
 
1756
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1757
$as_echo "$ac_try_echo"; } >&5
 
1758
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1759
  ac_status=$?
 
1760
  if test -s conftest.err; then
 
1761
    grep -v '^ *+' conftest.err >conftest.er1
 
1762
    cat conftest.er1 >&5
 
1763
    mv -f conftest.er1 conftest.err
 
1764
  fi
 
1765
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1766
  test $ac_status = 0; } > conftest.i && {
 
1767
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1768
         test ! -s conftest.err
 
1769
       }; then :
 
1770
  ac_retval=0
 
1771
else
 
1772
  $as_echo "$as_me: failed program was:" >&5
 
1773
sed 's/^/| /' conftest.$ac_ext >&5
 
1774
 
 
1775
    ac_retval=1
 
1776
fi
 
1777
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1778
  as_fn_set_status $ac_retval
 
1779
 
 
1780
} # ac_fn_c_try_cpp
 
1781
 
 
1782
# ac_fn_c_try_run LINENO
 
1783
# ----------------------
 
1784
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1785
# that executables *can* be run.
 
1786
ac_fn_c_try_run ()
 
1787
{
 
1788
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1789
  if { { ac_try="$ac_link"
 
1790
case "(($ac_try" in
 
1791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1792
  *) ac_try_echo=$ac_try;;
 
1793
esac
 
1794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1795
$as_echo "$ac_try_echo"; } >&5
 
1796
  (eval "$ac_link") 2>&5
 
1797
  ac_status=$?
 
1798
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1799
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1800
  { { case "(($ac_try" in
 
1801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1802
  *) ac_try_echo=$ac_try;;
 
1803
esac
 
1804
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1805
$as_echo "$ac_try_echo"; } >&5
 
1806
  (eval "$ac_try") 2>&5
 
1807
  ac_status=$?
 
1808
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1809
  test $ac_status = 0; }; }; then :
 
1810
  ac_retval=0
 
1811
else
 
1812
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1813
       $as_echo "$as_me: failed program was:" >&5
 
1814
sed 's/^/| /' conftest.$ac_ext >&5
 
1815
 
 
1816
       ac_retval=$ac_status
 
1817
fi
 
1818
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1819
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1820
  as_fn_set_status $ac_retval
 
1821
 
 
1822
} # ac_fn_c_try_run
 
1823
 
 
1824
# ac_fn_c_check_func LINENO FUNC VAR
 
1825
# ----------------------------------
 
1826
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1827
ac_fn_c_check_func ()
 
1828
{
 
1829
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1831
$as_echo_n "checking for $2... " >&6; }
 
1832
if eval \${$3+:} false; then :
 
1833
  $as_echo_n "(cached) " >&6
 
1834
else
 
1835
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1836
/* end confdefs.h.  */
 
1837
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1838
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1839
#define $2 innocuous_$2
 
1840
 
 
1841
/* System header to define __stub macros and hopefully few prototypes,
 
1842
    which can conflict with char $2 (); below.
 
1843
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1844
    <limits.h> exists even on freestanding compilers.  */
 
1845
 
 
1846
#ifdef __STDC__
 
1847
# include <limits.h>
 
1848
#else
 
1849
# include <assert.h>
 
1850
#endif
 
1851
 
 
1852
#undef $2
 
1853
 
 
1854
/* Override any GCC internal prototype to avoid an error.
 
1855
   Use char because int might match the return type of a GCC
 
1856
   builtin and then its argument prototype would still apply.  */
 
1857
#ifdef __cplusplus
 
1858
extern "C"
 
1859
#endif
 
1860
char $2 ();
 
1861
/* The GNU C library defines this for functions which it implements
 
1862
    to always fail with ENOSYS.  Some functions are actually named
 
1863
    something starting with __ and the normal name is an alias.  */
 
1864
#if defined __stub_$2 || defined __stub___$2
 
1865
choke me
 
1866
#endif
 
1867
 
 
1868
int
 
1869
main ()
 
1870
{
 
1871
return $2 ();
 
1872
  ;
 
1873
  return 0;
 
1874
}
 
1875
_ACEOF
 
1876
if ac_fn_c_try_link "$LINENO"; then :
 
1877
  eval "$3=yes"
 
1878
else
 
1879
  eval "$3=no"
 
1880
fi
 
1881
rm -f core conftest.err conftest.$ac_objext \
 
1882
    conftest$ac_exeext conftest.$ac_ext
 
1883
fi
 
1884
eval ac_res=\$$3
 
1885
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1886
$as_echo "$ac_res" >&6; }
 
1887
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1888
 
 
1889
} # ac_fn_c_check_func
 
1890
 
 
1891
# ac_fn_cxx_try_compile LINENO
 
1892
# ----------------------------
 
1893
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1894
ac_fn_cxx_try_compile ()
 
1895
{
 
1896
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1897
  rm -f conftest.$ac_objext
 
1898
  if { { ac_try="$ac_compile"
 
1899
case "(($ac_try" in
 
1900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1901
  *) ac_try_echo=$ac_try;;
 
1902
esac
 
1903
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1904
$as_echo "$ac_try_echo"; } >&5
 
1905
  (eval "$ac_compile") 2>conftest.err
 
1906
  ac_status=$?
 
1907
  if test -s conftest.err; then
 
1908
    grep -v '^ *+' conftest.err >conftest.er1
 
1909
    cat conftest.er1 >&5
 
1910
    mv -f conftest.er1 conftest.err
 
1911
  fi
 
1912
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1913
  test $ac_status = 0; } && {
 
1914
         test -z "$ac_cxx_werror_flag" ||
 
1915
         test ! -s conftest.err
 
1916
       } && test -s conftest.$ac_objext; then :
 
1917
  ac_retval=0
 
1918
else
 
1919
  $as_echo "$as_me: failed program was:" >&5
 
1920
sed 's/^/| /' conftest.$ac_ext >&5
 
1921
 
 
1922
        ac_retval=1
 
1923
fi
 
1924
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1925
  as_fn_set_status $ac_retval
 
1926
 
 
1927
} # ac_fn_cxx_try_compile
 
1928
 
 
1929
# ac_fn_cxx_try_cpp LINENO
 
1930
# ------------------------
 
1931
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1932
ac_fn_cxx_try_cpp ()
 
1933
{
 
1934
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1935
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1936
case "(($ac_try" in
 
1937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1938
  *) ac_try_echo=$ac_try;;
 
1939
esac
 
1940
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1941
$as_echo "$ac_try_echo"; } >&5
 
1942
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1943
  ac_status=$?
 
1944
  if test -s conftest.err; then
 
1945
    grep -v '^ *+' conftest.err >conftest.er1
 
1946
    cat conftest.er1 >&5
 
1947
    mv -f conftest.er1 conftest.err
 
1948
  fi
 
1949
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1950
  test $ac_status = 0; } > conftest.i && {
 
1951
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1952
         test ! -s conftest.err
 
1953
       }; then :
 
1954
  ac_retval=0
 
1955
else
 
1956
  $as_echo "$as_me: failed program was:" >&5
 
1957
sed 's/^/| /' conftest.$ac_ext >&5
 
1958
 
 
1959
    ac_retval=1
 
1960
fi
 
1961
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1962
  as_fn_set_status $ac_retval
 
1963
 
 
1964
} # ac_fn_cxx_try_cpp
 
1965
 
 
1966
# ac_fn_cxx_try_link LINENO
 
1967
# -------------------------
 
1968
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1969
ac_fn_cxx_try_link ()
 
1970
{
 
1971
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1972
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1973
  if { { ac_try="$ac_link"
 
1974
case "(($ac_try" in
 
1975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1976
  *) ac_try_echo=$ac_try;;
 
1977
esac
 
1978
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1979
$as_echo "$ac_try_echo"; } >&5
 
1980
  (eval "$ac_link") 2>conftest.err
 
1981
  ac_status=$?
 
1982
  if test -s conftest.err; then
 
1983
    grep -v '^ *+' conftest.err >conftest.er1
 
1984
    cat conftest.er1 >&5
 
1985
    mv -f conftest.er1 conftest.err
 
1986
  fi
 
1987
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1988
  test $ac_status = 0; } && {
 
1989
         test -z "$ac_cxx_werror_flag" ||
 
1990
         test ! -s conftest.err
 
1991
       } && test -s conftest$ac_exeext && {
 
1992
         test "$cross_compiling" = yes ||
 
1993
         test -x conftest$ac_exeext
 
1994
       }; then :
 
1995
  ac_retval=0
 
1996
else
 
1997
  $as_echo "$as_me: failed program was:" >&5
 
1998
sed 's/^/| /' conftest.$ac_ext >&5
 
1999
 
 
2000
        ac_retval=1
 
2001
fi
 
2002
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2003
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2004
  # interfere with the next link command; also delete a directory that is
 
2005
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2006
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2007
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2008
  as_fn_set_status $ac_retval
 
2009
 
 
2010
} # ac_fn_cxx_try_link
 
2011
 
 
2012
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2013
# -------------------------------------------------------
 
2014
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2015
# the include files in INCLUDES and setting the cache variable VAR
 
2016
# accordingly.
 
2017
ac_fn_c_check_header_mongrel ()
 
2018
{
 
2019
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2020
  if eval \${$3+:} false; then :
 
2021
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2022
$as_echo_n "checking for $2... " >&6; }
 
2023
if eval \${$3+:} false; then :
 
2024
  $as_echo_n "(cached) " >&6
 
2025
fi
 
2026
eval ac_res=\$$3
 
2027
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2028
$as_echo "$ac_res" >&6; }
 
2029
else
 
2030
  # Is the header compilable?
 
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2032
$as_echo_n "checking $2 usability... " >&6; }
 
2033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2034
/* end confdefs.h.  */
 
2035
$4
 
2036
#include <$2>
 
2037
_ACEOF
 
2038
if ac_fn_c_try_compile "$LINENO"; then :
 
2039
  ac_header_compiler=yes
 
2040
else
 
2041
  ac_header_compiler=no
 
2042
fi
 
2043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2045
$as_echo "$ac_header_compiler" >&6; }
 
2046
 
 
2047
# Is the header present?
 
2048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2049
$as_echo_n "checking $2 presence... " >&6; }
 
2050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2051
/* end confdefs.h.  */
 
2052
#include <$2>
 
2053
_ACEOF
 
2054
if ac_fn_c_try_cpp "$LINENO"; then :
 
2055
  ac_header_preproc=yes
 
2056
else
 
2057
  ac_header_preproc=no
 
2058
fi
 
2059
rm -f conftest.err conftest.i conftest.$ac_ext
 
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2061
$as_echo "$ac_header_preproc" >&6; }
 
2062
 
 
2063
# So?  What about this header?
 
2064
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2065
  yes:no: )
 
2066
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2067
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2068
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2069
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2070
    ;;
 
2071
  no:yes:* )
 
2072
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2073
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2074
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2075
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2076
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2077
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2078
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2079
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2080
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2081
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2082
( $as_echo "## ------------------------------------- ##
 
2083
## Report this to scalasca@fz-juelich.de ##
 
2084
## ------------------------------------- ##"
 
2085
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2086
    ;;
 
2087
esac
 
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2089
$as_echo_n "checking for $2... " >&6; }
 
2090
if eval \${$3+:} false; then :
 
2091
  $as_echo_n "(cached) " >&6
 
2092
else
 
2093
  eval "$3=\$ac_header_compiler"
 
2094
fi
 
2095
eval ac_res=\$$3
 
2096
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2097
$as_echo "$ac_res" >&6; }
 
2098
fi
 
2099
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2100
 
 
2101
} # ac_fn_c_check_header_mongrel
 
2102
cat >config.log <<_ACEOF
 
2103
This file contains any messages produced by compilers while
 
2104
running configure, to aid debugging if configure makes a mistake.
 
2105
 
 
2106
It was created by CubeW $as_me 4.4-RC1, which was
 
2107
generated by GNU Autoconf 2.69.  Invocation command line was
 
2108
 
 
2109
  $ $0 $@
 
2110
 
 
2111
_ACEOF
 
2112
exec 5>>config.log
 
2113
{
 
2114
cat <<_ASUNAME
 
2115
## --------- ##
 
2116
## Platform. ##
 
2117
## --------- ##
 
2118
 
 
2119
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2120
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2121
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2122
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2123
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2124
 
 
2125
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2126
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2127
 
 
2128
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2129
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2130
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2131
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2132
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2133
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2134
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2135
 
 
2136
_ASUNAME
 
2137
 
 
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2139
for as_dir in $PATH
 
2140
do
 
2141
  IFS=$as_save_IFS
 
2142
  test -z "$as_dir" && as_dir=.
 
2143
    $as_echo "PATH: $as_dir"
 
2144
  done
 
2145
IFS=$as_save_IFS
 
2146
 
 
2147
} >&5
 
2148
 
 
2149
cat >&5 <<_ACEOF
 
2150
 
 
2151
 
 
2152
## ----------- ##
 
2153
## Core tests. ##
 
2154
## ----------- ##
 
2155
 
 
2156
_ACEOF
 
2157
 
 
2158
 
 
2159
# Keep a trace of the command line.
 
2160
# Strip out --no-create and --no-recursion so they do not pile up.
 
2161
# Strip out --silent because we don't want to record it for future runs.
 
2162
# Also quote any args containing shell meta-characters.
 
2163
# Make two passes to allow for proper duplicate-argument suppression.
 
2164
ac_configure_args=
 
2165
ac_configure_args0=
 
2166
ac_configure_args1=
 
2167
ac_must_keep_next=false
 
2168
for ac_pass in 1 2
 
2169
do
 
2170
  for ac_arg
 
2171
  do
 
2172
    case $ac_arg in
 
2173
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2174
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2175
    | -silent | --silent | --silen | --sile | --sil)
 
2176
      continue ;;
 
2177
    *\'*)
 
2178
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2179
    esac
 
2180
    case $ac_pass in
 
2181
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2182
    2)
 
2183
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2184
      if test $ac_must_keep_next = true; then
 
2185
        ac_must_keep_next=false # Got value, back to normal.
 
2186
      else
 
2187
        case $ac_arg in
 
2188
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2189
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2190
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2191
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2192
            case "$ac_configure_args0 " in
 
2193
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2194
            esac
 
2195
            ;;
 
2196
          -* ) ac_must_keep_next=true ;;
 
2197
        esac
 
2198
      fi
 
2199
      as_fn_append ac_configure_args " '$ac_arg'"
 
2200
      ;;
 
2201
    esac
 
2202
  done
 
2203
done
 
2204
{ ac_configure_args0=; unset ac_configure_args0;}
 
2205
{ ac_configure_args1=; unset ac_configure_args1;}
 
2206
 
 
2207
# When interrupted or exit'd, cleanup temporary files, and complete
 
2208
# config.log.  We remove comments because anyway the quotes in there
 
2209
# would cause problems or look ugly.
 
2210
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2211
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2212
trap 'exit_status=$?
 
2213
  # Save into config.log some information that might help in debugging.
 
2214
  {
 
2215
    echo
 
2216
 
 
2217
    $as_echo "## ---------------- ##
 
2218
## Cache variables. ##
 
2219
## ---------------- ##"
 
2220
    echo
 
2221
    # The following way of writing the cache mishandles newlines in values,
 
2222
(
 
2223
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2224
    eval ac_val=\$$ac_var
 
2225
    case $ac_val in #(
 
2226
    *${as_nl}*)
 
2227
      case $ac_var in #(
 
2228
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2229
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2230
      esac
 
2231
      case $ac_var in #(
 
2232
      _ | IFS | as_nl) ;; #(
 
2233
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2234
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2235
      esac ;;
 
2236
    esac
 
2237
  done
 
2238
  (set) 2>&1 |
 
2239
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2240
    *${as_nl}ac_space=\ *)
 
2241
      sed -n \
 
2242
        "s/'\''/'\''\\\\'\'''\''/g;
 
2243
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2244
      ;; #(
 
2245
    *)
 
2246
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2247
      ;;
 
2248
    esac |
 
2249
    sort
 
2250
)
 
2251
    echo
 
2252
 
 
2253
    $as_echo "## ----------------- ##
 
2254
## Output variables. ##
 
2255
## ----------------- ##"
 
2256
    echo
 
2257
    for ac_var in $ac_subst_vars
 
2258
    do
 
2259
      eval ac_val=\$$ac_var
 
2260
      case $ac_val in
 
2261
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2262
      esac
 
2263
      $as_echo "$ac_var='\''$ac_val'\''"
 
2264
    done | sort
 
2265
    echo
 
2266
 
 
2267
    if test -n "$ac_subst_files"; then
 
2268
      $as_echo "## ------------------- ##
 
2269
## File substitutions. ##
 
2270
## ------------------- ##"
 
2271
      echo
 
2272
      for ac_var in $ac_subst_files
 
2273
      do
 
2274
        eval ac_val=\$$ac_var
 
2275
        case $ac_val in
 
2276
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2277
        esac
 
2278
        $as_echo "$ac_var='\''$ac_val'\''"
 
2279
      done | sort
 
2280
      echo
 
2281
    fi
 
2282
 
 
2283
    if test -s confdefs.h; then
 
2284
      $as_echo "## ----------- ##
 
2285
## confdefs.h. ##
 
2286
## ----------- ##"
 
2287
      echo
 
2288
      cat confdefs.h
 
2289
      echo
 
2290
    fi
 
2291
    test "$ac_signal" != 0 &&
 
2292
      $as_echo "$as_me: caught signal $ac_signal"
 
2293
    $as_echo "$as_me: exit $exit_status"
 
2294
  } >&5
 
2295
  rm -f core *.core core.conftest.* &&
 
2296
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2297
    exit $exit_status
 
2298
' 0
 
2299
for ac_signal in 1 2 13 15; do
 
2300
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2301
done
 
2302
ac_signal=0
 
2303
 
 
2304
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2305
rm -f -r conftest* confdefs.h
 
2306
 
 
2307
$as_echo "/* confdefs.h */" > confdefs.h
 
2308
 
 
2309
# Predefined preprocessor variables.
 
2310
 
 
2311
cat >>confdefs.h <<_ACEOF
 
2312
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2313
_ACEOF
 
2314
 
 
2315
cat >>confdefs.h <<_ACEOF
 
2316
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2317
_ACEOF
 
2318
 
 
2319
cat >>confdefs.h <<_ACEOF
 
2320
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2321
_ACEOF
 
2322
 
 
2323
cat >>confdefs.h <<_ACEOF
 
2324
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2325
_ACEOF
 
2326
 
 
2327
cat >>confdefs.h <<_ACEOF
 
2328
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2329
_ACEOF
 
2330
 
 
2331
cat >>confdefs.h <<_ACEOF
 
2332
#define PACKAGE_URL "$PACKAGE_URL"
 
2333
_ACEOF
 
2334
 
 
2335
 
 
2336
# Let the site file select an alternate cache file if it wants to.
 
2337
# Prefer an explicitly selected file to automatically selected ones.
 
2338
ac_site_file1=NONE
 
2339
ac_site_file2=NONE
 
2340
if test -n "$CONFIG_SITE"; then
 
2341
  # We do not want a PATH search for config.site.
 
2342
  case $CONFIG_SITE in #((
 
2343
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2344
    */*) ac_site_file1=$CONFIG_SITE;;
 
2345
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2346
  esac
 
2347
elif test "x$prefix" != xNONE; then
 
2348
  ac_site_file1=$prefix/share/config.site
 
2349
  ac_site_file2=$prefix/etc/config.site
 
2350
else
 
2351
  ac_site_file1=$ac_default_prefix/share/config.site
 
2352
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2353
fi
 
2354
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2355
do
 
2356
  test "x$ac_site_file" = xNONE && continue
 
2357
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2358
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2359
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2360
    sed 's/^/| /' "$ac_site_file" >&5
 
2361
    . "$ac_site_file" \
 
2362
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2363
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2364
as_fn_error $? "failed to load site script $ac_site_file
 
2365
See \`config.log' for more details" "$LINENO" 5; }
 
2366
  fi
 
2367
done
 
2368
 
 
2369
if test -r "$cache_file"; then
 
2370
  # Some versions of bash will fail to source /dev/null (special files
 
2371
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2372
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2373
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2374
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2375
    case $cache_file in
 
2376
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2377
      *)                      . "./$cache_file";;
 
2378
    esac
 
2379
  fi
 
2380
else
 
2381
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2382
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2383
  >$cache_file
 
2384
fi
 
2385
 
 
2386
# Check that the precious variables saved in the cache have kept the same
 
2387
# value.
 
2388
ac_cache_corrupted=false
 
2389
for ac_var in $ac_precious_vars; do
 
2390
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2391
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2392
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2393
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2394
  case $ac_old_set,$ac_new_set in
 
2395
    set,)
 
2396
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2397
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2398
      ac_cache_corrupted=: ;;
 
2399
    ,set)
 
2400
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2401
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2402
      ac_cache_corrupted=: ;;
 
2403
    ,);;
 
2404
    *)
 
2405
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2406
        # differences in whitespace do not lead to failure.
 
2407
        ac_old_val_w=`echo x $ac_old_val`
 
2408
        ac_new_val_w=`echo x $ac_new_val`
 
2409
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2410
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2411
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2412
          ac_cache_corrupted=:
 
2413
        else
 
2414
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2415
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2416
          eval $ac_var=\$ac_old_val
 
2417
        fi
 
2418
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2419
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2420
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2421
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2422
      fi;;
 
2423
  esac
 
2424
  # Pass precious variables to config.status.
 
2425
  if test "$ac_new_set" = set; then
 
2426
    case $ac_new_val in
 
2427
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2428
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2429
    esac
 
2430
    case " $ac_configure_args " in
 
2431
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2432
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2433
    esac
 
2434
  fi
 
2435
done
 
2436
if $ac_cache_corrupted; then
 
2437
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2438
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2439
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2440
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2441
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2442
fi
 
2443
## -------------------- ##
 
2444
## Main body of script. ##
 
2445
## -------------------- ##
 
2446
 
 
2447
ac_ext=c
 
2448
ac_cpp='$CPP $CPPFLAGS'
 
2449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2452
 
 
2453
 
 
2454
LIBRARY_INTERFACE_VERSION=8:0:1
 
2455
 
 
2456
 
 
2457
cat >>confdefs.h <<_ACEOF
 
2458
#define LIBRARY_INTERFACE_VERSION "$LIBRARY_INTERFACE_VERSION"
 
2459
_ACEOF
 
2460
 
 
2461
_lcl_receval="${libexecdir}/${PACKAGE}"
 
2462
PKGLIBEXECDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2463
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2464
     _lcl_receval_old=''
 
2465
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2466
       _lcl_receval_old="$_lcl_receval"
 
2467
       eval _lcl_receval="\"$_lcl_receval\""
 
2468
     done
 
2469
     echo "$_lcl_receval")`
 
2470
 
 
2471
cat >>confdefs.h <<_ACEOF
 
2472
#define PKGLIBEXECDIR "${PKGLIBEXECDIR}"
 
2473
_ACEOF
 
2474
 
 
2475
_lcl_receval="${includedir}"
 
2476
INCLUDEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2477
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2478
     _lcl_receval_old=''
 
2479
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2480
       _lcl_receval_old="$_lcl_receval"
 
2481
       eval _lcl_receval="\"$_lcl_receval\""
 
2482
     done
 
2483
     echo "$_lcl_receval")`
 
2484
 
 
2485
_lcl_receval="${bindir}"
 
2486
BINDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2487
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2488
     _lcl_receval_old=''
 
2489
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2490
       _lcl_receval_old="$_lcl_receval"
 
2491
       eval _lcl_receval="\"$_lcl_receval\""
 
2492
     done
 
2493
     echo "$_lcl_receval")`
 
2494
 
 
2495
_lcl_receval="${libdir}/${PACKAGE}"
 
2496
PKGLIBDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2497
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2498
     _lcl_receval_old=''
 
2499
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2500
       _lcl_receval_old="$_lcl_receval"
 
2501
       eval _lcl_receval="\"$_lcl_receval\""
 
2502
     done
 
2503
     echo "$_lcl_receval")`
 
2504
 
 
2505
_lcl_receval="${libdir}${backend_suffix}/${PACKAGE}"
 
2506
BACKEND_PKGLIBDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2507
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2508
     _lcl_receval_old=''
 
2509
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2510
       _lcl_receval_old="$_lcl_receval"
 
2511
       eval _lcl_receval="\"$_lcl_receval\""
 
2512
     done
 
2513
     echo "$_lcl_receval")`
 
2514
 
 
2515
_lcl_receval="${datadir}/${PACKAGE}"
 
2516
PKGDATADIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2517
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2518
     _lcl_receval_old=''
 
2519
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2520
       _lcl_receval_old="$_lcl_receval"
 
2521
       eval _lcl_receval="\"$_lcl_receval\""
 
2522
     done
 
2523
     echo "$_lcl_receval")`
 
2524
 
 
2525
 
 
2526
cat >>confdefs.h <<_ACEOF
 
2527
#define PKGDATADIR "${PKGDATADIR}"
 
2528
_ACEOF
 
2529
 
 
2530
_lcl_receval="${docdir}"
 
2531
DOCDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
2532
     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
 
2533
     _lcl_receval_old=''
 
2534
     while test "$_lcl_receval_old" != "$_lcl_receval"; do
 
2535
       _lcl_receval_old="$_lcl_receval"
 
2536
       eval _lcl_receval="\"$_lcl_receval\""
 
2537
     done
 
2538
     echo "$_lcl_receval")`
 
2539
 
 
2540
 
 
2541
 
 
2542
## Where to find auxiliary build tools & local macros
 
2543
ac_aux_dir=
 
2544
for ac_dir in ../build-config "$srcdir"/../build-config; do
 
2545
  if test -f "$ac_dir/install-sh"; then
 
2546
    ac_aux_dir=$ac_dir
 
2547
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2548
    break
 
2549
  elif test -f "$ac_dir/install.sh"; then
 
2550
    ac_aux_dir=$ac_dir
 
2551
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2552
    break
 
2553
  elif test -f "$ac_dir/shtool"; then
 
2554
    ac_aux_dir=$ac_dir
 
2555
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2556
    break
 
2557
  fi
 
2558
done
 
2559
if test -z "$ac_aux_dir"; then
 
2560
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-config \"$srcdir\"/../build-config" "$LINENO" 5
 
2561
fi
 
2562
 
 
2563
# These three variables are undocumented and unsupported,
 
2564
# and are intended to be withdrawn in a future Autoconf release.
 
2565
# They can cause serious problems if a builder's source tree is in a directory
 
2566
# whose full name contains unusual characters.
 
2567
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2568
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2569
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2570
 
 
2571
 
 
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
 
 
2577
 
 
2578
 
 
2579
## Define frontend-specific environment variables
 
2580
 
 
2581
 
 
2582
 
 
2583
 
 
2584
 
 
2585
 
 
2586
 
 
2587
## Consistency checks for compilers
 
2588
 
 
2589
if test "x${ac_cv_env_CC_FOR_BUILD_set}" != "xset"; then
 
2590
    as_fn_error 1 "argument CC_FOR_BUILD not provided in configure call." "$LINENO" 5
 
2591
fi
 
2592
 
 
2593
 
 
2594
if test "x${ac_cv_env_CXX_FOR_BUILD_set}" != "xset"; then
 
2595
    as_fn_error 1 "argument CXX_FOR_BUILD not provided in configure call." "$LINENO" 5
 
2596
fi
 
2597
 
 
2598
 
 
2599
## Convert compilers & flags
 
2600
 
 
2601
if test "x${ac_cv_env_CC_FOR_BUILD_set}" != "xset"; then
 
2602
    # don't use the default compiler if nothing is specified for the frontend
 
2603
    unset CC
 
2604
else
 
2605
    CC="$ac_cv_env_CC_FOR_BUILD_value"
 
2606
fi
 
2607
 
 
2608
 
 
2609
if test "x${ac_cv_env_CXX_FOR_BUILD_set}" != "xset"; then
 
2610
    # don't use the default compiler if nothing is specified for the frontend
 
2611
    unset CXX
 
2612
else
 
2613
    CXX="$ac_cv_env_CXX_FOR_BUILD_value"
 
2614
fi
 
2615
 
 
2616
 
 
2617
if test "x${ac_cv_env_CPPFLAGS_FOR_BUILD_set}" != "xset"; then
 
2618
   # don't use the default flags if nothing is specified for the frontend
 
2619
   unset CPPFLAGS
 
2620
else
 
2621
   # use the FOR_BUILD flags
 
2622
   CPPFLAGS="$ac_cv_env_CPPFLAGS_FOR_BUILD_value"
 
2623
fi
 
2624
 
 
2625
 
 
2626
if test "x${ac_cv_env_CXXFLAGS_FOR_BUILD_set}" != "xset"; then
 
2627
   # don't use the default flags if nothing is specified for the frontend
 
2628
   unset CXXFLAGS
 
2629
else
 
2630
   # use the FOR_BUILD flags
 
2631
   CXXFLAGS="$ac_cv_env_CXXFLAGS_FOR_BUILD_value"
 
2632
fi
 
2633
 
 
2634
 
 
2635
if test "x${ac_cv_env_CFLAGS_FOR_BUILD_set}" != "xset"; then
 
2636
   # don't use the default flags if nothing is specified for the frontend
 
2637
   unset CFLAGS
 
2638
else
 
2639
   # use the FOR_BUILD flags
 
2640
   CFLAGS="$ac_cv_env_CFLAGS_FOR_BUILD_value"
 
2641
fi
 
2642
 
 
2643
 
 
2644
if test "x${ac_cv_env_LDFLAGS_FOR_BUILD_set}" != "xset"; then
 
2645
   # don't use the default flags if nothing is specified for the frontend
 
2646
   unset LDFLAGS
 
2647
else
 
2648
   # use the FOR_BUILD flags
 
2649
   LDFLAGS="$ac_cv_env_LDFLAGS_FOR_BUILD_value"
 
2650
fi
 
2651
 
 
2652
 
 
2653
if test "x${ac_cv_env_LIBS_FOR_BUILD_set}" != "xset"; then
 
2654
   # don't use the default flags if nothing is specified for the frontend
 
2655
   unset LIBS
 
2656
else
 
2657
   # use the FOR_BUILD flags
 
2658
   LIBS="$ac_cv_env_LIBS_FOR_BUILD_value"
 
2659
fi
 
2660
 
 
2661
 
 
2662
 
 
2663
## Initialize configuration summary
 
2664
 
 
2665
 
 
2666
 
 
2667
AFS_PACKAGE_name=cubew
 
2668
 
 
2669
 
 
2670
AFS_PACKAGE_NAME=CUBEW
 
2671
 
 
2672
 
 
2673
 
 
2674
 
 
2675
 
 
2676
 
 
2677
 
 
2678
cat >>confdefs.h <<_ACEOF
 
2679
#define AFS_PACKAGE_BUILD "frontend"
 
2680
_ACEOF
 
2681
 
 
2682
 
 
2683
 
 
2684
AFS_PACKAGE_TO_TOP=../
 
2685
 
 
2686
 
 
2687
 
 
2688
# when building inplace, $srcdir equals ., ignore $srcdir than
 
2689
case $srcdir in #(
 
2690
  .) :
 
2691
    afs_srcdir="../" ;; #(
 
2692
  *) :
 
2693
    afs_srcdir="${srcdir}/../" ;;
 
2694
esac
 
2695
cat >>confdefs.h <<_ACEOF
 
2696
#define AFS_PACKAGE_SRCDIR "${afs_srcdir}"
 
2697
_ACEOF
 
2698
 
 
2699
 
 
2700
 
 
2701
 
 
2702
cat >>confdefs.h <<_ACEOF
 
2703
#define AFS_PACKAGE_BUILD_name frontend
 
2704
_ACEOF
 
2705
 
 
2706
AFS_PACKAGE_BUILD_name=frontend
 
2707
 
 
2708
 
 
2709
 
 
2710
cat >>confdefs.h <<_ACEOF
 
2711
#define AFS_PACKAGE_BUILD_NAME FRONTEND
 
2712
_ACEOF
 
2713
 
 
2714
AFS_PACKAGE_BUILD_NAME=FRONTEND
 
2715
 
 
2716
 
 
2717
 
 
2718
cat >>confdefs.h <<_ACEOF
 
2719
#define AFS_PACKAGE_name cubew
 
2720
_ACEOF
 
2721
 
 
2722
 
 
2723
 
 
2724
cat >>confdefs.h <<_ACEOF
 
2725
#define AFS_PACKAGE_NAME CUBEW
 
2726
_ACEOF
 
2727
 
 
2728
 
 
2729
 
 
2730
rm -f cubew.summary
 
2731
LC_ALL=C find . -name config.summary -exec rm -f '{}' \;
 
2732
 
 
2733
cat >config.summary <<_ACEOF
 
2734
    CubeW (frontend):
 
2735
_ACEOF
 
2736
 
 
2737
 
 
2738
# Make sure we can run config.sub.
 
2739
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2740
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2741
 
 
2742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2743
$as_echo_n "checking build system type... " >&6; }
 
2744
if ${ac_cv_build+:} false; then :
 
2745
  $as_echo_n "(cached) " >&6
 
2746
else
 
2747
  ac_build_alias=$build_alias
 
2748
test "x$ac_build_alias" = x &&
 
2749
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2750
test "x$ac_build_alias" = x &&
 
2751
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2753
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2754
 
 
2755
fi
 
2756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2757
$as_echo "$ac_cv_build" >&6; }
 
2758
case $ac_cv_build in
 
2759
*-*-*) ;;
 
2760
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2761
esac
 
2762
build=$ac_cv_build
 
2763
ac_save_IFS=$IFS; IFS='-'
 
2764
set x $ac_cv_build
 
2765
shift
 
2766
build_cpu=$1
 
2767
build_vendor=$2
 
2768
shift; shift
 
2769
# Remember, the first character of IFS is used to create $*,
 
2770
# except with old shells:
 
2771
build_os=$*
 
2772
IFS=$ac_save_IFS
 
2773
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2774
 
 
2775
 
 
2776
 
 
2777
 
 
2778
 
 
2779
     if test "x${ac_scorep_platform}" = "xaltix"; then
 
2780
  PLATFORM_ALTIX_TRUE=
 
2781
  PLATFORM_ALTIX_FALSE='#'
 
2782
else
 
2783
  PLATFORM_ALTIX_TRUE='#'
 
2784
  PLATFORM_ALTIX_FALSE=
 
2785
fi
 
2786
 
 
2787
     if test "x${ac_scorep_platform}" = "xaix" && test "x${build_cpu}" = "xpowerpc"; then
 
2788
  PLATFORM_AIX_TRUE=
 
2789
  PLATFORM_AIX_FALSE='#'
 
2790
else
 
2791
  PLATFORM_AIX_TRUE='#'
 
2792
  PLATFORM_AIX_FALSE=
 
2793
fi
 
2794
 
 
2795
     if test "x${ac_scorep_platform}" = "xbgl"; then
 
2796
  PLATFORM_BGL_TRUE=
 
2797
  PLATFORM_BGL_FALSE='#'
 
2798
else
 
2799
  PLATFORM_BGL_TRUE='#'
 
2800
  PLATFORM_BGL_FALSE=
 
2801
fi
 
2802
 
 
2803
     if test "x${ac_scorep_platform}" = "xbgp"; then
 
2804
  PLATFORM_BGP_TRUE=
 
2805
  PLATFORM_BGP_FALSE='#'
 
2806
else
 
2807
  PLATFORM_BGP_TRUE='#'
 
2808
  PLATFORM_BGP_FALSE=
 
2809
fi
 
2810
 
 
2811
     if test "x${ac_scorep_platform}" = "xbgq"; then
 
2812
  PLATFORM_BGQ_TRUE=
 
2813
  PLATFORM_BGQ_FALSE='#'
 
2814
else
 
2815
  PLATFORM_BGQ_TRUE='#'
 
2816
  PLATFORM_BGQ_FALSE=
 
2817
fi
 
2818
 
 
2819
     if test "x${ac_scorep_platform}" = "xcrayxt"; then
 
2820
  PLATFORM_CRAYXT_TRUE=
 
2821
  PLATFORM_CRAYXT_FALSE='#'
 
2822
else
 
2823
  PLATFORM_CRAYXT_TRUE='#'
 
2824
  PLATFORM_CRAYXT_FALSE=
 
2825
fi
 
2826
 
 
2827
     if test "x${ac_scorep_platform}" = "xcrayxe"; then
 
2828
  PLATFORM_CRAYXE_TRUE=
 
2829
  PLATFORM_CRAYXE_FALSE='#'
 
2830
else
 
2831
  PLATFORM_CRAYXE_TRUE='#'
 
2832
  PLATFORM_CRAYXE_FALSE=
 
2833
fi
 
2834
 
 
2835
     if test "x${ac_scorep_platform}" = "xcrayxk"; then
 
2836
  PLATFORM_CRAYXK_TRUE=
 
2837
  PLATFORM_CRAYXK_FALSE='#'
 
2838
else
 
2839
  PLATFORM_CRAYXK_TRUE='#'
 
2840
  PLATFORM_CRAYXK_FALSE=
 
2841
fi
 
2842
 
 
2843
     if test "x${ac_scorep_platform}" = "xcrayxc"; then
 
2844
  PLATFORM_CRAYXC_TRUE=
 
2845
  PLATFORM_CRAYXC_FALSE='#'
 
2846
else
 
2847
  PLATFORM_CRAYXC_TRUE='#'
 
2848
  PLATFORM_CRAYXC_FALSE=
 
2849
fi
 
2850
 
 
2851
     if test "x${ac_scorep_platform}" = "xlinux"; then
 
2852
  PLATFORM_LINUX_TRUE=
 
2853
  PLATFORM_LINUX_FALSE='#'
 
2854
else
 
2855
  PLATFORM_LINUX_TRUE='#'
 
2856
  PLATFORM_LINUX_FALSE=
 
2857
fi
 
2858
 
 
2859
     if test "x${ac_scorep_platform}" = "xsolaris"; then
 
2860
  PLATFORM_SOLARIS_TRUE=
 
2861
  PLATFORM_SOLARIS_FALSE='#'
 
2862
else
 
2863
  PLATFORM_SOLARIS_TRUE='#'
 
2864
  PLATFORM_SOLARIS_FALSE=
 
2865
fi
 
2866
 
 
2867
     if test "x${ac_scorep_platform}" = "xmac"; then
 
2868
  PLATFORM_MAC_TRUE=
 
2869
  PLATFORM_MAC_FALSE='#'
 
2870
else
 
2871
  PLATFORM_MAC_TRUE='#'
 
2872
  PLATFORM_MAC_FALSE=
 
2873
fi
 
2874
 
 
2875
     if test "x${ac_scorep_platform}" = "xmingw"; then
 
2876
  PLATFORM_MINGW_TRUE=
 
2877
  PLATFORM_MINGW_FALSE='#'
 
2878
else
 
2879
  PLATFORM_MINGW_TRUE='#'
 
2880
  PLATFORM_MINGW_FALSE=
 
2881
fi
 
2882
 
 
2883
     if test "x${ac_scorep_platform}" = "xcygwin"; then
 
2884
  PLATFORM_CYGWIN_TRUE=
 
2885
  PLATFORM_CYGWIN_FALSE='#'
 
2886
else
 
2887
  PLATFORM_CYGWIN_TRUE='#'
 
2888
  PLATFORM_CYGWIN_FALSE=
 
2889
fi
 
2890
 
 
2891
     if test "x${ac_scorep_platform}" = "xmic"; then
 
2892
  PLATFORM_MIC_TRUE=
 
2893
  PLATFORM_MIC_FALSE='#'
 
2894
else
 
2895
  PLATFORM_MIC_TRUE='#'
 
2896
  PLATFORM_MIC_FALSE=
 
2897
fi
 
2898
 
 
2899
     if test "x${ac_scorep_platform}" = "xnecsx"; then
 
2900
  PLATFORM_NECSX_TRUE=
 
2901
  PLATFORM_NECSX_FALSE='#'
 
2902
else
 
2903
  PLATFORM_NECSX_TRUE='#'
 
2904
  PLATFORM_NECSX_FALSE=
 
2905
fi
 
2906
 
 
2907
     if test "x${ac_scorep_platform}" = "xarm"; then
 
2908
  PLATFORM_ARM_TRUE=
 
2909
  PLATFORM_ARM_FALSE='#'
 
2910
else
 
2911
  PLATFORM_ARM_TRUE='#'
 
2912
  PLATFORM_ARM_FALSE=
 
2913
fi
 
2914
 
 
2915
     if test "x${ac_scorep_platform}" = "xmingw"; then
 
2916
  PLATFORM_MINGW_TRUE=
 
2917
  PLATFORM_MINGW_FALSE='#'
 
2918
else
 
2919
  PLATFORM_MINGW_TRUE='#'
 
2920
  PLATFORM_MINGW_FALSE=
 
2921
fi
 
2922
 
 
2923
     if test "x${ac_scorep_platform}" = "xk"; then
 
2924
  PLATFORM_K_TRUE=
 
2925
  PLATFORM_K_FALSE='#'
 
2926
else
 
2927
  PLATFORM_K_TRUE='#'
 
2928
  PLATFORM_K_FALSE=
 
2929
fi
 
2930
 
 
2931
     if test "x${ac_scorep_platform}" = "xfx10"; then
 
2932
  PLATFORM_FX10_TRUE=
 
2933
  PLATFORM_FX10_FALSE='#'
 
2934
else
 
2935
  PLATFORM_FX10_TRUE='#'
 
2936
  PLATFORM_FX10_FALSE=
 
2937
fi
 
2938
 
 
2939
     if test "x${ac_scorep_platform}" = "xfx100"; then
 
2940
  PLATFORM_FX100_TRUE=
 
2941
  PLATFORM_FX100_FALSE='#'
 
2942
else
 
2943
  PLATFORM_FX100_TRUE='#'
 
2944
  PLATFORM_FX100_FALSE=
 
2945
fi
 
2946
 
 
2947
 
 
2948
    case ${ac_scorep_platform} in #(
 
2949
  crayx*) :
 
2950
    afs_platform_cray="yes" ;; #(
 
2951
  *) :
 
2952
    afs_platform_cray="no" ;;
 
2953
esac
 
2954
     if  test "x${afs_platform_cray}" = "xyes" ; then
 
2955
  PLATFORM_CRAY_TRUE=
 
2956
  PLATFORM_CRAY_FALSE='#'
 
2957
else
 
2958
  PLATFORM_CRAY_TRUE='#'
 
2959
  PLATFORM_CRAY_FALSE=
 
2960
fi
 
2961
 
 
2962
 
 
2963
    if test -z "$PLATFORM_ALTIX_TRUE"; then :
 
2964
 
 
2965
$as_echo "#define HAVE_PLATFORM_ALTIX 1" >>confdefs.h
 
2966
 
 
2967
fi
 
2968
    if test -z "$PLATFORM_AIX_TRUE"; then :
 
2969
 
 
2970
$as_echo "#define HAVE_PLATFORM_AIX 1" >>confdefs.h
 
2971
 
 
2972
fi
 
2973
    if test -z "$PLATFORM_BGL_TRUE"; then :
 
2974
 
 
2975
$as_echo "#define HAVE_PLATFORM_BGL 1" >>confdefs.h
 
2976
 
 
2977
fi
 
2978
    if test -z "$PLATFORM_BGP_TRUE"; then :
 
2979
 
 
2980
$as_echo "#define HAVE_PLATFORM_BGP 1" >>confdefs.h
 
2981
 
 
2982
fi
 
2983
    if test -z "$PLATFORM_BGQ_TRUE"; then :
 
2984
 
 
2985
$as_echo "#define HAVE_PLATFORM_BGQ 1" >>confdefs.h
 
2986
 
 
2987
fi
 
2988
    if test -z "$PLATFORM_CRAY_TRUE"; then :
 
2989
 
 
2990
$as_echo "#define HAVE_PLATFORM_CRAY 1" >>confdefs.h
 
2991
 
 
2992
fi
 
2993
    if test -z "$PLATFORM_CRAYXT_TRUE"; then :
 
2994
 
 
2995
$as_echo "#define HAVE_PLATFORM_CRAYXT 1" >>confdefs.h
 
2996
 
 
2997
fi
 
2998
    if test -z "$PLATFORM_CRAYXE_TRUE"; then :
 
2999
 
 
3000
$as_echo "#define HAVE_PLATFORM_CRAYXE 1" >>confdefs.h
 
3001
 
 
3002
fi
 
3003
    if test -z "$PLATFORM_CRAYXK_TRUE"; then :
 
3004
 
 
3005
$as_echo "#define HAVE_PLATFORM_CRAYXK 1" >>confdefs.h
 
3006
 
 
3007
fi
 
3008
    if test -z "$PLATFORM_CRAYXC_TRUE"; then :
 
3009
 
 
3010
$as_echo "#define HAVE_PLATFORM_CRAYXC 1" >>confdefs.h
 
3011
 
 
3012
fi
 
3013
    if test -z "$PLATFORM_LINUX_TRUE"; then :
 
3014
 
 
3015
$as_echo "#define HAVE_PLATFORM_LINUX 1" >>confdefs.h
 
3016
 
 
3017
fi
 
3018
    if test -z "$PLATFORM_SOLARIS_TRUE"; then :
 
3019
 
 
3020
$as_echo "#define HAVE_PLATFORM_SOLARIS 1" >>confdefs.h
 
3021
 
 
3022
fi
 
3023
    if test -z "$PLATFORM_MAC_TRUE"; then :
 
3024
 
 
3025
$as_echo "#define HAVE_PLATFORM_MAC 1" >>confdefs.h
 
3026
 
 
3027
fi
 
3028
    if test -z "$PLATFORM_MINGW_TRUE"; then :
 
3029
 
 
3030
$as_echo "#define HAVE_PLATFORM_MINGW 1" >>confdefs.h
 
3031
 
 
3032
fi
 
3033
    if test -z "$PLATFORM_CYGWIN_TRUE"; then :
 
3034
 
 
3035
$as_echo "#define HAVE_PLATFORM_CYGWIN 1" >>confdefs.h
 
3036
 
 
3037
fi
 
3038
    if test -z "$PLATFORM_MIC_TRUE"; then :
 
3039
 
 
3040
$as_echo "#define HAVE_PLATFORM_MIC 1" >>confdefs.h
 
3041
 
 
3042
fi
 
3043
    if test -z "$PLATFORM_NECSX_TRUE"; then :
 
3044
 
 
3045
$as_echo "#define HAVE_PLATFORM_NECSX 1" >>confdefs.h
 
3046
 
 
3047
fi
 
3048
    if test -z "$PLATFORM_ARM_TRUE"; then :
 
3049
 
 
3050
$as_echo "#define HAVE_PLATFORM_ARM 1" >>confdefs.h
 
3051
 
 
3052
fi
 
3053
    if test -z "$PLATFORM_MINGW_TRUE"; then :
 
3054
 
 
3055
$as_echo "#define HAVE_PLATFORM_MINGW 1" >>confdefs.h
 
3056
 
 
3057
fi
 
3058
    if test -z "$PLATFORM_K_TRUE"; then :
 
3059
 
 
3060
$as_echo "#define HAVE_PLATFORM_K 1" >>confdefs.h
 
3061
 
 
3062
fi
 
3063
    if test -z "$PLATFORM_FX10_TRUE"; then :
 
3064
 
 
3065
$as_echo "#define HAVE_PLATFORM_FX10 1" >>confdefs.h
 
3066
 
 
3067
fi
 
3068
    if test -z "$PLATFORM_FX100_TRUE"; then :
 
3069
 
 
3070
$as_echo "#define HAVE_PLATFORM_FX100 1" >>confdefs.h
 
3071
 
 
3072
fi
 
3073
 
 
3074
 
 
3075
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Intel MIC build" >&5
 
3076
$as_echo_n "checking for native Intel MIC build... " >&6; }
 
3077
    cubew_have_mic_support=no
 
3078
    if test -z "$PLATFORM_MIC_TRUE"; then :
 
3079
  else
 
3080
  if as_fn_executable_p ${PKGLIBEXECDIR}/cubew-config-mic; then :
 
3081
  cubew_have_mic_support=yes
 
3082
 
 
3083
$as_echo "#define HAVE_MIC_SUPPORT 1" >>confdefs.h
 
3084
 
 
3085
 
 
3086
fi
 
3087
 
 
3088
fi
 
3089
     if test x$cubew_have_mic_support = "xyes"; then
 
3090
  MIC_SUPPORT_TRUE=
 
3091
  MIC_SUPPORT_FALSE='#'
 
3092
else
 
3093
  MIC_SUPPORT_TRUE='#'
 
3094
  MIC_SUPPORT_FALSE=
 
3095
fi
 
3096
 
 
3097
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cubew_have_mic_support" >&5
 
3098
$as_echo "$cubew_have_mic_support" >&6; }
 
3099
 
 
3100
 
 
3101
## Set (non-)cross compilation mode
 
3102
if test "x${ac_scorep_cross_compiling}" != "xyes" && \
 
3103
       test "x${ac_scorep_cross_compiling}" != "xno"; then :
 
3104
  as_fn_error 1 "invalid value '$ac_scorep_cross_compiling' for variable \$ac_scorep_cross_compiling." "$LINENO" 5
 
3105
fi
 
3106
 if test "x${ac_scorep_cross_compiling}" = "xyes"; then
 
3107
  CROSS_BUILD_TRUE=
 
3108
  CROSS_BUILD_FALSE='#'
 
3109
else
 
3110
  CROSS_BUILD_TRUE='#'
 
3111
  CROSS_BUILD_FALSE=
 
3112
fi
 
3113
 
 
3114
cross_compiling=${ac_scorep_cross_compiling}
 
3115
# used for EXTRA_DIST in Makefile.am
 
3116
 
 
3117
 
 
3118
## Set convenience variables for macros
 
3119
ac_scorep_backend=no
 
3120
ac_scorep_frontend=yes
 
3121
 
 
3122
 
 
3123
##--- Package-specific configuration ----------------------------------------
 
3124
## Set up Automake
 
3125
am__api_version='1.13'
 
3126
 
 
3127
# Find a good install program.  We prefer a C program (faster),
 
3128
# so one script is as good as another.  But avoid the broken or
 
3129
# incompatible versions:
 
3130
# SysV /etc/install, /usr/sbin/install
 
3131
# SunOS /usr/etc/install
 
3132
# IRIX /sbin/install
 
3133
# AIX /bin/install
 
3134
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3135
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3136
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3137
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3138
# OS/2's system install, which has a completely different semantic
 
3139
# ./install, which can be erroneously created by make from ./install.sh.
 
3140
# Reject install programs that cannot install multiple files.
 
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3142
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3143
if test -z "$INSTALL"; then
 
3144
if ${ac_cv_path_install+:} false; then :
 
3145
  $as_echo_n "(cached) " >&6
 
3146
else
 
3147
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3148
for as_dir in $PATH
 
3149
do
 
3150
  IFS=$as_save_IFS
 
3151
  test -z "$as_dir" && as_dir=.
 
3152
    # Account for people who put trailing slashes in PATH elements.
 
3153
case $as_dir/ in #((
 
3154
  ./ | .// | /[cC]/* | \
 
3155
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3156
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3157
  /usr/ucb/* ) ;;
 
3158
  *)
 
3159
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3160
    # Don't use installbsd from OSF since it installs stuff as root
 
3161
    # by default.
 
3162
    for ac_prog in ginstall scoinst install; do
 
3163
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3164
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3165
          if test $ac_prog = install &&
 
3166
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3167
            # AIX install.  It has an incompatible calling convention.
 
3168
            :
 
3169
          elif test $ac_prog = install &&
 
3170
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3171
            # program-specific install script used by HP pwplus--don't use.
 
3172
            :
 
3173
          else
 
3174
            rm -rf conftest.one conftest.two conftest.dir
 
3175
            echo one > conftest.one
 
3176
            echo two > conftest.two
 
3177
            mkdir conftest.dir
 
3178
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3179
              test -s conftest.one && test -s conftest.two &&
 
3180
              test -s conftest.dir/conftest.one &&
 
3181
              test -s conftest.dir/conftest.two
 
3182
            then
 
3183
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3184
              break 3
 
3185
            fi
 
3186
          fi
 
3187
        fi
 
3188
      done
 
3189
    done
 
3190
    ;;
 
3191
esac
 
3192
 
 
3193
  done
 
3194
IFS=$as_save_IFS
 
3195
 
 
3196
rm -rf conftest.one conftest.two conftest.dir
 
3197
 
 
3198
fi
 
3199
  if test "${ac_cv_path_install+set}" = set; then
 
3200
    INSTALL=$ac_cv_path_install
 
3201
  else
 
3202
    # As a last resort, use the slow shell script.  Don't cache a
 
3203
    # value for INSTALL within a source directory, because that will
 
3204
    # break other packages using the cache if that directory is
 
3205
    # removed, or if the value is a relative name.
 
3206
    INSTALL=$ac_install_sh
 
3207
  fi
 
3208
fi
 
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3210
$as_echo "$INSTALL" >&6; }
 
3211
 
 
3212
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3213
# It thinks the first close brace ends the variable substitution.
 
3214
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3215
 
 
3216
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3217
 
 
3218
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3219
 
 
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3221
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3222
# Reject unsafe characters in $srcdir or the absolute working directory
 
3223
# name.  Accept space and tab only in the latter.
 
3224
am_lf='
 
3225
'
 
3226
case `pwd` in
 
3227
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3228
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
3229
esac
 
3230
case $srcdir in
 
3231
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3232
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
3233
esac
 
3234
 
 
3235
# Do 'set' in a subshell so we don't clobber the current shell's
 
3236
# arguments.  Must try -L first in case configure is actually a
 
3237
# symlink; some systems play weird games with the mod time of symlinks
 
3238
# (eg FreeBSD returns the mod time of the symlink's containing
 
3239
# directory).
 
3240
if (
 
3241
   am_has_slept=no
 
3242
   for am_try in 1 2; do
 
3243
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
3244
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3245
     if test "$*" = "X"; then
 
3246
        # -L didn't work.
 
3247
        set X `ls -t "$srcdir/configure" conftest.file`
 
3248
     fi
 
3249
     if test "$*" != "X $srcdir/configure conftest.file" \
 
3250
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
3251
 
 
3252
        # If neither matched, then we have a broken ls.  This can happen
 
3253
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3254
        # broken ls alias from the environment.  This has actually
 
3255
        # happened.  Such a system could not be considered "sane".
 
3256
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3257
  alias in your environment" "$LINENO" 5
 
3258
     fi
 
3259
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
3260
       break
 
3261
     fi
 
3262
     # Just in case.
 
3263
     sleep 1
 
3264
     am_has_slept=yes
 
3265
   done
 
3266
   test "$2" = conftest.file
 
3267
   )
 
3268
then
 
3269
   # Ok.
 
3270
   :
 
3271
else
 
3272
   as_fn_error $? "newly created file is older than distributed files!
 
3273
Check your system clock" "$LINENO" 5
 
3274
fi
 
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3276
$as_echo "yes" >&6; }
 
3277
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
3278
# generated files are strictly newer.
 
3279
am_sleep_pid=
 
3280
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
3281
  ( sleep 1 ) &
 
3282
  am_sleep_pid=$!
 
3283
fi
 
3284
 
 
3285
rm -f conftest.file
 
3286
 
 
3287
test "$program_prefix" != NONE &&
 
3288
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3289
# Use a double $ so make ignores it.
 
3290
test "$program_suffix" != NONE &&
 
3291
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3292
# Double any \ or $.
 
3293
# By default was `s,x,x', remove it if useless.
 
3294
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3295
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3296
 
 
3297
# expand $ac_aux_dir to an absolute path
 
3298
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3299
 
 
3300
if test x"${MISSING+set}" != xset; then
 
3301
  case $am_aux_dir in
 
3302
  *\ * | *\     *)
 
3303
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3304
  *)
 
3305
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3306
  esac
 
3307
fi
 
3308
# Use eval to expand $SHELL
 
3309
if eval "$MISSING --is-lightweight"; then
 
3310
  am_missing_run="$MISSING "
 
3311
else
 
3312
  am_missing_run=
 
3313
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
3314
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
3315
fi
 
3316
 
 
3317
if test x"${install_sh}" != xset; then
 
3318
  case $am_aux_dir in
 
3319
  *\ * | *\     *)
 
3320
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3321
  *)
 
3322
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3323
  esac
 
3324
fi
 
3325
 
 
3326
# Installed binaries are usually stripped using 'strip' when the user
 
3327
# run "make install-strip".  However 'strip' might not be the right
 
3328
# tool to use in cross-compilation environments, therefore Automake
 
3329
# will honor the 'STRIP' environment variable to overrule this program.
 
3330
if test "$cross_compiling" != no; then
 
3331
  if test -n "$ac_tool_prefix"; then
 
3332
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3333
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3335
$as_echo_n "checking for $ac_word... " >&6; }
 
3336
if ${ac_cv_prog_STRIP+:} false; then :
 
3337
  $as_echo_n "(cached) " >&6
 
3338
else
 
3339
  if test -n "$STRIP"; then
 
3340
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3341
else
 
3342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3343
for as_dir in $PATH
 
3344
do
 
3345
  IFS=$as_save_IFS
 
3346
  test -z "$as_dir" && as_dir=.
 
3347
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3348
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3349
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3351
    break 2
 
3352
  fi
 
3353
done
 
3354
  done
 
3355
IFS=$as_save_IFS
 
3356
 
 
3357
fi
 
3358
fi
 
3359
STRIP=$ac_cv_prog_STRIP
 
3360
if test -n "$STRIP"; then
 
3361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3362
$as_echo "$STRIP" >&6; }
 
3363
else
 
3364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3365
$as_echo "no" >&6; }
 
3366
fi
 
3367
 
 
3368
 
 
3369
fi
 
3370
if test -z "$ac_cv_prog_STRIP"; then
 
3371
  ac_ct_STRIP=$STRIP
 
3372
  # Extract the first word of "strip", so it can be a program name with args.
 
3373
set dummy strip; ac_word=$2
 
3374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3375
$as_echo_n "checking for $ac_word... " >&6; }
 
3376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
3377
  $as_echo_n "(cached) " >&6
 
3378
else
 
3379
  if test -n "$ac_ct_STRIP"; then
 
3380
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3381
else
 
3382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3383
for as_dir in $PATH
 
3384
do
 
3385
  IFS=$as_save_IFS
 
3386
  test -z "$as_dir" && as_dir=.
 
3387
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3388
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3389
    ac_cv_prog_ac_ct_STRIP="strip"
 
3390
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3391
    break 2
 
3392
  fi
 
3393
done
 
3394
  done
 
3395
IFS=$as_save_IFS
 
3396
 
 
3397
fi
 
3398
fi
 
3399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3400
if test -n "$ac_ct_STRIP"; then
 
3401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3402
$as_echo "$ac_ct_STRIP" >&6; }
 
3403
else
 
3404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3405
$as_echo "no" >&6; }
 
3406
fi
 
3407
 
 
3408
  if test "x$ac_ct_STRIP" = x; then
 
3409
    STRIP=":"
 
3410
  else
 
3411
    case $cross_compiling:$ac_tool_warned in
 
3412
yes:)
 
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3415
ac_tool_warned=yes ;;
 
3416
esac
 
3417
    STRIP=$ac_ct_STRIP
 
3418
  fi
 
3419
else
 
3420
  STRIP="$ac_cv_prog_STRIP"
 
3421
fi
 
3422
 
 
3423
fi
 
3424
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3425
 
 
3426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3427
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3428
if test -z "$MKDIR_P"; then
 
3429
  if ${ac_cv_path_mkdir+:} false; then :
 
3430
  $as_echo_n "(cached) " >&6
 
3431
else
 
3432
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3433
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3434
do
 
3435
  IFS=$as_save_IFS
 
3436
  test -z "$as_dir" && as_dir=.
 
3437
    for ac_prog in mkdir gmkdir; do
 
3438
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3439
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
3440
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3441
             'mkdir (GNU coreutils) '* | \
 
3442
             'mkdir (coreutils) '* | \
 
3443
             'mkdir (fileutils) '4.1*)
 
3444
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3445
               break 3;;
 
3446
           esac
 
3447
         done
 
3448
       done
 
3449
  done
 
3450
IFS=$as_save_IFS
 
3451
 
 
3452
fi
 
3453
 
 
3454
  test -d ./--version && rmdir ./--version
 
3455
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3456
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3457
  else
 
3458
    # As a last resort, use the slow shell script.  Don't cache a
 
3459
    # value for MKDIR_P within a source directory, because that will
 
3460
    # break other packages using the cache if that directory is
 
3461
    # removed, or if the value is a relative name.
 
3462
    MKDIR_P="$ac_install_sh -d"
 
3463
  fi
 
3464
fi
 
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3466
$as_echo "$MKDIR_P" >&6; }
 
3467
 
 
3468
for ac_prog in gawk mawk nawk awk
 
3469
do
 
3470
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3471
set dummy $ac_prog; ac_word=$2
 
3472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3473
$as_echo_n "checking for $ac_word... " >&6; }
 
3474
if ${ac_cv_prog_AWK+:} false; then :
 
3475
  $as_echo_n "(cached) " >&6
 
3476
else
 
3477
  if test -n "$AWK"; then
 
3478
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3479
else
 
3480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3481
for as_dir in $PATH
 
3482
do
 
3483
  IFS=$as_save_IFS
 
3484
  test -z "$as_dir" && as_dir=.
 
3485
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3486
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3487
    ac_cv_prog_AWK="$ac_prog"
 
3488
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3489
    break 2
 
3490
  fi
 
3491
done
 
3492
  done
 
3493
IFS=$as_save_IFS
 
3494
 
 
3495
fi
 
3496
fi
 
3497
AWK=$ac_cv_prog_AWK
 
3498
if test -n "$AWK"; then
 
3499
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3500
$as_echo "$AWK" >&6; }
 
3501
else
 
3502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3503
$as_echo "no" >&6; }
 
3504
fi
 
3505
 
 
3506
 
 
3507
  test -n "$AWK" && break
 
3508
done
 
3509
 
 
3510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3511
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3512
set x ${MAKE-make}
 
3513
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3514
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3515
  $as_echo_n "(cached) " >&6
 
3516
else
 
3517
  cat >conftest.make <<\_ACEOF
 
3518
SHELL = /bin/sh
 
3519
all:
 
3520
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3521
_ACEOF
 
3522
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3523
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3524
  *@@@%%%=?*=@@@%%%*)
 
3525
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3526
  *)
 
3527
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3528
esac
 
3529
rm -f conftest.make
 
3530
fi
 
3531
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3533
$as_echo "yes" >&6; }
 
3534
  SET_MAKE=
 
3535
else
 
3536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3537
$as_echo "no" >&6; }
 
3538
  SET_MAKE="MAKE=${MAKE-make}"
 
3539
fi
 
3540
 
 
3541
rm -rf .tst 2>/dev/null
 
3542
mkdir .tst 2>/dev/null
 
3543
if test -d .tst; then
 
3544
  am__leading_dot=.
 
3545
else
 
3546
  am__leading_dot=_
 
3547
fi
 
3548
rmdir .tst 2>/dev/null
 
3549
 
 
3550
# Check whether --enable-silent-rules was given.
 
3551
if test "${enable_silent_rules+set}" = set; then :
 
3552
  enableval=$enable_silent_rules;
 
3553
fi
 
3554
 
 
3555
case $enable_silent_rules in # (((
 
3556
  yes) AM_DEFAULT_VERBOSITY=0;;
 
3557
   no) AM_DEFAULT_VERBOSITY=1;;
 
3558
    *) AM_DEFAULT_VERBOSITY=1;;
 
3559
esac
 
3560
am_make=${MAKE-make}
 
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3562
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3563
if ${am_cv_make_support_nested_variables+:} false; then :
 
3564
  $as_echo_n "(cached) " >&6
 
3565
else
 
3566
  if $as_echo 'TRUE=$(BAR$(V))
 
3567
BAR0=false
 
3568
BAR1=true
 
3569
V=1
 
3570
am__doit:
 
3571
        @$(TRUE)
 
3572
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3573
  am_cv_make_support_nested_variables=yes
 
3574
else
 
3575
  am_cv_make_support_nested_variables=no
 
3576
fi
 
3577
fi
 
3578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3579
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3580
if test $am_cv_make_support_nested_variables = yes; then
 
3581
    AM_V='$(V)'
 
3582
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3583
else
 
3584
  AM_V=$AM_DEFAULT_VERBOSITY
 
3585
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3586
fi
 
3587
AM_BACKSLASH='\'
 
3588
 
 
3589
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3590
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3591
  # is not polluted with repeated "-I."
 
3592
  am__isrc=' -I$(srcdir)'
 
3593
  # test to see if srcdir already configured
 
3594
  if test -f $srcdir/config.status; then
 
3595
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3596
  fi
 
3597
fi
 
3598
 
 
3599
# test whether we have cygpath
 
3600
if test -z "$CYGPATH_W"; then
 
3601
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3602
    CYGPATH_W='cygpath -w'
 
3603
  else
 
3604
    CYGPATH_W=echo
 
3605
  fi
 
3606
fi
 
3607
 
 
3608
 
 
3609
# Define the identity of the package.
 
3610
 PACKAGE='cubew'
 
3611
 VERSION='4.4-RC1'
 
3612
 
 
3613
 
 
3614
cat >>confdefs.h <<_ACEOF
 
3615
#define PACKAGE "$PACKAGE"
 
3616
_ACEOF
 
3617
 
 
3618
 
 
3619
cat >>confdefs.h <<_ACEOF
 
3620
#define VERSION "$VERSION"
 
3621
_ACEOF
 
3622
 
 
3623
# Some tools Automake needs.
 
3624
 
 
3625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3626
 
 
3627
 
 
3628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3629
 
 
3630
 
 
3631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3632
 
 
3633
 
 
3634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3635
 
 
3636
 
 
3637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3638
 
 
3639
# For better backward compatibility.  To be removed once Automake 1.9.x
 
3640
# dies out for good.  For more background, see:
 
3641
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
3642
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
3643
mkdir_p='$(MKDIR_P)'
 
3644
 
 
3645
# We need awk for the "check" target.  The system "awk" is bad on
 
3646
# some platforms.
 
3647
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
3648
# in the wild :-(  We should find a proper way to deprecate it ...
 
3649
AMTAR='$${TAR-tar}'
 
3650
 
 
3651
 
 
3652
# We'll loop over all known methods to create a tar archive until one works.
 
3653
_am_tools='gnutar  pax cpio none'
 
3654
 
 
3655
 
 
3656
 
 
3657
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
 
3658
$as_echo_n "checking how to create a pax tar archive... " >&6; }
 
3659
 
 
3660
  # Go ahead even if we have the value already cached.  We do so because we
 
3661
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
3662
  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
 
3663
 
 
3664
  for _am_tool in $_am_tools; do
 
3665
    case $_am_tool in
 
3666
    gnutar)
 
3667
      for _am_tar in tar gnutar gtar; do
 
3668
        { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
3669
   ($_am_tar --version) >&5 2>&5
 
3670
   ac_status=$?
 
3671
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3672
   (exit $ac_status); } && break
 
3673
      done
 
3674
      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
 
3675
      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
 
3676
      am__untar="$_am_tar -xf -"
 
3677
      ;;
 
3678
    plaintar)
 
3679
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
3680
      # ustar tarball either.
 
3681
      (tar --version) >/dev/null 2>&1 && continue
 
3682
      am__tar='tar chf - "$$tardir"'
 
3683
      am__tar_='tar chf - "$tardir"'
 
3684
      am__untar='tar xf -'
 
3685
      ;;
 
3686
    pax)
 
3687
      am__tar='pax -L -x pax -w "$$tardir"'
 
3688
      am__tar_='pax -L -x pax -w "$tardir"'
 
3689
      am__untar='pax -r'
 
3690
      ;;
 
3691
    cpio)
 
3692
      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
 
3693
      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
 
3694
      am__untar='cpio -i -H pax -d'
 
3695
      ;;
 
3696
    none)
 
3697
      am__tar=false
 
3698
      am__tar_=false
 
3699
      am__untar=false
 
3700
      ;;
 
3701
    esac
 
3702
 
 
3703
    # If the value was cached, stop now.  We just wanted to have am__tar
 
3704
    # and am__untar set.
 
3705
    test -n "${am_cv_prog_tar_pax}" && break
 
3706
 
 
3707
    # tar/untar a dummy directory, and stop if the command works.
 
3708
    rm -rf conftest.dir
 
3709
    mkdir conftest.dir
 
3710
    echo GrepMe > conftest.dir/file
 
3711
    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
3712
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
3713
   ac_status=$?
 
3714
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
   (exit $ac_status); }
 
3716
    rm -rf conftest.dir
 
3717
    if test -s conftest.tar; then
 
3718
      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
3719
   ($am__untar <conftest.tar) >&5 2>&5
 
3720
   ac_status=$?
 
3721
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3722
   (exit $ac_status); }
 
3723
      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
 
3724
   (cat conftest.dir/file) >&5 2>&5
 
3725
   ac_status=$?
 
3726
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3727
   (exit $ac_status); }
 
3728
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
3729
    fi
 
3730
  done
 
3731
  rm -rf conftest.dir
 
3732
 
 
3733
  if ${am_cv_prog_tar_pax+:} false; then :
 
3734
  $as_echo_n "(cached) " >&6
 
3735
else
 
3736
  am_cv_prog_tar_pax=$_am_tool
 
3737
fi
 
3738
 
 
3739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
 
3740
$as_echo "$am_cv_prog_tar_pax" >&6; }
 
3741
 
 
3742
 
 
3743
 
 
3744
 
 
3745
 
 
3746
 
 
3747
# Check whether --enable-silent-rules was given.
 
3748
if test "${enable_silent_rules+set}" = set; then :
 
3749
  enableval=$enable_silent_rules;
 
3750
fi
 
3751
 
 
3752
case $enable_silent_rules in # (((
 
3753
  yes) AM_DEFAULT_VERBOSITY=0;;
 
3754
   no) AM_DEFAULT_VERBOSITY=1;;
 
3755
    *) AM_DEFAULT_VERBOSITY=0;;
 
3756
esac
 
3757
am_make=${MAKE-make}
 
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3759
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3760
if ${am_cv_make_support_nested_variables+:} false; then :
 
3761
  $as_echo_n "(cached) " >&6
 
3762
else
 
3763
  if $as_echo 'TRUE=$(BAR$(V))
 
3764
BAR0=false
 
3765
BAR1=true
 
3766
V=1
 
3767
am__doit:
 
3768
        @$(TRUE)
 
3769
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3770
  am_cv_make_support_nested_variables=yes
 
3771
else
 
3772
  am_cv_make_support_nested_variables=no
 
3773
fi
 
3774
fi
 
3775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3776
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3777
if test $am_cv_make_support_nested_variables = yes; then
 
3778
    AM_V='$(V)'
 
3779
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3780
else
 
3781
  AM_V=$AM_DEFAULT_VERBOSITY
 
3782
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3783
fi
 
3784
AM_BACKSLASH='\'
 
3785
 
 
3786
DEPDIR="${am__leading_dot}deps"
 
3787
 
 
3788
ac_config_commands="$ac_config_commands depfiles"
 
3789
 
 
3790
 
 
3791
am_make=${MAKE-make}
 
3792
cat > confinc << 'END'
 
3793
am__doit:
 
3794
        @echo this is the am__doit target
 
3795
.PHONY: am__doit
 
3796
END
 
3797
# If we don't find an include directive, just comment out the code.
 
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3799
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3800
am__include="#"
 
3801
am__quote=
 
3802
_am_result=none
 
3803
# First try GNU make style include.
 
3804
echo "include confinc" > confmf
 
3805
# Ignore all kinds of additional output from 'make'.
 
3806
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3807
*the\ am__doit\ target*)
 
3808
  am__include=include
 
3809
  am__quote=
 
3810
  _am_result=GNU
 
3811
  ;;
 
3812
esac
 
3813
# Now try BSD make style include.
 
3814
if test "$am__include" = "#"; then
 
3815
   echo '.include "confinc"' > confmf
 
3816
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3817
   *the\ am__doit\ target*)
 
3818
     am__include=.include
 
3819
     am__quote="\""
 
3820
     _am_result=BSD
 
3821
     ;;
 
3822
   esac
 
3823
fi
 
3824
 
 
3825
 
 
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3827
$as_echo "$_am_result" >&6; }
 
3828
rm -f confinc confmf
 
3829
 
 
3830
# Check whether --enable-dependency-tracking was given.
 
3831
if test "${enable_dependency_tracking+set}" = set; then :
 
3832
  enableval=$enable_dependency_tracking;
 
3833
fi
 
3834
 
 
3835
if test "x$enable_dependency_tracking" != xno; then
 
3836
  am_depcomp="$ac_aux_dir/depcomp"
 
3837
  AMDEPBACKSLASH='\'
 
3838
  am__nodep='_no'
 
3839
fi
 
3840
 if test "x$enable_dependency_tracking" != xno; then
 
3841
  AMDEP_TRUE=
 
3842
  AMDEP_FALSE='#'
 
3843
else
 
3844
  AMDEP_TRUE='#'
 
3845
  AMDEP_FALSE=
 
3846
fi
 
3847
 
 
3848
 
 
3849
ac_ext=c
 
3850
ac_cpp='$CPP $CPPFLAGS'
 
3851
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3852
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3853
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3854
if test -n "$ac_tool_prefix"; then
 
3855
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3856
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3858
$as_echo_n "checking for $ac_word... " >&6; }
 
3859
if ${ac_cv_prog_CC+:} false; then :
 
3860
  $as_echo_n "(cached) " >&6
 
3861
else
 
3862
  if test -n "$CC"; then
 
3863
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3864
else
 
3865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3866
for as_dir in $PATH
 
3867
do
 
3868
  IFS=$as_save_IFS
 
3869
  test -z "$as_dir" && as_dir=.
 
3870
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3871
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3872
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3873
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3874
    break 2
 
3875
  fi
 
3876
done
 
3877
  done
 
3878
IFS=$as_save_IFS
 
3879
 
 
3880
fi
 
3881
fi
 
3882
CC=$ac_cv_prog_CC
 
3883
if test -n "$CC"; then
 
3884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3885
$as_echo "$CC" >&6; }
 
3886
else
 
3887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3888
$as_echo "no" >&6; }
 
3889
fi
 
3890
 
 
3891
 
 
3892
fi
 
3893
if test -z "$ac_cv_prog_CC"; then
 
3894
  ac_ct_CC=$CC
 
3895
  # Extract the first word of "gcc", so it can be a program name with args.
 
3896
set dummy gcc; ac_word=$2
 
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3898
$as_echo_n "checking for $ac_word... " >&6; }
 
3899
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3900
  $as_echo_n "(cached) " >&6
 
3901
else
 
3902
  if test -n "$ac_ct_CC"; then
 
3903
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3904
else
 
3905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3906
for as_dir in $PATH
 
3907
do
 
3908
  IFS=$as_save_IFS
 
3909
  test -z "$as_dir" && as_dir=.
 
3910
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3911
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3912
    ac_cv_prog_ac_ct_CC="gcc"
 
3913
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3914
    break 2
 
3915
  fi
 
3916
done
 
3917
  done
 
3918
IFS=$as_save_IFS
 
3919
 
 
3920
fi
 
3921
fi
 
3922
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3923
if test -n "$ac_ct_CC"; then
 
3924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3925
$as_echo "$ac_ct_CC" >&6; }
 
3926
else
 
3927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3928
$as_echo "no" >&6; }
 
3929
fi
 
3930
 
 
3931
  if test "x$ac_ct_CC" = x; then
 
3932
    CC=""
 
3933
  else
 
3934
    case $cross_compiling:$ac_tool_warned in
 
3935
yes:)
 
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3937
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3938
ac_tool_warned=yes ;;
 
3939
esac
 
3940
    CC=$ac_ct_CC
 
3941
  fi
 
3942
else
 
3943
  CC="$ac_cv_prog_CC"
 
3944
fi
 
3945
 
 
3946
if test -z "$CC"; then
 
3947
          if test -n "$ac_tool_prefix"; then
 
3948
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3949
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3951
$as_echo_n "checking for $ac_word... " >&6; }
 
3952
if ${ac_cv_prog_CC+:} false; then :
 
3953
  $as_echo_n "(cached) " >&6
 
3954
else
 
3955
  if test -n "$CC"; then
 
3956
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3957
else
 
3958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3959
for as_dir in $PATH
 
3960
do
 
3961
  IFS=$as_save_IFS
 
3962
  test -z "$as_dir" && as_dir=.
 
3963
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3964
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3965
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3966
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3967
    break 2
 
3968
  fi
 
3969
done
 
3970
  done
 
3971
IFS=$as_save_IFS
 
3972
 
 
3973
fi
 
3974
fi
 
3975
CC=$ac_cv_prog_CC
 
3976
if test -n "$CC"; then
 
3977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3978
$as_echo "$CC" >&6; }
 
3979
else
 
3980
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3981
$as_echo "no" >&6; }
 
3982
fi
 
3983
 
 
3984
 
 
3985
  fi
 
3986
fi
 
3987
if test -z "$CC"; then
 
3988
  # Extract the first word of "cc", so it can be a program name with args.
 
3989
set dummy cc; ac_word=$2
 
3990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3991
$as_echo_n "checking for $ac_word... " >&6; }
 
3992
if ${ac_cv_prog_CC+:} false; then :
 
3993
  $as_echo_n "(cached) " >&6
 
3994
else
 
3995
  if test -n "$CC"; then
 
3996
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3997
else
 
3998
  ac_prog_rejected=no
 
3999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4000
for as_dir in $PATH
 
4001
do
 
4002
  IFS=$as_save_IFS
 
4003
  test -z "$as_dir" && as_dir=.
 
4004
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4005
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4006
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4007
       ac_prog_rejected=yes
 
4008
       continue
 
4009
     fi
 
4010
    ac_cv_prog_CC="cc"
 
4011
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4012
    break 2
 
4013
  fi
 
4014
done
 
4015
  done
 
4016
IFS=$as_save_IFS
 
4017
 
 
4018
if test $ac_prog_rejected = yes; then
 
4019
  # We found a bogon in the path, so make sure we never use it.
 
4020
  set dummy $ac_cv_prog_CC
 
4021
  shift
 
4022
  if test $# != 0; then
 
4023
    # We chose a different compiler from the bogus one.
 
4024
    # However, it has the same basename, so the bogon will be chosen
 
4025
    # first if we set CC to just the basename; use the full file name.
 
4026
    shift
 
4027
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4028
  fi
 
4029
fi
 
4030
fi
 
4031
fi
 
4032
CC=$ac_cv_prog_CC
 
4033
if test -n "$CC"; then
 
4034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4035
$as_echo "$CC" >&6; }
 
4036
else
 
4037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4038
$as_echo "no" >&6; }
 
4039
fi
 
4040
 
 
4041
 
 
4042
fi
 
4043
if test -z "$CC"; then
 
4044
  if test -n "$ac_tool_prefix"; then
 
4045
  for ac_prog in cl.exe
 
4046
  do
 
4047
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4048
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4050
$as_echo_n "checking for $ac_word... " >&6; }
 
4051
if ${ac_cv_prog_CC+:} false; then :
 
4052
  $as_echo_n "(cached) " >&6
 
4053
else
 
4054
  if test -n "$CC"; then
 
4055
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4056
else
 
4057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4058
for as_dir in $PATH
 
4059
do
 
4060
  IFS=$as_save_IFS
 
4061
  test -z "$as_dir" && as_dir=.
 
4062
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4063
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4064
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4066
    break 2
 
4067
  fi
 
4068
done
 
4069
  done
 
4070
IFS=$as_save_IFS
 
4071
 
 
4072
fi
 
4073
fi
 
4074
CC=$ac_cv_prog_CC
 
4075
if test -n "$CC"; then
 
4076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4077
$as_echo "$CC" >&6; }
 
4078
else
 
4079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4080
$as_echo "no" >&6; }
 
4081
fi
 
4082
 
 
4083
 
 
4084
    test -n "$CC" && break
 
4085
  done
 
4086
fi
 
4087
if test -z "$CC"; then
 
4088
  ac_ct_CC=$CC
 
4089
  for ac_prog in cl.exe
 
4090
do
 
4091
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4092
set dummy $ac_prog; ac_word=$2
 
4093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4094
$as_echo_n "checking for $ac_word... " >&6; }
 
4095
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4096
  $as_echo_n "(cached) " >&6
 
4097
else
 
4098
  if test -n "$ac_ct_CC"; then
 
4099
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4100
else
 
4101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4102
for as_dir in $PATH
 
4103
do
 
4104
  IFS=$as_save_IFS
 
4105
  test -z "$as_dir" && as_dir=.
 
4106
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4107
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4108
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4109
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4110
    break 2
 
4111
  fi
 
4112
done
 
4113
  done
 
4114
IFS=$as_save_IFS
 
4115
 
 
4116
fi
 
4117
fi
 
4118
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4119
if test -n "$ac_ct_CC"; then
 
4120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4121
$as_echo "$ac_ct_CC" >&6; }
 
4122
else
 
4123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4124
$as_echo "no" >&6; }
 
4125
fi
 
4126
 
 
4127
 
 
4128
  test -n "$ac_ct_CC" && break
 
4129
done
 
4130
 
 
4131
  if test "x$ac_ct_CC" = x; then
 
4132
    CC=""
 
4133
  else
 
4134
    case $cross_compiling:$ac_tool_warned in
 
4135
yes:)
 
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4138
ac_tool_warned=yes ;;
 
4139
esac
 
4140
    CC=$ac_ct_CC
 
4141
  fi
 
4142
fi
 
4143
 
 
4144
fi
 
4145
 
 
4146
 
 
4147
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4149
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4150
See \`config.log' for more details" "$LINENO" 5; }
 
4151
 
 
4152
# Provide some information about the compiler.
 
4153
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4154
set X $ac_compile
 
4155
ac_compiler=$2
 
4156
for ac_option in --version -v -V -qversion; do
 
4157
  { { ac_try="$ac_compiler $ac_option >&5"
 
4158
case "(($ac_try" in
 
4159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4160
  *) ac_try_echo=$ac_try;;
 
4161
esac
 
4162
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4163
$as_echo "$ac_try_echo"; } >&5
 
4164
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4165
  ac_status=$?
 
4166
  if test -s conftest.err; then
 
4167
    sed '10a\
 
4168
... rest of stderr output deleted ...
 
4169
         10q' conftest.err >conftest.er1
 
4170
    cat conftest.er1 >&5
 
4171
  fi
 
4172
  rm -f conftest.er1 conftest.err
 
4173
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4174
  test $ac_status = 0; }
 
4175
done
 
4176
 
 
4177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4178
/* end confdefs.h.  */
 
4179
 
 
4180
int
 
4181
main ()
 
4182
{
 
4183
 
 
4184
  ;
 
4185
  return 0;
 
4186
}
 
4187
_ACEOF
 
4188
ac_clean_files_save=$ac_clean_files
 
4189
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4190
# Try to create an executable without -o first, disregard a.out.
 
4191
# It will help us diagnose broken compilers, and finding out an intuition
 
4192
# of exeext.
 
4193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4194
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4195
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4196
 
 
4197
# The possible output files:
 
4198
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4199
 
 
4200
ac_rmfiles=
 
4201
for ac_file in $ac_files
 
4202
do
 
4203
  case $ac_file in
 
4204
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4205
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4206
  esac
 
4207
done
 
4208
rm -f $ac_rmfiles
 
4209
 
 
4210
if { { ac_try="$ac_link_default"
 
4211
case "(($ac_try" in
 
4212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4213
  *) ac_try_echo=$ac_try;;
 
4214
esac
 
4215
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4216
$as_echo "$ac_try_echo"; } >&5
 
4217
  (eval "$ac_link_default") 2>&5
 
4218
  ac_status=$?
 
4219
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4220
  test $ac_status = 0; }; then :
 
4221
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4222
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4223
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4224
# so that the user can short-circuit this test for compilers unknown to
 
4225
# Autoconf.
 
4226
for ac_file in $ac_files ''
 
4227
do
 
4228
  test -f "$ac_file" || continue
 
4229
  case $ac_file in
 
4230
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4231
        ;;
 
4232
    [ab].out )
 
4233
        # We found the default executable, but exeext='' is most
 
4234
        # certainly right.
 
4235
        break;;
 
4236
    *.* )
 
4237
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4238
        then :; else
 
4239
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4240
        fi
 
4241
        # We set ac_cv_exeext here because the later test for it is not
 
4242
        # safe: cross compilers may not add the suffix if given an `-o'
 
4243
        # argument, so we may need to know it at that point already.
 
4244
        # Even if this section looks crufty: it has the advantage of
 
4245
        # actually working.
 
4246
        break;;
 
4247
    * )
 
4248
        break;;
 
4249
  esac
 
4250
done
 
4251
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4252
 
 
4253
else
 
4254
  ac_file=''
 
4255
fi
 
4256
if test -z "$ac_file"; then :
 
4257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4258
$as_echo "no" >&6; }
 
4259
$as_echo "$as_me: failed program was:" >&5
 
4260
sed 's/^/| /' conftest.$ac_ext >&5
 
4261
 
 
4262
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4263
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4264
as_fn_error 77 "C compiler cannot create executables
 
4265
See \`config.log' for more details" "$LINENO" 5; }
 
4266
else
 
4267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4268
$as_echo "yes" >&6; }
 
4269
fi
 
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4271
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4273
$as_echo "$ac_file" >&6; }
 
4274
ac_exeext=$ac_cv_exeext
 
4275
 
 
4276
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4277
ac_clean_files=$ac_clean_files_save
 
4278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4279
$as_echo_n "checking for suffix of executables... " >&6; }
 
4280
if { { ac_try="$ac_link"
 
4281
case "(($ac_try" in
 
4282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4283
  *) ac_try_echo=$ac_try;;
 
4284
esac
 
4285
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4286
$as_echo "$ac_try_echo"; } >&5
 
4287
  (eval "$ac_link") 2>&5
 
4288
  ac_status=$?
 
4289
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4290
  test $ac_status = 0; }; then :
 
4291
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4292
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4293
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4294
# `rm'.
 
4295
for ac_file in conftest.exe conftest conftest.*; do
 
4296
  test -f "$ac_file" || continue
 
4297
  case $ac_file in
 
4298
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4299
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4300
          break;;
 
4301
    * ) break;;
 
4302
  esac
 
4303
done
 
4304
else
 
4305
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4306
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4307
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4308
See \`config.log' for more details" "$LINENO" 5; }
 
4309
fi
 
4310
rm -f conftest conftest$ac_cv_exeext
 
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4312
$as_echo "$ac_cv_exeext" >&6; }
 
4313
 
 
4314
rm -f conftest.$ac_ext
 
4315
EXEEXT=$ac_cv_exeext
 
4316
ac_exeext=$EXEEXT
 
4317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4318
/* end confdefs.h.  */
 
4319
#include <stdio.h>
 
4320
int
 
4321
main ()
 
4322
{
 
4323
FILE *f = fopen ("conftest.out", "w");
 
4324
 return ferror (f) || fclose (f) != 0;
 
4325
 
 
4326
  ;
 
4327
  return 0;
 
4328
}
 
4329
_ACEOF
 
4330
ac_clean_files="$ac_clean_files conftest.out"
 
4331
# Check that the compiler produces executables we can run.  If not, either
 
4332
# the compiler is broken, or we cross compile.
 
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4334
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4335
if test "$cross_compiling" != yes; then
 
4336
  { { ac_try="$ac_link"
 
4337
case "(($ac_try" in
 
4338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4339
  *) ac_try_echo=$ac_try;;
 
4340
esac
 
4341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4342
$as_echo "$ac_try_echo"; } >&5
 
4343
  (eval "$ac_link") 2>&5
 
4344
  ac_status=$?
 
4345
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4346
  test $ac_status = 0; }
 
4347
  if { ac_try='./conftest$ac_cv_exeext'
 
4348
  { { case "(($ac_try" in
 
4349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4350
  *) ac_try_echo=$ac_try;;
 
4351
esac
 
4352
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4353
$as_echo "$ac_try_echo"; } >&5
 
4354
  (eval "$ac_try") 2>&5
 
4355
  ac_status=$?
 
4356
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4357
  test $ac_status = 0; }; }; then
 
4358
    cross_compiling=no
 
4359
  else
 
4360
    if test "$cross_compiling" = maybe; then
 
4361
        cross_compiling=yes
 
4362
    else
 
4363
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4365
as_fn_error $? "cannot run C compiled programs.
 
4366
If you meant to cross compile, use \`--host'.
 
4367
See \`config.log' for more details" "$LINENO" 5; }
 
4368
    fi
 
4369
  fi
 
4370
fi
 
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4372
$as_echo "$cross_compiling" >&6; }
 
4373
 
 
4374
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4375
ac_clean_files=$ac_clean_files_save
 
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4377
$as_echo_n "checking for suffix of object files... " >&6; }
 
4378
if ${ac_cv_objext+:} false; then :
 
4379
  $as_echo_n "(cached) " >&6
 
4380
else
 
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
rm -f conftest.o conftest.obj
 
4393
if { { ac_try="$ac_compile"
 
4394
case "(($ac_try" in
 
4395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4396
  *) ac_try_echo=$ac_try;;
 
4397
esac
 
4398
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4399
$as_echo "$ac_try_echo"; } >&5
 
4400
  (eval "$ac_compile") 2>&5
 
4401
  ac_status=$?
 
4402
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4403
  test $ac_status = 0; }; then :
 
4404
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4405
  test -f "$ac_file" || continue;
 
4406
  case $ac_file in
 
4407
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4408
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4409
       break;;
 
4410
  esac
 
4411
done
 
4412
else
 
4413
  $as_echo "$as_me: failed program was:" >&5
 
4414
sed 's/^/| /' conftest.$ac_ext >&5
 
4415
 
 
4416
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4417
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4418
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4419
See \`config.log' for more details" "$LINENO" 5; }
 
4420
fi
 
4421
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4422
fi
 
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4424
$as_echo "$ac_cv_objext" >&6; }
 
4425
OBJEXT=$ac_cv_objext
 
4426
ac_objext=$OBJEXT
 
4427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4428
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4429
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4430
  $as_echo_n "(cached) " >&6
 
4431
else
 
4432
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4433
/* end confdefs.h.  */
 
4434
 
 
4435
int
 
4436
main ()
 
4437
{
 
4438
#ifndef __GNUC__
 
4439
       choke me
 
4440
#endif
 
4441
 
 
4442
  ;
 
4443
  return 0;
 
4444
}
 
4445
_ACEOF
 
4446
if ac_fn_c_try_compile "$LINENO"; then :
 
4447
  ac_compiler_gnu=yes
 
4448
else
 
4449
  ac_compiler_gnu=no
 
4450
fi
 
4451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4452
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4453
 
 
4454
fi
 
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4456
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4457
if test $ac_compiler_gnu = yes; then
 
4458
  GCC=yes
 
4459
else
 
4460
  GCC=
 
4461
fi
 
4462
ac_test_CFLAGS=${CFLAGS+set}
 
4463
ac_save_CFLAGS=$CFLAGS
 
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4465
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4466
if ${ac_cv_prog_cc_g+:} false; then :
 
4467
  $as_echo_n "(cached) " >&6
 
4468
else
 
4469
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4470
   ac_c_werror_flag=yes
 
4471
   ac_cv_prog_cc_g=no
 
4472
   CFLAGS="-g"
 
4473
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4474
/* end confdefs.h.  */
 
4475
 
 
4476
int
 
4477
main ()
 
4478
{
 
4479
 
 
4480
  ;
 
4481
  return 0;
 
4482
}
 
4483
_ACEOF
 
4484
if ac_fn_c_try_compile "$LINENO"; then :
 
4485
  ac_cv_prog_cc_g=yes
 
4486
else
 
4487
  CFLAGS=""
 
4488
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4489
/* end confdefs.h.  */
 
4490
 
 
4491
int
 
4492
main ()
 
4493
{
 
4494
 
 
4495
  ;
 
4496
  return 0;
 
4497
}
 
4498
_ACEOF
 
4499
if ac_fn_c_try_compile "$LINENO"; then :
 
4500
 
 
4501
else
 
4502
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4503
         CFLAGS="-g"
 
4504
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4505
/* end confdefs.h.  */
 
4506
 
 
4507
int
 
4508
main ()
 
4509
{
 
4510
 
 
4511
  ;
 
4512
  return 0;
 
4513
}
 
4514
_ACEOF
 
4515
if ac_fn_c_try_compile "$LINENO"; then :
 
4516
  ac_cv_prog_cc_g=yes
 
4517
fi
 
4518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4519
fi
 
4520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4521
fi
 
4522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4523
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4524
fi
 
4525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4526
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4527
if test "$ac_test_CFLAGS" = set; then
 
4528
  CFLAGS=$ac_save_CFLAGS
 
4529
elif test $ac_cv_prog_cc_g = yes; then
 
4530
  if test "$GCC" = yes; then
 
4531
    CFLAGS="-g -O2"
 
4532
  else
 
4533
    CFLAGS="-g"
 
4534
  fi
 
4535
else
 
4536
  if test "$GCC" = yes; then
 
4537
    CFLAGS="-O2"
 
4538
  else
 
4539
    CFLAGS=
 
4540
  fi
 
4541
fi
 
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4543
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4544
if ${ac_cv_prog_cc_c89+:} false; then :
 
4545
  $as_echo_n "(cached) " >&6
 
4546
else
 
4547
  ac_cv_prog_cc_c89=no
 
4548
ac_save_CC=$CC
 
4549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4550
/* end confdefs.h.  */
 
4551
#include <stdarg.h>
 
4552
#include <stdio.h>
 
4553
struct stat;
 
4554
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4555
struct buf { int x; };
 
4556
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4557
static char *e (p, i)
 
4558
     char **p;
 
4559
     int i;
 
4560
{
 
4561
  return p[i];
 
4562
}
 
4563
static char *f (char * (*g) (char **, int), char **p, ...)
 
4564
{
 
4565
  char *s;
 
4566
  va_list v;
 
4567
  va_start (v,p);
 
4568
  s = g (p, va_arg (v,int));
 
4569
  va_end (v);
 
4570
  return s;
 
4571
}
 
4572
 
 
4573
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4574
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4575
   These don't provoke an error unfortunately, instead are silently treated
 
4576
   as 'x'.  The following induces an error, until -std is added to get
 
4577
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4578
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4579
   that's true only with -std.  */
 
4580
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4581
 
 
4582
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4583
   inside strings and character constants.  */
 
4584
#define FOO(x) 'x'
 
4585
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4586
 
 
4587
int test (int i, double x);
 
4588
struct s1 {int (*f) (int a);};
 
4589
struct s2 {int (*f) (double a);};
 
4590
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4591
int argc;
 
4592
char **argv;
 
4593
int
 
4594
main ()
 
4595
{
 
4596
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4597
  ;
 
4598
  return 0;
 
4599
}
 
4600
_ACEOF
 
4601
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4602
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4603
do
 
4604
  CC="$ac_save_CC $ac_arg"
 
4605
  if ac_fn_c_try_compile "$LINENO"; then :
 
4606
  ac_cv_prog_cc_c89=$ac_arg
 
4607
fi
 
4608
rm -f core conftest.err conftest.$ac_objext
 
4609
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4610
done
 
4611
rm -f conftest.$ac_ext
 
4612
CC=$ac_save_CC
 
4613
 
 
4614
fi
 
4615
# AC_CACHE_VAL
 
4616
case "x$ac_cv_prog_cc_c89" in
 
4617
  x)
 
4618
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4619
$as_echo "none needed" >&6; } ;;
 
4620
  xno)
 
4621
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4622
$as_echo "unsupported" >&6; } ;;
 
4623
  *)
 
4624
    CC="$CC $ac_cv_prog_cc_c89"
 
4625
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4626
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4627
esac
 
4628
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4629
 
 
4630
fi
 
4631
 
 
4632
ac_ext=c
 
4633
ac_cpp='$CPP $CPPFLAGS'
 
4634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4637
 
 
4638
depcc="$CC"   am_compiler_list=
 
4639
 
 
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4641
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4642
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4643
  $as_echo_n "(cached) " >&6
 
4644
else
 
4645
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4646
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4647
  # making bogus files that we don't know about and never remove.  For
 
4648
  # instance it was reported that on HP-UX the gcc test will end up
 
4649
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4650
  # in D".
 
4651
  rm -rf conftest.dir
 
4652
  mkdir conftest.dir
 
4653
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4654
  # using a relative directory.
 
4655
  cp "$am_depcomp" conftest.dir
 
4656
  cd conftest.dir
 
4657
  # We will build objects and dependencies in a subdirectory because
 
4658
  # it helps to detect inapplicable dependency modes.  For instance
 
4659
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4660
  # side effect of compilation, but ICC will put the dependencies in
 
4661
  # the current directory while Tru64 will put them in the object
 
4662
  # directory.
 
4663
  mkdir sub
 
4664
 
 
4665
  am_cv_CC_dependencies_compiler_type=none
 
4666
  if test "$am_compiler_list" = ""; then
 
4667
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4668
  fi
 
4669
  am__universal=false
 
4670
  case " $depcc " in #(
 
4671
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4672
     esac
 
4673
 
 
4674
  for depmode in $am_compiler_list; do
 
4675
    # Setup a source with many dependencies, because some compilers
 
4676
    # like to wrap large dependency lists on column 80 (with \), and
 
4677
    # we should not choose a depcomp mode which is confused by this.
 
4678
    #
 
4679
    # We need to recreate these files for each test, as the compiler may
 
4680
    # overwrite some of them when testing with obscure command lines.
 
4681
    # This happens at least with the AIX C compiler.
 
4682
    : > sub/conftest.c
 
4683
    for i in 1 2 3 4 5 6; do
 
4684
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4685
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4686
      # Solaris 10 /bin/sh.
 
4687
      echo '/* dummy */' > sub/conftst$i.h
 
4688
    done
 
4689
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4690
 
 
4691
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
4692
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4693
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4694
    # versions had trouble with output in subdirs.
 
4695
    am__obj=sub/conftest.${OBJEXT-o}
 
4696
    am__minus_obj="-o $am__obj"
 
4697
    case $depmode in
 
4698
    gcc)
 
4699
      # This depmode causes a compiler race in universal mode.
 
4700
      test "$am__universal" = false || continue
 
4701
      ;;
 
4702
    nosideeffect)
 
4703
      # After this tag, mechanisms are not by side-effect, so they'll
 
4704
      # only be used when explicitly requested.
 
4705
      if test "x$enable_dependency_tracking" = xyes; then
 
4706
        continue
 
4707
      else
 
4708
        break
 
4709
      fi
 
4710
      ;;
 
4711
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4712
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4713
      # not run yet.  These depmodes are late enough in the game, and
 
4714
      # so weak that their functioning should not be impacted.
 
4715
      am__obj=conftest.${OBJEXT-o}
 
4716
      am__minus_obj=
 
4717
      ;;
 
4718
    none) break ;;
 
4719
    esac
 
4720
    if depmode=$depmode \
 
4721
       source=sub/conftest.c object=$am__obj \
 
4722
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4723
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4724
         >/dev/null 2>conftest.err &&
 
4725
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4726
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4727
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4728
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4729
      # icc doesn't choke on unknown options, it will just issue warnings
 
4730
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4731
      # that says an option was ignored or not supported.
 
4732
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4733
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4734
      # The diagnosis changed in icc 8.0:
 
4735
      #   icc: Command line remark: option '-MP' not supported
 
4736
      if (grep 'ignoring option' conftest.err ||
 
4737
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4738
        am_cv_CC_dependencies_compiler_type=$depmode
 
4739
        break
 
4740
      fi
 
4741
    fi
 
4742
  done
 
4743
 
 
4744
  cd ..
 
4745
  rm -rf conftest.dir
 
4746
else
 
4747
  am_cv_CC_dependencies_compiler_type=none
 
4748
fi
 
4749
 
 
4750
fi
 
4751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4752
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4753
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4754
 
 
4755
 if
 
4756
  test "x$enable_dependency_tracking" != xno \
 
4757
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4758
  am__fastdepCC_TRUE=
 
4759
  am__fastdepCC_FALSE='#'
 
4760
else
 
4761
  am__fastdepCC_TRUE='#'
 
4762
  am__fastdepCC_FALSE=
 
4763
fi
 
4764
 
 
4765
 
 
4766
 
 
4767
if test -n "$ac_tool_prefix"; then
 
4768
  for ac_prog in ar lib "link -lib"
 
4769
  do
 
4770
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4771
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4773
$as_echo_n "checking for $ac_word... " >&6; }
 
4774
if ${ac_cv_prog_AR+:} false; then :
 
4775
  $as_echo_n "(cached) " >&6
 
4776
else
 
4777
  if test -n "$AR"; then
 
4778
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4779
else
 
4780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4781
for as_dir in $PATH
 
4782
do
 
4783
  IFS=$as_save_IFS
 
4784
  test -z "$as_dir" && as_dir=.
 
4785
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4786
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4787
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
4788
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4789
    break 2
 
4790
  fi
 
4791
done
 
4792
  done
 
4793
IFS=$as_save_IFS
 
4794
 
 
4795
fi
 
4796
fi
 
4797
AR=$ac_cv_prog_AR
 
4798
if test -n "$AR"; then
 
4799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
4800
$as_echo "$AR" >&6; }
 
4801
else
 
4802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4803
$as_echo "no" >&6; }
 
4804
fi
 
4805
 
 
4806
 
 
4807
    test -n "$AR" && break
 
4808
  done
 
4809
fi
 
4810
if test -z "$AR"; then
 
4811
  ac_ct_AR=$AR
 
4812
  for ac_prog in ar lib "link -lib"
 
4813
do
 
4814
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4815
set dummy $ac_prog; ac_word=$2
 
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4817
$as_echo_n "checking for $ac_word... " >&6; }
 
4818
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
4819
  $as_echo_n "(cached) " >&6
 
4820
else
 
4821
  if test -n "$ac_ct_AR"; then
 
4822
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4823
else
 
4824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4825
for as_dir in $PATH
 
4826
do
 
4827
  IFS=$as_save_IFS
 
4828
  test -z "$as_dir" && as_dir=.
 
4829
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4830
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4831
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
4832
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4833
    break 2
 
4834
  fi
 
4835
done
 
4836
  done
 
4837
IFS=$as_save_IFS
 
4838
 
 
4839
fi
 
4840
fi
 
4841
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
4842
if test -n "$ac_ct_AR"; then
 
4843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
4844
$as_echo "$ac_ct_AR" >&6; }
 
4845
else
 
4846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4847
$as_echo "no" >&6; }
 
4848
fi
 
4849
 
 
4850
 
 
4851
  test -n "$ac_ct_AR" && break
 
4852
done
 
4853
 
 
4854
  if test "x$ac_ct_AR" = x; then
 
4855
    AR="false"
 
4856
  else
 
4857
    case $cross_compiling:$ac_tool_warned in
 
4858
yes:)
 
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4860
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4861
ac_tool_warned=yes ;;
 
4862
esac
 
4863
    AR=$ac_ct_AR
 
4864
  fi
 
4865
fi
 
4866
 
 
4867
: ${AR=ar}
 
4868
 
 
4869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
 
4870
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
 
4871
if ${am_cv_ar_interface+:} false; then :
 
4872
  $as_echo_n "(cached) " >&6
 
4873
else
 
4874
  am_cv_ar_interface=ar
 
4875
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4876
/* end confdefs.h.  */
 
4877
int some_variable = 0;
 
4878
_ACEOF
 
4879
if ac_fn_c_try_compile "$LINENO"; then :
 
4880
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
 
4881
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
4882
  (eval $am_ar_try) 2>&5
 
4883
  ac_status=$?
 
4884
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4885
  test $ac_status = 0; }
 
4886
      if test "$ac_status" -eq 0; then
 
4887
        am_cv_ar_interface=ar
 
4888
      else
 
4889
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
 
4890
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 
4891
  (eval $am_ar_try) 2>&5
 
4892
  ac_status=$?
 
4893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4894
  test $ac_status = 0; }
 
4895
        if test "$ac_status" -eq 0; then
 
4896
          am_cv_ar_interface=lib
 
4897
        else
 
4898
          am_cv_ar_interface=unknown
 
4899
        fi
 
4900
      fi
 
4901
      rm -f conftest.lib libconftest.a
 
4902
 
 
4903
fi
 
4904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4905
 
 
4906
fi
 
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
 
4908
$as_echo "$am_cv_ar_interface" >&6; }
 
4909
 
 
4910
case $am_cv_ar_interface in
 
4911
ar)
 
4912
  ;;
 
4913
lib)
 
4914
  # Microsoft lib, so override with the ar-lib wrapper script.
 
4915
  # FIXME: It is wrong to rewrite AR.
 
4916
  # But if we don't then we get into trouble of one sort or another.
 
4917
  # A longer-term fix would be to have automake use am__AR in this case,
 
4918
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 
4919
  # similar.
 
4920
  AR="$am_aux_dir/ar-lib $AR"
 
4921
  ;;
 
4922
unknown)
 
4923
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
 
4924
  ;;
 
4925
esac
 
4926
 
 
4927
 
 
4928
## Set updisable-shared Libtool
 
4929
 
 
4930
case `pwd` in
 
4931
  *\ * | *\     *)
 
4932
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4933
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4934
esac
 
4935
 
 
4936
 
 
4937
 
 
4938
macro_version='2.4.6'
 
4939
macro_revision='2.4.6'
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
ltmain=$ac_aux_dir/ltmain.sh
 
4954
 
 
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4956
$as_echo_n "checking host system type... " >&6; }
 
4957
if ${ac_cv_host+:} false; then :
 
4958
  $as_echo_n "(cached) " >&6
 
4959
else
 
4960
  if test "x$host_alias" = x; then
 
4961
  ac_cv_host=$ac_cv_build
 
4962
else
 
4963
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4964
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4965
fi
 
4966
 
 
4967
fi
 
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4969
$as_echo "$ac_cv_host" >&6; }
 
4970
case $ac_cv_host in
 
4971
*-*-*) ;;
 
4972
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4973
esac
 
4974
host=$ac_cv_host
 
4975
ac_save_IFS=$IFS; IFS='-'
 
4976
set x $ac_cv_host
 
4977
shift
 
4978
host_cpu=$1
 
4979
host_vendor=$2
 
4980
shift; shift
 
4981
# Remember, the first character of IFS is used to create $*,
 
4982
# except with old shells:
 
4983
host_os=$*
 
4984
IFS=$ac_save_IFS
 
4985
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4986
 
 
4987
 
 
4988
# Backslashify metacharacters that are still active within
 
4989
# double-quoted strings.
 
4990
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4991
 
 
4992
# Same as above, but do not quote variable references.
 
4993
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4994
 
 
4995
# Sed substitution to delay expansion of an escaped shell variable in a
 
4996
# double_quote_subst'ed string.
 
4997
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4998
 
 
4999
# Sed substitution to delay expansion of an escaped single quote.
 
5000
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5001
 
 
5002
# Sed substitution to avoid accidental globbing in evaled expressions
 
5003
no_glob_subst='s/\*/\\\*/g'
 
5004
 
 
5005
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5006
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5007
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5008
 
 
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5010
$as_echo_n "checking how to print strings... " >&6; }
 
5011
# Test print first, because it will be a builtin if present.
 
5012
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5013
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5014
  ECHO='print -r --'
 
5015
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5016
  ECHO='printf %s\n'
 
5017
else
 
5018
  # Use this function as a fallback that always works.
 
5019
  func_fallback_echo ()
 
5020
  {
 
5021
    eval 'cat <<_LTECHO_EOF
 
5022
$1
 
5023
_LTECHO_EOF'
 
5024
  }
 
5025
  ECHO='func_fallback_echo'
 
5026
fi
 
5027
 
 
5028
# func_echo_all arg...
 
5029
# Invoke $ECHO with all args, space-separated.
 
5030
func_echo_all ()
 
5031
{
 
5032
    $ECHO ""
 
5033
}
 
5034
 
 
5035
case $ECHO in
 
5036
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5037
$as_echo "printf" >&6; } ;;
 
5038
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5039
$as_echo "print -r" >&6; } ;;
 
5040
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5041
$as_echo "cat" >&6; } ;;
 
5042
esac
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
 
 
5055
 
 
5056
 
 
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5058
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5059
if ${ac_cv_path_SED+:} false; then :
 
5060
  $as_echo_n "(cached) " >&6
 
5061
else
 
5062
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5063
     for ac_i in 1 2 3 4 5 6 7; do
 
5064
       ac_script="$ac_script$as_nl$ac_script"
 
5065
     done
 
5066
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5067
     { ac_script=; unset ac_script;}
 
5068
     if test -z "$SED"; then
 
5069
  ac_path_SED_found=false
 
5070
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5071
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5072
for as_dir in $PATH
 
5073
do
 
5074
  IFS=$as_save_IFS
 
5075
  test -z "$as_dir" && as_dir=.
 
5076
    for ac_prog in sed gsed; do
 
5077
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5078
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5079
      as_fn_executable_p "$ac_path_SED" || continue
 
5080
# Check for GNU ac_path_SED and select it if it is found.
 
5081
  # Check for GNU $ac_path_SED
 
5082
case `"$ac_path_SED" --version 2>&1` in
 
5083
*GNU*)
 
5084
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5085
*)
 
5086
  ac_count=0
 
5087
  $as_echo_n 0123456789 >"conftest.in"
 
5088
  while :
 
5089
  do
 
5090
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5091
    mv "conftest.tmp" "conftest.in"
 
5092
    cp "conftest.in" "conftest.nl"
 
5093
    $as_echo '' >> "conftest.nl"
 
5094
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5095
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5096
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5097
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5098
      # Best one so far, save it but keep looking for a better one
 
5099
      ac_cv_path_SED="$ac_path_SED"
 
5100
      ac_path_SED_max=$ac_count
 
5101
    fi
 
5102
    # 10*(2^10) chars as input seems more than enough
 
5103
    test $ac_count -gt 10 && break
 
5104
  done
 
5105
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5106
esac
 
5107
 
 
5108
      $ac_path_SED_found && break 3
 
5109
    done
 
5110
  done
 
5111
  done
 
5112
IFS=$as_save_IFS
 
5113
  if test -z "$ac_cv_path_SED"; then
 
5114
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5115
  fi
 
5116
else
 
5117
  ac_cv_path_SED=$SED
 
5118
fi
 
5119
 
 
5120
fi
 
5121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5122
$as_echo "$ac_cv_path_SED" >&6; }
 
5123
 SED="$ac_cv_path_SED"
 
5124
  rm -f conftest.sed
 
5125
 
 
5126
test -z "$SED" && SED=sed
 
5127
Xsed="$SED -e 1s/^X//"
 
5128
 
 
5129
 
 
5130
 
 
5131
 
 
5132
 
 
5133
 
 
5134
 
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5140
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5141
if ${ac_cv_path_GREP+:} false; then :
 
5142
  $as_echo_n "(cached) " >&6
 
5143
else
 
5144
  if test -z "$GREP"; then
 
5145
  ac_path_GREP_found=false
 
5146
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5147
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5148
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5149
do
 
5150
  IFS=$as_save_IFS
 
5151
  test -z "$as_dir" && as_dir=.
 
5152
    for ac_prog in grep ggrep; do
 
5153
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5154
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5155
      as_fn_executable_p "$ac_path_GREP" || continue
 
5156
# Check for GNU ac_path_GREP and select it if it is found.
 
5157
  # Check for GNU $ac_path_GREP
 
5158
case `"$ac_path_GREP" --version 2>&1` in
 
5159
*GNU*)
 
5160
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5161
*)
 
5162
  ac_count=0
 
5163
  $as_echo_n 0123456789 >"conftest.in"
 
5164
  while :
 
5165
  do
 
5166
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5167
    mv "conftest.tmp" "conftest.in"
 
5168
    cp "conftest.in" "conftest.nl"
 
5169
    $as_echo 'GREP' >> "conftest.nl"
 
5170
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5171
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5172
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5173
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5174
      # Best one so far, save it but keep looking for a better one
 
5175
      ac_cv_path_GREP="$ac_path_GREP"
 
5176
      ac_path_GREP_max=$ac_count
 
5177
    fi
 
5178
    # 10*(2^10) chars as input seems more than enough
 
5179
    test $ac_count -gt 10 && break
 
5180
  done
 
5181
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5182
esac
 
5183
 
 
5184
      $ac_path_GREP_found && break 3
 
5185
    done
 
5186
  done
 
5187
  done
 
5188
IFS=$as_save_IFS
 
5189
  if test -z "$ac_cv_path_GREP"; then
 
5190
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5191
  fi
 
5192
else
 
5193
  ac_cv_path_GREP=$GREP
 
5194
fi
 
5195
 
 
5196
fi
 
5197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5198
$as_echo "$ac_cv_path_GREP" >&6; }
 
5199
 GREP="$ac_cv_path_GREP"
 
5200
 
 
5201
 
 
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5203
$as_echo_n "checking for egrep... " >&6; }
 
5204
if ${ac_cv_path_EGREP+:} false; then :
 
5205
  $as_echo_n "(cached) " >&6
 
5206
else
 
5207
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5208
   then ac_cv_path_EGREP="$GREP -E"
 
5209
   else
 
5210
     if test -z "$EGREP"; then
 
5211
  ac_path_EGREP_found=false
 
5212
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5213
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5214
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5215
do
 
5216
  IFS=$as_save_IFS
 
5217
  test -z "$as_dir" && as_dir=.
 
5218
    for ac_prog in egrep; do
 
5219
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5220
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5221
      as_fn_executable_p "$ac_path_EGREP" || continue
 
5222
# Check for GNU ac_path_EGREP and select it if it is found.
 
5223
  # Check for GNU $ac_path_EGREP
 
5224
case `"$ac_path_EGREP" --version 2>&1` in
 
5225
*GNU*)
 
5226
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5227
*)
 
5228
  ac_count=0
 
5229
  $as_echo_n 0123456789 >"conftest.in"
 
5230
  while :
 
5231
  do
 
5232
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5233
    mv "conftest.tmp" "conftest.in"
 
5234
    cp "conftest.in" "conftest.nl"
 
5235
    $as_echo 'EGREP' >> "conftest.nl"
 
5236
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5237
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5238
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5239
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5240
      # Best one so far, save it but keep looking for a better one
 
5241
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5242
      ac_path_EGREP_max=$ac_count
 
5243
    fi
 
5244
    # 10*(2^10) chars as input seems more than enough
 
5245
    test $ac_count -gt 10 && break
 
5246
  done
 
5247
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5248
esac
 
5249
 
 
5250
      $ac_path_EGREP_found && break 3
 
5251
    done
 
5252
  done
 
5253
  done
 
5254
IFS=$as_save_IFS
 
5255
  if test -z "$ac_cv_path_EGREP"; then
 
5256
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5257
  fi
 
5258
else
 
5259
  ac_cv_path_EGREP=$EGREP
 
5260
fi
 
5261
 
 
5262
   fi
 
5263
fi
 
5264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5265
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5266
 EGREP="$ac_cv_path_EGREP"
 
5267
 
 
5268
 
 
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5270
$as_echo_n "checking for fgrep... " >&6; }
 
5271
if ${ac_cv_path_FGREP+:} false; then :
 
5272
  $as_echo_n "(cached) " >&6
 
5273
else
 
5274
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5275
   then ac_cv_path_FGREP="$GREP -F"
 
5276
   else
 
5277
     if test -z "$FGREP"; then
 
5278
  ac_path_FGREP_found=false
 
5279
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5280
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5281
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5282
do
 
5283
  IFS=$as_save_IFS
 
5284
  test -z "$as_dir" && as_dir=.
 
5285
    for ac_prog in fgrep; do
 
5286
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5287
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5288
      as_fn_executable_p "$ac_path_FGREP" || continue
 
5289
# Check for GNU ac_path_FGREP and select it if it is found.
 
5290
  # Check for GNU $ac_path_FGREP
 
5291
case `"$ac_path_FGREP" --version 2>&1` in
 
5292
*GNU*)
 
5293
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5294
*)
 
5295
  ac_count=0
 
5296
  $as_echo_n 0123456789 >"conftest.in"
 
5297
  while :
 
5298
  do
 
5299
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5300
    mv "conftest.tmp" "conftest.in"
 
5301
    cp "conftest.in" "conftest.nl"
 
5302
    $as_echo 'FGREP' >> "conftest.nl"
 
5303
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5304
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5305
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5306
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5307
      # Best one so far, save it but keep looking for a better one
 
5308
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5309
      ac_path_FGREP_max=$ac_count
 
5310
    fi
 
5311
    # 10*(2^10) chars as input seems more than enough
 
5312
    test $ac_count -gt 10 && break
 
5313
  done
 
5314
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5315
esac
 
5316
 
 
5317
      $ac_path_FGREP_found && break 3
 
5318
    done
 
5319
  done
 
5320
  done
 
5321
IFS=$as_save_IFS
 
5322
  if test -z "$ac_cv_path_FGREP"; then
 
5323
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5324
  fi
 
5325
else
 
5326
  ac_cv_path_FGREP=$FGREP
 
5327
fi
 
5328
 
 
5329
   fi
 
5330
fi
 
5331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5332
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5333
 FGREP="$ac_cv_path_FGREP"
 
5334
 
 
5335
 
 
5336
test -z "$GREP" && GREP=grep
 
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
# Check whether --with-gnu-ld was given.
 
5357
if test "${with_gnu_ld+set}" = set; then :
 
5358
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 
5359
else
 
5360
  with_gnu_ld=no
 
5361
fi
 
5362
 
 
5363
ac_prog=ld
 
5364
if test yes = "$GCC"; then
 
5365
  # Check if gcc -print-prog-name=ld gives a path.
 
5366
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5367
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5368
  case $host in
 
5369
  *-*-mingw*)
 
5370
    # gcc leaves a trailing carriage return, which upsets mingw
 
5371
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5372
  *)
 
5373
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5374
  esac
 
5375
  case $ac_prog in
 
5376
    # Accept absolute paths.
 
5377
    [\\/]* | ?:[\\/]*)
 
5378
      re_direlt='/[^/][^/]*/\.\./'
 
5379
      # Canonicalize the pathname of ld
 
5380
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5381
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5382
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5383
      done
 
5384
      test -z "$LD" && LD=$ac_prog
 
5385
      ;;
 
5386
  "")
 
5387
    # If it fails, then pretend we aren't using GCC.
 
5388
    ac_prog=ld
 
5389
    ;;
 
5390
  *)
 
5391
    # If it is relative, then search for the first ld in PATH.
 
5392
    with_gnu_ld=unknown
 
5393
    ;;
 
5394
  esac
 
5395
elif test yes = "$with_gnu_ld"; then
 
5396
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5397
$as_echo_n "checking for GNU ld... " >&6; }
 
5398
else
 
5399
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5400
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5401
fi
 
5402
if ${lt_cv_path_LD+:} false; then :
 
5403
  $as_echo_n "(cached) " >&6
 
5404
else
 
5405
  if test -z "$LD"; then
 
5406
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
5407
  for ac_dir in $PATH; do
 
5408
    IFS=$lt_save_ifs
 
5409
    test -z "$ac_dir" && ac_dir=.
 
5410
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5411
      lt_cv_path_LD=$ac_dir/$ac_prog
 
5412
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5413
      # but apparently some variants of GNU ld only accept -v.
 
5414
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5415
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5416
      *GNU* | *'with BFD'*)
 
5417
        test no != "$with_gnu_ld" && break
 
5418
        ;;
 
5419
      *)
 
5420
        test yes != "$with_gnu_ld" && break
 
5421
        ;;
 
5422
      esac
 
5423
    fi
 
5424
  done
 
5425
  IFS=$lt_save_ifs
 
5426
else
 
5427
  lt_cv_path_LD=$LD # Let the user override the test with a path.
 
5428
fi
 
5429
fi
 
5430
 
 
5431
LD=$lt_cv_path_LD
 
5432
if test -n "$LD"; then
 
5433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5434
$as_echo "$LD" >&6; }
 
5435
else
 
5436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5437
$as_echo "no" >&6; }
 
5438
fi
 
5439
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5441
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5442
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5443
  $as_echo_n "(cached) " >&6
 
5444
else
 
5445
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5446
case `$LD -v 2>&1 </dev/null` in
 
5447
*GNU* | *'with BFD'*)
 
5448
  lt_cv_prog_gnu_ld=yes
 
5449
  ;;
 
5450
*)
 
5451
  lt_cv_prog_gnu_ld=no
 
5452
  ;;
 
5453
esac
 
5454
fi
 
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5456
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5457
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
 
 
5467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5468
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5469
if ${lt_cv_path_NM+:} false; then :
 
5470
  $as_echo_n "(cached) " >&6
 
5471
else
 
5472
  if test -n "$NM"; then
 
5473
  # Let the user override the test.
 
5474
  lt_cv_path_NM=$NM
 
5475
else
 
5476
  lt_nm_to_check=${ac_tool_prefix}nm
 
5477
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5478
    lt_nm_to_check="$lt_nm_to_check nm"
 
5479
  fi
 
5480
  for lt_tmp_nm in $lt_nm_to_check; do
 
5481
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
5482
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5483
      IFS=$lt_save_ifs
 
5484
      test -z "$ac_dir" && ac_dir=.
 
5485
      tmp_nm=$ac_dir/$lt_tmp_nm
 
5486
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 
5487
        # Check to see if the nm accepts a BSD-compat flag.
 
5488
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 
5489
        #   nm: unknown option "B" ignored
 
5490
        # Tru64's nm complains that /dev/null is an invalid object file
 
5491
        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 
5492
        case $build_os in
 
5493
        mingw*) lt_bad_file=conftest.nm/nofile ;;
 
5494
        *) lt_bad_file=/dev/null ;;
 
5495
        esac
 
5496
        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
 
5497
        *$lt_bad_file* | *'Invalid file or object type'*)
 
5498
          lt_cv_path_NM="$tmp_nm -B"
 
5499
          break 2
 
5500
          ;;
 
5501
        *)
 
5502
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5503
          */dev/null*)
 
5504
            lt_cv_path_NM="$tmp_nm -p"
 
5505
            break 2
 
5506
            ;;
 
5507
          *)
 
5508
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5509
            continue # so that we can try to find one that supports BSD flags
 
5510
            ;;
 
5511
          esac
 
5512
          ;;
 
5513
        esac
 
5514
      fi
 
5515
    done
 
5516
    IFS=$lt_save_ifs
 
5517
  done
 
5518
  : ${lt_cv_path_NM=no}
 
5519
fi
 
5520
fi
 
5521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5522
$as_echo "$lt_cv_path_NM" >&6; }
 
5523
if test no != "$lt_cv_path_NM"; then
 
5524
  NM=$lt_cv_path_NM
 
5525
else
 
5526
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5527
  if test -n "$DUMPBIN"; then :
 
5528
    # Let the user override the test.
 
5529
  else
 
5530
    if test -n "$ac_tool_prefix"; then
 
5531
  for ac_prog in dumpbin "link -dump"
 
5532
  do
 
5533
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5534
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5536
$as_echo_n "checking for $ac_word... " >&6; }
 
5537
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5538
  $as_echo_n "(cached) " >&6
 
5539
else
 
5540
  if test -n "$DUMPBIN"; then
 
5541
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5542
else
 
5543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5544
for as_dir in $PATH
 
5545
do
 
5546
  IFS=$as_save_IFS
 
5547
  test -z "$as_dir" && as_dir=.
 
5548
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5549
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5550
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5551
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5552
    break 2
 
5553
  fi
 
5554
done
 
5555
  done
 
5556
IFS=$as_save_IFS
 
5557
 
 
5558
fi
 
5559
fi
 
5560
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5561
if test -n "$DUMPBIN"; then
 
5562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5563
$as_echo "$DUMPBIN" >&6; }
 
5564
else
 
5565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5566
$as_echo "no" >&6; }
 
5567
fi
 
5568
 
 
5569
 
 
5570
    test -n "$DUMPBIN" && break
 
5571
  done
 
5572
fi
 
5573
if test -z "$DUMPBIN"; then
 
5574
  ac_ct_DUMPBIN=$DUMPBIN
 
5575
  for ac_prog in dumpbin "link -dump"
 
5576
do
 
5577
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5578
set dummy $ac_prog; ac_word=$2
 
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5580
$as_echo_n "checking for $ac_word... " >&6; }
 
5581
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5582
  $as_echo_n "(cached) " >&6
 
5583
else
 
5584
  if test -n "$ac_ct_DUMPBIN"; then
 
5585
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5586
else
 
5587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5588
for as_dir in $PATH
 
5589
do
 
5590
  IFS=$as_save_IFS
 
5591
  test -z "$as_dir" && as_dir=.
 
5592
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5593
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5594
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5595
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5596
    break 2
 
5597
  fi
 
5598
done
 
5599
  done
 
5600
IFS=$as_save_IFS
 
5601
 
 
5602
fi
 
5603
fi
 
5604
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5605
if test -n "$ac_ct_DUMPBIN"; then
 
5606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5607
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5608
else
 
5609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5610
$as_echo "no" >&6; }
 
5611
fi
 
5612
 
 
5613
 
 
5614
  test -n "$ac_ct_DUMPBIN" && break
 
5615
done
 
5616
 
 
5617
  if test "x$ac_ct_DUMPBIN" = x; then
 
5618
    DUMPBIN=":"
 
5619
  else
 
5620
    case $cross_compiling:$ac_tool_warned in
 
5621
yes:)
 
5622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5624
ac_tool_warned=yes ;;
 
5625
esac
 
5626
    DUMPBIN=$ac_ct_DUMPBIN
 
5627
  fi
 
5628
fi
 
5629
 
 
5630
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
 
5631
    *COFF*)
 
5632
      DUMPBIN="$DUMPBIN -symbols -headers"
 
5633
      ;;
 
5634
    *)
 
5635
      DUMPBIN=:
 
5636
      ;;
 
5637
    esac
 
5638
  fi
 
5639
 
 
5640
  if test : != "$DUMPBIN"; then
 
5641
    NM=$DUMPBIN
 
5642
  fi
 
5643
fi
 
5644
test -z "$NM" && NM=nm
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5652
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5653
if ${lt_cv_nm_interface+:} false; then :
 
5654
  $as_echo_n "(cached) " >&6
 
5655
else
 
5656
  lt_cv_nm_interface="BSD nm"
 
5657
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5658
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5659
  (eval "$ac_compile" 2>conftest.err)
 
5660
  cat conftest.err >&5
 
5661
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5662
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5663
  cat conftest.err >&5
 
5664
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5665
  cat conftest.out >&5
 
5666
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5667
    lt_cv_nm_interface="MS dumpbin"
 
5668
  fi
 
5669
  rm -f conftest*
 
5670
fi
 
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5672
$as_echo "$lt_cv_nm_interface" >&6; }
 
5673
 
 
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5675
$as_echo_n "checking whether ln -s works... " >&6; }
 
5676
LN_S=$as_ln_s
 
5677
if test "$LN_S" = "ln -s"; then
 
5678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5679
$as_echo "yes" >&6; }
 
5680
else
 
5681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5682
$as_echo "no, using $LN_S" >&6; }
 
5683
fi
 
5684
 
 
5685
# find the maximum length of command line arguments
 
5686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5687
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5688
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5689
  $as_echo_n "(cached) " >&6
 
5690
else
 
5691
    i=0
 
5692
  teststring=ABCD
 
5693
 
 
5694
  case $build_os in
 
5695
  msdosdjgpp*)
 
5696
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5697
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5698
    # during glob expansion).  Even if it were fixed, the result of this
 
5699
    # check would be larger than it should be.
 
5700
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5701
    ;;
 
5702
 
 
5703
  gnu*)
 
5704
    # Under GNU Hurd, this test is not required because there is
 
5705
    # no limit to the length of command line arguments.
 
5706
    # Libtool will interpret -1 as no limit whatsoever
 
5707
    lt_cv_sys_max_cmd_len=-1;
 
5708
    ;;
 
5709
 
 
5710
  cygwin* | mingw* | cegcc*)
 
5711
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5712
    # about 5 minutes as the teststring grows exponentially.
 
5713
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5714
    # you end up with a "frozen" computer, even though with patience
 
5715
    # the test eventually succeeds (with a max line length of 256k).
 
5716
    # Instead, let's just punt: use the minimum linelength reported by
 
5717
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5718
    lt_cv_sys_max_cmd_len=8192;
 
5719
    ;;
 
5720
 
 
5721
  mint*)
 
5722
    # On MiNT this can take a long time and run out of memory.
 
5723
    lt_cv_sys_max_cmd_len=8192;
 
5724
    ;;
 
5725
 
 
5726
  amigaos*)
 
5727
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5728
    # So we just punt and use a minimum line length of 8192.
 
5729
    lt_cv_sys_max_cmd_len=8192;
 
5730
    ;;
 
5731
 
 
5732
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
 
5733
    # This has been around since 386BSD, at least.  Likely further.
 
5734
    if test -x /sbin/sysctl; then
 
5735
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5736
    elif test -x /usr/sbin/sysctl; then
 
5737
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5738
    else
 
5739
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5740
    fi
 
5741
    # And add a safety zone
 
5742
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5743
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5744
    ;;
 
5745
 
 
5746
  interix*)
 
5747
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5748
    lt_cv_sys_max_cmd_len=196608
 
5749
    ;;
 
5750
 
 
5751
  os2*)
 
5752
    # The test takes a long time on OS/2.
 
5753
    lt_cv_sys_max_cmd_len=8192
 
5754
    ;;
 
5755
 
 
5756
  osf*)
 
5757
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5758
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5759
    # nice to cause kernel panics so lets avoid the loop below.
 
5760
    # First set a reasonable default.
 
5761
    lt_cv_sys_max_cmd_len=16384
 
5762
    #
 
5763
    if test -x /sbin/sysconfig; then
 
5764
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5765
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5766
      esac
 
5767
    fi
 
5768
    ;;
 
5769
  sco3.2v5*)
 
5770
    lt_cv_sys_max_cmd_len=102400
 
5771
    ;;
 
5772
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5773
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5774
    if test -n "$kargmax"; then
 
5775
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5776
    else
 
5777
      lt_cv_sys_max_cmd_len=32768
 
5778
    fi
 
5779
    ;;
 
5780
  *)
 
5781
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5782
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5783
       test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5784
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5785
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5786
    else
 
5787
      # Make teststring a little bigger before we do anything with it.
 
5788
      # a 1K string should be a reasonable start.
 
5789
      for i in 1 2 3 4 5 6 7 8; do
 
5790
        teststring=$teststring$teststring
 
5791
      done
 
5792
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5793
      # If test is not a shell built-in, we'll probably end up computing a
 
5794
      # maximum length that is only half of the actual maximum length, but
 
5795
      # we can't tell.
 
5796
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 
5797
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5798
              test 17 != "$i" # 1/2 MB should be enough
 
5799
      do
 
5800
        i=`expr $i + 1`
 
5801
        teststring=$teststring$teststring
 
5802
      done
 
5803
      # Only check the string length outside the loop.
 
5804
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5805
      teststring=
 
5806
      # Add a significant safety factor because C++ compilers can tack on
 
5807
      # massive amounts of additional arguments before passing them to the
 
5808
      # linker.  It appears as though 1/2 is a usable value.
 
5809
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5810
    fi
 
5811
    ;;
 
5812
  esac
 
5813
 
 
5814
fi
 
5815
 
 
5816
if test -n "$lt_cv_sys_max_cmd_len"; then
 
5817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5818
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5819
else
 
5820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5821
$as_echo "none" >&6; }
 
5822
fi
 
5823
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5824
 
 
5825
 
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
: ${CP="cp -f"}
 
5831
: ${MV="mv -f"}
 
5832
: ${RM="rm -f"}
 
5833
 
 
5834
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5835
  lt_unset=unset
 
5836
else
 
5837
  lt_unset=false
 
5838
fi
 
5839
 
 
5840
 
 
5841
 
 
5842
 
 
5843
 
 
5844
# test EBCDIC or ASCII
 
5845
case `echo X|tr X '\101'` in
 
5846
 A) # ASCII based system
 
5847
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5848
  lt_SP2NL='tr \040 \012'
 
5849
  lt_NL2SP='tr \015\012 \040\040'
 
5850
  ;;
 
5851
 *) # EBCDIC based system
 
5852
  lt_SP2NL='tr \100 \n'
 
5853
  lt_NL2SP='tr \r\n \100\100'
 
5854
  ;;
 
5855
esac
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5866
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5867
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5868
  $as_echo_n "(cached) " >&6
 
5869
else
 
5870
  case $host in
 
5871
  *-*-mingw* )
 
5872
    case $build in
 
5873
      *-*-mingw* ) # actually msys
 
5874
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5875
        ;;
 
5876
      *-*-cygwin* )
 
5877
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5878
        ;;
 
5879
      * ) # otherwise, assume *nix
 
5880
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5881
        ;;
 
5882
    esac
 
5883
    ;;
 
5884
  *-*-cygwin* )
 
5885
    case $build in
 
5886
      *-*-mingw* ) # actually msys
 
5887
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5888
        ;;
 
5889
      *-*-cygwin* )
 
5890
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5891
        ;;
 
5892
      * ) # otherwise, assume *nix
 
5893
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5894
        ;;
 
5895
    esac
 
5896
    ;;
 
5897
  * ) # unhandled hosts (and "normal" native builds)
 
5898
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5899
    ;;
 
5900
esac
 
5901
 
 
5902
fi
 
5903
 
 
5904
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5906
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5907
 
 
5908
 
 
5909
 
 
5910
 
 
5911
 
 
5912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5913
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5914
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5915
  $as_echo_n "(cached) " >&6
 
5916
else
 
5917
  #assume ordinary cross tools, or native build.
 
5918
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5919
case $host in
 
5920
  *-*-mingw* )
 
5921
    case $build in
 
5922
      *-*-mingw* ) # actually msys
 
5923
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5924
        ;;
 
5925
    esac
 
5926
    ;;
 
5927
esac
 
5928
 
 
5929
fi
 
5930
 
 
5931
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5933
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5940
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5941
if ${lt_cv_ld_reload_flag+:} false; then :
 
5942
  $as_echo_n "(cached) " >&6
 
5943
else
 
5944
  lt_cv_ld_reload_flag='-r'
 
5945
fi
 
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5947
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5948
reload_flag=$lt_cv_ld_reload_flag
 
5949
case $reload_flag in
 
5950
"" | " "*) ;;
 
5951
*) reload_flag=" $reload_flag" ;;
 
5952
esac
 
5953
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5954
case $host_os in
 
5955
  cygwin* | mingw* | pw32* | cegcc*)
 
5956
    if test yes != "$GCC"; then
 
5957
      reload_cmds=false
 
5958
    fi
 
5959
    ;;
 
5960
  darwin*)
 
5961
    if test yes = "$GCC"; then
 
5962
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 
5963
    else
 
5964
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5965
    fi
 
5966
    ;;
 
5967
esac
 
5968
 
 
5969
 
 
5970
 
 
5971
 
 
5972
 
 
5973
 
 
5974
 
 
5975
 
 
5976
 
 
5977
if test -n "$ac_tool_prefix"; then
 
5978
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5979
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5981
$as_echo_n "checking for $ac_word... " >&6; }
 
5982
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5983
  $as_echo_n "(cached) " >&6
 
5984
else
 
5985
  if test -n "$OBJDUMP"; then
 
5986
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5987
else
 
5988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5989
for as_dir in $PATH
 
5990
do
 
5991
  IFS=$as_save_IFS
 
5992
  test -z "$as_dir" && as_dir=.
 
5993
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5994
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5995
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5996
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5997
    break 2
 
5998
  fi
 
5999
done
 
6000
  done
 
6001
IFS=$as_save_IFS
 
6002
 
 
6003
fi
 
6004
fi
 
6005
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6006
if test -n "$OBJDUMP"; then
 
6007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6008
$as_echo "$OBJDUMP" >&6; }
 
6009
else
 
6010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6011
$as_echo "no" >&6; }
 
6012
fi
 
6013
 
 
6014
 
 
6015
fi
 
6016
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6017
  ac_ct_OBJDUMP=$OBJDUMP
 
6018
  # Extract the first word of "objdump", so it can be a program name with args.
 
6019
set dummy objdump; ac_word=$2
 
6020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6021
$as_echo_n "checking for $ac_word... " >&6; }
 
6022
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
6023
  $as_echo_n "(cached) " >&6
 
6024
else
 
6025
  if test -n "$ac_ct_OBJDUMP"; then
 
6026
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6027
else
 
6028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6029
for as_dir in $PATH
 
6030
do
 
6031
  IFS=$as_save_IFS
 
6032
  test -z "$as_dir" && as_dir=.
 
6033
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6034
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6035
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6036
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6037
    break 2
 
6038
  fi
 
6039
done
 
6040
  done
 
6041
IFS=$as_save_IFS
 
6042
 
 
6043
fi
 
6044
fi
 
6045
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6046
if test -n "$ac_ct_OBJDUMP"; then
 
6047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6048
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6049
else
 
6050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6051
$as_echo "no" >&6; }
 
6052
fi
 
6053
 
 
6054
  if test "x$ac_ct_OBJDUMP" = x; then
 
6055
    OBJDUMP="false"
 
6056
  else
 
6057
    case $cross_compiling:$ac_tool_warned in
 
6058
yes:)
 
6059
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6061
ac_tool_warned=yes ;;
 
6062
esac
 
6063
    OBJDUMP=$ac_ct_OBJDUMP
 
6064
  fi
 
6065
else
 
6066
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6067
fi
 
6068
 
 
6069
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
 
 
6077
 
 
6078
 
 
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6080
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6081
if ${lt_cv_deplibs_check_method+:} false; then :
 
6082
  $as_echo_n "(cached) " >&6
 
6083
else
 
6084
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6085
lt_cv_file_magic_test_file=
 
6086
lt_cv_deplibs_check_method='unknown'
 
6087
# Need to set the preceding variable on all platforms that support
 
6088
# interlibrary dependencies.
 
6089
# 'none' -- dependencies not supported.
 
6090
# 'unknown' -- same as none, but documents that we really don't know.
 
6091
# 'pass_all' -- all dependencies passed with no checks.
 
6092
# 'test_compile' -- check by making test program.
 
6093
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6094
# that responds to the $file_magic_cmd with a given extended regex.
 
6095
# If you have 'file' or equivalent on your system and you're not sure
 
6096
# whether 'pass_all' will *always* work, you probably want this one.
 
6097
 
 
6098
case $host_os in
 
6099
aix[4-9]*)
 
6100
  lt_cv_deplibs_check_method=pass_all
 
6101
  ;;
 
6102
 
 
6103
beos*)
 
6104
  lt_cv_deplibs_check_method=pass_all
 
6105
  ;;
 
6106
 
 
6107
bsdi[45]*)
 
6108
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6109
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6110
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6111
  ;;
 
6112
 
 
6113
cygwin*)
 
6114
  # func_win32_libid is a shell function defined in ltmain.sh
 
6115
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6116
  lt_cv_file_magic_cmd='func_win32_libid'
 
6117
  ;;
 
6118
 
 
6119
mingw* | pw32*)
 
6120
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6121
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6122
  # unless we find 'file', for example because we are cross-compiling.
 
6123
  if ( file / ) >/dev/null 2>&1; then
 
6124
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6125
    lt_cv_file_magic_cmd='func_win32_libid'
 
6126
  else
 
6127
    # Keep this pattern in sync with the one in func_win32_libid.
 
6128
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6129
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6130
  fi
 
6131
  ;;
 
6132
 
 
6133
cegcc*)
 
6134
  # use the weaker test based on 'objdump'. See mingw*.
 
6135
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6136
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6137
  ;;
 
6138
 
 
6139
darwin* | rhapsody*)
 
6140
  lt_cv_deplibs_check_method=pass_all
 
6141
  ;;
 
6142
 
 
6143
freebsd* | dragonfly*)
 
6144
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6145
    case $host_cpu in
 
6146
    i*86 )
 
6147
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6148
      # Let's accept both of them until this is cleared up.
 
6149
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6150
      lt_cv_file_magic_cmd=/usr/bin/file
 
6151
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6152
      ;;
 
6153
    esac
 
6154
  else
 
6155
    lt_cv_deplibs_check_method=pass_all
 
6156
  fi
 
6157
  ;;
 
6158
 
 
6159
haiku*)
 
6160
  lt_cv_deplibs_check_method=pass_all
 
6161
  ;;
 
6162
 
 
6163
hpux10.20* | hpux11*)
 
6164
  lt_cv_file_magic_cmd=/usr/bin/file
 
6165
  case $host_cpu in
 
6166
  ia64*)
 
6167
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6168
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6169
    ;;
 
6170
  hppa*64*)
 
6171
    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]'
 
6172
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6173
    ;;
 
6174
  *)
 
6175
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6176
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6177
    ;;
 
6178
  esac
 
6179
  ;;
 
6180
 
 
6181
interix[3-9]*)
 
6182
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6183
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6184
  ;;
 
6185
 
 
6186
irix5* | irix6* | nonstopux*)
 
6187
  case $LD in
 
6188
  *-32|*"-32 ") libmagic=32-bit;;
 
6189
  *-n32|*"-n32 ") libmagic=N32;;
 
6190
  *-64|*"-64 ") libmagic=64-bit;;
 
6191
  *) libmagic=never-match;;
 
6192
  esac
 
6193
  lt_cv_deplibs_check_method=pass_all
 
6194
  ;;
 
6195
 
 
6196
# This must be glibc/ELF.
 
6197
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
6198
  lt_cv_deplibs_check_method=pass_all
 
6199
  ;;
 
6200
 
 
6201
netbsd*)
 
6202
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6203
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6204
  else
 
6205
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6206
  fi
 
6207
  ;;
 
6208
 
 
6209
newos6*)
 
6210
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6211
  lt_cv_file_magic_cmd=/usr/bin/file
 
6212
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6213
  ;;
 
6214
 
 
6215
*nto* | *qnx*)
 
6216
  lt_cv_deplibs_check_method=pass_all
 
6217
  ;;
 
6218
 
 
6219
openbsd* | bitrig*)
 
6220
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
6221
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6222
  else
 
6223
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6224
  fi
 
6225
  ;;
 
6226
 
 
6227
osf3* | osf4* | osf5*)
 
6228
  lt_cv_deplibs_check_method=pass_all
 
6229
  ;;
 
6230
 
 
6231
rdos*)
 
6232
  lt_cv_deplibs_check_method=pass_all
 
6233
  ;;
 
6234
 
 
6235
solaris*)
 
6236
  lt_cv_deplibs_check_method=pass_all
 
6237
  ;;
 
6238
 
 
6239
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6240
  lt_cv_deplibs_check_method=pass_all
 
6241
  ;;
 
6242
 
 
6243
sysv4 | sysv4.3*)
 
6244
  case $host_vendor in
 
6245
  motorola)
 
6246
    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]'
 
6247
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6248
    ;;
 
6249
  ncr)
 
6250
    lt_cv_deplibs_check_method=pass_all
 
6251
    ;;
 
6252
  sequent)
 
6253
    lt_cv_file_magic_cmd='/bin/file'
 
6254
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6255
    ;;
 
6256
  sni)
 
6257
    lt_cv_file_magic_cmd='/bin/file'
 
6258
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6259
    lt_cv_file_magic_test_file=/lib/libc.so
 
6260
    ;;
 
6261
  siemens)
 
6262
    lt_cv_deplibs_check_method=pass_all
 
6263
    ;;
 
6264
  pc)
 
6265
    lt_cv_deplibs_check_method=pass_all
 
6266
    ;;
 
6267
  esac
 
6268
  ;;
 
6269
 
 
6270
tpf*)
 
6271
  lt_cv_deplibs_check_method=pass_all
 
6272
  ;;
 
6273
os2*)
 
6274
  lt_cv_deplibs_check_method=pass_all
 
6275
  ;;
 
6276
esac
 
6277
 
 
6278
fi
 
6279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6280
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6281
 
 
6282
file_magic_glob=
 
6283
want_nocaseglob=no
 
6284
if test "$build" = "$host"; then
 
6285
  case $host_os in
 
6286
  mingw* | pw32*)
 
6287
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6288
      want_nocaseglob=yes
 
6289
    else
 
6290
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6291
    fi
 
6292
    ;;
 
6293
  esac
 
6294
fi
 
6295
 
 
6296
file_magic_cmd=$lt_cv_file_magic_cmd
 
6297
deplibs_check_method=$lt_cv_deplibs_check_method
 
6298
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6299
 
 
6300
 
 
6301
 
 
6302
 
 
6303
 
 
6304
 
 
6305
 
 
6306
 
 
6307
 
 
6308
 
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
 
 
6314
 
 
6315
 
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
if test -n "$ac_tool_prefix"; then
 
6322
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6323
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6325
$as_echo_n "checking for $ac_word... " >&6; }
 
6326
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6327
  $as_echo_n "(cached) " >&6
 
6328
else
 
6329
  if test -n "$DLLTOOL"; then
 
6330
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6331
else
 
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6333
for as_dir in $PATH
 
6334
do
 
6335
  IFS=$as_save_IFS
 
6336
  test -z "$as_dir" && as_dir=.
 
6337
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6338
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6339
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6341
    break 2
 
6342
  fi
 
6343
done
 
6344
  done
 
6345
IFS=$as_save_IFS
 
6346
 
 
6347
fi
 
6348
fi
 
6349
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6350
if test -n "$DLLTOOL"; then
 
6351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6352
$as_echo "$DLLTOOL" >&6; }
 
6353
else
 
6354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6355
$as_echo "no" >&6; }
 
6356
fi
 
6357
 
 
6358
 
 
6359
fi
 
6360
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6361
  ac_ct_DLLTOOL=$DLLTOOL
 
6362
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6363
set dummy dlltool; ac_word=$2
 
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6365
$as_echo_n "checking for $ac_word... " >&6; }
 
6366
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6367
  $as_echo_n "(cached) " >&6
 
6368
else
 
6369
  if test -n "$ac_ct_DLLTOOL"; then
 
6370
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6371
else
 
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6373
for as_dir in $PATH
 
6374
do
 
6375
  IFS=$as_save_IFS
 
6376
  test -z "$as_dir" && as_dir=.
 
6377
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6378
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6379
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6381
    break 2
 
6382
  fi
 
6383
done
 
6384
  done
 
6385
IFS=$as_save_IFS
 
6386
 
 
6387
fi
 
6388
fi
 
6389
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6390
if test -n "$ac_ct_DLLTOOL"; then
 
6391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6392
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6393
else
 
6394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6395
$as_echo "no" >&6; }
 
6396
fi
 
6397
 
 
6398
  if test "x$ac_ct_DLLTOOL" = x; then
 
6399
    DLLTOOL="false"
 
6400
  else
 
6401
    case $cross_compiling:$ac_tool_warned in
 
6402
yes:)
 
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6405
ac_tool_warned=yes ;;
 
6406
esac
 
6407
    DLLTOOL=$ac_ct_DLLTOOL
 
6408
  fi
 
6409
else
 
6410
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6411
fi
 
6412
 
 
6413
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6425
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6426
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6427
  $as_echo_n "(cached) " >&6
 
6428
else
 
6429
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6430
 
 
6431
case $host_os in
 
6432
cygwin* | mingw* | pw32* | cegcc*)
 
6433
  # two different shell functions defined in ltmain.sh;
 
6434
  # decide which one to use based on capabilities of $DLLTOOL
 
6435
  case `$DLLTOOL --help 2>&1` in
 
6436
  *--identify-strict*)
 
6437
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6438
    ;;
 
6439
  *)
 
6440
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6441
    ;;
 
6442
  esac
 
6443
  ;;
 
6444
*)
 
6445
  # fallback: assume linklib IS sharedlib
 
6446
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
 
6447
  ;;
 
6448
esac
 
6449
 
 
6450
fi
 
6451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6452
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6453
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6454
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6455
 
 
6456
 
 
6457
 
 
6458
 
 
6459
 
 
6460
 
 
6461
 
 
6462
if test -n "$ac_tool_prefix"; then
 
6463
  for ac_prog in ar
 
6464
  do
 
6465
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6466
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6468
$as_echo_n "checking for $ac_word... " >&6; }
 
6469
if ${ac_cv_prog_AR+:} false; then :
 
6470
  $as_echo_n "(cached) " >&6
 
6471
else
 
6472
  if test -n "$AR"; then
 
6473
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6474
else
 
6475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6476
for as_dir in $PATH
 
6477
do
 
6478
  IFS=$as_save_IFS
 
6479
  test -z "$as_dir" && as_dir=.
 
6480
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6481
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6482
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6483
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6484
    break 2
 
6485
  fi
 
6486
done
 
6487
  done
 
6488
IFS=$as_save_IFS
 
6489
 
 
6490
fi
 
6491
fi
 
6492
AR=$ac_cv_prog_AR
 
6493
if test -n "$AR"; then
 
6494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6495
$as_echo "$AR" >&6; }
 
6496
else
 
6497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6498
$as_echo "no" >&6; }
 
6499
fi
 
6500
 
 
6501
 
 
6502
    test -n "$AR" && break
 
6503
  done
 
6504
fi
 
6505
if test -z "$AR"; then
 
6506
  ac_ct_AR=$AR
 
6507
  for ac_prog in ar
 
6508
do
 
6509
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6510
set dummy $ac_prog; ac_word=$2
 
6511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6512
$as_echo_n "checking for $ac_word... " >&6; }
 
6513
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6514
  $as_echo_n "(cached) " >&6
 
6515
else
 
6516
  if test -n "$ac_ct_AR"; then
 
6517
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6518
else
 
6519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6520
for as_dir in $PATH
 
6521
do
 
6522
  IFS=$as_save_IFS
 
6523
  test -z "$as_dir" && as_dir=.
 
6524
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6525
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6526
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6527
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6528
    break 2
 
6529
  fi
 
6530
done
 
6531
  done
 
6532
IFS=$as_save_IFS
 
6533
 
 
6534
fi
 
6535
fi
 
6536
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6537
if test -n "$ac_ct_AR"; then
 
6538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6539
$as_echo "$ac_ct_AR" >&6; }
 
6540
else
 
6541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6542
$as_echo "no" >&6; }
 
6543
fi
 
6544
 
 
6545
 
 
6546
  test -n "$ac_ct_AR" && break
 
6547
done
 
6548
 
 
6549
  if test "x$ac_ct_AR" = x; then
 
6550
    AR="false"
 
6551
  else
 
6552
    case $cross_compiling:$ac_tool_warned in
 
6553
yes:)
 
6554
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6555
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6556
ac_tool_warned=yes ;;
 
6557
esac
 
6558
    AR=$ac_ct_AR
 
6559
  fi
 
6560
fi
 
6561
 
 
6562
: ${AR=ar}
 
6563
 
 
6564
 
 
6565
 
 
6566
 
 
6567
 
 
6568
 
 
6569
# Use ARFLAGS variable as AR's operation code to sync the variable naming with
 
6570
# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
 
6571
# higher priority because thats what people were doing historically (setting
 
6572
# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
 
6573
# variable obsoleted/removed.
 
6574
 
 
6575
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
 
6576
lt_ar_flags=$AR_FLAGS
 
6577
 
 
6578
 
 
6579
 
 
6580
 
 
6581
 
 
6582
 
 
6583
# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
 
6584
# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
 
6585
 
 
6586
 
 
6587
 
 
6588
 
 
6589
 
 
6590
 
 
6591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6592
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6593
if ${lt_cv_ar_at_file+:} false; then :
 
6594
  $as_echo_n "(cached) " >&6
 
6595
else
 
6596
  lt_cv_ar_at_file=no
 
6597
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6598
/* end confdefs.h.  */
 
6599
 
 
6600
int
 
6601
main ()
 
6602
{
 
6603
 
 
6604
  ;
 
6605
  return 0;
 
6606
}
 
6607
_ACEOF
 
6608
if ac_fn_c_try_compile "$LINENO"; then :
 
6609
  echo conftest.$ac_objext > conftest.lst
 
6610
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6611
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6612
  (eval $lt_ar_try) 2>&5
 
6613
  ac_status=$?
 
6614
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6615
  test $ac_status = 0; }
 
6616
      if test 0 -eq "$ac_status"; then
 
6617
        # Ensure the archiver fails upon bogus file names.
 
6618
        rm -f conftest.$ac_objext libconftest.a
 
6619
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6620
  (eval $lt_ar_try) 2>&5
 
6621
  ac_status=$?
 
6622
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6623
  test $ac_status = 0; }
 
6624
        if test 0 -ne "$ac_status"; then
 
6625
          lt_cv_ar_at_file=@
 
6626
        fi
 
6627
      fi
 
6628
      rm -f conftest.* libconftest.a
 
6629
 
 
6630
fi
 
6631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6632
 
 
6633
fi
 
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6635
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6636
 
 
6637
if test no = "$lt_cv_ar_at_file"; then
 
6638
  archiver_list_spec=
 
6639
else
 
6640
  archiver_list_spec=$lt_cv_ar_at_file
 
6641
fi
 
6642
 
 
6643
 
 
6644
 
 
6645
 
 
6646
 
 
6647
 
 
6648
 
 
6649
# Cray's compiler drivers need STRIP to be an absolute file name when
 
6650
# static linking.
 
6651
if test -n "$ac_tool_prefix"; then
 
6652
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6653
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6655
$as_echo_n "checking for $ac_word... " >&6; }
 
6656
if ${ac_cv_path_STRIP+:} false; then :
 
6657
  $as_echo_n "(cached) " >&6
 
6658
else
 
6659
  case $STRIP in
 
6660
  [\\/]* | ?:[\\/]*)
 
6661
  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
 
6662
  ;;
 
6663
  *)
 
6664
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6665
for as_dir in $PATH
 
6666
do
 
6667
  IFS=$as_save_IFS
 
6668
  test -z "$as_dir" && as_dir=.
 
6669
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6670
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6671
    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
 
6672
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6673
    break 2
 
6674
  fi
 
6675
done
 
6676
  done
 
6677
IFS=$as_save_IFS
 
6678
 
 
6679
  ;;
 
6680
esac
 
6681
fi
 
6682
STRIP=$ac_cv_path_STRIP
 
6683
if test -n "$STRIP"; then
 
6684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6685
$as_echo "$STRIP" >&6; }
 
6686
else
 
6687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6688
$as_echo "no" >&6; }
 
6689
fi
 
6690
 
 
6691
 
 
6692
fi
 
6693
if test -z "$ac_cv_path_STRIP"; then
 
6694
  ac_pt_STRIP=$STRIP
 
6695
  # Extract the first word of "strip", so it can be a program name with args.
 
6696
set dummy strip; ac_word=$2
 
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6698
$as_echo_n "checking for $ac_word... " >&6; }
 
6699
if ${ac_cv_path_ac_pt_STRIP+:} false; then :
 
6700
  $as_echo_n "(cached) " >&6
 
6701
else
 
6702
  case $ac_pt_STRIP in
 
6703
  [\\/]* | ?:[\\/]*)
 
6704
  ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
 
6705
  ;;
 
6706
  *)
 
6707
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6708
for as_dir in $PATH
 
6709
do
 
6710
  IFS=$as_save_IFS
 
6711
  test -z "$as_dir" && as_dir=.
 
6712
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6713
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6714
    ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
 
6715
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6716
    break 2
 
6717
  fi
 
6718
done
 
6719
  done
 
6720
IFS=$as_save_IFS
 
6721
 
 
6722
  ;;
 
6723
esac
 
6724
fi
 
6725
ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
 
6726
if test -n "$ac_pt_STRIP"; then
 
6727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_STRIP" >&5
 
6728
$as_echo "$ac_pt_STRIP" >&6; }
 
6729
else
 
6730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6731
$as_echo "no" >&6; }
 
6732
fi
 
6733
 
 
6734
  if test "x$ac_pt_STRIP" = x; then
 
6735
    STRIP=":"
 
6736
  else
 
6737
    case $cross_compiling:$ac_tool_warned in
 
6738
yes:)
 
6739
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6740
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6741
ac_tool_warned=yes ;;
 
6742
esac
 
6743
    STRIP=$ac_pt_STRIP
 
6744
  fi
 
6745
else
 
6746
  STRIP="$ac_cv_path_STRIP"
 
6747
fi
 
6748
 
 
6749
test -z "$STRIP" && STRIP=:
 
6750
 
 
6751
 
 
6752
 
 
6753
 
 
6754
 
 
6755
 
 
6756
if test -n "$ac_tool_prefix"; then
 
6757
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6758
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6760
$as_echo_n "checking for $ac_word... " >&6; }
 
6761
if ${ac_cv_prog_RANLIB+:} false; then :
 
6762
  $as_echo_n "(cached) " >&6
 
6763
else
 
6764
  if test -n "$RANLIB"; then
 
6765
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6766
else
 
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6768
for as_dir in $PATH
 
6769
do
 
6770
  IFS=$as_save_IFS
 
6771
  test -z "$as_dir" && as_dir=.
 
6772
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6773
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6774
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6775
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6776
    break 2
 
6777
  fi
 
6778
done
 
6779
  done
 
6780
IFS=$as_save_IFS
 
6781
 
 
6782
fi
 
6783
fi
 
6784
RANLIB=$ac_cv_prog_RANLIB
 
6785
if test -n "$RANLIB"; then
 
6786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6787
$as_echo "$RANLIB" >&6; }
 
6788
else
 
6789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6790
$as_echo "no" >&6; }
 
6791
fi
 
6792
 
 
6793
 
 
6794
fi
 
6795
if test -z "$ac_cv_prog_RANLIB"; then
 
6796
  ac_ct_RANLIB=$RANLIB
 
6797
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6798
set dummy ranlib; ac_word=$2
 
6799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6800
$as_echo_n "checking for $ac_word... " >&6; }
 
6801
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6802
  $as_echo_n "(cached) " >&6
 
6803
else
 
6804
  if test -n "$ac_ct_RANLIB"; then
 
6805
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6806
else
 
6807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6808
for as_dir in $PATH
 
6809
do
 
6810
  IFS=$as_save_IFS
 
6811
  test -z "$as_dir" && as_dir=.
 
6812
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6813
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6814
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6815
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6816
    break 2
 
6817
  fi
 
6818
done
 
6819
  done
 
6820
IFS=$as_save_IFS
 
6821
 
 
6822
fi
 
6823
fi
 
6824
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6825
if test -n "$ac_ct_RANLIB"; then
 
6826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6827
$as_echo "$ac_ct_RANLIB" >&6; }
 
6828
else
 
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6830
$as_echo "no" >&6; }
 
6831
fi
 
6832
 
 
6833
  if test "x$ac_ct_RANLIB" = x; then
 
6834
    RANLIB=":"
 
6835
  else
 
6836
    case $cross_compiling:$ac_tool_warned in
 
6837
yes:)
 
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6839
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6840
ac_tool_warned=yes ;;
 
6841
esac
 
6842
    RANLIB=$ac_ct_RANLIB
 
6843
  fi
 
6844
else
 
6845
  RANLIB="$ac_cv_prog_RANLIB"
 
6846
fi
 
6847
 
 
6848
test -z "$RANLIB" && RANLIB=:
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
# Determine commands to create old-style static archives.
 
6856
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6857
old_postinstall_cmds='chmod 644 $oldlib'
 
6858
old_postuninstall_cmds=
 
6859
 
 
6860
if test -n "$RANLIB"; then
 
6861
  case $host_os in
 
6862
  bitrig* | openbsd*)
 
6863
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6864
    ;;
 
6865
  *)
 
6866
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6867
    ;;
 
6868
  esac
 
6869
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6870
fi
 
6871
 
 
6872
case $host_os in
 
6873
  darwin*)
 
6874
    lock_old_archive_extraction=yes ;;
 
6875
  *)
 
6876
    lock_old_archive_extraction=no ;;
 
6877
esac
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
 
6905
 
 
6906
 
 
6907
 
 
6908
 
 
6909
 
 
6910
 
 
6911
 
 
6912
 
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
# If no C compiler was specified, use CC.
 
6918
LTCC=${LTCC-"$CC"}
 
6919
 
 
6920
# If no C compiler flags were specified, use CFLAGS.
 
6921
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6922
 
 
6923
# Allow CC to be a program name with arguments.
 
6924
compiler=$CC
 
6925
 
 
6926
 
 
6927
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6929
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6930
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6931
  $as_echo_n "(cached) " >&6
 
6932
else
 
6933
 
 
6934
# These are sane defaults that work on at least a few old systems.
 
6935
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6936
 
 
6937
# Character class describing NM global symbol codes.
 
6938
symcode='[BCDEGRST]'
 
6939
 
 
6940
# Regexp to match symbols that can be accessed directly from C.
 
6941
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6942
 
 
6943
# Define system-specific variables.
 
6944
case $host_os in
 
6945
aix*)
 
6946
  symcode='[BCDT]'
 
6947
  ;;
 
6948
cygwin* | mingw* | pw32* | cegcc*)
 
6949
  symcode='[ABCDGISTW]'
 
6950
  ;;
 
6951
hpux*)
 
6952
  if test ia64 = "$host_cpu"; then
 
6953
    symcode='[ABCDEGRST]'
 
6954
  fi
 
6955
  ;;
 
6956
irix* | nonstopux*)
 
6957
  symcode='[BCDEGRST]'
 
6958
  ;;
 
6959
osf*)
 
6960
  symcode='[BCDEGQRST]'
 
6961
  ;;
 
6962
solaris*)
 
6963
  symcode='[BDRT]'
 
6964
  ;;
 
6965
sco3.2v5*)
 
6966
  symcode='[DT]'
 
6967
  ;;
 
6968
sysv4.2uw2*)
 
6969
  symcode='[DT]'
 
6970
  ;;
 
6971
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6972
  symcode='[ABDT]'
 
6973
  ;;
 
6974
sysv4)
 
6975
  symcode='[DFNSTU]'
 
6976
  ;;
 
6977
esac
 
6978
 
 
6979
# If we're using GNU nm, then use its standard symbol codes.
 
6980
case `$NM -V 2>&1` in
 
6981
*GNU* | *'with BFD'*)
 
6982
  symcode='[ABCDGIRSTW]' ;;
 
6983
esac
 
6984
 
 
6985
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6986
  # Gets list of data symbols to import.
 
6987
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
 
6988
  # Adjust the below global symbol transforms to fixup imported variables.
 
6989
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 
6990
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 
6991
  lt_c_name_lib_hook="\
 
6992
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 
6993
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 
6994
else
 
6995
  # Disable hooks by default.
 
6996
  lt_cv_sys_global_symbol_to_import=
 
6997
  lt_cdecl_hook=
 
6998
  lt_c_name_hook=
 
6999
  lt_c_name_lib_hook=
 
7000
fi
 
7001
 
 
7002
# Transform an extracted symbol line into a proper C declaration.
 
7003
# Some systems (esp. on ia64) link data and code symbols differently,
 
7004
# so use this general approach.
 
7005
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
 
7006
$lt_cdecl_hook\
 
7007
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 
7008
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 
7009
 
 
7010
# Transform an extracted symbol line into symbol name and symbol address
 
7011
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
 
7012
$lt_c_name_hook\
 
7013
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7014
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 
7015
 
 
7016
# Transform an extracted symbol line into symbol name with lib prefix and
 
7017
# symbol address.
 
7018
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
 
7019
$lt_c_name_lib_hook\
 
7020
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7021
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 
7022
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 
7023
 
 
7024
# Handle CRLF in mingw tool chain
 
7025
opt_cr=
 
7026
case $build_os in
 
7027
mingw*)
 
7028
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7029
  ;;
 
7030
esac
 
7031
 
 
7032
# Try without a prefix underscore, then with it.
 
7033
for ac_symprfx in "" "_"; do
 
7034
 
 
7035
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7036
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7037
 
 
7038
  # Write the raw and C identifiers.
 
7039
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7040
    # Fake it for dumpbin and say T for any non-static function,
 
7041
    # D for any global variable and I for any imported variable.
 
7042
    # Also find C++ and __fastcall symbols from MSVC++,
 
7043
    # which start with @ or ?.
 
7044
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7045
"     {last_section=section; section=\$ 3};"\
 
7046
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
7047
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7048
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 
7049
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 
7050
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 
7051
"     \$ 0!~/External *\|/{next};"\
 
7052
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7053
"     {if(hide[section]) next};"\
 
7054
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 
7055
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 
7056
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 
7057
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 
7058
"     ' prfx=^$ac_symprfx"
 
7059
  else
 
7060
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7061
  fi
 
7062
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
7063
 
 
7064
  # Check to see that the pipe works correctly.
 
7065
  pipe_works=no
 
7066
 
 
7067
  rm -f conftest*
 
7068
  cat > conftest.$ac_ext <<_LT_EOF
 
7069
#ifdef __cplusplus
 
7070
extern "C" {
 
7071
#endif
 
7072
char nm_test_var;
 
7073
void nm_test_func(void);
 
7074
void nm_test_func(void){}
 
7075
#ifdef __cplusplus
 
7076
}
 
7077
#endif
 
7078
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7079
_LT_EOF
 
7080
 
 
7081
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7082
  (eval $ac_compile) 2>&5
 
7083
  ac_status=$?
 
7084
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7085
  test $ac_status = 0; }; then
 
7086
    # Now try to grab the symbols.
 
7087
    nlist=conftest.nm
 
7088
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7089
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7090
  ac_status=$?
 
7091
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7092
  test $ac_status = 0; } && test -s "$nlist"; then
 
7093
      # Try sorting and uniquifying the output.
 
7094
      if sort "$nlist" | uniq > "$nlist"T; then
 
7095
        mv -f "$nlist"T "$nlist"
 
7096
      else
 
7097
        rm -f "$nlist"T
 
7098
      fi
 
7099
 
 
7100
      # Make sure that we snagged all the symbols we need.
 
7101
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7102
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7103
          cat <<_LT_EOF > conftest.$ac_ext
 
7104
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7105
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 
7106
/* DATA imports from DLLs on WIN32 can't be const, because runtime
 
7107
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7108
# define LT_DLSYM_CONST
 
7109
#elif defined __osf__
 
7110
/* This system does not cope well with relocations in const data.  */
 
7111
# define LT_DLSYM_CONST
 
7112
#else
 
7113
# define LT_DLSYM_CONST const
 
7114
#endif
 
7115
 
 
7116
#ifdef __cplusplus
 
7117
extern "C" {
 
7118
#endif
 
7119
 
 
7120
_LT_EOF
 
7121
          # Now generate the symbol file.
 
7122
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7123
 
 
7124
          cat <<_LT_EOF >> conftest.$ac_ext
 
7125
 
 
7126
/* The mapping between symbol names and symbols.  */
 
7127
LT_DLSYM_CONST struct {
 
7128
  const char *name;
 
7129
  void       *address;
 
7130
}
 
7131
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7132
{
 
7133
  { "@PROGRAM@", (void *) 0 },
 
7134
_LT_EOF
 
7135
          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7136
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7137
  {0, (void *) 0}
 
7138
};
 
7139
 
 
7140
/* This works around a problem in FreeBSD linker */
 
7141
#ifdef FREEBSD_WORKAROUND
 
7142
static const void *lt_preloaded_setup() {
 
7143
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7144
}
 
7145
#endif
 
7146
 
 
7147
#ifdef __cplusplus
 
7148
}
 
7149
#endif
 
7150
_LT_EOF
 
7151
          # Now try linking the two files.
 
7152
          mv conftest.$ac_objext conftstm.$ac_objext
 
7153
          lt_globsym_save_LIBS=$LIBS
 
7154
          lt_globsym_save_CFLAGS=$CFLAGS
 
7155
          LIBS=conftstm.$ac_objext
 
7156
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7157
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7158
  (eval $ac_link) 2>&5
 
7159
  ac_status=$?
 
7160
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7161
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
7162
            pipe_works=yes
 
7163
          fi
 
7164
          LIBS=$lt_globsym_save_LIBS
 
7165
          CFLAGS=$lt_globsym_save_CFLAGS
 
7166
        else
 
7167
          echo "cannot find nm_test_func in $nlist" >&5
 
7168
        fi
 
7169
      else
 
7170
        echo "cannot find nm_test_var in $nlist" >&5
 
7171
      fi
 
7172
    else
 
7173
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7174
    fi
 
7175
  else
 
7176
    echo "$progname: failed program was:" >&5
 
7177
    cat conftest.$ac_ext >&5
 
7178
  fi
 
7179
  rm -rf conftest* conftst*
 
7180
 
 
7181
  # Do not use the global_symbol_pipe unless it works.
 
7182
  if test yes = "$pipe_works"; then
 
7183
    break
 
7184
  else
 
7185
    lt_cv_sys_global_symbol_pipe=
 
7186
  fi
 
7187
done
 
7188
 
 
7189
fi
 
7190
 
 
7191
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7192
  lt_cv_sys_global_symbol_to_cdecl=
 
7193
fi
 
7194
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7196
$as_echo "failed" >&6; }
 
7197
else
 
7198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7199
$as_echo "ok" >&6; }
 
7200
fi
 
7201
 
 
7202
# Response file support.
 
7203
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7204
  nm_file_list_spec='@'
 
7205
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7206
  nm_file_list_spec='@'
 
7207
fi
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
 
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7246
$as_echo_n "checking for sysroot... " >&6; }
 
7247
 
 
7248
# Check whether --with-sysroot was given.
 
7249
if test "${with_sysroot+set}" = set; then :
 
7250
  withval=$with_sysroot;
 
7251
else
 
7252
  with_sysroot=no
 
7253
fi
 
7254
 
 
7255
 
 
7256
lt_sysroot=
 
7257
case $with_sysroot in #(
 
7258
 yes)
 
7259
   if test yes = "$GCC"; then
 
7260
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7261
   fi
 
7262
   ;; #(
 
7263
 /*)
 
7264
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7265
   ;; #(
 
7266
 no|'')
 
7267
   ;; #(
 
7268
 *)
 
7269
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
 
7270
$as_echo "$with_sysroot" >&6; }
 
7271
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7272
   ;;
 
7273
esac
 
7274
 
 
7275
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7276
$as_echo "${lt_sysroot:-no}" >&6; }
 
7277
 
 
7278
 
 
7279
 
 
7280
 
 
7281
 
 
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
 
7283
$as_echo_n "checking for a working dd... " >&6; }
 
7284
if ${ac_cv_path_lt_DD+:} false; then :
 
7285
  $as_echo_n "(cached) " >&6
 
7286
else
 
7287
  printf 0123456789abcdef0123456789abcdef >conftest.i
 
7288
cat conftest.i conftest.i >conftest2.i
 
7289
: ${lt_DD:=$DD}
 
7290
if test -z "$lt_DD"; then
 
7291
  ac_path_lt_DD_found=false
 
7292
  # Loop through the user's path and test for each of PROGNAME-LIST
 
7293
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7294
for as_dir in $PATH
 
7295
do
 
7296
  IFS=$as_save_IFS
 
7297
  test -z "$as_dir" && as_dir=.
 
7298
    for ac_prog in dd; do
 
7299
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7300
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
 
7301
      as_fn_executable_p "$ac_path_lt_DD" || continue
 
7302
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
7303
  cmp -s conftest.i conftest.out \
 
7304
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 
7305
fi
 
7306
      $ac_path_lt_DD_found && break 3
 
7307
    done
 
7308
  done
 
7309
  done
 
7310
IFS=$as_save_IFS
 
7311
  if test -z "$ac_cv_path_lt_DD"; then
 
7312
    :
 
7313
  fi
 
7314
else
 
7315
  ac_cv_path_lt_DD=$lt_DD
 
7316
fi
 
7317
 
 
7318
rm -f conftest.i conftest2.i conftest.out
 
7319
fi
 
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
 
7321
$as_echo "$ac_cv_path_lt_DD" >&6; }
 
7322
 
 
7323
 
 
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
 
7325
$as_echo_n "checking how to truncate binary pipes... " >&6; }
 
7326
if ${lt_cv_truncate_bin+:} false; then :
 
7327
  $as_echo_n "(cached) " >&6
 
7328
else
 
7329
  printf 0123456789abcdef0123456789abcdef >conftest.i
 
7330
cat conftest.i conftest.i >conftest2.i
 
7331
lt_cv_truncate_bin=
 
7332
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
7333
  cmp -s conftest.i conftest.out \
 
7334
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 
7335
fi
 
7336
rm -f conftest.i conftest2.i conftest.out
 
7337
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
 
7338
fi
 
7339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
 
7340
$as_echo "$lt_cv_truncate_bin" >&6; }
 
7341
 
 
7342
 
 
7343
 
 
7344
 
 
7345
 
 
7346
 
 
7347
 
 
7348
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
7349
func_cc_basename ()
 
7350
{
 
7351
    for cc_temp in $*""; do
 
7352
      case $cc_temp in
 
7353
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7354
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7355
        \-*) ;;
 
7356
        *) break;;
 
7357
      esac
 
7358
    done
 
7359
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7360
}
 
7361
 
 
7362
# Check whether --enable-libtool-lock was given.
 
7363
if test "${enable_libtool_lock+set}" = set; then :
 
7364
  enableval=$enable_libtool_lock;
 
7365
fi
 
7366
 
 
7367
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 
7368
 
 
7369
# Some flags need to be propagated to the compiler or linker for good
 
7370
# libtool support.
 
7371
case $host in
 
7372
ia64-*-hpux*)
 
7373
  # Find out what ABI is being produced by ac_compile, and set mode
 
7374
  # options accordingly.
 
7375
  echo 'int i;' > conftest.$ac_ext
 
7376
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7377
  (eval $ac_compile) 2>&5
 
7378
  ac_status=$?
 
7379
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7380
  test $ac_status = 0; }; then
 
7381
    case `/usr/bin/file conftest.$ac_objext` in
 
7382
      *ELF-32*)
 
7383
        HPUX_IA64_MODE=32
 
7384
        ;;
 
7385
      *ELF-64*)
 
7386
        HPUX_IA64_MODE=64
 
7387
        ;;
 
7388
    esac
 
7389
  fi
 
7390
  rm -rf conftest*
 
7391
  ;;
 
7392
*-*-irix6*)
 
7393
  # Find out what ABI is being produced by ac_compile, and set linker
 
7394
  # options accordingly.
 
7395
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7396
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7397
  (eval $ac_compile) 2>&5
 
7398
  ac_status=$?
 
7399
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7400
  test $ac_status = 0; }; then
 
7401
    if test yes = "$lt_cv_prog_gnu_ld"; then
 
7402
      case `/usr/bin/file conftest.$ac_objext` in
 
7403
        *32-bit*)
 
7404
          LD="${LD-ld} -melf32bsmip"
 
7405
          ;;
 
7406
        *N32*)
 
7407
          LD="${LD-ld} -melf32bmipn32"
 
7408
          ;;
 
7409
        *64-bit*)
 
7410
          LD="${LD-ld} -melf64bmip"
 
7411
        ;;
 
7412
      esac
 
7413
    else
 
7414
      case `/usr/bin/file conftest.$ac_objext` in
 
7415
        *32-bit*)
 
7416
          LD="${LD-ld} -32"
 
7417
          ;;
 
7418
        *N32*)
 
7419
          LD="${LD-ld} -n32"
 
7420
          ;;
 
7421
        *64-bit*)
 
7422
          LD="${LD-ld} -64"
 
7423
          ;;
 
7424
      esac
 
7425
    fi
 
7426
  fi
 
7427
  rm -rf conftest*
 
7428
  ;;
 
7429
 
 
7430
mips64*-*linux*)
 
7431
  # Find out what ABI is being produced by ac_compile, and set linker
 
7432
  # options accordingly.
 
7433
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7434
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7435
  (eval $ac_compile) 2>&5
 
7436
  ac_status=$?
 
7437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7438
  test $ac_status = 0; }; then
 
7439
    emul=elf
 
7440
    case `/usr/bin/file conftest.$ac_objext` in
 
7441
      *32-bit*)
 
7442
        emul="${emul}32"
 
7443
        ;;
 
7444
      *64-bit*)
 
7445
        emul="${emul}64"
 
7446
        ;;
 
7447
    esac
 
7448
    case `/usr/bin/file conftest.$ac_objext` in
 
7449
      *MSB*)
 
7450
        emul="${emul}btsmip"
 
7451
        ;;
 
7452
      *LSB*)
 
7453
        emul="${emul}ltsmip"
 
7454
        ;;
 
7455
    esac
 
7456
    case `/usr/bin/file conftest.$ac_objext` in
 
7457
      *N32*)
 
7458
        emul="${emul}n32"
 
7459
        ;;
 
7460
    esac
 
7461
    LD="${LD-ld} -m $emul"
 
7462
  fi
 
7463
  rm -rf conftest*
 
7464
  ;;
 
7465
 
 
7466
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 
7467
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7468
  # Find out what ABI is being produced by ac_compile, and set linker
 
7469
  # options accordingly.  Note that the listed cases only cover the
 
7470
  # situations where additional linker options are needed (such as when
 
7471
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 
7472
  # vice versa); the common cases where no linker options are needed do
 
7473
  # not appear in the list.
 
7474
  echo 'int i;' > conftest.$ac_ext
 
7475
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7476
  (eval $ac_compile) 2>&5
 
7477
  ac_status=$?
 
7478
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7479
  test $ac_status = 0; }; then
 
7480
    case `/usr/bin/file conftest.o` in
 
7481
      *32-bit*)
 
7482
        case $host in
 
7483
          x86_64-*kfreebsd*-gnu)
 
7484
            LD="${LD-ld} -m elf_i386_fbsd"
 
7485
            ;;
 
7486
          x86_64-*linux*)
 
7487
            case `/usr/bin/file conftest.o` in
 
7488
              *x86-64*)
 
7489
                LD="${LD-ld} -m elf32_x86_64"
 
7490
                ;;
 
7491
              *)
 
7492
                LD="${LD-ld} -m elf_i386"
 
7493
                ;;
 
7494
            esac
 
7495
            ;;
 
7496
          powerpc64le-*linux*)
 
7497
            LD="${LD-ld} -m elf32lppclinux"
 
7498
            ;;
 
7499
          powerpc64-*linux*)
 
7500
            LD="${LD-ld} -m elf32ppclinux"
 
7501
            ;;
 
7502
          s390x-*linux*)
 
7503
            LD="${LD-ld} -m elf_s390"
 
7504
            ;;
 
7505
          sparc64-*linux*)
 
7506
            LD="${LD-ld} -m elf32_sparc"
 
7507
            ;;
 
7508
        esac
 
7509
        ;;
 
7510
      *64-bit*)
 
7511
        case $host in
 
7512
          x86_64-*kfreebsd*-gnu)
 
7513
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7514
            ;;
 
7515
          x86_64-*linux*)
 
7516
            LD="${LD-ld} -m elf_x86_64"
 
7517
            ;;
 
7518
          powerpcle-*linux*)
 
7519
            LD="${LD-ld} -m elf64lppc"
 
7520
            ;;
 
7521
          powerpc-*linux*)
 
7522
            LD="${LD-ld} -m elf64ppc"
 
7523
            ;;
 
7524
          s390*-*linux*|s390*-*tpf*)
 
7525
            LD="${LD-ld} -m elf64_s390"
 
7526
            ;;
 
7527
          sparc*-*linux*)
 
7528
            LD="${LD-ld} -m elf64_sparc"
 
7529
            ;;
 
7530
        esac
 
7531
        ;;
 
7532
    esac
 
7533
  fi
 
7534
  rm -rf conftest*
 
7535
  ;;
 
7536
 
 
7537
*-*-sco3.2v5*)
 
7538
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7539
  SAVE_CFLAGS=$CFLAGS
 
7540
  CFLAGS="$CFLAGS -belf"
 
7541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7542
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7543
if ${lt_cv_cc_needs_belf+:} false; then :
 
7544
  $as_echo_n "(cached) " >&6
 
7545
else
 
7546
  ac_ext=c
 
7547
ac_cpp='$CPP $CPPFLAGS'
 
7548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7551
 
 
7552
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7553
/* end confdefs.h.  */
 
7554
 
 
7555
int
 
7556
main ()
 
7557
{
 
7558
 
 
7559
  ;
 
7560
  return 0;
 
7561
}
 
7562
_ACEOF
 
7563
if ac_fn_c_try_link "$LINENO"; then :
 
7564
  lt_cv_cc_needs_belf=yes
 
7565
else
 
7566
  lt_cv_cc_needs_belf=no
 
7567
fi
 
7568
rm -f core conftest.err conftest.$ac_objext \
 
7569
    conftest$ac_exeext conftest.$ac_ext
 
7570
     ac_ext=c
 
7571
ac_cpp='$CPP $CPPFLAGS'
 
7572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7575
 
 
7576
fi
 
7577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7578
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7579
  if test yes != "$lt_cv_cc_needs_belf"; then
 
7580
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7581
    CFLAGS=$SAVE_CFLAGS
 
7582
  fi
 
7583
  ;;
 
7584
*-*solaris*)
 
7585
  # Find out what ABI is being produced by ac_compile, and set linker
 
7586
  # options accordingly.
 
7587
  echo 'int i;' > conftest.$ac_ext
 
7588
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7589
  (eval $ac_compile) 2>&5
 
7590
  ac_status=$?
 
7591
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7592
  test $ac_status = 0; }; then
 
7593
    case `/usr/bin/file conftest.o` in
 
7594
    *64-bit*)
 
7595
      case $lt_cv_prog_gnu_ld in
 
7596
      yes*)
 
7597
        case $host in
 
7598
        i?86-*-solaris*|x86_64-*-solaris*)
 
7599
          LD="${LD-ld} -m elf_x86_64"
 
7600
          ;;
 
7601
        sparc*-*-solaris*)
 
7602
          LD="${LD-ld} -m elf64_sparc"
 
7603
          ;;
 
7604
        esac
 
7605
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7606
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7607
          LD=${LD-ld}_sol2
 
7608
        fi
 
7609
        ;;
 
7610
      *)
 
7611
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7612
          LD="${LD-ld} -64"
 
7613
        fi
 
7614
        ;;
 
7615
      esac
 
7616
      ;;
 
7617
    esac
 
7618
  fi
 
7619
  rm -rf conftest*
 
7620
  ;;
 
7621
esac
 
7622
 
 
7623
need_locks=$enable_libtool_lock
 
7624
 
 
7625
if test -n "$ac_tool_prefix"; then
 
7626
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7627
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7629
$as_echo_n "checking for $ac_word... " >&6; }
 
7630
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7631
  $as_echo_n "(cached) " >&6
 
7632
else
 
7633
  if test -n "$MANIFEST_TOOL"; then
 
7634
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7635
else
 
7636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7637
for as_dir in $PATH
 
7638
do
 
7639
  IFS=$as_save_IFS
 
7640
  test -z "$as_dir" && as_dir=.
 
7641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7642
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7643
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7644
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7645
    break 2
 
7646
  fi
 
7647
done
 
7648
  done
 
7649
IFS=$as_save_IFS
 
7650
 
 
7651
fi
 
7652
fi
 
7653
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7654
if test -n "$MANIFEST_TOOL"; then
 
7655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7656
$as_echo "$MANIFEST_TOOL" >&6; }
 
7657
else
 
7658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7659
$as_echo "no" >&6; }
 
7660
fi
 
7661
 
 
7662
 
 
7663
fi
 
7664
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7665
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7666
  # Extract the first word of "mt", so it can be a program name with args.
 
7667
set dummy mt; ac_word=$2
 
7668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7669
$as_echo_n "checking for $ac_word... " >&6; }
 
7670
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7671
  $as_echo_n "(cached) " >&6
 
7672
else
 
7673
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7674
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7675
else
 
7676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7677
for as_dir in $PATH
 
7678
do
 
7679
  IFS=$as_save_IFS
 
7680
  test -z "$as_dir" && as_dir=.
 
7681
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7682
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7683
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7684
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7685
    break 2
 
7686
  fi
 
7687
done
 
7688
  done
 
7689
IFS=$as_save_IFS
 
7690
 
 
7691
fi
 
7692
fi
 
7693
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7694
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7696
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7697
else
 
7698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7699
$as_echo "no" >&6; }
 
7700
fi
 
7701
 
 
7702
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7703
    MANIFEST_TOOL=":"
 
7704
  else
 
7705
    case $cross_compiling:$ac_tool_warned in
 
7706
yes:)
 
7707
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7708
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7709
ac_tool_warned=yes ;;
 
7710
esac
 
7711
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7712
  fi
 
7713
else
 
7714
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7715
fi
 
7716
 
 
7717
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7719
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7720
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7721
  $as_echo_n "(cached) " >&6
 
7722
else
 
7723
  lt_cv_path_mainfest_tool=no
 
7724
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7725
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7726
  cat conftest.err >&5
 
7727
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7728
    lt_cv_path_mainfest_tool=yes
 
7729
  fi
 
7730
  rm -f conftest*
 
7731
fi
 
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7733
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7734
if test yes != "$lt_cv_path_mainfest_tool"; then
 
7735
  MANIFEST_TOOL=:
 
7736
fi
 
7737
 
 
7738
 
 
7739
 
 
7740
 
 
7741
 
 
7742
 
 
7743
  case $host_os in
 
7744
    rhapsody* | darwin*)
 
7745
    if test -n "$ac_tool_prefix"; then
 
7746
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7747
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7749
$as_echo_n "checking for $ac_word... " >&6; }
 
7750
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7751
  $as_echo_n "(cached) " >&6
 
7752
else
 
7753
  if test -n "$DSYMUTIL"; then
 
7754
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7755
else
 
7756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7757
for as_dir in $PATH
 
7758
do
 
7759
  IFS=$as_save_IFS
 
7760
  test -z "$as_dir" && as_dir=.
 
7761
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7762
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7763
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7764
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7765
    break 2
 
7766
  fi
 
7767
done
 
7768
  done
 
7769
IFS=$as_save_IFS
 
7770
 
 
7771
fi
 
7772
fi
 
7773
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7774
if test -n "$DSYMUTIL"; then
 
7775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7776
$as_echo "$DSYMUTIL" >&6; }
 
7777
else
 
7778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7779
$as_echo "no" >&6; }
 
7780
fi
 
7781
 
 
7782
 
 
7783
fi
 
7784
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7785
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7786
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7787
set dummy dsymutil; ac_word=$2
 
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7789
$as_echo_n "checking for $ac_word... " >&6; }
 
7790
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7791
  $as_echo_n "(cached) " >&6
 
7792
else
 
7793
  if test -n "$ac_ct_DSYMUTIL"; then
 
7794
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7795
else
 
7796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7797
for as_dir in $PATH
 
7798
do
 
7799
  IFS=$as_save_IFS
 
7800
  test -z "$as_dir" && as_dir=.
 
7801
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7802
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7803
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7804
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7805
    break 2
 
7806
  fi
 
7807
done
 
7808
  done
 
7809
IFS=$as_save_IFS
 
7810
 
 
7811
fi
 
7812
fi
 
7813
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7814
if test -n "$ac_ct_DSYMUTIL"; then
 
7815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7816
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7817
else
 
7818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7819
$as_echo "no" >&6; }
 
7820
fi
 
7821
 
 
7822
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7823
    DSYMUTIL=":"
 
7824
  else
 
7825
    case $cross_compiling:$ac_tool_warned in
 
7826
yes:)
 
7827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7828
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7829
ac_tool_warned=yes ;;
 
7830
esac
 
7831
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7832
  fi
 
7833
else
 
7834
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7835
fi
 
7836
 
 
7837
    if test -n "$ac_tool_prefix"; then
 
7838
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7839
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7841
$as_echo_n "checking for $ac_word... " >&6; }
 
7842
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7843
  $as_echo_n "(cached) " >&6
 
7844
else
 
7845
  if test -n "$NMEDIT"; then
 
7846
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7847
else
 
7848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7849
for as_dir in $PATH
 
7850
do
 
7851
  IFS=$as_save_IFS
 
7852
  test -z "$as_dir" && as_dir=.
 
7853
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7854
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7855
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7856
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7857
    break 2
 
7858
  fi
 
7859
done
 
7860
  done
 
7861
IFS=$as_save_IFS
 
7862
 
 
7863
fi
 
7864
fi
 
7865
NMEDIT=$ac_cv_prog_NMEDIT
 
7866
if test -n "$NMEDIT"; then
 
7867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7868
$as_echo "$NMEDIT" >&6; }
 
7869
else
 
7870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7871
$as_echo "no" >&6; }
 
7872
fi
 
7873
 
 
7874
 
 
7875
fi
 
7876
if test -z "$ac_cv_prog_NMEDIT"; then
 
7877
  ac_ct_NMEDIT=$NMEDIT
 
7878
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7879
set dummy nmedit; ac_word=$2
 
7880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7881
$as_echo_n "checking for $ac_word... " >&6; }
 
7882
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7883
  $as_echo_n "(cached) " >&6
 
7884
else
 
7885
  if test -n "$ac_ct_NMEDIT"; then
 
7886
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7887
else
 
7888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7889
for as_dir in $PATH
 
7890
do
 
7891
  IFS=$as_save_IFS
 
7892
  test -z "$as_dir" && as_dir=.
 
7893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7894
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7895
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7897
    break 2
 
7898
  fi
 
7899
done
 
7900
  done
 
7901
IFS=$as_save_IFS
 
7902
 
 
7903
fi
 
7904
fi
 
7905
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7906
if test -n "$ac_ct_NMEDIT"; then
 
7907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7908
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7909
else
 
7910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7911
$as_echo "no" >&6; }
 
7912
fi
 
7913
 
 
7914
  if test "x$ac_ct_NMEDIT" = x; then
 
7915
    NMEDIT=":"
 
7916
  else
 
7917
    case $cross_compiling:$ac_tool_warned in
 
7918
yes:)
 
7919
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7920
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7921
ac_tool_warned=yes ;;
 
7922
esac
 
7923
    NMEDIT=$ac_ct_NMEDIT
 
7924
  fi
 
7925
else
 
7926
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7927
fi
 
7928
 
 
7929
    if test -n "$ac_tool_prefix"; then
 
7930
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7931
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7933
$as_echo_n "checking for $ac_word... " >&6; }
 
7934
if ${ac_cv_prog_LIPO+:} false; then :
 
7935
  $as_echo_n "(cached) " >&6
 
7936
else
 
7937
  if test -n "$LIPO"; then
 
7938
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7939
else
 
7940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7941
for as_dir in $PATH
 
7942
do
 
7943
  IFS=$as_save_IFS
 
7944
  test -z "$as_dir" && as_dir=.
 
7945
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7946
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7947
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7948
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7949
    break 2
 
7950
  fi
 
7951
done
 
7952
  done
 
7953
IFS=$as_save_IFS
 
7954
 
 
7955
fi
 
7956
fi
 
7957
LIPO=$ac_cv_prog_LIPO
 
7958
if test -n "$LIPO"; then
 
7959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7960
$as_echo "$LIPO" >&6; }
 
7961
else
 
7962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7963
$as_echo "no" >&6; }
 
7964
fi
 
7965
 
 
7966
 
 
7967
fi
 
7968
if test -z "$ac_cv_prog_LIPO"; then
 
7969
  ac_ct_LIPO=$LIPO
 
7970
  # Extract the first word of "lipo", so it can be a program name with args.
 
7971
set dummy lipo; ac_word=$2
 
7972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7973
$as_echo_n "checking for $ac_word... " >&6; }
 
7974
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7975
  $as_echo_n "(cached) " >&6
 
7976
else
 
7977
  if test -n "$ac_ct_LIPO"; then
 
7978
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7979
else
 
7980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7981
for as_dir in $PATH
 
7982
do
 
7983
  IFS=$as_save_IFS
 
7984
  test -z "$as_dir" && as_dir=.
 
7985
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7986
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7987
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7988
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7989
    break 2
 
7990
  fi
 
7991
done
 
7992
  done
 
7993
IFS=$as_save_IFS
 
7994
 
 
7995
fi
 
7996
fi
 
7997
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7998
if test -n "$ac_ct_LIPO"; then
 
7999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8000
$as_echo "$ac_ct_LIPO" >&6; }
 
8001
else
 
8002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8003
$as_echo "no" >&6; }
 
8004
fi
 
8005
 
 
8006
  if test "x$ac_ct_LIPO" = x; then
 
8007
    LIPO=":"
 
8008
  else
 
8009
    case $cross_compiling:$ac_tool_warned in
 
8010
yes:)
 
8011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8013
ac_tool_warned=yes ;;
 
8014
esac
 
8015
    LIPO=$ac_ct_LIPO
 
8016
  fi
 
8017
else
 
8018
  LIPO="$ac_cv_prog_LIPO"
 
8019
fi
 
8020
 
 
8021
    if test -n "$ac_tool_prefix"; then
 
8022
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8023
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8025
$as_echo_n "checking for $ac_word... " >&6; }
 
8026
if ${ac_cv_prog_OTOOL+:} false; then :
 
8027
  $as_echo_n "(cached) " >&6
 
8028
else
 
8029
  if test -n "$OTOOL"; then
 
8030
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8031
else
 
8032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8033
for as_dir in $PATH
 
8034
do
 
8035
  IFS=$as_save_IFS
 
8036
  test -z "$as_dir" && as_dir=.
 
8037
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8038
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8039
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8041
    break 2
 
8042
  fi
 
8043
done
 
8044
  done
 
8045
IFS=$as_save_IFS
 
8046
 
 
8047
fi
 
8048
fi
 
8049
OTOOL=$ac_cv_prog_OTOOL
 
8050
if test -n "$OTOOL"; then
 
8051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
8052
$as_echo "$OTOOL" >&6; }
 
8053
else
 
8054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8055
$as_echo "no" >&6; }
 
8056
fi
 
8057
 
 
8058
 
 
8059
fi
 
8060
if test -z "$ac_cv_prog_OTOOL"; then
 
8061
  ac_ct_OTOOL=$OTOOL
 
8062
  # Extract the first word of "otool", so it can be a program name with args.
 
8063
set dummy otool; ac_word=$2
 
8064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8065
$as_echo_n "checking for $ac_word... " >&6; }
 
8066
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
8067
  $as_echo_n "(cached) " >&6
 
8068
else
 
8069
  if test -n "$ac_ct_OTOOL"; then
 
8070
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8071
else
 
8072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8073
for as_dir in $PATH
 
8074
do
 
8075
  IFS=$as_save_IFS
 
8076
  test -z "$as_dir" && as_dir=.
 
8077
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8078
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8079
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8080
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8081
    break 2
 
8082
  fi
 
8083
done
 
8084
  done
 
8085
IFS=$as_save_IFS
 
8086
 
 
8087
fi
 
8088
fi
 
8089
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8090
if test -n "$ac_ct_OTOOL"; then
 
8091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8092
$as_echo "$ac_ct_OTOOL" >&6; }
 
8093
else
 
8094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8095
$as_echo "no" >&6; }
 
8096
fi
 
8097
 
 
8098
  if test "x$ac_ct_OTOOL" = x; then
 
8099
    OTOOL=":"
 
8100
  else
 
8101
    case $cross_compiling:$ac_tool_warned in
 
8102
yes:)
 
8103
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8105
ac_tool_warned=yes ;;
 
8106
esac
 
8107
    OTOOL=$ac_ct_OTOOL
 
8108
  fi
 
8109
else
 
8110
  OTOOL="$ac_cv_prog_OTOOL"
 
8111
fi
 
8112
 
 
8113
    if test -n "$ac_tool_prefix"; then
 
8114
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8115
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8117
$as_echo_n "checking for $ac_word... " >&6; }
 
8118
if ${ac_cv_prog_OTOOL64+:} false; then :
 
8119
  $as_echo_n "(cached) " >&6
 
8120
else
 
8121
  if test -n "$OTOOL64"; then
 
8122
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8123
else
 
8124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8125
for as_dir in $PATH
 
8126
do
 
8127
  IFS=$as_save_IFS
 
8128
  test -z "$as_dir" && as_dir=.
 
8129
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8130
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8131
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8132
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8133
    break 2
 
8134
  fi
 
8135
done
 
8136
  done
 
8137
IFS=$as_save_IFS
 
8138
 
 
8139
fi
 
8140
fi
 
8141
OTOOL64=$ac_cv_prog_OTOOL64
 
8142
if test -n "$OTOOL64"; then
 
8143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8144
$as_echo "$OTOOL64" >&6; }
 
8145
else
 
8146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8147
$as_echo "no" >&6; }
 
8148
fi
 
8149
 
 
8150
 
 
8151
fi
 
8152
if test -z "$ac_cv_prog_OTOOL64"; then
 
8153
  ac_ct_OTOOL64=$OTOOL64
 
8154
  # Extract the first word of "otool64", so it can be a program name with args.
 
8155
set dummy otool64; ac_word=$2
 
8156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8157
$as_echo_n "checking for $ac_word... " >&6; }
 
8158
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
8159
  $as_echo_n "(cached) " >&6
 
8160
else
 
8161
  if test -n "$ac_ct_OTOOL64"; then
 
8162
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8163
else
 
8164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8165
for as_dir in $PATH
 
8166
do
 
8167
  IFS=$as_save_IFS
 
8168
  test -z "$as_dir" && as_dir=.
 
8169
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8170
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8171
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8173
    break 2
 
8174
  fi
 
8175
done
 
8176
  done
 
8177
IFS=$as_save_IFS
 
8178
 
 
8179
fi
 
8180
fi
 
8181
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8182
if test -n "$ac_ct_OTOOL64"; then
 
8183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8184
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8185
else
 
8186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8187
$as_echo "no" >&6; }
 
8188
fi
 
8189
 
 
8190
  if test "x$ac_ct_OTOOL64" = x; then
 
8191
    OTOOL64=":"
 
8192
  else
 
8193
    case $cross_compiling:$ac_tool_warned in
 
8194
yes:)
 
8195
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8197
ac_tool_warned=yes ;;
 
8198
esac
 
8199
    OTOOL64=$ac_ct_OTOOL64
 
8200
  fi
 
8201
else
 
8202
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8203
fi
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
 
8214
 
 
8215
 
 
8216
 
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
 
 
8222
 
 
8223
 
 
8224
 
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
 
8230
 
 
8231
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8232
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8233
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
8234
  $as_echo_n "(cached) " >&6
 
8235
else
 
8236
  lt_cv_apple_cc_single_mod=no
 
8237
      if test -z "$LT_MULTI_MODULE"; then
 
8238
        # By default we will add the -single_module flag. You can override
 
8239
        # by either setting the environment variable LT_MULTI_MODULE
 
8240
        # non-empty at configure time, or by adding -multi_module to the
 
8241
        # link flags.
 
8242
        rm -rf libconftest.dylib*
 
8243
        echo "int foo(void){return 1;}" > conftest.c
 
8244
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8245
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8246
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8247
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8248
        _lt_result=$?
 
8249
        # If there is a non-empty error log, and "single_module"
 
8250
        # appears in it, assume the flag caused a linker warning
 
8251
        if test -s conftest.err && $GREP single_module conftest.err; then
 
8252
          cat conftest.err >&5
 
8253
        # Otherwise, if the output was created with a 0 exit code from
 
8254
        # the compiler, it worked.
 
8255
        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 
8256
          lt_cv_apple_cc_single_mod=yes
 
8257
        else
 
8258
          cat conftest.err >&5
 
8259
        fi
 
8260
        rm -rf libconftest.dylib*
 
8261
        rm -f conftest.*
 
8262
      fi
 
8263
fi
 
8264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8265
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8266
 
 
8267
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8268
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8269
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
8270
  $as_echo_n "(cached) " >&6
 
8271
else
 
8272
  lt_cv_ld_exported_symbols_list=no
 
8273
      save_LDFLAGS=$LDFLAGS
 
8274
      echo "_main" > conftest.sym
 
8275
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8276
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8277
/* end confdefs.h.  */
 
8278
 
 
8279
int
 
8280
main ()
 
8281
{
 
8282
 
 
8283
  ;
 
8284
  return 0;
 
8285
}
 
8286
_ACEOF
 
8287
if ac_fn_c_try_link "$LINENO"; then :
 
8288
  lt_cv_ld_exported_symbols_list=yes
 
8289
else
 
8290
  lt_cv_ld_exported_symbols_list=no
 
8291
fi
 
8292
rm -f core conftest.err conftest.$ac_objext \
 
8293
    conftest$ac_exeext conftest.$ac_ext
 
8294
        LDFLAGS=$save_LDFLAGS
 
8295
 
 
8296
fi
 
8297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8298
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8299
 
 
8300
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8301
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8302
if ${lt_cv_ld_force_load+:} false; then :
 
8303
  $as_echo_n "(cached) " >&6
 
8304
else
 
8305
  lt_cv_ld_force_load=no
 
8306
      cat > conftest.c << _LT_EOF
 
8307
int forced_loaded() { return 2;}
 
8308
_LT_EOF
 
8309
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8310
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8311
      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
 
8312
      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
 
8313
      echo "$RANLIB libconftest.a" >&5
 
8314
      $RANLIB libconftest.a 2>&5
 
8315
      cat > conftest.c << _LT_EOF
 
8316
int main() { return 0;}
 
8317
_LT_EOF
 
8318
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8319
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8320
      _lt_result=$?
 
8321
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8322
        cat conftest.err >&5
 
8323
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 
8324
        lt_cv_ld_force_load=yes
 
8325
      else
 
8326
        cat conftest.err >&5
 
8327
      fi
 
8328
        rm -f conftest.err libconftest.a conftest conftest.c
 
8329
        rm -rf conftest.dSYM
 
8330
 
 
8331
fi
 
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8333
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8334
    case $host_os in
 
8335
    rhapsody* | darwin1.[012])
 
8336
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 
8337
    darwin1.*)
 
8338
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
8339
    darwin*) # darwin 5.x on
 
8340
      # if running on 10.5 or later, the deployment target defaults
 
8341
      # to the OS version, if on x86, and 10.4, the deployment
 
8342
      # target defaults to 10.4. Don't you love it?
 
8343
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8344
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8345
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
8346
        10.[012][,.]*)
 
8347
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 
8348
        10.*)
 
8349
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
8350
      esac
 
8351
    ;;
 
8352
  esac
 
8353
    if test yes = "$lt_cv_apple_cc_single_mod"; then
 
8354
      _lt_dar_single_mod='$single_module'
 
8355
    fi
 
8356
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
 
8357
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 
8358
    else
 
8359
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 
8360
    fi
 
8361
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 
8362
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8363
    else
 
8364
      _lt_dsymutil=
 
8365
    fi
 
8366
    ;;
 
8367
  esac
 
8368
 
 
8369
# func_munge_path_list VARIABLE PATH
 
8370
# -----------------------------------
 
8371
# VARIABLE is name of variable containing _space_ separated list of
 
8372
# directories to be munged by the contents of PATH, which is string
 
8373
# having a format:
 
8374
# "DIR[:DIR]:"
 
8375
#       string "DIR[ DIR]" will be prepended to VARIABLE
 
8376
# ":DIR[:DIR]"
 
8377
#       string "DIR[ DIR]" will be appended to VARIABLE
 
8378
# "DIRP[:DIRP]::[DIRA:]DIRA"
 
8379
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 
8380
#       "DIRA[ DIRA]" will be appended to VARIABLE
 
8381
# "DIR[:DIR]"
 
8382
#       VARIABLE will be replaced by "DIR[ DIR]"
 
8383
func_munge_path_list ()
 
8384
{
 
8385
    case x$2 in
 
8386
    x)
 
8387
        ;;
 
8388
    *:)
 
8389
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 
8390
        ;;
 
8391
    x:*)
 
8392
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 
8393
        ;;
 
8394
    *::*)
 
8395
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 
8396
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 
8397
        ;;
 
8398
    *)
 
8399
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 
8400
        ;;
 
8401
    esac
 
8402
}
 
8403
 
 
8404
ac_ext=c
 
8405
ac_cpp='$CPP $CPPFLAGS'
 
8406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
8410
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
8411
# On Suns, sometimes $CPP names a directory.
 
8412
if test -n "$CPP" && test -d "$CPP"; then
 
8413
  CPP=
 
8414
fi
 
8415
if test -z "$CPP"; then
 
8416
  if ${ac_cv_prog_CPP+:} false; then :
 
8417
  $as_echo_n "(cached) " >&6
 
8418
else
 
8419
      # Double quotes because CPP needs to be expanded
 
8420
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
8421
    do
 
8422
      ac_preproc_ok=false
 
8423
for ac_c_preproc_warn_flag in '' yes
 
8424
do
 
8425
  # Use a header file that comes with gcc, so configuring glibc
 
8426
  # with a fresh cross-compiler works.
 
8427
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8428
  # <limits.h> exists even on freestanding compilers.
 
8429
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8430
  # not just through cpp. "Syntax error" is here to catch this case.
 
8431
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8432
/* end confdefs.h.  */
 
8433
#ifdef __STDC__
 
8434
# include <limits.h>
 
8435
#else
 
8436
# include <assert.h>
 
8437
#endif
 
8438
                     Syntax error
 
8439
_ACEOF
 
8440
if ac_fn_c_try_cpp "$LINENO"; then :
 
8441
 
 
8442
else
 
8443
  # Broken: fails on valid input.
 
8444
continue
 
8445
fi
 
8446
rm -f conftest.err conftest.i conftest.$ac_ext
 
8447
 
 
8448
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8449
  # can be detected and how.
 
8450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8451
/* end confdefs.h.  */
 
8452
#include <ac_nonexistent.h>
 
8453
_ACEOF
 
8454
if ac_fn_c_try_cpp "$LINENO"; then :
 
8455
  # Broken: success on invalid input.
 
8456
continue
 
8457
else
 
8458
  # Passes both tests.
 
8459
ac_preproc_ok=:
 
8460
break
 
8461
fi
 
8462
rm -f conftest.err conftest.i conftest.$ac_ext
 
8463
 
 
8464
done
 
8465
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8466
rm -f conftest.i conftest.err conftest.$ac_ext
 
8467
if $ac_preproc_ok; then :
 
8468
  break
 
8469
fi
 
8470
 
 
8471
    done
 
8472
    ac_cv_prog_CPP=$CPP
 
8473
 
 
8474
fi
 
8475
  CPP=$ac_cv_prog_CPP
 
8476
else
 
8477
  ac_cv_prog_CPP=$CPP
 
8478
fi
 
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
8480
$as_echo "$CPP" >&6; }
 
8481
ac_preproc_ok=false
 
8482
for ac_c_preproc_warn_flag in '' yes
 
8483
do
 
8484
  # Use a header file that comes with gcc, so configuring glibc
 
8485
  # with a fresh cross-compiler works.
 
8486
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8487
  # <limits.h> exists even on freestanding compilers.
 
8488
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8489
  # not just through cpp. "Syntax error" is here to catch this case.
 
8490
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8491
/* end confdefs.h.  */
 
8492
#ifdef __STDC__
 
8493
# include <limits.h>
 
8494
#else
 
8495
# include <assert.h>
 
8496
#endif
 
8497
                     Syntax error
 
8498
_ACEOF
 
8499
if ac_fn_c_try_cpp "$LINENO"; then :
 
8500
 
 
8501
else
 
8502
  # Broken: fails on valid input.
 
8503
continue
 
8504
fi
 
8505
rm -f conftest.err conftest.i conftest.$ac_ext
 
8506
 
 
8507
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8508
  # can be detected and how.
 
8509
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8510
/* end confdefs.h.  */
 
8511
#include <ac_nonexistent.h>
 
8512
_ACEOF
 
8513
if ac_fn_c_try_cpp "$LINENO"; then :
 
8514
  # Broken: success on invalid input.
 
8515
continue
 
8516
else
 
8517
  # Passes both tests.
 
8518
ac_preproc_ok=:
 
8519
break
 
8520
fi
 
8521
rm -f conftest.err conftest.i conftest.$ac_ext
 
8522
 
 
8523
done
 
8524
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8525
rm -f conftest.i conftest.err conftest.$ac_ext
 
8526
if $ac_preproc_ok; then :
 
8527
 
 
8528
else
 
8529
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
8530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8531
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
8532
See \`config.log' for more details" "$LINENO" 5; }
 
8533
fi
 
8534
 
 
8535
ac_ext=c
 
8536
ac_cpp='$CPP $CPPFLAGS'
 
8537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8540
 
 
8541
 
 
8542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8543
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8544
if ${ac_cv_header_stdc+:} false; then :
 
8545
  $as_echo_n "(cached) " >&6
 
8546
else
 
8547
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8548
/* end confdefs.h.  */
 
8549
#include <stdlib.h>
 
8550
#include <stdarg.h>
 
8551
#include <string.h>
 
8552
#include <float.h>
 
8553
 
 
8554
int
 
8555
main ()
 
8556
{
 
8557
 
 
8558
  ;
 
8559
  return 0;
 
8560
}
 
8561
_ACEOF
 
8562
if ac_fn_c_try_compile "$LINENO"; then :
 
8563
  ac_cv_header_stdc=yes
 
8564
else
 
8565
  ac_cv_header_stdc=no
 
8566
fi
 
8567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8568
 
 
8569
if test $ac_cv_header_stdc = yes; then
 
8570
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8572
/* end confdefs.h.  */
 
8573
#include <string.h>
 
8574
 
 
8575
_ACEOF
 
8576
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8577
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8578
 
 
8579
else
 
8580
  ac_cv_header_stdc=no
 
8581
fi
 
8582
rm -f conftest*
 
8583
 
 
8584
fi
 
8585
 
 
8586
if test $ac_cv_header_stdc = yes; then
 
8587
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8588
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8589
/* end confdefs.h.  */
 
8590
#include <stdlib.h>
 
8591
 
 
8592
_ACEOF
 
8593
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8594
  $EGREP "free" >/dev/null 2>&1; then :
 
8595
 
 
8596
else
 
8597
  ac_cv_header_stdc=no
 
8598
fi
 
8599
rm -f conftest*
 
8600
 
 
8601
fi
 
8602
 
 
8603
if test $ac_cv_header_stdc = yes; then
 
8604
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8605
  if test "$cross_compiling" = yes; then :
 
8606
  :
 
8607
else
 
8608
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8609
/* end confdefs.h.  */
 
8610
#include <ctype.h>
 
8611
#include <stdlib.h>
 
8612
#if ((' ' & 0x0FF) == 0x020)
 
8613
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8614
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8615
#else
 
8616
# define ISLOWER(c) \
 
8617
                   (('a' <= (c) && (c) <= 'i') \
 
8618
                     || ('j' <= (c) && (c) <= 'r') \
 
8619
                     || ('s' <= (c) && (c) <= 'z'))
 
8620
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8621
#endif
 
8622
 
 
8623
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8624
int
 
8625
main ()
 
8626
{
 
8627
  int i;
 
8628
  for (i = 0; i < 256; i++)
 
8629
    if (XOR (islower (i), ISLOWER (i))
 
8630
        || toupper (i) != TOUPPER (i))
 
8631
      return 2;
 
8632
  return 0;
 
8633
}
 
8634
_ACEOF
 
8635
if ac_fn_c_try_run "$LINENO"; then :
 
8636
 
 
8637
else
 
8638
  ac_cv_header_stdc=no
 
8639
fi
 
8640
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8641
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8642
fi
 
8643
 
 
8644
fi
 
8645
fi
 
8646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8647
$as_echo "$ac_cv_header_stdc" >&6; }
 
8648
if test $ac_cv_header_stdc = yes; then
 
8649
 
 
8650
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8651
 
 
8652
fi
 
8653
 
 
8654
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8655
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8656
                  inttypes.h stdint.h unistd.h
 
8657
do :
 
8658
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8659
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8660
"
 
8661
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8662
  cat >>confdefs.h <<_ACEOF
 
8663
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8664
_ACEOF
 
8665
 
 
8666
fi
 
8667
 
 
8668
done
 
8669
 
 
8670
 
 
8671
for ac_header in dlfcn.h
 
8672
do :
 
8673
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8674
"
 
8675
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8676
  cat >>confdefs.h <<_ACEOF
 
8677
#define HAVE_DLFCN_H 1
 
8678
_ACEOF
 
8679
 
 
8680
fi
 
8681
 
 
8682
done
 
8683
 
 
8684
 
 
8685
 
 
8686
 
 
8687
 
 
8688
# Set options
 
8689
# Check whether --enable-shared was given.
 
8690
if test "${enable_shared+set}" = set; then :
 
8691
  enableval=$enable_shared; p=${PACKAGE-default}
 
8692
    case $enableval in
 
8693
    yes) enable_shared=yes ;;
 
8694
    no) enable_shared=no ;;
 
8695
    *)
 
8696
      enable_shared=no
 
8697
      # Look at the argument we got.  We use all the common list separators.
 
8698
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8699
      for pkg in $enableval; do
 
8700
        IFS=$lt_save_ifs
 
8701
        if test "X$pkg" = "X$p"; then
 
8702
          enable_shared=yes
 
8703
        fi
 
8704
      done
 
8705
      IFS=$lt_save_ifs
 
8706
      ;;
 
8707
    esac
 
8708
else
 
8709
  enable_shared=no
 
8710
fi
 
8711
 
 
8712
 
 
8713
 
 
8714
 
 
8715
 
 
8716
 
 
8717
 
 
8718
 
 
8719
 
 
8720
 
 
8721
        enable_dlopen=no
 
8722
 
 
8723
 
 
8724
  enable_win32_dll=no
 
8725
 
 
8726
 
 
8727
 
 
8728
  # Check whether --enable-static was given.
 
8729
if test "${enable_static+set}" = set; then :
 
8730
  enableval=$enable_static; p=${PACKAGE-default}
 
8731
    case $enableval in
 
8732
    yes) enable_static=yes ;;
 
8733
    no) enable_static=no ;;
 
8734
    *)
 
8735
     enable_static=no
 
8736
      # Look at the argument we got.  We use all the common list separators.
 
8737
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8738
      for pkg in $enableval; do
 
8739
        IFS=$lt_save_ifs
 
8740
        if test "X$pkg" = "X$p"; then
 
8741
          enable_static=yes
 
8742
        fi
 
8743
      done
 
8744
      IFS=$lt_save_ifs
 
8745
      ;;
 
8746
    esac
 
8747
else
 
8748
  enable_static=yes
 
8749
fi
 
8750
 
 
8751
 
 
8752
 
 
8753
 
 
8754
 
 
8755
 
 
8756
 
 
8757
 
 
8758
 
 
8759
 
 
8760
# Check whether --with-pic was given.
 
8761
if test "${with_pic+set}" = set; then :
 
8762
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8763
    case $withval in
 
8764
    yes|no) pic_mode=$withval ;;
 
8765
    *)
 
8766
      pic_mode=default
 
8767
      # Look at the argument we got.  We use all the common list separators.
 
8768
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8769
      for lt_pkg in $withval; do
 
8770
        IFS=$lt_save_ifs
 
8771
        if test "X$lt_pkg" = "X$lt_p"; then
 
8772
          pic_mode=yes
 
8773
        fi
 
8774
      done
 
8775
      IFS=$lt_save_ifs
 
8776
      ;;
 
8777
    esac
 
8778
else
 
8779
  pic_mode=default
 
8780
fi
 
8781
 
 
8782
 
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
  # Check whether --enable-fast-install was given.
 
8790
if test "${enable_fast_install+set}" = set; then :
 
8791
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8792
    case $enableval in
 
8793
    yes) enable_fast_install=yes ;;
 
8794
    no) enable_fast_install=no ;;
 
8795
    *)
 
8796
      enable_fast_install=no
 
8797
      # Look at the argument we got.  We use all the common list separators.
 
8798
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 
8799
      for pkg in $enableval; do
 
8800
        IFS=$lt_save_ifs
 
8801
        if test "X$pkg" = "X$p"; then
 
8802
          enable_fast_install=yes
 
8803
        fi
 
8804
      done
 
8805
      IFS=$lt_save_ifs
 
8806
      ;;
 
8807
    esac
 
8808
else
 
8809
  enable_fast_install=yes
 
8810
fi
 
8811
 
 
8812
 
 
8813
 
 
8814
 
 
8815
 
 
8816
 
 
8817
 
 
8818
 
 
8819
  shared_archive_member_spec=
 
8820
case $host,$enable_shared in
 
8821
power*-*-aix[5-9]*,yes)
 
8822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
 
8823
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
 
8824
 
 
8825
# Check whether --with-aix-soname was given.
 
8826
if test "${with_aix_soname+set}" = set; then :
 
8827
  withval=$with_aix_soname; case $withval in
 
8828
    aix|svr4|both)
 
8829
      ;;
 
8830
    *)
 
8831
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
 
8832
      ;;
 
8833
    esac
 
8834
    lt_cv_with_aix_soname=$with_aix_soname
 
8835
else
 
8836
  if ${lt_cv_with_aix_soname+:} false; then :
 
8837
  $as_echo_n "(cached) " >&6
 
8838
else
 
8839
  lt_cv_with_aix_soname=aix
 
8840
fi
 
8841
 
 
8842
    with_aix_soname=$lt_cv_with_aix_soname
 
8843
fi
 
8844
 
 
8845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
 
8846
$as_echo "$with_aix_soname" >&6; }
 
8847
  if test aix != "$with_aix_soname"; then
 
8848
    # For the AIX way of multilib, we name the shared archive member
 
8849
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 
8850
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 
8851
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 
8852
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
 
8853
    if test 64 = "${OBJECT_MODE-32}"; then
 
8854
      shared_archive_member_spec=shr_64
 
8855
    else
 
8856
      shared_archive_member_spec=shr
 
8857
    fi
 
8858
  fi
 
8859
  ;;
 
8860
*)
 
8861
  with_aix_soname=aix
 
8862
  ;;
 
8863
esac
 
8864
 
 
8865
 
 
8866
 
 
8867
 
 
8868
 
 
8869
 
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
# This can be used to rebuild libtool when needed
 
8875
LIBTOOL_DEPS=$ltmain
 
8876
 
 
8877
# Always use our own libtool.
 
8878
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8879
 
 
8880
 
 
8881
 
 
8882
 
 
8883
 
 
8884
 
 
8885
 
 
8886
 
 
8887
 
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
 
 
8896
 
 
8897
 
 
8898
 
 
8899
 
 
8900
 
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
test -z "$LN_S" && LN_S="ln -s"
 
8910
 
 
8911
 
 
8912
 
 
8913
 
 
8914
 
 
8915
 
 
8916
 
 
8917
 
 
8918
 
 
8919
 
 
8920
 
 
8921
 
 
8922
 
 
8923
 
 
8924
if test -n "${ZSH_VERSION+set}"; then
 
8925
   setopt NO_GLOB_SUBST
 
8926
fi
 
8927
 
 
8928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8929
$as_echo_n "checking for objdir... " >&6; }
 
8930
if ${lt_cv_objdir+:} false; then :
 
8931
  $as_echo_n "(cached) " >&6
 
8932
else
 
8933
  rm -f .libs 2>/dev/null
 
8934
mkdir .libs 2>/dev/null
 
8935
if test -d .libs; then
 
8936
  lt_cv_objdir=.libs
 
8937
else
 
8938
  # MS-DOS does not allow filenames that begin with a dot.
 
8939
  lt_cv_objdir=_libs
 
8940
fi
 
8941
rmdir .libs 2>/dev/null
 
8942
fi
 
8943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8944
$as_echo "$lt_cv_objdir" >&6; }
 
8945
objdir=$lt_cv_objdir
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
 
 
8951
cat >>confdefs.h <<_ACEOF
 
8952
#define LT_OBJDIR "$lt_cv_objdir/"
 
8953
_ACEOF
 
8954
 
 
8955
 
 
8956
 
 
8957
 
 
8958
case $host_os in
 
8959
aix3*)
 
8960
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8961
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8962
  # vanish in a puff of smoke.
 
8963
  if test set != "${COLLECT_NAMES+set}"; then
 
8964
    COLLECT_NAMES=
 
8965
    export COLLECT_NAMES
 
8966
  fi
 
8967
  ;;
 
8968
esac
 
8969
 
 
8970
# Global variables:
 
8971
ofile=libtool
 
8972
can_build_shared=yes
 
8973
 
 
8974
# All known linkers require a '.a' archive for static linking (except MSVC,
 
8975
# which needs '.lib').
 
8976
libext=a
 
8977
 
 
8978
with_gnu_ld=$lt_cv_prog_gnu_ld
 
8979
 
 
8980
old_CC=$CC
 
8981
old_CFLAGS=$CFLAGS
 
8982
 
 
8983
# Set sane defaults for various variables
 
8984
test -z "$CC" && CC=cc
 
8985
test -z "$LTCC" && LTCC=$CC
 
8986
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8987
test -z "$LD" && LD=ld
 
8988
test -z "$ac_objext" && ac_objext=o
 
8989
 
 
8990
func_cc_basename $compiler
 
8991
cc_basename=$func_cc_basename_result
 
8992
 
 
8993
 
 
8994
# Only perform the check for file, if the check method requires it
 
8995
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8996
case $deplibs_check_method in
 
8997
file_magic*)
 
8998
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8999
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
9000
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
9001
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9002
  $as_echo_n "(cached) " >&6
 
9003
else
 
9004
  case $MAGIC_CMD in
 
9005
[\\/*] |  ?:[\\/]*)
 
9006
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
9007
  ;;
 
9008
*)
 
9009
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
9010
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
9011
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9012
  for ac_dir in $ac_dummy; do
 
9013
    IFS=$lt_save_ifs
 
9014
    test -z "$ac_dir" && ac_dir=.
 
9015
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
 
9016
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
 
9017
      if test -n "$file_magic_test_file"; then
 
9018
        case $deplibs_check_method in
 
9019
        "file_magic "*)
 
9020
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9021
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
9022
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9023
            $EGREP "$file_magic_regex" > /dev/null; then
 
9024
            :
 
9025
          else
 
9026
            cat <<_LT_EOF 1>&2
 
9027
 
 
9028
*** Warning: the command libtool uses to detect shared libraries,
 
9029
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9030
*** The result is that libtool may fail to recognize shared libraries
 
9031
*** as such.  This will affect the creation of libtool libraries that
 
9032
*** depend on shared libraries, but programs linked with such libtool
 
9033
*** libraries will work regardless of this problem.  Nevertheless, you
 
9034
*** may want to report the problem to your system manager and/or to
 
9035
*** bug-libtool@gnu.org
 
9036
 
 
9037
_LT_EOF
 
9038
          fi ;;
 
9039
        esac
 
9040
      fi
 
9041
      break
 
9042
    fi
 
9043
  done
 
9044
  IFS=$lt_save_ifs
 
9045
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
9046
  ;;
 
9047
esac
 
9048
fi
 
9049
 
 
9050
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
9051
if test -n "$MAGIC_CMD"; then
 
9052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9053
$as_echo "$MAGIC_CMD" >&6; }
 
9054
else
 
9055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9056
$as_echo "no" >&6; }
 
9057
fi
 
9058
 
 
9059
 
 
9060
 
 
9061
 
 
9062
 
 
9063
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9064
  if test -n "$ac_tool_prefix"; then
 
9065
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
9066
$as_echo_n "checking for file... " >&6; }
 
9067
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
9068
  $as_echo_n "(cached) " >&6
 
9069
else
 
9070
  case $MAGIC_CMD in
 
9071
[\\/*] |  ?:[\\/]*)
 
9072
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 
9073
  ;;
 
9074
*)
 
9075
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
9076
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
9077
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9078
  for ac_dir in $ac_dummy; do
 
9079
    IFS=$lt_save_ifs
 
9080
    test -z "$ac_dir" && ac_dir=.
 
9081
    if test -f "$ac_dir/file"; then
 
9082
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
 
9083
      if test -n "$file_magic_test_file"; then
 
9084
        case $deplibs_check_method in
 
9085
        "file_magic "*)
 
9086
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9087
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
9088
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9089
            $EGREP "$file_magic_regex" > /dev/null; then
 
9090
            :
 
9091
          else
 
9092
            cat <<_LT_EOF 1>&2
 
9093
 
 
9094
*** Warning: the command libtool uses to detect shared libraries,
 
9095
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9096
*** The result is that libtool may fail to recognize shared libraries
 
9097
*** as such.  This will affect the creation of libtool libraries that
 
9098
*** depend on shared libraries, but programs linked with such libtool
 
9099
*** libraries will work regardless of this problem.  Nevertheless, you
 
9100
*** may want to report the problem to your system manager and/or to
 
9101
*** bug-libtool@gnu.org
 
9102
 
 
9103
_LT_EOF
 
9104
          fi ;;
 
9105
        esac
 
9106
      fi
 
9107
      break
 
9108
    fi
 
9109
  done
 
9110
  IFS=$lt_save_ifs
 
9111
  MAGIC_CMD=$lt_save_MAGIC_CMD
 
9112
  ;;
 
9113
esac
 
9114
fi
 
9115
 
 
9116
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 
9117
if test -n "$MAGIC_CMD"; then
 
9118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9119
$as_echo "$MAGIC_CMD" >&6; }
 
9120
else
 
9121
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9122
$as_echo "no" >&6; }
 
9123
fi
 
9124
 
 
9125
 
 
9126
  else
 
9127
    MAGIC_CMD=:
 
9128
  fi
 
9129
fi
 
9130
 
 
9131
  fi
 
9132
  ;;
 
9133
esac
 
9134
 
 
9135
# Use C for the default configuration in the libtool script
 
9136
 
 
9137
lt_save_CC=$CC
 
9138
ac_ext=c
 
9139
ac_cpp='$CPP $CPPFLAGS'
 
9140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9143
 
 
9144
 
 
9145
# Source file extension for C test sources.
 
9146
ac_ext=c
 
9147
 
 
9148
# Object file extension for compiled C test sources.
 
9149
objext=o
 
9150
objext=$objext
 
9151
 
 
9152
# Code to be used in simple compile tests
 
9153
lt_simple_compile_test_code="int some_variable = 0;"
 
9154
 
 
9155
# Code to be used in simple link tests
 
9156
lt_simple_link_test_code='int main(){return(0);}'
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
# If no C compiler was specified, use CC.
 
9165
LTCC=${LTCC-"$CC"}
 
9166
 
 
9167
# If no C compiler flags were specified, use CFLAGS.
 
9168
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9169
 
 
9170
# Allow CC to be a program name with arguments.
 
9171
compiler=$CC
 
9172
 
 
9173
# Save the default compiler, since it gets overwritten when the other
 
9174
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9175
compiler_DEFAULT=$CC
 
9176
 
 
9177
# save warnings/boilerplate of simple test code
 
9178
ac_outfile=conftest.$ac_objext
 
9179
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9180
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9181
_lt_compiler_boilerplate=`cat conftest.err`
 
9182
$RM conftest*
 
9183
 
 
9184
ac_outfile=conftest.$ac_objext
 
9185
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9186
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9187
_lt_linker_boilerplate=`cat conftest.err`
 
9188
$RM -r conftest*
 
9189
 
 
9190
 
 
9191
## CAVEAT EMPTOR:
 
9192
## There is no encapsulation within the following macros, do not change
 
9193
## the running order or otherwise move them around unless you know exactly
 
9194
## what you are doing...
 
9195
if test -n "$compiler"; then
 
9196
 
 
9197
lt_prog_compiler_no_builtin_flag=
 
9198
 
 
9199
if test yes = "$GCC"; then
 
9200
  case $cc_basename in
 
9201
  nvcc*)
 
9202
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9203
  *)
 
9204
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9205
  esac
 
9206
 
 
9207
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9208
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9209
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
9210
  $as_echo_n "(cached) " >&6
 
9211
else
 
9212
  lt_cv_prog_compiler_rtti_exceptions=no
 
9213
   ac_outfile=conftest.$ac_objext
 
9214
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9215
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
 
9216
   # Insert the option either (1) after the last *FLAGS variable, or
 
9217
   # (2) before a word containing "conftest.", or (3) at the end.
 
9218
   # Note that $ac_compile itself does not contain backslashes and begins
 
9219
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9220
   # The option is referenced via a variable to avoid confusing sed.
 
9221
   lt_compile=`echo "$ac_compile" | $SED \
 
9222
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9223
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9224
   -e 's:$: $lt_compiler_flag:'`
 
9225
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9226
   (eval "$lt_compile" 2>conftest.err)
 
9227
   ac_status=$?
 
9228
   cat conftest.err >&5
 
9229
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9230
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9231
     # The compiler can only warn and ignore the option if not recognized
 
9232
     # So say no if there are warnings other than the usual output.
 
9233
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9234
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9235
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9236
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9237
     fi
 
9238
   fi
 
9239
   $RM conftest*
 
9240
 
 
9241
fi
 
9242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9243
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9244
 
 
9245
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
 
9246
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9247
else
 
9248
    :
 
9249
fi
 
9250
 
 
9251
fi
 
9252
 
 
9253
 
 
9254
 
 
9255
 
 
9256
 
 
9257
 
 
9258
  lt_prog_compiler_wl=
 
9259
lt_prog_compiler_pic=
 
9260
lt_prog_compiler_static=
 
9261
 
 
9262
 
 
9263
  if test yes = "$GCC"; then
 
9264
    lt_prog_compiler_wl='-Wl,'
 
9265
    lt_prog_compiler_static='-static'
 
9266
 
 
9267
    case $host_os in
 
9268
      aix*)
 
9269
      # All AIX code is PIC.
 
9270
      if test ia64 = "$host_cpu"; then
 
9271
        # AIX 5 now supports IA64 processor
 
9272
        lt_prog_compiler_static='-Bstatic'
 
9273
      fi
 
9274
      lt_prog_compiler_pic='-fPIC'
 
9275
      ;;
 
9276
 
 
9277
    amigaos*)
 
9278
      case $host_cpu in
 
9279
      powerpc)
 
9280
            # see comment about AmigaOS4 .so support
 
9281
            lt_prog_compiler_pic='-fPIC'
 
9282
        ;;
 
9283
      m68k)
 
9284
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9285
            # adding the '-m68020' flag to GCC prevents building anything better,
 
9286
            # like '-m68040'.
 
9287
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9288
        ;;
 
9289
      esac
 
9290
      ;;
 
9291
 
 
9292
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9293
      # PIC is the default for these OSes.
 
9294
      ;;
 
9295
 
 
9296
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9297
      # This hack is so that the source file can tell whether it is being
 
9298
      # built for inclusion in a dll (and should export symbols for example).
 
9299
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9300
      # (--disable-auto-import) libraries
 
9301
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9302
      case $host_os in
 
9303
      os2*)
 
9304
        lt_prog_compiler_static='$wl-static'
 
9305
        ;;
 
9306
      esac
 
9307
      ;;
 
9308
 
 
9309
    darwin* | rhapsody*)
 
9310
      # PIC is the default on this platform
 
9311
      # Common symbols not allowed in MH_DYLIB files
 
9312
      lt_prog_compiler_pic='-fno-common'
 
9313
      ;;
 
9314
 
 
9315
    haiku*)
 
9316
      # PIC is the default for Haiku.
 
9317
      # The "-static" flag exists, but is broken.
 
9318
      lt_prog_compiler_static=
 
9319
      ;;
 
9320
 
 
9321
    hpux*)
 
9322
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9323
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9324
      # sets the default TLS model and affects inlining.
 
9325
      case $host_cpu in
 
9326
      hppa*64*)
 
9327
        # +Z the default
 
9328
        ;;
 
9329
      *)
 
9330
        lt_prog_compiler_pic='-fPIC'
 
9331
        ;;
 
9332
      esac
 
9333
      ;;
 
9334
 
 
9335
    interix[3-9]*)
 
9336
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9337
      # Instead, we relocate shared libraries at runtime.
 
9338
      ;;
 
9339
 
 
9340
    msdosdjgpp*)
 
9341
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9342
      # on systems that don't support them.
 
9343
      lt_prog_compiler_can_build_shared=no
 
9344
      enable_shared=no
 
9345
      ;;
 
9346
 
 
9347
    *nto* | *qnx*)
 
9348
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9349
      # it will coredump.
 
9350
      lt_prog_compiler_pic='-fPIC -shared'
 
9351
      ;;
 
9352
 
 
9353
    sysv4*MP*)
 
9354
      if test -d /usr/nec; then
 
9355
        lt_prog_compiler_pic=-Kconform_pic
 
9356
      fi
 
9357
      ;;
 
9358
 
 
9359
    *)
 
9360
      lt_prog_compiler_pic='-fPIC'
 
9361
      ;;
 
9362
    esac
 
9363
 
 
9364
    case $cc_basename in
 
9365
    nvcc*) # Cuda Compiler Driver 2.2
 
9366
      lt_prog_compiler_wl='-Xlinker '
 
9367
      if test -n "$lt_prog_compiler_pic"; then
 
9368
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9369
      fi
 
9370
      ;;
 
9371
    esac
 
9372
  else
 
9373
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9374
    case $host_os in
 
9375
    aix*)
 
9376
      lt_prog_compiler_wl='-Wl,'
 
9377
      if test ia64 = "$host_cpu"; then
 
9378
        # AIX 5 now supports IA64 processor
 
9379
        lt_prog_compiler_static='-Bstatic'
 
9380
      else
 
9381
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9382
      fi
 
9383
      ;;
 
9384
 
 
9385
    darwin* | rhapsody*)
 
9386
      # PIC is the default on this platform
 
9387
      # Common symbols not allowed in MH_DYLIB files
 
9388
      lt_prog_compiler_pic='-fno-common'
 
9389
      case $cc_basename in
 
9390
      nagfor*)
 
9391
        # NAG Fortran compiler
 
9392
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9393
        lt_prog_compiler_pic='-PIC'
 
9394
        lt_prog_compiler_static='-Bstatic'
 
9395
        ;;
 
9396
      esac
 
9397
      ;;
 
9398
 
 
9399
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9400
      # This hack is so that the source file can tell whether it is being
 
9401
      # built for inclusion in a dll (and should export symbols for example).
 
9402
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9403
      case $host_os in
 
9404
      os2*)
 
9405
        lt_prog_compiler_static='$wl-static'
 
9406
        ;;
 
9407
      esac
 
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
      tcc*)
 
9460
        # Fabrice Bellard et al's Tiny C Compiler
 
9461
        lt_prog_compiler_wl='-Wl,'
 
9462
        lt_prog_compiler_pic='-fPIC'
 
9463
        lt_prog_compiler_static='-static'
 
9464
        ;;
 
9465
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9466
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9467
        # which looks to be a dead project)
 
9468
        lt_prog_compiler_wl='-Wl,'
 
9469
        lt_prog_compiler_pic='-fpic'
 
9470
        lt_prog_compiler_static='-Bstatic'
 
9471
        ;;
 
9472
      ccc*)
 
9473
        lt_prog_compiler_wl='-Wl,'
 
9474
        # All Alpha code is PIC.
 
9475
        lt_prog_compiler_static='-non_shared'
 
9476
        ;;
 
9477
      xl* | bgxl* | bgf* | mpixl*)
 
9478
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9479
        lt_prog_compiler_wl='-Wl,'
 
9480
        lt_prog_compiler_pic='-qpic'
 
9481
        lt_prog_compiler_static='-qstaticlink'
 
9482
        ;;
 
9483
      *)
 
9484
        case `$CC -V 2>&1` in
 
9485
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9486
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9487
          lt_prog_compiler_pic='-KPIC'
 
9488
          lt_prog_compiler_static='-Bstatic'
 
9489
          lt_prog_compiler_wl=''
 
9490
          ;;
 
9491
        *Sun\ F* | *Sun*Fortran*)
 
9492
          lt_prog_compiler_pic='-KPIC'
 
9493
          lt_prog_compiler_static='-Bstatic'
 
9494
          lt_prog_compiler_wl='-Qoption ld '
 
9495
          ;;
 
9496
        *Sun\ C*)
 
9497
          # Sun C 5.9
 
9498
          lt_prog_compiler_pic='-KPIC'
 
9499
          lt_prog_compiler_static='-Bstatic'
 
9500
          lt_prog_compiler_wl='-Wl,'
 
9501
          ;;
 
9502
        *Intel*\ [CF]*Compiler*)
 
9503
          lt_prog_compiler_wl='-Wl,'
 
9504
          lt_prog_compiler_pic='-fPIC'
 
9505
          lt_prog_compiler_static='-static'
 
9506
          ;;
 
9507
        *Cray\ Fortran* | *Cray\ C*)
 
9508
          lt_prog_compiler_wl='-Wl,'
 
9509
          lt_prog_compiler_pic='-hpic'
 
9510
          lt_prog_compiler_static='-static'
 
9511
          ;;
 
9512
        *pgcc* | *pgf77* | *pgf90* | *pgf95* | *pgfortran*)
 
9513
          lt_prog_compiler_wl='-Wl,'
 
9514
          lt_prog_compiler_pic='-fpic'
 
9515
          lt_prog_compiler_static='-Bstatic'
 
9516
          ;;
 
9517
        *Fujitsu*)
 
9518
          lt_prog_compiler_wl='-Wl,'
 
9519
          lt_prog_compiler_pic='-Kpic'
 
9520
          lt_prog_compiler_static='-Bstatic'
 
9521
          ;;
 
9522
        esac
 
9523
        ;;
 
9524
      esac
 
9525
      ;;
 
9526
 
 
9527
    newsos6)
 
9528
      lt_prog_compiler_pic='-KPIC'
 
9529
      lt_prog_compiler_static='-Bstatic'
 
9530
      ;;
 
9531
 
 
9532
    *nto* | *qnx*)
 
9533
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9534
      # it will coredump.
 
9535
      lt_prog_compiler_pic='-fPIC -shared'
 
9536
      ;;
 
9537
 
 
9538
    osf3* | osf4* | osf5*)
 
9539
      lt_prog_compiler_wl='-Wl,'
 
9540
      # All OSF/1 code is PIC.
 
9541
      lt_prog_compiler_static='-non_shared'
 
9542
      ;;
 
9543
 
 
9544
    rdos*)
 
9545
      lt_prog_compiler_static='-non_shared'
 
9546
      ;;
 
9547
 
 
9548
    solaris*)
 
9549
      lt_prog_compiler_pic='-KPIC'
 
9550
      lt_prog_compiler_static='-Bstatic'
 
9551
      case $cc_basename in
 
9552
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9553
        lt_prog_compiler_wl='-Qoption ld ';;
 
9554
      *)
 
9555
        lt_prog_compiler_wl='-Wl,';;
 
9556
      esac
 
9557
      ;;
 
9558
 
 
9559
    sunos4*)
 
9560
      lt_prog_compiler_wl='-Qoption ld '
 
9561
      lt_prog_compiler_pic='-PIC'
 
9562
      lt_prog_compiler_static='-Bstatic'
 
9563
      ;;
 
9564
 
 
9565
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9566
      lt_prog_compiler_wl='-Wl,'
 
9567
      lt_prog_compiler_pic='-KPIC'
 
9568
      lt_prog_compiler_static='-Bstatic'
 
9569
      ;;
 
9570
 
 
9571
    sysv4*MP*)
 
9572
      if test -d /usr/nec; then
 
9573
        lt_prog_compiler_pic='-Kconform_pic'
 
9574
        lt_prog_compiler_static='-Bstatic'
 
9575
      fi
 
9576
      ;;
 
9577
 
 
9578
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9579
      lt_prog_compiler_wl='-Wl,'
 
9580
      lt_prog_compiler_pic='-KPIC'
 
9581
      lt_prog_compiler_static='-Bstatic'
 
9582
      ;;
 
9583
 
 
9584
    unicos*)
 
9585
      lt_prog_compiler_wl='-Wl,'
 
9586
      lt_prog_compiler_can_build_shared=no
 
9587
      ;;
 
9588
 
 
9589
    uts4*)
 
9590
      lt_prog_compiler_pic='-pic'
 
9591
      lt_prog_compiler_static='-Bstatic'
 
9592
      ;;
 
9593
 
 
9594
    *)
 
9595
      lt_prog_compiler_can_build_shared=no
 
9596
      ;;
 
9597
    esac
 
9598
  fi
 
9599
 
 
9600
case $host_os in
 
9601
  # For platforms that do not support PIC, -DPIC is meaningless:
 
9602
  *djgpp*)
 
9603
    lt_prog_compiler_pic=
 
9604
    ;;
 
9605
  *)
 
9606
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9607
    ;;
 
9608
esac
 
9609
 
 
9610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9611
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9612
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9613
  $as_echo_n "(cached) " >&6
 
9614
else
 
9615
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9616
fi
 
9617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9618
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9619
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9620
 
 
9621
#
 
9622
# Check to make sure the PIC flag actually works.
 
9623
#
 
9624
if test -n "$lt_prog_compiler_pic"; then
 
9625
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9626
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9627
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9628
  $as_echo_n "(cached) " >&6
 
9629
else
 
9630
  lt_cv_prog_compiler_pic_works=no
 
9631
   ac_outfile=conftest.$ac_objext
 
9632
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9633
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 
9634
   # Insert the option either (1) after the last *FLAGS variable, or
 
9635
   # (2) before a word containing "conftest.", or (3) at the end.
 
9636
   # Note that $ac_compile itself does not contain backslashes and begins
 
9637
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9638
   # The option is referenced via a variable to avoid confusing sed.
 
9639
   lt_compile=`echo "$ac_compile" | $SED \
 
9640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9642
   -e 's:$: $lt_compiler_flag:'`
 
9643
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9644
   (eval "$lt_compile" 2>conftest.err)
 
9645
   ac_status=$?
 
9646
   cat conftest.err >&5
 
9647
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9648
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9649
     # The compiler can only warn and ignore the option if not recognized
 
9650
     # So say no if there are warnings other than the usual output.
 
9651
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9652
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9653
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9654
       lt_cv_prog_compiler_pic_works=yes
 
9655
     fi
 
9656
   fi
 
9657
   $RM conftest*
 
9658
 
 
9659
fi
 
9660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9661
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9662
 
 
9663
if test yes = "$lt_cv_prog_compiler_pic_works"; then
 
9664
    case $lt_prog_compiler_pic in
 
9665
     "" | " "*) ;;
 
9666
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9667
     esac
 
9668
else
 
9669
    lt_prog_compiler_pic=
 
9670
     lt_prog_compiler_can_build_shared=no
 
9671
fi
 
9672
 
 
9673
fi
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
#
 
9686
# Check to make sure the static flag actually works.
 
9687
#
 
9688
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9690
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9691
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9692
  $as_echo_n "(cached) " >&6
 
9693
else
 
9694
  lt_cv_prog_compiler_static_works=no
 
9695
   save_LDFLAGS=$LDFLAGS
 
9696
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9697
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9698
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9699
     # The linker can only warn and ignore the option if not recognized
 
9700
     # So say no if there are warnings
 
9701
     if test -s conftest.err; then
 
9702
       # Append any errors to the config.log.
 
9703
       cat conftest.err 1>&5
 
9704
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9705
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9706
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9707
         lt_cv_prog_compiler_static_works=yes
 
9708
       fi
 
9709
     else
 
9710
       lt_cv_prog_compiler_static_works=yes
 
9711
     fi
 
9712
   fi
 
9713
   $RM -r conftest*
 
9714
   LDFLAGS=$save_LDFLAGS
 
9715
 
 
9716
fi
 
9717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9718
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9719
 
 
9720
if test yes = "$lt_cv_prog_compiler_static_works"; then
 
9721
    :
 
9722
else
 
9723
    lt_prog_compiler_static=
 
9724
fi
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9733
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9734
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9735
  $as_echo_n "(cached) " >&6
 
9736
else
 
9737
  lt_cv_prog_compiler_c_o=no
 
9738
   $RM -r conftest 2>/dev/null
 
9739
   mkdir conftest
 
9740
   cd conftest
 
9741
   mkdir out
 
9742
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9743
 
 
9744
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9745
   # Insert the option either (1) after the last *FLAGS variable, or
 
9746
   # (2) before a word containing "conftest.", or (3) at the end.
 
9747
   # Note that $ac_compile itself does not contain backslashes and begins
 
9748
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9749
   lt_compile=`echo "$ac_compile" | $SED \
 
9750
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9751
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9752
   -e 's:$: $lt_compiler_flag:'`
 
9753
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9754
   (eval "$lt_compile" 2>out/conftest.err)
 
9755
   ac_status=$?
 
9756
   cat out/conftest.err >&5
 
9757
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9758
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9759
   then
 
9760
     # The compiler can only warn and ignore the option if not recognized
 
9761
     # So say no if there are warnings
 
9762
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9763
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9764
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9765
       lt_cv_prog_compiler_c_o=yes
 
9766
     fi
 
9767
   fi
 
9768
   chmod u+w . 2>&5
 
9769
   $RM conftest*
 
9770
   # SGI C++ compiler will create directory out/ii_files/ for
 
9771
   # template instantiation
 
9772
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9773
   $RM out/* && rmdir out
 
9774
   cd ..
 
9775
   $RM -r conftest
 
9776
   $RM conftest*
 
9777
 
 
9778
fi
 
9779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9780
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
 
9787
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9788
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9789
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9790
  $as_echo_n "(cached) " >&6
 
9791
else
 
9792
  lt_cv_prog_compiler_c_o=no
 
9793
   $RM -r conftest 2>/dev/null
 
9794
   mkdir conftest
 
9795
   cd conftest
 
9796
   mkdir out
 
9797
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9798
 
 
9799
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9800
   # Insert the option either (1) after the last *FLAGS variable, or
 
9801
   # (2) before a word containing "conftest.", or (3) at the end.
 
9802
   # Note that $ac_compile itself does not contain backslashes and begins
 
9803
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9804
   lt_compile=`echo "$ac_compile" | $SED \
 
9805
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9806
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9807
   -e 's:$: $lt_compiler_flag:'`
 
9808
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9809
   (eval "$lt_compile" 2>out/conftest.err)
 
9810
   ac_status=$?
 
9811
   cat out/conftest.err >&5
 
9812
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9813
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9814
   then
 
9815
     # The compiler can only warn and ignore the option if not recognized
 
9816
     # So say no if there are warnings
 
9817
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9818
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9819
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9820
       lt_cv_prog_compiler_c_o=yes
 
9821
     fi
 
9822
   fi
 
9823
   chmod u+w . 2>&5
 
9824
   $RM conftest*
 
9825
   # SGI C++ compiler will create directory out/ii_files/ for
 
9826
   # template instantiation
 
9827
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9828
   $RM out/* && rmdir out
 
9829
   cd ..
 
9830
   $RM -r conftest
 
9831
   $RM conftest*
 
9832
 
 
9833
fi
 
9834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9835
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
hard_links=nottested
 
9841
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
 
9842
  # do not overwrite the value of need_locks provided by the user
 
9843
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9844
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9845
  hard_links=yes
 
9846
  $RM conftest*
 
9847
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9848
  touch conftest.a
 
9849
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9850
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9852
$as_echo "$hard_links" >&6; }
 
9853
  if test no = "$hard_links"; then
 
9854
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 
9855
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 
9856
    need_locks=warn
 
9857
  fi
 
9858
else
 
9859
  need_locks=no
 
9860
fi
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9868
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9869
 
 
9870
  runpath_var=
 
9871
  allow_undefined_flag=
 
9872
  always_export_symbols=no
 
9873
  archive_cmds=
 
9874
  archive_expsym_cmds=
 
9875
  compiler_needs_object=no
 
9876
  enable_shared_with_static_runtimes=no
 
9877
  export_dynamic_flag_spec=
 
9878
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9879
  hardcode_automatic=no
 
9880
  hardcode_direct=no
 
9881
  hardcode_direct_absolute=no
 
9882
  hardcode_libdir_flag_spec=
 
9883
  hardcode_libdir_separator=
 
9884
  hardcode_minus_L=no
 
9885
  hardcode_shlibpath_var=unsupported
 
9886
  inherit_rpath=no
 
9887
  link_all_deplibs=unknown
 
9888
  module_cmds=
 
9889
  module_expsym_cmds=
 
9890
  old_archive_from_new_cmds=
 
9891
  old_archive_from_expsyms_cmds=
 
9892
  thread_safe_flag_spec=
 
9893
  whole_archive_flag_spec=
 
9894
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9895
  # included in the symbol list
 
9896
  include_expsyms=
 
9897
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9898
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
 
9899
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 
9900
  # as well as any symbol that contains 'd'.
 
9901
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9902
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9903
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9904
  # the symbol is explicitly referenced.  Since portable code cannot
 
9905
  # rely on this symbol name, it's probably fine to never include it in
 
9906
  # preloaded symbol tables.
 
9907
  # Exclude shared library initialization/finalization symbols.
 
9908
  extract_expsyms_cmds=
 
9909
 
 
9910
  case $host_os in
 
9911
  cygwin* | mingw* | pw32* | cegcc*)
 
9912
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9913
    # When not using gcc, we currently assume that we are using
 
9914
    # Microsoft Visual C++.
 
9915
    if test yes != "$GCC"; then
 
9916
      with_gnu_ld=no
 
9917
    fi
 
9918
    ;;
 
9919
  interix*)
 
9920
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9921
    with_gnu_ld=yes
 
9922
    ;;
 
9923
  openbsd* | bitrig*)
 
9924
    with_gnu_ld=no
 
9925
    ;;
 
9926
  esac
 
9927
 
 
9928
  ld_shlibs=yes
 
9929
 
 
9930
  # On some targets, GNU ld is compatible enough with the native linker
 
9931
  # that we're better off using the native interface for both.
 
9932
  lt_use_gnu_ld_interface=no
 
9933
  if test yes = "$with_gnu_ld"; then
 
9934
    case $host_os in
 
9935
      aix*)
 
9936
        # The AIX port of GNU ld has always aspired to compatibility
 
9937
        # with the native linker.  However, as the warning in the GNU ld
 
9938
        # block says, versions before 2.19.5* couldn't really create working
 
9939
        # shared libraries, regardless of the interface used.
 
9940
        case `$LD -v 2>&1` in
 
9941
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9942
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9943
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9944
          *)
 
9945
            lt_use_gnu_ld_interface=yes
 
9946
            ;;
 
9947
        esac
 
9948
        ;;
 
9949
      *)
 
9950
        lt_use_gnu_ld_interface=yes
 
9951
        ;;
 
9952
    esac
 
9953
  fi
 
9954
 
 
9955
  if test yes = "$lt_use_gnu_ld_interface"; then
 
9956
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9957
    wlarc='$wl'
 
9958
 
 
9959
    # Set some defaults for GNU ld with shared library support. These
 
9960
    # are reset later if shared libraries are not supported. Putting them
 
9961
    # here allows them to be overridden if necessary.
 
9962
    runpath_var=LD_RUN_PATH
 
9963
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
9964
    export_dynamic_flag_spec='$wl--export-dynamic'
 
9965
    # ancient GNU ld didn't support --whole-archive et. al.
 
9966
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9967
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 
9968
    else
 
9969
      whole_archive_flag_spec=
 
9970
    fi
 
9971
    supports_anon_versioning=no
 
9972
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
 
9973
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9974
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9975
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9976
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9977
      *\ 2.11.*) ;; # other 2.11 versions
 
9978
      *) supports_anon_versioning=yes ;;
 
9979
    esac
 
9980
 
 
9981
    # See if GNU ld supports shared libraries.
 
9982
    case $host_os in
 
9983
    aix[3-9]*)
 
9984
      # On AIX/PPC, the GNU linker is very broken
 
9985
      if test ia64 != "$host_cpu"; then
 
9986
        ld_shlibs=no
 
9987
        cat <<_LT_EOF 1>&2
 
9988
 
 
9989
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9990
*** to be unable to reliably create shared libraries on AIX.
 
9991
*** Therefore, libtool is disabling shared libraries support.  If you
 
9992
*** really care for shared libraries, you may want to install binutils
 
9993
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9994
*** You will then need to restart the configuration process.
 
9995
 
 
9996
_LT_EOF
 
9997
      fi
 
9998
      ;;
 
9999
 
 
10000
    amigaos*)
 
10001
      case $host_cpu in
 
10002
      powerpc)
 
10003
            # see comment about AmigaOS4 .so support
 
10004
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10005
            archive_expsym_cmds=''
 
10006
        ;;
 
10007
      m68k)
 
10008
            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)'
 
10009
            hardcode_libdir_flag_spec='-L$libdir'
 
10010
            hardcode_minus_L=yes
 
10011
        ;;
 
10012
      esac
 
10013
      ;;
 
10014
 
 
10015
    beos*)
 
10016
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10017
        allow_undefined_flag=unsupported
 
10018
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10019
        # support --undefined.  This deserves some investigation.  FIXME
 
10020
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10021
      else
 
10022
        ld_shlibs=no
 
10023
      fi
 
10024
      ;;
 
10025
 
 
10026
    cygwin* | mingw* | pw32* | cegcc*)
 
10027
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10028
      # as there is no search path for DLLs.
 
10029
      hardcode_libdir_flag_spec='-L$libdir'
 
10030
      export_dynamic_flag_spec='$wl--export-all-symbols'
 
10031
      allow_undefined_flag=unsupported
 
10032
      always_export_symbols=no
 
10033
      enable_shared_with_static_runtimes=yes
 
10034
      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'
 
10035
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
10036
 
 
10037
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10038
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10039
        # If the export-symbols file already is a .def file, use it as
 
10040
        # is; otherwise, prepend EXPORTS...
 
10041
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
10042
          cp $export_symbols $output_objdir/$soname.def;
 
10043
        else
 
10044
          echo EXPORTS > $output_objdir/$soname.def;
 
10045
          cat $export_symbols >> $output_objdir/$soname.def;
 
10046
        fi~
 
10047
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10048
      else
 
10049
        ld_shlibs=no
 
10050
      fi
 
10051
      ;;
 
10052
 
 
10053
    haiku*)
 
10054
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10055
      link_all_deplibs=yes
 
10056
      ;;
 
10057
 
 
10058
    os2*)
 
10059
      hardcode_libdir_flag_spec='-L$libdir'
 
10060
      hardcode_minus_L=yes
 
10061
      allow_undefined_flag=unsupported
 
10062
      shrext_cmds=.dll
 
10063
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10064
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10065
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10066
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10067
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
10068
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10069
        emximp -o $lib $output_objdir/$libname.def'
 
10070
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10071
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10072
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10073
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10074
        prefix_cmds="$SED"~
 
10075
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
10076
          prefix_cmds="$prefix_cmds -e 1d";
 
10077
        fi~
 
10078
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
10079
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
10080
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10081
        emximp -o $lib $output_objdir/$libname.def'
 
10082
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
10083
      enable_shared_with_static_runtimes=yes
 
10084
      ;;
 
10085
 
 
10086
    interix[3-9]*)
 
10087
      hardcode_direct=no
 
10088
      hardcode_shlibpath_var=no
 
10089
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10090
      export_dynamic_flag_spec='$wl-E'
 
10091
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10092
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10093
      # default) and relocated if they conflict, which is a slow very memory
 
10094
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10095
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10096
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10097
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10098
      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'
 
10099
      ;;
 
10100
 
 
10101
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
10102
      tmp_diet=no
 
10103
      if test linux-dietlibc = "$host_os"; then
 
10104
        case $cc_basename in
 
10105
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
10106
        esac
 
10107
      fi
 
10108
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
10109
         && test no = "$tmp_diet"
 
10110
      then
 
10111
        tmp_addflag=' $pic_flag'
 
10112
        tmp_sharedflag='-shared'
 
10113
        case $cc_basename,$host_cpu in
 
10114
        pgcc*)                          # Portland Group C compiler
 
10115
          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'
 
10116
          tmp_addflag=' $pic_flag'
 
10117
          ;;
 
10118
        pgCC*)                          # Portland Group C++ compiler
 
10119
          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'
 
10120
          tmp_addflag=' $pic_flag'
 
10121
          ;;
 
10122
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
10123
                                        # Portland Group f77 and f90 compilers
 
10124
          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'
 
10125
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10126
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
10127
          tmp_addflag=' -i_dynamic' ;;
 
10128
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10129
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10130
        ifc* | ifort*)                  # Intel Fortran compiler
 
10131
          tmp_addflag=' -nofor_main' ;;
 
10132
        lf95*)                          # Lahey Fortran 8.1
 
10133
          whole_archive_flag_spec=
 
10134
          tmp_sharedflag='--shared' ;;
 
10135
        nagfor*)                        # NAGFOR 5.3
 
10136
          tmp_sharedflag='-Wl,-shared' ;;
 
10137
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
10138
          tmp_sharedflag='-qmkshrobj'
 
10139
          tmp_addflag= ;;
 
10140
        nvcc*)  # Cuda Compiler Driver 2.2
 
10141
          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'
 
10142
          compiler_needs_object=yes
 
10143
          ;;
 
10144
        esac
 
10145
        case `$CC -V 2>&1 | sed 5q` in
 
10146
        *Sun\ C*)                       # Sun C 5.9
 
10147
          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'
 
10148
          compiler_needs_object=yes
 
10149
          tmp_sharedflag='-G' ;;
 
10150
        *Sun\ F*)                       # Sun Fortran 8.3
 
10151
          tmp_sharedflag='-G' ;;
 
10152
        esac
 
10153
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10154
 
 
10155
        if test yes = "$supports_anon_versioning"; then
 
10156
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10157
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10158
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10159
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 
10160
        fi
 
10161
 
 
10162
        case $cc_basename in
 
10163
        tcc*)
 
10164
          export_dynamic_flag_spec='-rdynamic'
 
10165
          ;;
 
10166
        xlf* | bgf* | bgxlf* | mpixlf*)
 
10167
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10168
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10169
          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10170
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
10171
          if test yes = "$supports_anon_versioning"; then
 
10172
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10173
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10174
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10175
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10176
          fi
 
10177
          ;;
 
10178
        esac
 
10179
        case `$CC -V 2>&1 | sed 5q` in
 
10180
        *Cray\ C* | *Cray\ Fortran*)    # Cray C/C++/Fortran
 
10181
          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'
 
10182
          compiler_needs_object=yes
 
10183
          archive_cmds_need_lc='no'
 
10184
          archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
 
10185
          ;;
 
10186
        esac
 
10187
      else
 
10188
        ld_shlibs=no
 
10189
      fi
 
10190
      ;;
 
10191
 
 
10192
    netbsd*)
 
10193
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10194
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10195
        wlarc=
 
10196
      else
 
10197
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10198
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10199
      fi
 
10200
      ;;
 
10201
 
 
10202
    solaris*)
 
10203
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10204
        ld_shlibs=no
 
10205
        cat <<_LT_EOF 1>&2
 
10206
 
 
10207
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10208
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10209
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10210
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10211
*** your PATH or compiler configuration so that the native linker is
 
10212
*** used, and then restart.
 
10213
 
 
10214
_LT_EOF
 
10215
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10216
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10217
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10218
      else
 
10219
        ld_shlibs=no
 
10220
      fi
 
10221
      ;;
 
10222
 
 
10223
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10224
      case `$LD -v 2>&1` in
 
10225
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10226
        ld_shlibs=no
 
10227
        cat <<_LT_EOF 1>&2
 
10228
 
 
10229
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 
10230
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10231
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10232
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10233
*** your PATH or compiler configuration so that the native linker is
 
10234
*** used, and then restart.
 
10235
 
 
10236
_LT_EOF
 
10237
        ;;
 
10238
        *)
 
10239
          # For security reasons, it is highly recommended that you always
 
10240
          # use absolute paths for naming shared libraries, and exclude the
 
10241
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10242
          # requires that you compile everything twice, which is a pain.
 
10243
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10244
            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10245
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10246
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10247
          else
 
10248
            ld_shlibs=no
 
10249
          fi
 
10250
        ;;
 
10251
      esac
 
10252
      ;;
 
10253
 
 
10254
    sunos4*)
 
10255
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10256
      wlarc=
 
10257
      hardcode_direct=yes
 
10258
      hardcode_shlibpath_var=no
 
10259
      ;;
 
10260
 
 
10261
    *)
 
10262
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10263
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10264
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 
10265
      else
 
10266
        ld_shlibs=no
 
10267
      fi
 
10268
      ;;
 
10269
    esac
 
10270
 
 
10271
    if test no = "$ld_shlibs"; then
 
10272
      runpath_var=
 
10273
      hardcode_libdir_flag_spec=
 
10274
      export_dynamic_flag_spec=
 
10275
      whole_archive_flag_spec=
 
10276
    fi
 
10277
  else
 
10278
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10279
    case $host_os in
 
10280
    aix3*)
 
10281
      allow_undefined_flag=unsupported
 
10282
      always_export_symbols=yes
 
10283
      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'
 
10284
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10285
      # are no directories specified by -L.
 
10286
      hardcode_minus_L=yes
 
10287
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 
10288
        # Neither direct hardcoding nor static linking is supported with a
 
10289
        # broken collect2.
 
10290
        hardcode_direct=unsupported
 
10291
      fi
 
10292
      ;;
 
10293
 
 
10294
    aix[4-9]*)
 
10295
      if test ia64 = "$host_cpu"; then
 
10296
        # On IA64, the linker does run time linking by default, so we don't
 
10297
        # have to do anything special.
 
10298
        aix_use_runtimelinking=no
 
10299
        exp_sym_flag='-Bexport'
 
10300
        no_entry_flag=
 
10301
      else
 
10302
        # If we're using GNU nm, then we don't want the "-C" option.
 
10303
        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 
10304
        # Without the "-l" option, or with the "-B" option, AIX nm treats
 
10305
        # weak defined symbols like other global defined symbols, whereas
 
10306
        # GNU nm marks them as "W".
 
10307
        # While the 'weak' keyword is ignored in the Export File, we need
 
10308
        # it in the Import File for the 'aix-soname' feature, so we have
 
10309
        # to replace the "-B" option with "-P" for AIX nm.
 
10310
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10311
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 
10312
        else
 
10313
          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 
10314
        fi
 
10315
        aix_use_runtimelinking=no
 
10316
 
 
10317
        # Test if we are trying to use run time linking or normal
 
10318
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10319
        # have runtime linking enabled, and use it for executables.
 
10320
        # For shared libraries, we enable/disable runtime linking
 
10321
        # depending on the kind of the shared library created -
 
10322
        # when "with_aix_soname,aix_use_runtimelinking" is:
 
10323
        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 
10324
        # "aix,yes"  lib.so          shared, rtl:yes, for executables
 
10325
        #            lib.a           static archive
 
10326
        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 
10327
        #            lib.a(lib.so.V) shared, rtl:no,  for executables
 
10328
        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 
10329
        #            lib.a(lib.so.V) shared, rtl:no
 
10330
        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 
10331
        #            lib.a           static archive
 
10332
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10333
          for ld_flag in $LDFLAGS; do
 
10334
          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 
10335
            aix_use_runtimelinking=yes
 
10336
            break
 
10337
          fi
 
10338
          done
 
10339
          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 
10340
            # With aix-soname=svr4, we create the lib.so.V shared archives only,
 
10341
            # so we don't have lib.a shared libs to link our executables.
 
10342
            # We have to force runtime linking in this case.
 
10343
            aix_use_runtimelinking=yes
 
10344
            LDFLAGS="$LDFLAGS -Wl,-brtl"
 
10345
          fi
 
10346
          ;;
 
10347
        esac
 
10348
 
 
10349
        exp_sym_flag='-bexport'
 
10350
        no_entry_flag='-bnoentry'
 
10351
      fi
 
10352
 
 
10353
      # When large executables or shared objects are built, AIX ld can
 
10354
      # have problems creating the table of contents.  If linking a library
 
10355
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10356
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10357
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10358
 
 
10359
      archive_cmds=''
 
10360
      hardcode_direct=yes
 
10361
      hardcode_direct_absolute=yes
 
10362
      hardcode_libdir_separator=':'
 
10363
      link_all_deplibs=yes
 
10364
      file_list_spec='$wl-f,'
 
10365
      case $with_aix_soname,$aix_use_runtimelinking in
 
10366
      aix,*) ;; # traditional, no import file
 
10367
      svr4,* | *,yes) # use import file
 
10368
        # The Import File defines what to hardcode.
 
10369
        hardcode_direct=no
 
10370
        hardcode_direct_absolute=no
 
10371
        ;;
 
10372
      esac
 
10373
 
 
10374
      if test yes = "$GCC"; then
 
10375
        case $host_os in aix4.[012]|aix4.[012].*)
 
10376
        # We only want to do this on AIX 4.2 and lower, the check
 
10377
        # below for broken collect2 doesn't work under 4.3+
 
10378
          collect2name=`$CC -print-prog-name=collect2`
 
10379
          if test -f "$collect2name" &&
 
10380
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10381
          then
 
10382
          # We have reworked collect2
 
10383
          :
 
10384
          else
 
10385
          # We have old collect2
 
10386
          hardcode_direct=unsupported
 
10387
          # It fails to find uninstalled libraries when the uninstalled
 
10388
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10389
          # to unsupported forces relinking
 
10390
          hardcode_minus_L=yes
 
10391
          hardcode_libdir_flag_spec='-L$libdir'
 
10392
          hardcode_libdir_separator=
 
10393
          fi
 
10394
          ;;
 
10395
        esac
 
10396
        shared_flag='-shared'
 
10397
        if test yes = "$aix_use_runtimelinking"; then
 
10398
          shared_flag="$shared_flag "'$wl-G'
 
10399
        fi
 
10400
        # Need to ensure runtime linking is disabled for the traditional
 
10401
        # shared library, or the linker may eventually find shared libraries
 
10402
        # /with/ Import File - we do not want to mix them.
 
10403
        shared_flag_aix='-shared'
 
10404
        shared_flag_svr4='-shared $wl-G'
 
10405
      else
 
10406
        # not using gcc
 
10407
        if test ia64 = "$host_cpu"; then
 
10408
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10409
        # chokes on -Wl,-G. The following line is correct:
 
10410
          shared_flag='-G'
 
10411
        else
 
10412
          if test yes = "$aix_use_runtimelinking"; then
 
10413
            shared_flag='$wl-G'
 
10414
          else
 
10415
            shared_flag='$wl-bM:SRE'
 
10416
          fi
 
10417
          shared_flag_aix='$wl-bM:SRE'
 
10418
          shared_flag_svr4='$wl-G'
 
10419
        fi
 
10420
      fi
 
10421
 
 
10422
      export_dynamic_flag_spec='$wl-bexpall'
 
10423
      # It seems that -bexpall does not export symbols beginning with
 
10424
      # underscore (_), so it is better to generate a list of symbols to export.
 
10425
      always_export_symbols=yes
 
10426
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 
10427
        # Warning - without using the other runtime loading flags (-brtl),
 
10428
        # -berok will link without error, but may produce a broken library.
 
10429
        allow_undefined_flag='-berok'
 
10430
        # Determine the default libpath from the value encoded in an
 
10431
        # empty executable.
 
10432
        if test set = "${lt_cv_aix_libpath+set}"; then
 
10433
  aix_libpath=$lt_cv_aix_libpath
 
10434
else
 
10435
  if ${lt_cv_aix_libpath_+:} false; then :
 
10436
  $as_echo_n "(cached) " >&6
 
10437
else
 
10438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10439
/* end confdefs.h.  */
 
10440
 
 
10441
int
 
10442
main ()
 
10443
{
 
10444
 
 
10445
  ;
 
10446
  return 0;
 
10447
}
 
10448
_ACEOF
 
10449
if ac_fn_c_try_link "$LINENO"; then :
 
10450
 
 
10451
  lt_aix_libpath_sed='
 
10452
      /Import File Strings/,/^$/ {
 
10453
          /^0/ {
 
10454
              s/^0  *\([^ ]*\) *$/\1/
 
10455
              p
 
10456
          }
 
10457
      }'
 
10458
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10459
  # Check for a 64-bit object if we didn't find anything.
 
10460
  if test -z "$lt_cv_aix_libpath_"; then
 
10461
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10462
  fi
 
10463
fi
 
10464
rm -f core conftest.err conftest.$ac_objext \
 
10465
    conftest$ac_exeext conftest.$ac_ext
 
10466
  if test -z "$lt_cv_aix_libpath_"; then
 
10467
    lt_cv_aix_libpath_=/usr/lib:/lib
 
10468
  fi
 
10469
 
 
10470
fi
 
10471
 
 
10472
  aix_libpath=$lt_cv_aix_libpath_
 
10473
fi
 
10474
 
 
10475
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
10476
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 
10477
      else
 
10478
        if test ia64 = "$host_cpu"; then
 
10479
          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
 
10480
          allow_undefined_flag="-z nodefs"
 
10481
          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"
 
10482
        else
 
10483
         # Determine the default libpath from the value encoded in an
 
10484
         # empty executable.
 
10485
         if test set = "${lt_cv_aix_libpath+set}"; then
 
10486
  aix_libpath=$lt_cv_aix_libpath
 
10487
else
 
10488
  if ${lt_cv_aix_libpath_+:} false; then :
 
10489
  $as_echo_n "(cached) " >&6
 
10490
else
 
10491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10492
/* end confdefs.h.  */
 
10493
 
 
10494
int
 
10495
main ()
 
10496
{
 
10497
 
 
10498
  ;
 
10499
  return 0;
 
10500
}
 
10501
_ACEOF
 
10502
if ac_fn_c_try_link "$LINENO"; then :
 
10503
 
 
10504
  lt_aix_libpath_sed='
 
10505
      /Import File Strings/,/^$/ {
 
10506
          /^0/ {
 
10507
              s/^0  *\([^ ]*\) *$/\1/
 
10508
              p
 
10509
          }
 
10510
      }'
 
10511
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10512
  # Check for a 64-bit object if we didn't find anything.
 
10513
  if test -z "$lt_cv_aix_libpath_"; then
 
10514
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10515
  fi
 
10516
fi
 
10517
rm -f core conftest.err conftest.$ac_objext \
 
10518
    conftest$ac_exeext conftest.$ac_ext
 
10519
  if test -z "$lt_cv_aix_libpath_"; then
 
10520
    lt_cv_aix_libpath_=/usr/lib:/lib
 
10521
  fi
 
10522
 
 
10523
fi
 
10524
 
 
10525
  aix_libpath=$lt_cv_aix_libpath_
 
10526
fi
 
10527
 
 
10528
         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
10529
          # Warning - without using the other run time loading flags,
 
10530
          # -berok will link without error, but may produce a broken library.
 
10531
          no_undefined_flag=' $wl-bernotok'
 
10532
          allow_undefined_flag=' $wl-berok'
 
10533
          if test yes = "$with_gnu_ld"; then
 
10534
            # We only use this code for GNU lds that support --whole-archive.
 
10535
            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
 
10536
          else
 
10537
            # Exported symbols can be pulled into shared objects from archives
 
10538
            whole_archive_flag_spec='$convenience'
 
10539
          fi
 
10540
          archive_cmds_need_lc=yes
 
10541
          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 
10542
          # -brtl affects multiple linker settings, -berok does not and is overridden later
 
10543
          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
 
10544
          if test svr4 != "$with_aix_soname"; then
 
10545
            # This is similar to how AIX traditionally builds its shared libraries.
 
10546
            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 
10547
          fi
 
10548
          if test aix != "$with_aix_soname"; then
 
10549
            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 
10550
          else
 
10551
            # used by -dlpreopen to get the symbols
 
10552
            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 
10553
          fi
 
10554
          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
 
10555
        fi
 
10556
      fi
 
10557
      ;;
 
10558
 
 
10559
    amigaos*)
 
10560
      case $host_cpu in
 
10561
      powerpc)
 
10562
            # see comment about AmigaOS4 .so support
 
10563
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10564
            archive_expsym_cmds=''
 
10565
        ;;
 
10566
      m68k)
 
10567
            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)'
 
10568
            hardcode_libdir_flag_spec='-L$libdir'
 
10569
            hardcode_minus_L=yes
 
10570
        ;;
 
10571
      esac
 
10572
      ;;
 
10573
 
 
10574
    bsdi[45]*)
 
10575
      export_dynamic_flag_spec=-rdynamic
 
10576
      ;;
 
10577
 
 
10578
    cygwin* | mingw* | pw32* | cegcc*)
 
10579
      # When not using gcc, we currently assume that we are using
 
10580
      # Microsoft Visual C++.
 
10581
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10582
      # no search path for DLLs.
 
10583
      case $cc_basename in
 
10584
      cl*)
 
10585
        # Native MSVC
 
10586
        hardcode_libdir_flag_spec=' '
 
10587
        allow_undefined_flag=unsupported
 
10588
        always_export_symbols=yes
 
10589
        file_list_spec='@'
 
10590
        # Tell ltmain to make .lib files, not .a files.
 
10591
        libext=lib
 
10592
        # Tell ltmain to make .dll files, not .so files.
 
10593
        shrext_cmds=.dll
 
10594
        # FIXME: Setting linknames here is a bad hack.
 
10595
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
10596
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
10597
            cp "$export_symbols" "$output_objdir/$soname.def";
 
10598
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
10599
          else
 
10600
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
10601
          fi~
 
10602
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10603
          linknames='
 
10604
        # The linker will not automatically build a static lib if we build a DLL.
 
10605
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10606
        enable_shared_with_static_runtimes=yes
 
10607
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10608
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10609
        # Don't use ranlib
 
10610
        old_postinstall_cmds='chmod 644 $oldlib'
 
10611
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10612
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10613
          case $lt_outputfile in
 
10614
            *.exe|*.EXE) ;;
 
10615
            *)
 
10616
              lt_outputfile=$lt_outputfile.exe
 
10617
              lt_tool_outputfile=$lt_tool_outputfile.exe
 
10618
              ;;
 
10619
          esac~
 
10620
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
10621
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10622
            $RM "$lt_outputfile.manifest";
 
10623
          fi'
 
10624
        ;;
 
10625
      *)
 
10626
        # Assume MSVC wrapper
 
10627
        hardcode_libdir_flag_spec=' '
 
10628
        allow_undefined_flag=unsupported
 
10629
        # Tell ltmain to make .lib files, not .a files.
 
10630
        libext=lib
 
10631
        # Tell ltmain to make .dll files, not .so files.
 
10632
        shrext_cmds=.dll
 
10633
        # FIXME: Setting linknames here is a bad hack.
 
10634
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10635
        # The linker will automatically build a .lib file if we build a DLL.
 
10636
        old_archive_from_new_cmds='true'
 
10637
        # FIXME: Should let the user specify the lib program.
 
10638
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10639
        enable_shared_with_static_runtimes=yes
 
10640
        ;;
 
10641
      esac
 
10642
      ;;
 
10643
 
 
10644
    darwin* | rhapsody*)
 
10645
 
 
10646
 
 
10647
  archive_cmds_need_lc=no
 
10648
  hardcode_direct=no
 
10649
  hardcode_automatic=yes
 
10650
  hardcode_shlibpath_var=unsupported
 
10651
  if test yes = "$lt_cv_ld_force_load"; then
 
10652
    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\"`'
 
10653
 
 
10654
  else
 
10655
    whole_archive_flag_spec=''
 
10656
  fi
 
10657
  link_all_deplibs=yes
 
10658
  allow_undefined_flag=$_lt_dar_allow_undefined
 
10659
  case $cc_basename in
 
10660
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 
10661
     *) _lt_dar_can_shared=$GCC ;;
 
10662
  esac
 
10663
  if test yes = "$_lt_dar_can_shared"; then
 
10664
    output_verbose_link_cmd=func_echo_all
 
10665
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 
10666
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
10667
    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"
 
10668
    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"
 
10669
 
 
10670
  else
 
10671
  ld_shlibs=no
 
10672
  fi
 
10673
 
 
10674
      ;;
 
10675
 
 
10676
    dgux*)
 
10677
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10678
      hardcode_libdir_flag_spec='-L$libdir'
 
10679
      hardcode_shlibpath_var=no
 
10680
      ;;
 
10681
 
 
10682
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10683
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10684
    # does not break anything, and helps significantly (at the cost of a little
 
10685
    # extra space).
 
10686
    freebsd2.2*)
 
10687
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10688
      hardcode_libdir_flag_spec='-R$libdir'
 
10689
      hardcode_direct=yes
 
10690
      hardcode_shlibpath_var=no
 
10691
      ;;
 
10692
 
 
10693
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10694
    freebsd2.*)
 
10695
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10696
      hardcode_direct=yes
 
10697
      hardcode_minus_L=yes
 
10698
      hardcode_shlibpath_var=no
 
10699
      ;;
 
10700
 
 
10701
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10702
    freebsd* | dragonfly*)
 
10703
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10704
      hardcode_libdir_flag_spec='-R$libdir'
 
10705
      hardcode_direct=yes
 
10706
      hardcode_shlibpath_var=no
 
10707
      ;;
 
10708
 
 
10709
    hpux9*)
 
10710
      if test yes = "$GCC"; then
 
10711
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
10712
      else
 
10713
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
10714
      fi
 
10715
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10716
      hardcode_libdir_separator=:
 
10717
      hardcode_direct=yes
 
10718
 
 
10719
      # hardcode_minus_L: Not really in the search PATH,
 
10720
      # but as the default location of the library.
 
10721
      hardcode_minus_L=yes
 
10722
      export_dynamic_flag_spec='$wl-E'
 
10723
      ;;
 
10724
 
 
10725
    hpux10*)
 
10726
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
10727
        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10728
      else
 
10729
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10730
      fi
 
10731
      if test no = "$with_gnu_ld"; then
 
10732
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10733
        hardcode_libdir_separator=:
 
10734
        hardcode_direct=yes
 
10735
        hardcode_direct_absolute=yes
 
10736
        export_dynamic_flag_spec='$wl-E'
 
10737
        # hardcode_minus_L: Not really in the search PATH,
 
10738
        # but as the default location of the library.
 
10739
        hardcode_minus_L=yes
 
10740
      fi
 
10741
      ;;
 
10742
 
 
10743
    hpux11*)
 
10744
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
10745
        case $host_cpu in
 
10746
        hppa*64*)
 
10747
          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10748
          ;;
 
10749
        ia64*)
 
10750
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10751
          ;;
 
10752
        *)
 
10753
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10754
          ;;
 
10755
        esac
 
10756
      else
 
10757
        case $host_cpu in
 
10758
        hppa*64*)
 
10759
          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10760
          ;;
 
10761
        ia64*)
 
10762
          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10763
          ;;
 
10764
        *)
 
10765
 
 
10766
          # Older versions of the 11.00 compiler do not understand -b yet
 
10767
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10768
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10769
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10770
if ${lt_cv_prog_compiler__b+:} false; then :
 
10771
  $as_echo_n "(cached) " >&6
 
10772
else
 
10773
  lt_cv_prog_compiler__b=no
 
10774
   save_LDFLAGS=$LDFLAGS
 
10775
   LDFLAGS="$LDFLAGS -b"
 
10776
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10777
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10778
     # The linker can only warn and ignore the option if not recognized
 
10779
     # So say no if there are warnings
 
10780
     if test -s conftest.err; then
 
10781
       # Append any errors to the config.log.
 
10782
       cat conftest.err 1>&5
 
10783
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10784
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10785
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10786
         lt_cv_prog_compiler__b=yes
 
10787
       fi
 
10788
     else
 
10789
       lt_cv_prog_compiler__b=yes
 
10790
     fi
 
10791
   fi
 
10792
   $RM -r conftest*
 
10793
   LDFLAGS=$save_LDFLAGS
 
10794
 
 
10795
fi
 
10796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10797
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10798
 
 
10799
if test yes = "$lt_cv_prog_compiler__b"; then
 
10800
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10801
else
 
10802
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10803
fi
 
10804
 
 
10805
          ;;
 
10806
        esac
 
10807
      fi
 
10808
      if test no = "$with_gnu_ld"; then
 
10809
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 
10810
        hardcode_libdir_separator=:
 
10811
 
 
10812
        case $host_cpu in
 
10813
        hppa*64*|ia64*)
 
10814
          hardcode_direct=no
 
10815
          hardcode_shlibpath_var=no
 
10816
          ;;
 
10817
        *)
 
10818
          hardcode_direct=yes
 
10819
          hardcode_direct_absolute=yes
 
10820
          export_dynamic_flag_spec='$wl-E'
 
10821
 
 
10822
          # hardcode_minus_L: Not really in the search PATH,
 
10823
          # but as the default location of the library.
 
10824
          hardcode_minus_L=yes
 
10825
          ;;
 
10826
        esac
 
10827
      fi
 
10828
      ;;
 
10829
 
 
10830
    irix5* | irix6* | nonstopux*)
 
10831
      if test yes = "$GCC"; then
 
10832
        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'
 
10833
        # Try to use the -exported_symbol ld option, if it does not
 
10834
        # work, assume that -exports_file does not work either and
 
10835
        # implicitly export all symbols.
 
10836
        # This should be the same for all languages, so no per-tag cache variable.
 
10837
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10838
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10839
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10840
  $as_echo_n "(cached) " >&6
 
10841
else
 
10842
  save_LDFLAGS=$LDFLAGS
 
10843
           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 
10844
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10845
/* end confdefs.h.  */
 
10846
int foo (void) { return 0; }
 
10847
_ACEOF
 
10848
if ac_fn_c_try_link "$LINENO"; then :
 
10849
  lt_cv_irix_exported_symbol=yes
 
10850
else
 
10851
  lt_cv_irix_exported_symbol=no
 
10852
fi
 
10853
rm -f core conftest.err conftest.$ac_objext \
 
10854
    conftest$ac_exeext conftest.$ac_ext
 
10855
           LDFLAGS=$save_LDFLAGS
 
10856
fi
 
10857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10858
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10859
        if test yes = "$lt_cv_irix_exported_symbol"; then
 
10860
          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'
 
10861
        fi
 
10862
      else
 
10863
        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'
 
10864
        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'
 
10865
      fi
 
10866
      archive_cmds_need_lc='no'
 
10867
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10868
      hardcode_libdir_separator=:
 
10869
      inherit_rpath=yes
 
10870
      link_all_deplibs=yes
 
10871
      ;;
 
10872
 
 
10873
    linux*)
 
10874
      case $cc_basename in
 
10875
      tcc*)
 
10876
        # Fabrice Bellard et al's Tiny C Compiler
 
10877
        ld_shlibs=yes
 
10878
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10879
        ;;
 
10880
      esac
 
10881
      case `$CC -V 2>&1 | sed 5q` in
 
10882
      *Cray\ C* | *Cray\ Fortran*)    # Cray C/C++/Fortran
 
10883
        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'
 
10884
        compiler_needs_object=yes
 
10885
        archive_cmds='save_STRIP=$STRIP; unset STRIP; $CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
 
10886
        ;;
 
10887
      *)
 
10888
        ld_shlibs=no
 
10889
        ;;
 
10890
      esac
 
10891
      ;;
 
10892
 
 
10893
    netbsd*)
 
10894
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10895
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10896
      else
 
10897
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10898
      fi
 
10899
      hardcode_libdir_flag_spec='-R$libdir'
 
10900
      hardcode_direct=yes
 
10901
      hardcode_shlibpath_var=no
 
10902
      ;;
 
10903
 
 
10904
    newsos6)
 
10905
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10906
      hardcode_direct=yes
 
10907
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10908
      hardcode_libdir_separator=:
 
10909
      hardcode_shlibpath_var=no
 
10910
      ;;
 
10911
 
 
10912
    *nto* | *qnx*)
 
10913
      ;;
 
10914
 
 
10915
    openbsd* | bitrig*)
 
10916
      if test -f /usr/libexec/ld.so; then
 
10917
        hardcode_direct=yes
 
10918
        hardcode_shlibpath_var=no
 
10919
        hardcode_direct_absolute=yes
 
10920
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
10921
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10922
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 
10923
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10924
          export_dynamic_flag_spec='$wl-E'
 
10925
        else
 
10926
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10927
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10928
        fi
 
10929
      else
 
10930
        ld_shlibs=no
 
10931
      fi
 
10932
      ;;
 
10933
 
 
10934
    os2*)
 
10935
      hardcode_libdir_flag_spec='-L$libdir'
 
10936
      hardcode_minus_L=yes
 
10937
      allow_undefined_flag=unsupported
 
10938
      shrext_cmds=.dll
 
10939
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10940
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10941
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10942
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10943
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
10944
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10945
        emximp -o $lib $output_objdir/$libname.def'
 
10946
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
10947
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
10948
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
10949
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
10950
        prefix_cmds="$SED"~
 
10951
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
10952
          prefix_cmds="$prefix_cmds -e 1d";
 
10953
        fi~
 
10954
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
10955
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
10956
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
10957
        emximp -o $lib $output_objdir/$libname.def'
 
10958
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
10959
      enable_shared_with_static_runtimes=yes
 
10960
      ;;
 
10961
 
 
10962
    osf3*)
 
10963
      if test yes = "$GCC"; then
 
10964
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
10965
        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'
 
10966
      else
 
10967
        allow_undefined_flag=' -expect_unresolved \*'
 
10968
        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'
 
10969
      fi
 
10970
      archive_cmds_need_lc='no'
 
10971
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10972
      hardcode_libdir_separator=:
 
10973
      ;;
 
10974
 
 
10975
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10976
      if test yes = "$GCC"; then
 
10977
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
10978
        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'
 
10979
        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10980
      else
 
10981
        allow_undefined_flag=' -expect_unresolved \*'
 
10982
        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'
 
10983
        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~
 
10984
          $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'
 
10985
 
 
10986
        # Both c and cxx compiler support -rpath directly
 
10987
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10988
      fi
 
10989
      archive_cmds_need_lc='no'
 
10990
      hardcode_libdir_separator=:
 
10991
      ;;
 
10992
 
 
10993
    solaris*)
 
10994
      no_undefined_flag=' -z defs'
 
10995
      if test yes = "$GCC"; then
 
10996
        wlarc='$wl'
 
10997
        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10998
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10999
          $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'
 
11000
      else
 
11001
        case `$CC -V 2>&1` in
 
11002
        *"Compilers 5.0"*)
 
11003
          wlarc=''
 
11004
          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11005
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11006
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
11007
          ;;
 
11008
        *)
 
11009
          wlarc='$wl'
 
11010
          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11011
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11012
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11013
          ;;
 
11014
        esac
 
11015
      fi
 
11016
      hardcode_libdir_flag_spec='-R$libdir'
 
11017
      hardcode_shlibpath_var=no
 
11018
      case $host_os in
 
11019
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11020
      *)
 
11021
        # The compiler driver will combine and reorder linker options,
 
11022
        # but understands '-z linker_flag'.  GCC discards it without '$wl',
 
11023
        # but is careful enough not to reorder.
 
11024
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11025
        if test yes = "$GCC"; then
 
11026
          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 
11027
        else
 
11028
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
11029
        fi
 
11030
        ;;
 
11031
      esac
 
11032
      link_all_deplibs=yes
 
11033
      ;;
 
11034
 
 
11035
    sunos4*)
 
11036
      if test sequent = "$host_vendor"; then
 
11037
        # Use $CC to link under sequent, because it throws in some extra .o
 
11038
        # files that make .init and .fini sections work.
 
11039
        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11040
      else
 
11041
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
11042
      fi
 
11043
      hardcode_libdir_flag_spec='-L$libdir'
 
11044
      hardcode_direct=yes
 
11045
      hardcode_minus_L=yes
 
11046
      hardcode_shlibpath_var=no
 
11047
      ;;
 
11048
 
 
11049
    sysv4)
 
11050
      case $host_vendor in
 
11051
        sni)
 
11052
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11053
          hardcode_direct=yes # is this really true???
 
11054
        ;;
 
11055
        siemens)
 
11056
          ## LD is ld it makes a PLAMLIB
 
11057
          ## CC just makes a GrossModule.
 
11058
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11059
          reload_cmds='$CC -r -o $output$reload_objs'
 
11060
          hardcode_direct=no
 
11061
        ;;
 
11062
        motorola)
 
11063
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11064
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
11065
        ;;
 
11066
      esac
 
11067
      runpath_var='LD_RUN_PATH'
 
11068
      hardcode_shlibpath_var=no
 
11069
      ;;
 
11070
 
 
11071
    sysv4.3*)
 
11072
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11073
      hardcode_shlibpath_var=no
 
11074
      export_dynamic_flag_spec='-Bexport'
 
11075
      ;;
 
11076
 
 
11077
    sysv4*MP*)
 
11078
      if test -d /usr/nec; then
 
11079
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11080
        hardcode_shlibpath_var=no
 
11081
        runpath_var=LD_RUN_PATH
 
11082
        hardcode_runpath_var=yes
 
11083
        ld_shlibs=yes
 
11084
      fi
 
11085
      ;;
 
11086
 
 
11087
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11088
      no_undefined_flag='$wl-z,text'
 
11089
      archive_cmds_need_lc=no
 
11090
      hardcode_shlibpath_var=no
 
11091
      runpath_var='LD_RUN_PATH'
 
11092
 
 
11093
      if test yes = "$GCC"; then
 
11094
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11095
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11096
      else
 
11097
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11098
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11099
      fi
 
11100
      ;;
 
11101
 
 
11102
    sysv5* | sco3.2v5* | sco5v6*)
 
11103
      # Note: We CANNOT use -z defs as we might desire, because we do not
 
11104
      # link with -lc, and that would cause any symbols used from libc to
 
11105
      # always be unresolved, which means just about no library would
 
11106
      # ever link correctly.  If we're not using GNU ld we use -z text
 
11107
      # though, which does catch some bad symbols but isn't as heavy-handed
 
11108
      # as -z defs.
 
11109
      no_undefined_flag='$wl-z,text'
 
11110
      allow_undefined_flag='$wl-z,nodefs'
 
11111
      archive_cmds_need_lc=no
 
11112
      hardcode_shlibpath_var=no
 
11113
      hardcode_libdir_flag_spec='$wl-R,$libdir'
 
11114
      hardcode_libdir_separator=':'
 
11115
      link_all_deplibs=yes
 
11116
      export_dynamic_flag_spec='$wl-Bexport'
 
11117
      runpath_var='LD_RUN_PATH'
 
11118
 
 
11119
      if test yes = "$GCC"; then
 
11120
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11121
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11122
      else
 
11123
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11124
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11125
      fi
 
11126
      ;;
 
11127
 
 
11128
    uts4*)
 
11129
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11130
      hardcode_libdir_flag_spec='-L$libdir'
 
11131
      hardcode_shlibpath_var=no
 
11132
      ;;
 
11133
 
 
11134
    *)
 
11135
      ld_shlibs=no
 
11136
      ;;
 
11137
    esac
 
11138
 
 
11139
    if test sni = "$host_vendor"; then
 
11140
      case $host in
 
11141
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11142
        export_dynamic_flag_spec='$wl-Blargedynsym'
 
11143
        ;;
 
11144
      esac
 
11145
    fi
 
11146
  fi
 
11147
 
 
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
11149
$as_echo "$ld_shlibs" >&6; }
 
11150
test no = "$ld_shlibs" && can_build_shared=no
 
11151
 
 
11152
with_gnu_ld=$with_gnu_ld
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
#
 
11169
# Do we need to explicitly link libc?
 
11170
#
 
11171
case "x$archive_cmds_need_lc" in
 
11172
x|xyes)
 
11173
  # Assume -lc should be added
 
11174
  archive_cmds_need_lc=yes
 
11175
 
 
11176
  if test yes,yes = "$GCC,$enable_shared"; then
 
11177
    case $archive_cmds in
 
11178
    *'~'*)
 
11179
      # FIXME: we may have to deal with multi-command sequences.
 
11180
      ;;
 
11181
    '$CC '*)
 
11182
      # Test whether the compiler implicitly links with -lc since on some
 
11183
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11184
      # to ld, don't add -lc before -lgcc.
 
11185
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
11186
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
11187
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
11188
  $as_echo_n "(cached) " >&6
 
11189
else
 
11190
  $RM conftest*
 
11191
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11192
 
 
11193
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11194
  (eval $ac_compile) 2>&5
 
11195
  ac_status=$?
 
11196
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11197
  test $ac_status = 0; } 2>conftest.err; then
 
11198
          soname=conftest
 
11199
          lib=conftest
 
11200
          libobjs=conftest.$ac_objext
 
11201
          deplibs=
 
11202
          wl=$lt_prog_compiler_wl
 
11203
          pic_flag=$lt_prog_compiler_pic
 
11204
          compiler_flags=-v
 
11205
          linker_flags=-v
 
11206
          verstring=
 
11207
          output_objdir=.
 
11208
          libname=conftest
 
11209
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
11210
          allow_undefined_flag=
 
11211
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11212
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11213
  ac_status=$?
 
11214
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11215
  test $ac_status = 0; }
 
11216
          then
 
11217
            lt_cv_archive_cmds_need_lc=no
 
11218
          else
 
11219
            lt_cv_archive_cmds_need_lc=yes
 
11220
          fi
 
11221
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
11222
        else
 
11223
          cat conftest.err 1>&5
 
11224
        fi
 
11225
        $RM conftest*
 
11226
 
 
11227
fi
 
11228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
11229
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
11230
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
11231
      ;;
 
11232
    esac
 
11233
  fi
 
11234
  ;;
 
11235
esac
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
 
11255
 
 
11256
 
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
 
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
 
 
11283
 
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
 
 
11294
 
 
11295
 
 
11296
 
 
11297
 
 
11298
 
 
11299
 
 
11300
 
 
11301
 
 
11302
 
 
11303
 
 
11304
 
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
 
 
11323
 
 
11324
 
 
11325
 
 
11326
 
 
11327
 
 
11328
 
 
11329
 
 
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
 
 
11337
 
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
 
11349
 
 
11350
 
 
11351
 
 
11352
 
 
11353
 
 
11354
 
 
11355
 
 
11356
 
 
11357
 
 
11358
 
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11389
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
11390
 
 
11391
if test yes = "$GCC"; then
 
11392
  case $host_os in
 
11393
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 
11394
    *) lt_awk_arg='/^libraries:/' ;;
 
11395
  esac
 
11396
  case $host_os in
 
11397
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
 
11398
    *) lt_sed_strip_eq='s|=/|/|g' ;;
 
11399
  esac
 
11400
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11401
  case $lt_search_path_spec in
 
11402
  *\;*)
 
11403
    # if the path contains ";" then we assume it to be the separator
 
11404
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11405
    # assumed that no part of a normal pathname contains ";" but that should
 
11406
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11407
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11408
    ;;
 
11409
  *)
 
11410
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11411
    ;;
 
11412
  esac
 
11413
  # Ok, now we have the path, separated by spaces, we can step through it
 
11414
  # and add multilib dir if necessary...
 
11415
  lt_tmp_lt_search_path_spec=
 
11416
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11417
  # ...but if some path component already ends with the multilib dir we assume
 
11418
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 
11419
  case "$lt_multi_os_dir; $lt_search_path_spec " in
 
11420
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 
11421
    lt_multi_os_dir=
 
11422
    ;;
 
11423
  esac
 
11424
  for lt_sys_path in $lt_search_path_spec; do
 
11425
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
 
11426
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 
11427
    elif test -n "$lt_multi_os_dir"; then
 
11428
      test -d "$lt_sys_path" && \
 
11429
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11430
    fi
 
11431
  done
 
11432
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
11433
BEGIN {RS = " "; FS = "/|\n";} {
 
11434
  lt_foo = "";
 
11435
  lt_count = 0;
 
11436
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11437
    if ($lt_i != "" && $lt_i != ".") {
 
11438
      if ($lt_i == "..") {
 
11439
        lt_count++;
 
11440
      } else {
 
11441
        if (lt_count == 0) {
 
11442
          lt_foo = "/" $lt_i lt_foo;
 
11443
        } else {
 
11444
          lt_count--;
 
11445
        }
 
11446
      }
 
11447
    }
 
11448
  }
 
11449
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11450
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11451
}'`
 
11452
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11453
  # for these hosts.
 
11454
  case $host_os in
 
11455
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11456
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
 
11457
  esac
 
11458
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
11459
else
 
11460
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11461
fi
 
11462
library_names_spec=
 
11463
libname_spec='lib$name'
 
11464
soname_spec=
 
11465
shrext_cmds=.so
 
11466
postinstall_cmds=
 
11467
postuninstall_cmds=
 
11468
finish_cmds=
 
11469
finish_eval=
 
11470
shlibpath_var=
 
11471
shlibpath_overrides_runpath=unknown
 
11472
version_type=none
 
11473
dynamic_linker="$host_os ld.so"
 
11474
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11475
need_lib_prefix=unknown
 
11476
hardcode_into_libs=no
 
11477
 
 
11478
# when you set need_version to no, make sure it does not cause -set_version
 
11479
# flags to be left without arguments
 
11480
need_version=unknown
 
11481
 
 
11482
 
 
11483
 
 
11484
case $host_os in
 
11485
aix3*)
 
11486
  version_type=linux # correct to gnu/linux during the next big refactor
 
11487
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 
11488
  shlibpath_var=LIBPATH
 
11489
 
 
11490
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11491
  soname_spec='$libname$release$shared_ext$major'
 
11492
  ;;
 
11493
 
 
11494
aix[4-9]*)
 
11495
  version_type=linux # correct to gnu/linux during the next big refactor
 
11496
  need_lib_prefix=no
 
11497
  need_version=no
 
11498
  hardcode_into_libs=yes
 
11499
  if test ia64 = "$host_cpu"; then
 
11500
    # AIX 5 supports IA64
 
11501
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 
11502
    shlibpath_var=LD_LIBRARY_PATH
 
11503
  else
 
11504
    # With GCC up to 2.95.x, collect2 would create an import file
 
11505
    # for dependence libraries.  The import file would start with
 
11506
    # the line '#! .'.  This would cause the generated library to
 
11507
    # depend on '.', always an invalid library.  This was fixed in
 
11508
    # development snapshots of GCC prior to 3.0.
 
11509
    case $host_os in
 
11510
      aix4 | aix4.[01] | aix4.[01].*)
 
11511
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11512
           echo ' yes '
 
11513
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 
11514
        :
 
11515
      else
 
11516
        can_build_shared=no
 
11517
      fi
 
11518
      ;;
 
11519
    esac
 
11520
    # Using Import Files as archive members, it is possible to support
 
11521
    # filename-based versioning of shared library archives on AIX. While
 
11522
    # this would work for both with and without runtime linking, it will
 
11523
    # prevent static linking of such archives. So we do filename-based
 
11524
    # shared library versioning with .so extension only, which is used
 
11525
    # when both runtime linking and shared linking is enabled.
 
11526
    # Unfortunately, runtime linking may impact performance, so we do
 
11527
    # not want this to be the default eventually. Also, we use the
 
11528
    # versioned .so libs for executables only if there is the -brtl
 
11529
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 
11530
    # To allow for filename-based versioning support, we need to create
 
11531
    # libNAME.so.V as an archive file, containing:
 
11532
    # *) an Import File, referring to the versioned filename of the
 
11533
    #    archive as well as the shared archive member, telling the
 
11534
    #    bitwidth (32 or 64) of that shared object, and providing the
 
11535
    #    list of exported symbols of that shared object, eventually
 
11536
    #    decorated with the 'weak' keyword
 
11537
    # *) the shared object with the F_LOADONLY flag set, to really avoid
 
11538
    #    it being seen by the linker.
 
11539
    # At run time we better use the real file rather than another symlink,
 
11540
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
 
11541
 
 
11542
    case $with_aix_soname,$aix_use_runtimelinking in
 
11543
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 
11544
    # soname into executable. Probably we can add versioning support to
 
11545
    # collect2, so additional links can be useful in future.
 
11546
    aix,yes) # traditional libtool
 
11547
      dynamic_linker='AIX unversionable lib.so'
 
11548
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11549
      # instead of lib<name>.a to let people know that these are not
 
11550
      # typical AIX shared libraries.
 
11551
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11552
      ;;
 
11553
    aix,no) # traditional AIX only
 
11554
      dynamic_linker='AIX lib.a(lib.so.V)'
 
11555
      # We preserve .a as extension for shared libraries through AIX4.2
 
11556
      # and later when we are not doing run time linking.
 
11557
      library_names_spec='$libname$release.a $libname.a'
 
11558
      soname_spec='$libname$release$shared_ext$major'
 
11559
      ;;
 
11560
    svr4,*) # full svr4 only
 
11561
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
 
11562
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
11563
      # We do not specify a path in Import Files, so LIBPATH fires.
 
11564
      shlibpath_overrides_runpath=yes
 
11565
      ;;
 
11566
    *,yes) # both, prefer svr4
 
11567
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
 
11568
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
11569
      # unpreferred sharedlib libNAME.a needs extra handling
 
11570
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 
11571
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 
11572
      # We do not specify a path in Import Files, so LIBPATH fires.
 
11573
      shlibpath_overrides_runpath=yes
 
11574
      ;;
 
11575
    *,no) # both, prefer aix
 
11576
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
 
11577
      library_names_spec='$libname$release.a $libname.a'
 
11578
      soname_spec='$libname$release$shared_ext$major'
 
11579
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 
11580
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 
11581
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 
11582
      ;;
 
11583
    esac
 
11584
    shlibpath_var=LIBPATH
 
11585
  fi
 
11586
  ;;
 
11587
 
 
11588
amigaos*)
 
11589
  case $host_cpu in
 
11590
  powerpc)
 
11591
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11592
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11593
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11594
    ;;
 
11595
  m68k)
 
11596
    library_names_spec='$libname.ixlibrary $libname.a'
 
11597
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11598
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
 
11599
    ;;
 
11600
  esac
 
11601
  ;;
 
11602
 
 
11603
beos*)
 
11604
  library_names_spec='$libname$shared_ext'
 
11605
  dynamic_linker="$host_os ld.so"
 
11606
  shlibpath_var=LIBRARY_PATH
 
11607
  ;;
 
11608
 
 
11609
bsdi[45]*)
 
11610
  version_type=linux # correct to gnu/linux during the next big refactor
 
11611
  need_version=no
 
11612
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11613
  soname_spec='$libname$release$shared_ext$major'
 
11614
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11615
  shlibpath_var=LD_LIBRARY_PATH
 
11616
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11617
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11618
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11619
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11620
  # libtool to hard-code these into programs
 
11621
  ;;
 
11622
 
 
11623
cygwin* | mingw* | pw32* | cegcc*)
 
11624
  version_type=windows
 
11625
  shrext_cmds=.dll
 
11626
  need_version=no
 
11627
  need_lib_prefix=no
 
11628
 
 
11629
  case $GCC,$cc_basename in
 
11630
  yes,*)
 
11631
    # gcc
 
11632
    library_names_spec='$libname.dll.a'
 
11633
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11634
    postinstall_cmds='base_file=`basename \$file`~
 
11635
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
11636
      dldir=$destdir/`dirname \$dlpath`~
 
11637
      test -d \$dldir || mkdir -p \$dldir~
 
11638
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11639
      chmod a+x \$dldir/$dlname~
 
11640
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11641
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11642
      fi'
 
11643
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11644
      dlpath=$dir/\$dldll~
 
11645
       $RM \$dlpath'
 
11646
    shlibpath_overrides_runpath=yes
 
11647
 
 
11648
    case $host_os in
 
11649
    cygwin*)
 
11650
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11651
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11652
 
 
11653
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11654
      ;;
 
11655
    mingw* | cegcc*)
 
11656
      # MinGW DLLs use traditional 'lib' prefix
 
11657
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11658
      ;;
 
11659
    pw32*)
 
11660
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11661
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11662
      ;;
 
11663
    esac
 
11664
    dynamic_linker='Win32 ld.exe'
 
11665
    ;;
 
11666
 
 
11667
  *,cl*)
 
11668
    # Native MSVC
 
11669
    libname_spec='$name'
 
11670
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
11671
    library_names_spec='$libname.dll.lib'
 
11672
 
 
11673
    case $build_os in
 
11674
    mingw*)
 
11675
      sys_lib_search_path_spec=
 
11676
      lt_save_ifs=$IFS
 
11677
      IFS=';'
 
11678
      for lt_path in $LIB
 
11679
      do
 
11680
        IFS=$lt_save_ifs
 
11681
        # Let DOS variable expansion print the short 8.3 style file name.
 
11682
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11683
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11684
      done
 
11685
      IFS=$lt_save_ifs
 
11686
      # Convert to MSYS style.
 
11687
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11688
      ;;
 
11689
    cygwin*)
 
11690
      # Convert to unix form, then to dos form, then back to unix form
 
11691
      # but this time dos style (no spaces!) so that the unix form looks
 
11692
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11693
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11694
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11695
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11696
      ;;
 
11697
    *)
 
11698
      sys_lib_search_path_spec=$LIB
 
11699
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11700
        # It is most probably a Windows format PATH.
 
11701
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11702
      else
 
11703
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11704
      fi
 
11705
      # FIXME: find the short name or the path components, as spaces are
 
11706
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11707
      ;;
 
11708
    esac
 
11709
 
 
11710
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11711
    postinstall_cmds='base_file=`basename \$file`~
 
11712
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
11713
      dldir=$destdir/`dirname \$dlpath`~
 
11714
      test -d \$dldir || mkdir -p \$dldir~
 
11715
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11716
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11717
      dlpath=$dir/\$dldll~
 
11718
       $RM \$dlpath'
 
11719
    shlibpath_overrides_runpath=yes
 
11720
    dynamic_linker='Win32 link.exe'
 
11721
    ;;
 
11722
 
 
11723
  *)
 
11724
    # Assume MSVC wrapper
 
11725
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 
11726
    dynamic_linker='Win32 ld.exe'
 
11727
    ;;
 
11728
  esac
 
11729
  # FIXME: first we should search . and the directory the executable is in
 
11730
  shlibpath_var=PATH
 
11731
  ;;
 
11732
 
 
11733
darwin* | rhapsody*)
 
11734
  dynamic_linker="$host_os dyld"
 
11735
  version_type=darwin
 
11736
  need_lib_prefix=no
 
11737
  need_version=no
 
11738
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
11739
  soname_spec='$libname$release$major$shared_ext'
 
11740
  shlibpath_overrides_runpath=yes
 
11741
  shlibpath_var=DYLD_LIBRARY_PATH
 
11742
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11743
 
 
11744
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11745
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11746
  ;;
 
11747
 
 
11748
dgux*)
 
11749
  version_type=linux # correct to gnu/linux during the next big refactor
 
11750
  need_lib_prefix=no
 
11751
  need_version=no
 
11752
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11753
  soname_spec='$libname$release$shared_ext$major'
 
11754
  shlibpath_var=LD_LIBRARY_PATH
 
11755
  ;;
 
11756
 
 
11757
freebsd* | dragonfly*)
 
11758
  # DragonFly does not have aout.  When/if they implement a new
 
11759
  # versioning mechanism, adjust this.
 
11760
  if test -x /usr/bin/objformat; then
 
11761
    objformat=`/usr/bin/objformat`
 
11762
  else
 
11763
    case $host_os in
 
11764
    freebsd[23].*) objformat=aout ;;
 
11765
    *) objformat=elf ;;
 
11766
    esac
 
11767
  fi
 
11768
  version_type=freebsd-$objformat
 
11769
  case $version_type in
 
11770
    freebsd-elf*)
 
11771
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11772
      soname_spec='$libname$release$shared_ext$major'
 
11773
      need_version=no
 
11774
      need_lib_prefix=no
 
11775
      ;;
 
11776
    freebsd-*)
 
11777
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
11778
      need_version=yes
 
11779
      ;;
 
11780
  esac
 
11781
  shlibpath_var=LD_LIBRARY_PATH
 
11782
  case $host_os in
 
11783
  freebsd2.*)
 
11784
    shlibpath_overrides_runpath=yes
 
11785
    ;;
 
11786
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11787
    shlibpath_overrides_runpath=yes
 
11788
    hardcode_into_libs=yes
 
11789
    ;;
 
11790
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11791
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11792
    shlibpath_overrides_runpath=no
 
11793
    hardcode_into_libs=yes
 
11794
    ;;
 
11795
  *) # from 4.6 on, and DragonFly
 
11796
    shlibpath_overrides_runpath=yes
 
11797
    hardcode_into_libs=yes
 
11798
    ;;
 
11799
  esac
 
11800
  ;;
 
11801
 
 
11802
haiku*)
 
11803
  version_type=linux # correct to gnu/linux during the next big refactor
 
11804
  need_lib_prefix=no
 
11805
  need_version=no
 
11806
  dynamic_linker="$host_os runtime_loader"
 
11807
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11808
  soname_spec='$libname$release$shared_ext$major'
 
11809
  shlibpath_var=LIBRARY_PATH
 
11810
  shlibpath_overrides_runpath=no
 
11811
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11812
  hardcode_into_libs=yes
 
11813
  ;;
 
11814
 
 
11815
hpux9* | hpux10* | hpux11*)
 
11816
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11817
  # link against other versions.
 
11818
  version_type=sunos
 
11819
  need_lib_prefix=no
 
11820
  need_version=no
 
11821
  case $host_cpu in
 
11822
  ia64*)
 
11823
    shrext_cmds='.so'
 
11824
    hardcode_into_libs=yes
 
11825
    dynamic_linker="$host_os dld.so"
 
11826
    shlibpath_var=LD_LIBRARY_PATH
 
11827
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11828
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11829
    soname_spec='$libname$release$shared_ext$major'
 
11830
    if test 32 = "$HPUX_IA64_MODE"; then
 
11831
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11832
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 
11833
    else
 
11834
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11835
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 
11836
    fi
 
11837
    ;;
 
11838
  hppa*64*)
 
11839
    shrext_cmds='.sl'
 
11840
    hardcode_into_libs=yes
 
11841
    dynamic_linker="$host_os dld.sl"
 
11842
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11843
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11844
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11845
    soname_spec='$libname$release$shared_ext$major'
 
11846
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11847
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11848
    ;;
 
11849
  *)
 
11850
    shrext_cmds='.sl'
 
11851
    dynamic_linker="$host_os dld.sl"
 
11852
    shlibpath_var=SHLIB_PATH
 
11853
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11854
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11855
    soname_spec='$libname$release$shared_ext$major'
 
11856
    ;;
 
11857
  esac
 
11858
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11859
  postinstall_cmds='chmod 555 $lib'
 
11860
  # or fails outright, so override atomically:
 
11861
  install_override_mode=555
 
11862
  ;;
 
11863
 
 
11864
interix[3-9]*)
 
11865
  version_type=linux # correct to gnu/linux during the next big refactor
 
11866
  need_lib_prefix=no
 
11867
  need_version=no
 
11868
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11869
  soname_spec='$libname$release$shared_ext$major'
 
11870
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11871
  shlibpath_var=LD_LIBRARY_PATH
 
11872
  shlibpath_overrides_runpath=no
 
11873
  hardcode_into_libs=yes
 
11874
  ;;
 
11875
 
 
11876
irix5* | irix6* | nonstopux*)
 
11877
  case $host_os in
 
11878
    nonstopux*) version_type=nonstopux ;;
 
11879
    *)
 
11880
        if test yes = "$lt_cv_prog_gnu_ld"; then
 
11881
                version_type=linux # correct to gnu/linux during the next big refactor
 
11882
        else
 
11883
                version_type=irix
 
11884
        fi ;;
 
11885
  esac
 
11886
  need_lib_prefix=no
 
11887
  need_version=no
 
11888
  soname_spec='$libname$release$shared_ext$major'
 
11889
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 
11890
  case $host_os in
 
11891
  irix5* | nonstopux*)
 
11892
    libsuff= shlibsuff=
 
11893
    ;;
 
11894
  *)
 
11895
    case $LD in # libtool.m4 will add one of these switches to LD
 
11896
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11897
      libsuff= shlibsuff= libmagic=32-bit;;
 
11898
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11899
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11900
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11901
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11902
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11903
    esac
 
11904
    ;;
 
11905
  esac
 
11906
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11907
  shlibpath_overrides_runpath=no
 
11908
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
11909
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 
11910
  hardcode_into_libs=yes
 
11911
  ;;
 
11912
 
 
11913
# No shared lib support for Linux oldld, aout, or coff.
 
11914
linux*oldld* | linux*aout* | linux*coff*)
 
11915
  dynamic_linker=no
 
11916
  ;;
 
11917
 
 
11918
linux*android*)
 
11919
  version_type=none # Android doesn't support versioned libraries.
 
11920
  need_lib_prefix=no
 
11921
  need_version=no
 
11922
  library_names_spec='$libname$release$shared_ext'
 
11923
  soname_spec='$libname$release$shared_ext'
 
11924
  finish_cmds=
 
11925
  shlibpath_var=LD_LIBRARY_PATH
 
11926
  shlibpath_overrides_runpath=yes
 
11927
 
 
11928
  # This implies no fast_install, which is unacceptable.
 
11929
  # Some rework will be needed to allow for fast_install
 
11930
  # before this can be enabled.
 
11931
  hardcode_into_libs=yes
 
11932
 
 
11933
  dynamic_linker='Android linker'
 
11934
  # Don't embed -rpath directories since the linker doesn't support them.
 
11935
  hardcode_libdir_flag_spec='-L$libdir'
 
11936
  ;;
 
11937
 
 
11938
# This must be glibc/ELF.
 
11939
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11940
  version_type=linux # correct to gnu/linux during the next big refactor
 
11941
  need_lib_prefix=no
 
11942
  need_version=no
 
11943
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
11944
  soname_spec='$libname$release$shared_ext$major'
 
11945
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11946
  shlibpath_var=LD_LIBRARY_PATH
 
11947
  shlibpath_overrides_runpath=no
 
11948
 
 
11949
  # Some binutils ld are patched to set DT_RUNPATH
 
11950
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11951
  $as_echo_n "(cached) " >&6
 
11952
else
 
11953
  lt_cv_shlibpath_overrides_runpath=no
 
11954
    save_LDFLAGS=$LDFLAGS
 
11955
    save_libdir=$libdir
 
11956
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11957
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11958
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11959
/* end confdefs.h.  */
 
11960
 
 
11961
int
 
11962
main ()
 
11963
{
 
11964
 
 
11965
  ;
 
11966
  return 0;
 
11967
}
 
11968
_ACEOF
 
11969
if ac_fn_c_try_link "$LINENO"; then :
 
11970
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11971
  lt_cv_shlibpath_overrides_runpath=yes
 
11972
fi
 
11973
fi
 
11974
rm -f core conftest.err conftest.$ac_objext \
 
11975
    conftest$ac_exeext conftest.$ac_ext
 
11976
    LDFLAGS=$save_LDFLAGS
 
11977
    libdir=$save_libdir
 
11978
 
 
11979
fi
 
11980
 
 
11981
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11982
 
 
11983
  # This implies no fast_install, which is unacceptable.
 
11984
  # Some rework will be needed to allow for fast_install
 
11985
  # before this can be enabled.
 
11986
  hardcode_into_libs=yes
 
11987
 
 
11988
  # Ideally, we could use ldconfig to report *all* directores which are
 
11989
  # searched for libraries, however this is still not possible.  Aside from not
 
11990
  # being certain /sbin/ldconfig is available, command
 
11991
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 
11992
  # even though it is searched at run-time.  Try to do the best guess by
 
11993
  # appending ld.so.conf contents (and includes) to the search path.
 
11994
  if test -f /etc/ld.so.conf; then
 
11995
    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' ' '`
 
11996
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11997
  fi
 
11998
 
 
11999
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12000
  # powerpc, because MkLinux only supported shared libraries with the
 
12001
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12002
  # most powerpc-linux boxes support dynamic linking these days and
 
12003
  # people can always --disable-shared, the test was removed, and we
 
12004
  # assume the GNU/Linux dynamic linker is in use.
 
12005
  dynamic_linker='GNU/Linux ld.so'
 
12006
  ;;
 
12007
 
 
12008
netbsd*)
 
12009
  version_type=sunos
 
12010
  need_lib_prefix=no
 
12011
  need_version=no
 
12012
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12013
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
12014
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12015
    dynamic_linker='NetBSD (a.out) ld.so'
 
12016
  else
 
12017
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12018
    soname_spec='$libname$release$shared_ext$major'
 
12019
    dynamic_linker='NetBSD ld.elf_so'
 
12020
  fi
 
12021
  shlibpath_var=LD_LIBRARY_PATH
 
12022
  shlibpath_overrides_runpath=yes
 
12023
  hardcode_into_libs=yes
 
12024
  ;;
 
12025
 
 
12026
newsos6)
 
12027
  version_type=linux # correct to gnu/linux during the next big refactor
 
12028
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12029
  shlibpath_var=LD_LIBRARY_PATH
 
12030
  shlibpath_overrides_runpath=yes
 
12031
  ;;
 
12032
 
 
12033
*nto* | *qnx*)
 
12034
  version_type=qnx
 
12035
  need_lib_prefix=no
 
12036
  need_version=no
 
12037
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12038
  soname_spec='$libname$release$shared_ext$major'
 
12039
  shlibpath_var=LD_LIBRARY_PATH
 
12040
  shlibpath_overrides_runpath=no
 
12041
  hardcode_into_libs=yes
 
12042
  dynamic_linker='ldqnx.so'
 
12043
  ;;
 
12044
 
 
12045
openbsd* | bitrig*)
 
12046
  version_type=sunos
 
12047
  sys_lib_dlsearch_path_spec=/usr/lib
 
12048
  need_lib_prefix=no
 
12049
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
12050
    need_version=no
 
12051
  else
 
12052
    need_version=yes
 
12053
  fi
 
12054
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
12055
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12056
  shlibpath_var=LD_LIBRARY_PATH
 
12057
  shlibpath_overrides_runpath=yes
 
12058
  ;;
 
12059
 
 
12060
os2*)
 
12061
  libname_spec='$name'
 
12062
  version_type=windows
 
12063
  shrext_cmds=.dll
 
12064
  need_version=no
 
12065
  need_lib_prefix=no
 
12066
  # OS/2 can only load a DLL with a base name of 8 characters or less.
 
12067
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 
12068
    v=$($ECHO $release$versuffix | tr -d .-);
 
12069
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 
12070
    $ECHO $n$v`$shared_ext'
 
12071
  library_names_spec='${libname}_dll.$libext'
 
12072
  dynamic_linker='OS/2 ld.exe'
 
12073
  shlibpath_var=BEGINLIBPATH
 
12074
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12075
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12076
  postinstall_cmds='base_file=`basename \$file`~
 
12077
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 
12078
    dldir=$destdir/`dirname \$dlpath`~
 
12079
    test -d \$dldir || mkdir -p \$dldir~
 
12080
    $install_prog $dir/$dlname \$dldir/$dlname~
 
12081
    chmod a+x \$dldir/$dlname~
 
12082
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
12083
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
12084
    fi'
 
12085
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 
12086
    dlpath=$dir/\$dldll~
 
12087
    $RM \$dlpath'
 
12088
  ;;
 
12089
 
 
12090
osf3* | osf4* | osf5*)
 
12091
  version_type=osf
 
12092
  need_lib_prefix=no
 
12093
  need_version=no
 
12094
  soname_spec='$libname$release$shared_ext$major'
 
12095
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12096
  shlibpath_var=LD_LIBRARY_PATH
 
12097
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12098
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12099
  ;;
 
12100
 
 
12101
rdos*)
 
12102
  dynamic_linker=no
 
12103
  ;;
 
12104
 
 
12105
solaris*)
 
12106
  version_type=linux # correct to gnu/linux during the next big refactor
 
12107
  need_lib_prefix=no
 
12108
  need_version=no
 
12109
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12110
  soname_spec='$libname$release$shared_ext$major'
 
12111
  shlibpath_var=LD_LIBRARY_PATH
 
12112
  shlibpath_overrides_runpath=yes
 
12113
  hardcode_into_libs=yes
 
12114
  # ldd complains unless libraries are executable
 
12115
  postinstall_cmds='chmod +x $lib'
 
12116
  ;;
 
12117
 
 
12118
sunos4*)
 
12119
  version_type=sunos
 
12120
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
12121
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12122
  shlibpath_var=LD_LIBRARY_PATH
 
12123
  shlibpath_overrides_runpath=yes
 
12124
  if test yes = "$with_gnu_ld"; then
 
12125
    need_lib_prefix=no
 
12126
  fi
 
12127
  need_version=yes
 
12128
  ;;
 
12129
 
 
12130
sysv4 | sysv4.3*)
 
12131
  version_type=linux # correct to gnu/linux during the next big refactor
 
12132
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12133
  soname_spec='$libname$release$shared_ext$major'
 
12134
  shlibpath_var=LD_LIBRARY_PATH
 
12135
  case $host_vendor in
 
12136
    sni)
 
12137
      shlibpath_overrides_runpath=no
 
12138
      need_lib_prefix=no
 
12139
      runpath_var=LD_RUN_PATH
 
12140
      ;;
 
12141
    siemens)
 
12142
      need_lib_prefix=no
 
12143
      ;;
 
12144
    motorola)
 
12145
      need_lib_prefix=no
 
12146
      need_version=no
 
12147
      shlibpath_overrides_runpath=no
 
12148
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12149
      ;;
 
12150
  esac
 
12151
  ;;
 
12152
 
 
12153
sysv4*MP*)
 
12154
  if test -d /usr/nec; then
 
12155
    version_type=linux # correct to gnu/linux during the next big refactor
 
12156
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
12157
    soname_spec='$libname$shared_ext.$major'
 
12158
    shlibpath_var=LD_LIBRARY_PATH
 
12159
  fi
 
12160
  ;;
 
12161
 
 
12162
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12163
  version_type=sco
 
12164
  need_lib_prefix=no
 
12165
  need_version=no
 
12166
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
12167
  soname_spec='$libname$release$shared_ext$major'
 
12168
  shlibpath_var=LD_LIBRARY_PATH
 
12169
  shlibpath_overrides_runpath=yes
 
12170
  hardcode_into_libs=yes
 
12171
  if test yes = "$with_gnu_ld"; then
 
12172
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12173
  else
 
12174
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12175
    case $host_os in
 
12176
      sco3.2v5*)
 
12177
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12178
        ;;
 
12179
    esac
 
12180
  fi
 
12181
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12182
  ;;
 
12183
 
 
12184
tpf*)
 
12185
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
12186
  version_type=linux # correct to gnu/linux during the next big refactor
 
12187
  need_lib_prefix=no
 
12188
  need_version=no
 
12189
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12190
  shlibpath_var=LD_LIBRARY_PATH
 
12191
  shlibpath_overrides_runpath=no
 
12192
  hardcode_into_libs=yes
 
12193
  ;;
 
12194
 
 
12195
uts4*)
 
12196
  version_type=linux # correct to gnu/linux during the next big refactor
 
12197
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12198
  soname_spec='$libname$release$shared_ext$major'
 
12199
  shlibpath_var=LD_LIBRARY_PATH
 
12200
  ;;
 
12201
 
 
12202
*)
 
12203
  dynamic_linker=no
 
12204
  ;;
 
12205
esac
 
12206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
12207
$as_echo "$dynamic_linker" >&6; }
 
12208
test no = "$dynamic_linker" && can_build_shared=no
 
12209
 
 
12210
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12211
if test yes = "$GCC"; then
 
12212
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12213
fi
 
12214
 
 
12215
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
12216
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 
12217
fi
 
12218
 
 
12219
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
12220
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 
12221
fi
 
12222
 
 
12223
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 
12224
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 
12225
 
 
12226
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 
12227
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 
12228
 
 
12229
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 
12230
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 
12231
 
 
12232
 
 
12233
 
 
12234
 
 
12235
 
 
12236
 
 
12237
 
 
12238
 
 
12239
 
 
12240
 
 
12241
 
 
12242
 
 
12243
 
 
12244
 
 
12245
 
 
12246
 
 
12247
 
 
12248
 
 
12249
 
 
12250
 
 
12251
 
 
12252
 
 
12253
 
 
12254
 
 
12255
 
 
12256
 
 
12257
 
 
12258
 
 
12259
 
 
12260
 
 
12261
 
 
12262
 
 
12263
 
 
12264
 
 
12265
 
 
12266
 
 
12267
 
 
12268
 
 
12269
 
 
12270
 
 
12271
 
 
12272
 
 
12273
 
 
12274
 
 
12275
 
 
12276
 
 
12277
 
 
12278
 
 
12279
 
 
12280
 
 
12281
 
 
12282
 
 
12283
 
 
12284
 
 
12285
 
 
12286
 
 
12287
 
 
12288
 
 
12289
 
 
12290
 
 
12291
 
 
12292
 
 
12293
 
 
12294
 
 
12295
 
 
12296
 
 
12297
 
 
12298
 
 
12299
 
 
12300
 
 
12301
 
 
12302
 
 
12303
 
 
12304
 
 
12305
 
 
12306
 
 
12307
 
 
12308
 
 
12309
 
 
12310
 
 
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
 
12316
 
 
12317
 
 
12318
 
 
12319
 
 
12320
 
 
12321
 
 
12322
 
 
12323
 
 
12324
 
 
12325
 
 
12326
 
 
12327
 
 
12328
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
12329
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
12330
hardcode_action=
 
12331
if test -n "$hardcode_libdir_flag_spec" ||
 
12332
   test -n "$runpath_var" ||
 
12333
   test yes = "$hardcode_automatic"; then
 
12334
 
 
12335
  # We can hardcode non-existent directories.
 
12336
  if test no != "$hardcode_direct" &&
 
12337
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12338
     # have to relink, otherwise we might link with an installed library
 
12339
     # when we should be linking with a yet-to-be-installed one
 
12340
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
 
12341
     test no != "$hardcode_minus_L"; then
 
12342
    # Linking always hardcodes the temporary library directory.
 
12343
    hardcode_action=relink
 
12344
  else
 
12345
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12346
    hardcode_action=immediate
 
12347
  fi
 
12348
else
 
12349
  # We cannot hardcode anything, or else we can only hardcode existing
 
12350
  # directories.
 
12351
  hardcode_action=unsupported
 
12352
fi
 
12353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
12354
$as_echo "$hardcode_action" >&6; }
 
12355
 
 
12356
if test relink = "$hardcode_action" ||
 
12357
   test yes = "$inherit_rpath"; then
 
12358
  # Fast installation is not supported
 
12359
  enable_fast_install=no
 
12360
elif test yes = "$shlibpath_overrides_runpath" ||
 
12361
     test no = "$enable_shared"; then
 
12362
  # Fast installation is not necessary
 
12363
  enable_fast_install=needless
 
12364
fi
 
12365
 
 
12366
 
 
12367
 
 
12368
 
 
12369
 
 
12370
 
 
12371
  if test yes != "$enable_dlopen"; then
 
12372
  enable_dlopen=unknown
 
12373
  enable_dlopen_self=unknown
 
12374
  enable_dlopen_self_static=unknown
 
12375
else
 
12376
  lt_cv_dlopen=no
 
12377
  lt_cv_dlopen_libs=
 
12378
 
 
12379
  case $host_os in
 
12380
  beos*)
 
12381
    lt_cv_dlopen=load_add_on
 
12382
    lt_cv_dlopen_libs=
 
12383
    lt_cv_dlopen_self=yes
 
12384
    ;;
 
12385
 
 
12386
  mingw* | pw32* | cegcc*)
 
12387
    lt_cv_dlopen=LoadLibrary
 
12388
    lt_cv_dlopen_libs=
 
12389
    ;;
 
12390
 
 
12391
  cygwin*)
 
12392
    lt_cv_dlopen=dlopen
 
12393
    lt_cv_dlopen_libs=
 
12394
    ;;
 
12395
 
 
12396
  darwin*)
 
12397
    # if libdl is installed we need to link against it
 
12398
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12399
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12400
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12401
  $as_echo_n "(cached) " >&6
 
12402
else
 
12403
  ac_check_lib_save_LIBS=$LIBS
 
12404
LIBS="-ldl  $LIBS"
 
12405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12406
/* end confdefs.h.  */
 
12407
 
 
12408
/* Override any GCC internal prototype to avoid an error.
 
12409
   Use char because int might match the return type of a GCC
 
12410
   builtin and then its argument prototype would still apply.  */
 
12411
#ifdef __cplusplus
 
12412
extern "C"
 
12413
#endif
 
12414
char dlopen ();
 
12415
int
 
12416
main ()
 
12417
{
 
12418
return dlopen ();
 
12419
  ;
 
12420
  return 0;
 
12421
}
 
12422
_ACEOF
 
12423
if ac_fn_c_try_link "$LINENO"; then :
 
12424
  ac_cv_lib_dl_dlopen=yes
 
12425
else
 
12426
  ac_cv_lib_dl_dlopen=no
 
12427
fi
 
12428
rm -f core conftest.err conftest.$ac_objext \
 
12429
    conftest$ac_exeext conftest.$ac_ext
 
12430
LIBS=$ac_check_lib_save_LIBS
 
12431
fi
 
12432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12433
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12434
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12435
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
12436
else
 
12437
 
 
12438
    lt_cv_dlopen=dyld
 
12439
    lt_cv_dlopen_libs=
 
12440
    lt_cv_dlopen_self=yes
 
12441
 
 
12442
fi
 
12443
 
 
12444
    ;;
 
12445
 
 
12446
  tpf*)
 
12447
    # Don't try to run any link tests for TPF.  We know it's impossible
 
12448
    # because TPF is a cross-compiler, and we know how we open DSOs.
 
12449
    lt_cv_dlopen=dlopen
 
12450
    lt_cv_dlopen_libs=
 
12451
    lt_cv_dlopen_self=no
 
12452
    ;;
 
12453
 
 
12454
  *)
 
12455
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12456
if test "x$ac_cv_func_shl_load" = xyes; then :
 
12457
  lt_cv_dlopen=shl_load
 
12458
else
 
12459
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12460
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12461
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
12462
  $as_echo_n "(cached) " >&6
 
12463
else
 
12464
  ac_check_lib_save_LIBS=$LIBS
 
12465
LIBS="-ldld  $LIBS"
 
12466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12467
/* end confdefs.h.  */
 
12468
 
 
12469
/* Override any GCC internal prototype to avoid an error.
 
12470
   Use char because int might match the return type of a GCC
 
12471
   builtin and then its argument prototype would still apply.  */
 
12472
#ifdef __cplusplus
 
12473
extern "C"
 
12474
#endif
 
12475
char shl_load ();
 
12476
int
 
12477
main ()
 
12478
{
 
12479
return shl_load ();
 
12480
  ;
 
12481
  return 0;
 
12482
}
 
12483
_ACEOF
 
12484
if ac_fn_c_try_link "$LINENO"; then :
 
12485
  ac_cv_lib_dld_shl_load=yes
 
12486
else
 
12487
  ac_cv_lib_dld_shl_load=no
 
12488
fi
 
12489
rm -f core conftest.err conftest.$ac_objext \
 
12490
    conftest$ac_exeext conftest.$ac_ext
 
12491
LIBS=$ac_check_lib_save_LIBS
 
12492
fi
 
12493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12494
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12495
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
12496
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
 
12497
else
 
12498
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12499
if test "x$ac_cv_func_dlopen" = xyes; then :
 
12500
  lt_cv_dlopen=dlopen
 
12501
else
 
12502
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12503
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12504
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12505
  $as_echo_n "(cached) " >&6
 
12506
else
 
12507
  ac_check_lib_save_LIBS=$LIBS
 
12508
LIBS="-ldl  $LIBS"
 
12509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12510
/* end confdefs.h.  */
 
12511
 
 
12512
/* Override any GCC internal prototype to avoid an error.
 
12513
   Use char because int might match the return type of a GCC
 
12514
   builtin and then its argument prototype would still apply.  */
 
12515
#ifdef __cplusplus
 
12516
extern "C"
 
12517
#endif
 
12518
char dlopen ();
 
12519
int
 
12520
main ()
 
12521
{
 
12522
return dlopen ();
 
12523
  ;
 
12524
  return 0;
 
12525
}
 
12526
_ACEOF
 
12527
if ac_fn_c_try_link "$LINENO"; then :
 
12528
  ac_cv_lib_dl_dlopen=yes
 
12529
else
 
12530
  ac_cv_lib_dl_dlopen=no
 
12531
fi
 
12532
rm -f core conftest.err conftest.$ac_objext \
 
12533
    conftest$ac_exeext conftest.$ac_ext
 
12534
LIBS=$ac_check_lib_save_LIBS
 
12535
fi
 
12536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12537
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12538
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12539
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 
12540
else
 
12541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12542
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
12543
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
12544
  $as_echo_n "(cached) " >&6
 
12545
else
 
12546
  ac_check_lib_save_LIBS=$LIBS
 
12547
LIBS="-lsvld  $LIBS"
 
12548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12549
/* end confdefs.h.  */
 
12550
 
 
12551
/* Override any GCC internal prototype to avoid an error.
 
12552
   Use char because int might match the return type of a GCC
 
12553
   builtin and then its argument prototype would still apply.  */
 
12554
#ifdef __cplusplus
 
12555
extern "C"
 
12556
#endif
 
12557
char dlopen ();
 
12558
int
 
12559
main ()
 
12560
{
 
12561
return dlopen ();
 
12562
  ;
 
12563
  return 0;
 
12564
}
 
12565
_ACEOF
 
12566
if ac_fn_c_try_link "$LINENO"; then :
 
12567
  ac_cv_lib_svld_dlopen=yes
 
12568
else
 
12569
  ac_cv_lib_svld_dlopen=no
 
12570
fi
 
12571
rm -f core conftest.err conftest.$ac_objext \
 
12572
    conftest$ac_exeext conftest.$ac_ext
 
12573
LIBS=$ac_check_lib_save_LIBS
 
12574
fi
 
12575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12576
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12577
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
12578
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
 
12579
else
 
12580
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12581
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12582
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
12583
  $as_echo_n "(cached) " >&6
 
12584
else
 
12585
  ac_check_lib_save_LIBS=$LIBS
 
12586
LIBS="-ldld  $LIBS"
 
12587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12588
/* end confdefs.h.  */
 
12589
 
 
12590
/* Override any GCC internal prototype to avoid an error.
 
12591
   Use char because int might match the return type of a GCC
 
12592
   builtin and then its argument prototype would still apply.  */
 
12593
#ifdef __cplusplus
 
12594
extern "C"
 
12595
#endif
 
12596
char dld_link ();
 
12597
int
 
12598
main ()
 
12599
{
 
12600
return dld_link ();
 
12601
  ;
 
12602
  return 0;
 
12603
}
 
12604
_ACEOF
 
12605
if ac_fn_c_try_link "$LINENO"; then :
 
12606
  ac_cv_lib_dld_dld_link=yes
 
12607
else
 
12608
  ac_cv_lib_dld_dld_link=no
 
12609
fi
 
12610
rm -f core conftest.err conftest.$ac_objext \
 
12611
    conftest$ac_exeext conftest.$ac_ext
 
12612
LIBS=$ac_check_lib_save_LIBS
 
12613
fi
 
12614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12615
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12616
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
12617
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
 
12618
fi
 
12619
 
 
12620
 
 
12621
fi
 
12622
 
 
12623
 
 
12624
fi
 
12625
 
 
12626
 
 
12627
fi
 
12628
 
 
12629
 
 
12630
fi
 
12631
 
 
12632
 
 
12633
fi
 
12634
 
 
12635
    ;;
 
12636
  esac
 
12637
 
 
12638
  if test no = "$lt_cv_dlopen"; then
 
12639
    enable_dlopen=no
 
12640
  else
 
12641
    enable_dlopen=yes
 
12642
  fi
 
12643
 
 
12644
  case $lt_cv_dlopen in
 
12645
  dlopen)
 
12646
    save_CPPFLAGS=$CPPFLAGS
 
12647
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12648
 
 
12649
    save_LDFLAGS=$LDFLAGS
 
12650
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12651
 
 
12652
    save_LIBS=$LIBS
 
12653
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12654
 
 
12655
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12656
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12657
if ${lt_cv_dlopen_self+:} false; then :
 
12658
  $as_echo_n "(cached) " >&6
 
12659
else
 
12660
          if test yes = "$cross_compiling"; then :
 
12661
  lt_cv_dlopen_self=cross
 
12662
else
 
12663
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12664
  lt_status=$lt_dlunknown
 
12665
  cat > conftest.$ac_ext <<_LT_EOF
 
12666
#line $LINENO "configure"
 
12667
#include "confdefs.h"
 
12668
 
 
12669
#if HAVE_DLFCN_H
 
12670
#include <dlfcn.h>
 
12671
#endif
 
12672
 
 
12673
#include <stdio.h>
 
12674
 
 
12675
#ifdef RTLD_GLOBAL
 
12676
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12677
#else
 
12678
#  ifdef DL_GLOBAL
 
12679
#    define LT_DLGLOBAL         DL_GLOBAL
 
12680
#  else
 
12681
#    define LT_DLGLOBAL         0
 
12682
#  endif
 
12683
#endif
 
12684
 
 
12685
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12686
   find out it does not work in some platform. */
 
12687
#ifndef LT_DLLAZY_OR_NOW
 
12688
#  ifdef RTLD_LAZY
 
12689
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12690
#  else
 
12691
#    ifdef DL_LAZY
 
12692
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12693
#    else
 
12694
#      ifdef RTLD_NOW
 
12695
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12696
#      else
 
12697
#        ifdef DL_NOW
 
12698
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12699
#        else
 
12700
#          define LT_DLLAZY_OR_NOW      0
 
12701
#        endif
 
12702
#      endif
 
12703
#    endif
 
12704
#  endif
 
12705
#endif
 
12706
 
 
12707
/* When -fvisibility=hidden is used, assume the code has been annotated
 
12708
   correspondingly for the symbols needed.  */
 
12709
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12710
int fnord () __attribute__((visibility("default")));
 
12711
#endif
 
12712
 
 
12713
int fnord () { return 42; }
 
12714
int main ()
 
12715
{
 
12716
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12717
  int status = $lt_dlunknown;
 
12718
 
 
12719
  if (self)
 
12720
    {
 
12721
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12722
      else
 
12723
        {
 
12724
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12725
          else puts (dlerror ());
 
12726
        }
 
12727
      /* dlclose (self); */
 
12728
    }
 
12729
  else
 
12730
    puts (dlerror ());
 
12731
 
 
12732
  return status;
 
12733
}
 
12734
_LT_EOF
 
12735
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12736
  (eval $ac_link) 2>&5
 
12737
  ac_status=$?
 
12738
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12739
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
12740
    (./conftest; exit; ) >&5 2>/dev/null
 
12741
    lt_status=$?
 
12742
    case x$lt_status in
 
12743
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12744
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12745
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12746
    esac
 
12747
  else :
 
12748
    # compilation failed
 
12749
    lt_cv_dlopen_self=no
 
12750
  fi
 
12751
fi
 
12752
rm -fr conftest*
 
12753
 
 
12754
 
 
12755
fi
 
12756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12757
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12758
 
 
12759
    if test yes = "$lt_cv_dlopen_self"; then
 
12760
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12761
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12762
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12763
if ${lt_cv_dlopen_self_static+:} false; then :
 
12764
  $as_echo_n "(cached) " >&6
 
12765
else
 
12766
          if test yes = "$cross_compiling"; then :
 
12767
  lt_cv_dlopen_self_static=cross
 
12768
else
 
12769
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12770
  lt_status=$lt_dlunknown
 
12771
  cat > conftest.$ac_ext <<_LT_EOF
 
12772
#line $LINENO "configure"
 
12773
#include "confdefs.h"
 
12774
 
 
12775
#if HAVE_DLFCN_H
 
12776
#include <dlfcn.h>
 
12777
#endif
 
12778
 
 
12779
#include <stdio.h>
 
12780
 
 
12781
#ifdef RTLD_GLOBAL
 
12782
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12783
#else
 
12784
#  ifdef DL_GLOBAL
 
12785
#    define LT_DLGLOBAL         DL_GLOBAL
 
12786
#  else
 
12787
#    define LT_DLGLOBAL         0
 
12788
#  endif
 
12789
#endif
 
12790
 
 
12791
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12792
   find out it does not work in some platform. */
 
12793
#ifndef LT_DLLAZY_OR_NOW
 
12794
#  ifdef RTLD_LAZY
 
12795
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12796
#  else
 
12797
#    ifdef DL_LAZY
 
12798
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12799
#    else
 
12800
#      ifdef RTLD_NOW
 
12801
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12802
#      else
 
12803
#        ifdef DL_NOW
 
12804
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12805
#        else
 
12806
#          define LT_DLLAZY_OR_NOW      0
 
12807
#        endif
 
12808
#      endif
 
12809
#    endif
 
12810
#  endif
 
12811
#endif
 
12812
 
 
12813
/* When -fvisibility=hidden is used, assume the code has been annotated
 
12814
   correspondingly for the symbols needed.  */
 
12815
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12816
int fnord () __attribute__((visibility("default")));
 
12817
#endif
 
12818
 
 
12819
int fnord () { return 42; }
 
12820
int main ()
 
12821
{
 
12822
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12823
  int status = $lt_dlunknown;
 
12824
 
 
12825
  if (self)
 
12826
    {
 
12827
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12828
      else
 
12829
        {
 
12830
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12831
          else puts (dlerror ());
 
12832
        }
 
12833
      /* dlclose (self); */
 
12834
    }
 
12835
  else
 
12836
    puts (dlerror ());
 
12837
 
 
12838
  return status;
 
12839
}
 
12840
_LT_EOF
 
12841
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12842
  (eval $ac_link) 2>&5
 
12843
  ac_status=$?
 
12844
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12845
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 
12846
    (./conftest; exit; ) >&5 2>/dev/null
 
12847
    lt_status=$?
 
12848
    case x$lt_status in
 
12849
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12850
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12851
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12852
    esac
 
12853
  else :
 
12854
    # compilation failed
 
12855
    lt_cv_dlopen_self_static=no
 
12856
  fi
 
12857
fi
 
12858
rm -fr conftest*
 
12859
 
 
12860
 
 
12861
fi
 
12862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12863
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12864
    fi
 
12865
 
 
12866
    CPPFLAGS=$save_CPPFLAGS
 
12867
    LDFLAGS=$save_LDFLAGS
 
12868
    LIBS=$save_LIBS
 
12869
    ;;
 
12870
  esac
 
12871
 
 
12872
  case $lt_cv_dlopen_self in
 
12873
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12874
  *) enable_dlopen_self=unknown ;;
 
12875
  esac
 
12876
 
 
12877
  case $lt_cv_dlopen_self_static in
 
12878
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12879
  *) enable_dlopen_self_static=unknown ;;
 
12880
  esac
 
12881
fi
 
12882
 
 
12883
 
 
12884
 
 
12885
 
 
12886
 
 
12887
 
 
12888
 
 
12889
 
 
12890
 
 
12891
 
 
12892
 
 
12893
 
 
12894
 
 
12895
 
 
12896
 
 
12897
 
 
12898
 
 
12899
striplib=
 
12900
old_striplib=
 
12901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12902
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12903
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12904
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12905
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12907
$as_echo "yes" >&6; }
 
12908
else
 
12909
# FIXME - insert some real tests, host_os isn't really good enough
 
12910
  case $host_os in
 
12911
  darwin*)
 
12912
    if test -n "$STRIP"; then
 
12913
      striplib="$STRIP -x"
 
12914
      old_striplib="$STRIP -S"
 
12915
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12916
$as_echo "yes" >&6; }
 
12917
    else
 
12918
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12919
$as_echo "no" >&6; }
 
12920
    fi
 
12921
    ;;
 
12922
  *)
 
12923
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12924
$as_echo "no" >&6; }
 
12925
    ;;
 
12926
  esac
 
12927
fi
 
12928
 
 
12929
 
 
12930
 
 
12931
 
 
12932
 
 
12933
 
 
12934
 
 
12935
 
 
12936
 
 
12937
 
 
12938
 
 
12939
 
 
12940
  # Report what library types will actually be built
 
12941
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12942
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12944
$as_echo "$can_build_shared" >&6; }
 
12945
 
 
12946
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12947
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12948
  test no = "$can_build_shared" && enable_shared=no
 
12949
 
 
12950
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12951
  # are all built from PIC.
 
12952
  case $host_os in
 
12953
  aix3*)
 
12954
    test yes = "$enable_shared" && enable_static=no
 
12955
    if test -n "$RANLIB"; then
 
12956
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12957
      postinstall_cmds='$RANLIB $lib'
 
12958
    fi
 
12959
    ;;
 
12960
 
 
12961
  aix[4-9]*)
 
12962
    if test ia64 != "$host_cpu"; then
 
12963
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 
12964
      yes,aix,yes) ;;                   # shared object as lib.so file only
 
12965
      yes,svr4,*) ;;                    # shared object as lib.so archive member only
 
12966
      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
 
12967
      esac
 
12968
    fi
 
12969
    ;;
 
12970
  esac
 
12971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12972
$as_echo "$enable_shared" >&6; }
 
12973
 
 
12974
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12975
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12976
  # Make sure either enable_shared or enable_static is yes.
 
12977
  test yes = "$enable_shared" || enable_static=yes
 
12978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12979
$as_echo "$enable_static" >&6; }
 
12980
 
 
12981
 
 
12982
 
 
12983
 
 
12984
fi
 
12985
ac_ext=c
 
12986
ac_cpp='$CPP $CPPFLAGS'
 
12987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12990
 
 
12991
CC=$lt_save_CC
 
12992
 
 
12993
 
 
12994
 
 
12995
 
 
12996
 
 
12997
 
 
12998
 
 
12999
 
 
13000
 
 
13001
 
 
13002
 
 
13003
 
 
13004
 
 
13005
 
 
13006
 
 
13007
        ac_config_commands="$ac_config_commands libtool"
 
13008
 
 
13009
 
 
13010
 
 
13011
 
 
13012
# Only expand once:
 
13013
 
 
13014
 
 
13015
 
 
13016
 
 
13017
 
 
13018
 
 
13019
## Checks for programs
 
13020
ac_ext=c
 
13021
ac_cpp='$CPP $CPPFLAGS'
 
13022
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13023
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13024
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13025
if test -n "$ac_tool_prefix"; then
 
13026
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
13027
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
13028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13029
$as_echo_n "checking for $ac_word... " >&6; }
 
13030
if ${ac_cv_prog_CC+:} false; then :
 
13031
  $as_echo_n "(cached) " >&6
 
13032
else
 
13033
  if test -n "$CC"; then
 
13034
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13035
else
 
13036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13037
for as_dir in $PATH
 
13038
do
 
13039
  IFS=$as_save_IFS
 
13040
  test -z "$as_dir" && as_dir=.
 
13041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13042
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13043
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
13044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13045
    break 2
 
13046
  fi
 
13047
done
 
13048
  done
 
13049
IFS=$as_save_IFS
 
13050
 
 
13051
fi
 
13052
fi
 
13053
CC=$ac_cv_prog_CC
 
13054
if test -n "$CC"; then
 
13055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13056
$as_echo "$CC" >&6; }
 
13057
else
 
13058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13059
$as_echo "no" >&6; }
 
13060
fi
 
13061
 
 
13062
 
 
13063
fi
 
13064
if test -z "$ac_cv_prog_CC"; then
 
13065
  ac_ct_CC=$CC
 
13066
  # Extract the first word of "gcc", so it can be a program name with args.
 
13067
set dummy gcc; ac_word=$2
 
13068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13069
$as_echo_n "checking for $ac_word... " >&6; }
 
13070
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
13071
  $as_echo_n "(cached) " >&6
 
13072
else
 
13073
  if test -n "$ac_ct_CC"; then
 
13074
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13075
else
 
13076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13077
for as_dir in $PATH
 
13078
do
 
13079
  IFS=$as_save_IFS
 
13080
  test -z "$as_dir" && as_dir=.
 
13081
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13082
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13083
    ac_cv_prog_ac_ct_CC="gcc"
 
13084
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13085
    break 2
 
13086
  fi
 
13087
done
 
13088
  done
 
13089
IFS=$as_save_IFS
 
13090
 
 
13091
fi
 
13092
fi
 
13093
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13094
if test -n "$ac_ct_CC"; then
 
13095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13096
$as_echo "$ac_ct_CC" >&6; }
 
13097
else
 
13098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13099
$as_echo "no" >&6; }
 
13100
fi
 
13101
 
 
13102
  if test "x$ac_ct_CC" = x; then
 
13103
    CC=""
 
13104
  else
 
13105
    case $cross_compiling:$ac_tool_warned in
 
13106
yes:)
 
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13109
ac_tool_warned=yes ;;
 
13110
esac
 
13111
    CC=$ac_ct_CC
 
13112
  fi
 
13113
else
 
13114
  CC="$ac_cv_prog_CC"
 
13115
fi
 
13116
 
 
13117
if test -z "$CC"; then
 
13118
          if test -n "$ac_tool_prefix"; then
 
13119
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
13120
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
13121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13122
$as_echo_n "checking for $ac_word... " >&6; }
 
13123
if ${ac_cv_prog_CC+:} false; then :
 
13124
  $as_echo_n "(cached) " >&6
 
13125
else
 
13126
  if test -n "$CC"; then
 
13127
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13128
else
 
13129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13130
for as_dir in $PATH
 
13131
do
 
13132
  IFS=$as_save_IFS
 
13133
  test -z "$as_dir" && as_dir=.
 
13134
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13135
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13136
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
13137
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13138
    break 2
 
13139
  fi
 
13140
done
 
13141
  done
 
13142
IFS=$as_save_IFS
 
13143
 
 
13144
fi
 
13145
fi
 
13146
CC=$ac_cv_prog_CC
 
13147
if test -n "$CC"; then
 
13148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13149
$as_echo "$CC" >&6; }
 
13150
else
 
13151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13152
$as_echo "no" >&6; }
 
13153
fi
 
13154
 
 
13155
 
 
13156
  fi
 
13157
fi
 
13158
if test -z "$CC"; then
 
13159
  # Extract the first word of "cc", so it can be a program name with args.
 
13160
set dummy cc; ac_word=$2
 
13161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13162
$as_echo_n "checking for $ac_word... " >&6; }
 
13163
if ${ac_cv_prog_CC+:} false; then :
 
13164
  $as_echo_n "(cached) " >&6
 
13165
else
 
13166
  if test -n "$CC"; then
 
13167
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13168
else
 
13169
  ac_prog_rejected=no
 
13170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13171
for as_dir in $PATH
 
13172
do
 
13173
  IFS=$as_save_IFS
 
13174
  test -z "$as_dir" && as_dir=.
 
13175
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13176
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13177
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
13178
       ac_prog_rejected=yes
 
13179
       continue
 
13180
     fi
 
13181
    ac_cv_prog_CC="cc"
 
13182
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13183
    break 2
 
13184
  fi
 
13185
done
 
13186
  done
 
13187
IFS=$as_save_IFS
 
13188
 
 
13189
if test $ac_prog_rejected = yes; then
 
13190
  # We found a bogon in the path, so make sure we never use it.
 
13191
  set dummy $ac_cv_prog_CC
 
13192
  shift
 
13193
  if test $# != 0; then
 
13194
    # We chose a different compiler from the bogus one.
 
13195
    # However, it has the same basename, so the bogon will be chosen
 
13196
    # first if we set CC to just the basename; use the full file name.
 
13197
    shift
 
13198
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
13199
  fi
 
13200
fi
 
13201
fi
 
13202
fi
 
13203
CC=$ac_cv_prog_CC
 
13204
if test -n "$CC"; then
 
13205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13206
$as_echo "$CC" >&6; }
 
13207
else
 
13208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13209
$as_echo "no" >&6; }
 
13210
fi
 
13211
 
 
13212
 
 
13213
fi
 
13214
if test -z "$CC"; then
 
13215
  if test -n "$ac_tool_prefix"; then
 
13216
  for ac_prog in cl.exe
 
13217
  do
 
13218
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
13219
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
13220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13221
$as_echo_n "checking for $ac_word... " >&6; }
 
13222
if ${ac_cv_prog_CC+:} false; then :
 
13223
  $as_echo_n "(cached) " >&6
 
13224
else
 
13225
  if test -n "$CC"; then
 
13226
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13227
else
 
13228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13229
for as_dir in $PATH
 
13230
do
 
13231
  IFS=$as_save_IFS
 
13232
  test -z "$as_dir" && as_dir=.
 
13233
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13234
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13235
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
13236
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13237
    break 2
 
13238
  fi
 
13239
done
 
13240
  done
 
13241
IFS=$as_save_IFS
 
13242
 
 
13243
fi
 
13244
fi
 
13245
CC=$ac_cv_prog_CC
 
13246
if test -n "$CC"; then
 
13247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13248
$as_echo "$CC" >&6; }
 
13249
else
 
13250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13251
$as_echo "no" >&6; }
 
13252
fi
 
13253
 
 
13254
 
 
13255
    test -n "$CC" && break
 
13256
  done
 
13257
fi
 
13258
if test -z "$CC"; then
 
13259
  ac_ct_CC=$CC
 
13260
  for ac_prog in cl.exe
 
13261
do
 
13262
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13263
set dummy $ac_prog; ac_word=$2
 
13264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13265
$as_echo_n "checking for $ac_word... " >&6; }
 
13266
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
13267
  $as_echo_n "(cached) " >&6
 
13268
else
 
13269
  if test -n "$ac_ct_CC"; then
 
13270
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13271
else
 
13272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13273
for as_dir in $PATH
 
13274
do
 
13275
  IFS=$as_save_IFS
 
13276
  test -z "$as_dir" && as_dir=.
 
13277
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13278
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13279
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
13280
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13281
    break 2
 
13282
  fi
 
13283
done
 
13284
  done
 
13285
IFS=$as_save_IFS
 
13286
 
 
13287
fi
 
13288
fi
 
13289
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13290
if test -n "$ac_ct_CC"; then
 
13291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13292
$as_echo "$ac_ct_CC" >&6; }
 
13293
else
 
13294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13295
$as_echo "no" >&6; }
 
13296
fi
 
13297
 
 
13298
 
 
13299
  test -n "$ac_ct_CC" && break
 
13300
done
 
13301
 
 
13302
  if test "x$ac_ct_CC" = x; then
 
13303
    CC=""
 
13304
  else
 
13305
    case $cross_compiling:$ac_tool_warned in
 
13306
yes:)
 
13307
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13308
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13309
ac_tool_warned=yes ;;
 
13310
esac
 
13311
    CC=$ac_ct_CC
 
13312
  fi
 
13313
fi
 
13314
 
 
13315
fi
 
13316
 
 
13317
 
 
13318
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13320
as_fn_error $? "no acceptable C compiler found in \$PATH
 
13321
See \`config.log' for more details" "$LINENO" 5; }
 
13322
 
 
13323
# Provide some information about the compiler.
 
13324
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
13325
set X $ac_compile
 
13326
ac_compiler=$2
 
13327
for ac_option in --version -v -V -qversion; do
 
13328
  { { ac_try="$ac_compiler $ac_option >&5"
 
13329
case "(($ac_try" in
 
13330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13331
  *) ac_try_echo=$ac_try;;
 
13332
esac
 
13333
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
13334
$as_echo "$ac_try_echo"; } >&5
 
13335
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
13336
  ac_status=$?
 
13337
  if test -s conftest.err; then
 
13338
    sed '10a\
 
13339
... rest of stderr output deleted ...
 
13340
         10q' conftest.err >conftest.er1
 
13341
    cat conftest.er1 >&5
 
13342
  fi
 
13343
  rm -f conftest.er1 conftest.err
 
13344
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13345
  test $ac_status = 0; }
 
13346
done
 
13347
 
 
13348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
13349
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
13350
if ${ac_cv_c_compiler_gnu+:} false; then :
 
13351
  $as_echo_n "(cached) " >&6
 
13352
else
 
13353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13354
/* end confdefs.h.  */
 
13355
 
 
13356
int
 
13357
main ()
 
13358
{
 
13359
#ifndef __GNUC__
 
13360
       choke me
 
13361
#endif
 
13362
 
 
13363
  ;
 
13364
  return 0;
 
13365
}
 
13366
_ACEOF
 
13367
if ac_fn_c_try_compile "$LINENO"; then :
 
13368
  ac_compiler_gnu=yes
 
13369
else
 
13370
  ac_compiler_gnu=no
 
13371
fi
 
13372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13373
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
13374
 
 
13375
fi
 
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
13377
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
13378
if test $ac_compiler_gnu = yes; then
 
13379
  GCC=yes
 
13380
else
 
13381
  GCC=
 
13382
fi
 
13383
ac_test_CFLAGS=${CFLAGS+set}
 
13384
ac_save_CFLAGS=$CFLAGS
 
13385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
13386
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
13387
if ${ac_cv_prog_cc_g+:} false; then :
 
13388
  $as_echo_n "(cached) " >&6
 
13389
else
 
13390
  ac_save_c_werror_flag=$ac_c_werror_flag
 
13391
   ac_c_werror_flag=yes
 
13392
   ac_cv_prog_cc_g=no
 
13393
   CFLAGS="-g"
 
13394
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13395
/* end confdefs.h.  */
 
13396
 
 
13397
int
 
13398
main ()
 
13399
{
 
13400
 
 
13401
  ;
 
13402
  return 0;
 
13403
}
 
13404
_ACEOF
 
13405
if ac_fn_c_try_compile "$LINENO"; then :
 
13406
  ac_cv_prog_cc_g=yes
 
13407
else
 
13408
  CFLAGS=""
 
13409
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13410
/* end confdefs.h.  */
 
13411
 
 
13412
int
 
13413
main ()
 
13414
{
 
13415
 
 
13416
  ;
 
13417
  return 0;
 
13418
}
 
13419
_ACEOF
 
13420
if ac_fn_c_try_compile "$LINENO"; then :
 
13421
 
 
13422
else
 
13423
  ac_c_werror_flag=$ac_save_c_werror_flag
 
13424
         CFLAGS="-g"
 
13425
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13426
/* end confdefs.h.  */
 
13427
 
 
13428
int
 
13429
main ()
 
13430
{
 
13431
 
 
13432
  ;
 
13433
  return 0;
 
13434
}
 
13435
_ACEOF
 
13436
if ac_fn_c_try_compile "$LINENO"; then :
 
13437
  ac_cv_prog_cc_g=yes
 
13438
fi
 
13439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13440
fi
 
13441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13442
fi
 
13443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13444
   ac_c_werror_flag=$ac_save_c_werror_flag
 
13445
fi
 
13446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
13447
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
13448
if test "$ac_test_CFLAGS" = set; then
 
13449
  CFLAGS=$ac_save_CFLAGS
 
13450
elif test $ac_cv_prog_cc_g = yes; then
 
13451
  if test "$GCC" = yes; then
 
13452
    CFLAGS="-g -O2"
 
13453
  else
 
13454
    CFLAGS="-g"
 
13455
  fi
 
13456
else
 
13457
  if test "$GCC" = yes; then
 
13458
    CFLAGS="-O2"
 
13459
  else
 
13460
    CFLAGS=
 
13461
  fi
 
13462
fi
 
13463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
13464
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
13465
if ${ac_cv_prog_cc_c89+:} false; then :
 
13466
  $as_echo_n "(cached) " >&6
 
13467
else
 
13468
  ac_cv_prog_cc_c89=no
 
13469
ac_save_CC=$CC
 
13470
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13471
/* end confdefs.h.  */
 
13472
#include <stdarg.h>
 
13473
#include <stdio.h>
 
13474
struct stat;
 
13475
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
13476
struct buf { int x; };
 
13477
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
13478
static char *e (p, i)
 
13479
     char **p;
 
13480
     int i;
 
13481
{
 
13482
  return p[i];
 
13483
}
 
13484
static char *f (char * (*g) (char **, int), char **p, ...)
 
13485
{
 
13486
  char *s;
 
13487
  va_list v;
 
13488
  va_start (v,p);
 
13489
  s = g (p, va_arg (v,int));
 
13490
  va_end (v);
 
13491
  return s;
 
13492
}
 
13493
 
 
13494
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
13495
   function prototypes and stuff, but not '\xHH' hex character constants.
 
13496
   These don't provoke an error unfortunately, instead are silently treated
 
13497
   as 'x'.  The following induces an error, until -std is added to get
 
13498
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
13499
   array size at least.  It's necessary to write '\x00'==0 to get something
 
13500
   that's true only with -std.  */
 
13501
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
13502
 
 
13503
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
13504
   inside strings and character constants.  */
 
13505
#define FOO(x) 'x'
 
13506
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
13507
 
 
13508
int test (int i, double x);
 
13509
struct s1 {int (*f) (int a);};
 
13510
struct s2 {int (*f) (double a);};
 
13511
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
13512
int argc;
 
13513
char **argv;
 
13514
int
 
13515
main ()
 
13516
{
 
13517
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
13518
  ;
 
13519
  return 0;
 
13520
}
 
13521
_ACEOF
 
13522
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
13523
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
13524
do
 
13525
  CC="$ac_save_CC $ac_arg"
 
13526
  if ac_fn_c_try_compile "$LINENO"; then :
 
13527
  ac_cv_prog_cc_c89=$ac_arg
 
13528
fi
 
13529
rm -f core conftest.err conftest.$ac_objext
 
13530
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
13531
done
 
13532
rm -f conftest.$ac_ext
 
13533
CC=$ac_save_CC
 
13534
 
 
13535
fi
 
13536
# AC_CACHE_VAL
 
13537
case "x$ac_cv_prog_cc_c89" in
 
13538
  x)
 
13539
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13540
$as_echo "none needed" >&6; } ;;
 
13541
  xno)
 
13542
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13543
$as_echo "unsupported" >&6; } ;;
 
13544
  *)
 
13545
    CC="$CC $ac_cv_prog_cc_c89"
 
13546
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
13547
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
13548
esac
 
13549
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
13550
 
 
13551
fi
 
13552
 
 
13553
ac_ext=c
 
13554
ac_cpp='$CPP $CPPFLAGS'
 
13555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13558
 
 
13559
depcc="$CC"   am_compiler_list=
 
13560
 
 
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
13562
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
13563
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
13564
  $as_echo_n "(cached) " >&6
 
13565
else
 
13566
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
13567
  # We make a subdir and do the tests there.  Otherwise we can end up
 
13568
  # making bogus files that we don't know about and never remove.  For
 
13569
  # instance it was reported that on HP-UX the gcc test will end up
 
13570
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
13571
  # in D".
 
13572
  rm -rf conftest.dir
 
13573
  mkdir conftest.dir
 
13574
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
13575
  # using a relative directory.
 
13576
  cp "$am_depcomp" conftest.dir
 
13577
  cd conftest.dir
 
13578
  # We will build objects and dependencies in a subdirectory because
 
13579
  # it helps to detect inapplicable dependency modes.  For instance
 
13580
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
13581
  # side effect of compilation, but ICC will put the dependencies in
 
13582
  # the current directory while Tru64 will put them in the object
 
13583
  # directory.
 
13584
  mkdir sub
 
13585
 
 
13586
  am_cv_CC_dependencies_compiler_type=none
 
13587
  if test "$am_compiler_list" = ""; then
 
13588
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
13589
  fi
 
13590
  am__universal=false
 
13591
  case " $depcc " in #(
 
13592
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
13593
     esac
 
13594
 
 
13595
  for depmode in $am_compiler_list; do
 
13596
    # Setup a source with many dependencies, because some compilers
 
13597
    # like to wrap large dependency lists on column 80 (with \), and
 
13598
    # we should not choose a depcomp mode which is confused by this.
 
13599
    #
 
13600
    # We need to recreate these files for each test, as the compiler may
 
13601
    # overwrite some of them when testing with obscure command lines.
 
13602
    # This happens at least with the AIX C compiler.
 
13603
    : > sub/conftest.c
 
13604
    for i in 1 2 3 4 5 6; do
 
13605
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
13606
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
13607
      # Solaris 10 /bin/sh.
 
13608
      echo '/* dummy */' > sub/conftst$i.h
 
13609
    done
 
13610
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
13611
 
 
13612
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
13613
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
13614
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
13615
    # versions had trouble with output in subdirs.
 
13616
    am__obj=sub/conftest.${OBJEXT-o}
 
13617
    am__minus_obj="-o $am__obj"
 
13618
    case $depmode in
 
13619
    gcc)
 
13620
      # This depmode causes a compiler race in universal mode.
 
13621
      test "$am__universal" = false || continue
 
13622
      ;;
 
13623
    nosideeffect)
 
13624
      # After this tag, mechanisms are not by side-effect, so they'll
 
13625
      # only be used when explicitly requested.
 
13626
      if test "x$enable_dependency_tracking" = xyes; then
 
13627
        continue
 
13628
      else
 
13629
        break
 
13630
      fi
 
13631
      ;;
 
13632
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
13633
      # This compiler won't grok '-c -o', but also, the minuso test has
 
13634
      # not run yet.  These depmodes are late enough in the game, and
 
13635
      # so weak that their functioning should not be impacted.
 
13636
      am__obj=conftest.${OBJEXT-o}
 
13637
      am__minus_obj=
 
13638
      ;;
 
13639
    none) break ;;
 
13640
    esac
 
13641
    if depmode=$depmode \
 
13642
       source=sub/conftest.c object=$am__obj \
 
13643
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
13644
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
13645
         >/dev/null 2>conftest.err &&
 
13646
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
13647
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
13648
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
13649
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
13650
      # icc doesn't choke on unknown options, it will just issue warnings
 
13651
      # or remarks (even with -Werror).  So we grep stderr for any message
 
13652
      # that says an option was ignored or not supported.
 
13653
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
13654
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
13655
      # The diagnosis changed in icc 8.0:
 
13656
      #   icc: Command line remark: option '-MP' not supported
 
13657
      if (grep 'ignoring option' conftest.err ||
 
13658
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
13659
        am_cv_CC_dependencies_compiler_type=$depmode
 
13660
        break
 
13661
      fi
 
13662
    fi
 
13663
  done
 
13664
 
 
13665
  cd ..
 
13666
  rm -rf conftest.dir
 
13667
else
 
13668
  am_cv_CC_dependencies_compiler_type=none
 
13669
fi
 
13670
 
 
13671
fi
 
13672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
13673
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
13674
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
13675
 
 
13676
 if
 
13677
  test "x$enable_dependency_tracking" != xno \
 
13678
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
13679
  am__fastdepCC_TRUE=
 
13680
  am__fastdepCC_FALSE='#'
 
13681
else
 
13682
  am__fastdepCC_TRUE='#'
 
13683
  am__fastdepCC_FALSE=
 
13684
fi
 
13685
 
 
13686
 
 
13687
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
13688
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
13689
if ${ac_cv_prog_cc_c99+:} false; then :
 
13690
  $as_echo_n "(cached) " >&6
 
13691
else
 
13692
  ac_cv_prog_cc_c99=no
 
13693
ac_save_CC=$CC
 
13694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13695
/* end confdefs.h.  */
 
13696
#include <stdarg.h>
 
13697
#include <stdbool.h>
 
13698
#include <stdlib.h>
 
13699
#include <wchar.h>
 
13700
#include <stdio.h>
 
13701
 
 
13702
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
13703
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
13704
#define showlist(...) puts (#__VA_ARGS__)
 
13705
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
13706
static void
 
13707
test_varargs_macros (void)
 
13708
{
 
13709
  int x = 1234;
 
13710
  int y = 5678;
 
13711
  debug ("Flag");
 
13712
  debug ("X = %d\n", x);
 
13713
  showlist (The first, second, and third items.);
 
13714
  report (x>y, "x is %d but y is %d", x, y);
 
13715
}
 
13716
 
 
13717
// Check long long types.
 
13718
#define BIG64 18446744073709551615ull
 
13719
#define BIG32 4294967295ul
 
13720
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
13721
#if !BIG_OK
 
13722
  your preprocessor is broken;
 
13723
#endif
 
13724
#if BIG_OK
 
13725
#else
 
13726
  your preprocessor is broken;
 
13727
#endif
 
13728
static long long int bignum = -9223372036854775807LL;
 
13729
static unsigned long long int ubignum = BIG64;
 
13730
 
 
13731
struct incomplete_array
 
13732
{
 
13733
  int datasize;
 
13734
  double data[];
 
13735
};
 
13736
 
 
13737
struct named_init {
 
13738
  int number;
 
13739
  const wchar_t *name;
 
13740
  double average;
 
13741
};
 
13742
 
 
13743
typedef const char *ccp;
 
13744
 
 
13745
static inline int
 
13746
test_restrict (ccp restrict text)
 
13747
{
 
13748
  // See if C++-style comments work.
 
13749
  // Iterate through items via the restricted pointer.
 
13750
  // Also check for declarations in for loops.
 
13751
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
13752
    continue;
 
13753
  return 0;
 
13754
}
 
13755
 
 
13756
// Check varargs and va_copy.
 
13757
static void
 
13758
test_varargs (const char *format, ...)
 
13759
{
 
13760
  va_list args;
 
13761
  va_start (args, format);
 
13762
  va_list args_copy;
 
13763
  va_copy (args_copy, args);
 
13764
 
 
13765
  const char *str;
 
13766
  int number;
 
13767
  float fnumber;
 
13768
 
 
13769
  while (*format)
 
13770
    {
 
13771
      switch (*format++)
 
13772
        {
 
13773
        case 's': // string
 
13774
          str = va_arg (args_copy, const char *);
 
13775
          break;
 
13776
        case 'd': // int
 
13777
          number = va_arg (args_copy, int);
 
13778
          break;
 
13779
        case 'f': // float
 
13780
          fnumber = va_arg (args_copy, double);
 
13781
          break;
 
13782
        default:
 
13783
          break;
 
13784
        }
 
13785
    }
 
13786
  va_end (args_copy);
 
13787
  va_end (args);
 
13788
}
 
13789
 
 
13790
int
 
13791
main ()
 
13792
{
 
13793
 
 
13794
  // Check bool.
 
13795
  _Bool success = false;
 
13796
 
 
13797
  // Check restrict.
 
13798
  if (test_restrict ("String literal") == 0)
 
13799
    success = true;
 
13800
  char *restrict newvar = "Another string";
 
13801
 
 
13802
  // Check varargs.
 
13803
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
13804
  test_varargs_macros ();
 
13805
 
 
13806
  // Check flexible array members.
 
13807
  struct incomplete_array *ia =
 
13808
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
13809
  ia->datasize = 10;
 
13810
  for (int i = 0; i < ia->datasize; ++i)
 
13811
    ia->data[i] = i * 1.234;
 
13812
 
 
13813
  // Check named initializers.
 
13814
  struct named_init ni = {
 
13815
    .number = 34,
 
13816
    .name = L"Test wide string",
 
13817
    .average = 543.34343,
 
13818
  };
 
13819
 
 
13820
  ni.number = 58;
 
13821
 
 
13822
  int dynamic_array[ni.number];
 
13823
  dynamic_array[ni.number - 1] = 543;
 
13824
 
 
13825
  // work around unused variable warnings
 
13826
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
13827
          || dynamic_array[ni.number - 1] != 543);
 
13828
 
 
13829
  ;
 
13830
  return 0;
 
13831
}
 
13832
_ACEOF
 
13833
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -Kc99
 
13834
do
 
13835
  CC="$ac_save_CC $ac_arg"
 
13836
  if ac_fn_c_try_compile "$LINENO"; then :
 
13837
  ac_cv_prog_cc_c99=$ac_arg
 
13838
fi
 
13839
rm -f core conftest.err conftest.$ac_objext
 
13840
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
13841
done
 
13842
rm -f conftest.$ac_ext
 
13843
CC=$ac_save_CC
 
13844
 
 
13845
fi
 
13846
# AC_CACHE_VAL
 
13847
case "x$ac_cv_prog_cc_c99" in
 
13848
  x)
 
13849
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13850
$as_echo "none needed" >&6; } ;;
 
13851
  xno)
 
13852
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13853
$as_echo "unsupported" >&6; } ;;
 
13854
  *)
 
13855
    CC="$CC $ac_cv_prog_cc_c99"
 
13856
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
13857
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
13858
esac
 
13859
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
13860
 
 
13861
fi
 
13862
 
 
13863
 
 
13864
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
13865
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
13866
if ${ac_cv_c_bigendian+:} false; then :
 
13867
  $as_echo_n "(cached) " >&6
 
13868
else
 
13869
  ac_cv_c_bigendian=unknown
 
13870
    # See if we're dealing with a universal compiler.
 
13871
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13872
/* end confdefs.h.  */
 
13873
#ifndef __APPLE_CC__
 
13874
               not a universal capable compiler
 
13875
             #endif
 
13876
             typedef int dummy;
 
13877
 
 
13878
_ACEOF
 
13879
if ac_fn_c_try_compile "$LINENO"; then :
 
13880
 
 
13881
        # Check for potential -arch flags.  It is not universal unless
 
13882
        # there are at least two -arch flags with different values.
 
13883
        ac_arch=
 
13884
        ac_prev=
 
13885
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
13886
         if test -n "$ac_prev"; then
 
13887
           case $ac_word in
 
13888
             i?86 | x86_64 | ppc | ppc64)
 
13889
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
13890
                 ac_arch=$ac_word
 
13891
               else
 
13892
                 ac_cv_c_bigendian=universal
 
13893
                 break
 
13894
               fi
 
13895
               ;;
 
13896
           esac
 
13897
           ac_prev=
 
13898
         elif test "x$ac_word" = "x-arch"; then
 
13899
           ac_prev=arch
 
13900
         fi
 
13901
       done
 
13902
fi
 
13903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13904
    if test $ac_cv_c_bigendian = unknown; then
 
13905
      # See if sys/param.h defines the BYTE_ORDER macro.
 
13906
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13907
/* end confdefs.h.  */
 
13908
#include <sys/types.h>
 
13909
             #include <sys/param.h>
 
13910
 
 
13911
int
 
13912
main ()
 
13913
{
 
13914
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
13915
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
13916
                     && LITTLE_ENDIAN)
 
13917
              bogus endian macros
 
13918
             #endif
 
13919
 
 
13920
  ;
 
13921
  return 0;
 
13922
}
 
13923
_ACEOF
 
13924
if ac_fn_c_try_compile "$LINENO"; then :
 
13925
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
13926
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13927
/* end confdefs.h.  */
 
13928
#include <sys/types.h>
 
13929
                #include <sys/param.h>
 
13930
 
 
13931
int
 
13932
main ()
 
13933
{
 
13934
#if BYTE_ORDER != BIG_ENDIAN
 
13935
                 not big endian
 
13936
                #endif
 
13937
 
 
13938
  ;
 
13939
  return 0;
 
13940
}
 
13941
_ACEOF
 
13942
if ac_fn_c_try_compile "$LINENO"; then :
 
13943
  ac_cv_c_bigendian=yes
 
13944
else
 
13945
  ac_cv_c_bigendian=no
 
13946
fi
 
13947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13948
fi
 
13949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13950
    fi
 
13951
    if test $ac_cv_c_bigendian = unknown; then
 
13952
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
13953
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13954
/* end confdefs.h.  */
 
13955
#include <limits.h>
 
13956
 
 
13957
int
 
13958
main ()
 
13959
{
 
13960
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
13961
              bogus endian macros
 
13962
             #endif
 
13963
 
 
13964
  ;
 
13965
  return 0;
 
13966
}
 
13967
_ACEOF
 
13968
if ac_fn_c_try_compile "$LINENO"; then :
 
13969
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
13970
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13971
/* end confdefs.h.  */
 
13972
#include <limits.h>
 
13973
 
 
13974
int
 
13975
main ()
 
13976
{
 
13977
#ifndef _BIG_ENDIAN
 
13978
                 not big endian
 
13979
                #endif
 
13980
 
 
13981
  ;
 
13982
  return 0;
 
13983
}
 
13984
_ACEOF
 
13985
if ac_fn_c_try_compile "$LINENO"; then :
 
13986
  ac_cv_c_bigendian=yes
 
13987
else
 
13988
  ac_cv_c_bigendian=no
 
13989
fi
 
13990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13991
fi
 
13992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13993
    fi
 
13994
    if test $ac_cv_c_bigendian = unknown; then
 
13995
      # Compile a test program.
 
13996
      if test "$cross_compiling" = yes; then :
 
13997
  # Try to guess by grepping values from an object file.
 
13998
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13999
/* end confdefs.h.  */
 
14000
short int ascii_mm[] =
 
14001
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
14002
                short int ascii_ii[] =
 
14003
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
14004
                int use_ascii (int i) {
 
14005
                  return ascii_mm[i] + ascii_ii[i];
 
14006
                }
 
14007
                short int ebcdic_ii[] =
 
14008
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
14009
                short int ebcdic_mm[] =
 
14010
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
14011
                int use_ebcdic (int i) {
 
14012
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
14013
                }
 
14014
                extern int foo;
 
14015
 
 
14016
int
 
14017
main ()
 
14018
{
 
14019
return use_ascii (foo) == use_ebcdic (foo);
 
14020
  ;
 
14021
  return 0;
 
14022
}
 
14023
_ACEOF
 
14024
if ac_fn_c_try_compile "$LINENO"; then :
 
14025
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
14026
              ac_cv_c_bigendian=yes
 
14027
            fi
 
14028
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
14029
              if test "$ac_cv_c_bigendian" = unknown; then
 
14030
                ac_cv_c_bigendian=no
 
14031
              else
 
14032
                # finding both strings is unlikely to happen, but who knows?
 
14033
                ac_cv_c_bigendian=unknown
 
14034
              fi
 
14035
            fi
 
14036
fi
 
14037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14038
else
 
14039
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14040
/* end confdefs.h.  */
 
14041
$ac_includes_default
 
14042
int
 
14043
main ()
 
14044
{
 
14045
 
 
14046
             /* Are we little or big endian?  From Harbison&Steele.  */
 
14047
             union
 
14048
             {
 
14049
               long int l;
 
14050
               char c[sizeof (long int)];
 
14051
             } u;
 
14052
             u.l = 1;
 
14053
             return u.c[sizeof (long int) - 1] == 1;
 
14054
 
 
14055
  ;
 
14056
  return 0;
 
14057
}
 
14058
_ACEOF
 
14059
if ac_fn_c_try_run "$LINENO"; then :
 
14060
  ac_cv_c_bigendian=no
 
14061
else
 
14062
  ac_cv_c_bigendian=yes
 
14063
fi
 
14064
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14065
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14066
fi
 
14067
 
 
14068
    fi
 
14069
fi
 
14070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
14071
$as_echo "$ac_cv_c_bigendian" >&6; }
 
14072
 case $ac_cv_c_bigendian in #(
 
14073
   yes)
 
14074
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
14075
;; #(
 
14076
   no)
 
14077
      ;; #(
 
14078
   universal)
 
14079
 
 
14080
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
14081
 
 
14082
     ;; #(
 
14083
   *)
 
14084
     as_fn_error $? "unknown endianness
 
14085
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
14086
 esac
 
14087
 
 
14088
if test "x$CC" != xcc; then
 
14089
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
14090
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
14091
else
 
14092
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
14093
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
14094
fi
 
14095
set dummy $CC; ac_cc=`$as_echo "$2" |
 
14096
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
14097
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
14098
  $as_echo_n "(cached) " >&6
 
14099
else
 
14100
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14101
/* end confdefs.h.  */
 
14102
 
 
14103
int
 
14104
main ()
 
14105
{
 
14106
 
 
14107
  ;
 
14108
  return 0;
 
14109
}
 
14110
_ACEOF
 
14111
# Make sure it works both with $CC and with simple cc.
 
14112
# We do the test twice because some compilers refuse to overwrite an
 
14113
# existing .o file with -o, though they will create one.
 
14114
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
14115
rm -f conftest2.*
 
14116
if { { case "(($ac_try" in
 
14117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14118
  *) ac_try_echo=$ac_try;;
 
14119
esac
 
14120
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14121
$as_echo "$ac_try_echo"; } >&5
 
14122
  (eval "$ac_try") 2>&5
 
14123
  ac_status=$?
 
14124
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14125
  test $ac_status = 0; } &&
 
14126
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
14127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14128
  *) ac_try_echo=$ac_try;;
 
14129
esac
 
14130
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14131
$as_echo "$ac_try_echo"; } >&5
 
14132
  (eval "$ac_try") 2>&5
 
14133
  ac_status=$?
 
14134
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14135
  test $ac_status = 0; };
 
14136
then
 
14137
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
14138
  if test "x$CC" != xcc; then
 
14139
    # Test first that cc exists at all.
 
14140
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
14141
  { { case "(($ac_try" in
 
14142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14143
  *) ac_try_echo=$ac_try;;
 
14144
esac
 
14145
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14146
$as_echo "$ac_try_echo"; } >&5
 
14147
  (eval "$ac_try") 2>&5
 
14148
  ac_status=$?
 
14149
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14150
  test $ac_status = 0; }; }; then
 
14151
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
14152
      rm -f conftest2.*
 
14153
      if { { case "(($ac_try" in
 
14154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14155
  *) ac_try_echo=$ac_try;;
 
14156
esac
 
14157
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14158
$as_echo "$ac_try_echo"; } >&5
 
14159
  (eval "$ac_try") 2>&5
 
14160
  ac_status=$?
 
14161
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14162
  test $ac_status = 0; } &&
 
14163
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
14164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14165
  *) ac_try_echo=$ac_try;;
 
14166
esac
 
14167
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14168
$as_echo "$ac_try_echo"; } >&5
 
14169
  (eval "$ac_try") 2>&5
 
14170
  ac_status=$?
 
14171
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14172
  test $ac_status = 0; };
 
14173
      then
 
14174
        # cc works too.
 
14175
        :
 
14176
      else
 
14177
        # cc exists but doesn't like -o.
 
14178
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
14179
      fi
 
14180
    fi
 
14181
  fi
 
14182
else
 
14183
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
14184
fi
 
14185
rm -f core conftest*
 
14186
 
 
14187
fi
 
14188
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
14189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14190
$as_echo "yes" >&6; }
 
14191
else
 
14192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14193
$as_echo "no" >&6; }
 
14194
 
 
14195
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
14196
 
 
14197
fi
 
14198
 
 
14199
# FIXME: we rely on the cache variable name because
 
14200
# there is no other way.
 
14201
set dummy $CC
 
14202
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
14203
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
14204
if test "$am_t" != yes; then
 
14205
   # Losing compiler, so override with the script.
 
14206
   # FIXME: It is wrong to rewrite CC.
 
14207
   # But if we don't then we get into trouble of one sort or another.
 
14208
   # A longer-term fix would be to have automake use am__CC in this case,
 
14209
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
14210
   CC="$am_aux_dir/compile $CC"
 
14211
fi
 
14212
 
 
14213
 
 
14214
 
 
14215
ac_ext=cpp
 
14216
ac_cpp='$CXXCPP $CPPFLAGS'
 
14217
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14218
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14219
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14220
if test -z "$CXX"; then
 
14221
  if test -n "$CCC"; then
 
14222
    CXX=$CCC
 
14223
  else
 
14224
    if test -n "$ac_tool_prefix"; then
 
14225
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
14226
  do
 
14227
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
14228
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
14229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14230
$as_echo_n "checking for $ac_word... " >&6; }
 
14231
if ${ac_cv_prog_CXX+:} false; then :
 
14232
  $as_echo_n "(cached) " >&6
 
14233
else
 
14234
  if test -n "$CXX"; then
 
14235
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
14236
else
 
14237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14238
for as_dir in $PATH
 
14239
do
 
14240
  IFS=$as_save_IFS
 
14241
  test -z "$as_dir" && as_dir=.
 
14242
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14244
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
14245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14246
    break 2
 
14247
  fi
 
14248
done
 
14249
  done
 
14250
IFS=$as_save_IFS
 
14251
 
 
14252
fi
 
14253
fi
 
14254
CXX=$ac_cv_prog_CXX
 
14255
if test -n "$CXX"; then
 
14256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
14257
$as_echo "$CXX" >&6; }
 
14258
else
 
14259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14260
$as_echo "no" >&6; }
 
14261
fi
 
14262
 
 
14263
 
 
14264
    test -n "$CXX" && break
 
14265
  done
 
14266
fi
 
14267
if test -z "$CXX"; then
 
14268
  ac_ct_CXX=$CXX
 
14269
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
14270
do
 
14271
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
14272
set dummy $ac_prog; ac_word=$2
 
14273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14274
$as_echo_n "checking for $ac_word... " >&6; }
 
14275
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
14276
  $as_echo_n "(cached) " >&6
 
14277
else
 
14278
  if test -n "$ac_ct_CXX"; then
 
14279
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
14280
else
 
14281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14282
for as_dir in $PATH
 
14283
do
 
14284
  IFS=$as_save_IFS
 
14285
  test -z "$as_dir" && as_dir=.
 
14286
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14287
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14288
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
14289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14290
    break 2
 
14291
  fi
 
14292
done
 
14293
  done
 
14294
IFS=$as_save_IFS
 
14295
 
 
14296
fi
 
14297
fi
 
14298
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
14299
if test -n "$ac_ct_CXX"; then
 
14300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
14301
$as_echo "$ac_ct_CXX" >&6; }
 
14302
else
 
14303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14304
$as_echo "no" >&6; }
 
14305
fi
 
14306
 
 
14307
 
 
14308
  test -n "$ac_ct_CXX" && break
 
14309
done
 
14310
 
 
14311
  if test "x$ac_ct_CXX" = x; then
 
14312
    CXX="g++"
 
14313
  else
 
14314
    case $cross_compiling:$ac_tool_warned in
 
14315
yes:)
 
14316
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14317
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14318
ac_tool_warned=yes ;;
 
14319
esac
 
14320
    CXX=$ac_ct_CXX
 
14321
  fi
 
14322
fi
 
14323
 
 
14324
  fi
 
14325
fi
 
14326
# Provide some information about the compiler.
 
14327
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
14328
set X $ac_compile
 
14329
ac_compiler=$2
 
14330
for ac_option in --version -v -V -qversion; do
 
14331
  { { ac_try="$ac_compiler $ac_option >&5"
 
14332
case "(($ac_try" in
 
14333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14334
  *) ac_try_echo=$ac_try;;
 
14335
esac
 
14336
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
14337
$as_echo "$ac_try_echo"; } >&5
 
14338
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
14339
  ac_status=$?
 
14340
  if test -s conftest.err; then
 
14341
    sed '10a\
 
14342
... rest of stderr output deleted ...
 
14343
         10q' conftest.err >conftest.er1
 
14344
    cat conftest.er1 >&5
 
14345
  fi
 
14346
  rm -f conftest.er1 conftest.err
 
14347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14348
  test $ac_status = 0; }
 
14349
done
 
14350
 
 
14351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
14352
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
14353
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
14354
  $as_echo_n "(cached) " >&6
 
14355
else
 
14356
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14357
/* end confdefs.h.  */
 
14358
 
 
14359
int
 
14360
main ()
 
14361
{
 
14362
#ifndef __GNUC__
 
14363
       choke me
 
14364
#endif
 
14365
 
 
14366
  ;
 
14367
  return 0;
 
14368
}
 
14369
_ACEOF
 
14370
if ac_fn_cxx_try_compile "$LINENO"; then :
 
14371
  ac_compiler_gnu=yes
 
14372
else
 
14373
  ac_compiler_gnu=no
 
14374
fi
 
14375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14376
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
14377
 
 
14378
fi
 
14379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
14380
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
14381
if test $ac_compiler_gnu = yes; then
 
14382
  GXX=yes
 
14383
else
 
14384
  GXX=
 
14385
fi
 
14386
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
14387
ac_save_CXXFLAGS=$CXXFLAGS
 
14388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
14389
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
14390
if ${ac_cv_prog_cxx_g+:} false; then :
 
14391
  $as_echo_n "(cached) " >&6
 
14392
else
 
14393
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
14394
   ac_cxx_werror_flag=yes
 
14395
   ac_cv_prog_cxx_g=no
 
14396
   CXXFLAGS="-g"
 
14397
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14398
/* end confdefs.h.  */
 
14399
 
 
14400
int
 
14401
main ()
 
14402
{
 
14403
 
 
14404
  ;
 
14405
  return 0;
 
14406
}
 
14407
_ACEOF
 
14408
if ac_fn_cxx_try_compile "$LINENO"; then :
 
14409
  ac_cv_prog_cxx_g=yes
 
14410
else
 
14411
  CXXFLAGS=""
 
14412
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14413
/* end confdefs.h.  */
 
14414
 
 
14415
int
 
14416
main ()
 
14417
{
 
14418
 
 
14419
  ;
 
14420
  return 0;
 
14421
}
 
14422
_ACEOF
 
14423
if ac_fn_cxx_try_compile "$LINENO"; then :
 
14424
 
 
14425
else
 
14426
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
14427
         CXXFLAGS="-g"
 
14428
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14429
/* end confdefs.h.  */
 
14430
 
 
14431
int
 
14432
main ()
 
14433
{
 
14434
 
 
14435
  ;
 
14436
  return 0;
 
14437
}
 
14438
_ACEOF
 
14439
if ac_fn_cxx_try_compile "$LINENO"; then :
 
14440
  ac_cv_prog_cxx_g=yes
 
14441
fi
 
14442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14443
fi
 
14444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14445
fi
 
14446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14447
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
14448
fi
 
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
14450
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
14451
if test "$ac_test_CXXFLAGS" = set; then
 
14452
  CXXFLAGS=$ac_save_CXXFLAGS
 
14453
elif test $ac_cv_prog_cxx_g = yes; then
 
14454
  if test "$GXX" = yes; then
 
14455
    CXXFLAGS="-g -O2"
 
14456
  else
 
14457
    CXXFLAGS="-g"
 
14458
  fi
 
14459
else
 
14460
  if test "$GXX" = yes; then
 
14461
    CXXFLAGS="-O2"
 
14462
  else
 
14463
    CXXFLAGS=
 
14464
  fi
 
14465
fi
 
14466
ac_ext=c
 
14467
ac_cpp='$CPP $CPPFLAGS'
 
14468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14471
 
 
14472
depcc="$CXX"  am_compiler_list=
 
14473
 
 
14474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
14475
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
14476
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
14477
  $as_echo_n "(cached) " >&6
 
14478
else
 
14479
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
14480
  # We make a subdir and do the tests there.  Otherwise we can end up
 
14481
  # making bogus files that we don't know about and never remove.  For
 
14482
  # instance it was reported that on HP-UX the gcc test will end up
 
14483
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
14484
  # in D".
 
14485
  rm -rf conftest.dir
 
14486
  mkdir conftest.dir
 
14487
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
14488
  # using a relative directory.
 
14489
  cp "$am_depcomp" conftest.dir
 
14490
  cd conftest.dir
 
14491
  # We will build objects and dependencies in a subdirectory because
 
14492
  # it helps to detect inapplicable dependency modes.  For instance
 
14493
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
14494
  # side effect of compilation, but ICC will put the dependencies in
 
14495
  # the current directory while Tru64 will put them in the object
 
14496
  # directory.
 
14497
  mkdir sub
 
14498
 
 
14499
  am_cv_CXX_dependencies_compiler_type=none
 
14500
  if test "$am_compiler_list" = ""; then
 
14501
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
14502
  fi
 
14503
  am__universal=false
 
14504
  case " $depcc " in #(
 
14505
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
14506
     esac
 
14507
 
 
14508
  for depmode in $am_compiler_list; do
 
14509
    # Setup a source with many dependencies, because some compilers
 
14510
    # like to wrap large dependency lists on column 80 (with \), and
 
14511
    # we should not choose a depcomp mode which is confused by this.
 
14512
    #
 
14513
    # We need to recreate these files for each test, as the compiler may
 
14514
    # overwrite some of them when testing with obscure command lines.
 
14515
    # This happens at least with the AIX C compiler.
 
14516
    : > sub/conftest.c
 
14517
    for i in 1 2 3 4 5 6; do
 
14518
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
14519
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
14520
      # Solaris 10 /bin/sh.
 
14521
      echo '/* dummy */' > sub/conftst$i.h
 
14522
    done
 
14523
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
14524
 
 
14525
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
14526
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
14527
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
14528
    # versions had trouble with output in subdirs.
 
14529
    am__obj=sub/conftest.${OBJEXT-o}
 
14530
    am__minus_obj="-o $am__obj"
 
14531
    case $depmode in
 
14532
    gcc)
 
14533
      # This depmode causes a compiler race in universal mode.
 
14534
      test "$am__universal" = false || continue
 
14535
      ;;
 
14536
    nosideeffect)
 
14537
      # After this tag, mechanisms are not by side-effect, so they'll
 
14538
      # only be used when explicitly requested.
 
14539
      if test "x$enable_dependency_tracking" = xyes; then
 
14540
        continue
 
14541
      else
 
14542
        break
 
14543
      fi
 
14544
      ;;
 
14545
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
14546
      # This compiler won't grok '-c -o', but also, the minuso test has
 
14547
      # not run yet.  These depmodes are late enough in the game, and
 
14548
      # so weak that their functioning should not be impacted.
 
14549
      am__obj=conftest.${OBJEXT-o}
 
14550
      am__minus_obj=
 
14551
      ;;
 
14552
    none) break ;;
 
14553
    esac
 
14554
    if depmode=$depmode \
 
14555
       source=sub/conftest.c object=$am__obj \
 
14556
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
14557
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
14558
         >/dev/null 2>conftest.err &&
 
14559
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
14560
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
14561
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
14562
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
14563
      # icc doesn't choke on unknown options, it will just issue warnings
 
14564
      # or remarks (even with -Werror).  So we grep stderr for any message
 
14565
      # that says an option was ignored or not supported.
 
14566
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
14567
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
14568
      # The diagnosis changed in icc 8.0:
 
14569
      #   icc: Command line remark: option '-MP' not supported
 
14570
      if (grep 'ignoring option' conftest.err ||
 
14571
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
14572
        am_cv_CXX_dependencies_compiler_type=$depmode
 
14573
        break
 
14574
      fi
 
14575
    fi
 
14576
  done
 
14577
 
 
14578
  cd ..
 
14579
  rm -rf conftest.dir
 
14580
else
 
14581
  am_cv_CXX_dependencies_compiler_type=none
 
14582
fi
 
14583
 
 
14584
fi
 
14585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
14586
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
14587
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
14588
 
 
14589
 if
 
14590
  test "x$enable_dependency_tracking" != xno \
 
14591
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
14592
  am__fastdepCXX_TRUE=
 
14593
  am__fastdepCXX_FALSE='#'
 
14594
else
 
14595
  am__fastdepCXX_TRUE='#'
 
14596
  am__fastdepCXX_FALSE=
 
14597
fi
 
14598
 
 
14599
 
 
14600
 
 
14601
 
 
14602
func_stripname_cnf ()
 
14603
{
 
14604
  case $2 in
 
14605
  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
 
14606
  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
 
14607
  esac
 
14608
} # func_stripname_cnf
 
14609
 
 
14610
      if test -n "$CXX" && ( test no != "$CXX" &&
 
14611
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 
14612
    (test g++ != "$CXX"))); then
 
14613
  ac_ext=cpp
 
14614
ac_cpp='$CXXCPP $CPPFLAGS'
 
14615
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14616
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14617
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
14619
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
14620
if test -z "$CXXCPP"; then
 
14621
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
14622
  $as_echo_n "(cached) " >&6
 
14623
else
 
14624
      # Double quotes because CXXCPP needs to be expanded
 
14625
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
14626
    do
 
14627
      ac_preproc_ok=false
 
14628
for ac_cxx_preproc_warn_flag in '' yes
 
14629
do
 
14630
  # Use a header file that comes with gcc, so configuring glibc
 
14631
  # with a fresh cross-compiler works.
 
14632
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14633
  # <limits.h> exists even on freestanding compilers.
 
14634
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
14635
  # not just through cpp. "Syntax error" is here to catch this case.
 
14636
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14637
/* end confdefs.h.  */
 
14638
#ifdef __STDC__
 
14639
# include <limits.h>
 
14640
#else
 
14641
# include <assert.h>
 
14642
#endif
 
14643
                     Syntax error
 
14644
_ACEOF
 
14645
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
14646
 
 
14647
else
 
14648
  # Broken: fails on valid input.
 
14649
continue
 
14650
fi
 
14651
rm -f conftest.err conftest.i conftest.$ac_ext
 
14652
 
 
14653
  # OK, works on sane cases.  Now check whether nonexistent headers
 
14654
  # can be detected and how.
 
14655
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14656
/* end confdefs.h.  */
 
14657
#include <ac_nonexistent.h>
 
14658
_ACEOF
 
14659
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
14660
  # Broken: success on invalid input.
 
14661
continue
 
14662
else
 
14663
  # Passes both tests.
 
14664
ac_preproc_ok=:
 
14665
break
 
14666
fi
 
14667
rm -f conftest.err conftest.i conftest.$ac_ext
 
14668
 
 
14669
done
 
14670
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
14671
rm -f conftest.i conftest.err conftest.$ac_ext
 
14672
if $ac_preproc_ok; then :
 
14673
  break
 
14674
fi
 
14675
 
 
14676
    done
 
14677
    ac_cv_prog_CXXCPP=$CXXCPP
 
14678
 
 
14679
fi
 
14680
  CXXCPP=$ac_cv_prog_CXXCPP
 
14681
else
 
14682
  ac_cv_prog_CXXCPP=$CXXCPP
 
14683
fi
 
14684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
14685
$as_echo "$CXXCPP" >&6; }
 
14686
ac_preproc_ok=false
 
14687
for ac_cxx_preproc_warn_flag in '' yes
 
14688
do
 
14689
  # Use a header file that comes with gcc, so configuring glibc
 
14690
  # with a fresh cross-compiler works.
 
14691
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14692
  # <limits.h> exists even on freestanding compilers.
 
14693
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
14694
  # not just through cpp. "Syntax error" is here to catch this case.
 
14695
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14696
/* end confdefs.h.  */
 
14697
#ifdef __STDC__
 
14698
# include <limits.h>
 
14699
#else
 
14700
# include <assert.h>
 
14701
#endif
 
14702
                     Syntax error
 
14703
_ACEOF
 
14704
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
14705
 
 
14706
else
 
14707
  # Broken: fails on valid input.
 
14708
continue
 
14709
fi
 
14710
rm -f conftest.err conftest.i conftest.$ac_ext
 
14711
 
 
14712
  # OK, works on sane cases.  Now check whether nonexistent headers
 
14713
  # can be detected and how.
 
14714
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14715
/* end confdefs.h.  */
 
14716
#include <ac_nonexistent.h>
 
14717
_ACEOF
 
14718
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
14719
  # Broken: success on invalid input.
 
14720
continue
 
14721
else
 
14722
  # Passes both tests.
 
14723
ac_preproc_ok=:
 
14724
break
 
14725
fi
 
14726
rm -f conftest.err conftest.i conftest.$ac_ext
 
14727
 
 
14728
done
 
14729
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
14730
rm -f conftest.i conftest.err conftest.$ac_ext
 
14731
if $ac_preproc_ok; then :
 
14732
 
 
14733
else
 
14734
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14735
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14736
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
14737
See \`config.log' for more details" "$LINENO" 5; }
 
14738
fi
 
14739
 
 
14740
ac_ext=c
 
14741
ac_cpp='$CPP $CPPFLAGS'
 
14742
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14743
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14744
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14745
 
 
14746
else
 
14747
  _lt_caught_CXX_error=yes
 
14748
fi
 
14749
 
 
14750
ac_ext=cpp
 
14751
ac_cpp='$CXXCPP $CPPFLAGS'
 
14752
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14753
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14754
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14755
 
 
14756
archive_cmds_need_lc_CXX=no
 
14757
allow_undefined_flag_CXX=
 
14758
always_export_symbols_CXX=no
 
14759
archive_expsym_cmds_CXX=
 
14760
compiler_needs_object_CXX=no
 
14761
export_dynamic_flag_spec_CXX=
 
14762
hardcode_direct_CXX=no
 
14763
hardcode_direct_absolute_CXX=no
 
14764
hardcode_libdir_flag_spec_CXX=
 
14765
hardcode_libdir_separator_CXX=
 
14766
hardcode_minus_L_CXX=no
 
14767
hardcode_shlibpath_var_CXX=unsupported
 
14768
hardcode_automatic_CXX=no
 
14769
inherit_rpath_CXX=no
 
14770
module_cmds_CXX=
 
14771
module_expsym_cmds_CXX=
 
14772
link_all_deplibs_CXX=unknown
 
14773
old_archive_cmds_CXX=$old_archive_cmds
 
14774
reload_flag_CXX=$reload_flag
 
14775
reload_cmds_CXX=$reload_cmds
 
14776
no_undefined_flag_CXX=
 
14777
whole_archive_flag_spec_CXX=
 
14778
enable_shared_with_static_runtimes_CXX=no
 
14779
 
 
14780
# Source file extension for C++ test sources.
 
14781
ac_ext=cpp
 
14782
 
 
14783
# Object file extension for compiled C++ test sources.
 
14784
objext=o
 
14785
objext_CXX=$objext
 
14786
 
 
14787
# No sense in running all these tests if we already determined that
 
14788
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
14789
# are currently assumed to apply to all compilers on this platform,
 
14790
# and will be corrupted by setting them based on a non-working compiler.
 
14791
if test yes != "$_lt_caught_CXX_error"; then
 
14792
  # Code to be used in simple compile tests
 
14793
  lt_simple_compile_test_code="int some_variable = 0;"
 
14794
 
 
14795
  # Code to be used in simple link tests
 
14796
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
14797
 
 
14798
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14799
 
 
14800
 
 
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
# If no C compiler was specified, use CC.
 
14806
LTCC=${LTCC-"$CC"}
 
14807
 
 
14808
# If no C compiler flags were specified, use CFLAGS.
 
14809
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14810
 
 
14811
# Allow CC to be a program name with arguments.
 
14812
compiler=$CC
 
14813
 
 
14814
 
 
14815
  # save warnings/boilerplate of simple test code
 
14816
  ac_outfile=conftest.$ac_objext
 
14817
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14818
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14819
_lt_compiler_boilerplate=`cat conftest.err`
 
14820
$RM conftest*
 
14821
 
 
14822
  ac_outfile=conftest.$ac_objext
 
14823
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14824
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14825
_lt_linker_boilerplate=`cat conftest.err`
 
14826
$RM -r conftest*
 
14827
 
 
14828
 
 
14829
  # Allow CC to be a program name with arguments.
 
14830
  lt_save_CC=$CC
 
14831
  lt_save_CFLAGS=$CFLAGS
 
14832
  lt_save_LD=$LD
 
14833
  lt_save_GCC=$GCC
 
14834
  GCC=$GXX
 
14835
  lt_save_with_gnu_ld=$with_gnu_ld
 
14836
  lt_save_path_LD=$lt_cv_path_LD
 
14837
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
14838
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
14839
  else
 
14840
    $as_unset lt_cv_prog_gnu_ld
 
14841
  fi
 
14842
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
14843
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
14844
  else
 
14845
    $as_unset lt_cv_path_LD
 
14846
  fi
 
14847
  test -z "${LDCXX+set}" || LD=$LDCXX
 
14848
  CC=${CXX-"c++"}
 
14849
  CFLAGS=$CXXFLAGS
 
14850
  compiler=$CC
 
14851
  compiler_CXX=$CC
 
14852
  func_cc_basename $compiler
 
14853
cc_basename=$func_cc_basename_result
 
14854
 
 
14855
 
 
14856
  if test -n "$compiler"; then
 
14857
    # We don't want -fno-exception when compiling C++ code, so set the
 
14858
    # no_builtin_flag separately
 
14859
    if test yes = "$GXX"; then
 
14860
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
14861
    else
 
14862
      lt_prog_compiler_no_builtin_flag_CXX=
 
14863
    fi
 
14864
 
 
14865
    if test yes = "$GXX"; then
 
14866
      # Set up default GNU C++ configuration
 
14867
 
 
14868
 
 
14869
 
 
14870
# Check whether --with-gnu-ld was given.
 
14871
if test "${with_gnu_ld+set}" = set; then :
 
14872
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 
14873
else
 
14874
  with_gnu_ld=no
 
14875
fi
 
14876
 
 
14877
ac_prog=ld
 
14878
if test yes = "$GCC"; then
 
14879
  # Check if gcc -print-prog-name=ld gives a path.
 
14880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
14881
$as_echo_n "checking for ld used by $CC... " >&6; }
 
14882
  case $host in
 
14883
  *-*-mingw*)
 
14884
    # gcc leaves a trailing carriage return, which upsets mingw
 
14885
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
14886
  *)
 
14887
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
14888
  esac
 
14889
  case $ac_prog in
 
14890
    # Accept absolute paths.
 
14891
    [\\/]* | ?:[\\/]*)
 
14892
      re_direlt='/[^/][^/]*/\.\./'
 
14893
      # Canonicalize the pathname of ld
 
14894
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
14895
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
14896
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
14897
      done
 
14898
      test -z "$LD" && LD=$ac_prog
 
14899
      ;;
 
14900
  "")
 
14901
    # If it fails, then pretend we aren't using GCC.
 
14902
    ac_prog=ld
 
14903
    ;;
 
14904
  *)
 
14905
    # If it is relative, then search for the first ld in PATH.
 
14906
    with_gnu_ld=unknown
 
14907
    ;;
 
14908
  esac
 
14909
elif test yes = "$with_gnu_ld"; then
 
14910
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
14911
$as_echo_n "checking for GNU ld... " >&6; }
 
14912
else
 
14913
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
14914
$as_echo_n "checking for non-GNU ld... " >&6; }
 
14915
fi
 
14916
if ${lt_cv_path_LD+:} false; then :
 
14917
  $as_echo_n "(cached) " >&6
 
14918
else
 
14919
  if test -z "$LD"; then
 
14920
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 
14921
  for ac_dir in $PATH; do
 
14922
    IFS=$lt_save_ifs
 
14923
    test -z "$ac_dir" && ac_dir=.
 
14924
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
14925
      lt_cv_path_LD=$ac_dir/$ac_prog
 
14926
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
14927
      # but apparently some variants of GNU ld only accept -v.
 
14928
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
14929
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
14930
      *GNU* | *'with BFD'*)
 
14931
        test no != "$with_gnu_ld" && break
 
14932
        ;;
 
14933
      *)
 
14934
        test yes != "$with_gnu_ld" && break
 
14935
        ;;
 
14936
      esac
 
14937
    fi
 
14938
  done
 
14939
  IFS=$lt_save_ifs
 
14940
else
 
14941
  lt_cv_path_LD=$LD # Let the user override the test with a path.
 
14942
fi
 
14943
fi
 
14944
 
 
14945
LD=$lt_cv_path_LD
 
14946
if test -n "$LD"; then
 
14947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
14948
$as_echo "$LD" >&6; }
 
14949
else
 
14950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14951
$as_echo "no" >&6; }
 
14952
fi
 
14953
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
14954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
14955
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
14956
if ${lt_cv_prog_gnu_ld+:} false; then :
 
14957
  $as_echo_n "(cached) " >&6
 
14958
else
 
14959
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
14960
case `$LD -v 2>&1 </dev/null` in
 
14961
*GNU* | *'with BFD'*)
 
14962
  lt_cv_prog_gnu_ld=yes
 
14963
  ;;
 
14964
*)
 
14965
  lt_cv_prog_gnu_ld=no
 
14966
  ;;
 
14967
esac
 
14968
fi
 
14969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
14970
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
14971
with_gnu_ld=$lt_cv_prog_gnu_ld
 
14972
 
 
14973
 
 
14974
 
 
14975
 
 
14976
 
 
14977
 
 
14978
 
 
14979
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
14980
      # archiving commands below assume that GNU ld is being used.
 
14981
      if test yes = "$with_gnu_ld"; then
 
14982
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
14983
        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'
 
14984
 
 
14985
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
14986
        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
14987
 
 
14988
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
14989
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
14990
        #     investigate it a little bit more. (MM)
 
14991
        wlarc='$wl'
 
14992
 
 
14993
        # ancient GNU ld didn't support --whole-archive et. al.
 
14994
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
14995
          $GREP 'no-whole-archive' > /dev/null; then
 
14996
          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 
14997
        else
 
14998
          whole_archive_flag_spec_CXX=
 
14999
        fi
 
15000
      else
 
15001
        with_gnu_ld=no
 
15002
        wlarc=
 
15003
 
 
15004
        # A generic and very simple default shared library creation
 
15005
        # command for GNU C++ for the case where it uses the native
 
15006
        # linker, instead of GNU ld.  If possible, this setting should
 
15007
        # overridden to take advantage of the native linker features on
 
15008
        # the platform it is being used on.
 
15009
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
15010
      fi
 
15011
 
 
15012
      # Commands to make compiler produce verbose output that lists
 
15013
      # what "hidden" libraries, object files and flags are used when
 
15014
      # linking a shared library.
 
15015
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
15016
 
 
15017
    else
 
15018
      GXX=no
 
15019
      with_gnu_ld=no
 
15020
      wlarc=
 
15021
    fi
 
15022
 
 
15023
    # PORTME: fill in a description of your system's C++ link characteristics
 
15024
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15025
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
15026
    ld_shlibs_CXX=yes
 
15027
    case $host_os in
 
15028
      aix3*)
 
15029
        # FIXME: insert proper C++ library support
 
15030
        ld_shlibs_CXX=no
 
15031
        ;;
 
15032
      aix[4-9]*)
 
15033
        if test ia64 = "$host_cpu"; then
 
15034
          # On IA64, the linker does run time linking by default, so we don't
 
15035
          # have to do anything special.
 
15036
          aix_use_runtimelinking=no
 
15037
          exp_sym_flag='-Bexport'
 
15038
          no_entry_flag=
 
15039
        else
 
15040
          aix_use_runtimelinking=no
 
15041
 
 
15042
          # Test if we are trying to use run time linking or normal
 
15043
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15044
          # have runtime linking enabled, and use it for executables.
 
15045
          # For shared libraries, we enable/disable runtime linking
 
15046
          # depending on the kind of the shared library created -
 
15047
          # when "with_aix_soname,aix_use_runtimelinking" is:
 
15048
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 
15049
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
 
15050
          #            lib.a           static archive
 
15051
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 
15052
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
 
15053
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 
15054
          #            lib.a(lib.so.V) shared, rtl:no
 
15055
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 
15056
          #            lib.a           static archive
 
15057
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15058
            for ld_flag in $LDFLAGS; do
 
15059
              case $ld_flag in
 
15060
              *-brtl*)
 
15061
                aix_use_runtimelinking=yes
 
15062
                break
 
15063
                ;;
 
15064
              esac
 
15065
            done
 
15066
            if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 
15067
              # With aix-soname=svr4, we create the lib.so.V shared archives only,
 
15068
              # so we don't have lib.a shared libs to link our executables.
 
15069
              # We have to force runtime linking in this case.
 
15070
              aix_use_runtimelinking=yes
 
15071
              LDFLAGS="$LDFLAGS -Wl,-brtl"
 
15072
            fi
 
15073
            ;;
 
15074
          esac
 
15075
 
 
15076
          exp_sym_flag='-bexport'
 
15077
          no_entry_flag='-bnoentry'
 
15078
        fi
 
15079
 
 
15080
        # When large executables or shared objects are built, AIX ld can
 
15081
        # have problems creating the table of contents.  If linking a library
 
15082
        # or program results in "error TOC overflow" add -mminimal-toc to
 
15083
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15084
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15085
 
 
15086
        archive_cmds_CXX=''
 
15087
        hardcode_direct_CXX=yes
 
15088
        hardcode_direct_absolute_CXX=yes
 
15089
        hardcode_libdir_separator_CXX=':'
 
15090
        link_all_deplibs_CXX=yes
 
15091
        file_list_spec_CXX='$wl-f,'
 
15092
        case $with_aix_soname,$aix_use_runtimelinking in
 
15093
        aix,*) ;;       # no import file
 
15094
        svr4,* | *,yes) # use import file
 
15095
          # The Import File defines what to hardcode.
 
15096
          hardcode_direct_CXX=no
 
15097
          hardcode_direct_absolute_CXX=no
 
15098
          ;;
 
15099
        esac
 
15100
 
 
15101
        if test yes = "$GXX"; then
 
15102
          case $host_os in aix4.[012]|aix4.[012].*)
 
15103
          # We only want to do this on AIX 4.2 and lower, the check
 
15104
          # below for broken collect2 doesn't work under 4.3+
 
15105
          collect2name=`$CC -print-prog-name=collect2`
 
15106
          if test -f "$collect2name" &&
 
15107
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
15108
          then
 
15109
            # We have reworked collect2
 
15110
            :
 
15111
          else
 
15112
            # We have old collect2
 
15113
            hardcode_direct_CXX=unsupported
 
15114
            # It fails to find uninstalled libraries when the uninstalled
 
15115
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
15116
            # to unsupported forces relinking
 
15117
            hardcode_minus_L_CXX=yes
 
15118
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
15119
            hardcode_libdir_separator_CXX=
 
15120
          fi
 
15121
          esac
 
15122
          shared_flag='-shared'
 
15123
          if test yes = "$aix_use_runtimelinking"; then
 
15124
            shared_flag=$shared_flag' $wl-G'
 
15125
          fi
 
15126
          # Need to ensure runtime linking is disabled for the traditional
 
15127
          # shared library, or the linker may eventually find shared libraries
 
15128
          # /with/ Import File - we do not want to mix them.
 
15129
          shared_flag_aix='-shared'
 
15130
          shared_flag_svr4='-shared $wl-G'
 
15131
        else
 
15132
          # not using gcc
 
15133
          if test ia64 = "$host_cpu"; then
 
15134
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15135
          # chokes on -Wl,-G. The following line is correct:
 
15136
          shared_flag='-G'
 
15137
          else
 
15138
            if test yes = "$aix_use_runtimelinking"; then
 
15139
              shared_flag='$wl-G'
 
15140
            else
 
15141
              shared_flag='$wl-bM:SRE'
 
15142
            fi
 
15143
            shared_flag_aix='$wl-bM:SRE'
 
15144
            shared_flag_svr4='$wl-G'
 
15145
          fi
 
15146
        fi
 
15147
 
 
15148
        export_dynamic_flag_spec_CXX='$wl-bexpall'
 
15149
        # It seems that -bexpall does not export symbols beginning with
 
15150
        # underscore (_), so it is better to generate a list of symbols to
 
15151
        # export.
 
15152
        always_export_symbols_CXX=yes
 
15153
        if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 
15154
          # Warning - without using the other runtime loading flags (-brtl),
 
15155
          # -berok will link without error, but may produce a broken library.
 
15156
          # The "-G" linker flag allows undefined symbols.
 
15157
          no_undefined_flag_CXX='-bernotok'
 
15158
          # Determine the default libpath from the value encoded in an empty
 
15159
          # executable.
 
15160
          if test set = "${lt_cv_aix_libpath+set}"; then
 
15161
  aix_libpath=$lt_cv_aix_libpath
 
15162
else
 
15163
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
15164
  $as_echo_n "(cached) " >&6
 
15165
else
 
15166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15167
/* end confdefs.h.  */
 
15168
 
 
15169
int
 
15170
main ()
 
15171
{
 
15172
 
 
15173
  ;
 
15174
  return 0;
 
15175
}
 
15176
_ACEOF
 
15177
if ac_fn_cxx_try_link "$LINENO"; then :
 
15178
 
 
15179
  lt_aix_libpath_sed='
 
15180
      /Import File Strings/,/^$/ {
 
15181
          /^0/ {
 
15182
              s/^0  *\([^ ]*\) *$/\1/
 
15183
              p
 
15184
          }
 
15185
      }'
 
15186
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15187
  # Check for a 64-bit object if we didn't find anything.
 
15188
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
15189
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15190
  fi
 
15191
fi
 
15192
rm -f core conftest.err conftest.$ac_objext \
 
15193
    conftest$ac_exeext conftest.$ac_ext
 
15194
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
15195
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
 
15196
  fi
 
15197
 
 
15198
fi
 
15199
 
 
15200
  aix_libpath=$lt_cv_aix_libpath__CXX
 
15201
fi
 
15202
 
 
15203
          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
 
15204
 
 
15205
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 
15206
        else
 
15207
          if test ia64 = "$host_cpu"; then
 
15208
            hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
 
15209
            allow_undefined_flag_CXX="-z nodefs"
 
15210
            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"
 
15211
          else
 
15212
            # Determine the default libpath from the value encoded in an
 
15213
            # empty executable.
 
15214
            if test set = "${lt_cv_aix_libpath+set}"; then
 
15215
  aix_libpath=$lt_cv_aix_libpath
 
15216
else
 
15217
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
15218
  $as_echo_n "(cached) " >&6
 
15219
else
 
15220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15221
/* end confdefs.h.  */
 
15222
 
 
15223
int
 
15224
main ()
 
15225
{
 
15226
 
 
15227
  ;
 
15228
  return 0;
 
15229
}
 
15230
_ACEOF
 
15231
if ac_fn_cxx_try_link "$LINENO"; then :
 
15232
 
 
15233
  lt_aix_libpath_sed='
 
15234
      /Import File Strings/,/^$/ {
 
15235
          /^0/ {
 
15236
              s/^0  *\([^ ]*\) *$/\1/
 
15237
              p
 
15238
          }
 
15239
      }'
 
15240
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15241
  # Check for a 64-bit object if we didn't find anything.
 
15242
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
15243
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15244
  fi
 
15245
fi
 
15246
rm -f core conftest.err conftest.$ac_objext \
 
15247
    conftest$ac_exeext conftest.$ac_ext
 
15248
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
15249
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
 
15250
  fi
 
15251
 
 
15252
fi
 
15253
 
 
15254
  aix_libpath=$lt_cv_aix_libpath__CXX
 
15255
fi
 
15256
 
 
15257
            hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
 
15258
            # Warning - without using the other run time loading flags,
 
15259
            # -berok will link without error, but may produce a broken library.
 
15260
            no_undefined_flag_CXX=' $wl-bernotok'
 
15261
            allow_undefined_flag_CXX=' $wl-berok'
 
15262
            if test yes = "$with_gnu_ld"; then
 
15263
              # We only use this code for GNU lds that support --whole-archive.
 
15264
              whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
 
15265
            else
 
15266
              # Exported symbols can be pulled into shared objects from archives
 
15267
              whole_archive_flag_spec_CXX='$convenience'
 
15268
            fi
 
15269
            archive_cmds_need_lc_CXX=yes
 
15270
            archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 
15271
            # -brtl affects multiple linker settings, -berok does not and is overridden later
 
15272
            compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
 
15273
            if test svr4 != "$with_aix_soname"; then
 
15274
              # This is similar to how AIX traditionally builds its shared
 
15275
              # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 
15276
              archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 
15277
            fi
 
15278
            if test aix != "$with_aix_soname"; then
 
15279
              archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 
15280
            else
 
15281
              # used by -dlpreopen to get the symbols
 
15282
              archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 
15283
            fi
 
15284
            archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
 
15285
          fi
 
15286
        fi
 
15287
        ;;
 
15288
 
 
15289
      beos*)
 
15290
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
15291
          allow_undefined_flag_CXX=unsupported
 
15292
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15293
          # support --undefined.  This deserves some investigation.  FIXME
 
15294
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
15295
        else
 
15296
          ld_shlibs_CXX=no
 
15297
        fi
 
15298
        ;;
 
15299
 
 
15300
      chorus*)
 
15301
        case $cc_basename in
 
15302
          *)
 
15303
          # FIXME: insert proper C++ library support
 
15304
          ld_shlibs_CXX=no
 
15305
          ;;
 
15306
        esac
 
15307
        ;;
 
15308
 
 
15309
      cygwin* | mingw* | pw32* | cegcc*)
 
15310
        case $GXX,$cc_basename in
 
15311
        ,cl* | no,cl*)
 
15312
          # Native MSVC
 
15313
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15314
          # no search path for DLLs.
 
15315
          hardcode_libdir_flag_spec_CXX=' '
 
15316
          allow_undefined_flag_CXX=unsupported
 
15317
          always_export_symbols_CXX=yes
 
15318
          file_list_spec_CXX='@'
 
15319
          # Tell ltmain to make .lib files, not .a files.
 
15320
          libext=lib
 
15321
          # Tell ltmain to make .dll files, not .so files.
 
15322
          shrext_cmds=.dll
 
15323
          # FIXME: Setting linknames here is a bad hack.
 
15324
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
15325
          archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
15326
              cp "$export_symbols" "$output_objdir/$soname.def";
 
15327
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
15328
            else
 
15329
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
15330
            fi~
 
15331
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
15332
            linknames='
 
15333
          # The linker will not automatically build a static lib if we build a DLL.
 
15334
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
15335
          enable_shared_with_static_runtimes_CXX=yes
 
15336
          # Don't use ranlib
 
15337
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
15338
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
15339
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
15340
            case $lt_outputfile in
 
15341
              *.exe|*.EXE) ;;
 
15342
              *)
 
15343
                lt_outputfile=$lt_outputfile.exe
 
15344
                lt_tool_outputfile=$lt_tool_outputfile.exe
 
15345
                ;;
 
15346
            esac~
 
15347
            func_to_tool_file "$lt_outputfile"~
 
15348
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
15349
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
15350
              $RM "$lt_outputfile.manifest";
 
15351
            fi'
 
15352
          ;;
 
15353
        *)
 
15354
          # g++
 
15355
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
15356
          # as there is no search path for DLLs.
 
15357
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
15358
          export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
 
15359
          allow_undefined_flag_CXX=unsupported
 
15360
          always_export_symbols_CXX=no
 
15361
          enable_shared_with_static_runtimes_CXX=yes
 
15362
 
 
15363
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
15364
            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'
 
15365
            # If the export-symbols file already is a .def file, use it as
 
15366
            # is; otherwise, prepend EXPORTS...
 
15367
            archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
15368
              cp $export_symbols $output_objdir/$soname.def;
 
15369
            else
 
15370
              echo EXPORTS > $output_objdir/$soname.def;
 
15371
              cat $export_symbols >> $output_objdir/$soname.def;
 
15372
            fi~
 
15373
            $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'
 
15374
          else
 
15375
            ld_shlibs_CXX=no
 
15376
          fi
 
15377
          ;;
 
15378
        esac
 
15379
        ;;
 
15380
      darwin* | rhapsody*)
 
15381
 
 
15382
 
 
15383
  archive_cmds_need_lc_CXX=no
 
15384
  hardcode_direct_CXX=no
 
15385
  hardcode_automatic_CXX=yes
 
15386
  hardcode_shlibpath_var_CXX=unsupported
 
15387
  if test yes = "$lt_cv_ld_force_load"; then
 
15388
    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\"`'
 
15389
 
 
15390
  else
 
15391
    whole_archive_flag_spec_CXX=''
 
15392
  fi
 
15393
  link_all_deplibs_CXX=yes
 
15394
  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
 
15395
  case $cc_basename in
 
15396
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 
15397
     *) _lt_dar_can_shared=$GCC ;;
 
15398
  esac
 
15399
  if test yes = "$_lt_dar_can_shared"; then
 
15400
    output_verbose_link_cmd=func_echo_all
 
15401
    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"
 
15402
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
15403
    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"
 
15404
    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"
 
15405
       if test yes != "$lt_cv_apple_cc_single_mod"; then
 
15406
      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"
 
15407
      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"
 
15408
    fi
 
15409
 
 
15410
  else
 
15411
  ld_shlibs_CXX=no
 
15412
  fi
 
15413
 
 
15414
        ;;
 
15415
 
 
15416
      os2*)
 
15417
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
15418
        hardcode_minus_L_CXX=yes
 
15419
        allow_undefined_flag_CXX=unsupported
 
15420
        shrext_cmds=.dll
 
15421
        archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
15422
          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
15423
          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
15424
          $ECHO EXPORTS >> $output_objdir/$libname.def~
 
15425
          emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
15426
          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
15427
          emximp -o $lib $output_objdir/$libname.def'
 
15428
        archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
15429
          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
15430
          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
15431
          $ECHO EXPORTS >> $output_objdir/$libname.def~
 
15432
          prefix_cmds="$SED"~
 
15433
          if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
15434
            prefix_cmds="$prefix_cmds -e 1d";
 
15435
          fi~
 
15436
          prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
15437
          cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
15438
          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
15439
          emximp -o $lib $output_objdir/$libname.def'
 
15440
        old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
15441
        enable_shared_with_static_runtimes_CXX=yes
 
15442
        ;;
 
15443
 
 
15444
      dgux*)
 
15445
        case $cc_basename in
 
15446
          ec++*)
 
15447
            # FIXME: insert proper C++ library support
 
15448
            ld_shlibs_CXX=no
 
15449
            ;;
 
15450
          ghcx*)
 
15451
            # Green Hills C++ Compiler
 
15452
            # FIXME: insert proper C++ library support
 
15453
            ld_shlibs_CXX=no
 
15454
            ;;
 
15455
          *)
 
15456
            # FIXME: insert proper C++ library support
 
15457
            ld_shlibs_CXX=no
 
15458
            ;;
 
15459
        esac
 
15460
        ;;
 
15461
 
 
15462
      freebsd2.*)
 
15463
        # C++ shared libraries reported to be fairly broken before
 
15464
        # switch to ELF
 
15465
        ld_shlibs_CXX=no
 
15466
        ;;
 
15467
 
 
15468
      freebsd-elf*)
 
15469
        archive_cmds_need_lc_CXX=no
 
15470
        ;;
 
15471
 
 
15472
      freebsd* | dragonfly*)
 
15473
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
15474
        # conventions
 
15475
        ld_shlibs_CXX=yes
 
15476
        ;;
 
15477
 
 
15478
      haiku*)
 
15479
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
15480
        link_all_deplibs_CXX=yes
 
15481
        ;;
 
15482
 
 
15483
      hpux9*)
 
15484
        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
 
15485
        hardcode_libdir_separator_CXX=:
 
15486
        export_dynamic_flag_spec_CXX='$wl-E'
 
15487
        hardcode_direct_CXX=yes
 
15488
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
15489
                                             # but as the default
 
15490
                                             # location of the library.
 
15491
 
 
15492
        case $cc_basename in
 
15493
          CC*)
 
15494
            # FIXME: insert proper C++ library support
 
15495
            ld_shlibs_CXX=no
 
15496
            ;;
 
15497
          aCC*)
 
15498
            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
15499
            # Commands to make compiler produce verbose output that lists
 
15500
            # what "hidden" libraries, object files and flags are used when
 
15501
            # linking a shared library.
 
15502
            #
 
15503
            # There doesn't appear to be a way to prevent this compiler from
 
15504
            # explicitly linking system object files so we need to strip them
 
15505
            # from the output so that they don't get included in the library
 
15506
            # dependencies.
 
15507
            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"'
 
15508
            ;;
 
15509
          *)
 
15510
            if test yes = "$GXX"; then
 
15511
              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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 
15512
            else
 
15513
              # FIXME: insert proper C++ library support
 
15514
              ld_shlibs_CXX=no
 
15515
            fi
 
15516
            ;;
 
15517
        esac
 
15518
        ;;
 
15519
 
 
15520
      hpux10*|hpux11*)
 
15521
        if test no = "$with_gnu_ld"; then
 
15522
          hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
 
15523
          hardcode_libdir_separator_CXX=:
 
15524
 
 
15525
          case $host_cpu in
 
15526
            hppa*64*|ia64*)
 
15527
              ;;
 
15528
            *)
 
15529
              export_dynamic_flag_spec_CXX='$wl-E'
 
15530
              ;;
 
15531
          esac
 
15532
        fi
 
15533
        case $host_cpu in
 
15534
          hppa*64*|ia64*)
 
15535
            hardcode_direct_CXX=no
 
15536
            hardcode_shlibpath_var_CXX=no
 
15537
            ;;
 
15538
          *)
 
15539
            hardcode_direct_CXX=yes
 
15540
            hardcode_direct_absolute_CXX=yes
 
15541
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
15542
                                                 # but as the default
 
15543
                                                 # location of the library.
 
15544
            ;;
 
15545
        esac
 
15546
 
 
15547
        case $cc_basename in
 
15548
          CC*)
 
15549
            # FIXME: insert proper C++ library support
 
15550
            ld_shlibs_CXX=no
 
15551
            ;;
 
15552
          aCC*)
 
15553
            case $host_cpu in
 
15554
              hppa*64*)
 
15555
                archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15556
                ;;
 
15557
              ia64*)
 
15558
                archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15559
                ;;
 
15560
              *)
 
15561
                archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15562
                ;;
 
15563
            esac
 
15564
            # Commands to make compiler produce verbose output that lists
 
15565
            # what "hidden" libraries, object files and flags are used when
 
15566
            # linking a shared library.
 
15567
            #
 
15568
            # There doesn't appear to be a way to prevent this compiler from
 
15569
            # explicitly linking system object files so we need to strip them
 
15570
            # from the output so that they don't get included in the library
 
15571
            # dependencies.
 
15572
            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"'
 
15573
            ;;
 
15574
          *)
 
15575
            if test yes = "$GXX"; then
 
15576
              if test no = "$with_gnu_ld"; then
 
15577
                case $host_cpu in
 
15578
                  hppa*64*)
 
15579
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15580
                    ;;
 
15581
                  ia64*)
 
15582
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15583
                    ;;
 
15584
                  *)
 
15585
                    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'
 
15586
                    ;;
 
15587
                esac
 
15588
              fi
 
15589
            else
 
15590
              # FIXME: insert proper C++ library support
 
15591
              ld_shlibs_CXX=no
 
15592
            fi
 
15593
            ;;
 
15594
        esac
 
15595
        ;;
 
15596
 
 
15597
      interix[3-9]*)
 
15598
        hardcode_direct_CXX=no
 
15599
        hardcode_shlibpath_var_CXX=no
 
15600
        hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
15601
        export_dynamic_flag_spec_CXX='$wl-E'
 
15602
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15603
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15604
        # default) and relocated if they conflict, which is a slow very memory
 
15605
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
15606
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15607
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15608
        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'
 
15609
        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'
 
15610
        ;;
 
15611
      irix5* | irix6*)
 
15612
        case $cc_basename in
 
15613
          CC*)
 
15614
            # SGI C++
 
15615
            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'
 
15616
 
 
15617
            # Archives containing C++ object files must be created using
 
15618
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
15619
            # necessary to make sure instantiated templates are included
 
15620
            # in the archive.
 
15621
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
15622
            ;;
 
15623
          *)
 
15624
            if test yes = "$GXX"; then
 
15625
              if test no = "$with_gnu_ld"; then
 
15626
                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'
 
15627
              else
 
15628
                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'
 
15629
              fi
 
15630
            fi
 
15631
            link_all_deplibs_CXX=yes
 
15632
            ;;
 
15633
        esac
 
15634
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15635
        hardcode_libdir_separator_CXX=:
 
15636
        inherit_rpath_CXX=yes
 
15637
        ;;
 
15638
 
 
15639
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
15640
        case $cc_basename in
 
15641
          KCC*)
 
15642
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
15643
 
 
15644
            # KCC will only create a shared library if the output file
 
15645
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
15646
            # to its proper name (with version) after linking.
 
15647
            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'
 
15648
            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'
 
15649
            # Commands to make compiler produce verbose output that lists
 
15650
            # what "hidden" libraries, object files and flags are used when
 
15651
            # linking a shared library.
 
15652
            #
 
15653
            # There doesn't appear to be a way to prevent this compiler from
 
15654
            # explicitly linking system object files so we need to strip them
 
15655
            # from the output so that they don't get included in the library
 
15656
            # dependencies.
 
15657
            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"'
 
15658
 
 
15659
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
15660
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
15661
 
 
15662
            # Archives containing C++ object files must be created using
 
15663
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
15664
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
15665
            ;;
 
15666
          icpc* | ecpc* )
 
15667
            # Intel C++
 
15668
            with_gnu_ld=yes
 
15669
            # version 8.0 and above of icpc choke on multiply defined symbols
 
15670
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
15671
            # earlier do not add the objects themselves.
 
15672
            case `$CC -V 2>&1` in
 
15673
              *"Version 7."*)
 
15674
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15675
                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'
 
15676
                ;;
 
15677
              *)  # Version 8.0 or newer
 
15678
                tmp_idyn=
 
15679
                case $host_cpu in
 
15680
                  ia64*) tmp_idyn=' -i_dynamic';;
 
15681
                esac
 
15682
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
15683
                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'
 
15684
                ;;
 
15685
            esac
 
15686
            archive_cmds_need_lc_CXX=no
 
15687
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
15688
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
15689
            whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
 
15690
            ;;
 
15691
          pgCC* | pgcpp*)
 
15692
            # Portland Group C++ compiler
 
15693
            case `$CC -V` in
 
15694
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
15695
              prelink_cmds_CXX='tpldir=Template.dir~
 
15696
               rm -rf $tpldir~
 
15697
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
15698
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
15699
              old_archive_cmds_CXX='tpldir=Template.dir~
 
15700
                rm -rf $tpldir~
 
15701
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
15702
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
15703
                $RANLIB $oldlib'
 
15704
              archive_cmds_CXX='tpldir=Template.dir~
 
15705
                rm -rf $tpldir~
 
15706
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
15707
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15708
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
15709
                rm -rf $tpldir~
 
15710
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
15711
                $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'
 
15712
              ;;
 
15713
            *) # Version 6 and above use weak symbols
 
15714
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15715
              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'
 
15716
              ;;
 
15717
            esac
 
15718
 
 
15719
            hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15720
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
15721
            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'
 
15722
            ;;
 
15723
          cxx*)
 
15724
            # Compaq C++
 
15725
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15726
            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'
 
15727
 
 
15728
            runpath_var=LD_RUN_PATH
 
15729
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
15730
            hardcode_libdir_separator_CXX=:
 
15731
 
 
15732
            # Commands to make compiler produce verbose output that lists
 
15733
            # what "hidden" libraries, object files and flags are used when
 
15734
            # linking a shared library.
 
15735
            #
 
15736
            # There doesn't appear to be a way to prevent this compiler from
 
15737
            # explicitly linking system object files so we need to strip them
 
15738
            # from the output so that they don't get included in the library
 
15739
            # dependencies.
 
15740
            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'
 
15741
            ;;
 
15742
          xl* | mpixl* | bgxl*)
 
15743
            # IBM XL 8.0 on PPC, with GNU ld
 
15744
            hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15745
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
15746
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
15747
            if test yes = "$supports_anon_versioning"; then
 
15748
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
15749
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15750
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
15751
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 
15752
            fi
 
15753
            ;;
 
15754
          *)
 
15755
            case `$CC -V 2>&1` in
 
15756
            *Sun\ C*)
 
15757
              # Sun C++ 5.9
 
15758
              no_undefined_flag_CXX=' -zdefs'
 
15759
              archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15760
              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'
 
15761
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
15762
              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'
 
15763
              compiler_needs_object_CXX=yes
 
15764
 
 
15765
              # Not sure whether something based on
 
15766
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
15767
              # would be better.
 
15768
              output_verbose_link_cmd='func_echo_all'
 
15769
 
 
15770
              # Archives containing C++ object files must be created using
 
15771
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
15772
              # necessary to make sure instantiated templates are included
 
15773
              # in the archive.
 
15774
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
15775
              ;;
 
15776
            *Cray\ C*)          # Cray C++ compiler
 
15777
              # If STRIP is set while creating a shared library with
 
15778
              # the Cray compiler, the library has its symbols
 
15779
              # removed.  So we unset and restore it.
 
15780
              archive_cmds_CXX='save_STRIP=$STRIP; unset STRIP; $CC -shared $wl-soname $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags; ret=\$?; STRIP=\$save_STRIP; export STRIP; (exit \$ret)'
 
15781
              archive_expsym_cmds_CXX=''
 
15782
              hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15783
              whole_archive_flag_spec_CXX='-vv $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'
 
15784
              compiler_needs_object_CXX=yes
 
15785
 
 
15786
              # Not sure whether something based on
 
15787
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
15788
              # would be better.
 
15789
              output_verbose_link_cmd='func_echo_all'
 
15790
              ;;
 
15791
            *pgCC* | *pgcpp*)
 
15792
              # Portland Group C++ compiler
 
15793
              case `$CC -V` in
 
15794
              *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
15795
                prelink_cmds_CXX='tpldir=Template.dir~
 
15796
                rm -rf $tpldir~
 
15797
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
15798
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
15799
                old_archive_cmds_CXX='tpldir=Template.dir~
 
15800
                rm -rf $tpldir~
 
15801
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
15802
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
15803
                $RANLIB $oldlib'
 
15804
                archive_cmds_CXX='tpldir=Template.dir~
 
15805
                rm -rf $tpldir~
 
15806
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
15807
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15808
                archive_expsym_cmds_CXX='tpldir=Template.dir~
 
15809
                rm -rf $tpldir~
 
15810
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
15811
                $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'
 
15812
                ;;
 
15813
              *) # Version 6 and above use weak symbols
 
15814
                archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
15815
                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'
 
15816
                ;;
 
15817
              esac
 
15818
 
 
15819
              hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15820
              export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
15821
              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'
 
15822
              ;;
 
15823
            esac
 
15824
            ;;
 
15825
        esac
 
15826
        ;;
 
15827
 
 
15828
      lynxos*)
 
15829
        # FIXME: insert proper C++ library support
 
15830
        ld_shlibs_CXX=no
 
15831
        ;;
 
15832
 
 
15833
      m88k*)
 
15834
        # FIXME: insert proper C++ library support
 
15835
        ld_shlibs_CXX=no
 
15836
        ;;
 
15837
 
 
15838
      mvs*)
 
15839
        case $cc_basename in
 
15840
          cxx*)
 
15841
            # FIXME: insert proper C++ library support
 
15842
            ld_shlibs_CXX=no
 
15843
            ;;
 
15844
          *)
 
15845
            # FIXME: insert proper C++ library support
 
15846
            ld_shlibs_CXX=no
 
15847
            ;;
 
15848
        esac
 
15849
        ;;
 
15850
 
 
15851
      netbsd*)
 
15852
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15853
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
15854
          wlarc=
 
15855
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
15856
          hardcode_direct_CXX=yes
 
15857
          hardcode_shlibpath_var_CXX=no
 
15858
        fi
 
15859
        # Workaround some broken pre-1.5 toolchains
 
15860
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
15861
        ;;
 
15862
 
 
15863
      *nto* | *qnx*)
 
15864
        ld_shlibs_CXX=yes
 
15865
        ;;
 
15866
 
 
15867
      openbsd* | bitrig*)
 
15868
        if test -f /usr/libexec/ld.so; then
 
15869
          hardcode_direct_CXX=yes
 
15870
          hardcode_shlibpath_var_CXX=no
 
15871
          hardcode_direct_absolute_CXX=yes
 
15872
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
15873
          hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
15874
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 
15875
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
 
15876
            export_dynamic_flag_spec_CXX='$wl-E'
 
15877
            whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 
15878
          fi
 
15879
          output_verbose_link_cmd=func_echo_all
 
15880
        else
 
15881
          ld_shlibs_CXX=no
 
15882
        fi
 
15883
        ;;
 
15884
 
 
15885
      osf3* | osf4* | osf5*)
 
15886
        case $cc_basename in
 
15887
          KCC*)
 
15888
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
15889
 
 
15890
            # KCC will only create a shared library if the output file
 
15891
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
15892
            # to its proper name (with version) after linking.
 
15893
            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'
 
15894
 
 
15895
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
15896
            hardcode_libdir_separator_CXX=:
 
15897
 
 
15898
            # Archives containing C++ object files must be created using
 
15899
            # the KAI C++ compiler.
 
15900
            case $host in
 
15901
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
15902
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
15903
            esac
 
15904
            ;;
 
15905
          RCC*)
 
15906
            # Rational C++ 2.4.1
 
15907
            # FIXME: insert proper C++ library support
 
15908
            ld_shlibs_CXX=no
 
15909
            ;;
 
15910
          cxx*)
 
15911
            case $host in
 
15912
              osf3*)
 
15913
                allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
 
15914
                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'
 
15915
                hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15916
                ;;
 
15917
              *)
 
15918
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
15919
                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'
 
15920
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
15921
                  echo "-hidden">> $lib.exp~
 
15922
                  $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~
 
15923
                  $RM $lib.exp'
 
15924
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
15925
                ;;
 
15926
            esac
 
15927
 
 
15928
            hardcode_libdir_separator_CXX=:
 
15929
 
 
15930
            # Commands to make compiler produce verbose output that lists
 
15931
            # what "hidden" libraries, object files and flags are used when
 
15932
            # linking a shared library.
 
15933
            #
 
15934
            # There doesn't appear to be a way to prevent this compiler from
 
15935
            # explicitly linking system object files so we need to strip them
 
15936
            # from the output so that they don't get included in the library
 
15937
            # dependencies.
 
15938
            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"'
 
15939
            ;;
 
15940
          *)
 
15941
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
15942
              allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
 
15943
              case $host in
 
15944
                osf3*)
 
15945
                  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'
 
15946
                  ;;
 
15947
                *)
 
15948
                  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'
 
15949
                  ;;
 
15950
              esac
 
15951
 
 
15952
              hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
15953
              hardcode_libdir_separator_CXX=:
 
15954
 
 
15955
              # Commands to make compiler produce verbose output that lists
 
15956
              # what "hidden" libraries, object files and flags are used when
 
15957
              # linking a shared library.
 
15958
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
15959
 
 
15960
            else
 
15961
              # FIXME: insert proper C++ library support
 
15962
              ld_shlibs_CXX=no
 
15963
            fi
 
15964
            ;;
 
15965
        esac
 
15966
        ;;
 
15967
 
 
15968
      psos*)
 
15969
        # FIXME: insert proper C++ library support
 
15970
        ld_shlibs_CXX=no
 
15971
        ;;
 
15972
 
 
15973
      sunos4*)
 
15974
        case $cc_basename in
 
15975
          CC*)
 
15976
            # Sun C++ 4.x
 
15977
            # FIXME: insert proper C++ library support
 
15978
            ld_shlibs_CXX=no
 
15979
            ;;
 
15980
          lcc*)
 
15981
            # Lucid
 
15982
            # FIXME: insert proper C++ library support
 
15983
            ld_shlibs_CXX=no
 
15984
            ;;
 
15985
          *)
 
15986
            # FIXME: insert proper C++ library support
 
15987
            ld_shlibs_CXX=no
 
15988
            ;;
 
15989
        esac
 
15990
        ;;
 
15991
 
 
15992
      solaris*)
 
15993
        case $cc_basename in
 
15994
          CC* | sunCC*)
 
15995
            # Sun C++ 4.2, 5.x and Centerline C++
 
15996
            archive_cmds_need_lc_CXX=yes
 
15997
            no_undefined_flag_CXX=' -zdefs'
 
15998
            archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15999
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
16000
              $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'
 
16001
 
 
16002
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
16003
            hardcode_shlibpath_var_CXX=no
 
16004
            case $host_os in
 
16005
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16006
              *)
 
16007
                # The compiler driver will combine and reorder linker options,
 
16008
                # but understands '-z linker_flag'.
 
16009
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16010
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
16011
                ;;
 
16012
            esac
 
16013
            link_all_deplibs_CXX=yes
 
16014
 
 
16015
            output_verbose_link_cmd='func_echo_all'
 
16016
 
 
16017
            # Archives containing C++ object files must be created using
 
16018
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
16019
            # necessary to make sure instantiated templates are included
 
16020
            # in the archive.
 
16021
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
16022
            ;;
 
16023
          gcx*)
 
16024
            # Green Hills C++ Compiler
 
16025
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 
16026
 
 
16027
            # The C++ compiler must be used to create the archive.
 
16028
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
16029
            ;;
 
16030
          *)
 
16031
            # GNU C++ compiler with Solaris linker
 
16032
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
16033
              no_undefined_flag_CXX=' $wl-z ${wl}defs'
 
16034
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
16035
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 
16036
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
16037
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
16038
 
 
16039
                # Commands to make compiler produce verbose output that lists
 
16040
                # what "hidden" libraries, object files and flags are used when
 
16041
                # linking a shared library.
 
16042
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
16043
              else
 
16044
                # g++ 2.7 appears to require '-G' NOT '-shared' on this
 
16045
                # platform.
 
16046
                archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 
16047
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
16048
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
16049
 
 
16050
                # Commands to make compiler produce verbose output that lists
 
16051
                # what "hidden" libraries, object files and flags are used when
 
16052
                # linking a shared library.
 
16053
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
16054
              fi
 
16055
 
 
16056
              hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
 
16057
              case $host_os in
 
16058
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16059
                *)
 
16060
                  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 
16061
                  ;;
 
16062
              esac
 
16063
            fi
 
16064
            ;;
 
16065
        esac
 
16066
        ;;
 
16067
 
 
16068
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
16069
      no_undefined_flag_CXX='$wl-z,text'
 
16070
      archive_cmds_need_lc_CXX=no
 
16071
      hardcode_shlibpath_var_CXX=no
 
16072
      runpath_var='LD_RUN_PATH'
 
16073
 
 
16074
      case $cc_basename in
 
16075
        CC*)
 
16076
          archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16077
          archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16078
          ;;
 
16079
        *)
 
16080
          archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16081
          archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16082
          ;;
 
16083
      esac
 
16084
      ;;
 
16085
 
 
16086
      sysv5* | sco3.2v5* | sco5v6*)
 
16087
        # Note: We CANNOT use -z defs as we might desire, because we do not
 
16088
        # link with -lc, and that would cause any symbols used from libc to
 
16089
        # always be unresolved, which means just about no library would
 
16090
        # ever link correctly.  If we're not using GNU ld we use -z text
 
16091
        # though, which does catch some bad symbols but isn't as heavy-handed
 
16092
        # as -z defs.
 
16093
        no_undefined_flag_CXX='$wl-z,text'
 
16094
        allow_undefined_flag_CXX='$wl-z,nodefs'
 
16095
        archive_cmds_need_lc_CXX=no
 
16096
        hardcode_shlibpath_var_CXX=no
 
16097
        hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
 
16098
        hardcode_libdir_separator_CXX=':'
 
16099
        link_all_deplibs_CXX=yes
 
16100
        export_dynamic_flag_spec_CXX='$wl-Bexport'
 
16101
        runpath_var='LD_RUN_PATH'
 
16102
 
 
16103
        case $cc_basename in
 
16104
          CC*)
 
16105
            archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16106
            archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16107
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
16108
              '"$old_archive_cmds_CXX"
 
16109
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
16110
              '"$reload_cmds_CXX"
 
16111
            ;;
 
16112
          *)
 
16113
            archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16114
            archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16115
            ;;
 
16116
        esac
 
16117
      ;;
 
16118
 
 
16119
      tandem*)
 
16120
        case $cc_basename in
 
16121
          NCC*)
 
16122
            # NonStop-UX NCC 3.20
 
16123
            # FIXME: insert proper C++ library support
 
16124
            ld_shlibs_CXX=no
 
16125
            ;;
 
16126
          *)
 
16127
            # FIXME: insert proper C++ library support
 
16128
            ld_shlibs_CXX=no
 
16129
            ;;
 
16130
        esac
 
16131
        ;;
 
16132
 
 
16133
      vxworks*)
 
16134
        # FIXME: insert proper C++ library support
 
16135
        ld_shlibs_CXX=no
 
16136
        ;;
 
16137
 
 
16138
      *)
 
16139
        # FIXME: insert proper C++ library support
 
16140
        ld_shlibs_CXX=no
 
16141
        ;;
 
16142
    esac
 
16143
 
 
16144
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
16145
$as_echo "$ld_shlibs_CXX" >&6; }
 
16146
    test no = "$ld_shlibs_CXX" && can_build_shared=no
 
16147
 
 
16148
    GCC_CXX=$GXX
 
16149
    LD_CXX=$LD
 
16150
 
 
16151
    ## CAVEAT EMPTOR:
 
16152
    ## There is no encapsulation within the following macros, do not change
 
16153
    ## the running order or otherwise move them around unless you know exactly
 
16154
    ## what you are doing...
 
16155
    # Dependencies to place before and after the object being linked:
 
16156
predep_objects_CXX=
 
16157
postdep_objects_CXX=
 
16158
predeps_CXX=
 
16159
postdeps_CXX=
 
16160
compiler_lib_search_path_CXX=
 
16161
 
 
16162
cat > conftest.$ac_ext <<_LT_EOF
 
16163
class Foo
 
16164
{
 
16165
public:
 
16166
  Foo (void) { a = 0; }
 
16167
private:
 
16168
  int a;
 
16169
};
 
16170
_LT_EOF
 
16171
 
 
16172
 
 
16173
_lt_libdeps_save_CFLAGS=$CFLAGS
 
16174
case "$CC $CFLAGS " in #(
 
16175
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
16176
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
16177
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
16178
esac
 
16179
 
 
16180
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
16181
  (eval $ac_compile) 2>&5
 
16182
  ac_status=$?
 
16183
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16184
  test $ac_status = 0; }; then
 
16185
  # Parse the compiler output and extract the necessary
 
16186
  # objects, libraries and library flags.
 
16187
 
 
16188
  # Sentinel used to keep track of whether or not we are before
 
16189
  # the conftest object file.
 
16190
  pre_test_object_deps_done=no
 
16191
 
 
16192
  for p in `eval "$output_verbose_link_cmd"`; do
 
16193
    case $prev$p in
 
16194
 
 
16195
    -L* | -R* | -l*)
 
16196
       # Some compilers place space between "-{L,R}" and the path.
 
16197
       # Remove the space.
 
16198
       if test x-L = "$p" ||
 
16199
          test x-R = "$p"; then
 
16200
         prev=$p
 
16201
         continue
 
16202
       fi
 
16203
 
 
16204
       # Expand the sysroot to ease extracting the directories later.
 
16205
       if test -z "$prev"; then
 
16206
         case $p in
 
16207
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
16208
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
16209
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
16210
         esac
 
16211
       fi
 
16212
       case $p in
 
16213
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
16214
       esac
 
16215
       if test no = "$pre_test_object_deps_done"; then
 
16216
         case $prev in
 
16217
         -L | -R)
 
16218
           # Internal compiler library paths should come after those
 
16219
           # provided the user.  The postdeps already come after the
 
16220
           # user supplied libs so there is no need to process them.
 
16221
           if test -z "$compiler_lib_search_path_CXX"; then
 
16222
             compiler_lib_search_path_CXX=$prev$p
 
16223
           else
 
16224
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
 
16225
           fi
 
16226
           ;;
 
16227
         # The "-l" case would never come before the object being
 
16228
         # linked, so don't bother handling this case.
 
16229
         esac
 
16230
       else
 
16231
         if test -z "$postdeps_CXX"; then
 
16232
           postdeps_CXX=$prev$p
 
16233
         else
 
16234
           postdeps_CXX="${postdeps_CXX} $prev$p"
 
16235
         fi
 
16236
       fi
 
16237
       prev=
 
16238
       ;;
 
16239
 
 
16240
    -*)
 
16241
       # Ignore all other options starting with a dash
 
16242
       # (e.g., "-mIPOPT_obj_output_file_name=<tmp_obj>" used by Intel compiler)
 
16243
       ;;
 
16244
 
 
16245
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
16246
    *.$objext)
 
16247
       # This assumes that the test object file only shows up
 
16248
       # once in the compiler output.
 
16249
       if test "$p" = "conftest.$objext"; then
 
16250
         pre_test_object_deps_done=yes
 
16251
         continue
 
16252
       fi
 
16253
 
 
16254
       if test no = "$pre_test_object_deps_done"; then
 
16255
         if test -z "$predep_objects_CXX"; then
 
16256
           predep_objects_CXX=$p
 
16257
         else
 
16258
           predep_objects_CXX="$predep_objects_CXX $p"
 
16259
         fi
 
16260
       else
 
16261
         if test -z "$postdep_objects_CXX"; then
 
16262
           postdep_objects_CXX=$p
 
16263
         else
 
16264
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
16265
         fi
 
16266
       fi
 
16267
       ;;
 
16268
 
 
16269
    *) ;; # Ignore the rest.
 
16270
 
 
16271
    esac
 
16272
  done
 
16273
 
 
16274
  # Clean up.
 
16275
  rm -f a.out a.exe
 
16276
else
 
16277
  echo "libtool.m4: error: problem compiling CXX test program"
 
16278
fi
 
16279
 
 
16280
$RM -f confest.$objext
 
16281
CFLAGS=$_lt_libdeps_save_CFLAGS
 
16282
 
 
16283
# PORTME: override above test on systems where it is broken
 
16284
case $host_os in
 
16285
interix[3-9]*)
 
16286
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
16287
  # hack all around it, let's just trust "g++" to DTRT.
 
16288
  predep_objects_CXX=
 
16289
  postdep_objects_CXX=
 
16290
  postdeps_CXX=
 
16291
  ;;
 
16292
esac
 
16293
 
 
16294
 
 
16295
case " $postdeps_CXX " in
 
16296
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
16297
esac
 
16298
 compiler_lib_search_dirs_CXX=
 
16299
if test -n "${compiler_lib_search_path_CXX}"; then
 
16300
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
 
16301
fi
 
16302
 
 
16303
 
 
16304
 
 
16305
 
 
16306
 
 
16307
 
 
16308
 
 
16309
 
 
16310
 
 
16311
 
 
16312
 
 
16313
 
 
16314
 
 
16315
 
 
16316
 
 
16317
 
 
16318
 
 
16319
 
 
16320
 
 
16321
 
 
16322
 
 
16323
 
 
16324
 
 
16325
 
 
16326
 
 
16327
 
 
16328
 
 
16329
 
 
16330
 
 
16331
 
 
16332
 
 
16333
    lt_prog_compiler_wl_CXX=
 
16334
lt_prog_compiler_pic_CXX=
 
16335
lt_prog_compiler_static_CXX=
 
16336
 
 
16337
 
 
16338
  # C++ specific cases for pic, static, wl, etc.
 
16339
  if test yes = "$GXX"; then
 
16340
    lt_prog_compiler_wl_CXX='-Wl,'
 
16341
    lt_prog_compiler_static_CXX='-static'
 
16342
 
 
16343
    case $host_os in
 
16344
    aix*)
 
16345
      # All AIX code is PIC.
 
16346
      if test ia64 = "$host_cpu"; then
 
16347
        # AIX 5 now supports IA64 processor
 
16348
        lt_prog_compiler_static_CXX='-Bstatic'
 
16349
      fi
 
16350
      lt_prog_compiler_pic_CXX='-fPIC'
 
16351
      ;;
 
16352
 
 
16353
    amigaos*)
 
16354
      case $host_cpu in
 
16355
      powerpc)
 
16356
            # see comment about AmigaOS4 .so support
 
16357
            lt_prog_compiler_pic_CXX='-fPIC'
 
16358
        ;;
 
16359
      m68k)
 
16360
            # FIXME: we need at least 68020 code to build shared libraries, but
 
16361
            # adding the '-m68020' flag to GCC prevents building anything better,
 
16362
            # like '-m68040'.
 
16363
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
16364
        ;;
 
16365
      esac
 
16366
      ;;
 
16367
 
 
16368
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16369
      # PIC is the default for these OSes.
 
16370
      ;;
 
16371
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
16372
      # This hack is so that the source file can tell whether it is being
 
16373
      # built for inclusion in a dll (and should export symbols for example).
 
16374
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16375
      # (--disable-auto-import) libraries
 
16376
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
16377
      case $host_os in
 
16378
      os2*)
 
16379
        lt_prog_compiler_static_CXX='$wl-static'
 
16380
        ;;
 
16381
      esac
 
16382
      ;;
 
16383
    darwin* | rhapsody*)
 
16384
      # PIC is the default on this platform
 
16385
      # Common symbols not allowed in MH_DYLIB files
 
16386
      lt_prog_compiler_pic_CXX='-fno-common'
 
16387
      ;;
 
16388
    *djgpp*)
 
16389
      # DJGPP does not support shared libraries at all
 
16390
      lt_prog_compiler_pic_CXX=
 
16391
      ;;
 
16392
    haiku*)
 
16393
      # PIC is the default for Haiku.
 
16394
      # The "-static" flag exists, but is broken.
 
16395
      lt_prog_compiler_static_CXX=
 
16396
      ;;
 
16397
    interix[3-9]*)
 
16398
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16399
      # Instead, we relocate shared libraries at runtime.
 
16400
      ;;
 
16401
    sysv4*MP*)
 
16402
      if test -d /usr/nec; then
 
16403
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
16404
      fi
 
16405
      ;;
 
16406
    hpux*)
 
16407
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
16408
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
16409
      # sets the default TLS model and affects inlining.
 
16410
      case $host_cpu in
 
16411
      hppa*64*)
 
16412
        ;;
 
16413
      *)
 
16414
        lt_prog_compiler_pic_CXX='-fPIC'
 
16415
        ;;
 
16416
      esac
 
16417
      ;;
 
16418
    *qnx* | *nto*)
 
16419
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
16420
      # it will coredump.
 
16421
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
16422
      ;;
 
16423
    *)
 
16424
      lt_prog_compiler_pic_CXX='-fPIC'
 
16425
      ;;
 
16426
    esac
 
16427
  else
 
16428
    case $host_os in
 
16429
      aix[4-9]*)
 
16430
        # All AIX code is PIC.
 
16431
        if test ia64 = "$host_cpu"; then
 
16432
          # AIX 5 now supports IA64 processor
 
16433
          lt_prog_compiler_static_CXX='-Bstatic'
 
16434
        else
 
16435
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
16436
        fi
 
16437
        ;;
 
16438
      chorus*)
 
16439
        case $cc_basename in
 
16440
        cxch68*)
 
16441
          # Green Hills C++ Compiler
 
16442
          # _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"
 
16443
          ;;
 
16444
        esac
 
16445
        ;;
 
16446
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
16447
        # This hack is so that the source file can tell whether it is being
 
16448
        # built for inclusion in a dll (and should export symbols for example).
 
16449
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
16450
        ;;
 
16451
      dgux*)
 
16452
        case $cc_basename in
 
16453
          ec++*)
 
16454
            lt_prog_compiler_pic_CXX='-KPIC'
 
16455
            ;;
 
16456
          ghcx*)
 
16457
            # Green Hills C++ Compiler
 
16458
            lt_prog_compiler_pic_CXX='-pic'
 
16459
            ;;
 
16460
          *)
 
16461
            ;;
 
16462
        esac
 
16463
        ;;
 
16464
      freebsd* | dragonfly*)
 
16465
        # FreeBSD uses GNU C++
 
16466
        ;;
 
16467
      hpux9* | hpux10* | hpux11*)
 
16468
        case $cc_basename in
 
16469
          CC*)
 
16470
            lt_prog_compiler_wl_CXX='-Wl,'
 
16471
            lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
 
16472
            if test ia64 != "$host_cpu"; then
 
16473
              lt_prog_compiler_pic_CXX='+Z'
 
16474
            fi
 
16475
            ;;
 
16476
          aCC*)
 
16477
            lt_prog_compiler_wl_CXX='-Wl,'
 
16478
            lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
 
16479
            case $host_cpu in
 
16480
            hppa*64*|ia64*)
 
16481
              # +Z the default
 
16482
              ;;
 
16483
            *)
 
16484
              lt_prog_compiler_pic_CXX='+Z'
 
16485
              ;;
 
16486
            esac
 
16487
            ;;
 
16488
          *)
 
16489
            ;;
 
16490
        esac
 
16491
        ;;
 
16492
      interix*)
 
16493
        # This is c89, which is MS Visual C++ (no shared libs)
 
16494
        # Anyone wants to do a port?
 
16495
        ;;
 
16496
      irix5* | irix6* | nonstopux*)
 
16497
        case $cc_basename in
 
16498
          CC*)
 
16499
            lt_prog_compiler_wl_CXX='-Wl,'
 
16500
            lt_prog_compiler_static_CXX='-non_shared'
 
16501
            # CC pic flag -KPIC is the default.
 
16502
            ;;
 
16503
          *)
 
16504
            ;;
 
16505
        esac
 
16506
        ;;
 
16507
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
16508
        case $cc_basename in
 
16509
          KCC*)
 
16510
            # KAI C++ Compiler
 
16511
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
16512
            lt_prog_compiler_pic_CXX='-fPIC'
 
16513
            ;;
 
16514
          ecpc* )
 
16515
            # old Intel C++ for x86_64, which still supported -KPIC.
 
16516
            lt_prog_compiler_wl_CXX='-Wl,'
 
16517
            lt_prog_compiler_pic_CXX='-KPIC'
 
16518
            lt_prog_compiler_static_CXX='-static'
 
16519
            ;;
 
16520
          icpc* )
 
16521
            # Intel C++, used to be incompatible with GCC.
 
16522
            # ICC 10 doesn't accept -KPIC any more.
 
16523
            lt_prog_compiler_wl_CXX='-Wl,'
 
16524
            lt_prog_compiler_pic_CXX='-fPIC'
 
16525
            lt_prog_compiler_static_CXX='-static'
 
16526
            ;;
 
16527
          pgCC* | pgcpp*)
 
16528
            # Portland Group C++ compiler
 
16529
            lt_prog_compiler_wl_CXX='-Wl,'
 
16530
            lt_prog_compiler_pic_CXX='-fpic'
 
16531
            lt_prog_compiler_static_CXX='-Bstatic'
 
16532
            ;;
 
16533
          cxx*)
 
16534
            # Compaq C++
 
16535
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
16536
            # Linux and Compaq Tru64 Unix objects are PIC.
 
16537
            lt_prog_compiler_pic_CXX=
 
16538
            lt_prog_compiler_static_CXX='-non_shared'
 
16539
            ;;
 
16540
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
16541
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
16542
            lt_prog_compiler_wl_CXX='-Wl,'
 
16543
            lt_prog_compiler_pic_CXX='-qpic'
 
16544
            lt_prog_compiler_static_CXX='-qstaticlink'
 
16545
            ;;
 
16546
          *)
 
16547
            case `$CC -V 2>&1` in
 
16548
            *Sun\ C*)
 
16549
              # Sun C++ 5.9
 
16550
              lt_prog_compiler_pic_CXX='-KPIC'
 
16551
              lt_prog_compiler_static_CXX='-Bstatic'
 
16552
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
16553
              ;;
 
16554
            *Cray\ C*)
 
16555
              # Cray C++ compiler
 
16556
              lt_prog_compiler_pic_CXX='-hpic'
 
16557
              lt_prog_compiler_static_CXX='-static'
 
16558
              lt_prog_compiler_wl_CXX='-Wl,'
 
16559
              ;;
 
16560
            *pgCC* | *pgcpp*)
 
16561
              # Portland Group/NVIDIA C++ compiler
 
16562
              lt_prog_compiler_pic_CXX='-fpic'
 
16563
              lt_prog_compiler_static_CXX='-Bstatic'
 
16564
              lt_prog_compiler_wl_CXX='-Wl,'
 
16565
              ;;
 
16566
            *Fujitsu*)
 
16567
              # Fujitsu C/C++ Compiler Driver
 
16568
              lt_prog_compiler_pic_CXX='-Kpic'
 
16569
              lt_prog_compiler_static_CXX='-Bstatic'
 
16570
              lt_prog_compiler_wl_CXX='-Wl,'
 
16571
              ;;
 
16572
            esac
 
16573
            ;;
 
16574
        esac
 
16575
        ;;
 
16576
      lynxos*)
 
16577
        ;;
 
16578
      m88k*)
 
16579
        ;;
 
16580
      mvs*)
 
16581
        case $cc_basename in
 
16582
          cxx*)
 
16583
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
16584
            ;;
 
16585
          *)
 
16586
            ;;
 
16587
        esac
 
16588
        ;;
 
16589
      netbsd*)
 
16590
        ;;
 
16591
      *qnx* | *nto*)
 
16592
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
16593
        # it will coredump.
 
16594
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
16595
        ;;
 
16596
      osf3* | osf4* | osf5*)
 
16597
        case $cc_basename in
 
16598
          KCC*)
 
16599
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
16600
            ;;
 
16601
          RCC*)
 
16602
            # Rational C++ 2.4.1
 
16603
            lt_prog_compiler_pic_CXX='-pic'
 
16604
            ;;
 
16605
          cxx*)
 
16606
            # Digital/Compaq C++
 
16607
            lt_prog_compiler_wl_CXX='-Wl,'
 
16608
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
16609
            # Linux and Compaq Tru64 Unix objects are PIC.
 
16610
            lt_prog_compiler_pic_CXX=
 
16611
            lt_prog_compiler_static_CXX='-non_shared'
 
16612
            ;;
 
16613
          *)
 
16614
            ;;
 
16615
        esac
 
16616
        ;;
 
16617
      psos*)
 
16618
        ;;
 
16619
      solaris*)
 
16620
        case $cc_basename in
 
16621
          CC* | sunCC*)
 
16622
            # Sun C++ 4.2, 5.x and Centerline C++
 
16623
            lt_prog_compiler_pic_CXX='-KPIC'
 
16624
            lt_prog_compiler_static_CXX='-Bstatic'
 
16625
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
16626
            ;;
 
16627
          gcx*)
 
16628
            # Green Hills C++ Compiler
 
16629
            lt_prog_compiler_pic_CXX='-PIC'
 
16630
            ;;
 
16631
          *)
 
16632
            ;;
 
16633
        esac
 
16634
        ;;
 
16635
      sunos4*)
 
16636
        case $cc_basename in
 
16637
          CC*)
 
16638
            # Sun C++ 4.x
 
16639
            lt_prog_compiler_pic_CXX='-pic'
 
16640
            lt_prog_compiler_static_CXX='-Bstatic'
 
16641
            ;;
 
16642
          lcc*)
 
16643
            # Lucid
 
16644
            lt_prog_compiler_pic_CXX='-pic'
 
16645
            ;;
 
16646
          *)
 
16647
            ;;
 
16648
        esac
 
16649
        ;;
 
16650
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16651
        case $cc_basename in
 
16652
          CC*)
 
16653
            lt_prog_compiler_wl_CXX='-Wl,'
 
16654
            lt_prog_compiler_pic_CXX='-KPIC'
 
16655
            lt_prog_compiler_static_CXX='-Bstatic'
 
16656
            ;;
 
16657
        esac
 
16658
        ;;
 
16659
      tandem*)
 
16660
        case $cc_basename in
 
16661
          NCC*)
 
16662
            # NonStop-UX NCC 3.20
 
16663
            lt_prog_compiler_pic_CXX='-KPIC'
 
16664
            ;;
 
16665
          *)
 
16666
            ;;
 
16667
        esac
 
16668
        ;;
 
16669
      vxworks*)
 
16670
        ;;
 
16671
      *)
 
16672
        lt_prog_compiler_can_build_shared_CXX=no
 
16673
        ;;
 
16674
    esac
 
16675
  fi
 
16676
 
 
16677
case $host_os in
 
16678
  # For platforms that do not support PIC, -DPIC is meaningless:
 
16679
  *djgpp*)
 
16680
    lt_prog_compiler_pic_CXX=
 
16681
    ;;
 
16682
  *)
 
16683
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
16684
    ;;
 
16685
esac
 
16686
 
 
16687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
16688
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
16689
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
16690
  $as_echo_n "(cached) " >&6
 
16691
else
 
16692
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
16693
fi
 
16694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
16695
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
16696
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
16697
 
 
16698
#
 
16699
# Check to make sure the PIC flag actually works.
 
16700
#
 
16701
if test -n "$lt_prog_compiler_pic_CXX"; then
 
16702
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
16703
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
16704
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
16705
  $as_echo_n "(cached) " >&6
 
16706
else
 
16707
  lt_cv_prog_compiler_pic_works_CXX=no
 
16708
   ac_outfile=conftest.$ac_objext
 
16709
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16710
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 
16711
   # Insert the option either (1) after the last *FLAGS variable, or
 
16712
   # (2) before a word containing "conftest.", or (3) at the end.
 
16713
   # Note that $ac_compile itself does not contain backslashes and begins
 
16714
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16715
   # The option is referenced via a variable to avoid confusing sed.
 
16716
   lt_compile=`echo "$ac_compile" | $SED \
 
16717
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16718
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16719
   -e 's:$: $lt_compiler_flag:'`
 
16720
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16721
   (eval "$lt_compile" 2>conftest.err)
 
16722
   ac_status=$?
 
16723
   cat conftest.err >&5
 
16724
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16725
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16726
     # The compiler can only warn and ignore the option if not recognized
 
16727
     # So say no if there are warnings other than the usual output.
 
16728
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
16729
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16730
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16731
       lt_cv_prog_compiler_pic_works_CXX=yes
 
16732
     fi
 
16733
   fi
 
16734
   $RM conftest*
 
16735
 
 
16736
fi
 
16737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
16738
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
16739
 
 
16740
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
 
16741
    case $lt_prog_compiler_pic_CXX in
 
16742
     "" | " "*) ;;
 
16743
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
16744
     esac
 
16745
else
 
16746
    lt_prog_compiler_pic_CXX=
 
16747
     lt_prog_compiler_can_build_shared_CXX=no
 
16748
fi
 
16749
 
 
16750
fi
 
16751
 
 
16752
 
 
16753
 
 
16754
 
 
16755
 
 
16756
#
 
16757
# Check to make sure the static flag actually works.
 
16758
#
 
16759
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
16760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16761
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
16762
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
16763
  $as_echo_n "(cached) " >&6
 
16764
else
 
16765
  lt_cv_prog_compiler_static_works_CXX=no
 
16766
   save_LDFLAGS=$LDFLAGS
 
16767
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16768
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16769
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16770
     # The linker can only warn and ignore the option if not recognized
 
16771
     # So say no if there are warnings
 
16772
     if test -s conftest.err; then
 
16773
       # Append any errors to the config.log.
 
16774
       cat conftest.err 1>&5
 
16775
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
16776
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16777
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16778
         lt_cv_prog_compiler_static_works_CXX=yes
 
16779
       fi
 
16780
     else
 
16781
       lt_cv_prog_compiler_static_works_CXX=yes
 
16782
     fi
 
16783
   fi
 
16784
   $RM -r conftest*
 
16785
   LDFLAGS=$save_LDFLAGS
 
16786
 
 
16787
fi
 
16788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
16789
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
16790
 
 
16791
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
 
16792
    :
 
16793
else
 
16794
    lt_prog_compiler_static_CXX=
 
16795
fi
 
16796
 
 
16797
 
 
16798
 
 
16799
 
 
16800
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16801
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
16802
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
16803
  $as_echo_n "(cached) " >&6
 
16804
else
 
16805
  lt_cv_prog_compiler_c_o_CXX=no
 
16806
   $RM -r conftest 2>/dev/null
 
16807
   mkdir conftest
 
16808
   cd conftest
 
16809
   mkdir out
 
16810
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16811
 
 
16812
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16813
   # Insert the option either (1) after the last *FLAGS variable, or
 
16814
   # (2) before a word containing "conftest.", or (3) at the end.
 
16815
   # Note that $ac_compile itself does not contain backslashes and begins
 
16816
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16817
   lt_compile=`echo "$ac_compile" | $SED \
 
16818
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16819
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16820
   -e 's:$: $lt_compiler_flag:'`
 
16821
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16822
   (eval "$lt_compile" 2>out/conftest.err)
 
16823
   ac_status=$?
 
16824
   cat out/conftest.err >&5
 
16825
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16826
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16827
   then
 
16828
     # The compiler can only warn and ignore the option if not recognized
 
16829
     # So say no if there are warnings
 
16830
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
16831
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16832
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16833
       lt_cv_prog_compiler_c_o_CXX=yes
 
16834
     fi
 
16835
   fi
 
16836
   chmod u+w . 2>&5
 
16837
   $RM conftest*
 
16838
   # SGI C++ compiler will create directory out/ii_files/ for
 
16839
   # template instantiation
 
16840
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
16841
   $RM out/* && rmdir out
 
16842
   cd ..
 
16843
   $RM -r conftest
 
16844
   $RM conftest*
 
16845
 
 
16846
fi
 
16847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
16848
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
16849
 
 
16850
 
 
16851
 
 
16852
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16853
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
16854
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
16855
  $as_echo_n "(cached) " >&6
 
16856
else
 
16857
  lt_cv_prog_compiler_c_o_CXX=no
 
16858
   $RM -r conftest 2>/dev/null
 
16859
   mkdir conftest
 
16860
   cd conftest
 
16861
   mkdir out
 
16862
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16863
 
 
16864
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16865
   # Insert the option either (1) after the last *FLAGS variable, or
 
16866
   # (2) before a word containing "conftest.", or (3) at the end.
 
16867
   # Note that $ac_compile itself does not contain backslashes and begins
 
16868
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16869
   lt_compile=`echo "$ac_compile" | $SED \
 
16870
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16871
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16872
   -e 's:$: $lt_compiler_flag:'`
 
16873
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16874
   (eval "$lt_compile" 2>out/conftest.err)
 
16875
   ac_status=$?
 
16876
   cat out/conftest.err >&5
 
16877
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16878
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16879
   then
 
16880
     # The compiler can only warn and ignore the option if not recognized
 
16881
     # So say no if there are warnings
 
16882
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
16883
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16884
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16885
       lt_cv_prog_compiler_c_o_CXX=yes
 
16886
     fi
 
16887
   fi
 
16888
   chmod u+w . 2>&5
 
16889
   $RM conftest*
 
16890
   # SGI C++ compiler will create directory out/ii_files/ for
 
16891
   # template instantiation
 
16892
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
16893
   $RM out/* && rmdir out
 
16894
   cd ..
 
16895
   $RM -r conftest
 
16896
   $RM conftest*
 
16897
 
 
16898
fi
 
16899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
16900
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
16901
 
 
16902
 
 
16903
 
 
16904
 
 
16905
hard_links=nottested
 
16906
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
 
16907
  # do not overwrite the value of need_locks provided by the user
 
16908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
16909
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
16910
  hard_links=yes
 
16911
  $RM conftest*
 
16912
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16913
  touch conftest.a
 
16914
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16915
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
16917
$as_echo "$hard_links" >&6; }
 
16918
  if test no = "$hard_links"; then
 
16919
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 
16920
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 
16921
    need_locks=warn
 
16922
  fi
 
16923
else
 
16924
  need_locks=no
 
16925
fi
 
16926
 
 
16927
 
 
16928
 
 
16929
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16930
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
16931
 
 
16932
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16933
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
16934
  case $host_os in
 
16935
  aix[4-9]*)
 
16936
    # If we're using GNU nm, then we don't want the "-C" option.
 
16937
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 
16938
    # Without the "-l" option, or with the "-B" option, AIX nm treats
 
16939
    # weak defined symbols like other global defined symbols, whereas
 
16940
    # GNU nm marks them as "W".
 
16941
    # While the 'weak' keyword is ignored in the Export File, we need
 
16942
    # it in the Import File for the 'aix-soname' feature, so we have
 
16943
    # to replace the "-B" option with "-P" for AIX nm.
 
16944
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
16945
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 
16946
    else
 
16947
      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 
16948
    fi
 
16949
    ;;
 
16950
  pw32*)
 
16951
    export_symbols_cmds_CXX=$ltdll_cmds
 
16952
    ;;
 
16953
  cygwin* | mingw* | cegcc*)
 
16954
    case $cc_basename in
 
16955
    cl*)
 
16956
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
16957
      ;;
 
16958
    *)
 
16959
      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'
 
16960
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
16961
      ;;
 
16962
    esac
 
16963
    ;;
 
16964
  *)
 
16965
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16966
    ;;
 
16967
  esac
 
16968
 
 
16969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
16970
$as_echo "$ld_shlibs_CXX" >&6; }
 
16971
test no = "$ld_shlibs_CXX" && can_build_shared=no
 
16972
 
 
16973
with_gnu_ld_CXX=$with_gnu_ld
 
16974
 
 
16975
 
 
16976
 
 
16977
 
 
16978
 
 
16979
 
 
16980
#
 
16981
# Do we need to explicitly link libc?
 
16982
#
 
16983
case "x$archive_cmds_need_lc_CXX" in
 
16984
x|xyes)
 
16985
  # Assume -lc should be added
 
16986
  archive_cmds_need_lc_CXX=yes
 
16987
 
 
16988
  if test yes,yes = "$GCC,$enable_shared"; then
 
16989
    case $archive_cmds_CXX in
 
16990
    *'~'*)
 
16991
      # FIXME: we may have to deal with multi-command sequences.
 
16992
      ;;
 
16993
    '$CC '*)
 
16994
      # Test whether the compiler implicitly links with -lc since on some
 
16995
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16996
      # to ld, don't add -lc before -lgcc.
 
16997
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
16998
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
16999
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
17000
  $as_echo_n "(cached) " >&6
 
17001
else
 
17002
  $RM conftest*
 
17003
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17004
 
 
17005
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
17006
  (eval $ac_compile) 2>&5
 
17007
  ac_status=$?
 
17008
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17009
  test $ac_status = 0; } 2>conftest.err; then
 
17010
          soname=conftest
 
17011
          lib=conftest
 
17012
          libobjs=conftest.$ac_objext
 
17013
          deplibs=
 
17014
          wl=$lt_prog_compiler_wl_CXX
 
17015
          pic_flag=$lt_prog_compiler_pic_CXX
 
17016
          compiler_flags=-v
 
17017
          linker_flags=-v
 
17018
          verstring=
 
17019
          output_objdir=.
 
17020
          libname=conftest
 
17021
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
17022
          allow_undefined_flag_CXX=
 
17023
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
17024
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17025
  ac_status=$?
 
17026
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17027
  test $ac_status = 0; }
 
17028
          then
 
17029
            lt_cv_archive_cmds_need_lc_CXX=no
 
17030
          else
 
17031
            lt_cv_archive_cmds_need_lc_CXX=yes
 
17032
          fi
 
17033
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
17034
        else
 
17035
          cat conftest.err 1>&5
 
17036
        fi
 
17037
        $RM conftest*
 
17038
 
 
17039
fi
 
17040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
17041
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
17042
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
17043
      ;;
 
17044
    esac
 
17045
  fi
 
17046
  ;;
 
17047
esac
 
17048
 
 
17049
 
 
17050
 
 
17051
 
 
17052
 
 
17053
 
 
17054
 
 
17055
 
 
17056
 
 
17057
 
 
17058
 
 
17059
 
 
17060
 
 
17061
 
 
17062
 
 
17063
 
 
17064
 
 
17065
 
 
17066
 
 
17067
 
 
17068
 
 
17069
 
 
17070
 
 
17071
 
 
17072
 
 
17073
 
 
17074
 
 
17075
 
 
17076
 
 
17077
 
 
17078
 
 
17079
 
 
17080
 
 
17081
 
 
17082
 
 
17083
 
 
17084
 
 
17085
 
 
17086
 
 
17087
 
 
17088
 
 
17089
 
 
17090
 
 
17091
 
 
17092
 
 
17093
 
 
17094
 
 
17095
 
 
17096
 
 
17097
 
 
17098
 
 
17099
 
 
17100
 
 
17101
 
 
17102
 
 
17103
 
 
17104
 
 
17105
 
 
17106
 
 
17107
 
 
17108
 
 
17109
 
 
17110
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
17111
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
17112
 
 
17113
library_names_spec=
 
17114
libname_spec='lib$name'
 
17115
soname_spec=
 
17116
shrext_cmds=.so
 
17117
postinstall_cmds=
 
17118
postuninstall_cmds=
 
17119
finish_cmds=
 
17120
finish_eval=
 
17121
shlibpath_var=
 
17122
shlibpath_overrides_runpath=unknown
 
17123
version_type=none
 
17124
dynamic_linker="$host_os ld.so"
 
17125
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17126
need_lib_prefix=unknown
 
17127
hardcode_into_libs=no
 
17128
 
 
17129
# when you set need_version to no, make sure it does not cause -set_version
 
17130
# flags to be left without arguments
 
17131
need_version=unknown
 
17132
 
 
17133
 
 
17134
 
 
17135
case $host_os in
 
17136
aix3*)
 
17137
  version_type=linux # correct to gnu/linux during the next big refactor
 
17138
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 
17139
  shlibpath_var=LIBPATH
 
17140
 
 
17141
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17142
  soname_spec='$libname$release$shared_ext$major'
 
17143
  ;;
 
17144
 
 
17145
aix[4-9]*)
 
17146
  version_type=linux # correct to gnu/linux during the next big refactor
 
17147
  need_lib_prefix=no
 
17148
  need_version=no
 
17149
  hardcode_into_libs=yes
 
17150
  if test ia64 = "$host_cpu"; then
 
17151
    # AIX 5 supports IA64
 
17152
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 
17153
    shlibpath_var=LD_LIBRARY_PATH
 
17154
  else
 
17155
    # With GCC up to 2.95.x, collect2 would create an import file
 
17156
    # for dependence libraries.  The import file would start with
 
17157
    # the line '#! .'.  This would cause the generated library to
 
17158
    # depend on '.', always an invalid library.  This was fixed in
 
17159
    # development snapshots of GCC prior to 3.0.
 
17160
    case $host_os in
 
17161
      aix4 | aix4.[01] | aix4.[01].*)
 
17162
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17163
           echo ' yes '
 
17164
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 
17165
        :
 
17166
      else
 
17167
        can_build_shared=no
 
17168
      fi
 
17169
      ;;
 
17170
    esac
 
17171
    # Using Import Files as archive members, it is possible to support
 
17172
    # filename-based versioning of shared library archives on AIX. While
 
17173
    # this would work for both with and without runtime linking, it will
 
17174
    # prevent static linking of such archives. So we do filename-based
 
17175
    # shared library versioning with .so extension only, which is used
 
17176
    # when both runtime linking and shared linking is enabled.
 
17177
    # Unfortunately, runtime linking may impact performance, so we do
 
17178
    # not want this to be the default eventually. Also, we use the
 
17179
    # versioned .so libs for executables only if there is the -brtl
 
17180
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 
17181
    # To allow for filename-based versioning support, we need to create
 
17182
    # libNAME.so.V as an archive file, containing:
 
17183
    # *) an Import File, referring to the versioned filename of the
 
17184
    #    archive as well as the shared archive member, telling the
 
17185
    #    bitwidth (32 or 64) of that shared object, and providing the
 
17186
    #    list of exported symbols of that shared object, eventually
 
17187
    #    decorated with the 'weak' keyword
 
17188
    # *) the shared object with the F_LOADONLY flag set, to really avoid
 
17189
    #    it being seen by the linker.
 
17190
    # At run time we better use the real file rather than another symlink,
 
17191
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
 
17192
 
 
17193
    case $with_aix_soname,$aix_use_runtimelinking in
 
17194
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 
17195
    # soname into executable. Probably we can add versioning support to
 
17196
    # collect2, so additional links can be useful in future.
 
17197
    aix,yes) # traditional libtool
 
17198
      dynamic_linker='AIX unversionable lib.so'
 
17199
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17200
      # instead of lib<name>.a to let people know that these are not
 
17201
      # typical AIX shared libraries.
 
17202
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17203
      ;;
 
17204
    aix,no) # traditional AIX only
 
17205
      dynamic_linker='AIX lib.a(lib.so.V)'
 
17206
      # We preserve .a as extension for shared libraries through AIX4.2
 
17207
      # and later when we are not doing run time linking.
 
17208
      library_names_spec='$libname$release.a $libname.a'
 
17209
      soname_spec='$libname$release$shared_ext$major'
 
17210
      ;;
 
17211
    svr4,*) # full svr4 only
 
17212
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
 
17213
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
17214
      # We do not specify a path in Import Files, so LIBPATH fires.
 
17215
      shlibpath_overrides_runpath=yes
 
17216
      ;;
 
17217
    *,yes) # both, prefer svr4
 
17218
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
 
17219
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
17220
      # unpreferred sharedlib libNAME.a needs extra handling
 
17221
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 
17222
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 
17223
      # We do not specify a path in Import Files, so LIBPATH fires.
 
17224
      shlibpath_overrides_runpath=yes
 
17225
      ;;
 
17226
    *,no) # both, prefer aix
 
17227
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
 
17228
      library_names_spec='$libname$release.a $libname.a'
 
17229
      soname_spec='$libname$release$shared_ext$major'
 
17230
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 
17231
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 
17232
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 
17233
      ;;
 
17234
    esac
 
17235
    shlibpath_var=LIBPATH
 
17236
  fi
 
17237
  ;;
 
17238
 
 
17239
amigaos*)
 
17240
  case $host_cpu in
 
17241
  powerpc)
 
17242
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
17243
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
17244
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17245
    ;;
 
17246
  m68k)
 
17247
    library_names_spec='$libname.ixlibrary $libname.a'
 
17248
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17249
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
 
17250
    ;;
 
17251
  esac
 
17252
  ;;
 
17253
 
 
17254
beos*)
 
17255
  library_names_spec='$libname$shared_ext'
 
17256
  dynamic_linker="$host_os ld.so"
 
17257
  shlibpath_var=LIBRARY_PATH
 
17258
  ;;
 
17259
 
 
17260
bsdi[45]*)
 
17261
  version_type=linux # correct to gnu/linux during the next big refactor
 
17262
  need_version=no
 
17263
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17264
  soname_spec='$libname$release$shared_ext$major'
 
17265
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17266
  shlibpath_var=LD_LIBRARY_PATH
 
17267
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17268
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17269
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17270
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17271
  # libtool to hard-code these into programs
 
17272
  ;;
 
17273
 
 
17274
cygwin* | mingw* | pw32* | cegcc*)
 
17275
  version_type=windows
 
17276
  shrext_cmds=.dll
 
17277
  need_version=no
 
17278
  need_lib_prefix=no
 
17279
 
 
17280
  case $GCC,$cc_basename in
 
17281
  yes,*)
 
17282
    # gcc
 
17283
    library_names_spec='$libname.dll.a'
 
17284
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17285
    postinstall_cmds='base_file=`basename \$file`~
 
17286
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
17287
      dldir=$destdir/`dirname \$dlpath`~
 
17288
      test -d \$dldir || mkdir -p \$dldir~
 
17289
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17290
      chmod a+x \$dldir/$dlname~
 
17291
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
17292
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
17293
      fi'
 
17294
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17295
      dlpath=$dir/\$dldll~
 
17296
       $RM \$dlpath'
 
17297
    shlibpath_overrides_runpath=yes
 
17298
 
 
17299
    case $host_os in
 
17300
    cygwin*)
 
17301
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17302
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
17303
 
 
17304
      ;;
 
17305
    mingw* | cegcc*)
 
17306
      # MinGW DLLs use traditional 'lib' prefix
 
17307
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
17308
      ;;
 
17309
    pw32*)
 
17310
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17311
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
17312
      ;;
 
17313
    esac
 
17314
    dynamic_linker='Win32 ld.exe'
 
17315
    ;;
 
17316
 
 
17317
  *,cl*)
 
17318
    # Native MSVC
 
17319
    libname_spec='$name'
 
17320
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
17321
    library_names_spec='$libname.dll.lib'
 
17322
 
 
17323
    case $build_os in
 
17324
    mingw*)
 
17325
      sys_lib_search_path_spec=
 
17326
      lt_save_ifs=$IFS
 
17327
      IFS=';'
 
17328
      for lt_path in $LIB
 
17329
      do
 
17330
        IFS=$lt_save_ifs
 
17331
        # Let DOS variable expansion print the short 8.3 style file name.
 
17332
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
17333
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
17334
      done
 
17335
      IFS=$lt_save_ifs
 
17336
      # Convert to MSYS style.
 
17337
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
17338
      ;;
 
17339
    cygwin*)
 
17340
      # Convert to unix form, then to dos form, then back to unix form
 
17341
      # but this time dos style (no spaces!) so that the unix form looks
 
17342
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
17343
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
17344
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
17345
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
17346
      ;;
 
17347
    *)
 
17348
      sys_lib_search_path_spec=$LIB
 
17349
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
17350
        # It is most probably a Windows format PATH.
 
17351
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17352
      else
 
17353
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
17354
      fi
 
17355
      # FIXME: find the short name or the path components, as spaces are
 
17356
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
17357
      ;;
 
17358
    esac
 
17359
 
 
17360
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17361
    postinstall_cmds='base_file=`basename \$file`~
 
17362
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 
17363
      dldir=$destdir/`dirname \$dlpath`~
 
17364
      test -d \$dldir || mkdir -p \$dldir~
 
17365
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17366
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17367
      dlpath=$dir/\$dldll~
 
17368
       $RM \$dlpath'
 
17369
    shlibpath_overrides_runpath=yes
 
17370
    dynamic_linker='Win32 link.exe'
 
17371
    ;;
 
17372
 
 
17373
  *)
 
17374
    # Assume MSVC wrapper
 
17375
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 
17376
    dynamic_linker='Win32 ld.exe'
 
17377
    ;;
 
17378
  esac
 
17379
  # FIXME: first we should search . and the directory the executable is in
 
17380
  shlibpath_var=PATH
 
17381
  ;;
 
17382
 
 
17383
darwin* | rhapsody*)
 
17384
  dynamic_linker="$host_os dyld"
 
17385
  version_type=darwin
 
17386
  need_lib_prefix=no
 
17387
  need_version=no
 
17388
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
17389
  soname_spec='$libname$release$major$shared_ext'
 
17390
  shlibpath_overrides_runpath=yes
 
17391
  shlibpath_var=DYLD_LIBRARY_PATH
 
17392
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17393
 
 
17394
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17395
  ;;
 
17396
 
 
17397
dgux*)
 
17398
  version_type=linux # correct to gnu/linux during the next big refactor
 
17399
  need_lib_prefix=no
 
17400
  need_version=no
 
17401
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17402
  soname_spec='$libname$release$shared_ext$major'
 
17403
  shlibpath_var=LD_LIBRARY_PATH
 
17404
  ;;
 
17405
 
 
17406
freebsd* | dragonfly*)
 
17407
  # DragonFly does not have aout.  When/if they implement a new
 
17408
  # versioning mechanism, adjust this.
 
17409
  if test -x /usr/bin/objformat; then
 
17410
    objformat=`/usr/bin/objformat`
 
17411
  else
 
17412
    case $host_os in
 
17413
    freebsd[23].*) objformat=aout ;;
 
17414
    *) objformat=elf ;;
 
17415
    esac
 
17416
  fi
 
17417
  version_type=freebsd-$objformat
 
17418
  case $version_type in
 
17419
    freebsd-elf*)
 
17420
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17421
      soname_spec='$libname$release$shared_ext$major'
 
17422
      need_version=no
 
17423
      need_lib_prefix=no
 
17424
      ;;
 
17425
    freebsd-*)
 
17426
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
17427
      need_version=yes
 
17428
      ;;
 
17429
  esac
 
17430
  shlibpath_var=LD_LIBRARY_PATH
 
17431
  case $host_os in
 
17432
  freebsd2.*)
 
17433
    shlibpath_overrides_runpath=yes
 
17434
    ;;
 
17435
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17436
    shlibpath_overrides_runpath=yes
 
17437
    hardcode_into_libs=yes
 
17438
    ;;
 
17439
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17440
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17441
    shlibpath_overrides_runpath=no
 
17442
    hardcode_into_libs=yes
 
17443
    ;;
 
17444
  *) # from 4.6 on, and DragonFly
 
17445
    shlibpath_overrides_runpath=yes
 
17446
    hardcode_into_libs=yes
 
17447
    ;;
 
17448
  esac
 
17449
  ;;
 
17450
 
 
17451
haiku*)
 
17452
  version_type=linux # correct to gnu/linux during the next big refactor
 
17453
  need_lib_prefix=no
 
17454
  need_version=no
 
17455
  dynamic_linker="$host_os runtime_loader"
 
17456
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17457
  soname_spec='$libname$release$shared_ext$major'
 
17458
  shlibpath_var=LIBRARY_PATH
 
17459
  shlibpath_overrides_runpath=no
 
17460
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
17461
  hardcode_into_libs=yes
 
17462
  ;;
 
17463
 
 
17464
hpux9* | hpux10* | hpux11*)
 
17465
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17466
  # link against other versions.
 
17467
  version_type=sunos
 
17468
  need_lib_prefix=no
 
17469
  need_version=no
 
17470
  case $host_cpu in
 
17471
  ia64*)
 
17472
    shrext_cmds='.so'
 
17473
    hardcode_into_libs=yes
 
17474
    dynamic_linker="$host_os dld.so"
 
17475
    shlibpath_var=LD_LIBRARY_PATH
 
17476
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17477
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17478
    soname_spec='$libname$release$shared_ext$major'
 
17479
    if test 32 = "$HPUX_IA64_MODE"; then
 
17480
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17481
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 
17482
    else
 
17483
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17484
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 
17485
    fi
 
17486
    ;;
 
17487
  hppa*64*)
 
17488
    shrext_cmds='.sl'
 
17489
    hardcode_into_libs=yes
 
17490
    dynamic_linker="$host_os dld.sl"
 
17491
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17492
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17493
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17494
    soname_spec='$libname$release$shared_ext$major'
 
17495
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17496
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17497
    ;;
 
17498
  *)
 
17499
    shrext_cmds='.sl'
 
17500
    dynamic_linker="$host_os dld.sl"
 
17501
    shlibpath_var=SHLIB_PATH
 
17502
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17503
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17504
    soname_spec='$libname$release$shared_ext$major'
 
17505
    ;;
 
17506
  esac
 
17507
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
17508
  postinstall_cmds='chmod 555 $lib'
 
17509
  # or fails outright, so override atomically:
 
17510
  install_override_mode=555
 
17511
  ;;
 
17512
 
 
17513
interix[3-9]*)
 
17514
  version_type=linux # correct to gnu/linux during the next big refactor
 
17515
  need_lib_prefix=no
 
17516
  need_version=no
 
17517
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17518
  soname_spec='$libname$release$shared_ext$major'
 
17519
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17520
  shlibpath_var=LD_LIBRARY_PATH
 
17521
  shlibpath_overrides_runpath=no
 
17522
  hardcode_into_libs=yes
 
17523
  ;;
 
17524
 
 
17525
irix5* | irix6* | nonstopux*)
 
17526
  case $host_os in
 
17527
    nonstopux*) version_type=nonstopux ;;
 
17528
    *)
 
17529
        if test yes = "$lt_cv_prog_gnu_ld"; then
 
17530
                version_type=linux # correct to gnu/linux during the next big refactor
 
17531
        else
 
17532
                version_type=irix
 
17533
        fi ;;
 
17534
  esac
 
17535
  need_lib_prefix=no
 
17536
  need_version=no
 
17537
  soname_spec='$libname$release$shared_ext$major'
 
17538
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 
17539
  case $host_os in
 
17540
  irix5* | nonstopux*)
 
17541
    libsuff= shlibsuff=
 
17542
    ;;
 
17543
  *)
 
17544
    case $LD in # libtool.m4 will add one of these switches to LD
 
17545
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17546
      libsuff= shlibsuff= libmagic=32-bit;;
 
17547
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17548
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17549
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17550
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17551
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17552
    esac
 
17553
    ;;
 
17554
  esac
 
17555
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17556
  shlibpath_overrides_runpath=no
 
17557
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
17558
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 
17559
  hardcode_into_libs=yes
 
17560
  ;;
 
17561
 
 
17562
# No shared lib support for Linux oldld, aout, or coff.
 
17563
linux*oldld* | linux*aout* | linux*coff*)
 
17564
  dynamic_linker=no
 
17565
  ;;
 
17566
 
 
17567
linux*android*)
 
17568
  version_type=none # Android doesn't support versioned libraries.
 
17569
  need_lib_prefix=no
 
17570
  need_version=no
 
17571
  library_names_spec='$libname$release$shared_ext'
 
17572
  soname_spec='$libname$release$shared_ext'
 
17573
  finish_cmds=
 
17574
  shlibpath_var=LD_LIBRARY_PATH
 
17575
  shlibpath_overrides_runpath=yes
 
17576
 
 
17577
  # This implies no fast_install, which is unacceptable.
 
17578
  # Some rework will be needed to allow for fast_install
 
17579
  # before this can be enabled.
 
17580
  hardcode_into_libs=yes
 
17581
 
 
17582
  dynamic_linker='Android linker'
 
17583
  # Don't embed -rpath directories since the linker doesn't support them.
 
17584
  hardcode_libdir_flag_spec_CXX='-L$libdir'
 
17585
  ;;
 
17586
 
 
17587
# This must be glibc/ELF.
 
17588
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
17589
  version_type=linux # correct to gnu/linux during the next big refactor
 
17590
  need_lib_prefix=no
 
17591
  need_version=no
 
17592
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17593
  soname_spec='$libname$release$shared_ext$major'
 
17594
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17595
  shlibpath_var=LD_LIBRARY_PATH
 
17596
  shlibpath_overrides_runpath=no
 
17597
 
 
17598
  # Some binutils ld are patched to set DT_RUNPATH
 
17599
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
17600
  $as_echo_n "(cached) " >&6
 
17601
else
 
17602
  lt_cv_shlibpath_overrides_runpath=no
 
17603
    save_LDFLAGS=$LDFLAGS
 
17604
    save_libdir=$libdir
 
17605
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
17606
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
17607
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17608
/* end confdefs.h.  */
 
17609
 
 
17610
int
 
17611
main ()
 
17612
{
 
17613
 
 
17614
  ;
 
17615
  return 0;
 
17616
}
 
17617
_ACEOF
 
17618
if ac_fn_cxx_try_link "$LINENO"; then :
 
17619
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
17620
  lt_cv_shlibpath_overrides_runpath=yes
 
17621
fi
 
17622
fi
 
17623
rm -f core conftest.err conftest.$ac_objext \
 
17624
    conftest$ac_exeext conftest.$ac_ext
 
17625
    LDFLAGS=$save_LDFLAGS
 
17626
    libdir=$save_libdir
 
17627
 
 
17628
fi
 
17629
 
 
17630
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
17631
 
 
17632
  # This implies no fast_install, which is unacceptable.
 
17633
  # Some rework will be needed to allow for fast_install
 
17634
  # before this can be enabled.
 
17635
  hardcode_into_libs=yes
 
17636
 
 
17637
  # Ideally, we could use ldconfig to report *all* directores which are
 
17638
  # searched for libraries, however this is still not possible.  Aside from not
 
17639
  # being certain /sbin/ldconfig is available, command
 
17640
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 
17641
  # even though it is searched at run-time.  Try to do the best guess by
 
17642
  # appending ld.so.conf contents (and includes) to the search path.
 
17643
  if test -f /etc/ld.so.conf; then
 
17644
    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' ' '`
 
17645
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17646
  fi
 
17647
 
 
17648
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17649
  # powerpc, because MkLinux only supported shared libraries with the
 
17650
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17651
  # most powerpc-linux boxes support dynamic linking these days and
 
17652
  # people can always --disable-shared, the test was removed, and we
 
17653
  # assume the GNU/Linux dynamic linker is in use.
 
17654
  dynamic_linker='GNU/Linux ld.so'
 
17655
  ;;
 
17656
 
 
17657
netbsd*)
 
17658
  version_type=sunos
 
17659
  need_lib_prefix=no
 
17660
  need_version=no
 
17661
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
17662
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
17663
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17664
    dynamic_linker='NetBSD (a.out) ld.so'
 
17665
  else
 
17666
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17667
    soname_spec='$libname$release$shared_ext$major'
 
17668
    dynamic_linker='NetBSD ld.elf_so'
 
17669
  fi
 
17670
  shlibpath_var=LD_LIBRARY_PATH
 
17671
  shlibpath_overrides_runpath=yes
 
17672
  hardcode_into_libs=yes
 
17673
  ;;
 
17674
 
 
17675
newsos6)
 
17676
  version_type=linux # correct to gnu/linux during the next big refactor
 
17677
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17678
  shlibpath_var=LD_LIBRARY_PATH
 
17679
  shlibpath_overrides_runpath=yes
 
17680
  ;;
 
17681
 
 
17682
*nto* | *qnx*)
 
17683
  version_type=qnx
 
17684
  need_lib_prefix=no
 
17685
  need_version=no
 
17686
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17687
  soname_spec='$libname$release$shared_ext$major'
 
17688
  shlibpath_var=LD_LIBRARY_PATH
 
17689
  shlibpath_overrides_runpath=no
 
17690
  hardcode_into_libs=yes
 
17691
  dynamic_linker='ldqnx.so'
 
17692
  ;;
 
17693
 
 
17694
openbsd* | bitrig*)
 
17695
  version_type=sunos
 
17696
  sys_lib_dlsearch_path_spec=/usr/lib
 
17697
  need_lib_prefix=no
 
17698
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
17699
    need_version=no
 
17700
  else
 
17701
    need_version=yes
 
17702
  fi
 
17703
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
17704
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17705
  shlibpath_var=LD_LIBRARY_PATH
 
17706
  shlibpath_overrides_runpath=yes
 
17707
  ;;
 
17708
 
 
17709
os2*)
 
17710
  libname_spec='$name'
 
17711
  version_type=windows
 
17712
  shrext_cmds=.dll
 
17713
  need_version=no
 
17714
  need_lib_prefix=no
 
17715
  # OS/2 can only load a DLL with a base name of 8 characters or less.
 
17716
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 
17717
    v=$($ECHO $release$versuffix | tr -d .-);
 
17718
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 
17719
    $ECHO $n$v`$shared_ext'
 
17720
  library_names_spec='${libname}_dll.$libext'
 
17721
  dynamic_linker='OS/2 ld.exe'
 
17722
  shlibpath_var=BEGINLIBPATH
 
17723
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17724
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17725
  postinstall_cmds='base_file=`basename \$file`~
 
17726
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 
17727
    dldir=$destdir/`dirname \$dlpath`~
 
17728
    test -d \$dldir || mkdir -p \$dldir~
 
17729
    $install_prog $dir/$dlname \$dldir/$dlname~
 
17730
    chmod a+x \$dldir/$dlname~
 
17731
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
17732
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
17733
    fi'
 
17734
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 
17735
    dlpath=$dir/\$dldll~
 
17736
    $RM \$dlpath'
 
17737
  ;;
 
17738
 
 
17739
osf3* | osf4* | osf5*)
 
17740
  version_type=osf
 
17741
  need_lib_prefix=no
 
17742
  need_version=no
 
17743
  soname_spec='$libname$release$shared_ext$major'
 
17744
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17745
  shlibpath_var=LD_LIBRARY_PATH
 
17746
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17747
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17748
  ;;
 
17749
 
 
17750
rdos*)
 
17751
  dynamic_linker=no
 
17752
  ;;
 
17753
 
 
17754
solaris*)
 
17755
  version_type=linux # correct to gnu/linux during the next big refactor
 
17756
  need_lib_prefix=no
 
17757
  need_version=no
 
17758
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17759
  soname_spec='$libname$release$shared_ext$major'
 
17760
  shlibpath_var=LD_LIBRARY_PATH
 
17761
  shlibpath_overrides_runpath=yes
 
17762
  hardcode_into_libs=yes
 
17763
  # ldd complains unless libraries are executable
 
17764
  postinstall_cmds='chmod +x $lib'
 
17765
  ;;
 
17766
 
 
17767
sunos4*)
 
17768
  version_type=sunos
 
17769
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 
17770
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17771
  shlibpath_var=LD_LIBRARY_PATH
 
17772
  shlibpath_overrides_runpath=yes
 
17773
  if test yes = "$with_gnu_ld"; then
 
17774
    need_lib_prefix=no
 
17775
  fi
 
17776
  need_version=yes
 
17777
  ;;
 
17778
 
 
17779
sysv4 | sysv4.3*)
 
17780
  version_type=linux # correct to gnu/linux during the next big refactor
 
17781
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17782
  soname_spec='$libname$release$shared_ext$major'
 
17783
  shlibpath_var=LD_LIBRARY_PATH
 
17784
  case $host_vendor in
 
17785
    sni)
 
17786
      shlibpath_overrides_runpath=no
 
17787
      need_lib_prefix=no
 
17788
      runpath_var=LD_RUN_PATH
 
17789
      ;;
 
17790
    siemens)
 
17791
      need_lib_prefix=no
 
17792
      ;;
 
17793
    motorola)
 
17794
      need_lib_prefix=no
 
17795
      need_version=no
 
17796
      shlibpath_overrides_runpath=no
 
17797
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17798
      ;;
 
17799
  esac
 
17800
  ;;
 
17801
 
 
17802
sysv4*MP*)
 
17803
  if test -d /usr/nec; then
 
17804
    version_type=linux # correct to gnu/linux during the next big refactor
 
17805
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
17806
    soname_spec='$libname$shared_ext.$major'
 
17807
    shlibpath_var=LD_LIBRARY_PATH
 
17808
  fi
 
17809
  ;;
 
17810
 
 
17811
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17812
  version_type=sco
 
17813
  need_lib_prefix=no
 
17814
  need_version=no
 
17815
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
17816
  soname_spec='$libname$release$shared_ext$major'
 
17817
  shlibpath_var=LD_LIBRARY_PATH
 
17818
  shlibpath_overrides_runpath=yes
 
17819
  hardcode_into_libs=yes
 
17820
  if test yes = "$with_gnu_ld"; then
 
17821
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17822
  else
 
17823
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17824
    case $host_os in
 
17825
      sco3.2v5*)
 
17826
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17827
        ;;
 
17828
    esac
 
17829
  fi
 
17830
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17831
  ;;
 
17832
 
 
17833
tpf*)
 
17834
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
17835
  version_type=linux # correct to gnu/linux during the next big refactor
 
17836
  need_lib_prefix=no
 
17837
  need_version=no
 
17838
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17839
  shlibpath_var=LD_LIBRARY_PATH
 
17840
  shlibpath_overrides_runpath=no
 
17841
  hardcode_into_libs=yes
 
17842
  ;;
 
17843
 
 
17844
uts4*)
 
17845
  version_type=linux # correct to gnu/linux during the next big refactor
 
17846
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
17847
  soname_spec='$libname$release$shared_ext$major'
 
17848
  shlibpath_var=LD_LIBRARY_PATH
 
17849
  ;;
 
17850
 
 
17851
*)
 
17852
  dynamic_linker=no
 
17853
  ;;
 
17854
esac
 
17855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
17856
$as_echo "$dynamic_linker" >&6; }
 
17857
test no = "$dynamic_linker" && can_build_shared=no
 
17858
 
 
17859
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17860
if test yes = "$GCC"; then
 
17861
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17862
fi
 
17863
 
 
17864
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
17865
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 
17866
fi
 
17867
 
 
17868
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
17869
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 
17870
fi
 
17871
 
 
17872
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 
17873
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 
17874
 
 
17875
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 
17876
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 
17877
 
 
17878
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 
17879
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 
17880
 
 
17881
 
 
17882
 
 
17883
 
 
17884
 
 
17885
 
 
17886
 
 
17887
 
 
17888
 
 
17889
 
 
17890
 
 
17891
 
 
17892
 
 
17893
 
 
17894
 
 
17895
 
 
17896
 
 
17897
 
 
17898
 
 
17899
 
 
17900
 
 
17901
 
 
17902
 
 
17903
 
 
17904
 
 
17905
 
 
17906
 
 
17907
 
 
17908
 
 
17909
 
 
17910
 
 
17911
 
 
17912
 
 
17913
 
 
17914
 
 
17915
 
 
17916
 
 
17917
 
 
17918
 
 
17919
 
 
17920
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
17921
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
17922
hardcode_action_CXX=
 
17923
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
17924
   test -n "$runpath_var_CXX" ||
 
17925
   test yes = "$hardcode_automatic_CXX"; then
 
17926
 
 
17927
  # We can hardcode non-existent directories.
 
17928
  if test no != "$hardcode_direct_CXX" &&
 
17929
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17930
     # have to relink, otherwise we might link with an installed library
 
17931
     # when we should be linking with a yet-to-be-installed one
 
17932
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
 
17933
     test no != "$hardcode_minus_L_CXX"; then
 
17934
    # Linking always hardcodes the temporary library directory.
 
17935
    hardcode_action_CXX=relink
 
17936
  else
 
17937
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17938
    hardcode_action_CXX=immediate
 
17939
  fi
 
17940
else
 
17941
  # We cannot hardcode anything, or else we can only hardcode existing
 
17942
  # directories.
 
17943
  hardcode_action_CXX=unsupported
 
17944
fi
 
17945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
17946
$as_echo "$hardcode_action_CXX" >&6; }
 
17947
 
 
17948
if test relink = "$hardcode_action_CXX" ||
 
17949
   test yes = "$inherit_rpath_CXX"; then
 
17950
  # Fast installation is not supported
 
17951
  enable_fast_install=no
 
17952
elif test yes = "$shlibpath_overrides_runpath" ||
 
17953
     test no = "$enable_shared"; then
 
17954
  # Fast installation is not necessary
 
17955
  enable_fast_install=needless
 
17956
fi
 
17957
 
 
17958
 
 
17959
 
 
17960
 
 
17961
 
 
17962
 
 
17963
 
 
17964
  fi # test -n "$compiler"
 
17965
 
 
17966
  CC=$lt_save_CC
 
17967
  CFLAGS=$lt_save_CFLAGS
 
17968
  LDCXX=$LD
 
17969
  LD=$lt_save_LD
 
17970
  GCC=$lt_save_GCC
 
17971
  with_gnu_ld=$lt_save_with_gnu_ld
 
17972
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
17973
  lt_cv_path_LD=$lt_save_path_LD
 
17974
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
17975
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
17976
fi # test yes != "$_lt_caught_CXX_error"
 
17977
 
 
17978
ac_ext=c
 
17979
ac_cpp='$CPP $CPPFLAGS'
 
17980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17983
 
 
17984
 
 
17985
#AC_LANG([C++])
 
17986
 
 
17987
ac_ext=c
 
17988
ac_cpp='$CPP $CPPFLAGS'
 
17989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17992
 
 
17993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing trunc" >&5
 
17994
$as_echo_n "checking for library containing trunc... " >&6; }
 
17995
if ${ac_cv_search_trunc+:} false; then :
 
17996
  $as_echo_n "(cached) " >&6
 
17997
else
 
17998
  ac_func_search_save_LIBS=$LIBS
 
17999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18000
/* end confdefs.h.  */
 
18001
 
 
18002
/* Override any GCC internal prototype to avoid an error.
 
18003
   Use char because int might match the return type of a GCC
 
18004
   builtin and then its argument prototype would still apply.  */
 
18005
#ifdef __cplusplus
 
18006
extern "C"
 
18007
#endif
 
18008
char trunc ();
 
18009
int
 
18010
main ()
 
18011
{
 
18012
return trunc ();
 
18013
  ;
 
18014
  return 0;
 
18015
}
 
18016
_ACEOF
 
18017
for ac_lib in '' m; do
 
18018
  if test -z "$ac_lib"; then
 
18019
    ac_res="none required"
 
18020
  else
 
18021
    ac_res=-l$ac_lib
 
18022
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
18023
  fi
 
18024
  if ac_fn_c_try_link "$LINENO"; then :
 
18025
  ac_cv_search_trunc=$ac_res
 
18026
fi
 
18027
rm -f core conftest.err conftest.$ac_objext \
 
18028
    conftest$ac_exeext
 
18029
  if ${ac_cv_search_trunc+:} false; then :
 
18030
  break
 
18031
fi
 
18032
done
 
18033
if ${ac_cv_search_trunc+:} false; then :
 
18034
 
 
18035
else
 
18036
  ac_cv_search_trunc=no
 
18037
fi
 
18038
rm conftest.$ac_ext
 
18039
LIBS=$ac_func_search_save_LIBS
 
18040
fi
 
18041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_trunc" >&5
 
18042
$as_echo "$ac_cv_search_trunc" >&6; }
 
18043
ac_res=$ac_cv_search_trunc
 
18044
if test "$ac_res" != no; then :
 
18045
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
18046
 
 
18047
fi
 
18048
 
 
18049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
 
18050
$as_echo_n "checking for library containing ceil... " >&6; }
 
18051
if ${ac_cv_search_ceil+:} false; then :
 
18052
  $as_echo_n "(cached) " >&6
 
18053
else
 
18054
  ac_func_search_save_LIBS=$LIBS
 
18055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18056
/* end confdefs.h.  */
 
18057
 
 
18058
/* Override any GCC internal prototype to avoid an error.
 
18059
   Use char because int might match the return type of a GCC
 
18060
   builtin and then its argument prototype would still apply.  */
 
18061
#ifdef __cplusplus
 
18062
extern "C"
 
18063
#endif
 
18064
char ceil ();
 
18065
int
 
18066
main ()
 
18067
{
 
18068
return ceil ();
 
18069
  ;
 
18070
  return 0;
 
18071
}
 
18072
_ACEOF
 
18073
for ac_lib in '' m; do
 
18074
  if test -z "$ac_lib"; then
 
18075
    ac_res="none required"
 
18076
  else
 
18077
    ac_res=-l$ac_lib
 
18078
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
18079
  fi
 
18080
  if ac_fn_c_try_link "$LINENO"; then :
 
18081
  ac_cv_search_ceil=$ac_res
 
18082
fi
 
18083
rm -f core conftest.err conftest.$ac_objext \
 
18084
    conftest$ac_exeext
 
18085
  if ${ac_cv_search_ceil+:} false; then :
 
18086
  break
 
18087
fi
 
18088
done
 
18089
if ${ac_cv_search_ceil+:} false; then :
 
18090
 
 
18091
else
 
18092
  ac_cv_search_ceil=no
 
18093
fi
 
18094
rm conftest.$ac_ext
 
18095
LIBS=$ac_func_search_save_LIBS
 
18096
fi
 
18097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
 
18098
$as_echo "$ac_cv_search_ceil" >&6; }
 
18099
ac_res=$ac_cv_search_ceil
 
18100
if test "$ac_res" != no; then :
 
18101
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
18102
 
 
18103
fi
 
18104
 
 
18105
ac_ext=c
 
18106
ac_cpp='$CPP $CPPFLAGS'
 
18107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18110
 
 
18111
 
 
18112
 
 
18113
 
 
18114
# Check whether --with-advanced-memory was given.
 
18115
if test "${with_advanced_memory+set}" = set; then :
 
18116
  withval=$with_advanced_memory; advmemory=$with_advanced_memory
 
18117
else
 
18118
   advmemory="no"
 
18119
fi
 
18120
 
 
18121
 
 
18122
# Check whether --with-memory-tracking was given.
 
18123
if test "${with_memory_tracking+set}" = set; then :
 
18124
  withval=$with_memory_tracking; memory_tracking=$with_memory_tracking
 
18125
else
 
18126
   memory_tracking="no"
 
18127
fi
 
18128
 
 
18129
 
 
18130
# Check whether --with-memory-tracing was given.
 
18131
if test "${with_memory_tracing+set}" = set; then :
 
18132
  withval=$with_memory_tracing; memory_tracing=$with_memory_tracing
 
18133
else
 
18134
   memory_tracing="no"
 
18135
fi
 
18136
 
 
18137
    ##
 
18138
    ## check function declarations
 
18139
    ##
 
18140
 
 
18141
    ac_ext=c
 
18142
ac_cpp='$CPP $CPPFLAGS'
 
18143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18146
 
 
18147
 
 
18148
        if  test "x$memory_tracing" == "xyes" ; then :
 
18149
 
 
18150
          { $as_echo "$as_me:${as_lineno-$LINENO}: Enable internal memory tracing" >&5
 
18151
$as_echo "$as_me: Enable internal memory tracing" >&6;}
 
18152
 
 
18153
$as_echo "#define HAVE_MEMORY_TRACING 1" >>confdefs.h
 
18154
 
 
18155
          advmemory="yes" # enable advanced memory
 
18156
          memory_tracking="yes" #enable memory tracking
 
18157
 
 
18158
fi
 
18159
        if  test "x$memory_tracking" == "xyes" ; then :
 
18160
 
 
18161
          { $as_echo "$as_me:${as_lineno-$LINENO}: Enable internal memory tracking" >&5
 
18162
$as_echo "$as_me: Enable internal memory tracking" >&6;}
 
18163
 
 
18164
$as_echo "#define HAVE_MEMORY_TRACKING 1" >>confdefs.h
 
18165
 
 
18166
          advmemory="yes" # enable advanced memory
 
18167
 
 
18168
fi
 
18169
    if  test "x$advmemory" == "xyes" ; then :
 
18170
 
 
18171
          { $as_echo "$as_me:${as_lineno-$LINENO}: Enable advanced memory handling" >&5
 
18172
$as_echo "$as_me: Enable advanced memory handling" >&6;}
 
18173
 
 
18174
$as_echo "#define HAVE_ADVANCED_MEMORY 1" >>confdefs.h
 
18175
 
 
18176
 
 
18177
fi
 
18178
 
 
18179
    ac_ext=c
 
18180
ac_cpp='$CPP $CPPFLAGS'
 
18181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18184
 
 
18185
 
 
18186
    ##
 
18187
    ## result
 
18188
    ##
 
18189
 
 
18190
     if test "x${advmemory}" = "xyes"; then
 
18191
  HAVE_ADVANCED_MEMORY_TRUE=
 
18192
  HAVE_ADVANCED_MEMORY_FALSE='#'
 
18193
else
 
18194
  HAVE_ADVANCED_MEMORY_TRUE='#'
 
18195
  HAVE_ADVANCED_MEMORY_FALSE=
 
18196
fi
 
18197
 
 
18198
     if test "x${memory_tracking}" = "xyes"; then
 
18199
  HAVE_MEMORY_TRACKING_TRUE=
 
18200
  HAVE_MEMORY_TRACKING_FALSE='#'
 
18201
else
 
18202
  HAVE_MEMORY_TRACKING_TRUE='#'
 
18203
  HAVE_MEMORY_TRACKING_FALSE=
 
18204
fi
 
18205
 
 
18206
     if test "x${memory_tracking}" = "xyes"; then
 
18207
  HAVE_MEMORY_TRACING_TRUE=
 
18208
  HAVE_MEMORY_TRACING_FALSE='#'
 
18209
else
 
18210
  HAVE_MEMORY_TRACING_TRUE='#'
 
18211
  HAVE_MEMORY_TRACING_FALSE=
 
18212
fi
 
18213
 
 
18214
 
 
18215
 
 
18216
#AC_CUBE_POSIX_FUNCTIONS
 
18217
#AC_CHECK_FUNCS_ONCE([readlink])
 
18218
 
 
18219
if test "x${ac_scorep_cross_compiling}" = "xyes"; then
 
18220
CROSS_BUILD="yes"
 
18221
fi
 
18222
 
 
18223
 
 
18224
 
 
18225
 
 
18226
 
 
18227
sufix=""
 
18228
   case "x${build_cpu}" in
 
18229
    "xx86")
 
18230
        sufix="32"
 
18231
        ;;
 
18232
    "xx86_64")
 
18233
        sufix="64"
 
18234
        ;;
 
18235
    "xppc32")
 
18236
        sufix="32"
 
18237
        ;;
 
18238
    "xppc64")
 
18239
        sufix="64"
 
18240
        ;;
 
18241
    "xia64")
 
18242
        sufix="64"
 
18243
        ;;
 
18244
    "xia32")
 
18245
        sufix="32"
 
18246
        ;;
 
18247
    "xpowerpc64")
 
18248
        sufix="64"
 
18249
        ;;
 
18250
    "xpowerpc32")
 
18251
        sufix="32"
 
18252
        ;;
 
18253
    "xmips64")
 
18254
        sufix="64"
 
18255
        ;;
 
18256
    "xmips32")
 
18257
        sufix="32"
 
18258
        ;;
 
18259
   esac
 
18260
if test "x$sufix" = "x"; then
 
18261
LIBDIRS_LIST="/lib/ /usr/lib/ "
 
18262
else
 
18263
LIBDIRS_LIST="/lib/ /lib$sufix/ /usr/lib/ /usr/lib$sufix/ "
 
18264
fi
 
18265
 
 
18266
 
 
18267
 
 
18268
 
 
18269
 
 
18270
 
 
18271
WITH_C_WRITER="yes"
 
18272
 
 
18273
 
 
18274
 
 
18275
 
 
18276
#AC_ARG_WITH(cwriter, [AS_HELP_STRING([--with-cwriter | --without-cwriter], [Enables (default) or disables building and installation of the C cube writer.])],[],[])
 
18277
 
 
18278
if  test x$with_cwriter = "xyes" ; then :
 
18279
 
 
18280
WITH_C_WRITER="yes"
 
18281
 
 
18282
fi
 
18283
 
 
18284
if  test x$with_cwriter = "xno" || test "x$without_cwriter" = "xyes" ; then :
 
18285
 
 
18286
WITH_C_WRITER="no"
 
18287
 
 
18288
fi
 
18289
 
 
18290
 if test x$WITH_C_WRITER == "xyes"; then
 
18291
  WITH_C_WRITER_TRUE=
 
18292
  WITH_C_WRITER_FALSE='#'
 
18293
else
 
18294
  WITH_C_WRITER_TRUE='#'
 
18295
  WITH_C_WRITER_FALSE=
 
18296
fi
 
18297
 
 
18298
 
 
18299
 
 
18300
 if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
 
18301
  CUBEW_COMPRESSION_FRONTEND_TRUE=
 
18302
  CUBEW_COMPRESSION_FRONTEND_FALSE='#'
 
18303
else
 
18304
  CUBEW_COMPRESSION_FRONTEND_TRUE='#'
 
18305
  CUBEW_COMPRESSION_FRONTEND_FALSE=
 
18306
fi
 
18307
 
 
18308
 
 
18309
 
 
18310
 if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
 
18311
  CUBEW_COMPRESSION_FRONTEND_TRUE=
 
18312
  CUBEW_COMPRESSION_FRONTEND_FALSE='#'
 
18313
else
 
18314
  CUBEW_COMPRESSION_FRONTEND_TRUE='#'
 
18315
  CUBEW_COMPRESSION_FRONTEND_FALSE=
 
18316
fi
 
18317
 
 
18318
 if test "x$MSG_BACKEND_COMPRESSION" = "xyes"; then
 
18319
  CUBEW_COMPRESSION_BACKEND_TRUE=
 
18320
  CUBEW_COMPRESSION_BACKEND_FALSE='#'
 
18321
else
 
18322
  CUBEW_COMPRESSION_BACKEND_TRUE='#'
 
18323
  CUBEW_COMPRESSION_BACKEND_FALSE=
 
18324
fi
 
18325
 
 
18326
 
 
18327
 
 
18328
# Check whether --with-frontend-zlib was given.
 
18329
if test "${with_frontend_zlib+set}" = set; then :
 
18330
  withval=$with_frontend_zlib; FRONTEND_PATH=$withval ; FRONTEND_LIBZ_LDFLAGS="-L$withval/lib"; FRONTEND_LIBZ_LIBS="-lz" ; FRONTEND_LIBZ_HEADERS="-I$withval/include"
 
18331
else
 
18332
  FRONTEND_PATH= ; FRONTEND_LIBZ_LDFLAGS=""; FRONTEND_LIBZ_LIBS="-lz" ; FRONTEND_LIBZ_HEADERS=""
 
18333
fi
 
18334
 
 
18335
#AC_ARG_WITH(frontend-compression, [AS_HELP_STRING([--with-frontend-compression], [Enables reading and writing of compressed cube files by C++ library(tools, GUI) and c-writer on frontend.)])],[FRONTEND_COMPRESSION_ON=$withval ],[])
 
18336
 
 
18337
if  test "x$compression_on" = "xyes"; then :
 
18338
 
 
18339
 
 
18340
 
 
18341
    for ax_var in z
 
18342
do :
 
18343
 
 
18344
                as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
 
18345
 
 
18346
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18347
 
 
18348
 
 
18349
done
 
18350
 
 
18351
 
 
18352
    for ax_var in zlib.h
 
18353
do :
 
18354
 
 
18355
                as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
 
18356
 
 
18357
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18358
 
 
18359
 
 
18360
done
 
18361
 
 
18362
 
 
18363
        LIB_RETURN="__NOT_FOUND__"
 
18364
    if  test "x$FRONTEND_PATH" == "x" ; then :
 
18365
 
 
18366
    { $as_echo "$as_me:${as_lineno-$LINENO}: Try pkg-config zlib for library..." >&5
 
18367
$as_echo "$as_me: Try pkg-config zlib for library..." >&6;}
 
18368
        PKG_CONFIG_AVAILABLE=`which pkg-config`
 
18369
        #here we try tu use pkg-config
 
18370
        if  test "x$PKG_CONFIG_AVAILABLE" != "x" ; then :
 
18371
 
 
18372
            ZLIBCHECK=`pkg-config --libs-only-L zlib 2>&1| grep "No package "`
 
18373
            if  test "x$ZLIBCHECK" = "x" ; then :
 
18374
 
 
18375
            LIB_RETURN=$ZLIBCHECK
 
18376
            { $as_echo "$as_me:${as_lineno-$LINENO}: Found zlib. Library linked  via ${LIB_RETURN} -lz" >&5
 
18377
$as_echo "$as_me: Found zlib. Library linked  via ${LIB_RETURN} -lz" >&6;}
 
18378
 
 
18379
fi
 
18380
 
 
18381
fi
 
18382
 
 
18383
else
 
18384
 
 
18385
    if  test -e $FRONTEND_PATH ; then :
 
18386
 
 
18387
      if  test -f $FRONTEND_PATH ; then :
 
18388
 
 
18389
         ZLIB_PATH=`dirname $FRONTEND_PATH`
 
18390
         ZLIB_PATH=`dirname $ZLIB_PATH`
 
18391
 
 
18392
else
 
18393
 
 
18394
        ZLIB_PATH=$FRONTEND_PATH
 
18395
 
 
18396
fi
 
18397
 
 
18398
        PATH_CANDIDATES=`find $ZLIB_PATH/ -type d `
 
18399
 
 
18400
 
 
18401
      for zlib_path in $PATH_CANDIDATES; do
 
18402
 
 
18403
                  ax_probe_library_save_LDFLAGS=${LDFLAGS}
 
18404
 
 
18405
          LDFLAGS="-L$zlib_path"
 
18406
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib in $zlib_path" >&5
 
18407
$as_echo_n "checking zlib in $zlib_path... " >&6; }
 
18408
          $as_echo
 
18409
          $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS=\"${LDFLAGS}\"" >&5
 
18410
 
 
18411
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
 
18412
$as_echo_n "checking for zlibVersion in -lz... " >&6; }
 
18413
if ${ac_cv_lib_z_zlibVersion+:} false; then :
 
18414
  $as_echo_n "(cached) " >&6
 
18415
else
 
18416
  ac_check_lib_save_LIBS=$LIBS
 
18417
LIBS="-lz  $LIBS"
 
18418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18419
/* end confdefs.h.  */
 
18420
 
 
18421
/* Override any GCC internal prototype to avoid an error.
 
18422
   Use char because int might match the return type of a GCC
 
18423
   builtin and then its argument prototype would still apply.  */
 
18424
#ifdef __cplusplus
 
18425
extern "C"
 
18426
#endif
 
18427
char zlibVersion ();
 
18428
int
 
18429
main ()
 
18430
{
 
18431
return zlibVersion ();
 
18432
  ;
 
18433
  return 0;
 
18434
}
 
18435
_ACEOF
 
18436
if ac_fn_c_try_link "$LINENO"; then :
 
18437
  ac_cv_lib_z_zlibVersion=yes
 
18438
else
 
18439
  ac_cv_lib_z_zlibVersion=no
 
18440
fi
 
18441
rm -f core conftest.err conftest.$ac_objext \
 
18442
    conftest$ac_exeext conftest.$ac_ext
 
18443
LIBS=$ac_check_lib_save_LIBS
 
18444
fi
 
18445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
 
18446
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
 
18447
if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
 
18448
  ZLIB_FOUND="yes"
 
18449
else
 
18450
  ZLIB_FOUND="no"
 
18451
fi
 
18452
 
 
18453
 
 
18454
                  LDFLAGS=${ax_probe_library_save_LDFLAGS}
 
18455
 
 
18456
    for ax_var in z
 
18457
do :
 
18458
 
 
18459
                as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
 
18460
 
 
18461
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18462
 
 
18463
 
 
18464
done
 
18465
 
 
18466
 
 
18467
                  if  test "x$ZLIB_FOUND" == "xyes" ; then :
 
18468
 
 
18469
                  { $as_echo "$as_me:${as_lineno-$LINENO}: FOUND zlib at $FRONTEND_PATH" >&5
 
18470
$as_echo "$as_me: FOUND zlib at $FRONTEND_PATH" >&6;}
 
18471
                  LIB_RETURN="-L$zlib_path"
 
18472
                  break;
 
18473
 
 
18474
fi
 
18475
      done
 
18476
 
 
18477
else
 
18478
 
 
18479
      as_fn_error $? "\"Error: $FRONTEND_PATH doesn't exist\"" "$LINENO" 5
 
18480
 
 
18481
fi
 
18482
 
 
18483
fi
 
18484
 
 
18485
 
 
18486
        HEADER_RETURN="__NOT_FOUND__"
 
18487
 
 
18488
    if  test "x$FRONTEND_PATH" == "x" ; then :
 
18489
 
 
18490
        { $as_echo "$as_me:${as_lineno-$LINENO}: Try pkg-config zlib for headers..." >&5
 
18491
$as_echo "$as_me: Try pkg-config zlib for headers..." >&6;}
 
18492
        PKG_CONFIG_AVAILABLE=`which pkg-config`
 
18493
        #here we try tu use pkg-config
 
18494
        if  test "x$PKG_CONFIG_AVAILABLE" != "x" ; then :
 
18495
 
 
18496
            ZLIBCHECK=`pkg-config --cflags zlib 2>&1| grep "No package "`
 
18497
            if  test "x$ZLIBCHECK" = "x" ; then :
 
18498
 
 
18499
                HEADER_RETURN=$ZLIBCHECK
 
18500
                { $as_echo "$as_me:${as_lineno-$LINENO}: Found zlib. Headers are included via $HEADER_RETURN" >&5
 
18501
$as_echo "$as_me: Found zlib. Headers are included via $HEADER_RETURN" >&6;}
 
18502
 
 
18503
fi
 
18504
 
 
18505
fi
 
18506
 
 
18507
else
 
18508
 
 
18509
    if  test -e $FRONTEND_PATH ; then :
 
18510
 
 
18511
     if  test -f $FRONTEND_PATH ; then :
 
18512
 
 
18513
       ZLIB_PATH=`dirname $FRONTEND_PATH`
 
18514
       ZLIB_PATH=`dirname $ZLIB_PATH`
 
18515
 
 
18516
else
 
18517
 
 
18518
        ZLIB_PATH=$FRONTEND_PATH
 
18519
 
 
18520
fi
 
18521
 
 
18522
      PATH_CANDIDATES=`find $ZLIB_PATH/ -type d `
 
18523
 
 
18524
      for zlib_path in $PATH_CANDIDATES; do
 
18525
 
 
18526
                  ax_probe_header_save_CXXFLAGS=${CXXFLAGS}
 
18527
          ax_probe_header_save_CFLAGS=${CFLAGS}
 
18528
 
 
18529
          CXXFLAGS="-I$zlib_path"
 
18530
          CFLAGS="-I$zlib_path"
 
18531
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib.h in $zlib_path" >&5
 
18532
$as_echo_n "checking zlib.h in $zlib_path... " >&6; }
 
18533
          $as_echo
 
18534
          $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS=\"${CXXFLAGS}\"" >&5
 
18535
          $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS=\"${CFLAGS}\"" >&5
 
18536
 
 
18537
          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
 
18538
if test "x$ac_cv_header_zlib_h" = xyes; then :
 
18539
  ZLIB_HEADER_FOUND="yes"
 
18540
else
 
18541
  ZLIB_HEADER_FOUND="no"
 
18542
fi
 
18543
 
 
18544
 
 
18545
 
 
18546
                  CXXFLAGS=${ax_probe_header_save_CXXFLAGS}
 
18547
          CFLAGS=${ax_probe_header_save_CFLAGS}
 
18548
 
 
18549
    for ax_var in zlib.h
 
18550
do :
 
18551
 
 
18552
                as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
 
18553
 
 
18554
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18555
 
 
18556
 
 
18557
done
 
18558
 
 
18559
 
 
18560
                  if  test "x$ZLIB_HEADER_FOUND" == "xyes" ; then :
 
18561
 
 
18562
                  { $as_echo "$as_me:${as_lineno-$LINENO}: FOUND zlib.h at $FRONTEND_PATH" >&5
 
18563
$as_echo "$as_me: FOUND zlib.h at $FRONTEND_PATH" >&6;}
 
18564
                  HEADER_RETURN="-I$zlib_path"
 
18565
                  break;
 
18566
 
 
18567
fi
 
18568
      done
 
18569
 
 
18570
else
 
18571
 
 
18572
    # here is not $FRONTEND_PATH given or test is failed
 
18573
    as_fn_error $? "\"Error: $FRONTEND_PATH doesn't exist\"" "$LINENO" 5
 
18574
 
 
18575
fi
 
18576
 
 
18577
fi
 
18578
 
 
18579
    if  test "x$HEADER_RETURN"  != "x__NOT_FOUND__" && test "x$LIB_RETURN"  != "x__NOT_FOUND__" ; then :
 
18580
 
 
18581
            FRONTEND_LIBZ_LDFLAGS="$LIB_RETURN "
 
18582
            FRONTEND_LIBZ_LIBS="-lz"
 
18583
            FRONTEND_LIBZ_HEADERS="$HEADER_RETURN"
 
18584
            COMPRESSION="$COMPRESSION -DFRONTEND_CUBE_COMPRESSED=yes "
 
18585
 
 
18586
$as_echo "#define COMPRESSION 1" >>confdefs.h
 
18587
 
 
18588
            MSG_FRONTEND_COMPRESSION=yes
 
18589
 
 
18590
else
 
18591
 
 
18592
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Cannot find zlib under $FRONTEND_PATH. CUBE uses zlib compression and this library is needed, if you create a frontend application." >&5
 
18593
$as_echo "$as_me: WARNING:  Cannot find zlib under $FRONTEND_PATH. CUBE uses zlib compression and this library is needed, if you create a frontend application." >&2;}
 
18594
            FRONTEND_LIBZ_LDFLAGS=""
 
18595
            FRONTEND_LIBZ_LIBS=""
 
18596
            FRONTEND_LIBZ_HEADERS=""
 
18597
            MSG_FRONTEND_COMPRESSION=no
 
18598
            COMPRESSION="$COMPRESSION"
 
18599
 
 
18600
fi
 
18601
 
 
18602
    for ax_var in z
 
18603
do :
 
18604
 
 
18605
                as_ax_Var=`$as_echo "ac_cv_lib_${ax_var}_zlibVersion" | $as_tr_sh`
 
18606
 
 
18607
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18608
 
 
18609
 
 
18610
done
 
18611
 
 
18612
 
 
18613
    for ax_var in zlib.h
 
18614
do :
 
18615
 
 
18616
                as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
 
18617
 
 
18618
        { eval $as_ax_Var=; unset $as_ax_Var;}
 
18619
 
 
18620
 
 
18621
done
 
18622
 
 
18623
 
 
18624
 
 
18625
 
 
18626
 
 
18627
 
 
18628
else
 
18629
 
 
18630
COMPRESSION=""
 
18631
FRONTEND_LIBZ_HEADERS=""
 
18632
FRONTEND_LIBZ_LDFLAGS=""
 
18633
FRONTEND_LIBZ_LIBS=""
 
18634
MSG_FRONTEND_COMPRESSION="no"
 
18635
 
 
18636
fi
 
18637
 
 
18638
 
 
18639
 
 
18640
 
 
18641
if  test "x$MSG_FRONTEND_COMPRESSION" != "xno" ; then :
 
18642
 
 
18643
{ $as_echo "$as_me:${as_lineno-$LINENO}:  Frontend zlib get linked  as: $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS" >&5
 
18644
$as_echo "$as_me:  Frontend zlib get linked  as: $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS" >&6;}
 
18645
{ $as_echo "$as_me:${as_lineno-$LINENO}:  Frontend zlib headers included as: $FRONTEND_LIBZ_HEADERS" >&5
 
18646
$as_echo "$as_me:  Frontend zlib headers included as: $FRONTEND_LIBZ_HEADERS" >&6;}
 
18647
 
 
18648
fi
 
18649
 
 
18650
 if test "x$MSG_FRONTEND_COMPRESSION" = "xyes"; then
 
18651
  CUBEW_COMPRESSION_FRONTEND_TRUE=
 
18652
  CUBEW_COMPRESSION_FRONTEND_FALSE='#'
 
18653
else
 
18654
  CUBEW_COMPRESSION_FRONTEND_TRUE='#'
 
18655
  CUBEW_COMPRESSION_FRONTEND_FALSE=
 
18656
fi
 
18657
 
 
18658
 
 
18659
 
 
18660
 
 
18661
 
 
18662
 
 
18663
 
 
18664
 
 
18665
 
 
18666
 
 
18667
 
 
18668
XEND=frontend
 
18669
 
 
18670
 
 
18671
if  test "x$CROSS_BUILD" = "xyes" ; then :
 
18672
 
 
18673
 
 
18674
if test "x$XEND" = "xfrontend" ; then :
 
18675
 
 
18676
 
 
18677
 
 
18678
cat >>config.summary <<_ACEOF
 
18679
      Frontend zlib compression :
 
18680
                                $MSG_FRONTEND_COMPRESSION
 
18681
_ACEOF
 
18682
 
 
18683
if test "x$MSG_FRONTEND_COMPRESSION" != "xno" ; then :
 
18684
 
 
18685
 
 
18686
 
 
18687
cat >>config.summary <<_ACEOF
 
18688
        zlib headers :          $FRONTEND_LIBZ_HEADERS
 
18689
_ACEOF
 
18690
 
 
18691
 
 
18692
 
 
18693
cat >>config.summary <<_ACEOF
 
18694
        zlib library :          $FRONTEND_LIBZ_LDFLAGS $FRONTEND_LIBZ_LIBS
 
18695
_ACEOF
 
18696
 
 
18697
 
 
18698
 
 
18699
cat >>config.summary <<_ACEOF
 
18700
        Notice:                 Front end part of cube (c-writer library) produces compressed cube report.(enabled via
 
18701
                                environment variable CUBEW_ZLIB_COMPRESSION=true)
 
18702
_ACEOF
 
18703
 
 
18704
 
 
18705
fi
 
18706
 
 
18707
fi
 
18708
 
 
18709
if test "x$XEND" = "xbackend" ; then :
 
18710
 
 
18711
 
 
18712
 
 
18713
cat >>config.summary <<_ACEOF
 
18714
      Backend zlib compression :
 
18715
                                $MSG_BACKEND_COMPRESSION
 
18716
_ACEOF
 
18717
 
 
18718
if test "x$MSG_BACKEND_COMPRESSION" = "xyes" ; then :
 
18719
 
 
18720
 
 
18721
 
 
18722
cat >>config.summary <<_ACEOF
 
18723
        zlib headers :          $BACKEND_LIBZ_HEADERS
 
18724
_ACEOF
 
18725
 
 
18726
 
 
18727
 
 
18728
cat >>config.summary <<_ACEOF
 
18729
        zlib library :          $BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS
 
18730
_ACEOF
 
18731
 
 
18732
 
 
18733
 
 
18734
cat >>config.summary <<_ACEOF
 
18735
        Notice:                 Back end part of cube (c-writer library) produces compressed cube report.(enabled via
 
18736
                                environment variable CUBEW_ZLIB_COMPRESSION=true)
 
18737
_ACEOF
 
18738
 
 
18739
 
 
18740
fi
 
18741
 
 
18742
fi
 
18743
 
 
18744
 
 
18745
else
 
18746
 
 
18747
 
 
18748
 
 
18749
cat >>config.summary <<_ACEOF
 
18750
      zlib compression :        $MSG_BACKEND_COMPRESSION
 
18751
_ACEOF
 
18752
 
 
18753
if test "x$MSG_BACKEND_COMPRESSION" != "xno" ; then :
 
18754
 
 
18755
 
 
18756
 
 
18757
cat >>config.summary <<_ACEOF
 
18758
        zlib headers :          $BACKEND_LIBZ_HEADERS
 
18759
_ACEOF
 
18760
 
 
18761
 
 
18762
 
 
18763
cat >>config.summary <<_ACEOF
 
18764
        zlib library :          $BACKEND_LIBZ_LDFLAGS $BACKEND_LIBZ_LIBS
 
18765
_ACEOF
 
18766
 
 
18767
 
 
18768
 
 
18769
cat >>config.summary <<_ACEOF
 
18770
        Notice:                 Cube (c-writer library) produces compressed cube report.(enabled via environment variable
 
18771
                                CUBEW_ZLIB_COMPRESSION=true)
 
18772
_ACEOF
 
18773
 
 
18774
 
 
18775
fi
 
18776
 
 
18777
fi
 
18778
 
 
18779
 
 
18780
cat >>config.summary <<_ACEOF
 
18781
        zlib compression flags :
 
18782
                                $COMPRESSION
 
18783
_ACEOF
 
18784
 
 
18785
 
 
18786
 
 
18787
 
 
18788
cat >>config.summary <<_ACEOF
 
18789
      Advanced memory handling :
 
18790
                                $advmemory
 
18791
_ACEOF
 
18792
 
 
18793
 
 
18794
 
 
18795
cat >>config.summary <<_ACEOF
 
18796
      Internal memory tracking :
 
18797
                                $memory_tracking
 
18798
_ACEOF
 
18799
 
 
18800
 
 
18801
 
 
18802
cat >>config.summary <<_ACEOF
 
18803
      Internal memory tracing : $memory_tracing
 
18804
_ACEOF
 
18805
 
 
18806
 
 
18807
 
 
18808
 
 
18809
 
 
18810
if test "x$XEND" = "xbackend" && test "x$CROSS_BUILD" == "xyes" ; then :
 
18811
 
 
18812
 
 
18813
 
 
18814
cat >>config.summary <<_ACEOF
 
18815
      C99 compiler used:        $CC
 
18816
_ACEOF
 
18817
 
 
18818
 
 
18819
 
 
18820
cat >>config.summary <<_ACEOF
 
18821
      C++ compiler used:        $CXX
 
18822
_ACEOF
 
18823
 
 
18824
 
 
18825
 
 
18826
cat >>config.summary <<_ACEOF
 
18827
       Compiler flags used:     $CFLAGS
 
18828
_ACEOF
 
18829
 
 
18830
 
 
18831
 
 
18832
cat >>config.summary <<_ACEOF
 
18833
       Compiler cxxflags used:  $CXXFLAGS
 
18834
_ACEOF
 
18835
 
 
18836
 
 
18837
else
 
18838
 
 
18839
 
 
18840
 
 
18841
cat >>config.summary <<_ACEOF
 
18842
      C99 compiler used:        $CC
 
18843
_ACEOF
 
18844
 
 
18845
 
 
18846
 
 
18847
cat >>config.summary <<_ACEOF
 
18848
      C++ compiler used:        $CXX
 
18849
_ACEOF
 
18850
 
 
18851
 
 
18852
 
 
18853
cat >>config.summary <<_ACEOF
 
18854
       Compiler flags used:     $CFLAGS
 
18855
_ACEOF
 
18856
 
 
18857
 
 
18858
 
 
18859
cat >>config.summary <<_ACEOF
 
18860
       Compiler cxxflags used:  $CXXFLAGS
 
18861
_ACEOF
 
18862
 
 
18863
 
 
18864
fi
 
18865
 
 
18866
 
 
18867
 
 
18868
 
 
18869
 
 
18870
 
 
18871
 
 
18872
 
 
18873
#check for examples
 
18874
 
 
18875
 
 
18876
 
 
18877
        NOMPI_CUBEW_FRONTEND_EXAMPLES_SRC="cubew_example_complex.c \
 
18878
                                           cubew_example_simple.c \
 
18879
                                           cubew_system_tree_memory_footprint_standard.c\
 
18880
                                           cubew_system_tree_memory_footprint_optimized.c"
 
18881
        NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE="cubew_example_complex.c.exe \
 
18882
                                           cubew_example_simple.c.exe \
 
18883
                                            cubew_system_tree_memory_footprint_standard.c.exe\
 
18884
                                            cubew_system_tree_memory_footprint_optimized.c.exe"
 
18885
        if test "x$MPICC" != "x"; then
 
18886
            MPI_CUBEW_FRONTEND_EXAMPLES_SRC=""
 
18887
            MPI_CUBEW_FRONTEND_EXAMPLES_EXE=""
 
18888
        fi
 
18889
 
 
18890
 
 
18891
    NOMPI_FRONTEND_APPS_EXE="$NOMPI_CUBEW_FRONTEND_EXAMPLES_EXE"
 
18892
    MPI_FRONTEND_APPS_EXE="$MPI_CUBEW_FRONTEND_EXAMPLES_EXE"
 
18893
 
 
18894
 
 
18895
 
 
18896
 
 
18897
 
 
18898
 
 
18899
 
 
18900
 
 
18901
 
 
18902
 
 
18903
 
 
18904
 
 
18905
 
 
18906
    MPI_BACKEND_APPS=""
 
18907
    NOMPI_BACKEND_APPS=""
 
18908
 
 
18909
        NOMPI_CUBEW_BACKEND_EXAMPLES_SRC=""
 
18910
        NOMPI_CUBEW_BACKEND_EXAMPLES_EXE=""
 
18911
        if test "x$MPICC" != "x"; then
 
18912
            MPI_CUBEW_BACKEND_EXAMPLES_SRC="cubew_example_simple.mpi.c \
 
18913
                                            cubew_example_complex.mpi.c"
 
18914
            MPI_CUBEW_BACKEND_EXAMPLES_EXE="cubew_example_simple.mpi.c.exe \
 
18915
                                            cubew_example_complex.mpi.c.exe"
 
18916
        fi
 
18917
 
 
18918
    NOMPI_BACKEND_APPS_EXE="$NOMPI_CUBEW_BACKEND_EXAMPLES_EXE"
 
18919
    MPI_BACKEND_APPS_EXE="$MPI_CUBEW_BACKEND_EXAMPLES_EXE"
 
18920
 
 
18921
 
 
18922
 
 
18923
 
 
18924
 
 
18925
 
 
18926
 
 
18927
 
 
18928
 
 
18929
 
 
18930
 
 
18931
 
 
18932
 
 
18933
 
 
18934
 
 
18935
ac_config_headers="$ac_config_headers ../src/cubew-config-frontend.h"
 
18936
 
 
18937
 
 
18938
if test "x${hardcode_into_libs}" = "xyes"; then :
 
18939
  ac_scorep_hardcode_into_libs=1
 
18940
else
 
18941
  ac_scorep_hardcode_into_libs=0
 
18942
fi
 
18943
HARDCODE_INTO_LIBS=${ac_scorep_hardcode_into_libs}
 
18944
 
 
18945
HARDCODE_LIBDIR_FLAG_CC=${hardcode_libdir_flag_spec}
 
18946
 
 
18947
HARDCODE_LIBDIR_FLAG_CXX=${hardcode_libdir_flag_spec_CXX}
 
18948
 
 
18949
HARDCODE_LIBDIR_WL=${wl}
 
18950
 
 
18951
HARDCODE_LIBDIR_AIX_LIBPATH=${aix_libpath}
 
18952
 
 
18953
 
 
18954
 
 
18955
SYS_LIB_DLSEARCH_PATH_SPEC=${sys_lib_dlsearch_path_spec}
 
18956
 
 
18957
 
 
18958
 
 
18959
PACKAGE_ERROR_CODES_INCDIR=../include/cubew
 
18960
 
 
18961
 
 
18962
cat >>confdefs.h <<_ACEOF
 
18963
#define PACKAGE_ERROR_CODES_HEADER <CubeWErrorCodes.h>
 
18964
_ACEOF
 
18965
 
 
18966
 
 
18967
 
 
18968
ac_ext=cpp
 
18969
ac_cpp='$CXXCPP $CPPFLAGS'
 
18970
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18971
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18972
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18973
 
 
18974
 
 
18975
 
 
18976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_CONSTANT_MACROS" >&5
 
18977
$as_echo_n "checking whether $CXX needs __STDC_CONSTANT_MACROS... " >&6; }
 
18978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18979
/* end confdefs.h.  */
 
18980
 
 
18981
 
 
18982
    #include <stdint.h>
 
18983
 
 
18984
int
 
18985
main ()
 
18986
{
 
18987
 
 
18988
    int8_t   i8  = INT8_C( 42 );
 
18989
    int16_t  i16 = INT16_C( 42 );
 
18990
    int32_t  i32 = INT32_C( 42 );
 
18991
    int64_t  i64 = INT64_C( 42 );
 
18992
    uint8_t  u8  = UINT8_C( 42 );
 
18993
    uint16_t u16 = UINT16_C( 42 );
 
18994
    uint32_t u32 = UINT32_C( 42 );
 
18995
    uint64_t u64 = UINT64_C( 42 );
 
18996
 
 
18997
  ;
 
18998
  return 0;
 
18999
}
 
19000
 
 
19001
_ACEOF
 
19002
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19003
  _ax_result=no
 
19004
else
 
19005
  _ax_save_CPPFLAGS="$CPPFLAGS"
 
19006
     CPPFLAGS="-D__STDC_CONSTANT_MACROS"
 
19007
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19008
/* end confdefs.h.  */
 
19009
 
 
19010
 
 
19011
    #include <stdint.h>
 
19012
 
 
19013
int
 
19014
main ()
 
19015
{
 
19016
 
 
19017
    int8_t   i8  = INT8_C( 42 );
 
19018
    int16_t  i16 = INT16_C( 42 );
 
19019
    int32_t  i32 = INT32_C( 42 );
 
19020
    int64_t  i64 = INT64_C( 42 );
 
19021
    uint8_t  u8  = UINT8_C( 42 );
 
19022
    uint16_t u16 = UINT16_C( 42 );
 
19023
    uint32_t u32 = UINT32_C( 42 );
 
19024
    uint64_t u64 = UINT64_C( 42 );
 
19025
 
 
19026
  ;
 
19027
  return 0;
 
19028
}
 
19029
 
 
19030
_ACEOF
 
19031
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19032
  _ax_result=yes
 
19033
 
 
19034
$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
 
19035
 
 
19036
else
 
19037
  as_fn_error $? "$CXX cannot compile fixed-width integer constant macros" "$LINENO" 5
 
19038
fi
 
19039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19040
     CPPFLAGS="$_ax_save_CPPFLAGS"
 
19041
fi
 
19042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
 
19044
$as_echo "$_ax_result" >&6; }
 
19045
 
 
19046
 
 
19047
 
 
19048
 
 
19049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_FORMAT_MACROS" >&5
 
19050
$as_echo_n "checking whether $CXX needs __STDC_FORMAT_MACROS... " >&6; }
 
19051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19052
/* end confdefs.h.  */
 
19053
 
 
19054
 
 
19055
    #include <inttypes.h>
 
19056
 
 
19057
int
 
19058
main ()
 
19059
{
 
19060
 
 
19061
    const char* i8  = PRId8;
 
19062
    const char* i16 = PRId16;
 
19063
    const char* i32 = PRId32;
 
19064
    const char* i64 = PRId64;
 
19065
    const char* u8  = PRIu8;
 
19066
    const char* u16 = PRIu16;
 
19067
    const char* u32 = PRIu32;
 
19068
    const char* u64 = PRIu64;
 
19069
 
 
19070
  ;
 
19071
  return 0;
 
19072
}
 
19073
 
 
19074
_ACEOF
 
19075
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19076
  _ax_result=no
 
19077
else
 
19078
  _ax_save_CPPFLAGS="$CPPFLAGS"
 
19079
     CPPFLAGS="-D__STDC_FORMAT_MACROS"
 
19080
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19081
/* end confdefs.h.  */
 
19082
 
 
19083
 
 
19084
    #include <inttypes.h>
 
19085
 
 
19086
int
 
19087
main ()
 
19088
{
 
19089
 
 
19090
    const char* i8  = PRId8;
 
19091
    const char* i16 = PRId16;
 
19092
    const char* i32 = PRId32;
 
19093
    const char* i64 = PRId64;
 
19094
    const char* u8  = PRIu8;
 
19095
    const char* u16 = PRIu16;
 
19096
    const char* u32 = PRIu32;
 
19097
    const char* u64 = PRIu64;
 
19098
 
 
19099
  ;
 
19100
  return 0;
 
19101
}
 
19102
 
 
19103
_ACEOF
 
19104
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19105
  _ax_result=yes
 
19106
 
 
19107
$as_echo "#define __STDC_FORMAT_MACROS 1" >>confdefs.h
 
19108
 
 
19109
else
 
19110
  as_fn_error $? "$CXX cannot compile fixed-width integer format macros" "$LINENO" 5
 
19111
fi
 
19112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19113
     CPPFLAGS="$_ax_save_CPPFLAGS"
 
19114
fi
 
19115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
 
19117
$as_echo "$_ax_result" >&6; }
 
19118
 
 
19119
 
 
19120
 
 
19121
 
 
19122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX needs __STDC_LIMIT_MACROS" >&5
 
19123
$as_echo_n "checking whether $CXX needs __STDC_LIMIT_MACROS... " >&6; }
 
19124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19125
/* end confdefs.h.  */
 
19126
 
 
19127
 
 
19128
    #include <stdint.h>
 
19129
 
 
19130
int
 
19131
main ()
 
19132
{
 
19133
 
 
19134
    int8_t   i8  = INT8_MAX;
 
19135
    int16_t  i16 = INT16_MAX;
 
19136
    int32_t  i32 = INT32_MAX;
 
19137
    int64_t  i64 = INT64_MAX;
 
19138
    uint8_t  u8  = UINT8_MAX;
 
19139
    uint16_t u16 = UINT16_MAX;
 
19140
    uint32_t u32 = UINT32_MAX;
 
19141
    uint64_t u64 = UINT64_MAX;
 
19142
 
 
19143
  ;
 
19144
  return 0;
 
19145
}
 
19146
 
 
19147
_ACEOF
 
19148
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19149
  _ax_result=no
 
19150
else
 
19151
  _ax_save_CPPFLAGS="$CPPFLAGS"
 
19152
     CPPFLAGS="-D__STDC_LIMIT_MACROS"
 
19153
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19154
/* end confdefs.h.  */
 
19155
 
 
19156
 
 
19157
    #include <stdint.h>
 
19158
 
 
19159
int
 
19160
main ()
 
19161
{
 
19162
 
 
19163
    int8_t   i8  = INT8_MAX;
 
19164
    int16_t  i16 = INT16_MAX;
 
19165
    int32_t  i32 = INT32_MAX;
 
19166
    int64_t  i64 = INT64_MAX;
 
19167
    uint8_t  u8  = UINT8_MAX;
 
19168
    uint16_t u16 = UINT16_MAX;
 
19169
    uint32_t u32 = UINT32_MAX;
 
19170
    uint64_t u64 = UINT64_MAX;
 
19171
 
 
19172
  ;
 
19173
  return 0;
 
19174
}
 
19175
 
 
19176
_ACEOF
 
19177
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19178
  _ax_result=yes
 
19179
 
 
19180
$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
 
19181
 
 
19182
else
 
19183
  as_fn_error $? "$CXX cannot compile fixed-width integer limit macros" "$LINENO" 5
 
19184
fi
 
19185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19186
     CPPFLAGS="$_ax_save_CPPFLAGS"
 
19187
fi
 
19188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_result" >&5
 
19190
$as_echo "$_ax_result" >&6; }
 
19191
 
 
19192
 
 
19193
ac_ext=c
 
19194
ac_cpp='$CPP $CPPFLAGS'
 
19195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19198
 
 
19199
 
 
19200
 
 
19201
ac_config_files="$ac_config_files ../src/tools/cubew_config/cubew_config_data_frontend.cpp:../src/tools/cubew_config/cubew_config_data_build.cpp.in"
 
19202
 
 
19203
 
 
19204
 
 
19205
ac_config_files="$ac_config_files Makefile"
 
19206
 
 
19207
ac_config_files="$ac_config_files ../examples/Makefile.frontend"
 
19208
 
 
19209
 
 
19210
ac_config_files="$ac_config_files ../test/test3/cube_self_test.c"
 
19211
 
 
19212
ac_config_files="$ac_config_files ../test/test3/cube_self_test3_4.c"
 
19213
 
 
19214
ac_config_files="$ac_config_files ../test/test3/run_test_3.sh"
 
19215
 
 
19216
 
 
19217
 
 
19218
cat >confcache <<\_ACEOF
 
19219
# This file is a shell script that caches the results of configure
 
19220
# tests run on this system so they can be shared between configure
 
19221
# scripts and configure runs, see configure's option --config-cache.
 
19222
# It is not useful on other systems.  If it contains results you don't
 
19223
# want to keep, you may remove or edit it.
 
19224
#
 
19225
# config.status only pays attention to the cache file if you give it
 
19226
# the --recheck option to rerun configure.
 
19227
#
 
19228
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19229
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19230
# following values.
 
19231
 
 
19232
_ACEOF
 
19233
 
 
19234
# The following way of writing the cache mishandles newlines in values,
 
19235
# but we know of no workaround that is simple, portable, and efficient.
 
19236
# So, we kill variables containing newlines.
 
19237
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19238
# and sets the high bit in the cache file unless we assign to the vars.
 
19239
(
 
19240
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
19241
    eval ac_val=\$$ac_var
 
19242
    case $ac_val in #(
 
19243
    *${as_nl}*)
 
19244
      case $ac_var in #(
 
19245
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
19246
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
19247
      esac
 
19248
      case $ac_var in #(
 
19249
      _ | IFS | as_nl) ;; #(
 
19250
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
19251
      *) { eval $ac_var=; unset $ac_var;} ;;
 
19252
      esac ;;
 
19253
    esac
 
19254
  done
 
19255
 
 
19256
  (set) 2>&1 |
 
19257
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
19258
    *${as_nl}ac_space=\ *)
 
19259
      # `set' does not quote correctly, so add quotes: double-quote
 
19260
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
19261
      sed -n \
 
19262
        "s/'/'\\\\''/g;
 
19263
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19264
      ;; #(
 
19265
    *)
 
19266
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19267
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
19268
      ;;
 
19269
    esac |
 
19270
    sort
 
19271
) |
 
19272
  sed '
 
19273
     /^ac_cv_env_/b end
 
19274
     t clear
 
19275
     :clear
 
19276
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19277
     t end
 
19278
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19279
     :end' >>confcache
 
19280
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
19281
  if test -w "$cache_file"; then
 
19282
    if test "x$cache_file" != "x/dev/null"; then
 
19283
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
19284
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
19285
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
19286
        cat confcache >"$cache_file"
 
19287
      else
 
19288
        case $cache_file in #(
 
19289
        */* | ?:*)
 
19290
          mv -f confcache "$cache_file"$$ &&
 
19291
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
19292
        *)
 
19293
          mv -f confcache "$cache_file" ;;
 
19294
        esac
 
19295
      fi
 
19296
    fi
 
19297
  else
 
19298
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
19299
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
19300
  fi
 
19301
fi
 
19302
rm -f confcache
 
19303
 
 
19304
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19305
# Let make expand exec_prefix.
 
19306
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19307
 
 
19308
DEFS=-DHAVE_CONFIG_H
 
19309
 
 
19310
ac_libobjs=
 
19311
ac_ltlibobjs=
 
19312
U=
 
19313
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19314
  # 1. Remove the extension, and $U if already installed.
 
19315
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
19316
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
19317
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
19318
  #    will be set to the directory where LIBOBJS objects are built.
 
19319
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
19320
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
19321
done
 
19322
LIBOBJS=$ac_libobjs
 
19323
 
 
19324
LTLIBOBJS=$ac_ltlibobjs
 
19325
 
 
19326
 
 
19327
if test -z "${PLATFORM_ALTIX_TRUE}" && test -z "${PLATFORM_ALTIX_FALSE}"; then
 
19328
  as_fn_error $? "conditional \"PLATFORM_ALTIX\" was never defined.
 
19329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19330
fi
 
19331
if test -z "${PLATFORM_AIX_TRUE}" && test -z "${PLATFORM_AIX_FALSE}"; then
 
19332
  as_fn_error $? "conditional \"PLATFORM_AIX\" was never defined.
 
19333
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19334
fi
 
19335
if test -z "${PLATFORM_BGL_TRUE}" && test -z "${PLATFORM_BGL_FALSE}"; then
 
19336
  as_fn_error $? "conditional \"PLATFORM_BGL\" was never defined.
 
19337
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19338
fi
 
19339
if test -z "${PLATFORM_BGP_TRUE}" && test -z "${PLATFORM_BGP_FALSE}"; then
 
19340
  as_fn_error $? "conditional \"PLATFORM_BGP\" was never defined.
 
19341
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19342
fi
 
19343
if test -z "${PLATFORM_BGQ_TRUE}" && test -z "${PLATFORM_BGQ_FALSE}"; then
 
19344
  as_fn_error $? "conditional \"PLATFORM_BGQ\" was never defined.
 
19345
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19346
fi
 
19347
if test -z "${PLATFORM_CRAYXT_TRUE}" && test -z "${PLATFORM_CRAYXT_FALSE}"; then
 
19348
  as_fn_error $? "conditional \"PLATFORM_CRAYXT\" was never defined.
 
19349
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19350
fi
 
19351
if test -z "${PLATFORM_CRAYXE_TRUE}" && test -z "${PLATFORM_CRAYXE_FALSE}"; then
 
19352
  as_fn_error $? "conditional \"PLATFORM_CRAYXE\" was never defined.
 
19353
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19354
fi
 
19355
if test -z "${PLATFORM_CRAYXK_TRUE}" && test -z "${PLATFORM_CRAYXK_FALSE}"; then
 
19356
  as_fn_error $? "conditional \"PLATFORM_CRAYXK\" was never defined.
 
19357
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19358
fi
 
19359
if test -z "${PLATFORM_CRAYXC_TRUE}" && test -z "${PLATFORM_CRAYXC_FALSE}"; then
 
19360
  as_fn_error $? "conditional \"PLATFORM_CRAYXC\" was never defined.
 
19361
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19362
fi
 
19363
if test -z "${PLATFORM_LINUX_TRUE}" && test -z "${PLATFORM_LINUX_FALSE}"; then
 
19364
  as_fn_error $? "conditional \"PLATFORM_LINUX\" was never defined.
 
19365
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19366
fi
 
19367
if test -z "${PLATFORM_SOLARIS_TRUE}" && test -z "${PLATFORM_SOLARIS_FALSE}"; then
 
19368
  as_fn_error $? "conditional \"PLATFORM_SOLARIS\" was never defined.
 
19369
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19370
fi
 
19371
if test -z "${PLATFORM_MAC_TRUE}" && test -z "${PLATFORM_MAC_FALSE}"; then
 
19372
  as_fn_error $? "conditional \"PLATFORM_MAC\" was never defined.
 
19373
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19374
fi
 
19375
if test -z "${PLATFORM_MINGW_TRUE}" && test -z "${PLATFORM_MINGW_FALSE}"; then
 
19376
  as_fn_error $? "conditional \"PLATFORM_MINGW\" was never defined.
 
19377
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19378
fi
 
19379
if test -z "${PLATFORM_CYGWIN_TRUE}" && test -z "${PLATFORM_CYGWIN_FALSE}"; then
 
19380
  as_fn_error $? "conditional \"PLATFORM_CYGWIN\" was never defined.
 
19381
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19382
fi
 
19383
if test -z "${PLATFORM_MIC_TRUE}" && test -z "${PLATFORM_MIC_FALSE}"; then
 
19384
  as_fn_error $? "conditional \"PLATFORM_MIC\" was never defined.
 
19385
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19386
fi
 
19387
if test -z "${PLATFORM_NECSX_TRUE}" && test -z "${PLATFORM_NECSX_FALSE}"; then
 
19388
  as_fn_error $? "conditional \"PLATFORM_NECSX\" was never defined.
 
19389
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19390
fi
 
19391
if test -z "${PLATFORM_ARM_TRUE}" && test -z "${PLATFORM_ARM_FALSE}"; then
 
19392
  as_fn_error $? "conditional \"PLATFORM_ARM\" was never defined.
 
19393
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19394
fi
 
19395
if test -z "${PLATFORM_MINGW_TRUE}" && test -z "${PLATFORM_MINGW_FALSE}"; then
 
19396
  as_fn_error $? "conditional \"PLATFORM_MINGW\" was never defined.
 
19397
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19398
fi
 
19399
if test -z "${PLATFORM_K_TRUE}" && test -z "${PLATFORM_K_FALSE}"; then
 
19400
  as_fn_error $? "conditional \"PLATFORM_K\" was never defined.
 
19401
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19402
fi
 
19403
if test -z "${PLATFORM_FX10_TRUE}" && test -z "${PLATFORM_FX10_FALSE}"; then
 
19404
  as_fn_error $? "conditional \"PLATFORM_FX10\" was never defined.
 
19405
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19406
fi
 
19407
if test -z "${PLATFORM_FX100_TRUE}" && test -z "${PLATFORM_FX100_FALSE}"; then
 
19408
  as_fn_error $? "conditional \"PLATFORM_FX100\" was never defined.
 
19409
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19410
fi
 
19411
if test -z "${PLATFORM_CRAY_TRUE}" && test -z "${PLATFORM_CRAY_FALSE}"; then
 
19412
  as_fn_error $? "conditional \"PLATFORM_CRAY\" was never defined.
 
19413
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19414
fi
 
19415
if test -z "${MIC_SUPPORT_TRUE}" && test -z "${MIC_SUPPORT_FALSE}"; then
 
19416
  as_fn_error $? "conditional \"MIC_SUPPORT\" was never defined.
 
19417
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19418
fi
 
19419
if test -z "${CROSS_BUILD_TRUE}" && test -z "${CROSS_BUILD_FALSE}"; then
 
19420
  as_fn_error $? "conditional \"CROSS_BUILD\" was never defined.
 
19421
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19422
fi
 
19423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
19424
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
19425
   if test -n "$am_sleep_pid"; then
 
19426
     # Hide warnings about reused PIDs.
 
19427
     wait $am_sleep_pid 2>/dev/null
 
19428
   fi
 
19429
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
19430
$as_echo "done" >&6; }
 
19431
 if test -n "$EXEEXT"; then
 
19432
  am__EXEEXT_TRUE=
 
19433
  am__EXEEXT_FALSE='#'
 
19434
else
 
19435
  am__EXEEXT_TRUE='#'
 
19436
  am__EXEEXT_FALSE=
 
19437
fi
 
19438
 
 
19439
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
19440
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
19441
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19442
fi
 
19443
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19444
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
19445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19446
fi
 
19447
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19448
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
19449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19450
fi
 
19451
 
 
19452
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19453
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
19454
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19455
fi
 
19456
if test -z "${HAVE_ADVANCED_MEMORY_TRUE}" && test -z "${HAVE_ADVANCED_MEMORY_FALSE}"; then
 
19457
  as_fn_error $? "conditional \"HAVE_ADVANCED_MEMORY\" was never defined.
 
19458
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19459
fi
 
19460
if test -z "${HAVE_MEMORY_TRACKING_TRUE}" && test -z "${HAVE_MEMORY_TRACKING_FALSE}"; then
 
19461
  as_fn_error $? "conditional \"HAVE_MEMORY_TRACKING\" was never defined.
 
19462
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19463
fi
 
19464
if test -z "${HAVE_MEMORY_TRACING_TRUE}" && test -z "${HAVE_MEMORY_TRACING_FALSE}"; then
 
19465
  as_fn_error $? "conditional \"HAVE_MEMORY_TRACING\" was never defined.
 
19466
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19467
fi
 
19468
if test -z "${WITH_C_WRITER_TRUE}" && test -z "${WITH_C_WRITER_FALSE}"; then
 
19469
  as_fn_error $? "conditional \"WITH_C_WRITER\" was never defined.
 
19470
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19471
fi
 
19472
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
 
19473
  as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
 
19474
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19475
fi
 
19476
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
 
19477
  as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
 
19478
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19479
fi
 
19480
if test -z "${CUBEW_COMPRESSION_BACKEND_TRUE}" && test -z "${CUBEW_COMPRESSION_BACKEND_FALSE}"; then
 
19481
  as_fn_error $? "conditional \"CUBEW_COMPRESSION_BACKEND\" was never defined.
 
19482
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19483
fi
 
19484
if test -z "${CUBEW_COMPRESSION_FRONTEND_TRUE}" && test -z "${CUBEW_COMPRESSION_FRONTEND_FALSE}"; then
 
19485
  as_fn_error $? "conditional \"CUBEW_COMPRESSION_FRONTEND\" was never defined.
 
19486
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19487
fi
 
19488
 
 
19489
: "${CONFIG_STATUS=./config.status}"
 
19490
ac_write_fail=0
 
19491
ac_clean_files_save=$ac_clean_files
 
19492
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19493
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
19494
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19495
as_write_fail=0
 
19496
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
19497
#! $SHELL
 
19498
# Generated by $as_me.
 
19499
# Run this file to recreate the current configuration.
 
19500
# Compiler output produced by configure, useful for debugging
 
19501
# configure, is in config.log if it exists.
 
19502
 
 
19503
debug=false
 
19504
ac_cs_recheck=false
 
19505
ac_cs_silent=false
 
19506
 
 
19507
SHELL=\${CONFIG_SHELL-$SHELL}
 
19508
export SHELL
 
19509
_ASEOF
 
19510
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
19511
## -------------------- ##
 
19512
## M4sh Initialization. ##
 
19513
## -------------------- ##
 
19514
 
 
19515
# Be more Bourne compatible
 
19516
DUALCASE=1; export DUALCASE # for MKS sh
 
19517
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
19518
  emulate sh
 
19519
  NULLCMD=:
 
19520
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19521
  # is contrary to our usage.  Disable this feature.
 
19522
  alias -g '${1+"$@"}'='"$@"'
 
19523
  setopt NO_GLOB_SUBST
 
19524
else
 
19525
  case `(set -o) 2>/dev/null` in #(
 
19526
  *posix*) :
 
19527
    set -o posix ;; #(
 
19528
  *) :
 
19529
     ;;
 
19530
esac
 
19531
fi
 
19532
 
 
19533
 
 
19534
as_nl='
 
19535
'
 
19536
export as_nl
 
19537
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
19538
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
19539
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
19540
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
19541
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
19542
# but without wasting forks for bash or zsh.
 
19543
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
19544
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19545
  as_echo='print -r --'
 
19546
  as_echo_n='print -rn --'
 
19547
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19548
  as_echo='printf %s\n'
 
19549
  as_echo_n='printf %s'
 
19550
else
 
19551
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
19552
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
19553
    as_echo_n='/usr/ucb/echo -n'
 
19554
  else
 
19555
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
19556
    as_echo_n_body='eval
 
19557
      arg=$1;
 
19558
      case $arg in #(
 
19559
      *"$as_nl"*)
 
19560
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
19561
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
19562
      esac;
 
19563
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
19564
    '
 
19565
    export as_echo_n_body
 
19566
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
19567
  fi
 
19568
  export as_echo_body
 
19569
  as_echo='sh -c $as_echo_body as_echo'
 
19570
fi
 
19571
 
 
19572
# The user is always right.
 
19573
if test "${PATH_SEPARATOR+set}" != set; then
 
19574
  PATH_SEPARATOR=:
 
19575
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
19576
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
19577
      PATH_SEPARATOR=';'
 
19578
  }
 
19579
fi
 
19580
 
 
19581
 
 
19582
# IFS
 
19583
# We need space, tab and new line, in precisely that order.  Quoting is
 
19584
# there to prevent editors from complaining about space-tab.
 
19585
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
19586
# splitting by setting IFS to empty value.)
 
19587
IFS=" ""        $as_nl"
 
19588
 
 
19589
# Find who we are.  Look in the path if we contain no directory separator.
 
19590
as_myself=
 
19591
case $0 in #((
 
19592
  *[\\/]* ) as_myself=$0 ;;
 
19593
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19594
for as_dir in $PATH
 
19595
do
 
19596
  IFS=$as_save_IFS
 
19597
  test -z "$as_dir" && as_dir=.
 
19598
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19599
  done
 
19600
IFS=$as_save_IFS
 
19601
 
 
19602
     ;;
 
19603
esac
 
19604
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
19605
# in which case we are not to be found in the path.
 
19606
if test "x$as_myself" = x; then
 
19607
  as_myself=$0
 
19608
fi
 
19609
if test ! -f "$as_myself"; then
 
19610
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
19611
  exit 1
 
19612
fi
 
19613
 
 
19614
# Unset variables that we do not need and which cause bugs (e.g. in
 
19615
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
19616
# suppresses any "Segmentation fault" message there.  '((' could
 
19617
# trigger a bug in pdksh 5.2.14.
 
19618
for as_var in BASH_ENV ENV MAIL MAILPATH
 
19619
do eval test x\${$as_var+set} = xset \
 
19620
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
19621
done
 
19622
PS1='$ '
 
19623
PS2='> '
 
19624
PS4='+ '
 
19625
 
 
19626
# NLS nuisances.
 
19627
LC_ALL=C
 
19628
export LC_ALL
 
19629
LANGUAGE=C
 
19630
export LANGUAGE
 
19631
 
 
19632
# CDPATH.
 
19633
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19634
 
 
19635
 
 
19636
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
19637
# ----------------------------------------
 
19638
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
19639
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
19640
# script with STATUS, using 1 if that was 0.
 
19641
as_fn_error ()
 
19642
{
 
19643
  as_status=$1; test $as_status -eq 0 && as_status=1
 
19644
  if test "$4"; then
 
19645
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
19646
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
19647
  fi
 
19648
  $as_echo "$as_me: error: $2" >&2
 
19649
  as_fn_exit $as_status
 
19650
} # as_fn_error
 
19651
 
 
19652
 
 
19653
# as_fn_set_status STATUS
 
19654
# -----------------------
 
19655
# Set $? to STATUS, without forking.
 
19656
as_fn_set_status ()
 
19657
{
 
19658
  return $1
 
19659
} # as_fn_set_status
 
19660
 
 
19661
# as_fn_exit STATUS
 
19662
# -----------------
 
19663
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
19664
as_fn_exit ()
 
19665
{
 
19666
  set +e
 
19667
  as_fn_set_status $1
 
19668
  exit $1
 
19669
} # as_fn_exit
 
19670
 
 
19671
# as_fn_unset VAR
 
19672
# ---------------
 
19673
# Portably unset VAR.
 
19674
as_fn_unset ()
 
19675
{
 
19676
  { eval $1=; unset $1;}
 
19677
}
 
19678
as_unset=as_fn_unset
 
19679
# as_fn_append VAR VALUE
 
19680
# ----------------------
 
19681
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
19682
# advantage of any shell optimizations that allow amortized linear growth over
 
19683
# repeated appends, instead of the typical quadratic growth present in naive
 
19684
# implementations.
 
19685
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
19686
  eval 'as_fn_append ()
 
19687
  {
 
19688
    eval $1+=\$2
 
19689
  }'
 
19690
else
 
19691
  as_fn_append ()
 
19692
  {
 
19693
    eval $1=\$$1\$2
 
19694
  }
 
19695
fi # as_fn_append
 
19696
 
 
19697
# as_fn_arith ARG...
 
19698
# ------------------
 
19699
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
19700
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
19701
# must be portable across $(()) and expr.
 
19702
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
19703
  eval 'as_fn_arith ()
 
19704
  {
 
19705
    as_val=$(( $* ))
 
19706
  }'
 
19707
else
 
19708
  as_fn_arith ()
 
19709
  {
 
19710
    as_val=`expr "$@" || test $? -eq 1`
 
19711
  }
 
19712
fi # as_fn_arith
 
19713
 
 
19714
 
 
19715
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19716
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19717
  as_expr=expr
 
19718
else
 
19719
  as_expr=false
 
19720
fi
 
19721
 
 
19722
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
19723
  as_basename=basename
 
19724
else
 
19725
  as_basename=false
 
19726
fi
 
19727
 
 
19728
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
19729
  as_dirname=dirname
 
19730
else
 
19731
  as_dirname=false
 
19732
fi
 
19733
 
 
19734
as_me=`$as_basename -- "$0" ||
 
19735
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19736
         X"$0" : 'X\(//\)$' \| \
 
19737
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
19738
$as_echo X/"$0" |
 
19739
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
19740
            s//\1/
 
19741
            q
 
19742
          }
 
19743
          /^X\/\(\/\/\)$/{
 
19744
            s//\1/
 
19745
            q
 
19746
          }
 
19747
          /^X\/\(\/\).*/{
 
19748
            s//\1/
 
19749
            q
 
19750
          }
 
19751
          s/.*/./; q'`
 
19752
 
 
19753
# Avoid depending upon Character Ranges.
 
19754
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19755
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19756
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19757
as_cr_digits='0123456789'
 
19758
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19759
 
 
19760
ECHO_C= ECHO_N= ECHO_T=
 
19761
case `echo -n x` in #(((((
 
19762
-n*)
 
19763
  case `echo 'xy\c'` in
 
19764
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
19765
  xy)  ECHO_C='\c';;
 
19766
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
19767
       ECHO_T=' ';;
 
19768
  esac;;
 
19769
*)
 
19770
  ECHO_N='-n';;
 
19771
esac
 
19772
 
 
19773
rm -f conf$$ conf$$.exe conf$$.file
 
19774
if test -d conf$$.dir; then
 
19775
  rm -f conf$$.dir/conf$$.file
 
19776
else
 
19777
  rm -f conf$$.dir
 
19778
  mkdir conf$$.dir 2>/dev/null
 
19779
fi
 
19780
if (echo >conf$$.file) 2>/dev/null; then
 
19781
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19782
    as_ln_s='ln -s'
 
19783
    # ... but there are two gotchas:
 
19784
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
19785
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
19786
    # In both cases, we have to default to `cp -pR'.
 
19787
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
19788
      as_ln_s='cp -pR'
 
19789
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
19790
    as_ln_s=ln
 
19791
  else
 
19792
    as_ln_s='cp -pR'
 
19793
  fi
 
19794
else
 
19795
  as_ln_s='cp -pR'
 
19796
fi
 
19797
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
19798
rmdir conf$$.dir 2>/dev/null
 
19799
 
 
19800
 
 
19801
# as_fn_mkdir_p
 
19802
# -------------
 
19803
# Create "$as_dir" as a directory, including parents if necessary.
 
19804
as_fn_mkdir_p ()
 
19805
{
 
19806
 
 
19807
  case $as_dir in #(
 
19808
  -*) as_dir=./$as_dir;;
 
19809
  esac
 
19810
  test -d "$as_dir" || eval $as_mkdir_p || {
 
19811
    as_dirs=
 
19812
    while :; do
 
19813
      case $as_dir in #(
 
19814
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
19815
      *) as_qdir=$as_dir;;
 
19816
      esac
 
19817
      as_dirs="'$as_qdir' $as_dirs"
 
19818
      as_dir=`$as_dirname -- "$as_dir" ||
 
19819
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19820
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19821
         X"$as_dir" : 'X\(//\)$' \| \
 
19822
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19823
$as_echo X"$as_dir" |
 
19824
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19825
            s//\1/
 
19826
            q
 
19827
          }
 
19828
          /^X\(\/\/\)[^/].*/{
 
19829
            s//\1/
 
19830
            q
 
19831
          }
 
19832
          /^X\(\/\/\)$/{
 
19833
            s//\1/
 
19834
            q
 
19835
          }
 
19836
          /^X\(\/\).*/{
 
19837
            s//\1/
 
19838
            q
 
19839
          }
 
19840
          s/.*/./; q'`
 
19841
      test -d "$as_dir" && break
 
19842
    done
 
19843
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19844
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
19845
 
 
19846
 
 
19847
} # as_fn_mkdir_p
 
19848
if mkdir -p . 2>/dev/null; then
 
19849
  as_mkdir_p='mkdir -p "$as_dir"'
 
19850
else
 
19851
  test -d ./-p && rmdir ./-p
 
19852
  as_mkdir_p=false
 
19853
fi
 
19854
 
 
19855
 
 
19856
# as_fn_executable_p FILE
 
19857
# -----------------------
 
19858
# Test if FILE is an executable regular file.
 
19859
as_fn_executable_p ()
 
19860
{
 
19861
  test -f "$1" && test -x "$1"
 
19862
} # as_fn_executable_p
 
19863
as_test_x='test -x'
 
19864
as_executable_p=as_fn_executable_p
 
19865
 
 
19866
# Sed expression to map a string onto a valid CPP name.
 
19867
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19868
 
 
19869
# Sed expression to map a string onto a valid variable name.
 
19870
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19871
 
 
19872
 
 
19873
exec 6>&1
 
19874
## ----------------------------------- ##
 
19875
## Main body of $CONFIG_STATUS script. ##
 
19876
## ----------------------------------- ##
 
19877
_ASEOF
 
19878
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
19879
 
 
19880
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19881
# Save the log message, to keep $0 and so on meaningful, and to
 
19882
# report actual input values of CONFIG_FILES etc. instead of their
 
19883
# values after options handling.
 
19884
ac_log="
 
19885
This file was extended by CubeW $as_me 4.4-RC1, which was
 
19886
generated by GNU Autoconf 2.69.  Invocation command line was
 
19887
 
 
19888
  CONFIG_FILES    = $CONFIG_FILES
 
19889
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19890
  CONFIG_LINKS    = $CONFIG_LINKS
 
19891
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19892
  $ $0 $@
 
19893
 
 
19894
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
19895
"
 
19896
 
 
19897
_ACEOF
 
19898
 
 
19899
case $ac_config_files in *"
 
19900
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
19901
esac
 
19902
 
 
19903
case $ac_config_headers in *"
 
19904
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
19905
esac
 
19906
 
 
19907
 
 
19908
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19909
# Files that config.status was made for.
 
19910
config_files="$ac_config_files"
 
19911
config_headers="$ac_config_headers"
 
19912
config_commands="$ac_config_commands"
 
19913
 
 
19914
_ACEOF
 
19915
 
 
19916
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19917
ac_cs_usage="\
 
19918
\`$as_me' instantiates files and other configuration actions
 
19919
from templates according to the current configuration.  Unless the files
 
19920
and actions are specified as TAGs, all are instantiated by default.
 
19921
 
 
19922
Usage: $0 [OPTION]... [TAG]...
 
19923
 
 
19924
  -h, --help       print this help, then exit
 
19925
  -V, --version    print version number and configuration settings, then exit
 
19926
      --config     print configuration, then exit
 
19927
  -q, --quiet, --silent
 
19928
                   do not print progress messages
 
19929
  -d, --debug      don't remove temporary files
 
19930
      --recheck    update $as_me by reconfiguring in the same conditions
 
19931
      --file=FILE[:TEMPLATE]
 
19932
                   instantiate the configuration file FILE
 
19933
      --header=FILE[:TEMPLATE]
 
19934
                   instantiate the configuration header FILE
 
19935
 
 
19936
Configuration files:
 
19937
$config_files
 
19938
 
 
19939
Configuration headers:
 
19940
$config_headers
 
19941
 
 
19942
Configuration commands:
 
19943
$config_commands
 
19944
 
 
19945
Report bugs to <scalasca@fz-juelich.de>.
 
19946
CubeW home page: <http://www.scalasca.org>."
 
19947
 
 
19948
_ACEOF
 
19949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19950
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
19951
ac_cs_version="\\
 
19952
CubeW config.status 4.4-RC1
 
19953
configured by $0, generated by GNU Autoconf 2.69,
 
19954
  with options \\"\$ac_cs_config\\"
 
19955
 
 
19956
Copyright (C) 2012 Free Software Foundation, Inc.
 
19957
This config.status script is free software; the Free Software Foundation
 
19958
gives unlimited permission to copy, distribute and modify it."
 
19959
 
 
19960
ac_pwd='$ac_pwd'
 
19961
srcdir='$srcdir'
 
19962
INSTALL='$INSTALL'
 
19963
MKDIR_P='$MKDIR_P'
 
19964
AWK='$AWK'
 
19965
test -n "\$AWK" || AWK=awk
 
19966
_ACEOF
 
19967
 
 
19968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19969
# The default lists apply if the user does not specify any file.
 
19970
ac_need_defaults=:
 
19971
while test $# != 0
 
19972
do
 
19973
  case $1 in
 
19974
  --*=?*)
 
19975
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19976
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
19977
    ac_shift=:
 
19978
    ;;
 
19979
  --*=)
 
19980
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19981
    ac_optarg=
 
19982
    ac_shift=:
 
19983
    ;;
 
19984
  *)
 
19985
    ac_option=$1
 
19986
    ac_optarg=$2
 
19987
    ac_shift=shift
 
19988
    ;;
 
19989
  esac
 
19990
 
 
19991
  case $ac_option in
 
19992
  # Handling of the options.
 
19993
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19994
    ac_cs_recheck=: ;;
 
19995
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
19996
    $as_echo "$ac_cs_version"; exit ;;
 
19997
  --config | --confi | --conf | --con | --co | --c )
 
19998
    $as_echo "$ac_cs_config"; exit ;;
 
19999
  --debug | --debu | --deb | --de | --d | -d )
 
20000
    debug=: ;;
 
20001
  --file | --fil | --fi | --f )
 
20002
    $ac_shift
 
20003
    case $ac_optarg in
 
20004
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20005
    '') as_fn_error $? "missing file argument" ;;
 
20006
    esac
 
20007
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
20008
    ac_need_defaults=false;;
 
20009
  --header | --heade | --head | --hea )
 
20010
    $ac_shift
 
20011
    case $ac_optarg in
 
20012
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20013
    esac
 
20014
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
20015
    ac_need_defaults=false;;
 
20016
  --he | --h)
 
20017
    # Conflict between --help and --header
 
20018
    as_fn_error $? "ambiguous option: \`$1'
 
20019
Try \`$0 --help' for more information.";;
 
20020
  --help | --hel | -h )
 
20021
    $as_echo "$ac_cs_usage"; exit ;;
 
20022
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20023
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20024
    ac_cs_silent=: ;;
 
20025
 
 
20026
  # This is an error.
 
20027
  -*) as_fn_error $? "unrecognized option: \`$1'
 
20028
Try \`$0 --help' for more information." ;;
 
20029
 
 
20030
  *) as_fn_append ac_config_targets " $1"
 
20031
     ac_need_defaults=false ;;
 
20032
 
 
20033
  esac
 
20034
  shift
 
20035
done
 
20036
 
 
20037
ac_configure_extra_args=
 
20038
 
 
20039
if $ac_cs_silent; then
 
20040
  exec 6>/dev/null
 
20041
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20042
fi
 
20043
 
 
20044
_ACEOF
 
20045
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20046
if \$ac_cs_recheck; then
 
20047
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20048
  shift
 
20049
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
20050
  CONFIG_SHELL='$SHELL'
 
20051
  export CONFIG_SHELL
 
20052
  exec "\$@"
 
20053
fi
 
20054
 
 
20055
_ACEOF
 
20056
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20057
exec 5>>config.log
 
20058
{
 
20059
  echo
 
20060
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20061
## Running $as_me. ##
 
20062
_ASBOX
 
20063
  $as_echo "$ac_log"
 
20064
} >&5
 
20065
 
 
20066
_ACEOF
 
20067
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20068
#
 
20069
# INIT-COMMANDS
 
20070
#
 
20071
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20072
 
 
20073
 
 
20074
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
20075
# if CDPATH is set.
 
20076
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
20077
 
 
20078
sed_quote_subst='$sed_quote_subst'
 
20079
double_quote_subst='$double_quote_subst'
 
20080
delay_variable_subst='$delay_variable_subst'
 
20081
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
20082
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
20083
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
20084
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
20085
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
20086
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
20087
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
 
20088
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
20089
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
20090
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
20091
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
20092
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
20093
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
20094
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
20095
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
20096
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
20097
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
20098
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
20099
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
20100
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
20101
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
20102
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
20103
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
20104
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
20105
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
20106
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
20107
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
20108
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
20109
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
20110
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
20111
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
20112
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
20113
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
20114
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
20115
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
20116
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
20117
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
20118
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
20119
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
20120
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
20121
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
20122
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
20123
lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
 
20124
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
20125
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
20126
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
20127
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
20128
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20129
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20130
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
20131
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
20132
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
20133
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
20134
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
20135
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
20136
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
20137
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
20138
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
 
20139
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
20140
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"`'
 
20141
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
 
20142
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
20143
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
20144
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
 
20145
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
20146
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
20147
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
20148
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
20149
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
20150
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
20151
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
20152
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
20153
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
20154
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
20155
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
20156
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
20157
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
20158
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
20159
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
20160
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
20161
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
20162
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
20163
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
20164
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20165
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20166
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
20167
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
20168
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
20169
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
20170
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
20171
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
20172
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
20173
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
20174
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
20175
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
20176
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20177
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
20178
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
20179
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
20180
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
20181
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
20182
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
20183
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
20184
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
20185
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
20186
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
20187
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
20188
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
20189
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
20190
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
20191
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
20192
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
20193
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
20194
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
20195
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
20196
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
20197
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
20198
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
20199
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
20200
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
20201
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
20202
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
20203
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20204
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20205
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
20206
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
20207
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
20208
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
20209
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
 
20210
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
 
20211
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
20212
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
20213
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
20214
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
20215
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
20216
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
20217
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
20218
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
20219
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
20220
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
20221
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
20222
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
20223
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
20224
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20225
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20226
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20227
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
20228
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
20229
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20230
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
20231
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
20232
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
20233
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
20234
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
20235
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
20236
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20237
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20238
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
20239
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20240
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20241
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20242
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20243
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20244
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20245
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
20246
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20247
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20248
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20249
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
20250
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
20251
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
20252
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
20253
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
20254
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
20255
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
20256
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
20257
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
20258
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20259
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
20260
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
20261
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20262
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20263
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20264
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
20265
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
20266
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
20267
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
20268
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
20269
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
20270
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
20271
 
 
20272
LTCC='$LTCC'
 
20273
LTCFLAGS='$LTCFLAGS'
 
20274
compiler='$compiler_DEFAULT'
 
20275
 
 
20276
# A function that is used when there is no print builtin or printf.
 
20277
func_fallback_echo ()
 
20278
{
 
20279
  eval 'cat <<_LTECHO_EOF
 
20280
\$1
 
20281
_LTECHO_EOF'
 
20282
}
 
20283
 
 
20284
# Quote evaled strings.
 
20285
for var in SHELL \
 
20286
ECHO \
 
20287
PATH_SEPARATOR \
 
20288
SED \
 
20289
GREP \
 
20290
EGREP \
 
20291
FGREP \
 
20292
LD \
 
20293
NM \
 
20294
LN_S \
 
20295
lt_SP2NL \
 
20296
lt_NL2SP \
 
20297
reload_flag \
 
20298
OBJDUMP \
 
20299
deplibs_check_method \
 
20300
file_magic_cmd \
 
20301
file_magic_glob \
 
20302
want_nocaseglob \
 
20303
DLLTOOL \
 
20304
sharedlib_from_linklib_cmd \
 
20305
AR \
 
20306
archiver_list_spec \
 
20307
STRIP \
 
20308
RANLIB \
 
20309
CC \
 
20310
CFLAGS \
 
20311
compiler \
 
20312
lt_cv_sys_global_symbol_pipe \
 
20313
lt_cv_sys_global_symbol_to_cdecl \
 
20314
lt_cv_sys_global_symbol_to_import \
 
20315
lt_cv_sys_global_symbol_to_c_name_address \
 
20316
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
20317
lt_cv_nm_interface \
 
20318
nm_file_list_spec \
 
20319
lt_cv_truncate_bin \
 
20320
lt_prog_compiler_no_builtin_flag \
 
20321
lt_prog_compiler_pic \
 
20322
lt_prog_compiler_wl \
 
20323
lt_prog_compiler_static \
 
20324
lt_cv_prog_compiler_c_o \
 
20325
need_locks \
 
20326
MANIFEST_TOOL \
 
20327
DSYMUTIL \
 
20328
NMEDIT \
 
20329
LIPO \
 
20330
OTOOL \
 
20331
OTOOL64 \
 
20332
shrext_cmds \
 
20333
export_dynamic_flag_spec \
 
20334
whole_archive_flag_spec \
 
20335
compiler_needs_object \
 
20336
with_gnu_ld \
 
20337
allow_undefined_flag \
 
20338
no_undefined_flag \
 
20339
hardcode_libdir_flag_spec \
 
20340
hardcode_libdir_separator \
 
20341
exclude_expsyms \
 
20342
include_expsyms \
 
20343
file_list_spec \
 
20344
variables_saved_for_relink \
 
20345
libname_spec \
 
20346
library_names_spec \
 
20347
soname_spec \
 
20348
install_override_mode \
 
20349
finish_eval \
 
20350
old_striplib \
 
20351
striplib \
 
20352
compiler_lib_search_dirs \
 
20353
predep_objects \
 
20354
postdep_objects \
 
20355
predeps \
 
20356
postdeps \
 
20357
compiler_lib_search_path \
 
20358
LD_CXX \
 
20359
reload_flag_CXX \
 
20360
compiler_CXX \
 
20361
lt_prog_compiler_no_builtin_flag_CXX \
 
20362
lt_prog_compiler_pic_CXX \
 
20363
lt_prog_compiler_wl_CXX \
 
20364
lt_prog_compiler_static_CXX \
 
20365
lt_cv_prog_compiler_c_o_CXX \
 
20366
export_dynamic_flag_spec_CXX \
 
20367
whole_archive_flag_spec_CXX \
 
20368
compiler_needs_object_CXX \
 
20369
with_gnu_ld_CXX \
 
20370
allow_undefined_flag_CXX \
 
20371
no_undefined_flag_CXX \
 
20372
hardcode_libdir_flag_spec_CXX \
 
20373
hardcode_libdir_separator_CXX \
 
20374
exclude_expsyms_CXX \
 
20375
include_expsyms_CXX \
 
20376
file_list_spec_CXX \
 
20377
compiler_lib_search_dirs_CXX \
 
20378
predep_objects_CXX \
 
20379
postdep_objects_CXX \
 
20380
predeps_CXX \
 
20381
postdeps_CXX \
 
20382
compiler_lib_search_path_CXX; do
 
20383
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
20384
    *[\\\\\\\`\\"\\\$]*)
 
20385
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
20386
      ;;
 
20387
    *)
 
20388
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
20389
      ;;
 
20390
    esac
 
20391
done
 
20392
 
 
20393
# Double-quote double-evaled strings.
 
20394
for var in reload_cmds \
 
20395
old_postinstall_cmds \
 
20396
old_postuninstall_cmds \
 
20397
old_archive_cmds \
 
20398
extract_expsyms_cmds \
 
20399
old_archive_from_new_cmds \
 
20400
old_archive_from_expsyms_cmds \
 
20401
archive_cmds \
 
20402
archive_expsym_cmds \
 
20403
module_cmds \
 
20404
module_expsym_cmds \
 
20405
export_symbols_cmds \
 
20406
prelink_cmds \
 
20407
postlink_cmds \
 
20408
postinstall_cmds \
 
20409
postuninstall_cmds \
 
20410
finish_cmds \
 
20411
sys_lib_search_path_spec \
 
20412
configure_time_dlsearch_path \
 
20413
configure_time_lt_sys_library_path \
 
20414
reload_cmds_CXX \
 
20415
old_archive_cmds_CXX \
 
20416
old_archive_from_new_cmds_CXX \
 
20417
old_archive_from_expsyms_cmds_CXX \
 
20418
archive_cmds_CXX \
 
20419
archive_expsym_cmds_CXX \
 
20420
module_cmds_CXX \
 
20421
module_expsym_cmds_CXX \
 
20422
export_symbols_cmds_CXX \
 
20423
prelink_cmds_CXX \
 
20424
postlink_cmds_CXX; do
 
20425
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
20426
    *[\\\\\\\`\\"\\\$]*)
 
20427
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 
20428
      ;;
 
20429
    *)
 
20430
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
20431
      ;;
 
20432
    esac
 
20433
done
 
20434
 
 
20435
ac_aux_dir='$ac_aux_dir'
 
20436
 
 
20437
# See if we are running on zsh, and set the options that allow our
 
20438
# commands through without removal of \ escapes INIT.
 
20439
if test -n "\${ZSH_VERSION+set}"; then
 
20440
   setopt NO_GLOB_SUBST
 
20441
fi
 
20442
 
 
20443
 
 
20444
    PACKAGE='$PACKAGE'
 
20445
    VERSION='$VERSION'
 
20446
    RM='$RM'
 
20447
    ofile='$ofile'
 
20448
 
 
20449
 
 
20450
 
 
20451
 
 
20452
 
 
20453
 
 
20454
_ACEOF
 
20455
 
 
20456
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20457
 
 
20458
# Handling of arguments.
 
20459
for ac_config_target in $ac_config_targets
 
20460
do
 
20461
  case $ac_config_target in
 
20462
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20463
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
20464
    "../src/cubew-config-frontend.h") CONFIG_HEADERS="$CONFIG_HEADERS ../src/cubew-config-frontend.h" ;;
 
20465
    "../src/tools/cubew_config/cubew_config_data_frontend.cpp") CONFIG_FILES="$CONFIG_FILES ../src/tools/cubew_config/cubew_config_data_frontend.cpp:../src/tools/cubew_config/cubew_config_data_build.cpp.in" ;;
 
20466
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20467
    "../examples/Makefile.frontend") CONFIG_FILES="$CONFIG_FILES ../examples/Makefile.frontend" ;;
 
20468
    "../test/test3/cube_self_test.c") CONFIG_FILES="$CONFIG_FILES ../test/test3/cube_self_test.c" ;;
 
20469
    "../test/test3/cube_self_test3_4.c") CONFIG_FILES="$CONFIG_FILES ../test/test3/cube_self_test3_4.c" ;;
 
20470
    "../test/test3/run_test_3.sh") CONFIG_FILES="$CONFIG_FILES ../test/test3/run_test_3.sh" ;;
 
20471
 
 
20472
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
20473
  esac
 
20474
done
 
20475
 
 
20476
 
 
20477
# If the user did not use the arguments to specify the items to instantiate,
 
20478
# then the envvar interface is used.  Set only those that are not.
 
20479
# We use the long form for the default assignment because of an extremely
 
20480
# bizarre bug on SunOS 4.1.3.
 
20481
if $ac_need_defaults; then
 
20482
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20483
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20484
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20485
fi
 
20486
 
 
20487
# Have a temporary directory for convenience.  Make it in the build tree
 
20488
# simply because there is no reason against having it here, and in addition,
 
20489
# creating and moving files from /tmp can sometimes cause problems.
 
20490
# Hook for its removal unless debugging.
 
20491
# Note that there is a small window in which the directory will not be cleaned:
 
20492
# after its creation but before its name has been assigned to `$tmp'.
 
20493
$debug ||
 
20494
{
 
20495
  tmp= ac_tmp=
 
20496
  trap 'exit_status=$?
 
20497
  : "${ac_tmp:=$tmp}"
 
20498
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
20499
' 0
 
20500
  trap 'as_fn_exit 1' 1 2 13 15
 
20501
}
 
20502
# Create a (secure) tmp directory for tmp files.
 
20503
 
 
20504
{
 
20505
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
20506
  test -d "$tmp"
 
20507
}  ||
 
20508
{
 
20509
  tmp=./conf$$-$RANDOM
 
20510
  (umask 077 && mkdir "$tmp")
 
20511
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
20512
ac_tmp=$tmp
 
20513
 
 
20514
# Set up the scripts for CONFIG_FILES section.
 
20515
# No need to generate them if there are no CONFIG_FILES.
 
20516
# This happens for instance with `./config.status config.h'.
 
20517
if test -n "$CONFIG_FILES"; then
 
20518
 
 
20519
 
 
20520
ac_cr=`echo X | tr X '\015'`
 
20521
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
20522
# But we know of no other shell where ac_cr would be empty at this
 
20523
# point, so we can use a bashism as a fallback.
 
20524
if test "x$ac_cr" = x; then
 
20525
  eval ac_cr=\$\'\\r\'
 
20526
fi
 
20527
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
20528
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
20529
  ac_cs_awk_cr='\\r'
 
20530
else
 
20531
  ac_cs_awk_cr=$ac_cr
 
20532
fi
 
20533
 
 
20534
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
20535
_ACEOF
 
20536
 
 
20537
 
 
20538
{
 
20539
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
20540
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
20541
  echo "_ACEOF"
 
20542
} >conf$$subs.sh ||
 
20543
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20544
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
20545
ac_delim='%!_!# '
 
20546
for ac_last_try in false false false false false :; do
 
20547
  . ./conf$$subs.sh ||
 
20548
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20549
 
 
20550
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
20551
  if test $ac_delim_n = $ac_delim_num; then
 
20552
    break
 
20553
  elif $ac_last_try; then
 
20554
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20555
  else
 
20556
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20557
  fi
 
20558
done
 
20559
rm -f conf$$subs.sh
 
20560
 
 
20561
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20562
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
20563
_ACEOF
 
20564
sed -n '
 
20565
h
 
20566
s/^/S["/; s/!.*/"]=/
 
20567
p
 
20568
g
 
20569
s/^[^!]*!//
 
20570
:repl
 
20571
t repl
 
20572
s/'"$ac_delim"'$//
 
20573
t delim
 
20574
:nl
 
20575
h
 
20576
s/\(.\{148\}\)..*/\1/
 
20577
t more1
 
20578
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
20579
p
 
20580
n
 
20581
b repl
 
20582
:more1
 
20583
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20584
p
 
20585
g
 
20586
s/.\{148\}//
 
20587
t nl
 
20588
:delim
 
20589
h
 
20590
s/\(.\{148\}\)..*/\1/
 
20591
t more2
 
20592
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
20593
p
 
20594
b
 
20595
:more2
 
20596
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20597
p
 
20598
g
 
20599
s/.\{148\}//
 
20600
t delim
 
20601
' <conf$$subs.awk | sed '
 
20602
/^[^""]/{
 
20603
  N
 
20604
  s/\n//
 
20605
}
 
20606
' >>$CONFIG_STATUS || ac_write_fail=1
 
20607
rm -f conf$$subs.awk
 
20608
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20609
_ACAWK
 
20610
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
20611
  for (key in S) S_is_set[key] = 1
 
20612
  FS = ""
 
20613
 
 
20614
}
 
20615
{
 
20616
  line = $ 0
 
20617
  nfields = split(line, field, "@")
 
20618
  substed = 0
 
20619
  len = length(field[1])
 
20620
  for (i = 2; i < nfields; i++) {
 
20621
    key = field[i]
 
20622
    keylen = length(key)
 
20623
    if (S_is_set[key]) {
 
20624
      value = S[key]
 
20625
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
20626
      len += length(value) + length(field[++i])
 
20627
      substed = 1
 
20628
    } else
 
20629
      len += 1 + keylen
 
20630
  }
 
20631
 
 
20632
  print line
 
20633
}
 
20634
 
 
20635
_ACAWK
 
20636
_ACEOF
 
20637
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20638
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
20639
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
20640
else
 
20641
  cat
 
20642
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
20643
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
20644
_ACEOF
 
20645
 
 
20646
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
20647
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
20648
# trailing colons and then remove the whole line if VPATH becomes empty
 
20649
# (actually we leave an empty line to preserve line numbers).
 
20650
if test "x$srcdir" = x.; then
 
20651
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
20652
h
 
20653
s///
 
20654
s/^/:/
 
20655
s/[      ]*$/:/
 
20656
s/:\$(srcdir):/:/g
 
20657
s/:\${srcdir}:/:/g
 
20658
s/:@srcdir@:/:/g
 
20659
s/^:*//
 
20660
s/:*$//
 
20661
x
 
20662
s/\(=[   ]*\).*/\1/
 
20663
G
 
20664
s/\n//
 
20665
s/^[^=]*=[       ]*$//
 
20666
}'
 
20667
fi
 
20668
 
 
20669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20670
fi # test -n "$CONFIG_FILES"
 
20671
 
 
20672
# Set up the scripts for CONFIG_HEADERS section.
 
20673
# No need to generate them if there are no CONFIG_HEADERS.
 
20674
# This happens for instance with `./config.status Makefile'.
 
20675
if test -n "$CONFIG_HEADERS"; then
 
20676
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
20677
BEGIN {
 
20678
_ACEOF
 
20679
 
 
20680
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
20681
# here-document in config.status, that substitutes the proper values into
 
20682
# config.h.in to produce config.h.
 
20683
 
 
20684
# Create a delimiter string that does not exist in confdefs.h, to ease
 
20685
# handling of long lines.
 
20686
ac_delim='%!_!# '
 
20687
for ac_last_try in false false :; do
 
20688
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
20689
  if test -z "$ac_tt"; then
 
20690
    break
 
20691
  elif $ac_last_try; then
 
20692
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
20693
  else
 
20694
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20695
  fi
 
20696
done
 
20697
 
 
20698
# For the awk script, D is an array of macro values keyed by name,
 
20699
# likewise P contains macro parameters if any.  Preserve backslash
 
20700
# newline sequences.
 
20701
 
 
20702
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
20703
sed -n '
 
20704
s/.\{148\}/&'"$ac_delim"'/g
 
20705
t rset
 
20706
:rset
 
20707
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
20708
t def
 
20709
d
 
20710
:def
 
20711
s/\\$//
 
20712
t bsnl
 
20713
s/["\\]/\\&/g
 
20714
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20715
D["\1"]=" \3"/p
 
20716
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
20717
d
 
20718
:bsnl
 
20719
s/["\\]/\\&/g
 
20720
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20721
D["\1"]=" \3\\\\\\n"\\/p
 
20722
t cont
 
20723
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
20724
t cont
 
20725
d
 
20726
:cont
 
20727
n
 
20728
s/.\{148\}/&'"$ac_delim"'/g
 
20729
t clear
 
20730
:clear
 
20731
s/\\$//
 
20732
t bsnlc
 
20733
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
20734
d
 
20735
:bsnlc
 
20736
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
20737
b cont
 
20738
' <confdefs.h | sed '
 
20739
s/'"$ac_delim"'/"\\\
 
20740
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
20741
 
 
20742
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20743
  for (key in D) D_is_set[key] = 1
 
20744
  FS = ""
 
20745
}
 
20746
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
20747
  line = \$ 0
 
20748
  split(line, arg, " ")
 
20749
  if (arg[1] == "#") {
 
20750
    defundef = arg[2]
 
20751
    mac1 = arg[3]
 
20752
  } else {
 
20753
    defundef = substr(arg[1], 2)
 
20754
    mac1 = arg[2]
 
20755
  }
 
20756
  split(mac1, mac2, "(") #)
 
20757
  macro = mac2[1]
 
20758
  prefix = substr(line, 1, index(line, defundef) - 1)
 
20759
  if (D_is_set[macro]) {
 
20760
    # Preserve the white space surrounding the "#".
 
20761
    print prefix "define", macro P[macro] D[macro]
 
20762
    next
 
20763
  } else {
 
20764
    # Replace #undef with comments.  This is necessary, for example,
 
20765
    # in the case of _POSIX_SOURCE, which is predefined and required
 
20766
    # on some systems where configure will not decide to define it.
 
20767
    if (defundef == "undef") {
 
20768
      print "/*", prefix defundef, macro, "*/"
 
20769
      next
 
20770
    }
 
20771
  }
 
20772
}
 
20773
{ print }
 
20774
_ACAWK
 
20775
_ACEOF
 
20776
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20777
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
20778
fi # test -n "$CONFIG_HEADERS"
 
20779
 
 
20780
 
 
20781
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
20782
shift
 
20783
for ac_tag
 
20784
do
 
20785
  case $ac_tag in
 
20786
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
20787
  esac
 
20788
  case $ac_mode$ac_tag in
 
20789
  :[FHL]*:*);;
 
20790
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
20791
  :[FH]-) ac_tag=-:-;;
 
20792
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
20793
  esac
 
20794
  ac_save_IFS=$IFS
 
20795
  IFS=:
 
20796
  set x $ac_tag
 
20797
  IFS=$ac_save_IFS
 
20798
  shift
 
20799
  ac_file=$1
 
20800
  shift
 
20801
 
 
20802
  case $ac_mode in
 
20803
  :L) ac_source=$1;;
 
20804
  :[FH])
 
20805
    ac_file_inputs=
 
20806
    for ac_f
 
20807
    do
 
20808
      case $ac_f in
 
20809
      -) ac_f="$ac_tmp/stdin";;
 
20810
      *) # Look for the file first in the build tree, then in the source tree
 
20811
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
20812
         # because $ac_f cannot contain `:'.
 
20813
         test -f "$ac_f" ||
 
20814
           case $ac_f in
 
20815
           [\\/$]*) false;;
 
20816
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
20817
           esac ||
 
20818
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
20819
      esac
 
20820
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
20821
      as_fn_append ac_file_inputs " '$ac_f'"
 
20822
    done
 
20823
 
 
20824
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20825
    # use $as_me), people would be surprised to read:
 
20826
    #    /* config.h.  Generated by config.status.  */
 
20827
    configure_input='Generated from '`
 
20828
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
20829
        `' by configure.'
 
20830
    if test x"$ac_file" != x-; then
 
20831
      configure_input="$ac_file.  $configure_input"
 
20832
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
20833
$as_echo "$as_me: creating $ac_file" >&6;}
 
20834
    fi
 
20835
    # Neutralize special characters interpreted by sed in replacement strings.
 
20836
    case $configure_input in #(
 
20837
    *\&* | *\|* | *\\* )
 
20838
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
20839
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
20840
    *) ac_sed_conf_input=$configure_input;;
 
20841
    esac
 
20842
 
 
20843
    case $ac_tag in
 
20844
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
20845
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
20846
    esac
 
20847
    ;;
 
20848
  esac
 
20849
 
 
20850
  ac_dir=`$as_dirname -- "$ac_file" ||
 
20851
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20852
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20853
         X"$ac_file" : 'X\(//\)$' \| \
 
20854
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
20855
$as_echo X"$ac_file" |
 
20856
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20857
            s//\1/
 
20858
            q
 
20859
          }
 
20860
          /^X\(\/\/\)[^/].*/{
 
20861
            s//\1/
 
20862
            q
 
20863
          }
 
20864
          /^X\(\/\/\)$/{
 
20865
            s//\1/
 
20866
            q
 
20867
          }
 
20868
          /^X\(\/\).*/{
 
20869
            s//\1/
 
20870
            q
 
20871
          }
 
20872
          s/.*/./; q'`
 
20873
  as_dir="$ac_dir"; as_fn_mkdir_p
 
20874
  ac_builddir=.
 
20875
 
 
20876
case "$ac_dir" in
 
20877
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20878
*)
 
20879
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
20880
  # A ".." for each directory in $ac_dir_suffix.
 
20881
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
20882
  case $ac_top_builddir_sub in
 
20883
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20884
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
20885
  esac ;;
 
20886
esac
 
20887
ac_abs_top_builddir=$ac_pwd
 
20888
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
20889
# for backward compatibility:
 
20890
ac_top_builddir=$ac_top_build_prefix
 
20891
 
 
20892
case $srcdir in
 
20893
  .)  # We are building in place.
 
20894
    ac_srcdir=.
 
20895
    ac_top_srcdir=$ac_top_builddir_sub
 
20896
    ac_abs_top_srcdir=$ac_pwd ;;
 
20897
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
20898
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20899
    ac_top_srcdir=$srcdir
 
20900
    ac_abs_top_srcdir=$srcdir ;;
 
20901
  *) # Relative name.
 
20902
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
20903
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
20904
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
20905
esac
 
20906
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
20907
 
 
20908
 
 
20909
  case $ac_mode in
 
20910
  :F)
 
20911
  #
 
20912
  # CONFIG_FILE
 
20913
  #
 
20914
 
 
20915
  case $INSTALL in
 
20916
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20917
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
20918
  esac
 
20919
  ac_MKDIR_P=$MKDIR_P
 
20920
  case $MKDIR_P in
 
20921
  [\\/$]* | ?:[\\/]* ) ;;
 
20922
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
20923
  esac
 
20924
_ACEOF
 
20925
 
 
20926
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20927
# If the template does not know about datarootdir, expand it.
 
20928
# FIXME: This hack should be removed a few years after 2.60.
 
20929
ac_datarootdir_hack=; ac_datarootdir_seen=
 
20930
ac_sed_dataroot='
 
20931
/datarootdir/ {
 
20932
  p
 
20933
  q
 
20934
}
 
20935
/@datadir@/p
 
20936
/@docdir@/p
 
20937
/@infodir@/p
 
20938
/@localedir@/p
 
20939
/@mandir@/p'
 
20940
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
20941
*datarootdir*) ac_datarootdir_seen=yes;;
 
20942
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
20943
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
20944
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
20945
_ACEOF
 
20946
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20947
  ac_datarootdir_hack='
 
20948
  s&@datadir@&$datadir&g
 
20949
  s&@docdir@&$docdir&g
 
20950
  s&@infodir@&$infodir&g
 
20951
  s&@localedir@&$localedir&g
 
20952
  s&@mandir@&$mandir&g
 
20953
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
20954
esac
 
20955
_ACEOF
 
20956
 
 
20957
# Neutralize VPATH when `$srcdir' = `.'.
 
20958
# Shell code in configure.ac might set extrasub.
 
20959
# FIXME: do we really want to maintain this feature?
 
20960
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20961
ac_sed_extra="$ac_vpsub
 
20962
$extrasub
 
20963
_ACEOF
 
20964
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20965
:t
 
20966
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20967
s|@configure_input@|$ac_sed_conf_input|;t t
 
20968
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
20969
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
20970
s&@srcdir@&$ac_srcdir&;t t
 
20971
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
20972
s&@top_srcdir@&$ac_top_srcdir&;t t
 
20973
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
20974
s&@builddir@&$ac_builddir&;t t
 
20975
s&@abs_builddir@&$ac_abs_builddir&;t t
 
20976
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
20977
s&@INSTALL@&$ac_INSTALL&;t t
 
20978
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
20979
$ac_datarootdir_hack
 
20980
"
 
20981
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
20982
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20983
 
 
20984
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
20985
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
20986
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
20987
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
20988
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20989
which seems to be undefined.  Please make sure it is defined" >&5
 
20990
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20991
which seems to be undefined.  Please make sure it is defined" >&2;}
 
20992
 
 
20993
  rm -f "$ac_tmp/stdin"
 
20994
  case $ac_file in
 
20995
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
20996
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
20997
  esac \
 
20998
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20999
 ;;
 
21000
  :H)
 
21001
  #
 
21002
  # CONFIG_HEADER
 
21003
  #
 
21004
  if test x"$ac_file" != x-; then
 
21005
    {
 
21006
      $as_echo "/* $configure_input  */" \
 
21007
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
21008
    } >"$ac_tmp/config.h" \
 
21009
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21010
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
21011
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
21012
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
21013
    else
 
21014
      rm -f "$ac_file"
 
21015
      mv "$ac_tmp/config.h" "$ac_file" \
 
21016
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21017
    fi
 
21018
  else
 
21019
    $as_echo "/* $configure_input  */" \
 
21020
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
21021
      || as_fn_error $? "could not create -" "$LINENO" 5
 
21022
  fi
 
21023
# Compute "$ac_file"'s index in $config_headers.
 
21024
_am_arg="$ac_file"
 
21025
_am_stamp_count=1
 
21026
for _am_header in $config_headers :; do
 
21027
  case $_am_header in
 
21028
    $_am_arg | $_am_arg:* )
 
21029
      break ;;
 
21030
    * )
 
21031
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21032
  esac
 
21033
done
 
21034
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
21035
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21036
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
21037
         X"$_am_arg" : 'X\(//\)$' \| \
 
21038
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
21039
$as_echo X"$_am_arg" |
 
21040
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21041
            s//\1/
 
21042
            q
 
21043
          }
 
21044
          /^X\(\/\/\)[^/].*/{
 
21045
            s//\1/
 
21046
            q
 
21047
          }
 
21048
          /^X\(\/\/\)$/{
 
21049
            s//\1/
 
21050
            q
 
21051
          }
 
21052
          /^X\(\/\).*/{
 
21053
            s//\1/
 
21054
            q
 
21055
          }
 
21056
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21057
 ;;
 
21058
 
 
21059
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
21060
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
21061
 ;;
 
21062
  esac
 
21063
 
 
21064
 
 
21065
  case $ac_file$ac_mode in
 
21066
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
21067
  # Older Autoconf quotes --file arguments for eval, but not when files
 
21068
  # are listed without --file.  Let's play safe and only enable the eval
 
21069
  # if we detect the quoting.
 
21070
  case $CONFIG_FILES in
 
21071
  *\'*) eval set x "$CONFIG_FILES" ;;
 
21072
  *)   set x $CONFIG_FILES ;;
 
21073
  esac
 
21074
  shift
 
21075
  for mf
 
21076
  do
 
21077
    # Strip MF so we end up with the name of the file.
 
21078
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21079
    # Check whether this is an Automake generated Makefile or not.
 
21080
    # We used to match only the files named 'Makefile.in', but
 
21081
    # some people rename them; so instead we look at the file content.
 
21082
    # Grep'ing the first line is not enough: some people post-process
 
21083
    # each Makefile.in and add a new line on top of each file to say so.
 
21084
    # Grep'ing the whole file is not good either: AIX grep has a line
 
21085
    # limit of 2048, but all sed's we know have understand at least 4000.
 
21086
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
21087
      dirpart=`$as_dirname -- "$mf" ||
 
21088
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21089
         X"$mf" : 'X\(//\)[^/]' \| \
 
21090
         X"$mf" : 'X\(//\)$' \| \
 
21091
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
21092
$as_echo X"$mf" |
 
21093
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21094
            s//\1/
 
21095
            q
 
21096
          }
 
21097
          /^X\(\/\/\)[^/].*/{
 
21098
            s//\1/
 
21099
            q
 
21100
          }
 
21101
          /^X\(\/\/\)$/{
 
21102
            s//\1/
 
21103
            q
 
21104
          }
 
21105
          /^X\(\/\).*/{
 
21106
            s//\1/
 
21107
            q
 
21108
          }
 
21109
          s/.*/./; q'`
 
21110
    else
 
21111
      continue
 
21112
    fi
 
21113
    # Extract the definition of DEPDIR, am__include, and am__quote
 
21114
    # from the Makefile without running 'make'.
 
21115
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21116
    test -z "$DEPDIR" && continue
 
21117
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21118
    test -z "$am__include" && continue
 
21119
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21120
    # Find all dependency output files, they are included files with
 
21121
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21122
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
21123
    # expansion.
 
21124
    for file in `sed -n "
 
21125
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21126
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
21127
      # Make sure the directory exists.
 
21128
      test -f "$dirpart/$file" && continue
 
21129
      fdir=`$as_dirname -- "$file" ||
 
21130
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21131
         X"$file" : 'X\(//\)[^/]' \| \
 
21132
         X"$file" : 'X\(//\)$' \| \
 
21133
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
21134
$as_echo X"$file" |
 
21135
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21136
            s//\1/
 
21137
            q
 
21138
          }
 
21139
          /^X\(\/\/\)[^/].*/{
 
21140
            s//\1/
 
21141
            q
 
21142
          }
 
21143
          /^X\(\/\/\)$/{
 
21144
            s//\1/
 
21145
            q
 
21146
          }
 
21147
          /^X\(\/\).*/{
 
21148
            s//\1/
 
21149
            q
 
21150
          }
 
21151
          s/.*/./; q'`
 
21152
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
21153
      # echo "creating $dirpart/$file"
 
21154
      echo '# dummy' > "$dirpart/$file"
 
21155
    done
 
21156
  done
 
21157
}
 
21158
 ;;
 
21159
    "libtool":C)
 
21160
 
 
21161
    # See if we are running on zsh, and set the options that allow our
 
21162
    # commands through without removal of \ escapes.
 
21163
    if test -n "${ZSH_VERSION+set}"; then
 
21164
      setopt NO_GLOB_SUBST
 
21165
    fi
 
21166
 
 
21167
    cfgfile=${ofile}T
 
21168
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
21169
    $RM "$cfgfile"
 
21170
 
 
21171
    cat <<_LT_EOF >> "$cfgfile"
 
21172
#! $SHELL
 
21173
# Generated automatically by $as_me ($PACKAGE) $VERSION
 
21174
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21175
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
21176
 
 
21177
# Provide generalized library-building support services.
 
21178
# Written by Gordon Matzigkeit, 1996
 
21179
 
 
21180
# Copyright (C) 2014 Free Software Foundation, Inc.
 
21181
# This is free software; see the source for copying conditions.  There is NO
 
21182
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
21183
 
 
21184
# GNU Libtool is free software; you can redistribute it and/or modify
 
21185
# it under the terms of the GNU General Public License as published by
 
21186
# the Free Software Foundation; either version 2 of of the License, or
 
21187
# (at your option) any later version.
 
21188
#
 
21189
# As a special exception to the GNU General Public License, if you
 
21190
# distribute this file as part of a program or library that is built
 
21191
# using GNU Libtool, you may include this file under the  same
 
21192
# distribution terms that you use for the rest of that program.
 
21193
#
 
21194
# GNU Libtool is distributed in the hope that it will be useful, but
 
21195
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
21196
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21197
# GNU General Public License for more details.
 
21198
#
 
21199
# You should have received a copy of the GNU General Public License
 
21200
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21201
 
 
21202
 
 
21203
# The names of the tagged configurations supported by this script.
 
21204
available_tags='CXX '
 
21205
 
 
21206
# Configured defaults for sys_lib_dlsearch_path munging.
 
21207
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
 
21208
 
 
21209
# ### BEGIN LIBTOOL CONFIG
 
21210
 
 
21211
# Which release of libtool.m4 was used?
 
21212
macro_version=$macro_version
 
21213
macro_revision=$macro_revision
 
21214
 
 
21215
# Whether or not to build shared libraries.
 
21216
build_libtool_libs=$enable_shared
 
21217
 
 
21218
# Whether or not to build static libraries.
 
21219
build_old_libs=$enable_static
 
21220
 
 
21221
# What type of objects to build.
 
21222
pic_mode=$pic_mode
 
21223
 
 
21224
# Whether or not to optimize for fast installation.
 
21225
fast_install=$enable_fast_install
 
21226
 
 
21227
# Shared archive member basename,for filename based shared library versioning on AIX.
 
21228
shared_archive_member_spec=$shared_archive_member_spec
 
21229
 
 
21230
# Shell to use when invoking shell scripts.
 
21231
SHELL=$lt_SHELL
 
21232
 
 
21233
# An echo program that protects backslashes.
 
21234
ECHO=$lt_ECHO
 
21235
 
 
21236
# The PATH separator for the build system.
 
21237
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
21238
 
 
21239
# The host system.
 
21240
host_alias=$host_alias
 
21241
host=$host
 
21242
host_os=$host_os
 
21243
 
 
21244
# The build system.
 
21245
build_alias=$build_alias
 
21246
build=$build
 
21247
build_os=$build_os
 
21248
 
 
21249
# A sed program that does not truncate output.
 
21250
SED=$lt_SED
 
21251
 
 
21252
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
21253
Xsed="\$SED -e 1s/^X//"
 
21254
 
 
21255
# A grep program that handles long lines.
 
21256
GREP=$lt_GREP
 
21257
 
 
21258
# An ERE matcher.
 
21259
EGREP=$lt_EGREP
 
21260
 
 
21261
# A literal string matcher.
 
21262
FGREP=$lt_FGREP
 
21263
 
 
21264
# A BSD- or MS-compatible name lister.
 
21265
NM=$lt_NM
 
21266
 
 
21267
# Whether we need soft or hard links.
 
21268
LN_S=$lt_LN_S
 
21269
 
 
21270
# What is the maximum length of a command?
 
21271
max_cmd_len=$max_cmd_len
 
21272
 
 
21273
# Object file suffix (normally "o").
 
21274
objext=$ac_objext
 
21275
 
 
21276
# Executable file suffix (normally "").
 
21277
exeext=$exeext
 
21278
 
 
21279
# whether the shell understands "unset".
 
21280
lt_unset=$lt_unset
 
21281
 
 
21282
# turn spaces into newlines.
 
21283
SP2NL=$lt_lt_SP2NL
 
21284
 
 
21285
# turn newlines into spaces.
 
21286
NL2SP=$lt_lt_NL2SP
 
21287
 
 
21288
# convert \$build file names to \$host format.
 
21289
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
21290
 
 
21291
# convert \$build files to toolchain format.
 
21292
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
21293
 
 
21294
# An object symbol dumper.
 
21295
OBJDUMP=$lt_OBJDUMP
 
21296
 
 
21297
# Method to check whether dependent libraries are shared objects.
 
21298
deplibs_check_method=$lt_deplibs_check_method
 
21299
 
 
21300
# Command to use when deplibs_check_method = "file_magic".
 
21301
file_magic_cmd=$lt_file_magic_cmd
 
21302
 
 
21303
# How to find potential files when deplibs_check_method = "file_magic".
 
21304
file_magic_glob=$lt_file_magic_glob
 
21305
 
 
21306
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
21307
want_nocaseglob=$lt_want_nocaseglob
 
21308
 
 
21309
# DLL creation program.
 
21310
DLLTOOL=$lt_DLLTOOL
 
21311
 
 
21312
# Command to associate shared and link libraries.
 
21313
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
21314
 
 
21315
# The archiver.
 
21316
AR=$lt_AR
 
21317
 
 
21318
# Flags to create an archive (by configure).
 
21319
lt_ar_flags=$lt_ar_flags
 
21320
 
 
21321
# Flags to create an archive.
 
21322
AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
 
21323
 
 
21324
# How to feed a file listing to the archiver.
 
21325
archiver_list_spec=$lt_archiver_list_spec
 
21326
 
 
21327
# A symbol stripping program.
 
21328
STRIP=$lt_STRIP
 
21329
 
 
21330
# Commands used to install an old-style archive.
 
21331
RANLIB=$lt_RANLIB
 
21332
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21333
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21334
 
 
21335
# Whether to use a lock for old archive extraction.
 
21336
lock_old_archive_extraction=$lock_old_archive_extraction
 
21337
 
 
21338
# A C compiler.
 
21339
LTCC=$lt_CC
 
21340
 
 
21341
# LTCC compiler flags.
 
21342
LTCFLAGS=$lt_CFLAGS
 
21343
 
 
21344
# Take the output of nm and produce a listing of raw symbols and C names.
 
21345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21346
 
 
21347
# Transform the output of nm in a proper C declaration.
 
21348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21349
 
 
21350
# Transform the output of nm into a list of symbols to manually relocate.
 
21351
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
 
21352
 
 
21353
# Transform the output of nm in a C name address pair.
 
21354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21355
 
 
21356
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
21357
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
21358
 
 
21359
# The name lister interface.
 
21360
nm_interface=$lt_lt_cv_nm_interface
 
21361
 
 
21362
# Specify filename containing input files for \$NM.
 
21363
nm_file_list_spec=$lt_nm_file_list_spec
 
21364
 
 
21365
# The root where to search for dependent libraries,and where our libraries should be installed.
 
21366
lt_sysroot=$lt_sysroot
 
21367
 
 
21368
# Command to truncate a binary pipe.
 
21369
lt_truncate_bin=$lt_lt_cv_truncate_bin
 
21370
 
 
21371
# The name of the directory that contains temporary libtool files.
 
21372
objdir=$objdir
 
21373
 
 
21374
# Used to examine libraries when file_magic_cmd begins with "file".
 
21375
MAGIC_CMD=$MAGIC_CMD
 
21376
 
 
21377
# Must we lock files when doing compilation?
 
21378
need_locks=$lt_need_locks
 
21379
 
 
21380
# Manifest tool.
 
21381
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
21382
 
 
21383
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
21384
DSYMUTIL=$lt_DSYMUTIL
 
21385
 
 
21386
# Tool to change global to local symbols on Mac OS X.
 
21387
NMEDIT=$lt_NMEDIT
 
21388
 
 
21389
# Tool to manipulate fat objects and archives on Mac OS X.
 
21390
LIPO=$lt_LIPO
 
21391
 
 
21392
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
21393
OTOOL=$lt_OTOOL
 
21394
 
 
21395
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
21396
OTOOL64=$lt_OTOOL64
 
21397
 
 
21398
# Old archive suffix (normally "a").
 
21399
libext=$libext
 
21400
 
 
21401
# Shared library suffix (normally ".so").
 
21402
shrext_cmds=$lt_shrext_cmds
 
21403
 
 
21404
# The commands to extract the exported symbol list from a shared archive.
 
21405
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21406
 
 
21407
# Variables whose values should be saved in libtool wrapper scripts and
 
21408
# restored at link time.
 
21409
variables_saved_for_relink=$lt_variables_saved_for_relink
 
21410
 
 
21411
# Do we need the "lib" prefix for modules?
 
21412
need_lib_prefix=$need_lib_prefix
 
21413
 
 
21414
# Do we need a version for libraries?
 
21415
need_version=$need_version
 
21416
 
 
21417
# Library versioning type.
 
21418
version_type=$version_type
 
21419
 
 
21420
# Shared library runtime path variable.
 
21421
runpath_var=$runpath_var
 
21422
 
 
21423
# Shared library path variable.
 
21424
shlibpath_var=$shlibpath_var
 
21425
 
 
21426
# Is shlibpath searched before the hard-coded library search path?
 
21427
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21428
 
 
21429
# Format of library name prefix.
 
21430
libname_spec=$lt_libname_spec
 
21431
 
 
21432
# List of archive names.  First name is the real one, the rest are links.
 
21433
# The last name is the one that the linker finds with -lNAME
 
21434
library_names_spec=$lt_library_names_spec
 
21435
 
 
21436
# The coded name of the library, if different from the real name.
 
21437
soname_spec=$lt_soname_spec
 
21438
 
 
21439
# Permission mode override for installation of shared libraries.
 
21440
install_override_mode=$lt_install_override_mode
 
21441
 
 
21442
# Command to use after installation of a shared archive.
 
21443
postinstall_cmds=$lt_postinstall_cmds
 
21444
 
 
21445
# Command to use after uninstallation of a shared archive.
 
21446
postuninstall_cmds=$lt_postuninstall_cmds
 
21447
 
 
21448
# Commands used to finish a libtool library installation in a directory.
 
21449
finish_cmds=$lt_finish_cmds
 
21450
 
 
21451
# As "finish_cmds", except a single script fragment to be evaled but
 
21452
# not shown.
 
21453
finish_eval=$lt_finish_eval
 
21454
 
 
21455
# Whether we should hardcode library paths into libraries.
 
21456
hardcode_into_libs=$hardcode_into_libs
 
21457
 
 
21458
# Compile-time system search path for libraries.
 
21459
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21460
 
 
21461
# Detected run-time system search path for libraries.
 
21462
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
 
21463
 
 
21464
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
 
21465
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
 
21466
 
 
21467
# Whether dlopen is supported.
 
21468
dlopen_support=$enable_dlopen
 
21469
 
 
21470
# Whether dlopen of programs is supported.
 
21471
dlopen_self=$enable_dlopen_self
 
21472
 
 
21473
# Whether dlopen of statically linked programs is supported.
 
21474
dlopen_self_static=$enable_dlopen_self_static
 
21475
 
 
21476
# Commands to strip libraries.
 
21477
old_striplib=$lt_old_striplib
 
21478
striplib=$lt_striplib
 
21479
 
 
21480
 
 
21481
# The linker used to build libraries.
 
21482
LD=$lt_LD
 
21483
 
 
21484
# How to create reloadable object files.
 
21485
reload_flag=$lt_reload_flag
 
21486
reload_cmds=$lt_reload_cmds
 
21487
 
 
21488
# Commands used to build an old-style archive.
 
21489
old_archive_cmds=$lt_old_archive_cmds
 
21490
 
 
21491
# A language specific compiler.
 
21492
CC=$lt_compiler
 
21493
 
 
21494
# Is the compiler the GNU compiler?
 
21495
with_gcc=$GCC
 
21496
 
 
21497
# Compiler flag to turn off builtin functions.
 
21498
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
21499
 
 
21500
# Additional compiler flags for building library objects.
 
21501
pic_flag=$lt_lt_prog_compiler_pic
 
21502
 
 
21503
# How to pass a linker flag through the compiler.
 
21504
wl=$lt_lt_prog_compiler_wl
 
21505
 
 
21506
# Compiler flag to prevent dynamic linking.
 
21507
link_static_flag=$lt_lt_prog_compiler_static
 
21508
 
 
21509
# Does compiler simultaneously support -c and -o options?
 
21510
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
21511
 
 
21512
# Whether or not to add -lc for building shared libraries.
 
21513
build_libtool_need_lc=$archive_cmds_need_lc
 
21514
 
 
21515
# Whether or not to disallow shared libs when runtime libs are static.
 
21516
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
21517
 
 
21518
# Compiler flag to allow reflexive dlopens.
 
21519
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
21520
 
 
21521
# Compiler flag to generate shared objects directly from archives.
 
21522
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
21523
 
 
21524
# Whether the compiler copes with passing no objects directly.
 
21525
compiler_needs_object=$lt_compiler_needs_object
 
21526
 
 
21527
# Create an old-style archive from a shared archive.
 
21528
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
21529
 
 
21530
# Create a temporary old-style archive to link instead of a shared archive.
 
21531
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
21532
 
 
21533
# Commands used to build a shared archive.
 
21534
archive_cmds=$lt_archive_cmds
 
21535
archive_expsym_cmds=$lt_archive_expsym_cmds
 
21536
 
 
21537
# Commands used to build a loadable module if different from building
 
21538
# a shared archive.
 
21539
module_cmds=$lt_module_cmds
 
21540
module_expsym_cmds=$lt_module_expsym_cmds
 
21541
 
 
21542
# Whether we are building with GNU ld or not.
 
21543
with_gnu_ld=$lt_with_gnu_ld
 
21544
 
 
21545
# Flag that allows shared libraries with undefined symbols to be built.
 
21546
allow_undefined_flag=$lt_allow_undefined_flag
 
21547
 
 
21548
# Flag that enforces no undefined symbols.
 
21549
no_undefined_flag=$lt_no_undefined_flag
 
21550
 
 
21551
# Flag to hardcode \$libdir into a binary during linking.
 
21552
# This must work even if \$libdir does not exist
 
21553
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
21554
 
 
21555
# Whether we need a single "-rpath" flag with a separated argument.
 
21556
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
21557
 
 
21558
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
21559
# DIR into the resulting binary.
 
21560
hardcode_direct=$hardcode_direct
 
21561
 
 
21562
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
21563
# DIR into the resulting binary and the resulting library dependency is
 
21564
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
 
21565
# library is relocated.
 
21566
hardcode_direct_absolute=$hardcode_direct_absolute
 
21567
 
 
21568
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21569
# into the resulting binary.
 
21570
hardcode_minus_L=$hardcode_minus_L
 
21571
 
 
21572
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21573
# into the resulting binary.
 
21574
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
21575
 
 
21576
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21577
# into the library and all subsequent libraries and executables linked
 
21578
# against it.
 
21579
hardcode_automatic=$hardcode_automatic
 
21580
 
 
21581
# Set to yes if linker adds runtime paths of dependent libraries
 
21582
# to runtime path list.
 
21583
inherit_rpath=$inherit_rpath
 
21584
 
 
21585
# Whether libtool must link a program against all its dependency libraries.
 
21586
link_all_deplibs=$link_all_deplibs
 
21587
 
 
21588
# Set to "yes" if exported symbols are required.
 
21589
always_export_symbols=$always_export_symbols
 
21590
 
 
21591
# The commands to list exported symbols.
 
21592
export_symbols_cmds=$lt_export_symbols_cmds
 
21593
 
 
21594
# Symbols that should not be listed in the preloaded symbols.
 
21595
exclude_expsyms=$lt_exclude_expsyms
 
21596
 
 
21597
# Symbols that must always be exported.
 
21598
include_expsyms=$lt_include_expsyms
 
21599
 
 
21600
# Commands necessary for linking programs (against libraries) with templates.
 
21601
prelink_cmds=$lt_prelink_cmds
 
21602
 
 
21603
# Commands necessary for finishing linking programs.
 
21604
postlink_cmds=$lt_postlink_cmds
 
21605
 
 
21606
# Specify filename containing input files.
 
21607
file_list_spec=$lt_file_list_spec
 
21608
 
 
21609
# How to hardcode a shared library path into an executable.
 
21610
hardcode_action=$hardcode_action
 
21611
 
 
21612
# The directories searched by this compiler when creating a shared library.
 
21613
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
21614
 
 
21615
# Dependencies to place before and after the objects being linked to
 
21616
# create a shared library.
 
21617
predep_objects=$lt_predep_objects
 
21618
postdep_objects=$lt_postdep_objects
 
21619
predeps=$lt_predeps
 
21620
postdeps=$lt_postdeps
 
21621
 
 
21622
# The library search path used internally by the compiler when linking
 
21623
# a shared library.
 
21624
compiler_lib_search_path=$lt_compiler_lib_search_path
 
21625
 
 
21626
# ### END LIBTOOL CONFIG
 
21627
 
 
21628
_LT_EOF
 
21629
 
 
21630
    cat <<'_LT_EOF' >> "$cfgfile"
 
21631
 
 
21632
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
 
21633
 
 
21634
# func_munge_path_list VARIABLE PATH
 
21635
# -----------------------------------
 
21636
# VARIABLE is name of variable containing _space_ separated list of
 
21637
# directories to be munged by the contents of PATH, which is string
 
21638
# having a format:
 
21639
# "DIR[:DIR]:"
 
21640
#       string "DIR[ DIR]" will be prepended to VARIABLE
 
21641
# ":DIR[:DIR]"
 
21642
#       string "DIR[ DIR]" will be appended to VARIABLE
 
21643
# "DIRP[:DIRP]::[DIRA:]DIRA"
 
21644
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 
21645
#       "DIRA[ DIRA]" will be appended to VARIABLE
 
21646
# "DIR[:DIR]"
 
21647
#       VARIABLE will be replaced by "DIR[ DIR]"
 
21648
func_munge_path_list ()
 
21649
{
 
21650
    case x$2 in
 
21651
    x)
 
21652
        ;;
 
21653
    *:)
 
21654
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 
21655
        ;;
 
21656
    x:*)
 
21657
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 
21658
        ;;
 
21659
    *::*)
 
21660
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 
21661
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 
21662
        ;;
 
21663
    *)
 
21664
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 
21665
        ;;
 
21666
    esac
 
21667
}
 
21668
 
 
21669
 
 
21670
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
21671
func_cc_basename ()
 
21672
{
 
21673
    for cc_temp in $*""; do
 
21674
      case $cc_temp in
 
21675
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
21676
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
21677
        \-*) ;;
 
21678
        *) break;;
 
21679
      esac
 
21680
    done
 
21681
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
21682
}
 
21683
 
 
21684
 
 
21685
# ### END FUNCTIONS SHARED WITH CONFIGURE
 
21686
 
 
21687
_LT_EOF
 
21688
 
 
21689
  case $host_os in
 
21690
  aix3*)
 
21691
    cat <<\_LT_EOF >> "$cfgfile"
 
21692
# AIX sometimes has problems with the GCC collect2 program.  For some
 
21693
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
21694
# vanish in a puff of smoke.
 
21695
if test set != "${COLLECT_NAMES+set}"; then
 
21696
  COLLECT_NAMES=
 
21697
  export COLLECT_NAMES
 
21698
fi
 
21699
_LT_EOF
 
21700
    ;;
 
21701
  esac
 
21702
 
 
21703
 
 
21704
ltmain=$ac_aux_dir/ltmain.sh
 
21705
 
 
21706
 
 
21707
  # We use sed instead of cat because bash on DJGPP gets confused if
 
21708
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
21709
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
21710
  # is reportedly fixed, but why not run on old versions too?
 
21711
  sed '$q' "$ltmain" >> "$cfgfile" \
 
21712
     || (rm -f "$cfgfile"; exit 1)
 
21713
 
 
21714
   mv -f "$cfgfile" "$ofile" ||
 
21715
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
21716
  chmod +x "$ofile"
 
21717
 
 
21718
 
 
21719
    cat <<_LT_EOF >> "$ofile"
 
21720
 
 
21721
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
21722
 
 
21723
# The linker used to build libraries.
 
21724
LD=$lt_LD_CXX
 
21725
 
 
21726
# How to create reloadable object files.
 
21727
reload_flag=$lt_reload_flag_CXX
 
21728
reload_cmds=$lt_reload_cmds_CXX
 
21729
 
 
21730
# Commands used to build an old-style archive.
 
21731
old_archive_cmds=$lt_old_archive_cmds_CXX
 
21732
 
 
21733
# A language specific compiler.
 
21734
CC=$lt_compiler_CXX
 
21735
 
 
21736
# Is the compiler the GNU compiler?
 
21737
with_gcc=$GCC_CXX
 
21738
 
 
21739
# Compiler flag to turn off builtin functions.
 
21740
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
21741
 
 
21742
# Additional compiler flags for building library objects.
 
21743
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
21744
 
 
21745
# How to pass a linker flag through the compiler.
 
21746
wl=$lt_lt_prog_compiler_wl_CXX
 
21747
 
 
21748
# Compiler flag to prevent dynamic linking.
 
21749
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
21750
 
 
21751
# Does compiler simultaneously support -c and -o options?
 
21752
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
21753
 
 
21754
# Whether or not to add -lc for building shared libraries.
 
21755
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
21756
 
 
21757
# Whether or not to disallow shared libs when runtime libs are static.
 
21758
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
21759
 
 
21760
# Compiler flag to allow reflexive dlopens.
 
21761
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
21762
 
 
21763
# Compiler flag to generate shared objects directly from archives.
 
21764
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
21765
 
 
21766
# Whether the compiler copes with passing no objects directly.
 
21767
compiler_needs_object=$lt_compiler_needs_object_CXX
 
21768
 
 
21769
# Create an old-style archive from a shared archive.
 
21770
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
21771
 
 
21772
# Create a temporary old-style archive to link instead of a shared archive.
 
21773
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
21774
 
 
21775
# Commands used to build a shared archive.
 
21776
archive_cmds=$lt_archive_cmds_CXX
 
21777
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
21778
 
 
21779
# Commands used to build a loadable module if different from building
 
21780
# a shared archive.
 
21781
module_cmds=$lt_module_cmds_CXX
 
21782
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
21783
 
 
21784
# Whether we are building with GNU ld or not.
 
21785
with_gnu_ld=$lt_with_gnu_ld_CXX
 
21786
 
 
21787
# Flag that allows shared libraries with undefined symbols to be built.
 
21788
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
21789
 
 
21790
# Flag that enforces no undefined symbols.
 
21791
no_undefined_flag=$lt_no_undefined_flag_CXX
 
21792
 
 
21793
# Flag to hardcode \$libdir into a binary during linking.
 
21794
# This must work even if \$libdir does not exist
 
21795
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
21796
 
 
21797
# Whether we need a single "-rpath" flag with a separated argument.
 
21798
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
21799
 
 
21800
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
21801
# DIR into the resulting binary.
 
21802
hardcode_direct=$hardcode_direct_CXX
 
21803
 
 
21804
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 
21805
# DIR into the resulting binary and the resulting library dependency is
 
21806
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
 
21807
# library is relocated.
 
21808
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
21809
 
 
21810
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21811
# into the resulting binary.
 
21812
hardcode_minus_L=$hardcode_minus_L_CXX
 
21813
 
 
21814
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21815
# into the resulting binary.
 
21816
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
21817
 
 
21818
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21819
# into the library and all subsequent libraries and executables linked
 
21820
# against it.
 
21821
hardcode_automatic=$hardcode_automatic_CXX
 
21822
 
 
21823
# Set to yes if linker adds runtime paths of dependent libraries
 
21824
# to runtime path list.
 
21825
inherit_rpath=$inherit_rpath_CXX
 
21826
 
 
21827
# Whether libtool must link a program against all its dependency libraries.
 
21828
link_all_deplibs=$link_all_deplibs_CXX
 
21829
 
 
21830
# Set to "yes" if exported symbols are required.
 
21831
always_export_symbols=$always_export_symbols_CXX
 
21832
 
 
21833
# The commands to list exported symbols.
 
21834
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
21835
 
 
21836
# Symbols that should not be listed in the preloaded symbols.
 
21837
exclude_expsyms=$lt_exclude_expsyms_CXX
 
21838
 
 
21839
# Symbols that must always be exported.
 
21840
include_expsyms=$lt_include_expsyms_CXX
 
21841
 
 
21842
# Commands necessary for linking programs (against libraries) with templates.
 
21843
prelink_cmds=$lt_prelink_cmds_CXX
 
21844
 
 
21845
# Commands necessary for finishing linking programs.
 
21846
postlink_cmds=$lt_postlink_cmds_CXX
 
21847
 
 
21848
# Specify filename containing input files.
 
21849
file_list_spec=$lt_file_list_spec_CXX
 
21850
 
 
21851
# How to hardcode a shared library path into an executable.
 
21852
hardcode_action=$hardcode_action_CXX
 
21853
 
 
21854
# The directories searched by this compiler when creating a shared library.
 
21855
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
21856
 
 
21857
# Dependencies to place before and after the objects being linked to
 
21858
# create a shared library.
 
21859
predep_objects=$lt_predep_objects_CXX
 
21860
postdep_objects=$lt_postdep_objects_CXX
 
21861
predeps=$lt_predeps_CXX
 
21862
postdeps=$lt_postdeps_CXX
 
21863
 
 
21864
# The library search path used internally by the compiler when linking
 
21865
# a shared library.
 
21866
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
21867
 
 
21868
# ### END LIBTOOL TAG CONFIG: CXX
 
21869
_LT_EOF
 
21870
 
 
21871
 ;;
 
21872
    "../test/test3/cube_self_test.c":F) \
 
21873
 
 
21874
                 chmod +x ../test/test3/cube_self_test.c
 
21875
                 ;;
 
21876
    "../test/test3/cube_self_test3_4.c":F) \
 
21877
 
 
21878
                 chmod +x ../test/test3/cube_self_test3_4.c
 
21879
                 ;;
 
21880
    "../test/test3/run_test_3.sh":F) \
 
21881
 
 
21882
                 chmod +x ../test/test3/run_test_3.sh
 
21883
                 ;;
 
21884
 
 
21885
  esac
 
21886
done # for ac_tag
 
21887
 
 
21888
 
 
21889
as_fn_exit 0
 
21890
_ACEOF
 
21891
ac_clean_files=$ac_clean_files_save
 
21892
 
 
21893
test $ac_write_fail = 0 ||
 
21894
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
21895
 
 
21896
 
 
21897
# configure is writing to config.log, and then calls config.status.
 
21898
# config.status does its own redirection, appending to config.log.
 
21899
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21900
# by configure, so config.status won't be able to write to it; its
 
21901
# output is simply discarded.  So we exec the FD to /dev/null,
 
21902
# effectively closing config.log, so it can be properly (re)opened and
 
21903
# appended to by config.status.  When coming back to configure, we
 
21904
# need to make the FD available again.
 
21905
if test "$no_create" != yes; then
 
21906
  ac_cs_success=:
 
21907
  ac_config_status_args=
 
21908
  test "$silent" = yes &&
 
21909
    ac_config_status_args="$ac_config_status_args --quiet"
 
21910
  exec 5>/dev/null
 
21911
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21912
  exec 5>>config.log
 
21913
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21914
  # would make configure fail if this is the last instruction.
 
21915
  $ac_cs_success || as_fn_exit 1
 
21916
fi
 
21917
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
21918
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
21919
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
21920
fi
 
21921