~fginther/ubuntu/precise/evemu/transitional-1051044

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Francis Ginther
  • Date: 2012-08-27 14:05:48 UTC
  • Revision ID: package-import@ubuntu.com-20120827140548-fg30ophqsvt0g947
Tags: upstream-1.0.9.1
ImportĀ upstreamĀ versionĀ 1.0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.68 for Kernel device emulation 1.0.9.1.
 
4
#
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
8
# 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
if test "x$CONFIG_SHELL" = x; then
 
138
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
139
  emulate sh
 
140
  NULLCMD=:
 
141
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
142
  # is contrary to our usage.  Disable this feature.
 
143
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
144
  setopt NO_GLOB_SUBST
 
145
else
 
146
  case \`(set -o) 2>/dev/null\` in #(
 
147
  *posix*) :
 
148
    set -o posix ;; #(
 
149
  *) :
 
150
     ;;
 
151
esac
 
152
fi
 
153
"
 
154
  as_required="as_fn_return () { (exit \$1); }
 
155
as_fn_success () { as_fn_return 0; }
 
156
as_fn_failure () { as_fn_return 1; }
 
157
as_fn_ret_success () { return 0; }
 
158
as_fn_ret_failure () { return 1; }
 
159
 
 
160
exitcode=0
 
161
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
162
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
163
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
164
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
166
 
 
167
else
 
168
  exitcode=1; echo positional parameters were not saved.
 
169
fi
 
170
test x\$exitcode = x0 || exit 1"
 
171
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
175
 
 
176
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
177
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
178
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
179
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
180
    PATH=/empty FPATH=/empty; export PATH FPATH
 
181
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
182
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
183
test \$(( 1 + 1 )) = 2 || exit 1"
 
184
  if (eval "$as_required") 2>/dev/null; then :
 
185
  as_have_required=yes
 
186
else
 
187
  as_have_required=no
 
188
fi
 
189
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
190
 
 
191
else
 
192
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
193
as_found=false
 
194
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
195
do
 
196
  IFS=$as_save_IFS
 
197
  test -z "$as_dir" && as_dir=.
 
198
  as_found=:
 
199
  case $as_dir in #(
 
200
         /*)
 
201
           for as_base in sh bash ksh sh5; do
 
202
             # Try only shells that exist, to save several forks.
 
203
             as_shell=$as_dir/$as_base
 
204
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
205
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
206
  CONFIG_SHELL=$as_shell as_have_required=yes
 
207
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  break 2
 
209
fi
 
210
fi
 
211
           done;;
 
212
       esac
 
213
  as_found=false
 
214
done
 
215
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
216
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
217
  CONFIG_SHELL=$SHELL as_have_required=yes
 
218
fi; }
 
219
IFS=$as_save_IFS
 
220
 
 
221
 
 
222
      if test "x$CONFIG_SHELL" != x; then :
 
223
  # We cannot yet assume a decent shell, so we have to provide a
 
224
        # neutralization value for shells without unset; and this also
 
225
        # works around shells that cannot unset nonexistent variables.
 
226
        # Preserve -v and -x to the replacement shell.
 
227
        BASH_ENV=/dev/null
 
228
        ENV=/dev/null
 
229
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
230
        export CONFIG_SHELL
 
231
        case $- in # ((((
 
232
          *v*x* | *x*v* ) as_opts=-vx ;;
 
233
          *v* ) as_opts=-v ;;
 
234
          *x* ) as_opts=-x ;;
 
235
          * ) as_opts= ;;
 
236
        esac
 
237
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
238
fi
 
239
 
 
240
    if test x$as_have_required = xno; then :
 
241
  $as_echo "$0: This script requires a shell more modern than all"
 
242
  $as_echo "$0: the shells that I found on your system."
 
243
  if test x${ZSH_VERSION+set} = xset ; then
 
244
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
245
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
246
  else
 
247
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
248
$0: including any error possibly output before this
 
249
$0: message. Then install a modern shell, or manually run
 
250
$0: the script under such a shell if you do have one."
 
251
  fi
 
252
  exit 1
 
253
fi
 
254
fi
 
255
fi
 
256
SHELL=${CONFIG_SHELL-/bin/sh}
 
257
export SHELL
 
258
# Unset more variables known to interfere with behavior of common tools.
 
259
CLICOLOR_FORCE= GREP_OPTIONS=
 
260
unset CLICOLOR_FORCE GREP_OPTIONS
 
261
 
 
262
## --------------------- ##
 
263
## M4sh Shell Functions. ##
 
264
## --------------------- ##
 
265
# as_fn_unset VAR
 
266
# ---------------
 
267
# Portably unset VAR.
 
268
as_fn_unset ()
 
269
{
 
270
  { eval $1=; unset $1;}
 
271
}
 
272
as_unset=as_fn_unset
 
273
 
 
274
# as_fn_set_status STATUS
 
275
# -----------------------
 
276
# Set $? to STATUS, without forking.
 
277
as_fn_set_status ()
 
278
{
 
279
  return $1
 
280
} # as_fn_set_status
 
281
 
 
282
# as_fn_exit STATUS
 
283
# -----------------
 
284
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
285
as_fn_exit ()
 
286
{
 
287
  set +e
 
288
  as_fn_set_status $1
 
289
  exit $1
 
290
} # as_fn_exit
 
291
 
 
292
# as_fn_mkdir_p
 
293
# -------------
 
294
# Create "$as_dir" as a directory, including parents if necessary.
 
295
as_fn_mkdir_p ()
 
296
{
 
297
 
 
298
  case $as_dir in #(
 
299
  -*) as_dir=./$as_dir;;
 
300
  esac
 
301
  test -d "$as_dir" || eval $as_mkdir_p || {
 
302
    as_dirs=
 
303
    while :; do
 
304
      case $as_dir in #(
 
305
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
306
      *) as_qdir=$as_dir;;
 
307
      esac
 
308
      as_dirs="'$as_qdir' $as_dirs"
 
309
      as_dir=`$as_dirname -- "$as_dir" ||
 
310
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
311
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
312
         X"$as_dir" : 'X\(//\)$' \| \
 
313
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
314
$as_echo X"$as_dir" |
 
315
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
316
            s//\1/
 
317
            q
 
318
          }
 
319
          /^X\(\/\/\)[^/].*/{
 
320
            s//\1/
 
321
            q
 
322
          }
 
323
          /^X\(\/\/\)$/{
 
324
            s//\1/
 
325
            q
 
326
          }
 
327
          /^X\(\/\).*/{
 
328
            s//\1/
 
329
            q
 
330
          }
 
331
          s/.*/./; q'`
 
332
      test -d "$as_dir" && break
 
333
    done
 
334
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
335
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
336
 
 
337
 
 
338
} # as_fn_mkdir_p
 
339
# as_fn_append VAR VALUE
 
340
# ----------------------
 
341
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
342
# advantage of any shell optimizations that allow amortized linear growth over
 
343
# repeated appends, instead of the typical quadratic growth present in naive
 
344
# implementations.
 
345
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
346
  eval 'as_fn_append ()
 
347
  {
 
348
    eval $1+=\$2
 
349
  }'
 
350
else
 
351
  as_fn_append ()
 
352
  {
 
353
    eval $1=\$$1\$2
 
354
  }
 
355
fi # as_fn_append
 
356
 
 
357
# as_fn_arith ARG...
 
358
# ------------------
 
359
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
360
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
361
# must be portable across $(()) and expr.
 
362
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
363
  eval 'as_fn_arith ()
 
364
  {
 
365
    as_val=$(( $* ))
 
366
  }'
 
367
else
 
368
  as_fn_arith ()
 
369
  {
 
370
    as_val=`expr "$@" || test $? -eq 1`
 
371
  }
 
372
fi # as_fn_arith
 
373
 
 
374
 
 
375
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
376
# ----------------------------------------
 
377
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
378
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
379
# script with STATUS, using 1 if that was 0.
 
380
as_fn_error ()
 
381
{
 
382
  as_status=$1; test $as_status -eq 0 && as_status=1
 
383
  if test "$4"; then
 
384
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
385
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
386
  fi
 
387
  $as_echo "$as_me: error: $2" >&2
 
388
  as_fn_exit $as_status
 
389
} # as_fn_error
 
390
 
 
391
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
392
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
393
  as_expr=expr
 
394
else
 
395
  as_expr=false
 
396
fi
 
397
 
 
398
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
399
  as_basename=basename
 
400
else
 
401
  as_basename=false
 
402
fi
 
403
 
 
404
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
405
  as_dirname=dirname
 
406
else
 
407
  as_dirname=false
 
408
fi
 
409
 
 
410
as_me=`$as_basename -- "$0" ||
 
411
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
412
         X"$0" : 'X\(//\)$' \| \
 
413
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
414
$as_echo X/"$0" |
 
415
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
416
            s//\1/
 
417
            q
 
418
          }
 
419
          /^X\/\(\/\/\)$/{
 
420
            s//\1/
 
421
            q
 
422
          }
 
423
          /^X\/\(\/\).*/{
 
424
            s//\1/
 
425
            q
 
426
          }
 
427
          s/.*/./; q'`
 
428
 
 
429
# Avoid depending upon Character Ranges.
 
430
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
431
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
432
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
433
as_cr_digits='0123456789'
 
434
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
435
 
 
436
 
 
437
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
438
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
439
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
440
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
441
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
442
  sed -n '
 
443
    p
 
444
    /[$]LINENO/=
 
445
  ' <$as_myself |
 
446
    sed '
 
447
      s/[$]LINENO.*/&-/
 
448
      t lineno
 
449
      b
 
450
      :lineno
 
451
      N
 
452
      :loop
 
453
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
454
      t loop
 
455
      s/-\n.*//
 
456
    ' >$as_me.lineno &&
 
457
  chmod +x "$as_me.lineno" ||
 
458
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
459
 
 
460
  # Don't try to exec as it changes $[0], causing all sort of problems
 
461
  # (the dirname of $[0] is not the place where we might find the
 
462
  # original and so on.  Autoconf is especially sensitive to this).
 
463
  . "./$as_me.lineno"
 
464
  # Exit status is that of the last command.
 
465
  exit
 
466
}
 
467
 
 
468
ECHO_C= ECHO_N= ECHO_T=
 
469
case `echo -n x` in #(((((
 
470
-n*)
 
471
  case `echo 'xy\c'` in
 
472
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
473
  xy)  ECHO_C='\c';;
 
474
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
475
       ECHO_T=' ';;
 
476
  esac;;
 
477
*)
 
478
  ECHO_N='-n';;
 
479
esac
 
480
 
 
481
rm -f conf$$ conf$$.exe conf$$.file
 
482
if test -d conf$$.dir; then
 
483
  rm -f conf$$.dir/conf$$.file
 
484
else
 
485
  rm -f conf$$.dir
 
486
  mkdir conf$$.dir 2>/dev/null
 
487
fi
 
488
if (echo >conf$$.file) 2>/dev/null; then
 
489
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
490
    as_ln_s='ln -s'
 
491
    # ... but there are two gotchas:
 
492
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
493
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
494
    # In both cases, we have to default to `cp -p'.
 
495
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
496
      as_ln_s='cp -p'
 
497
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
498
    as_ln_s=ln
 
499
  else
 
500
    as_ln_s='cp -p'
 
501
  fi
 
502
else
 
503
  as_ln_s='cp -p'
 
504
fi
 
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
506
rmdir conf$$.dir 2>/dev/null
 
507
 
 
508
if mkdir -p . 2>/dev/null; then
 
509
  as_mkdir_p='mkdir -p "$as_dir"'
 
510
else
 
511
  test -d ./-p && rmdir ./-p
 
512
  as_mkdir_p=false
 
513
fi
 
514
 
 
515
if test -x / >/dev/null 2>&1; then
 
516
  as_test_x='test -x'
 
517
else
 
518
  if ls -dL / >/dev/null 2>&1; then
 
519
    as_ls_L_option=L
 
520
  else
 
521
    as_ls_L_option=
 
522
  fi
 
523
  as_test_x='
 
524
    eval sh -c '\''
 
525
      if test -d "$1"; then
 
526
        test -d "$1/.";
 
527
      else
 
528
        case $1 in #(
 
529
        -*)set "./$1";;
 
530
        esac;
 
531
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
532
        ???[sx]*):;;*)false;;esac;fi
 
533
    '\'' sh
 
534
  '
 
535
fi
 
536
as_executable_p=$as_test_x
 
537
 
 
538
# Sed expression to map a string onto a valid CPP name.
 
539
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
540
 
 
541
# Sed expression to map a string onto a valid variable name.
 
542
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
543
 
 
544
SHELL=${CONFIG_SHELL-/bin/sh}
 
545
 
 
546
 
 
547
test -n "$DJDIR" || exec 7<&0 </dev/null
 
548
exec 6>&1
 
549
 
 
550
# Name of the host.
 
551
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
552
# so uname gets run too.
 
553
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
554
 
 
555
#
 
556
# Initializations.
 
557
#
 
558
ac_default_prefix=/usr/local
 
559
ac_clean_files=
 
560
ac_config_libobj_dir=.
 
561
LIBOBJS=
 
562
cross_compiling=no
 
563
subdirs=
 
564
MFLAGS=
 
565
MAKEFLAGS=
 
566
 
 
567
# Identity of this package.
 
568
PACKAGE_NAME='Kernel device emulation'
 
569
PACKAGE_TARNAME='evemu'
 
570
PACKAGE_VERSION='1.0.9.1'
 
571
PACKAGE_STRING='Kernel device emulation 1.0.9.1'
 
572
PACKAGE_BUGREPORT=''
 
573
PACKAGE_URL=''
 
574
 
 
575
ac_unique_file="Makefile.am"
 
576
# Factoring default headers for most tests.
 
577
ac_includes_default="\
 
578
#include <stdio.h>
 
579
#ifdef HAVE_SYS_TYPES_H
 
580
# include <sys/types.h>
 
581
#endif
 
582
#ifdef HAVE_SYS_STAT_H
 
583
# include <sys/stat.h>
 
584
#endif
 
585
#ifdef STDC_HEADERS
 
586
# include <stdlib.h>
 
587
# include <stddef.h>
 
588
#else
 
589
# ifdef HAVE_STDLIB_H
 
590
#  include <stdlib.h>
 
591
# endif
 
592
#endif
 
593
#ifdef HAVE_STRING_H
 
594
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
595
#  include <memory.h>
 
596
# endif
 
597
# include <string.h>
 
598
#endif
 
599
#ifdef HAVE_STRINGS_H
 
600
# include <strings.h>
 
601
#endif
 
602
#ifdef HAVE_INTTYPES_H
 
603
# include <inttypes.h>
 
604
#endif
 
605
#ifdef HAVE_STDINT_H
 
606
# include <stdint.h>
 
607
#endif
 
608
#ifdef HAVE_UNISTD_H
 
609
# include <unistd.h>
 
610
#endif"
 
611
 
 
612
ac_subst_vars='am__EXEEXT_FALSE
 
613
am__EXEEXT_TRUE
 
614
LTLIBOBJS
 
615
LIBOBJS
 
616
AM_CFLAGS
 
617
HAVE_DOCTOOLS_FALSE
 
618
HAVE_DOCTOOLS_TRUE
 
619
ASCIIDOC
 
620
XMLTO
 
621
pkgpyexecdir
 
622
pyexecdir
 
623
pkgpythondir
 
624
pythondir
 
625
PYTHON_PLATFORM
 
626
PYTHON_EXEC_PREFIX
 
627
PYTHON_PREFIX
 
628
PYTHON_VERSION
 
629
PYTHON
 
630
CXXCPP
 
631
am__fastdepCXX_FALSE
 
632
am__fastdepCXX_TRUE
 
633
CXXDEPMODE
 
634
ac_ct_CXX
 
635
CXXFLAGS
 
636
CXX
 
637
CPP
 
638
OTOOL64
 
639
OTOOL
 
640
LIPO
 
641
NMEDIT
 
642
DSYMUTIL
 
643
MANIFEST_TOOL
 
644
RANLIB
 
645
ac_ct_AR
 
646
AR
 
647
DLLTOOL
 
648
OBJDUMP
 
649
LN_S
 
650
NM
 
651
ac_ct_DUMPBIN
 
652
DUMPBIN
 
653
LD
 
654
FGREP
 
655
EGREP
 
656
GREP
 
657
SED
 
658
am__fastdepCC_FALSE
 
659
am__fastdepCC_TRUE
 
660
CCDEPMODE
 
661
am__nodep
 
662
AMDEPBACKSLASH
 
663
AMDEP_FALSE
 
664
AMDEP_TRUE
 
665
am__quote
 
666
am__include
 
667
DEPDIR
 
668
OBJEXT
 
669
EXEEXT
 
670
ac_ct_CC
 
671
CPPFLAGS
 
672
LDFLAGS
 
673
CFLAGS
 
674
CC
 
675
host_os
 
676
host_vendor
 
677
host_cpu
 
678
host
 
679
build_os
 
680
build_vendor
 
681
build_cpu
 
682
build
 
683
LIBTOOL
 
684
LIB_VERSION
 
685
MAINT
 
686
MAINTAINER_MODE_FALSE
 
687
MAINTAINER_MODE_TRUE
 
688
AM_BACKSLASH
 
689
AM_DEFAULT_VERBOSITY
 
690
AM_DEFAULT_V
 
691
AM_V
 
692
am__untar
 
693
am__tar
 
694
AMTAR
 
695
am__leading_dot
 
696
SET_MAKE
 
697
AWK
 
698
mkdir_p
 
699
MKDIR_P
 
700
INSTALL_STRIP_PROGRAM
 
701
STRIP
 
702
install_sh
 
703
MAKEINFO
 
704
AUTOHEADER
 
705
AUTOMAKE
 
706
AUTOCONF
 
707
ACLOCAL
 
708
VERSION
 
709
PACKAGE
 
710
CYGPATH_W
 
711
am__isrc
 
712
INSTALL_DATA
 
713
INSTALL_SCRIPT
 
714
INSTALL_PROGRAM
 
715
target_alias
 
716
host_alias
 
717
build_alias
 
718
LIBS
 
719
ECHO_T
 
720
ECHO_N
 
721
ECHO_C
 
722
DEFS
 
723
mandir
 
724
localedir
 
725
libdir
 
726
psdir
 
727
pdfdir
 
728
dvidir
 
729
htmldir
 
730
infodir
 
731
docdir
 
732
oldincludedir
 
733
includedir
 
734
localstatedir
 
735
sharedstatedir
 
736
sysconfdir
 
737
datadir
 
738
datarootdir
 
739
libexecdir
 
740
sbindir
 
741
bindir
 
742
program_transform_name
 
743
prefix
 
744
exec_prefix
 
745
PACKAGE_URL
 
746
PACKAGE_BUGREPORT
 
747
PACKAGE_STRING
 
748
PACKAGE_VERSION
 
749
PACKAGE_TARNAME
 
750
PACKAGE_NAME
 
751
PATH_SEPARATOR
 
752
SHELL'
 
753
ac_subst_files=''
 
754
ac_user_opts='
 
755
enable_option_checking
 
756
enable_silent_rules
 
757
enable_maintainer_mode
 
758
enable_shared
 
759
enable_static
 
760
with_pic
 
761
enable_fast_install
 
762
enable_dependency_tracking
 
763
with_gnu_ld
 
764
with_sysroot
 
765
enable_libtool_lock
 
766
'
 
767
      ac_precious_vars='build_alias
 
768
host_alias
 
769
target_alias
 
770
CC
 
771
CFLAGS
 
772
LDFLAGS
 
773
LIBS
 
774
CPPFLAGS
 
775
CPP
 
776
CXX
 
777
CXXFLAGS
 
778
CCC
 
779
CXXCPP
 
780
PYTHON
 
781
XMLTO
 
782
ASCIIDOC'
 
783
 
 
784
 
 
785
# Initialize some variables set by options.
 
786
ac_init_help=
 
787
ac_init_version=false
 
788
ac_unrecognized_opts=
 
789
ac_unrecognized_sep=
 
790
# The variables have the same names as the options, with
 
791
# dashes changed to underlines.
 
792
cache_file=/dev/null
 
793
exec_prefix=NONE
 
794
no_create=
 
795
no_recursion=
 
796
prefix=NONE
 
797
program_prefix=NONE
 
798
program_suffix=NONE
 
799
program_transform_name=s,x,x,
 
800
silent=
 
801
site=
 
802
srcdir=
 
803
verbose=
 
804
x_includes=NONE
 
805
x_libraries=NONE
 
806
 
 
807
# Installation directory options.
 
808
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
809
# and all the variables that are supposed to be based on exec_prefix
 
810
# by default will actually change.
 
811
# Use braces instead of parens because sh, perl, etc. also accept them.
 
812
# (The list follows the same order as the GNU Coding Standards.)
 
813
bindir='${exec_prefix}/bin'
 
814
sbindir='${exec_prefix}/sbin'
 
815
libexecdir='${exec_prefix}/libexec'
 
816
datarootdir='${prefix}/share'
 
817
datadir='${datarootdir}'
 
818
sysconfdir='${prefix}/etc'
 
819
sharedstatedir='${prefix}/com'
 
820
localstatedir='${prefix}/var'
 
821
includedir='${prefix}/include'
 
822
oldincludedir='/usr/include'
 
823
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
824
infodir='${datarootdir}/info'
 
825
htmldir='${docdir}'
 
826
dvidir='${docdir}'
 
827
pdfdir='${docdir}'
 
828
psdir='${docdir}'
 
829
libdir='${exec_prefix}/lib'
 
830
localedir='${datarootdir}/locale'
 
831
mandir='${datarootdir}/man'
 
832
 
 
833
ac_prev=
 
834
ac_dashdash=
 
835
for ac_option
 
836
do
 
837
  # If the previous option needs an argument, assign it.
 
838
  if test -n "$ac_prev"; then
 
839
    eval $ac_prev=\$ac_option
 
840
    ac_prev=
 
841
    continue
 
842
  fi
 
843
 
 
844
  case $ac_option in
 
845
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
846
  *=)   ac_optarg= ;;
 
847
  *)    ac_optarg=yes ;;
 
848
  esac
 
849
 
 
850
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
851
 
 
852
  case $ac_dashdash$ac_option in
 
853
  --)
 
854
    ac_dashdash=yes ;;
 
855
 
 
856
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
857
    ac_prev=bindir ;;
 
858
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
859
    bindir=$ac_optarg ;;
 
860
 
 
861
  -build | --build | --buil | --bui | --bu)
 
862
    ac_prev=build_alias ;;
 
863
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
864
    build_alias=$ac_optarg ;;
 
865
 
 
866
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
867
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
868
    ac_prev=cache_file ;;
 
869
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
870
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
871
    cache_file=$ac_optarg ;;
 
872
 
 
873
  --config-cache | -C)
 
874
    cache_file=config.cache ;;
 
875
 
 
876
  -datadir | --datadir | --datadi | --datad)
 
877
    ac_prev=datadir ;;
 
878
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
879
    datadir=$ac_optarg ;;
 
880
 
 
881
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
882
  | --dataroo | --dataro | --datar)
 
883
    ac_prev=datarootdir ;;
 
884
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
885
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
886
    datarootdir=$ac_optarg ;;
 
887
 
 
888
  -disable-* | --disable-*)
 
889
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
890
    # Reject names that are not valid shell variable names.
 
891
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
892
      as_fn_error $? "invalid feature name: $ac_useropt"
 
893
    ac_useropt_orig=$ac_useropt
 
894
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
895
    case $ac_user_opts in
 
896
      *"
 
897
"enable_$ac_useropt"
 
898
"*) ;;
 
899
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
900
         ac_unrecognized_sep=', ';;
 
901
    esac
 
902
    eval enable_$ac_useropt=no ;;
 
903
 
 
904
  -docdir | --docdir | --docdi | --doc | --do)
 
905
    ac_prev=docdir ;;
 
906
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
907
    docdir=$ac_optarg ;;
 
908
 
 
909
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
910
    ac_prev=dvidir ;;
 
911
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
912
    dvidir=$ac_optarg ;;
 
913
 
 
914
  -enable-* | --enable-*)
 
915
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
916
    # Reject names that are not valid shell variable names.
 
917
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
918
      as_fn_error $? "invalid feature name: $ac_useropt"
 
919
    ac_useropt_orig=$ac_useropt
 
920
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
921
    case $ac_user_opts in
 
922
      *"
 
923
"enable_$ac_useropt"
 
924
"*) ;;
 
925
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
926
         ac_unrecognized_sep=', ';;
 
927
    esac
 
928
    eval enable_$ac_useropt=\$ac_optarg ;;
 
929
 
 
930
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
931
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
932
  | --exec | --exe | --ex)
 
933
    ac_prev=exec_prefix ;;
 
934
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
935
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
936
  | --exec=* | --exe=* | --ex=*)
 
937
    exec_prefix=$ac_optarg ;;
 
938
 
 
939
  -gas | --gas | --ga | --g)
 
940
    # Obsolete; use --with-gas.
 
941
    with_gas=yes ;;
 
942
 
 
943
  -help | --help | --hel | --he | -h)
 
944
    ac_init_help=long ;;
 
945
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
946
    ac_init_help=recursive ;;
 
947
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
948
    ac_init_help=short ;;
 
949
 
 
950
  -host | --host | --hos | --ho)
 
951
    ac_prev=host_alias ;;
 
952
  -host=* | --host=* | --hos=* | --ho=*)
 
953
    host_alias=$ac_optarg ;;
 
954
 
 
955
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
956
    ac_prev=htmldir ;;
 
957
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
958
  | --ht=*)
 
959
    htmldir=$ac_optarg ;;
 
960
 
 
961
  -includedir | --includedir | --includedi | --included | --include \
 
962
  | --includ | --inclu | --incl | --inc)
 
963
    ac_prev=includedir ;;
 
964
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
965
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
966
    includedir=$ac_optarg ;;
 
967
 
 
968
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
969
    ac_prev=infodir ;;
 
970
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
971
    infodir=$ac_optarg ;;
 
972
 
 
973
  -libdir | --libdir | --libdi | --libd)
 
974
    ac_prev=libdir ;;
 
975
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
976
    libdir=$ac_optarg ;;
 
977
 
 
978
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
979
  | --libexe | --libex | --libe)
 
980
    ac_prev=libexecdir ;;
 
981
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
982
  | --libexe=* | --libex=* | --libe=*)
 
983
    libexecdir=$ac_optarg ;;
 
984
 
 
985
  -localedir | --localedir | --localedi | --localed | --locale)
 
986
    ac_prev=localedir ;;
 
987
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
988
    localedir=$ac_optarg ;;
 
989
 
 
990
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
991
  | --localstate | --localstat | --localsta | --localst | --locals)
 
992
    ac_prev=localstatedir ;;
 
993
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
994
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
995
    localstatedir=$ac_optarg ;;
 
996
 
 
997
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
998
    ac_prev=mandir ;;
 
999
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1000
    mandir=$ac_optarg ;;
 
1001
 
 
1002
  -nfp | --nfp | --nf)
 
1003
    # Obsolete; use --without-fp.
 
1004
    with_fp=no ;;
 
1005
 
 
1006
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1007
  | --no-cr | --no-c | -n)
 
1008
    no_create=yes ;;
 
1009
 
 
1010
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1011
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1012
    no_recursion=yes ;;
 
1013
 
 
1014
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1015
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1016
  | --oldin | --oldi | --old | --ol | --o)
 
1017
    ac_prev=oldincludedir ;;
 
1018
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1019
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1020
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1021
    oldincludedir=$ac_optarg ;;
 
1022
 
 
1023
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1024
    ac_prev=prefix ;;
 
1025
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1026
    prefix=$ac_optarg ;;
 
1027
 
 
1028
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1029
  | --program-pre | --program-pr | --program-p)
 
1030
    ac_prev=program_prefix ;;
 
1031
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1032
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1033
    program_prefix=$ac_optarg ;;
 
1034
 
 
1035
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1036
  | --program-suf | --program-su | --program-s)
 
1037
    ac_prev=program_suffix ;;
 
1038
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1039
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1040
    program_suffix=$ac_optarg ;;
 
1041
 
 
1042
  -program-transform-name | --program-transform-name \
 
1043
  | --program-transform-nam | --program-transform-na \
 
1044
  | --program-transform-n | --program-transform- \
 
1045
  | --program-transform | --program-transfor \
 
1046
  | --program-transfo | --program-transf \
 
1047
  | --program-trans | --program-tran \
 
1048
  | --progr-tra | --program-tr | --program-t)
 
1049
    ac_prev=program_transform_name ;;
 
1050
  -program-transform-name=* | --program-transform-name=* \
 
1051
  | --program-transform-nam=* | --program-transform-na=* \
 
1052
  | --program-transform-n=* | --program-transform-=* \
 
1053
  | --program-transform=* | --program-transfor=* \
 
1054
  | --program-transfo=* | --program-transf=* \
 
1055
  | --program-trans=* | --program-tran=* \
 
1056
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1057
    program_transform_name=$ac_optarg ;;
 
1058
 
 
1059
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1060
    ac_prev=pdfdir ;;
 
1061
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1062
    pdfdir=$ac_optarg ;;
 
1063
 
 
1064
  -psdir | --psdir | --psdi | --psd | --ps)
 
1065
    ac_prev=psdir ;;
 
1066
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1067
    psdir=$ac_optarg ;;
 
1068
 
 
1069
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1070
  | -silent | --silent | --silen | --sile | --sil)
 
1071
    silent=yes ;;
 
1072
 
 
1073
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1074
    ac_prev=sbindir ;;
 
1075
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1076
  | --sbi=* | --sb=*)
 
1077
    sbindir=$ac_optarg ;;
 
1078
 
 
1079
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1080
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1081
  | --sharedst | --shareds | --shared | --share | --shar \
 
1082
  | --sha | --sh)
 
1083
    ac_prev=sharedstatedir ;;
 
1084
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1085
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1086
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1087
  | --sha=* | --sh=*)
 
1088
    sharedstatedir=$ac_optarg ;;
 
1089
 
 
1090
  -site | --site | --sit)
 
1091
    ac_prev=site ;;
 
1092
  -site=* | --site=* | --sit=*)
 
1093
    site=$ac_optarg ;;
 
1094
 
 
1095
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1096
    ac_prev=srcdir ;;
 
1097
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1098
    srcdir=$ac_optarg ;;
 
1099
 
 
1100
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1101
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1102
    ac_prev=sysconfdir ;;
 
1103
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1104
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1105
    sysconfdir=$ac_optarg ;;
 
1106
 
 
1107
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1108
    ac_prev=target_alias ;;
 
1109
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1110
    target_alias=$ac_optarg ;;
 
1111
 
 
1112
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1113
    verbose=yes ;;
 
1114
 
 
1115
  -version | --version | --versio | --versi | --vers | -V)
 
1116
    ac_init_version=: ;;
 
1117
 
 
1118
  -with-* | --with-*)
 
1119
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1120
    # Reject names that are not valid shell variable names.
 
1121
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1122
      as_fn_error $? "invalid package name: $ac_useropt"
 
1123
    ac_useropt_orig=$ac_useropt
 
1124
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1125
    case $ac_user_opts in
 
1126
      *"
 
1127
"with_$ac_useropt"
 
1128
"*) ;;
 
1129
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1130
         ac_unrecognized_sep=', ';;
 
1131
    esac
 
1132
    eval with_$ac_useropt=\$ac_optarg ;;
 
1133
 
 
1134
  -without-* | --without-*)
 
1135
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1136
    # Reject names that are not valid shell variable names.
 
1137
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1138
      as_fn_error $? "invalid package name: $ac_useropt"
 
1139
    ac_useropt_orig=$ac_useropt
 
1140
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1141
    case $ac_user_opts in
 
1142
      *"
 
1143
"with_$ac_useropt"
 
1144
"*) ;;
 
1145
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1146
         ac_unrecognized_sep=', ';;
 
1147
    esac
 
1148
    eval with_$ac_useropt=no ;;
 
1149
 
 
1150
  --x)
 
1151
    # Obsolete; use --with-x.
 
1152
    with_x=yes ;;
 
1153
 
 
1154
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1155
  | --x-incl | --x-inc | --x-in | --x-i)
 
1156
    ac_prev=x_includes ;;
 
1157
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1158
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1159
    x_includes=$ac_optarg ;;
 
1160
 
 
1161
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1162
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1163
    ac_prev=x_libraries ;;
 
1164
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1165
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1166
    x_libraries=$ac_optarg ;;
 
1167
 
 
1168
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1169
Try \`$0 --help' for more information"
 
1170
    ;;
 
1171
 
 
1172
  *=*)
 
1173
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1174
    # Reject names that are not valid shell variable names.
 
1175
    case $ac_envvar in #(
 
1176
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1177
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1178
    esac
 
1179
    eval $ac_envvar=\$ac_optarg
 
1180
    export $ac_envvar ;;
 
1181
 
 
1182
  *)
 
1183
    # FIXME: should be removed in autoconf 3.0.
 
1184
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1185
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1186
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1187
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1188
    ;;
 
1189
 
 
1190
  esac
 
1191
done
 
1192
 
 
1193
if test -n "$ac_prev"; then
 
1194
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1195
  as_fn_error $? "missing argument to $ac_option"
 
1196
fi
 
1197
 
 
1198
if test -n "$ac_unrecognized_opts"; then
 
1199
  case $enable_option_checking in
 
1200
    no) ;;
 
1201
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1202
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1203
  esac
 
1204
fi
 
1205
 
 
1206
# Check all directory arguments for consistency.
 
1207
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1208
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1209
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1210
                libdir localedir mandir
 
1211
do
 
1212
  eval ac_val=\$$ac_var
 
1213
  # Remove trailing slashes.
 
1214
  case $ac_val in
 
1215
    */ )
 
1216
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1217
      eval $ac_var=\$ac_val;;
 
1218
  esac
 
1219
  # Be sure to have absolute directory names.
 
1220
  case $ac_val in
 
1221
    [\\/$]* | ?:[\\/]* )  continue;;
 
1222
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1223
  esac
 
1224
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1225
done
 
1226
 
 
1227
# There might be people who depend on the old broken behavior: `$host'
 
1228
# used to hold the argument of --host etc.
 
1229
# FIXME: To remove some day.
 
1230
build=$build_alias
 
1231
host=$host_alias
 
1232
target=$target_alias
 
1233
 
 
1234
# FIXME: To remove some day.
 
1235
if test "x$host_alias" != x; then
 
1236
  if test "x$build_alias" = x; then
 
1237
    cross_compiling=maybe
 
1238
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1239
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1240
  elif test "x$build_alias" != "x$host_alias"; then
 
1241
    cross_compiling=yes
 
1242
  fi
 
1243
fi
 
1244
 
 
1245
ac_tool_prefix=
 
1246
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1247
 
 
1248
test "$silent" = yes && exec 6>/dev/null
 
1249
 
 
1250
 
 
1251
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1252
ac_ls_di=`ls -di .` &&
 
1253
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1254
  as_fn_error $? "working directory cannot be determined"
 
1255
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1256
  as_fn_error $? "pwd does not report name of working directory"
 
1257
 
 
1258
 
 
1259
# Find the source files, if location was not specified.
 
1260
if test -z "$srcdir"; then
 
1261
  ac_srcdir_defaulted=yes
 
1262
  # Try the directory containing this script, then the parent directory.
 
1263
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1264
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1265
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1266
         X"$as_myself" : 'X\(//\)$' \| \
 
1267
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1268
$as_echo X"$as_myself" |
 
1269
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1270
            s//\1/
 
1271
            q
 
1272
          }
 
1273
          /^X\(\/\/\)[^/].*/{
 
1274
            s//\1/
 
1275
            q
 
1276
          }
 
1277
          /^X\(\/\/\)$/{
 
1278
            s//\1/
 
1279
            q
 
1280
          }
 
1281
          /^X\(\/\).*/{
 
1282
            s//\1/
 
1283
            q
 
1284
          }
 
1285
          s/.*/./; q'`
 
1286
  srcdir=$ac_confdir
 
1287
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1288
    srcdir=..
 
1289
  fi
 
1290
else
 
1291
  ac_srcdir_defaulted=no
 
1292
fi
 
1293
if test ! -r "$srcdir/$ac_unique_file"; then
 
1294
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1295
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1296
fi
 
1297
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1298
ac_abs_confdir=`(
 
1299
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1300
        pwd)`
 
1301
# When building in place, set srcdir=.
 
1302
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1303
  srcdir=.
 
1304
fi
 
1305
# Remove unnecessary trailing slashes from srcdir.
 
1306
# Double slashes in file names in object file debugging info
 
1307
# mess up M-x gdb in Emacs.
 
1308
case $srcdir in
 
1309
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1310
esac
 
1311
for ac_var in $ac_precious_vars; do
 
1312
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1313
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1314
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1315
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1316
done
 
1317
 
 
1318
#
 
1319
# Report the --help message.
 
1320
#
 
1321
if test "$ac_init_help" = "long"; then
 
1322
  # Omit some internal or obsolete options to make the list less imposing.
 
1323
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1324
  cat <<_ACEOF
 
1325
\`configure' configures Kernel device emulation 1.0.9.1 to adapt to many kinds of systems.
 
1326
 
 
1327
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1328
 
 
1329
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1330
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1331
 
 
1332
Defaults for the options are specified in brackets.
 
1333
 
 
1334
Configuration:
 
1335
  -h, --help              display this help and exit
 
1336
      --help=short        display options specific to this package
 
1337
      --help=recursive    display the short help of all the included packages
 
1338
  -V, --version           display version information and exit
 
1339
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1340
      --cache-file=FILE   cache test results in FILE [disabled]
 
1341
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1342
  -n, --no-create         do not create output files
 
1343
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1344
 
 
1345
Installation directories:
 
1346
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1347
                          [$ac_default_prefix]
 
1348
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1349
                          [PREFIX]
 
1350
 
 
1351
By default, \`make install' will install all the files in
 
1352
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1353
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1354
for instance \`--prefix=\$HOME'.
 
1355
 
 
1356
For better control, use the options below.
 
1357
 
 
1358
Fine tuning of the installation directories:
 
1359
  --bindir=DIR            user executables [EPREFIX/bin]
 
1360
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1361
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1362
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1363
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1364
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1365
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1366
  --includedir=DIR        C header files [PREFIX/include]
 
1367
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1368
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1369
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1370
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1371
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1372
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1373
  --docdir=DIR            documentation root [DATAROOTDIR/doc/evemu]
 
1374
  --htmldir=DIR           html documentation [DOCDIR]
 
1375
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1376
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1377
  --psdir=DIR             ps documentation [DOCDIR]
 
1378
_ACEOF
 
1379
 
 
1380
  cat <<\_ACEOF
 
1381
 
 
1382
Program names:
 
1383
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1384
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1385
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1386
 
 
1387
System types:
 
1388
  --build=BUILD     configure for building on BUILD [guessed]
 
1389
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1390
_ACEOF
 
1391
fi
 
1392
 
 
1393
if test -n "$ac_init_help"; then
 
1394
  case $ac_init_help in
 
1395
     short | recursive ) echo "Configuration of Kernel device emulation 1.0.9.1:";;
 
1396
   esac
 
1397
  cat <<\_ACEOF
 
1398
 
 
1399
Optional Features:
 
1400
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1401
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1402
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1403
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1404
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1405
  --disable-maintainer-mode  disable make rules and dependencies not useful
 
1406
                          (and sometimes confusing) to the casual installer
 
1407
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1408
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1409
  --enable-fast-install[=PKGS]
 
1410
                          optimize for fast installation [default=yes]
 
1411
  --disable-dependency-tracking  speeds up one-time build
 
1412
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1413
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1414
 
 
1415
Optional Packages:
 
1416
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1417
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1418
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1419
                          both]
 
1420
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1421
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1422
                        (or the compiler's sysroot if not specified).
 
1423
 
 
1424
Some influential environment variables:
 
1425
  CC          C compiler command
 
1426
  CFLAGS      C compiler flags
 
1427
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1428
              nonstandard directory <lib dir>
 
1429
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1430
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1431
              you have headers in a nonstandard directory <include dir>
 
1432
  CPP         C preprocessor
 
1433
  CXX         C++ compiler command
 
1434
  CXXFLAGS    C++ compiler flags
 
1435
  CXXCPP      C++ preprocessor
 
1436
  PYTHON      the Python interpreter
 
1437
  XMLTO       Path to xmlto command
 
1438
  ASCIIDOC    Path to asciidoc command
 
1439
 
 
1440
Use these variables to override the choices made by `configure' or to help
 
1441
it to find libraries and programs with nonstandard names/locations.
 
1442
 
 
1443
Report bugs to the package provider.
 
1444
_ACEOF
 
1445
ac_status=$?
 
1446
fi
 
1447
 
 
1448
if test "$ac_init_help" = "recursive"; then
 
1449
  # If there are subdirs, report their specific --help.
 
1450
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1451
    test -d "$ac_dir" ||
 
1452
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1453
      continue
 
1454
    ac_builddir=.
 
1455
 
 
1456
case "$ac_dir" in
 
1457
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1458
*)
 
1459
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1460
  # A ".." for each directory in $ac_dir_suffix.
 
1461
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1462
  case $ac_top_builddir_sub in
 
1463
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1464
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1465
  esac ;;
 
1466
esac
 
1467
ac_abs_top_builddir=$ac_pwd
 
1468
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1469
# for backward compatibility:
 
1470
ac_top_builddir=$ac_top_build_prefix
 
1471
 
 
1472
case $srcdir in
 
1473
  .)  # We are building in place.
 
1474
    ac_srcdir=.
 
1475
    ac_top_srcdir=$ac_top_builddir_sub
 
1476
    ac_abs_top_srcdir=$ac_pwd ;;
 
1477
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1478
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1479
    ac_top_srcdir=$srcdir
 
1480
    ac_abs_top_srcdir=$srcdir ;;
 
1481
  *) # Relative name.
 
1482
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1483
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1484
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1485
esac
 
1486
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1487
 
 
1488
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1489
    # Check for guested configure.
 
1490
    if test -f "$ac_srcdir/configure.gnu"; then
 
1491
      echo &&
 
1492
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1493
    elif test -f "$ac_srcdir/configure"; then
 
1494
      echo &&
 
1495
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1496
    else
 
1497
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1498
    fi || ac_status=$?
 
1499
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1500
  done
 
1501
fi
 
1502
 
 
1503
test -n "$ac_init_help" && exit $ac_status
 
1504
if $ac_init_version; then
 
1505
  cat <<\_ACEOF
 
1506
Kernel device emulation configure 1.0.9.1
 
1507
generated by GNU Autoconf 2.68
 
1508
 
 
1509
Copyright (C) 2010 Free Software Foundation, Inc.
 
1510
This configure script is free software; the Free Software Foundation
 
1511
gives unlimited permission to copy, distribute and modify it.
 
1512
_ACEOF
 
1513
  exit
 
1514
fi
 
1515
 
 
1516
## ------------------------ ##
 
1517
## Autoconf initialization. ##
 
1518
## ------------------------ ##
 
1519
 
 
1520
# ac_fn_c_try_compile LINENO
 
1521
# --------------------------
 
1522
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1523
ac_fn_c_try_compile ()
 
1524
{
 
1525
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1526
  rm -f conftest.$ac_objext
 
1527
  if { { ac_try="$ac_compile"
 
1528
case "(($ac_try" in
 
1529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1530
  *) ac_try_echo=$ac_try;;
 
1531
esac
 
1532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1533
$as_echo "$ac_try_echo"; } >&5
 
1534
  (eval "$ac_compile") 2>conftest.err
 
1535
  ac_status=$?
 
1536
  if test -s conftest.err; then
 
1537
    grep -v '^ *+' conftest.err >conftest.er1
 
1538
    cat conftest.er1 >&5
 
1539
    mv -f conftest.er1 conftest.err
 
1540
  fi
 
1541
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1542
  test $ac_status = 0; } && {
 
1543
         test -z "$ac_c_werror_flag" ||
 
1544
         test ! -s conftest.err
 
1545
       } && test -s conftest.$ac_objext; then :
 
1546
  ac_retval=0
 
1547
else
 
1548
  $as_echo "$as_me: failed program was:" >&5
 
1549
sed 's/^/| /' conftest.$ac_ext >&5
 
1550
 
 
1551
        ac_retval=1
 
1552
fi
 
1553
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1554
  as_fn_set_status $ac_retval
 
1555
 
 
1556
} # ac_fn_c_try_compile
 
1557
 
 
1558
# ac_fn_c_try_link LINENO
 
1559
# -----------------------
 
1560
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1561
ac_fn_c_try_link ()
 
1562
{
 
1563
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1564
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1565
  if { { ac_try="$ac_link"
 
1566
case "(($ac_try" in
 
1567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1568
  *) ac_try_echo=$ac_try;;
 
1569
esac
 
1570
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1571
$as_echo "$ac_try_echo"; } >&5
 
1572
  (eval "$ac_link") 2>conftest.err
 
1573
  ac_status=$?
 
1574
  if test -s conftest.err; then
 
1575
    grep -v '^ *+' conftest.err >conftest.er1
 
1576
    cat conftest.er1 >&5
 
1577
    mv -f conftest.er1 conftest.err
 
1578
  fi
 
1579
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1580
  test $ac_status = 0; } && {
 
1581
         test -z "$ac_c_werror_flag" ||
 
1582
         test ! -s conftest.err
 
1583
       } && test -s conftest$ac_exeext && {
 
1584
         test "$cross_compiling" = yes ||
 
1585
         $as_test_x conftest$ac_exeext
 
1586
       }; then :
 
1587
  ac_retval=0
 
1588
else
 
1589
  $as_echo "$as_me: failed program was:" >&5
 
1590
sed 's/^/| /' conftest.$ac_ext >&5
 
1591
 
 
1592
        ac_retval=1
 
1593
fi
 
1594
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1595
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1596
  # interfere with the next link command; also delete a directory that is
 
1597
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1598
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1599
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1600
  as_fn_set_status $ac_retval
 
1601
 
 
1602
} # ac_fn_c_try_link
 
1603
 
 
1604
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1605
# -------------------------------------------------------
 
1606
# Tests whether HEADER exists and can be compiled using the include files in
 
1607
# INCLUDES, setting the cache variable VAR accordingly.
 
1608
ac_fn_c_check_header_compile ()
 
1609
{
 
1610
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1612
$as_echo_n "checking for $2... " >&6; }
 
1613
if eval \${$3+:} false; then :
 
1614
  $as_echo_n "(cached) " >&6
 
1615
else
 
1616
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1617
/* end confdefs.h.  */
 
1618
$4
 
1619
#include <$2>
 
1620
_ACEOF
 
1621
if ac_fn_c_try_compile "$LINENO"; then :
 
1622
  eval "$3=yes"
 
1623
else
 
1624
  eval "$3=no"
 
1625
fi
 
1626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1627
fi
 
1628
eval ac_res=\$$3
 
1629
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1630
$as_echo "$ac_res" >&6; }
 
1631
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1632
 
 
1633
} # ac_fn_c_check_header_compile
 
1634
 
 
1635
# ac_fn_c_try_cpp LINENO
 
1636
# ----------------------
 
1637
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1638
ac_fn_c_try_cpp ()
 
1639
{
 
1640
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1641
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1642
case "(($ac_try" in
 
1643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1644
  *) ac_try_echo=$ac_try;;
 
1645
esac
 
1646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1647
$as_echo "$ac_try_echo"; } >&5
 
1648
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1649
  ac_status=$?
 
1650
  if test -s conftest.err; then
 
1651
    grep -v '^ *+' conftest.err >conftest.er1
 
1652
    cat conftest.er1 >&5
 
1653
    mv -f conftest.er1 conftest.err
 
1654
  fi
 
1655
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1656
  test $ac_status = 0; } > conftest.i && {
 
1657
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1658
         test ! -s conftest.err
 
1659
       }; then :
 
1660
  ac_retval=0
 
1661
else
 
1662
  $as_echo "$as_me: failed program was:" >&5
 
1663
sed 's/^/| /' conftest.$ac_ext >&5
 
1664
 
 
1665
    ac_retval=1
 
1666
fi
 
1667
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1668
  as_fn_set_status $ac_retval
 
1669
 
 
1670
} # ac_fn_c_try_cpp
 
1671
 
 
1672
# ac_fn_c_try_run LINENO
 
1673
# ----------------------
 
1674
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1675
# that executables *can* be run.
 
1676
ac_fn_c_try_run ()
 
1677
{
 
1678
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1679
  if { { ac_try="$ac_link"
 
1680
case "(($ac_try" in
 
1681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1682
  *) ac_try_echo=$ac_try;;
 
1683
esac
 
1684
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1685
$as_echo "$ac_try_echo"; } >&5
 
1686
  (eval "$ac_link") 2>&5
 
1687
  ac_status=$?
 
1688
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1689
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1690
  { { case "(($ac_try" in
 
1691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1692
  *) ac_try_echo=$ac_try;;
 
1693
esac
 
1694
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1695
$as_echo "$ac_try_echo"; } >&5
 
1696
  (eval "$ac_try") 2>&5
 
1697
  ac_status=$?
 
1698
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1699
  test $ac_status = 0; }; }; then :
 
1700
  ac_retval=0
 
1701
else
 
1702
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1703
       $as_echo "$as_me: failed program was:" >&5
 
1704
sed 's/^/| /' conftest.$ac_ext >&5
 
1705
 
 
1706
       ac_retval=$ac_status
 
1707
fi
 
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_run
 
1713
 
 
1714
# ac_fn_c_check_func LINENO FUNC VAR
 
1715
# ----------------------------------
 
1716
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1717
ac_fn_c_check_func ()
 
1718
{
 
1719
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1721
$as_echo_n "checking for $2... " >&6; }
 
1722
if eval \${$3+:} false; then :
 
1723
  $as_echo_n "(cached) " >&6
 
1724
else
 
1725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1726
/* end confdefs.h.  */
 
1727
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1728
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1729
#define $2 innocuous_$2
 
1730
 
 
1731
/* System header to define __stub macros and hopefully few prototypes,
 
1732
    which can conflict with char $2 (); below.
 
1733
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1734
    <limits.h> exists even on freestanding compilers.  */
 
1735
 
 
1736
#ifdef __STDC__
 
1737
# include <limits.h>
 
1738
#else
 
1739
# include <assert.h>
 
1740
#endif
 
1741
 
 
1742
#undef $2
 
1743
 
 
1744
/* Override any GCC internal prototype to avoid an error.
 
1745
   Use char because int might match the return type of a GCC
 
1746
   builtin and then its argument prototype would still apply.  */
 
1747
#ifdef __cplusplus
 
1748
extern "C"
 
1749
#endif
 
1750
char $2 ();
 
1751
/* The GNU C library defines this for functions which it implements
 
1752
    to always fail with ENOSYS.  Some functions are actually named
 
1753
    something starting with __ and the normal name is an alias.  */
 
1754
#if defined __stub_$2 || defined __stub___$2
 
1755
choke me
 
1756
#endif
 
1757
 
 
1758
int
 
1759
main ()
 
1760
{
 
1761
return $2 ();
 
1762
  ;
 
1763
  return 0;
 
1764
}
 
1765
_ACEOF
 
1766
if ac_fn_c_try_link "$LINENO"; then :
 
1767
  eval "$3=yes"
 
1768
else
 
1769
  eval "$3=no"
 
1770
fi
 
1771
rm -f core conftest.err conftest.$ac_objext \
 
1772
    conftest$ac_exeext conftest.$ac_ext
 
1773
fi
 
1774
eval ac_res=\$$3
 
1775
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1776
$as_echo "$ac_res" >&6; }
 
1777
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1778
 
 
1779
} # ac_fn_c_check_func
 
1780
 
 
1781
# ac_fn_cxx_try_compile LINENO
 
1782
# ----------------------------
 
1783
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1784
ac_fn_cxx_try_compile ()
 
1785
{
 
1786
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1787
  rm -f conftest.$ac_objext
 
1788
  if { { ac_try="$ac_compile"
 
1789
case "(($ac_try" in
 
1790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1791
  *) ac_try_echo=$ac_try;;
 
1792
esac
 
1793
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1794
$as_echo "$ac_try_echo"; } >&5
 
1795
  (eval "$ac_compile") 2>conftest.err
 
1796
  ac_status=$?
 
1797
  if test -s conftest.err; then
 
1798
    grep -v '^ *+' conftest.err >conftest.er1
 
1799
    cat conftest.er1 >&5
 
1800
    mv -f conftest.er1 conftest.err
 
1801
  fi
 
1802
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1803
  test $ac_status = 0; } && {
 
1804
         test -z "$ac_cxx_werror_flag" ||
 
1805
         test ! -s conftest.err
 
1806
       } && test -s conftest.$ac_objext; then :
 
1807
  ac_retval=0
 
1808
else
 
1809
  $as_echo "$as_me: failed program was:" >&5
 
1810
sed 's/^/| /' conftest.$ac_ext >&5
 
1811
 
 
1812
        ac_retval=1
 
1813
fi
 
1814
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1815
  as_fn_set_status $ac_retval
 
1816
 
 
1817
} # ac_fn_cxx_try_compile
 
1818
 
 
1819
# ac_fn_cxx_try_cpp LINENO
 
1820
# ------------------------
 
1821
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1822
ac_fn_cxx_try_cpp ()
 
1823
{
 
1824
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1825
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1826
case "(($ac_try" in
 
1827
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1828
  *) ac_try_echo=$ac_try;;
 
1829
esac
 
1830
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1831
$as_echo "$ac_try_echo"; } >&5
 
1832
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1833
  ac_status=$?
 
1834
  if test -s conftest.err; then
 
1835
    grep -v '^ *+' conftest.err >conftest.er1
 
1836
    cat conftest.er1 >&5
 
1837
    mv -f conftest.er1 conftest.err
 
1838
  fi
 
1839
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1840
  test $ac_status = 0; } > conftest.i && {
 
1841
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1842
         test ! -s conftest.err
 
1843
       }; then :
 
1844
  ac_retval=0
 
1845
else
 
1846
  $as_echo "$as_me: failed program was:" >&5
 
1847
sed 's/^/| /' conftest.$ac_ext >&5
 
1848
 
 
1849
    ac_retval=1
 
1850
fi
 
1851
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1852
  as_fn_set_status $ac_retval
 
1853
 
 
1854
} # ac_fn_cxx_try_cpp
 
1855
 
 
1856
# ac_fn_cxx_try_link LINENO
 
1857
# -------------------------
 
1858
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1859
ac_fn_cxx_try_link ()
 
1860
{
 
1861
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1862
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1863
  if { { ac_try="$ac_link"
 
1864
case "(($ac_try" in
 
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1866
  *) ac_try_echo=$ac_try;;
 
1867
esac
 
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1869
$as_echo "$ac_try_echo"; } >&5
 
1870
  (eval "$ac_link") 2>conftest.err
 
1871
  ac_status=$?
 
1872
  if test -s conftest.err; then
 
1873
    grep -v '^ *+' conftest.err >conftest.er1
 
1874
    cat conftest.er1 >&5
 
1875
    mv -f conftest.er1 conftest.err
 
1876
  fi
 
1877
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1878
  test $ac_status = 0; } && {
 
1879
         test -z "$ac_cxx_werror_flag" ||
 
1880
         test ! -s conftest.err
 
1881
       } && test -s conftest$ac_exeext && {
 
1882
         test "$cross_compiling" = yes ||
 
1883
         $as_test_x conftest$ac_exeext
 
1884
       }; then :
 
1885
  ac_retval=0
 
1886
else
 
1887
  $as_echo "$as_me: failed program was:" >&5
 
1888
sed 's/^/| /' conftest.$ac_ext >&5
 
1889
 
 
1890
        ac_retval=1
 
1891
fi
 
1892
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1893
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1894
  # interfere with the next link command; also delete a directory that is
 
1895
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1896
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1897
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1898
  as_fn_set_status $ac_retval
 
1899
 
 
1900
} # ac_fn_cxx_try_link
 
1901
cat >config.log <<_ACEOF
 
1902
This file contains any messages produced by compilers while
 
1903
running configure, to aid debugging if configure makes a mistake.
 
1904
 
 
1905
It was created by Kernel device emulation $as_me 1.0.9.1, which was
 
1906
generated by GNU Autoconf 2.68.  Invocation command line was
 
1907
 
 
1908
  $ $0 $@
 
1909
 
 
1910
_ACEOF
 
1911
exec 5>>config.log
 
1912
{
 
1913
cat <<_ASUNAME
 
1914
## --------- ##
 
1915
## Platform. ##
 
1916
## --------- ##
 
1917
 
 
1918
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1919
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1920
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1921
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1922
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1923
 
 
1924
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1925
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1926
 
 
1927
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1928
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1929
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1930
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1931
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1932
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1933
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1934
 
 
1935
_ASUNAME
 
1936
 
 
1937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1938
for as_dir in $PATH
 
1939
do
 
1940
  IFS=$as_save_IFS
 
1941
  test -z "$as_dir" && as_dir=.
 
1942
    $as_echo "PATH: $as_dir"
 
1943
  done
 
1944
IFS=$as_save_IFS
 
1945
 
 
1946
} >&5
 
1947
 
 
1948
cat >&5 <<_ACEOF
 
1949
 
 
1950
 
 
1951
## ----------- ##
 
1952
## Core tests. ##
 
1953
## ----------- ##
 
1954
 
 
1955
_ACEOF
 
1956
 
 
1957
 
 
1958
# Keep a trace of the command line.
 
1959
# Strip out --no-create and --no-recursion so they do not pile up.
 
1960
# Strip out --silent because we don't want to record it for future runs.
 
1961
# Also quote any args containing shell meta-characters.
 
1962
# Make two passes to allow for proper duplicate-argument suppression.
 
1963
ac_configure_args=
 
1964
ac_configure_args0=
 
1965
ac_configure_args1=
 
1966
ac_must_keep_next=false
 
1967
for ac_pass in 1 2
 
1968
do
 
1969
  for ac_arg
 
1970
  do
 
1971
    case $ac_arg in
 
1972
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1973
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1974
    | -silent | --silent | --silen | --sile | --sil)
 
1975
      continue ;;
 
1976
    *\'*)
 
1977
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1978
    esac
 
1979
    case $ac_pass in
 
1980
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1981
    2)
 
1982
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1983
      if test $ac_must_keep_next = true; then
 
1984
        ac_must_keep_next=false # Got value, back to normal.
 
1985
      else
 
1986
        case $ac_arg in
 
1987
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1988
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1989
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1990
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1991
            case "$ac_configure_args0 " in
 
1992
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1993
            esac
 
1994
            ;;
 
1995
          -* ) ac_must_keep_next=true ;;
 
1996
        esac
 
1997
      fi
 
1998
      as_fn_append ac_configure_args " '$ac_arg'"
 
1999
      ;;
 
2000
    esac
 
2001
  done
 
2002
done
 
2003
{ ac_configure_args0=; unset ac_configure_args0;}
 
2004
{ ac_configure_args1=; unset ac_configure_args1;}
 
2005
 
 
2006
# When interrupted or exit'd, cleanup temporary files, and complete
 
2007
# config.log.  We remove comments because anyway the quotes in there
 
2008
# would cause problems or look ugly.
 
2009
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2010
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2011
trap 'exit_status=$?
 
2012
  # Save into config.log some information that might help in debugging.
 
2013
  {
 
2014
    echo
 
2015
 
 
2016
    $as_echo "## ---------------- ##
 
2017
## Cache variables. ##
 
2018
## ---------------- ##"
 
2019
    echo
 
2020
    # The following way of writing the cache mishandles newlines in values,
 
2021
(
 
2022
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2023
    eval ac_val=\$$ac_var
 
2024
    case $ac_val in #(
 
2025
    *${as_nl}*)
 
2026
      case $ac_var in #(
 
2027
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2028
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2029
      esac
 
2030
      case $ac_var in #(
 
2031
      _ | IFS | as_nl) ;; #(
 
2032
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2033
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2034
      esac ;;
 
2035
    esac
 
2036
  done
 
2037
  (set) 2>&1 |
 
2038
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2039
    *${as_nl}ac_space=\ *)
 
2040
      sed -n \
 
2041
        "s/'\''/'\''\\\\'\'''\''/g;
 
2042
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2043
      ;; #(
 
2044
    *)
 
2045
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2046
      ;;
 
2047
    esac |
 
2048
    sort
 
2049
)
 
2050
    echo
 
2051
 
 
2052
    $as_echo "## ----------------- ##
 
2053
## Output variables. ##
 
2054
## ----------------- ##"
 
2055
    echo
 
2056
    for ac_var in $ac_subst_vars
 
2057
    do
 
2058
      eval ac_val=\$$ac_var
 
2059
      case $ac_val in
 
2060
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2061
      esac
 
2062
      $as_echo "$ac_var='\''$ac_val'\''"
 
2063
    done | sort
 
2064
    echo
 
2065
 
 
2066
    if test -n "$ac_subst_files"; then
 
2067
      $as_echo "## ------------------- ##
 
2068
## File substitutions. ##
 
2069
## ------------------- ##"
 
2070
      echo
 
2071
      for ac_var in $ac_subst_files
 
2072
      do
 
2073
        eval ac_val=\$$ac_var
 
2074
        case $ac_val in
 
2075
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2076
        esac
 
2077
        $as_echo "$ac_var='\''$ac_val'\''"
 
2078
      done | sort
 
2079
      echo
 
2080
    fi
 
2081
 
 
2082
    if test -s confdefs.h; then
 
2083
      $as_echo "## ----------- ##
 
2084
## confdefs.h. ##
 
2085
## ----------- ##"
 
2086
      echo
 
2087
      cat confdefs.h
 
2088
      echo
 
2089
    fi
 
2090
    test "$ac_signal" != 0 &&
 
2091
      $as_echo "$as_me: caught signal $ac_signal"
 
2092
    $as_echo "$as_me: exit $exit_status"
 
2093
  } >&5
 
2094
  rm -f core *.core core.conftest.* &&
 
2095
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2096
    exit $exit_status
 
2097
' 0
 
2098
for ac_signal in 1 2 13 15; do
 
2099
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2100
done
 
2101
ac_signal=0
 
2102
 
 
2103
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2104
rm -f -r conftest* confdefs.h
 
2105
 
 
2106
$as_echo "/* confdefs.h */" > confdefs.h
 
2107
 
 
2108
# Predefined preprocessor variables.
 
2109
 
 
2110
cat >>confdefs.h <<_ACEOF
 
2111
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2112
_ACEOF
 
2113
 
 
2114
cat >>confdefs.h <<_ACEOF
 
2115
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2116
_ACEOF
 
2117
 
 
2118
cat >>confdefs.h <<_ACEOF
 
2119
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2120
_ACEOF
 
2121
 
 
2122
cat >>confdefs.h <<_ACEOF
 
2123
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2124
_ACEOF
 
2125
 
 
2126
cat >>confdefs.h <<_ACEOF
 
2127
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2128
_ACEOF
 
2129
 
 
2130
cat >>confdefs.h <<_ACEOF
 
2131
#define PACKAGE_URL "$PACKAGE_URL"
 
2132
_ACEOF
 
2133
 
 
2134
 
 
2135
# Let the site file select an alternate cache file if it wants to.
 
2136
# Prefer an explicitly selected file to automatically selected ones.
 
2137
ac_site_file1=NONE
 
2138
ac_site_file2=NONE
 
2139
if test -n "$CONFIG_SITE"; then
 
2140
  # We do not want a PATH search for config.site.
 
2141
  case $CONFIG_SITE in #((
 
2142
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2143
    */*) ac_site_file1=$CONFIG_SITE;;
 
2144
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2145
  esac
 
2146
elif test "x$prefix" != xNONE; then
 
2147
  ac_site_file1=$prefix/share/config.site
 
2148
  ac_site_file2=$prefix/etc/config.site
 
2149
else
 
2150
  ac_site_file1=$ac_default_prefix/share/config.site
 
2151
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2152
fi
 
2153
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2154
do
 
2155
  test "x$ac_site_file" = xNONE && continue
 
2156
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2157
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2158
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2159
    sed 's/^/| /' "$ac_site_file" >&5
 
2160
    . "$ac_site_file" \
 
2161
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2162
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2163
as_fn_error $? "failed to load site script $ac_site_file
 
2164
See \`config.log' for more details" "$LINENO" 5; }
 
2165
  fi
 
2166
done
 
2167
 
 
2168
if test -r "$cache_file"; then
 
2169
  # Some versions of bash will fail to source /dev/null (special files
 
2170
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2171
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2172
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2173
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2174
    case $cache_file in
 
2175
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2176
      *)                      . "./$cache_file";;
 
2177
    esac
 
2178
  fi
 
2179
else
 
2180
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2181
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2182
  >$cache_file
 
2183
fi
 
2184
 
 
2185
# Check that the precious variables saved in the cache have kept the same
 
2186
# value.
 
2187
ac_cache_corrupted=false
 
2188
for ac_var in $ac_precious_vars; do
 
2189
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2190
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2191
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2192
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2193
  case $ac_old_set,$ac_new_set in
 
2194
    set,)
 
2195
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2196
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2197
      ac_cache_corrupted=: ;;
 
2198
    ,set)
 
2199
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2200
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2201
      ac_cache_corrupted=: ;;
 
2202
    ,);;
 
2203
    *)
 
2204
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2205
        # differences in whitespace do not lead to failure.
 
2206
        ac_old_val_w=`echo x $ac_old_val`
 
2207
        ac_new_val_w=`echo x $ac_new_val`
 
2208
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2209
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2210
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2211
          ac_cache_corrupted=:
 
2212
        else
 
2213
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2214
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2215
          eval $ac_var=\$ac_old_val
 
2216
        fi
 
2217
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2218
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2219
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2220
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2221
      fi;;
 
2222
  esac
 
2223
  # Pass precious variables to config.status.
 
2224
  if test "$ac_new_set" = set; then
 
2225
    case $ac_new_val in
 
2226
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2227
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2228
    esac
 
2229
    case " $ac_configure_args " in
 
2230
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2231
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2232
    esac
 
2233
  fi
 
2234
done
 
2235
if $ac_cache_corrupted; then
 
2236
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2237
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2238
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2239
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2240
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2241
fi
 
2242
## -------------------- ##
 
2243
## Main body of script. ##
 
2244
## -------------------- ##
 
2245
 
 
2246
ac_ext=c
 
2247
ac_cpp='$CPP $CPPFLAGS'
 
2248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2251
 
 
2252
 
 
2253
 
 
2254
ac_config_headers="$ac_config_headers config.h"
 
2255
 
 
2256
ac_aux_dir=
 
2257
for ac_dir in config-aux "$srcdir"/config-aux; do
 
2258
  if test -f "$ac_dir/install-sh"; then
 
2259
    ac_aux_dir=$ac_dir
 
2260
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2261
    break
 
2262
  elif test -f "$ac_dir/install.sh"; then
 
2263
    ac_aux_dir=$ac_dir
 
2264
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2265
    break
 
2266
  elif test -f "$ac_dir/shtool"; then
 
2267
    ac_aux_dir=$ac_dir
 
2268
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2269
    break
 
2270
  fi
 
2271
done
 
2272
if test -z "$ac_aux_dir"; then
 
2273
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config-aux \"$srcdir\"/config-aux" "$LINENO" 5
 
2274
fi
 
2275
 
 
2276
# These three variables are undocumented and unsupported,
 
2277
# and are intended to be withdrawn in a future Autoconf release.
 
2278
# They can cause serious problems if a builder's source tree is in a directory
 
2279
# whose full name contains unusual characters.
 
2280
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2281
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2282
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2283
 
 
2284
 
 
2285
 
 
2286
# Initialize Automake
 
2287
am__api_version='1.11'
 
2288
 
 
2289
# Find a good install program.  We prefer a C program (faster),
 
2290
# so one script is as good as another.  But avoid the broken or
 
2291
# incompatible versions:
 
2292
# SysV /etc/install, /usr/sbin/install
 
2293
# SunOS /usr/etc/install
 
2294
# IRIX /sbin/install
 
2295
# AIX /bin/install
 
2296
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2297
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2298
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2299
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2300
# OS/2's system install, which has a completely different semantic
 
2301
# ./install, which can be erroneously created by make from ./install.sh.
 
2302
# Reject install programs that cannot install multiple files.
 
2303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2304
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2305
if test -z "$INSTALL"; then
 
2306
if ${ac_cv_path_install+:} false; then :
 
2307
  $as_echo_n "(cached) " >&6
 
2308
else
 
2309
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2310
for as_dir in $PATH
 
2311
do
 
2312
  IFS=$as_save_IFS
 
2313
  test -z "$as_dir" && as_dir=.
 
2314
    # Account for people who put trailing slashes in PATH elements.
 
2315
case $as_dir/ in #((
 
2316
  ./ | .// | /[cC]/* | \
 
2317
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2318
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2319
  /usr/ucb/* ) ;;
 
2320
  *)
 
2321
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2322
    # Don't use installbsd from OSF since it installs stuff as root
 
2323
    # by default.
 
2324
    for ac_prog in ginstall scoinst install; do
 
2325
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2326
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2327
          if test $ac_prog = install &&
 
2328
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2329
            # AIX install.  It has an incompatible calling convention.
 
2330
            :
 
2331
          elif test $ac_prog = install &&
 
2332
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2333
            # program-specific install script used by HP pwplus--don't use.
 
2334
            :
 
2335
          else
 
2336
            rm -rf conftest.one conftest.two conftest.dir
 
2337
            echo one > conftest.one
 
2338
            echo two > conftest.two
 
2339
            mkdir conftest.dir
 
2340
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2341
              test -s conftest.one && test -s conftest.two &&
 
2342
              test -s conftest.dir/conftest.one &&
 
2343
              test -s conftest.dir/conftest.two
 
2344
            then
 
2345
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2346
              break 3
 
2347
            fi
 
2348
          fi
 
2349
        fi
 
2350
      done
 
2351
    done
 
2352
    ;;
 
2353
esac
 
2354
 
 
2355
  done
 
2356
IFS=$as_save_IFS
 
2357
 
 
2358
rm -rf conftest.one conftest.two conftest.dir
 
2359
 
 
2360
fi
 
2361
  if test "${ac_cv_path_install+set}" = set; then
 
2362
    INSTALL=$ac_cv_path_install
 
2363
  else
 
2364
    # As a last resort, use the slow shell script.  Don't cache a
 
2365
    # value for INSTALL within a source directory, because that will
 
2366
    # break other packages using the cache if that directory is
 
2367
    # removed, or if the value is a relative name.
 
2368
    INSTALL=$ac_install_sh
 
2369
  fi
 
2370
fi
 
2371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2372
$as_echo "$INSTALL" >&6; }
 
2373
 
 
2374
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2375
# It thinks the first close brace ends the variable substitution.
 
2376
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2377
 
 
2378
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2379
 
 
2380
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2381
 
 
2382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2383
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2384
# Just in case
 
2385
sleep 1
 
2386
echo timestamp > conftest.file
 
2387
# Reject unsafe characters in $srcdir or the absolute working directory
 
2388
# name.  Accept space and tab only in the latter.
 
2389
am_lf='
 
2390
'
 
2391
case `pwd` in
 
2392
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2393
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2394
esac
 
2395
case $srcdir in
 
2396
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2397
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2398
esac
 
2399
 
 
2400
# Do `set' in a subshell so we don't clobber the current shell's
 
2401
# arguments.  Must try -L first in case configure is actually a
 
2402
# symlink; some systems play weird games with the mod time of symlinks
 
2403
# (eg FreeBSD returns the mod time of the symlink's containing
 
2404
# directory).
 
2405
if (
 
2406
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2407
   if test "$*" = "X"; then
 
2408
      # -L didn't work.
 
2409
      set X `ls -t "$srcdir/configure" conftest.file`
 
2410
   fi
 
2411
   rm -f conftest.file
 
2412
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2413
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2414
 
 
2415
      # If neither matched, then we have a broken ls.  This can happen
 
2416
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2417
      # broken ls alias from the environment.  This has actually
 
2418
      # happened.  Such a system could not be considered "sane".
 
2419
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2420
alias in your environment" "$LINENO" 5
 
2421
   fi
 
2422
 
 
2423
   test "$2" = conftest.file
 
2424
   )
 
2425
then
 
2426
   # Ok.
 
2427
   :
 
2428
else
 
2429
   as_fn_error $? "newly created file is older than distributed files!
 
2430
Check your system clock" "$LINENO" 5
 
2431
fi
 
2432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2433
$as_echo "yes" >&6; }
 
2434
test "$program_prefix" != NONE &&
 
2435
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2436
# Use a double $ so make ignores it.
 
2437
test "$program_suffix" != NONE &&
 
2438
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2439
# Double any \ or $.
 
2440
# By default was `s,x,x', remove it if useless.
 
2441
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2442
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2443
 
 
2444
# expand $ac_aux_dir to an absolute path
 
2445
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2446
 
 
2447
if test x"${MISSING+set}" != xset; then
 
2448
  case $am_aux_dir in
 
2449
  *\ * | *\     *)
 
2450
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2451
  *)
 
2452
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2453
  esac
 
2454
fi
 
2455
# Use eval to expand $SHELL
 
2456
if eval "$MISSING --run true"; then
 
2457
  am_missing_run="$MISSING --run "
 
2458
else
 
2459
  am_missing_run=
 
2460
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2461
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2462
fi
 
2463
 
 
2464
if test x"${install_sh}" != xset; then
 
2465
  case $am_aux_dir in
 
2466
  *\ * | *\     *)
 
2467
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2468
  *)
 
2469
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2470
  esac
 
2471
fi
 
2472
 
 
2473
# Installed binaries are usually stripped using `strip' when the user
 
2474
# run `make install-strip'.  However `strip' might not be the right
 
2475
# tool to use in cross-compilation environments, therefore Automake
 
2476
# will honor the `STRIP' environment variable to overrule this program.
 
2477
if test "$cross_compiling" != no; then
 
2478
  if test -n "$ac_tool_prefix"; then
 
2479
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2480
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2482
$as_echo_n "checking for $ac_word... " >&6; }
 
2483
if ${ac_cv_prog_STRIP+:} false; then :
 
2484
  $as_echo_n "(cached) " >&6
 
2485
else
 
2486
  if test -n "$STRIP"; then
 
2487
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2488
else
 
2489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2490
for as_dir in $PATH
 
2491
do
 
2492
  IFS=$as_save_IFS
 
2493
  test -z "$as_dir" && as_dir=.
 
2494
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2496
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2497
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2498
    break 2
 
2499
  fi
 
2500
done
 
2501
  done
 
2502
IFS=$as_save_IFS
 
2503
 
 
2504
fi
 
2505
fi
 
2506
STRIP=$ac_cv_prog_STRIP
 
2507
if test -n "$STRIP"; then
 
2508
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2509
$as_echo "$STRIP" >&6; }
 
2510
else
 
2511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2512
$as_echo "no" >&6; }
 
2513
fi
 
2514
 
 
2515
 
 
2516
fi
 
2517
if test -z "$ac_cv_prog_STRIP"; then
 
2518
  ac_ct_STRIP=$STRIP
 
2519
  # Extract the first word of "strip", so it can be a program name with args.
 
2520
set dummy strip; ac_word=$2
 
2521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2522
$as_echo_n "checking for $ac_word... " >&6; }
 
2523
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2524
  $as_echo_n "(cached) " >&6
 
2525
else
 
2526
  if test -n "$ac_ct_STRIP"; then
 
2527
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2528
else
 
2529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2530
for as_dir in $PATH
 
2531
do
 
2532
  IFS=$as_save_IFS
 
2533
  test -z "$as_dir" && as_dir=.
 
2534
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2536
    ac_cv_prog_ac_ct_STRIP="strip"
 
2537
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2538
    break 2
 
2539
  fi
 
2540
done
 
2541
  done
 
2542
IFS=$as_save_IFS
 
2543
 
 
2544
fi
 
2545
fi
 
2546
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2547
if test -n "$ac_ct_STRIP"; then
 
2548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2549
$as_echo "$ac_ct_STRIP" >&6; }
 
2550
else
 
2551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2552
$as_echo "no" >&6; }
 
2553
fi
 
2554
 
 
2555
  if test "x$ac_ct_STRIP" = x; then
 
2556
    STRIP=":"
 
2557
  else
 
2558
    case $cross_compiling:$ac_tool_warned in
 
2559
yes:)
 
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2561
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2562
ac_tool_warned=yes ;;
 
2563
esac
 
2564
    STRIP=$ac_ct_STRIP
 
2565
  fi
 
2566
else
 
2567
  STRIP="$ac_cv_prog_STRIP"
 
2568
fi
 
2569
 
 
2570
fi
 
2571
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2572
 
 
2573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2574
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2575
if test -z "$MKDIR_P"; then
 
2576
  if ${ac_cv_path_mkdir+:} false; then :
 
2577
  $as_echo_n "(cached) " >&6
 
2578
else
 
2579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2580
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2581
do
 
2582
  IFS=$as_save_IFS
 
2583
  test -z "$as_dir" && as_dir=.
 
2584
    for ac_prog in mkdir gmkdir; do
 
2585
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2586
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2587
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2588
             'mkdir (GNU coreutils) '* | \
 
2589
             'mkdir (coreutils) '* | \
 
2590
             'mkdir (fileutils) '4.1*)
 
2591
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2592
               break 3;;
 
2593
           esac
 
2594
         done
 
2595
       done
 
2596
  done
 
2597
IFS=$as_save_IFS
 
2598
 
 
2599
fi
 
2600
 
 
2601
  test -d ./--version && rmdir ./--version
 
2602
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2603
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2604
  else
 
2605
    # As a last resort, use the slow shell script.  Don't cache a
 
2606
    # value for MKDIR_P within a source directory, because that will
 
2607
    # break other packages using the cache if that directory is
 
2608
    # removed, or if the value is a relative name.
 
2609
    MKDIR_P="$ac_install_sh -d"
 
2610
  fi
 
2611
fi
 
2612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2613
$as_echo "$MKDIR_P" >&6; }
 
2614
 
 
2615
mkdir_p="$MKDIR_P"
 
2616
case $mkdir_p in
 
2617
  [\\/$]* | ?:[\\/]*) ;;
 
2618
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2619
esac
 
2620
 
 
2621
for ac_prog in gawk mawk nawk awk
 
2622
do
 
2623
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2624
set dummy $ac_prog; ac_word=$2
 
2625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2626
$as_echo_n "checking for $ac_word... " >&6; }
 
2627
if ${ac_cv_prog_AWK+:} false; then :
 
2628
  $as_echo_n "(cached) " >&6
 
2629
else
 
2630
  if test -n "$AWK"; then
 
2631
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2632
else
 
2633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2634
for as_dir in $PATH
 
2635
do
 
2636
  IFS=$as_save_IFS
 
2637
  test -z "$as_dir" && as_dir=.
 
2638
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2639
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2640
    ac_cv_prog_AWK="$ac_prog"
 
2641
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2642
    break 2
 
2643
  fi
 
2644
done
 
2645
  done
 
2646
IFS=$as_save_IFS
 
2647
 
 
2648
fi
 
2649
fi
 
2650
AWK=$ac_cv_prog_AWK
 
2651
if test -n "$AWK"; then
 
2652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2653
$as_echo "$AWK" >&6; }
 
2654
else
 
2655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2656
$as_echo "no" >&6; }
 
2657
fi
 
2658
 
 
2659
 
 
2660
  test -n "$AWK" && break
 
2661
done
 
2662
 
 
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2664
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2665
set x ${MAKE-make}
 
2666
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2667
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2668
  $as_echo_n "(cached) " >&6
 
2669
else
 
2670
  cat >conftest.make <<\_ACEOF
 
2671
SHELL = /bin/sh
 
2672
all:
 
2673
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2674
_ACEOF
 
2675
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2676
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2677
  *@@@%%%=?*=@@@%%%*)
 
2678
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2679
  *)
 
2680
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2681
esac
 
2682
rm -f conftest.make
 
2683
fi
 
2684
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2686
$as_echo "yes" >&6; }
 
2687
  SET_MAKE=
 
2688
else
 
2689
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2690
$as_echo "no" >&6; }
 
2691
  SET_MAKE="MAKE=${MAKE-make}"
 
2692
fi
 
2693
 
 
2694
rm -rf .tst 2>/dev/null
 
2695
mkdir .tst 2>/dev/null
 
2696
if test -d .tst; then
 
2697
  am__leading_dot=.
 
2698
else
 
2699
  am__leading_dot=_
 
2700
fi
 
2701
rmdir .tst 2>/dev/null
 
2702
 
 
2703
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2704
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2705
  # is not polluted with repeated "-I."
 
2706
  am__isrc=' -I$(srcdir)'
 
2707
  # test to see if srcdir already configured
 
2708
  if test -f $srcdir/config.status; then
 
2709
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2710
  fi
 
2711
fi
 
2712
 
 
2713
# test whether we have cygpath
 
2714
if test -z "$CYGPATH_W"; then
 
2715
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2716
    CYGPATH_W='cygpath -w'
 
2717
  else
 
2718
    CYGPATH_W=echo
 
2719
  fi
 
2720
fi
 
2721
 
 
2722
 
 
2723
# Define the identity of the package.
 
2724
 PACKAGE='evemu'
 
2725
 VERSION='1.0.9.1'
 
2726
 
 
2727
 
 
2728
cat >>confdefs.h <<_ACEOF
 
2729
#define PACKAGE "$PACKAGE"
 
2730
_ACEOF
 
2731
 
 
2732
 
 
2733
cat >>confdefs.h <<_ACEOF
 
2734
#define VERSION "$VERSION"
 
2735
_ACEOF
 
2736
 
 
2737
# Some tools Automake needs.
 
2738
 
 
2739
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2740
 
 
2741
 
 
2742
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2743
 
 
2744
 
 
2745
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2746
 
 
2747
 
 
2748
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2749
 
 
2750
 
 
2751
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2752
 
 
2753
# We need awk for the "check" target.  The system "awk" is bad on
 
2754
# some platforms.
 
2755
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2756
# in the wild :-(  We should find a proper way to deprecate it ...
 
2757
AMTAR='$${TAR-tar}'
 
2758
 
 
2759
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2760
 
 
2761
 
 
2762
 
 
2763
 
 
2764
 
 
2765
# Check whether --enable-silent-rules was given.
 
2766
if test "${enable_silent_rules+set}" = set; then :
 
2767
  enableval=$enable_silent_rules;
 
2768
fi
 
2769
 
 
2770
case $enable_silent_rules in
 
2771
yes) AM_DEFAULT_VERBOSITY=0;;
 
2772
no)  AM_DEFAULT_VERBOSITY=1;;
 
2773
*)   AM_DEFAULT_VERBOSITY=0;;
 
2774
esac
 
2775
am_make=${MAKE-make}
 
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2777
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2778
if ${am_cv_make_support_nested_variables+:} false; then :
 
2779
  $as_echo_n "(cached) " >&6
 
2780
else
 
2781
  if $as_echo 'TRUE=$(BAR$(V))
 
2782
BAR0=false
 
2783
BAR1=true
 
2784
V=1
 
2785
am__doit:
 
2786
        @$(TRUE)
 
2787
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2788
  am_cv_make_support_nested_variables=yes
 
2789
else
 
2790
  am_cv_make_support_nested_variables=no
 
2791
fi
 
2792
fi
 
2793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2794
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2795
if test $am_cv_make_support_nested_variables = yes; then
 
2796
    AM_V='$(V)'
 
2797
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2798
else
 
2799
  AM_V=$AM_DEFAULT_VERBOSITY
 
2800
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2801
fi
 
2802
AM_BACKSLASH='\'
 
2803
 
 
2804
 
 
2805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2806
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2807
    # Check whether --enable-maintainer-mode was given.
 
2808
if test "${enable_maintainer_mode+set}" = set; then :
 
2809
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2810
else
 
2811
  USE_MAINTAINER_MODE=yes
 
2812
fi
 
2813
 
 
2814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2815
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2816
   if test $USE_MAINTAINER_MODE = yes; then
 
2817
  MAINTAINER_MODE_TRUE=
 
2818
  MAINTAINER_MODE_FALSE='#'
 
2819
else
 
2820
  MAINTAINER_MODE_TRUE='#'
 
2821
  MAINTAINER_MODE_FALSE=
 
2822
fi
 
2823
 
 
2824
  MAINT=$MAINTAINER_MODE_TRUE
 
2825
 
 
2826
 
 
2827
 
 
2828
LIB_VERSION=1:0:0
 
2829
 
 
2830
 
 
2831
# Initialize libtool
 
2832
case `pwd` in
 
2833
  *\ * | *\     *)
 
2834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2835
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2836
esac
 
2837
 
 
2838
 
 
2839
 
 
2840
macro_version='2.4.2'
 
2841
macro_revision='1.3337'
 
2842
 
 
2843
 
 
2844
 
 
2845
 
 
2846
 
 
2847
 
 
2848
 
 
2849
 
 
2850
 
 
2851
 
 
2852
 
 
2853
 
 
2854
 
 
2855
ltmain="$ac_aux_dir/ltmain.sh"
 
2856
 
 
2857
# Make sure we can run config.sub.
 
2858
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2859
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2860
 
 
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2862
$as_echo_n "checking build system type... " >&6; }
 
2863
if ${ac_cv_build+:} false; then :
 
2864
  $as_echo_n "(cached) " >&6
 
2865
else
 
2866
  ac_build_alias=$build_alias
 
2867
test "x$ac_build_alias" = x &&
 
2868
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2869
test "x$ac_build_alias" = x &&
 
2870
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2871
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2872
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2873
 
 
2874
fi
 
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2876
$as_echo "$ac_cv_build" >&6; }
 
2877
case $ac_cv_build in
 
2878
*-*-*) ;;
 
2879
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2880
esac
 
2881
build=$ac_cv_build
 
2882
ac_save_IFS=$IFS; IFS='-'
 
2883
set x $ac_cv_build
 
2884
shift
 
2885
build_cpu=$1
 
2886
build_vendor=$2
 
2887
shift; shift
 
2888
# Remember, the first character of IFS is used to create $*,
 
2889
# except with old shells:
 
2890
build_os=$*
 
2891
IFS=$ac_save_IFS
 
2892
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2893
 
 
2894
 
 
2895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2896
$as_echo_n "checking host system type... " >&6; }
 
2897
if ${ac_cv_host+:} false; then :
 
2898
  $as_echo_n "(cached) " >&6
 
2899
else
 
2900
  if test "x$host_alias" = x; then
 
2901
  ac_cv_host=$ac_cv_build
 
2902
else
 
2903
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2904
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2905
fi
 
2906
 
 
2907
fi
 
2908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2909
$as_echo "$ac_cv_host" >&6; }
 
2910
case $ac_cv_host in
 
2911
*-*-*) ;;
 
2912
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2913
esac
 
2914
host=$ac_cv_host
 
2915
ac_save_IFS=$IFS; IFS='-'
 
2916
set x $ac_cv_host
 
2917
shift
 
2918
host_cpu=$1
 
2919
host_vendor=$2
 
2920
shift; shift
 
2921
# Remember, the first character of IFS is used to create $*,
 
2922
# except with old shells:
 
2923
host_os=$*
 
2924
IFS=$ac_save_IFS
 
2925
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2926
 
 
2927
 
 
2928
# Backslashify metacharacters that are still active within
 
2929
# double-quoted strings.
 
2930
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
2931
 
 
2932
# Same as above, but do not quote variable references.
 
2933
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
2934
 
 
2935
# Sed substitution to delay expansion of an escaped shell variable in a
 
2936
# double_quote_subst'ed string.
 
2937
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
2938
 
 
2939
# Sed substitution to delay expansion of an escaped single quote.
 
2940
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
2941
 
 
2942
# Sed substitution to avoid accidental globbing in evaled expressions
 
2943
no_glob_subst='s/\*/\\\*/g'
 
2944
 
 
2945
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2946
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2947
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2948
 
 
2949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
2950
$as_echo_n "checking how to print strings... " >&6; }
 
2951
# Test print first, because it will be a builtin if present.
 
2952
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2953
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2954
  ECHO='print -r --'
 
2955
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2956
  ECHO='printf %s\n'
 
2957
else
 
2958
  # Use this function as a fallback that always works.
 
2959
  func_fallback_echo ()
 
2960
  {
 
2961
    eval 'cat <<_LTECHO_EOF
 
2962
$1
 
2963
_LTECHO_EOF'
 
2964
  }
 
2965
  ECHO='func_fallback_echo'
 
2966
fi
 
2967
 
 
2968
# func_echo_all arg...
 
2969
# Invoke $ECHO with all args, space-separated.
 
2970
func_echo_all ()
 
2971
{
 
2972
    $ECHO ""
 
2973
}
 
2974
 
 
2975
case "$ECHO" in
 
2976
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
2977
$as_echo "printf" >&6; } ;;
 
2978
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
2979
$as_echo "print -r" >&6; } ;;
 
2980
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
2981
$as_echo "cat" >&6; } ;;
 
2982
esac
 
2983
 
 
2984
 
 
2985
 
 
2986
 
 
2987
 
 
2988
 
 
2989
 
 
2990
 
 
2991
 
 
2992
 
 
2993
 
 
2994
 
 
2995
 
 
2996
 
 
2997
DEPDIR="${am__leading_dot}deps"
 
2998
 
 
2999
ac_config_commands="$ac_config_commands depfiles"
 
3000
 
 
3001
 
 
3002
am_make=${MAKE-make}
 
3003
cat > confinc << 'END'
 
3004
am__doit:
 
3005
        @echo this is the am__doit target
 
3006
.PHONY: am__doit
 
3007
END
 
3008
# If we don't find an include directive, just comment out the code.
 
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3010
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3011
am__include="#"
 
3012
am__quote=
 
3013
_am_result=none
 
3014
# First try GNU make style include.
 
3015
echo "include confinc" > confmf
 
3016
# Ignore all kinds of additional output from `make'.
 
3017
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3018
*the\ am__doit\ target*)
 
3019
  am__include=include
 
3020
  am__quote=
 
3021
  _am_result=GNU
 
3022
  ;;
 
3023
esac
 
3024
# Now try BSD make style include.
 
3025
if test "$am__include" = "#"; then
 
3026
   echo '.include "confinc"' > confmf
 
3027
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3028
   *the\ am__doit\ target*)
 
3029
     am__include=.include
 
3030
     am__quote="\""
 
3031
     _am_result=BSD
 
3032
     ;;
 
3033
   esac
 
3034
fi
 
3035
 
 
3036
 
 
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3038
$as_echo "$_am_result" >&6; }
 
3039
rm -f confinc confmf
 
3040
 
 
3041
# Check whether --enable-dependency-tracking was given.
 
3042
if test "${enable_dependency_tracking+set}" = set; then :
 
3043
  enableval=$enable_dependency_tracking;
 
3044
fi
 
3045
 
 
3046
if test "x$enable_dependency_tracking" != xno; then
 
3047
  am_depcomp="$ac_aux_dir/depcomp"
 
3048
  AMDEPBACKSLASH='\'
 
3049
  am__nodep='_no'
 
3050
fi
 
3051
 if test "x$enable_dependency_tracking" != xno; then
 
3052
  AMDEP_TRUE=
 
3053
  AMDEP_FALSE='#'
 
3054
else
 
3055
  AMDEP_TRUE='#'
 
3056
  AMDEP_FALSE=
 
3057
fi
 
3058
 
 
3059
 
 
3060
ac_ext=c
 
3061
ac_cpp='$CPP $CPPFLAGS'
 
3062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3065
if test -n "$ac_tool_prefix"; then
 
3066
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3067
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3069
$as_echo_n "checking for $ac_word... " >&6; }
 
3070
if ${ac_cv_prog_CC+:} false; then :
 
3071
  $as_echo_n "(cached) " >&6
 
3072
else
 
3073
  if test -n "$CC"; then
 
3074
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3075
else
 
3076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3077
for as_dir in $PATH
 
3078
do
 
3079
  IFS=$as_save_IFS
 
3080
  test -z "$as_dir" && as_dir=.
 
3081
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3082
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3083
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3084
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3085
    break 2
 
3086
  fi
 
3087
done
 
3088
  done
 
3089
IFS=$as_save_IFS
 
3090
 
 
3091
fi
 
3092
fi
 
3093
CC=$ac_cv_prog_CC
 
3094
if test -n "$CC"; then
 
3095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3096
$as_echo "$CC" >&6; }
 
3097
else
 
3098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3099
$as_echo "no" >&6; }
 
3100
fi
 
3101
 
 
3102
 
 
3103
fi
 
3104
if test -z "$ac_cv_prog_CC"; then
 
3105
  ac_ct_CC=$CC
 
3106
  # Extract the first word of "gcc", so it can be a program name with args.
 
3107
set dummy gcc; ac_word=$2
 
3108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3109
$as_echo_n "checking for $ac_word... " >&6; }
 
3110
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3111
  $as_echo_n "(cached) " >&6
 
3112
else
 
3113
  if test -n "$ac_ct_CC"; then
 
3114
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3115
else
 
3116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3117
for as_dir in $PATH
 
3118
do
 
3119
  IFS=$as_save_IFS
 
3120
  test -z "$as_dir" && as_dir=.
 
3121
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3122
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3123
    ac_cv_prog_ac_ct_CC="gcc"
 
3124
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3125
    break 2
 
3126
  fi
 
3127
done
 
3128
  done
 
3129
IFS=$as_save_IFS
 
3130
 
 
3131
fi
 
3132
fi
 
3133
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3134
if test -n "$ac_ct_CC"; then
 
3135
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3136
$as_echo "$ac_ct_CC" >&6; }
 
3137
else
 
3138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3139
$as_echo "no" >&6; }
 
3140
fi
 
3141
 
 
3142
  if test "x$ac_ct_CC" = x; then
 
3143
    CC=""
 
3144
  else
 
3145
    case $cross_compiling:$ac_tool_warned in
 
3146
yes:)
 
3147
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3148
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3149
ac_tool_warned=yes ;;
 
3150
esac
 
3151
    CC=$ac_ct_CC
 
3152
  fi
 
3153
else
 
3154
  CC="$ac_cv_prog_CC"
 
3155
fi
 
3156
 
 
3157
if test -z "$CC"; then
 
3158
          if test -n "$ac_tool_prefix"; then
 
3159
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3160
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3162
$as_echo_n "checking for $ac_word... " >&6; }
 
3163
if ${ac_cv_prog_CC+:} false; then :
 
3164
  $as_echo_n "(cached) " >&6
 
3165
else
 
3166
  if test -n "$CC"; then
 
3167
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3168
else
 
3169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3170
for as_dir in $PATH
 
3171
do
 
3172
  IFS=$as_save_IFS
 
3173
  test -z "$as_dir" && as_dir=.
 
3174
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3175
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3176
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3177
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3178
    break 2
 
3179
  fi
 
3180
done
 
3181
  done
 
3182
IFS=$as_save_IFS
 
3183
 
 
3184
fi
 
3185
fi
 
3186
CC=$ac_cv_prog_CC
 
3187
if test -n "$CC"; then
 
3188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3189
$as_echo "$CC" >&6; }
 
3190
else
 
3191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3192
$as_echo "no" >&6; }
 
3193
fi
 
3194
 
 
3195
 
 
3196
  fi
 
3197
fi
 
3198
if test -z "$CC"; then
 
3199
  # Extract the first word of "cc", so it can be a program name with args.
 
3200
set dummy cc; ac_word=$2
 
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3202
$as_echo_n "checking for $ac_word... " >&6; }
 
3203
if ${ac_cv_prog_CC+:} false; then :
 
3204
  $as_echo_n "(cached) " >&6
 
3205
else
 
3206
  if test -n "$CC"; then
 
3207
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3208
else
 
3209
  ac_prog_rejected=no
 
3210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3211
for as_dir in $PATH
 
3212
do
 
3213
  IFS=$as_save_IFS
 
3214
  test -z "$as_dir" && as_dir=.
 
3215
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3216
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3217
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3218
       ac_prog_rejected=yes
 
3219
       continue
 
3220
     fi
 
3221
    ac_cv_prog_CC="cc"
 
3222
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3223
    break 2
 
3224
  fi
 
3225
done
 
3226
  done
 
3227
IFS=$as_save_IFS
 
3228
 
 
3229
if test $ac_prog_rejected = yes; then
 
3230
  # We found a bogon in the path, so make sure we never use it.
 
3231
  set dummy $ac_cv_prog_CC
 
3232
  shift
 
3233
  if test $# != 0; then
 
3234
    # We chose a different compiler from the bogus one.
 
3235
    # However, it has the same basename, so the bogon will be chosen
 
3236
    # first if we set CC to just the basename; use the full file name.
 
3237
    shift
 
3238
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3239
  fi
 
3240
fi
 
3241
fi
 
3242
fi
 
3243
CC=$ac_cv_prog_CC
 
3244
if test -n "$CC"; then
 
3245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3246
$as_echo "$CC" >&6; }
 
3247
else
 
3248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3249
$as_echo "no" >&6; }
 
3250
fi
 
3251
 
 
3252
 
 
3253
fi
 
3254
if test -z "$CC"; then
 
3255
  if test -n "$ac_tool_prefix"; then
 
3256
  for ac_prog in cl.exe
 
3257
  do
 
3258
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3259
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3261
$as_echo_n "checking for $ac_word... " >&6; }
 
3262
if ${ac_cv_prog_CC+:} false; then :
 
3263
  $as_echo_n "(cached) " >&6
 
3264
else
 
3265
  if test -n "$CC"; then
 
3266
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3267
else
 
3268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3269
for as_dir in $PATH
 
3270
do
 
3271
  IFS=$as_save_IFS
 
3272
  test -z "$as_dir" && as_dir=.
 
3273
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3274
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3275
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3276
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3277
    break 2
 
3278
  fi
 
3279
done
 
3280
  done
 
3281
IFS=$as_save_IFS
 
3282
 
 
3283
fi
 
3284
fi
 
3285
CC=$ac_cv_prog_CC
 
3286
if test -n "$CC"; then
 
3287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3288
$as_echo "$CC" >&6; }
 
3289
else
 
3290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3291
$as_echo "no" >&6; }
 
3292
fi
 
3293
 
 
3294
 
 
3295
    test -n "$CC" && break
 
3296
  done
 
3297
fi
 
3298
if test -z "$CC"; then
 
3299
  ac_ct_CC=$CC
 
3300
  for ac_prog in cl.exe
 
3301
do
 
3302
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3303
set dummy $ac_prog; ac_word=$2
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3305
$as_echo_n "checking for $ac_word... " >&6; }
 
3306
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3307
  $as_echo_n "(cached) " >&6
 
3308
else
 
3309
  if test -n "$ac_ct_CC"; then
 
3310
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3311
else
 
3312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3313
for as_dir in $PATH
 
3314
do
 
3315
  IFS=$as_save_IFS
 
3316
  test -z "$as_dir" && as_dir=.
 
3317
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3319
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3320
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3321
    break 2
 
3322
  fi
 
3323
done
 
3324
  done
 
3325
IFS=$as_save_IFS
 
3326
 
 
3327
fi
 
3328
fi
 
3329
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3330
if test -n "$ac_ct_CC"; then
 
3331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3332
$as_echo "$ac_ct_CC" >&6; }
 
3333
else
 
3334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3335
$as_echo "no" >&6; }
 
3336
fi
 
3337
 
 
3338
 
 
3339
  test -n "$ac_ct_CC" && break
 
3340
done
 
3341
 
 
3342
  if test "x$ac_ct_CC" = x; then
 
3343
    CC=""
 
3344
  else
 
3345
    case $cross_compiling:$ac_tool_warned in
 
3346
yes:)
 
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3348
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3349
ac_tool_warned=yes ;;
 
3350
esac
 
3351
    CC=$ac_ct_CC
 
3352
  fi
 
3353
fi
 
3354
 
 
3355
fi
 
3356
 
 
3357
 
 
3358
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3359
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3360
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3361
See \`config.log' for more details" "$LINENO" 5; }
 
3362
 
 
3363
# Provide some information about the compiler.
 
3364
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3365
set X $ac_compile
 
3366
ac_compiler=$2
 
3367
for ac_option in --version -v -V -qversion; do
 
3368
  { { ac_try="$ac_compiler $ac_option >&5"
 
3369
case "(($ac_try" in
 
3370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3371
  *) ac_try_echo=$ac_try;;
 
3372
esac
 
3373
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3374
$as_echo "$ac_try_echo"; } >&5
 
3375
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3376
  ac_status=$?
 
3377
  if test -s conftest.err; then
 
3378
    sed '10a\
 
3379
... rest of stderr output deleted ...
 
3380
         10q' conftest.err >conftest.er1
 
3381
    cat conftest.er1 >&5
 
3382
  fi
 
3383
  rm -f conftest.er1 conftest.err
 
3384
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3385
  test $ac_status = 0; }
 
3386
done
 
3387
 
 
3388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3389
/* end confdefs.h.  */
 
3390
 
 
3391
int
 
3392
main ()
 
3393
{
 
3394
 
 
3395
  ;
 
3396
  return 0;
 
3397
}
 
3398
_ACEOF
 
3399
ac_clean_files_save=$ac_clean_files
 
3400
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3401
# Try to create an executable without -o first, disregard a.out.
 
3402
# It will help us diagnose broken compilers, and finding out an intuition
 
3403
# of exeext.
 
3404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3405
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3406
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3407
 
 
3408
# The possible output files:
 
3409
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3410
 
 
3411
ac_rmfiles=
 
3412
for ac_file in $ac_files
 
3413
do
 
3414
  case $ac_file in
 
3415
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3416
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3417
  esac
 
3418
done
 
3419
rm -f $ac_rmfiles
 
3420
 
 
3421
if { { ac_try="$ac_link_default"
 
3422
case "(($ac_try" in
 
3423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3424
  *) ac_try_echo=$ac_try;;
 
3425
esac
 
3426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3427
$as_echo "$ac_try_echo"; } >&5
 
3428
  (eval "$ac_link_default") 2>&5
 
3429
  ac_status=$?
 
3430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3431
  test $ac_status = 0; }; then :
 
3432
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3433
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3434
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3435
# so that the user can short-circuit this test for compilers unknown to
 
3436
# Autoconf.
 
3437
for ac_file in $ac_files ''
 
3438
do
 
3439
  test -f "$ac_file" || continue
 
3440
  case $ac_file in
 
3441
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3442
        ;;
 
3443
    [ab].out )
 
3444
        # We found the default executable, but exeext='' is most
 
3445
        # certainly right.
 
3446
        break;;
 
3447
    *.* )
 
3448
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3449
        then :; else
 
3450
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3451
        fi
 
3452
        # We set ac_cv_exeext here because the later test for it is not
 
3453
        # safe: cross compilers may not add the suffix if given an `-o'
 
3454
        # argument, so we may need to know it at that point already.
 
3455
        # Even if this section looks crufty: it has the advantage of
 
3456
        # actually working.
 
3457
        break;;
 
3458
    * )
 
3459
        break;;
 
3460
  esac
 
3461
done
 
3462
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3463
 
 
3464
else
 
3465
  ac_file=''
 
3466
fi
 
3467
if test -z "$ac_file"; then :
 
3468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3469
$as_echo "no" >&6; }
 
3470
$as_echo "$as_me: failed program was:" >&5
 
3471
sed 's/^/| /' conftest.$ac_ext >&5
 
3472
 
 
3473
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3474
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3475
as_fn_error 77 "C compiler cannot create executables
 
3476
See \`config.log' for more details" "$LINENO" 5; }
 
3477
else
 
3478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3479
$as_echo "yes" >&6; }
 
3480
fi
 
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3482
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3484
$as_echo "$ac_file" >&6; }
 
3485
ac_exeext=$ac_cv_exeext
 
3486
 
 
3487
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3488
ac_clean_files=$ac_clean_files_save
 
3489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3490
$as_echo_n "checking for suffix of executables... " >&6; }
 
3491
if { { ac_try="$ac_link"
 
3492
case "(($ac_try" in
 
3493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3494
  *) ac_try_echo=$ac_try;;
 
3495
esac
 
3496
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3497
$as_echo "$ac_try_echo"; } >&5
 
3498
  (eval "$ac_link") 2>&5
 
3499
  ac_status=$?
 
3500
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3501
  test $ac_status = 0; }; then :
 
3502
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3503
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3504
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3505
# `rm'.
 
3506
for ac_file in conftest.exe conftest conftest.*; do
 
3507
  test -f "$ac_file" || continue
 
3508
  case $ac_file in
 
3509
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3510
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3511
          break;;
 
3512
    * ) break;;
 
3513
  esac
 
3514
done
 
3515
else
 
3516
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3517
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3518
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3519
See \`config.log' for more details" "$LINENO" 5; }
 
3520
fi
 
3521
rm -f conftest conftest$ac_cv_exeext
 
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3523
$as_echo "$ac_cv_exeext" >&6; }
 
3524
 
 
3525
rm -f conftest.$ac_ext
 
3526
EXEEXT=$ac_cv_exeext
 
3527
ac_exeext=$EXEEXT
 
3528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3529
/* end confdefs.h.  */
 
3530
#include <stdio.h>
 
3531
int
 
3532
main ()
 
3533
{
 
3534
FILE *f = fopen ("conftest.out", "w");
 
3535
 return ferror (f) || fclose (f) != 0;
 
3536
 
 
3537
  ;
 
3538
  return 0;
 
3539
}
 
3540
_ACEOF
 
3541
ac_clean_files="$ac_clean_files conftest.out"
 
3542
# Check that the compiler produces executables we can run.  If not, either
 
3543
# the compiler is broken, or we cross compile.
 
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3545
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3546
if test "$cross_compiling" != yes; then
 
3547
  { { ac_try="$ac_link"
 
3548
case "(($ac_try" in
 
3549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3550
  *) ac_try_echo=$ac_try;;
 
3551
esac
 
3552
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3553
$as_echo "$ac_try_echo"; } >&5
 
3554
  (eval "$ac_link") 2>&5
 
3555
  ac_status=$?
 
3556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3557
  test $ac_status = 0; }
 
3558
  if { ac_try='./conftest$ac_cv_exeext'
 
3559
  { { case "(($ac_try" in
 
3560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3561
  *) ac_try_echo=$ac_try;;
 
3562
esac
 
3563
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3564
$as_echo "$ac_try_echo"; } >&5
 
3565
  (eval "$ac_try") 2>&5
 
3566
  ac_status=$?
 
3567
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3568
  test $ac_status = 0; }; }; then
 
3569
    cross_compiling=no
 
3570
  else
 
3571
    if test "$cross_compiling" = maybe; then
 
3572
        cross_compiling=yes
 
3573
    else
 
3574
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3575
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3576
as_fn_error $? "cannot run C compiled programs.
 
3577
If you meant to cross compile, use \`--host'.
 
3578
See \`config.log' for more details" "$LINENO" 5; }
 
3579
    fi
 
3580
  fi
 
3581
fi
 
3582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3583
$as_echo "$cross_compiling" >&6; }
 
3584
 
 
3585
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3586
ac_clean_files=$ac_clean_files_save
 
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3588
$as_echo_n "checking for suffix of object files... " >&6; }
 
3589
if ${ac_cv_objext+:} false; then :
 
3590
  $as_echo_n "(cached) " >&6
 
3591
else
 
3592
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3593
/* end confdefs.h.  */
 
3594
 
 
3595
int
 
3596
main ()
 
3597
{
 
3598
 
 
3599
  ;
 
3600
  return 0;
 
3601
}
 
3602
_ACEOF
 
3603
rm -f conftest.o conftest.obj
 
3604
if { { ac_try="$ac_compile"
 
3605
case "(($ac_try" in
 
3606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3607
  *) ac_try_echo=$ac_try;;
 
3608
esac
 
3609
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3610
$as_echo "$ac_try_echo"; } >&5
 
3611
  (eval "$ac_compile") 2>&5
 
3612
  ac_status=$?
 
3613
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3614
  test $ac_status = 0; }; then :
 
3615
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3616
  test -f "$ac_file" || continue;
 
3617
  case $ac_file in
 
3618
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3619
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3620
       break;;
 
3621
  esac
 
3622
done
 
3623
else
 
3624
  $as_echo "$as_me: failed program was:" >&5
 
3625
sed 's/^/| /' conftest.$ac_ext >&5
 
3626
 
 
3627
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3628
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3629
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3630
See \`config.log' for more details" "$LINENO" 5; }
 
3631
fi
 
3632
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3633
fi
 
3634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3635
$as_echo "$ac_cv_objext" >&6; }
 
3636
OBJEXT=$ac_cv_objext
 
3637
ac_objext=$OBJEXT
 
3638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3639
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3640
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3641
  $as_echo_n "(cached) " >&6
 
3642
else
 
3643
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3644
/* end confdefs.h.  */
 
3645
 
 
3646
int
 
3647
main ()
 
3648
{
 
3649
#ifndef __GNUC__
 
3650
       choke me
 
3651
#endif
 
3652
 
 
3653
  ;
 
3654
  return 0;
 
3655
}
 
3656
_ACEOF
 
3657
if ac_fn_c_try_compile "$LINENO"; then :
 
3658
  ac_compiler_gnu=yes
 
3659
else
 
3660
  ac_compiler_gnu=no
 
3661
fi
 
3662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3663
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3664
 
 
3665
fi
 
3666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3667
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3668
if test $ac_compiler_gnu = yes; then
 
3669
  GCC=yes
 
3670
else
 
3671
  GCC=
 
3672
fi
 
3673
ac_test_CFLAGS=${CFLAGS+set}
 
3674
ac_save_CFLAGS=$CFLAGS
 
3675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3676
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3677
if ${ac_cv_prog_cc_g+:} false; then :
 
3678
  $as_echo_n "(cached) " >&6
 
3679
else
 
3680
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3681
   ac_c_werror_flag=yes
 
3682
   ac_cv_prog_cc_g=no
 
3683
   CFLAGS="-g"
 
3684
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3685
/* end confdefs.h.  */
 
3686
 
 
3687
int
 
3688
main ()
 
3689
{
 
3690
 
 
3691
  ;
 
3692
  return 0;
 
3693
}
 
3694
_ACEOF
 
3695
if ac_fn_c_try_compile "$LINENO"; then :
 
3696
  ac_cv_prog_cc_g=yes
 
3697
else
 
3698
  CFLAGS=""
 
3699
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3700
/* end confdefs.h.  */
 
3701
 
 
3702
int
 
3703
main ()
 
3704
{
 
3705
 
 
3706
  ;
 
3707
  return 0;
 
3708
}
 
3709
_ACEOF
 
3710
if ac_fn_c_try_compile "$LINENO"; then :
 
3711
 
 
3712
else
 
3713
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3714
         CFLAGS="-g"
 
3715
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3716
/* end confdefs.h.  */
 
3717
 
 
3718
int
 
3719
main ()
 
3720
{
 
3721
 
 
3722
  ;
 
3723
  return 0;
 
3724
}
 
3725
_ACEOF
 
3726
if ac_fn_c_try_compile "$LINENO"; then :
 
3727
  ac_cv_prog_cc_g=yes
 
3728
fi
 
3729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3730
fi
 
3731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3732
fi
 
3733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3734
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3735
fi
 
3736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3737
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3738
if test "$ac_test_CFLAGS" = set; then
 
3739
  CFLAGS=$ac_save_CFLAGS
 
3740
elif test $ac_cv_prog_cc_g = yes; then
 
3741
  if test "$GCC" = yes; then
 
3742
    CFLAGS="-g -O2"
 
3743
  else
 
3744
    CFLAGS="-g"
 
3745
  fi
 
3746
else
 
3747
  if test "$GCC" = yes; then
 
3748
    CFLAGS="-O2"
 
3749
  else
 
3750
    CFLAGS=
 
3751
  fi
 
3752
fi
 
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3754
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3755
if ${ac_cv_prog_cc_c89+:} false; then :
 
3756
  $as_echo_n "(cached) " >&6
 
3757
else
 
3758
  ac_cv_prog_cc_c89=no
 
3759
ac_save_CC=$CC
 
3760
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3761
/* end confdefs.h.  */
 
3762
#include <stdarg.h>
 
3763
#include <stdio.h>
 
3764
#include <sys/types.h>
 
3765
#include <sys/stat.h>
 
3766
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3767
struct buf { int x; };
 
3768
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3769
static char *e (p, i)
 
3770
     char **p;
 
3771
     int i;
 
3772
{
 
3773
  return p[i];
 
3774
}
 
3775
static char *f (char * (*g) (char **, int), char **p, ...)
 
3776
{
 
3777
  char *s;
 
3778
  va_list v;
 
3779
  va_start (v,p);
 
3780
  s = g (p, va_arg (v,int));
 
3781
  va_end (v);
 
3782
  return s;
 
3783
}
 
3784
 
 
3785
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3786
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3787
   These don't provoke an error unfortunately, instead are silently treated
 
3788
   as 'x'.  The following induces an error, until -std is added to get
 
3789
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3790
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3791
   that's true only with -std.  */
 
3792
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3793
 
 
3794
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3795
   inside strings and character constants.  */
 
3796
#define FOO(x) 'x'
 
3797
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3798
 
 
3799
int test (int i, double x);
 
3800
struct s1 {int (*f) (int a);};
 
3801
struct s2 {int (*f) (double a);};
 
3802
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3803
int argc;
 
3804
char **argv;
 
3805
int
 
3806
main ()
 
3807
{
 
3808
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3809
  ;
 
3810
  return 0;
 
3811
}
 
3812
_ACEOF
 
3813
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3814
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3815
do
 
3816
  CC="$ac_save_CC $ac_arg"
 
3817
  if ac_fn_c_try_compile "$LINENO"; then :
 
3818
  ac_cv_prog_cc_c89=$ac_arg
 
3819
fi
 
3820
rm -f core conftest.err conftest.$ac_objext
 
3821
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3822
done
 
3823
rm -f conftest.$ac_ext
 
3824
CC=$ac_save_CC
 
3825
 
 
3826
fi
 
3827
# AC_CACHE_VAL
 
3828
case "x$ac_cv_prog_cc_c89" in
 
3829
  x)
 
3830
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3831
$as_echo "none needed" >&6; } ;;
 
3832
  xno)
 
3833
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3834
$as_echo "unsupported" >&6; } ;;
 
3835
  *)
 
3836
    CC="$CC $ac_cv_prog_cc_c89"
 
3837
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3838
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3839
esac
 
3840
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3841
 
 
3842
fi
 
3843
 
 
3844
ac_ext=c
 
3845
ac_cpp='$CPP $CPPFLAGS'
 
3846
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3847
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3848
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3849
 
 
3850
depcc="$CC"   am_compiler_list=
 
3851
 
 
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3853
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3854
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3855
  $as_echo_n "(cached) " >&6
 
3856
else
 
3857
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3858
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3859
  # making bogus files that we don't know about and never remove.  For
 
3860
  # instance it was reported that on HP-UX the gcc test will end up
 
3861
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3862
  # in D'.
 
3863
  rm -rf conftest.dir
 
3864
  mkdir conftest.dir
 
3865
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3866
  # using a relative directory.
 
3867
  cp "$am_depcomp" conftest.dir
 
3868
  cd conftest.dir
 
3869
  # We will build objects and dependencies in a subdirectory because
 
3870
  # it helps to detect inapplicable dependency modes.  For instance
 
3871
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3872
  # side effect of compilation, but ICC will put the dependencies in
 
3873
  # the current directory while Tru64 will put them in the object
 
3874
  # directory.
 
3875
  mkdir sub
 
3876
 
 
3877
  am_cv_CC_dependencies_compiler_type=none
 
3878
  if test "$am_compiler_list" = ""; then
 
3879
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3880
  fi
 
3881
  am__universal=false
 
3882
  case " $depcc " in #(
 
3883
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3884
     esac
 
3885
 
 
3886
  for depmode in $am_compiler_list; do
 
3887
    # Setup a source with many dependencies, because some compilers
 
3888
    # like to wrap large dependency lists on column 80 (with \), and
 
3889
    # we should not choose a depcomp mode which is confused by this.
 
3890
    #
 
3891
    # We need to recreate these files for each test, as the compiler may
 
3892
    # overwrite some of them when testing with obscure command lines.
 
3893
    # This happens at least with the AIX C compiler.
 
3894
    : > sub/conftest.c
 
3895
    for i in 1 2 3 4 5 6; do
 
3896
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3897
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3898
      # Solaris 8's {/usr,}/bin/sh.
 
3899
      touch sub/conftst$i.h
 
3900
    done
 
3901
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3902
 
 
3903
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3904
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3905
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3906
    # versions had trouble with output in subdirs
 
3907
    am__obj=sub/conftest.${OBJEXT-o}
 
3908
    am__minus_obj="-o $am__obj"
 
3909
    case $depmode in
 
3910
    gcc)
 
3911
      # This depmode causes a compiler race in universal mode.
 
3912
      test "$am__universal" = false || continue
 
3913
      ;;
 
3914
    nosideeffect)
 
3915
      # after this tag, mechanisms are not by side-effect, so they'll
 
3916
      # only be used when explicitly requested
 
3917
      if test "x$enable_dependency_tracking" = xyes; then
 
3918
        continue
 
3919
      else
 
3920
        break
 
3921
      fi
 
3922
      ;;
 
3923
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3924
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3925
      # not run yet.  These depmodes are late enough in the game, and
 
3926
      # so weak that their functioning should not be impacted.
 
3927
      am__obj=conftest.${OBJEXT-o}
 
3928
      am__minus_obj=
 
3929
      ;;
 
3930
    none) break ;;
 
3931
    esac
 
3932
    if depmode=$depmode \
 
3933
       source=sub/conftest.c object=$am__obj \
 
3934
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3935
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3936
         >/dev/null 2>conftest.err &&
 
3937
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3938
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3939
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3940
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3941
      # icc doesn't choke on unknown options, it will just issue warnings
 
3942
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3943
      # that says an option was ignored or not supported.
 
3944
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3945
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3946
      # The diagnosis changed in icc 8.0:
 
3947
      #   icc: Command line remark: option '-MP' not supported
 
3948
      if (grep 'ignoring option' conftest.err ||
 
3949
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3950
        am_cv_CC_dependencies_compiler_type=$depmode
 
3951
        break
 
3952
      fi
 
3953
    fi
 
3954
  done
 
3955
 
 
3956
  cd ..
 
3957
  rm -rf conftest.dir
 
3958
else
 
3959
  am_cv_CC_dependencies_compiler_type=none
 
3960
fi
 
3961
 
 
3962
fi
 
3963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3964
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3965
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3966
 
 
3967
 if
 
3968
  test "x$enable_dependency_tracking" != xno \
 
3969
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3970
  am__fastdepCC_TRUE=
 
3971
  am__fastdepCC_FALSE='#'
 
3972
else
 
3973
  am__fastdepCC_TRUE='#'
 
3974
  am__fastdepCC_FALSE=
 
3975
fi
 
3976
 
 
3977
 
 
3978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
3979
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3980
if ${ac_cv_path_SED+:} false; then :
 
3981
  $as_echo_n "(cached) " >&6
 
3982
else
 
3983
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3984
     for ac_i in 1 2 3 4 5 6 7; do
 
3985
       ac_script="$ac_script$as_nl$ac_script"
 
3986
     done
 
3987
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3988
     { ac_script=; unset ac_script;}
 
3989
     if test -z "$SED"; then
 
3990
  ac_path_SED_found=false
 
3991
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3992
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3993
for as_dir in $PATH
 
3994
do
 
3995
  IFS=$as_save_IFS
 
3996
  test -z "$as_dir" && as_dir=.
 
3997
    for ac_prog in sed gsed; do
 
3998
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3999
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4000
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4001
# Check for GNU ac_path_SED and select it if it is found.
 
4002
  # Check for GNU $ac_path_SED
 
4003
case `"$ac_path_SED" --version 2>&1` in
 
4004
*GNU*)
 
4005
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4006
*)
 
4007
  ac_count=0
 
4008
  $as_echo_n 0123456789 >"conftest.in"
 
4009
  while :
 
4010
  do
 
4011
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4012
    mv "conftest.tmp" "conftest.in"
 
4013
    cp "conftest.in" "conftest.nl"
 
4014
    $as_echo '' >> "conftest.nl"
 
4015
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4016
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4017
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4018
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4019
      # Best one so far, save it but keep looking for a better one
 
4020
      ac_cv_path_SED="$ac_path_SED"
 
4021
      ac_path_SED_max=$ac_count
 
4022
    fi
 
4023
    # 10*(2^10) chars as input seems more than enough
 
4024
    test $ac_count -gt 10 && break
 
4025
  done
 
4026
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4027
esac
 
4028
 
 
4029
      $ac_path_SED_found && break 3
 
4030
    done
 
4031
  done
 
4032
  done
 
4033
IFS=$as_save_IFS
 
4034
  if test -z "$ac_cv_path_SED"; then
 
4035
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4036
  fi
 
4037
else
 
4038
  ac_cv_path_SED=$SED
 
4039
fi
 
4040
 
 
4041
fi
 
4042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4043
$as_echo "$ac_cv_path_SED" >&6; }
 
4044
 SED="$ac_cv_path_SED"
 
4045
  rm -f conftest.sed
 
4046
 
 
4047
test -z "$SED" && SED=sed
 
4048
Xsed="$SED -e 1s/^X//"
 
4049
 
 
4050
 
 
4051
 
 
4052
 
 
4053
 
 
4054
 
 
4055
 
 
4056
 
 
4057
 
 
4058
 
 
4059
 
 
4060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4061
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4062
if ${ac_cv_path_GREP+:} false; then :
 
4063
  $as_echo_n "(cached) " >&6
 
4064
else
 
4065
  if test -z "$GREP"; then
 
4066
  ac_path_GREP_found=false
 
4067
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4068
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4069
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4070
do
 
4071
  IFS=$as_save_IFS
 
4072
  test -z "$as_dir" && as_dir=.
 
4073
    for ac_prog in grep ggrep; do
 
4074
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4075
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4076
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4077
# Check for GNU ac_path_GREP and select it if it is found.
 
4078
  # Check for GNU $ac_path_GREP
 
4079
case `"$ac_path_GREP" --version 2>&1` in
 
4080
*GNU*)
 
4081
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4082
*)
 
4083
  ac_count=0
 
4084
  $as_echo_n 0123456789 >"conftest.in"
 
4085
  while :
 
4086
  do
 
4087
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4088
    mv "conftest.tmp" "conftest.in"
 
4089
    cp "conftest.in" "conftest.nl"
 
4090
    $as_echo 'GREP' >> "conftest.nl"
 
4091
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4092
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4093
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4094
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4095
      # Best one so far, save it but keep looking for a better one
 
4096
      ac_cv_path_GREP="$ac_path_GREP"
 
4097
      ac_path_GREP_max=$ac_count
 
4098
    fi
 
4099
    # 10*(2^10) chars as input seems more than enough
 
4100
    test $ac_count -gt 10 && break
 
4101
  done
 
4102
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4103
esac
 
4104
 
 
4105
      $ac_path_GREP_found && break 3
 
4106
    done
 
4107
  done
 
4108
  done
 
4109
IFS=$as_save_IFS
 
4110
  if test -z "$ac_cv_path_GREP"; then
 
4111
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4112
  fi
 
4113
else
 
4114
  ac_cv_path_GREP=$GREP
 
4115
fi
 
4116
 
 
4117
fi
 
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4119
$as_echo "$ac_cv_path_GREP" >&6; }
 
4120
 GREP="$ac_cv_path_GREP"
 
4121
 
 
4122
 
 
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4124
$as_echo_n "checking for egrep... " >&6; }
 
4125
if ${ac_cv_path_EGREP+:} false; then :
 
4126
  $as_echo_n "(cached) " >&6
 
4127
else
 
4128
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4129
   then ac_cv_path_EGREP="$GREP -E"
 
4130
   else
 
4131
     if test -z "$EGREP"; then
 
4132
  ac_path_EGREP_found=false
 
4133
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4134
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4135
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4136
do
 
4137
  IFS=$as_save_IFS
 
4138
  test -z "$as_dir" && as_dir=.
 
4139
    for ac_prog in egrep; do
 
4140
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4141
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4142
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4143
# Check for GNU ac_path_EGREP and select it if it is found.
 
4144
  # Check for GNU $ac_path_EGREP
 
4145
case `"$ac_path_EGREP" --version 2>&1` in
 
4146
*GNU*)
 
4147
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4148
*)
 
4149
  ac_count=0
 
4150
  $as_echo_n 0123456789 >"conftest.in"
 
4151
  while :
 
4152
  do
 
4153
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4154
    mv "conftest.tmp" "conftest.in"
 
4155
    cp "conftest.in" "conftest.nl"
 
4156
    $as_echo 'EGREP' >> "conftest.nl"
 
4157
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4158
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4159
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4160
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4161
      # Best one so far, save it but keep looking for a better one
 
4162
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4163
      ac_path_EGREP_max=$ac_count
 
4164
    fi
 
4165
    # 10*(2^10) chars as input seems more than enough
 
4166
    test $ac_count -gt 10 && break
 
4167
  done
 
4168
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4169
esac
 
4170
 
 
4171
      $ac_path_EGREP_found && break 3
 
4172
    done
 
4173
  done
 
4174
  done
 
4175
IFS=$as_save_IFS
 
4176
  if test -z "$ac_cv_path_EGREP"; then
 
4177
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4178
  fi
 
4179
else
 
4180
  ac_cv_path_EGREP=$EGREP
 
4181
fi
 
4182
 
 
4183
   fi
 
4184
fi
 
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4186
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4187
 EGREP="$ac_cv_path_EGREP"
 
4188
 
 
4189
 
 
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4191
$as_echo_n "checking for fgrep... " >&6; }
 
4192
if ${ac_cv_path_FGREP+:} false; then :
 
4193
  $as_echo_n "(cached) " >&6
 
4194
else
 
4195
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4196
   then ac_cv_path_FGREP="$GREP -F"
 
4197
   else
 
4198
     if test -z "$FGREP"; then
 
4199
  ac_path_FGREP_found=false
 
4200
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4201
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4202
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4203
do
 
4204
  IFS=$as_save_IFS
 
4205
  test -z "$as_dir" && as_dir=.
 
4206
    for ac_prog in fgrep; do
 
4207
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4208
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4209
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4210
# Check for GNU ac_path_FGREP and select it if it is found.
 
4211
  # Check for GNU $ac_path_FGREP
 
4212
case `"$ac_path_FGREP" --version 2>&1` in
 
4213
*GNU*)
 
4214
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4215
*)
 
4216
  ac_count=0
 
4217
  $as_echo_n 0123456789 >"conftest.in"
 
4218
  while :
 
4219
  do
 
4220
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4221
    mv "conftest.tmp" "conftest.in"
 
4222
    cp "conftest.in" "conftest.nl"
 
4223
    $as_echo 'FGREP' >> "conftest.nl"
 
4224
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4225
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4226
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4227
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4228
      # Best one so far, save it but keep looking for a better one
 
4229
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4230
      ac_path_FGREP_max=$ac_count
 
4231
    fi
 
4232
    # 10*(2^10) chars as input seems more than enough
 
4233
    test $ac_count -gt 10 && break
 
4234
  done
 
4235
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4236
esac
 
4237
 
 
4238
      $ac_path_FGREP_found && break 3
 
4239
    done
 
4240
  done
 
4241
  done
 
4242
IFS=$as_save_IFS
 
4243
  if test -z "$ac_cv_path_FGREP"; then
 
4244
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4245
  fi
 
4246
else
 
4247
  ac_cv_path_FGREP=$FGREP
 
4248
fi
 
4249
 
 
4250
   fi
 
4251
fi
 
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4253
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4254
 FGREP="$ac_cv_path_FGREP"
 
4255
 
 
4256
 
 
4257
test -z "$GREP" && GREP=grep
 
4258
 
 
4259
 
 
4260
 
 
4261
 
 
4262
 
 
4263
 
 
4264
 
 
4265
 
 
4266
 
 
4267
 
 
4268
 
 
4269
 
 
4270
 
 
4271
 
 
4272
 
 
4273
 
 
4274
 
 
4275
 
 
4276
 
 
4277
# Check whether --with-gnu-ld was given.
 
4278
if test "${with_gnu_ld+set}" = set; then :
 
4279
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4280
else
 
4281
  with_gnu_ld=no
 
4282
fi
 
4283
 
 
4284
ac_prog=ld
 
4285
if test "$GCC" = yes; then
 
4286
  # Check if gcc -print-prog-name=ld gives a path.
 
4287
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4288
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4289
  case $host in
 
4290
  *-*-mingw*)
 
4291
    # gcc leaves a trailing carriage return which upsets mingw
 
4292
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4293
  *)
 
4294
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4295
  esac
 
4296
  case $ac_prog in
 
4297
    # Accept absolute paths.
 
4298
    [\\/]* | ?:[\\/]*)
 
4299
      re_direlt='/[^/][^/]*/\.\./'
 
4300
      # Canonicalize the pathname of ld
 
4301
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4302
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4303
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4304
      done
 
4305
      test -z "$LD" && LD="$ac_prog"
 
4306
      ;;
 
4307
  "")
 
4308
    # If it fails, then pretend we aren't using GCC.
 
4309
    ac_prog=ld
 
4310
    ;;
 
4311
  *)
 
4312
    # If it is relative, then search for the first ld in PATH.
 
4313
    with_gnu_ld=unknown
 
4314
    ;;
 
4315
  esac
 
4316
elif test "$with_gnu_ld" = yes; then
 
4317
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4318
$as_echo_n "checking for GNU ld... " >&6; }
 
4319
else
 
4320
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4321
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4322
fi
 
4323
if ${lt_cv_path_LD+:} false; then :
 
4324
  $as_echo_n "(cached) " >&6
 
4325
else
 
4326
  if test -z "$LD"; then
 
4327
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4328
  for ac_dir in $PATH; do
 
4329
    IFS="$lt_save_ifs"
 
4330
    test -z "$ac_dir" && ac_dir=.
 
4331
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4332
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4333
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4334
      # but apparently some variants of GNU ld only accept -v.
 
4335
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4336
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4337
      *GNU* | *'with BFD'*)
 
4338
        test "$with_gnu_ld" != no && break
 
4339
        ;;
 
4340
      *)
 
4341
        test "$with_gnu_ld" != yes && break
 
4342
        ;;
 
4343
      esac
 
4344
    fi
 
4345
  done
 
4346
  IFS="$lt_save_ifs"
 
4347
else
 
4348
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4349
fi
 
4350
fi
 
4351
 
 
4352
LD="$lt_cv_path_LD"
 
4353
if test -n "$LD"; then
 
4354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4355
$as_echo "$LD" >&6; }
 
4356
else
 
4357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4358
$as_echo "no" >&6; }
 
4359
fi
 
4360
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4362
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4363
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4364
  $as_echo_n "(cached) " >&6
 
4365
else
 
4366
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4367
case `$LD -v 2>&1 </dev/null` in
 
4368
*GNU* | *'with BFD'*)
 
4369
  lt_cv_prog_gnu_ld=yes
 
4370
  ;;
 
4371
*)
 
4372
  lt_cv_prog_gnu_ld=no
 
4373
  ;;
 
4374
esac
 
4375
fi
 
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4377
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4378
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4379
 
 
4380
 
 
4381
 
 
4382
 
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4389
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4390
if ${lt_cv_path_NM+:} false; then :
 
4391
  $as_echo_n "(cached) " >&6
 
4392
else
 
4393
  if test -n "$NM"; then
 
4394
  # Let the user override the test.
 
4395
  lt_cv_path_NM="$NM"
 
4396
else
 
4397
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4398
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4399
    lt_nm_to_check="$lt_nm_to_check nm"
 
4400
  fi
 
4401
  for lt_tmp_nm in $lt_nm_to_check; do
 
4402
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4403
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4404
      IFS="$lt_save_ifs"
 
4405
      test -z "$ac_dir" && ac_dir=.
 
4406
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4407
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4408
        # Check to see if the nm accepts a BSD-compat flag.
 
4409
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4410
        #   nm: unknown option "B" ignored
 
4411
        # Tru64's nm complains that /dev/null is an invalid object file
 
4412
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4413
        */dev/null* | *'Invalid file or object type'*)
 
4414
          lt_cv_path_NM="$tmp_nm -B"
 
4415
          break
 
4416
          ;;
 
4417
        *)
 
4418
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4419
          */dev/null*)
 
4420
            lt_cv_path_NM="$tmp_nm -p"
 
4421
            break
 
4422
            ;;
 
4423
          *)
 
4424
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4425
            continue # so that we can try to find one that supports BSD flags
 
4426
            ;;
 
4427
          esac
 
4428
          ;;
 
4429
        esac
 
4430
      fi
 
4431
    done
 
4432
    IFS="$lt_save_ifs"
 
4433
  done
 
4434
  : ${lt_cv_path_NM=no}
 
4435
fi
 
4436
fi
 
4437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4438
$as_echo "$lt_cv_path_NM" >&6; }
 
4439
if test "$lt_cv_path_NM" != "no"; then
 
4440
  NM="$lt_cv_path_NM"
 
4441
else
 
4442
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4443
  if test -n "$DUMPBIN"; then :
 
4444
    # Let the user override the test.
 
4445
  else
 
4446
    if test -n "$ac_tool_prefix"; then
 
4447
  for ac_prog in dumpbin "link -dump"
 
4448
  do
 
4449
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4452
$as_echo_n "checking for $ac_word... " >&6; }
 
4453
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4454
  $as_echo_n "(cached) " >&6
 
4455
else
 
4456
  if test -n "$DUMPBIN"; then
 
4457
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4458
else
 
4459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4460
for as_dir in $PATH
 
4461
do
 
4462
  IFS=$as_save_IFS
 
4463
  test -z "$as_dir" && as_dir=.
 
4464
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4465
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4466
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4467
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4468
    break 2
 
4469
  fi
 
4470
done
 
4471
  done
 
4472
IFS=$as_save_IFS
 
4473
 
 
4474
fi
 
4475
fi
 
4476
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4477
if test -n "$DUMPBIN"; then
 
4478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4479
$as_echo "$DUMPBIN" >&6; }
 
4480
else
 
4481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4482
$as_echo "no" >&6; }
 
4483
fi
 
4484
 
 
4485
 
 
4486
    test -n "$DUMPBIN" && break
 
4487
  done
 
4488
fi
 
4489
if test -z "$DUMPBIN"; then
 
4490
  ac_ct_DUMPBIN=$DUMPBIN
 
4491
  for ac_prog in dumpbin "link -dump"
 
4492
do
 
4493
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4494
set dummy $ac_prog; ac_word=$2
 
4495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4496
$as_echo_n "checking for $ac_word... " >&6; }
 
4497
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4498
  $as_echo_n "(cached) " >&6
 
4499
else
 
4500
  if test -n "$ac_ct_DUMPBIN"; then
 
4501
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4502
else
 
4503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4504
for as_dir in $PATH
 
4505
do
 
4506
  IFS=$as_save_IFS
 
4507
  test -z "$as_dir" && as_dir=.
 
4508
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4509
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4510
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4512
    break 2
 
4513
  fi
 
4514
done
 
4515
  done
 
4516
IFS=$as_save_IFS
 
4517
 
 
4518
fi
 
4519
fi
 
4520
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4521
if test -n "$ac_ct_DUMPBIN"; then
 
4522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4523
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4524
else
 
4525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4526
$as_echo "no" >&6; }
 
4527
fi
 
4528
 
 
4529
 
 
4530
  test -n "$ac_ct_DUMPBIN" && break
 
4531
done
 
4532
 
 
4533
  if test "x$ac_ct_DUMPBIN" = x; then
 
4534
    DUMPBIN=":"
 
4535
  else
 
4536
    case $cross_compiling:$ac_tool_warned in
 
4537
yes:)
 
4538
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4539
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4540
ac_tool_warned=yes ;;
 
4541
esac
 
4542
    DUMPBIN=$ac_ct_DUMPBIN
 
4543
  fi
 
4544
fi
 
4545
 
 
4546
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4547
    *COFF*)
 
4548
      DUMPBIN="$DUMPBIN -symbols"
 
4549
      ;;
 
4550
    *)
 
4551
      DUMPBIN=:
 
4552
      ;;
 
4553
    esac
 
4554
  fi
 
4555
 
 
4556
  if test "$DUMPBIN" != ":"; then
 
4557
    NM="$DUMPBIN"
 
4558
  fi
 
4559
fi
 
4560
test -z "$NM" && NM=nm
 
4561
 
 
4562
 
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4568
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4569
if ${lt_cv_nm_interface+:} false; then :
 
4570
  $as_echo_n "(cached) " >&6
 
4571
else
 
4572
  lt_cv_nm_interface="BSD nm"
 
4573
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4574
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4575
  (eval "$ac_compile" 2>conftest.err)
 
4576
  cat conftest.err >&5
 
4577
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4578
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4579
  cat conftest.err >&5
 
4580
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4581
  cat conftest.out >&5
 
4582
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4583
    lt_cv_nm_interface="MS dumpbin"
 
4584
  fi
 
4585
  rm -f conftest*
 
4586
fi
 
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4588
$as_echo "$lt_cv_nm_interface" >&6; }
 
4589
 
 
4590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4591
$as_echo_n "checking whether ln -s works... " >&6; }
 
4592
LN_S=$as_ln_s
 
4593
if test "$LN_S" = "ln -s"; then
 
4594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4595
$as_echo "yes" >&6; }
 
4596
else
 
4597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4598
$as_echo "no, using $LN_S" >&6; }
 
4599
fi
 
4600
 
 
4601
# find the maximum length of command line arguments
 
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4603
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4604
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4605
  $as_echo_n "(cached) " >&6
 
4606
else
 
4607
    i=0
 
4608
  teststring="ABCD"
 
4609
 
 
4610
  case $build_os in
 
4611
  msdosdjgpp*)
 
4612
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4613
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4614
    # during glob expansion).  Even if it were fixed, the result of this
 
4615
    # check would be larger than it should be.
 
4616
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4617
    ;;
 
4618
 
 
4619
  gnu*)
 
4620
    # Under GNU Hurd, this test is not required because there is
 
4621
    # no limit to the length of command line arguments.
 
4622
    # Libtool will interpret -1 as no limit whatsoever
 
4623
    lt_cv_sys_max_cmd_len=-1;
 
4624
    ;;
 
4625
 
 
4626
  cygwin* | mingw* | cegcc*)
 
4627
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4628
    # about 5 minutes as the teststring grows exponentially.
 
4629
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4630
    # you end up with a "frozen" computer, even though with patience
 
4631
    # the test eventually succeeds (with a max line length of 256k).
 
4632
    # Instead, let's just punt: use the minimum linelength reported by
 
4633
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4634
    lt_cv_sys_max_cmd_len=8192;
 
4635
    ;;
 
4636
 
 
4637
  mint*)
 
4638
    # On MiNT this can take a long time and run out of memory.
 
4639
    lt_cv_sys_max_cmd_len=8192;
 
4640
    ;;
 
4641
 
 
4642
  amigaos*)
 
4643
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4644
    # So we just punt and use a minimum line length of 8192.
 
4645
    lt_cv_sys_max_cmd_len=8192;
 
4646
    ;;
 
4647
 
 
4648
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4649
    # This has been around since 386BSD, at least.  Likely further.
 
4650
    if test -x /sbin/sysctl; then
 
4651
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4652
    elif test -x /usr/sbin/sysctl; then
 
4653
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4654
    else
 
4655
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4656
    fi
 
4657
    # And add a safety zone
 
4658
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4659
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4660
    ;;
 
4661
 
 
4662
  interix*)
 
4663
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4664
    lt_cv_sys_max_cmd_len=196608
 
4665
    ;;
 
4666
 
 
4667
  os2*)
 
4668
    # The test takes a long time on OS/2.
 
4669
    lt_cv_sys_max_cmd_len=8192
 
4670
    ;;
 
4671
 
 
4672
  osf*)
 
4673
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4674
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4675
    # nice to cause kernel panics so lets avoid the loop below.
 
4676
    # First set a reasonable default.
 
4677
    lt_cv_sys_max_cmd_len=16384
 
4678
    #
 
4679
    if test -x /sbin/sysconfig; then
 
4680
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4681
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4682
      esac
 
4683
    fi
 
4684
    ;;
 
4685
  sco3.2v5*)
 
4686
    lt_cv_sys_max_cmd_len=102400
 
4687
    ;;
 
4688
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4689
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4690
    if test -n "$kargmax"; then
 
4691
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4692
    else
 
4693
      lt_cv_sys_max_cmd_len=32768
 
4694
    fi
 
4695
    ;;
 
4696
  *)
 
4697
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4698
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4699
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4700
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4701
    else
 
4702
      # Make teststring a little bigger before we do anything with it.
 
4703
      # a 1K string should be a reasonable start.
 
4704
      for i in 1 2 3 4 5 6 7 8 ; do
 
4705
        teststring=$teststring$teststring
 
4706
      done
 
4707
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4708
      # If test is not a shell built-in, we'll probably end up computing a
 
4709
      # maximum length that is only half of the actual maximum length, but
 
4710
      # we can't tell.
 
4711
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
4712
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4713
              test $i != 17 # 1/2 MB should be enough
 
4714
      do
 
4715
        i=`expr $i + 1`
 
4716
        teststring=$teststring$teststring
 
4717
      done
 
4718
      # Only check the string length outside the loop.
 
4719
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4720
      teststring=
 
4721
      # Add a significant safety factor because C++ compilers can tack on
 
4722
      # massive amounts of additional arguments before passing them to the
 
4723
      # linker.  It appears as though 1/2 is a usable value.
 
4724
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4725
    fi
 
4726
    ;;
 
4727
  esac
 
4728
 
 
4729
fi
 
4730
 
 
4731
if test -n $lt_cv_sys_max_cmd_len ; then
 
4732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4733
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4734
else
 
4735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4736
$as_echo "none" >&6; }
 
4737
fi
 
4738
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
: ${CP="cp -f"}
 
4746
: ${MV="mv -f"}
 
4747
: ${RM="rm -f"}
 
4748
 
 
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4750
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4751
# Try some XSI features
 
4752
xsi_shell=no
 
4753
( _lt_dummy="a/b/c"
 
4754
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4755
      = c,a/b,b/c, \
 
4756
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4757
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4758
  && xsi_shell=yes
 
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4760
$as_echo "$xsi_shell" >&6; }
 
4761
 
 
4762
 
 
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4764
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4765
lt_shell_append=no
 
4766
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4767
    >/dev/null 2>&1 \
 
4768
  && lt_shell_append=yes
 
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4770
$as_echo "$lt_shell_append" >&6; }
 
4771
 
 
4772
 
 
4773
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4774
  lt_unset=unset
 
4775
else
 
4776
  lt_unset=false
 
4777
fi
 
4778
 
 
4779
 
 
4780
 
 
4781
 
 
4782
 
 
4783
# test EBCDIC or ASCII
 
4784
case `echo X|tr X '\101'` in
 
4785
 A) # ASCII based system
 
4786
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4787
  lt_SP2NL='tr \040 \012'
 
4788
  lt_NL2SP='tr \015\012 \040\040'
 
4789
  ;;
 
4790
 *) # EBCDIC based system
 
4791
  lt_SP2NL='tr \100 \n'
 
4792
  lt_NL2SP='tr \r\n \100\100'
 
4793
  ;;
 
4794
esac
 
4795
 
 
4796
 
 
4797
 
 
4798
 
 
4799
 
 
4800
 
 
4801
 
 
4802
 
 
4803
 
 
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4805
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4806
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4807
  $as_echo_n "(cached) " >&6
 
4808
else
 
4809
  case $host in
 
4810
  *-*-mingw* )
 
4811
    case $build in
 
4812
      *-*-mingw* ) # actually msys
 
4813
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4814
        ;;
 
4815
      *-*-cygwin* )
 
4816
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4817
        ;;
 
4818
      * ) # otherwise, assume *nix
 
4819
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4820
        ;;
 
4821
    esac
 
4822
    ;;
 
4823
  *-*-cygwin* )
 
4824
    case $build in
 
4825
      *-*-mingw* ) # actually msys
 
4826
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4827
        ;;
 
4828
      *-*-cygwin* )
 
4829
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4830
        ;;
 
4831
      * ) # otherwise, assume *nix
 
4832
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4833
        ;;
 
4834
    esac
 
4835
    ;;
 
4836
  * ) # unhandled hosts (and "normal" native builds)
 
4837
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4838
    ;;
 
4839
esac
 
4840
 
 
4841
fi
 
4842
 
 
4843
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4845
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4846
 
 
4847
 
 
4848
 
 
4849
 
 
4850
 
 
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4852
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4853
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4854
  $as_echo_n "(cached) " >&6
 
4855
else
 
4856
  #assume ordinary cross tools, or native build.
 
4857
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4858
case $host in
 
4859
  *-*-mingw* )
 
4860
    case $build in
 
4861
      *-*-mingw* ) # actually msys
 
4862
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4863
        ;;
 
4864
    esac
 
4865
    ;;
 
4866
esac
 
4867
 
 
4868
fi
 
4869
 
 
4870
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
4871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
4872
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
4873
 
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4879
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4880
if ${lt_cv_ld_reload_flag+:} false; then :
 
4881
  $as_echo_n "(cached) " >&6
 
4882
else
 
4883
  lt_cv_ld_reload_flag='-r'
 
4884
fi
 
4885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4886
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4887
reload_flag=$lt_cv_ld_reload_flag
 
4888
case $reload_flag in
 
4889
"" | " "*) ;;
 
4890
*) reload_flag=" $reload_flag" ;;
 
4891
esac
 
4892
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4893
case $host_os in
 
4894
  cygwin* | mingw* | pw32* | cegcc*)
 
4895
    if test "$GCC" != yes; then
 
4896
      reload_cmds=false
 
4897
    fi
 
4898
    ;;
 
4899
  darwin*)
 
4900
    if test "$GCC" = yes; then
 
4901
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4902
    else
 
4903
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4904
    fi
 
4905
    ;;
 
4906
esac
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
 
 
4912
 
 
4913
 
 
4914
 
 
4915
 
 
4916
if test -n "$ac_tool_prefix"; then
 
4917
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4918
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4920
$as_echo_n "checking for $ac_word... " >&6; }
 
4921
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
4922
  $as_echo_n "(cached) " >&6
 
4923
else
 
4924
  if test -n "$OBJDUMP"; then
 
4925
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4926
else
 
4927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4928
for as_dir in $PATH
 
4929
do
 
4930
  IFS=$as_save_IFS
 
4931
  test -z "$as_dir" && as_dir=.
 
4932
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4934
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4935
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4936
    break 2
 
4937
  fi
 
4938
done
 
4939
  done
 
4940
IFS=$as_save_IFS
 
4941
 
 
4942
fi
 
4943
fi
 
4944
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4945
if test -n "$OBJDUMP"; then
 
4946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4947
$as_echo "$OBJDUMP" >&6; }
 
4948
else
 
4949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4950
$as_echo "no" >&6; }
 
4951
fi
 
4952
 
 
4953
 
 
4954
fi
 
4955
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4956
  ac_ct_OBJDUMP=$OBJDUMP
 
4957
  # Extract the first word of "objdump", so it can be a program name with args.
 
4958
set dummy objdump; ac_word=$2
 
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4960
$as_echo_n "checking for $ac_word... " >&6; }
 
4961
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
4962
  $as_echo_n "(cached) " >&6
 
4963
else
 
4964
  if test -n "$ac_ct_OBJDUMP"; then
 
4965
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4966
else
 
4967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4968
for as_dir in $PATH
 
4969
do
 
4970
  IFS=$as_save_IFS
 
4971
  test -z "$as_dir" && as_dir=.
 
4972
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4974
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4975
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4976
    break 2
 
4977
  fi
 
4978
done
 
4979
  done
 
4980
IFS=$as_save_IFS
 
4981
 
 
4982
fi
 
4983
fi
 
4984
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4985
if test -n "$ac_ct_OBJDUMP"; then
 
4986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
4987
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4988
else
 
4989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4990
$as_echo "no" >&6; }
 
4991
fi
 
4992
 
 
4993
  if test "x$ac_ct_OBJDUMP" = x; then
 
4994
    OBJDUMP="false"
 
4995
  else
 
4996
    case $cross_compiling:$ac_tool_warned in
 
4997
yes:)
 
4998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5000
ac_tool_warned=yes ;;
 
5001
esac
 
5002
    OBJDUMP=$ac_ct_OBJDUMP
 
5003
  fi
 
5004
else
 
5005
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5006
fi
 
5007
 
 
5008
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5019
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5020
if ${lt_cv_deplibs_check_method+:} false; then :
 
5021
  $as_echo_n "(cached) " >&6
 
5022
else
 
5023
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5024
lt_cv_file_magic_test_file=
 
5025
lt_cv_deplibs_check_method='unknown'
 
5026
# Need to set the preceding variable on all platforms that support
 
5027
# interlibrary dependencies.
 
5028
# 'none' -- dependencies not supported.
 
5029
# `unknown' -- same as none, but documents that we really don't know.
 
5030
# 'pass_all' -- all dependencies passed with no checks.
 
5031
# 'test_compile' -- check by making test program.
 
5032
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5033
# which responds to the $file_magic_cmd with a given extended regex.
 
5034
# If you have `file' or equivalent on your system and you're not sure
 
5035
# whether `pass_all' will *always* work, you probably want this one.
 
5036
 
 
5037
case $host_os in
 
5038
aix[4-9]*)
 
5039
  lt_cv_deplibs_check_method=pass_all
 
5040
  ;;
 
5041
 
 
5042
beos*)
 
5043
  lt_cv_deplibs_check_method=pass_all
 
5044
  ;;
 
5045
 
 
5046
bsdi[45]*)
 
5047
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5048
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5049
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5050
  ;;
 
5051
 
 
5052
cygwin*)
 
5053
  # func_win32_libid is a shell function defined in ltmain.sh
 
5054
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5055
  lt_cv_file_magic_cmd='func_win32_libid'
 
5056
  ;;
 
5057
 
 
5058
mingw* | pw32*)
 
5059
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5060
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5061
  # unless we find 'file', for example because we are cross-compiling.
 
5062
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5063
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5064
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5065
    lt_cv_file_magic_cmd='func_win32_libid'
 
5066
  else
 
5067
    # Keep this pattern in sync with the one in func_win32_libid.
 
5068
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5069
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5070
  fi
 
5071
  ;;
 
5072
 
 
5073
cegcc*)
 
5074
  # use the weaker test based on 'objdump'. See mingw*.
 
5075
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5076
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5077
  ;;
 
5078
 
 
5079
darwin* | rhapsody*)
 
5080
  lt_cv_deplibs_check_method=pass_all
 
5081
  ;;
 
5082
 
 
5083
freebsd* | dragonfly*)
 
5084
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5085
    case $host_cpu in
 
5086
    i*86 )
 
5087
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5088
      # Let's accept both of them until this is cleared up.
 
5089
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5090
      lt_cv_file_magic_cmd=/usr/bin/file
 
5091
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5092
      ;;
 
5093
    esac
 
5094
  else
 
5095
    lt_cv_deplibs_check_method=pass_all
 
5096
  fi
 
5097
  ;;
 
5098
 
 
5099
gnu*)
 
5100
  lt_cv_deplibs_check_method=pass_all
 
5101
  ;;
 
5102
 
 
5103
haiku*)
 
5104
  lt_cv_deplibs_check_method=pass_all
 
5105
  ;;
 
5106
 
 
5107
hpux10.20* | hpux11*)
 
5108
  lt_cv_file_magic_cmd=/usr/bin/file
 
5109
  case $host_cpu in
 
5110
  ia64*)
 
5111
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5112
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5113
    ;;
 
5114
  hppa*64*)
 
5115
    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]'
 
5116
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5117
    ;;
 
5118
  *)
 
5119
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5120
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5121
    ;;
 
5122
  esac
 
5123
  ;;
 
5124
 
 
5125
interix[3-9]*)
 
5126
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5127
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5128
  ;;
 
5129
 
 
5130
irix5* | irix6* | nonstopux*)
 
5131
  case $LD in
 
5132
  *-32|*"-32 ") libmagic=32-bit;;
 
5133
  *-n32|*"-n32 ") libmagic=N32;;
 
5134
  *-64|*"-64 ") libmagic=64-bit;;
 
5135
  *) libmagic=never-match;;
 
5136
  esac
 
5137
  lt_cv_deplibs_check_method=pass_all
 
5138
  ;;
 
5139
 
 
5140
# This must be glibc/ELF.
 
5141
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5142
  lt_cv_deplibs_check_method=pass_all
 
5143
  ;;
 
5144
 
 
5145
netbsd* | netbsdelf*-gnu)
 
5146
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5147
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5148
  else
 
5149
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5150
  fi
 
5151
  ;;
 
5152
 
 
5153
newos6*)
 
5154
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5155
  lt_cv_file_magic_cmd=/usr/bin/file
 
5156
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5157
  ;;
 
5158
 
 
5159
*nto* | *qnx*)
 
5160
  lt_cv_deplibs_check_method=pass_all
 
5161
  ;;
 
5162
 
 
5163
openbsd*)
 
5164
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5165
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5166
  else
 
5167
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5168
  fi
 
5169
  ;;
 
5170
 
 
5171
osf3* | osf4* | osf5*)
 
5172
  lt_cv_deplibs_check_method=pass_all
 
5173
  ;;
 
5174
 
 
5175
rdos*)
 
5176
  lt_cv_deplibs_check_method=pass_all
 
5177
  ;;
 
5178
 
 
5179
solaris*)
 
5180
  lt_cv_deplibs_check_method=pass_all
 
5181
  ;;
 
5182
 
 
5183
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5184
  lt_cv_deplibs_check_method=pass_all
 
5185
  ;;
 
5186
 
 
5187
sysv4 | sysv4.3*)
 
5188
  case $host_vendor in
 
5189
  motorola)
 
5190
    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]'
 
5191
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5192
    ;;
 
5193
  ncr)
 
5194
    lt_cv_deplibs_check_method=pass_all
 
5195
    ;;
 
5196
  sequent)
 
5197
    lt_cv_file_magic_cmd='/bin/file'
 
5198
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5199
    ;;
 
5200
  sni)
 
5201
    lt_cv_file_magic_cmd='/bin/file'
 
5202
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5203
    lt_cv_file_magic_test_file=/lib/libc.so
 
5204
    ;;
 
5205
  siemens)
 
5206
    lt_cv_deplibs_check_method=pass_all
 
5207
    ;;
 
5208
  pc)
 
5209
    lt_cv_deplibs_check_method=pass_all
 
5210
    ;;
 
5211
  esac
 
5212
  ;;
 
5213
 
 
5214
tpf*)
 
5215
  lt_cv_deplibs_check_method=pass_all
 
5216
  ;;
 
5217
esac
 
5218
 
 
5219
fi
 
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5221
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5222
 
 
5223
file_magic_glob=
 
5224
want_nocaseglob=no
 
5225
if test "$build" = "$host"; then
 
5226
  case $host_os in
 
5227
  mingw* | pw32*)
 
5228
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5229
      want_nocaseglob=yes
 
5230
    else
 
5231
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5232
    fi
 
5233
    ;;
 
5234
  esac
 
5235
fi
 
5236
 
 
5237
file_magic_cmd=$lt_cv_file_magic_cmd
 
5238
deplibs_check_method=$lt_cv_deplibs_check_method
 
5239
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5240
 
 
5241
 
 
5242
 
 
5243
 
 
5244
 
 
5245
 
 
5246
 
 
5247
 
 
5248
 
 
5249
 
 
5250
 
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
if test -n "$ac_tool_prefix"; then
 
5263
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5264
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5266
$as_echo_n "checking for $ac_word... " >&6; }
 
5267
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5268
  $as_echo_n "(cached) " >&6
 
5269
else
 
5270
  if test -n "$DLLTOOL"; then
 
5271
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5272
else
 
5273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5274
for as_dir in $PATH
 
5275
do
 
5276
  IFS=$as_save_IFS
 
5277
  test -z "$as_dir" && as_dir=.
 
5278
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5279
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5280
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5281
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5282
    break 2
 
5283
  fi
 
5284
done
 
5285
  done
 
5286
IFS=$as_save_IFS
 
5287
 
 
5288
fi
 
5289
fi
 
5290
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5291
if test -n "$DLLTOOL"; then
 
5292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5293
$as_echo "$DLLTOOL" >&6; }
 
5294
else
 
5295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5296
$as_echo "no" >&6; }
 
5297
fi
 
5298
 
 
5299
 
 
5300
fi
 
5301
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5302
  ac_ct_DLLTOOL=$DLLTOOL
 
5303
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5304
set dummy dlltool; ac_word=$2
 
5305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5306
$as_echo_n "checking for $ac_word... " >&6; }
 
5307
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5308
  $as_echo_n "(cached) " >&6
 
5309
else
 
5310
  if test -n "$ac_ct_DLLTOOL"; then
 
5311
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5312
else
 
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5314
for as_dir in $PATH
 
5315
do
 
5316
  IFS=$as_save_IFS
 
5317
  test -z "$as_dir" && as_dir=.
 
5318
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5319
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5320
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5321
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5322
    break 2
 
5323
  fi
 
5324
done
 
5325
  done
 
5326
IFS=$as_save_IFS
 
5327
 
 
5328
fi
 
5329
fi
 
5330
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5331
if test -n "$ac_ct_DLLTOOL"; then
 
5332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5333
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5334
else
 
5335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5336
$as_echo "no" >&6; }
 
5337
fi
 
5338
 
 
5339
  if test "x$ac_ct_DLLTOOL" = x; then
 
5340
    DLLTOOL="false"
 
5341
  else
 
5342
    case $cross_compiling:$ac_tool_warned in
 
5343
yes:)
 
5344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5345
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5346
ac_tool_warned=yes ;;
 
5347
esac
 
5348
    DLLTOOL=$ac_ct_DLLTOOL
 
5349
  fi
 
5350
else
 
5351
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5352
fi
 
5353
 
 
5354
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5366
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5367
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5368
  $as_echo_n "(cached) " >&6
 
5369
else
 
5370
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5371
 
 
5372
case $host_os in
 
5373
cygwin* | mingw* | pw32* | cegcc*)
 
5374
  # two different shell functions defined in ltmain.sh
 
5375
  # decide which to use based on capabilities of $DLLTOOL
 
5376
  case `$DLLTOOL --help 2>&1` in
 
5377
  *--identify-strict*)
 
5378
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5379
    ;;
 
5380
  *)
 
5381
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5382
    ;;
 
5383
  esac
 
5384
  ;;
 
5385
*)
 
5386
  # fallback: assume linklib IS sharedlib
 
5387
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5388
  ;;
 
5389
esac
 
5390
 
 
5391
fi
 
5392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5393
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5394
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5395
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5396
 
 
5397
 
 
5398
 
 
5399
 
 
5400
 
 
5401
 
 
5402
 
 
5403
 
 
5404
if test -n "$ac_tool_prefix"; then
 
5405
  for ac_prog in ar
 
5406
  do
 
5407
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5408
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5410
$as_echo_n "checking for $ac_word... " >&6; }
 
5411
if ${ac_cv_prog_AR+:} false; then :
 
5412
  $as_echo_n "(cached) " >&6
 
5413
else
 
5414
  if test -n "$AR"; then
 
5415
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5416
else
 
5417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5418
for as_dir in $PATH
 
5419
do
 
5420
  IFS=$as_save_IFS
 
5421
  test -z "$as_dir" && as_dir=.
 
5422
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5424
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5425
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5426
    break 2
 
5427
  fi
 
5428
done
 
5429
  done
 
5430
IFS=$as_save_IFS
 
5431
 
 
5432
fi
 
5433
fi
 
5434
AR=$ac_cv_prog_AR
 
5435
if test -n "$AR"; then
 
5436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5437
$as_echo "$AR" >&6; }
 
5438
else
 
5439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5440
$as_echo "no" >&6; }
 
5441
fi
 
5442
 
 
5443
 
 
5444
    test -n "$AR" && break
 
5445
  done
 
5446
fi
 
5447
if test -z "$AR"; then
 
5448
  ac_ct_AR=$AR
 
5449
  for ac_prog in ar
 
5450
do
 
5451
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5452
set dummy $ac_prog; ac_word=$2
 
5453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5454
$as_echo_n "checking for $ac_word... " >&6; }
 
5455
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5456
  $as_echo_n "(cached) " >&6
 
5457
else
 
5458
  if test -n "$ac_ct_AR"; then
 
5459
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5460
else
 
5461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5462
for as_dir in $PATH
 
5463
do
 
5464
  IFS=$as_save_IFS
 
5465
  test -z "$as_dir" && as_dir=.
 
5466
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5467
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5468
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5469
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5470
    break 2
 
5471
  fi
 
5472
done
 
5473
  done
 
5474
IFS=$as_save_IFS
 
5475
 
 
5476
fi
 
5477
fi
 
5478
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5479
if test -n "$ac_ct_AR"; then
 
5480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5481
$as_echo "$ac_ct_AR" >&6; }
 
5482
else
 
5483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5484
$as_echo "no" >&6; }
 
5485
fi
 
5486
 
 
5487
 
 
5488
  test -n "$ac_ct_AR" && break
 
5489
done
 
5490
 
 
5491
  if test "x$ac_ct_AR" = x; then
 
5492
    AR="false"
 
5493
  else
 
5494
    case $cross_compiling:$ac_tool_warned in
 
5495
yes:)
 
5496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5498
ac_tool_warned=yes ;;
 
5499
esac
 
5500
    AR=$ac_ct_AR
 
5501
  fi
 
5502
fi
 
5503
 
 
5504
: ${AR=ar}
 
5505
: ${AR_FLAGS=cru}
 
5506
 
 
5507
 
 
5508
 
 
5509
 
 
5510
 
 
5511
 
 
5512
 
 
5513
 
 
5514
 
 
5515
 
 
5516
 
 
5517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5518
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5519
if ${lt_cv_ar_at_file+:} false; then :
 
5520
  $as_echo_n "(cached) " >&6
 
5521
else
 
5522
  lt_cv_ar_at_file=no
 
5523
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5524
/* end confdefs.h.  */
 
5525
 
 
5526
int
 
5527
main ()
 
5528
{
 
5529
 
 
5530
  ;
 
5531
  return 0;
 
5532
}
 
5533
_ACEOF
 
5534
if ac_fn_c_try_compile "$LINENO"; then :
 
5535
  echo conftest.$ac_objext > conftest.lst
 
5536
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5537
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5538
  (eval $lt_ar_try) 2>&5
 
5539
  ac_status=$?
 
5540
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5541
  test $ac_status = 0; }
 
5542
      if test "$ac_status" -eq 0; then
 
5543
        # Ensure the archiver fails upon bogus file names.
 
5544
        rm -f conftest.$ac_objext libconftest.a
 
5545
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5546
  (eval $lt_ar_try) 2>&5
 
5547
  ac_status=$?
 
5548
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5549
  test $ac_status = 0; }
 
5550
        if test "$ac_status" -ne 0; then
 
5551
          lt_cv_ar_at_file=@
 
5552
        fi
 
5553
      fi
 
5554
      rm -f conftest.* libconftest.a
 
5555
 
 
5556
fi
 
5557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5558
 
 
5559
fi
 
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5561
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5562
 
 
5563
if test "x$lt_cv_ar_at_file" = xno; then
 
5564
  archiver_list_spec=
 
5565
else
 
5566
  archiver_list_spec=$lt_cv_ar_at_file
 
5567
fi
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
if test -n "$ac_tool_prefix"; then
 
5576
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5577
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5579
$as_echo_n "checking for $ac_word... " >&6; }
 
5580
if ${ac_cv_prog_STRIP+:} false; then :
 
5581
  $as_echo_n "(cached) " >&6
 
5582
else
 
5583
  if test -n "$STRIP"; then
 
5584
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5585
else
 
5586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5587
for as_dir in $PATH
 
5588
do
 
5589
  IFS=$as_save_IFS
 
5590
  test -z "$as_dir" && as_dir=.
 
5591
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5592
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5593
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5594
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5595
    break 2
 
5596
  fi
 
5597
done
 
5598
  done
 
5599
IFS=$as_save_IFS
 
5600
 
 
5601
fi
 
5602
fi
 
5603
STRIP=$ac_cv_prog_STRIP
 
5604
if test -n "$STRIP"; then
 
5605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5606
$as_echo "$STRIP" >&6; }
 
5607
else
 
5608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5609
$as_echo "no" >&6; }
 
5610
fi
 
5611
 
 
5612
 
 
5613
fi
 
5614
if test -z "$ac_cv_prog_STRIP"; then
 
5615
  ac_ct_STRIP=$STRIP
 
5616
  # Extract the first word of "strip", so it can be a program name with args.
 
5617
set dummy strip; ac_word=$2
 
5618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5619
$as_echo_n "checking for $ac_word... " >&6; }
 
5620
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5621
  $as_echo_n "(cached) " >&6
 
5622
else
 
5623
  if test -n "$ac_ct_STRIP"; then
 
5624
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5625
else
 
5626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5627
for as_dir in $PATH
 
5628
do
 
5629
  IFS=$as_save_IFS
 
5630
  test -z "$as_dir" && as_dir=.
 
5631
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5633
    ac_cv_prog_ac_ct_STRIP="strip"
 
5634
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5635
    break 2
 
5636
  fi
 
5637
done
 
5638
  done
 
5639
IFS=$as_save_IFS
 
5640
 
 
5641
fi
 
5642
fi
 
5643
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5644
if test -n "$ac_ct_STRIP"; then
 
5645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5646
$as_echo "$ac_ct_STRIP" >&6; }
 
5647
else
 
5648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5649
$as_echo "no" >&6; }
 
5650
fi
 
5651
 
 
5652
  if test "x$ac_ct_STRIP" = x; then
 
5653
    STRIP=":"
 
5654
  else
 
5655
    case $cross_compiling:$ac_tool_warned in
 
5656
yes:)
 
5657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5659
ac_tool_warned=yes ;;
 
5660
esac
 
5661
    STRIP=$ac_ct_STRIP
 
5662
  fi
 
5663
else
 
5664
  STRIP="$ac_cv_prog_STRIP"
 
5665
fi
 
5666
 
 
5667
test -z "$STRIP" && STRIP=:
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
if test -n "$ac_tool_prefix"; then
 
5675
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5676
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5678
$as_echo_n "checking for $ac_word... " >&6; }
 
5679
if ${ac_cv_prog_RANLIB+:} false; then :
 
5680
  $as_echo_n "(cached) " >&6
 
5681
else
 
5682
  if test -n "$RANLIB"; then
 
5683
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5684
else
 
5685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5686
for as_dir in $PATH
 
5687
do
 
5688
  IFS=$as_save_IFS
 
5689
  test -z "$as_dir" && as_dir=.
 
5690
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5691
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5692
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5694
    break 2
 
5695
  fi
 
5696
done
 
5697
  done
 
5698
IFS=$as_save_IFS
 
5699
 
 
5700
fi
 
5701
fi
 
5702
RANLIB=$ac_cv_prog_RANLIB
 
5703
if test -n "$RANLIB"; then
 
5704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5705
$as_echo "$RANLIB" >&6; }
 
5706
else
 
5707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5708
$as_echo "no" >&6; }
 
5709
fi
 
5710
 
 
5711
 
 
5712
fi
 
5713
if test -z "$ac_cv_prog_RANLIB"; then
 
5714
  ac_ct_RANLIB=$RANLIB
 
5715
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5716
set dummy ranlib; ac_word=$2
 
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5718
$as_echo_n "checking for $ac_word... " >&6; }
 
5719
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5720
  $as_echo_n "(cached) " >&6
 
5721
else
 
5722
  if test -n "$ac_ct_RANLIB"; then
 
5723
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5724
else
 
5725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5726
for as_dir in $PATH
 
5727
do
 
5728
  IFS=$as_save_IFS
 
5729
  test -z "$as_dir" && as_dir=.
 
5730
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5731
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5732
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5733
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5734
    break 2
 
5735
  fi
 
5736
done
 
5737
  done
 
5738
IFS=$as_save_IFS
 
5739
 
 
5740
fi
 
5741
fi
 
5742
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5743
if test -n "$ac_ct_RANLIB"; then
 
5744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5745
$as_echo "$ac_ct_RANLIB" >&6; }
 
5746
else
 
5747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5748
$as_echo "no" >&6; }
 
5749
fi
 
5750
 
 
5751
  if test "x$ac_ct_RANLIB" = x; then
 
5752
    RANLIB=":"
 
5753
  else
 
5754
    case $cross_compiling:$ac_tool_warned in
 
5755
yes:)
 
5756
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5757
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5758
ac_tool_warned=yes ;;
 
5759
esac
 
5760
    RANLIB=$ac_ct_RANLIB
 
5761
  fi
 
5762
else
 
5763
  RANLIB="$ac_cv_prog_RANLIB"
 
5764
fi
 
5765
 
 
5766
test -z "$RANLIB" && RANLIB=:
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
5773
# Determine commands to create old-style static archives.
 
5774
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5775
old_postinstall_cmds='chmod 644 $oldlib'
 
5776
old_postuninstall_cmds=
 
5777
 
 
5778
if test -n "$RANLIB"; then
 
5779
  case $host_os in
 
5780
  openbsd*)
 
5781
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
5782
    ;;
 
5783
  *)
 
5784
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
5785
    ;;
 
5786
  esac
 
5787
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
5788
fi
 
5789
 
 
5790
case $host_os in
 
5791
  darwin*)
 
5792
    lock_old_archive_extraction=yes ;;
 
5793
  *)
 
5794
    lock_old_archive_extraction=no ;;
 
5795
esac
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
 
 
5814
 
 
5815
 
 
5816
 
 
5817
 
 
5818
 
 
5819
 
 
5820
 
 
5821
 
 
5822
 
 
5823
 
 
5824
 
 
5825
 
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
# If no C compiler was specified, use CC.
 
5836
LTCC=${LTCC-"$CC"}
 
5837
 
 
5838
# If no C compiler flags were specified, use CFLAGS.
 
5839
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5840
 
 
5841
# Allow CC to be a program name with arguments.
 
5842
compiler=$CC
 
5843
 
 
5844
 
 
5845
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5847
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5848
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5849
  $as_echo_n "(cached) " >&6
 
5850
else
 
5851
 
 
5852
# These are sane defaults that work on at least a few old systems.
 
5853
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5854
 
 
5855
# Character class describing NM global symbol codes.
 
5856
symcode='[BCDEGRST]'
 
5857
 
 
5858
# Regexp to match symbols that can be accessed directly from C.
 
5859
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5860
 
 
5861
# Define system-specific variables.
 
5862
case $host_os in
 
5863
aix*)
 
5864
  symcode='[BCDT]'
 
5865
  ;;
 
5866
cygwin* | mingw* | pw32* | cegcc*)
 
5867
  symcode='[ABCDGISTW]'
 
5868
  ;;
 
5869
hpux*)
 
5870
  if test "$host_cpu" = ia64; then
 
5871
    symcode='[ABCDEGRST]'
 
5872
  fi
 
5873
  ;;
 
5874
irix* | nonstopux*)
 
5875
  symcode='[BCDEGRST]'
 
5876
  ;;
 
5877
osf*)
 
5878
  symcode='[BCDEGQRST]'
 
5879
  ;;
 
5880
solaris*)
 
5881
  symcode='[BDRT]'
 
5882
  ;;
 
5883
sco3.2v5*)
 
5884
  symcode='[DT]'
 
5885
  ;;
 
5886
sysv4.2uw2*)
 
5887
  symcode='[DT]'
 
5888
  ;;
 
5889
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5890
  symcode='[ABDT]'
 
5891
  ;;
 
5892
sysv4)
 
5893
  symcode='[DFNSTU]'
 
5894
  ;;
 
5895
esac
 
5896
 
 
5897
# If we're using GNU nm, then use its standard symbol codes.
 
5898
case `$NM -V 2>&1` in
 
5899
*GNU* | *'with BFD'*)
 
5900
  symcode='[ABCDGIRSTW]' ;;
 
5901
esac
 
5902
 
 
5903
# Transform an extracted symbol line into a proper C declaration.
 
5904
# Some systems (esp. on ia64) link data and code symbols differently,
 
5905
# so use this general approach.
 
5906
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5907
 
 
5908
# Transform an extracted symbol line into symbol name and symbol address
 
5909
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5910
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5911
 
 
5912
# Handle CRLF in mingw tool chain
 
5913
opt_cr=
 
5914
case $build_os in
 
5915
mingw*)
 
5916
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5917
  ;;
 
5918
esac
 
5919
 
 
5920
# Try without a prefix underscore, then with it.
 
5921
for ac_symprfx in "" "_"; do
 
5922
 
 
5923
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5924
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5925
 
 
5926
  # Write the raw and C identifiers.
 
5927
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5928
    # Fake it for dumpbin and say T for any non-static function
 
5929
    # and D for any global variable.
 
5930
    # Also find C++ and __fastcall symbols from MSVC++,
 
5931
    # which start with @ or ?.
 
5932
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5933
"     {last_section=section; section=\$ 3};"\
 
5934
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
5935
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5936
"     \$ 0!~/External *\|/{next};"\
 
5937
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5938
"     {if(hide[section]) next};"\
 
5939
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5940
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5941
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5942
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5943
"     ' prfx=^$ac_symprfx"
 
5944
  else
 
5945
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5946
  fi
 
5947
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
5948
 
 
5949
  # Check to see that the pipe works correctly.
 
5950
  pipe_works=no
 
5951
 
 
5952
  rm -f conftest*
 
5953
  cat > conftest.$ac_ext <<_LT_EOF
 
5954
#ifdef __cplusplus
 
5955
extern "C" {
 
5956
#endif
 
5957
char nm_test_var;
 
5958
void nm_test_func(void);
 
5959
void nm_test_func(void){}
 
5960
#ifdef __cplusplus
 
5961
}
 
5962
#endif
 
5963
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5964
_LT_EOF
 
5965
 
 
5966
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5967
  (eval $ac_compile) 2>&5
 
5968
  ac_status=$?
 
5969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5970
  test $ac_status = 0; }; then
 
5971
    # Now try to grab the symbols.
 
5972
    nlist=conftest.nm
 
5973
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
5974
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
5975
  ac_status=$?
 
5976
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5977
  test $ac_status = 0; } && test -s "$nlist"; then
 
5978
      # Try sorting and uniquifying the output.
 
5979
      if sort "$nlist" | uniq > "$nlist"T; then
 
5980
        mv -f "$nlist"T "$nlist"
 
5981
      else
 
5982
        rm -f "$nlist"T
 
5983
      fi
 
5984
 
 
5985
      # Make sure that we snagged all the symbols we need.
 
5986
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5987
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5988
          cat <<_LT_EOF > conftest.$ac_ext
 
5989
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
5990
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
5991
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
5992
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
5993
# define LT_DLSYM_CONST
 
5994
#elif defined(__osf__)
 
5995
/* This system does not cope well with relocations in const data.  */
 
5996
# define LT_DLSYM_CONST
 
5997
#else
 
5998
# define LT_DLSYM_CONST const
 
5999
#endif
 
6000
 
 
6001
#ifdef __cplusplus
 
6002
extern "C" {
 
6003
#endif
 
6004
 
 
6005
_LT_EOF
 
6006
          # Now generate the symbol file.
 
6007
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6008
 
 
6009
          cat <<_LT_EOF >> conftest.$ac_ext
 
6010
 
 
6011
/* The mapping between symbol names and symbols.  */
 
6012
LT_DLSYM_CONST struct {
 
6013
  const char *name;
 
6014
  void       *address;
 
6015
}
 
6016
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6017
{
 
6018
  { "@PROGRAM@", (void *) 0 },
 
6019
_LT_EOF
 
6020
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6021
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6022
  {0, (void *) 0}
 
6023
};
 
6024
 
 
6025
/* This works around a problem in FreeBSD linker */
 
6026
#ifdef FREEBSD_WORKAROUND
 
6027
static const void *lt_preloaded_setup() {
 
6028
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6029
}
 
6030
#endif
 
6031
 
 
6032
#ifdef __cplusplus
 
6033
}
 
6034
#endif
 
6035
_LT_EOF
 
6036
          # Now try linking the two files.
 
6037
          mv conftest.$ac_objext conftstm.$ac_objext
 
6038
          lt_globsym_save_LIBS=$LIBS
 
6039
          lt_globsym_save_CFLAGS=$CFLAGS
 
6040
          LIBS="conftstm.$ac_objext"
 
6041
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6042
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6043
  (eval $ac_link) 2>&5
 
6044
  ac_status=$?
 
6045
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6046
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6047
            pipe_works=yes
 
6048
          fi
 
6049
          LIBS=$lt_globsym_save_LIBS
 
6050
          CFLAGS=$lt_globsym_save_CFLAGS
 
6051
        else
 
6052
          echo "cannot find nm_test_func in $nlist" >&5
 
6053
        fi
 
6054
      else
 
6055
        echo "cannot find nm_test_var in $nlist" >&5
 
6056
      fi
 
6057
    else
 
6058
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6059
    fi
 
6060
  else
 
6061
    echo "$progname: failed program was:" >&5
 
6062
    cat conftest.$ac_ext >&5
 
6063
  fi
 
6064
  rm -rf conftest* conftst*
 
6065
 
 
6066
  # Do not use the global_symbol_pipe unless it works.
 
6067
  if test "$pipe_works" = yes; then
 
6068
    break
 
6069
  else
 
6070
    lt_cv_sys_global_symbol_pipe=
 
6071
  fi
 
6072
done
 
6073
 
 
6074
fi
 
6075
 
 
6076
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6077
  lt_cv_sys_global_symbol_to_cdecl=
 
6078
fi
 
6079
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6081
$as_echo "failed" >&6; }
 
6082
else
 
6083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6084
$as_echo "ok" >&6; }
 
6085
fi
 
6086
 
 
6087
# Response file support.
 
6088
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6089
  nm_file_list_spec='@'
 
6090
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6091
  nm_file_list_spec='@'
 
6092
fi
 
6093
 
 
6094
 
 
6095
 
 
6096
 
 
6097
 
 
6098
 
 
6099
 
 
6100
 
 
6101
 
 
6102
 
 
6103
 
 
6104
 
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6121
$as_echo_n "checking for sysroot... " >&6; }
 
6122
 
 
6123
# Check whether --with-sysroot was given.
 
6124
if test "${with_sysroot+set}" = set; then :
 
6125
  withval=$with_sysroot;
 
6126
else
 
6127
  with_sysroot=no
 
6128
fi
 
6129
 
 
6130
 
 
6131
lt_sysroot=
 
6132
case ${with_sysroot} in #(
 
6133
 yes)
 
6134
   if test "$GCC" = yes; then
 
6135
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6136
   fi
 
6137
   ;; #(
 
6138
 /*)
 
6139
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6140
   ;; #(
 
6141
 no|'')
 
6142
   ;; #(
 
6143
 *)
 
6144
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6145
$as_echo "${with_sysroot}" >&6; }
 
6146
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6147
   ;;
 
6148
esac
 
6149
 
 
6150
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6151
$as_echo "${lt_sysroot:-no}" >&6; }
 
6152
 
 
6153
 
 
6154
 
 
6155
 
 
6156
 
 
6157
# Check whether --enable-libtool-lock was given.
 
6158
if test "${enable_libtool_lock+set}" = set; then :
 
6159
  enableval=$enable_libtool_lock;
 
6160
fi
 
6161
 
 
6162
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6163
 
 
6164
# Some flags need to be propagated to the compiler or linker for good
 
6165
# libtool support.
 
6166
case $host in
 
6167
ia64-*-hpux*)
 
6168
  # Find out which ABI we are using.
 
6169
  echo 'int i;' > conftest.$ac_ext
 
6170
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6171
  (eval $ac_compile) 2>&5
 
6172
  ac_status=$?
 
6173
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6174
  test $ac_status = 0; }; then
 
6175
    case `/usr/bin/file conftest.$ac_objext` in
 
6176
      *ELF-32*)
 
6177
        HPUX_IA64_MODE="32"
 
6178
        ;;
 
6179
      *ELF-64*)
 
6180
        HPUX_IA64_MODE="64"
 
6181
        ;;
 
6182
    esac
 
6183
  fi
 
6184
  rm -rf conftest*
 
6185
  ;;
 
6186
*-*-irix6*)
 
6187
  # Find out which ABI we are using.
 
6188
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6189
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6190
  (eval $ac_compile) 2>&5
 
6191
  ac_status=$?
 
6192
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6193
  test $ac_status = 0; }; then
 
6194
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6195
      case `/usr/bin/file conftest.$ac_objext` in
 
6196
        *32-bit*)
 
6197
          LD="${LD-ld} -melf32bsmip"
 
6198
          ;;
 
6199
        *N32*)
 
6200
          LD="${LD-ld} -melf32bmipn32"
 
6201
          ;;
 
6202
        *64-bit*)
 
6203
          LD="${LD-ld} -melf64bmip"
 
6204
        ;;
 
6205
      esac
 
6206
    else
 
6207
      case `/usr/bin/file conftest.$ac_objext` in
 
6208
        *32-bit*)
 
6209
          LD="${LD-ld} -32"
 
6210
          ;;
 
6211
        *N32*)
 
6212
          LD="${LD-ld} -n32"
 
6213
          ;;
 
6214
        *64-bit*)
 
6215
          LD="${LD-ld} -64"
 
6216
          ;;
 
6217
      esac
 
6218
    fi
 
6219
  fi
 
6220
  rm -rf conftest*
 
6221
  ;;
 
6222
 
 
6223
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6224
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6225
  # Find out which ABI we are using.
 
6226
  echo 'int i;' > conftest.$ac_ext
 
6227
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6228
  (eval $ac_compile) 2>&5
 
6229
  ac_status=$?
 
6230
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6231
  test $ac_status = 0; }; then
 
6232
    case `/usr/bin/file conftest.o` in
 
6233
      *32-bit*)
 
6234
        case $host in
 
6235
          x86_64-*kfreebsd*-gnu)
 
6236
            LD="${LD-ld} -m elf_i386_fbsd"
 
6237
            ;;
 
6238
          x86_64-*linux*)
 
6239
            LD="${LD-ld} -m elf_i386"
 
6240
            ;;
 
6241
          ppc64-*linux*|powerpc64-*linux*)
 
6242
            LD="${LD-ld} -m elf32ppclinux"
 
6243
            ;;
 
6244
          s390x-*linux*)
 
6245
            LD="${LD-ld} -m elf_s390"
 
6246
            ;;
 
6247
          sparc64-*linux*)
 
6248
            LD="${LD-ld} -m elf32_sparc"
 
6249
            ;;
 
6250
        esac
 
6251
        ;;
 
6252
      *64-bit*)
 
6253
        case $host in
 
6254
          x86_64-*kfreebsd*-gnu)
 
6255
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6256
            ;;
 
6257
          x86_64-*linux*)
 
6258
            LD="${LD-ld} -m elf_x86_64"
 
6259
            ;;
 
6260
          ppc*-*linux*|powerpc*-*linux*)
 
6261
            LD="${LD-ld} -m elf64ppc"
 
6262
            ;;
 
6263
          s390*-*linux*|s390*-*tpf*)
 
6264
            LD="${LD-ld} -m elf64_s390"
 
6265
            ;;
 
6266
          sparc*-*linux*)
 
6267
            LD="${LD-ld} -m elf64_sparc"
 
6268
            ;;
 
6269
        esac
 
6270
        ;;
 
6271
    esac
 
6272
  fi
 
6273
  rm -rf conftest*
 
6274
  ;;
 
6275
 
 
6276
*-*-sco3.2v5*)
 
6277
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6278
  SAVE_CFLAGS="$CFLAGS"
 
6279
  CFLAGS="$CFLAGS -belf"
 
6280
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6281
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6282
if ${lt_cv_cc_needs_belf+:} false; then :
 
6283
  $as_echo_n "(cached) " >&6
 
6284
else
 
6285
  ac_ext=c
 
6286
ac_cpp='$CPP $CPPFLAGS'
 
6287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6290
 
 
6291
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6292
/* end confdefs.h.  */
 
6293
 
 
6294
int
 
6295
main ()
 
6296
{
 
6297
 
 
6298
  ;
 
6299
  return 0;
 
6300
}
 
6301
_ACEOF
 
6302
if ac_fn_c_try_link "$LINENO"; then :
 
6303
  lt_cv_cc_needs_belf=yes
 
6304
else
 
6305
  lt_cv_cc_needs_belf=no
 
6306
fi
 
6307
rm -f core conftest.err conftest.$ac_objext \
 
6308
    conftest$ac_exeext conftest.$ac_ext
 
6309
     ac_ext=c
 
6310
ac_cpp='$CPP $CPPFLAGS'
 
6311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6314
 
 
6315
fi
 
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6317
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6318
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6319
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6320
    CFLAGS="$SAVE_CFLAGS"
 
6321
  fi
 
6322
  ;;
 
6323
*-*solaris*)
 
6324
  # Find out which ABI we are using.
 
6325
  echo 'int i;' > conftest.$ac_ext
 
6326
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6327
  (eval $ac_compile) 2>&5
 
6328
  ac_status=$?
 
6329
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6330
  test $ac_status = 0; }; then
 
6331
    case `/usr/bin/file conftest.o` in
 
6332
    *64-bit*)
 
6333
      case $lt_cv_prog_gnu_ld in
 
6334
      yes*)
 
6335
        case $host in
 
6336
        i?86-*-solaris*)
 
6337
          LD="${LD-ld} -m elf_x86_64"
 
6338
          ;;
 
6339
        sparc*-*-solaris*)
 
6340
          LD="${LD-ld} -m elf64_sparc"
 
6341
          ;;
 
6342
        esac
 
6343
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6344
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6345
          LD="${LD-ld}_sol2"
 
6346
        fi
 
6347
        ;;
 
6348
      *)
 
6349
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6350
          LD="${LD-ld} -64"
 
6351
        fi
 
6352
        ;;
 
6353
      esac
 
6354
      ;;
 
6355
    esac
 
6356
  fi
 
6357
  rm -rf conftest*
 
6358
  ;;
 
6359
esac
 
6360
 
 
6361
need_locks="$enable_libtool_lock"
 
6362
 
 
6363
if test -n "$ac_tool_prefix"; then
 
6364
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6365
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6367
$as_echo_n "checking for $ac_word... " >&6; }
 
6368
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6369
  $as_echo_n "(cached) " >&6
 
6370
else
 
6371
  if test -n "$MANIFEST_TOOL"; then
 
6372
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6373
else
 
6374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6375
for as_dir in $PATH
 
6376
do
 
6377
  IFS=$as_save_IFS
 
6378
  test -z "$as_dir" && as_dir=.
 
6379
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6381
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6382
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6383
    break 2
 
6384
  fi
 
6385
done
 
6386
  done
 
6387
IFS=$as_save_IFS
 
6388
 
 
6389
fi
 
6390
fi
 
6391
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6392
if test -n "$MANIFEST_TOOL"; then
 
6393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6394
$as_echo "$MANIFEST_TOOL" >&6; }
 
6395
else
 
6396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6397
$as_echo "no" >&6; }
 
6398
fi
 
6399
 
 
6400
 
 
6401
fi
 
6402
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6403
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6404
  # Extract the first word of "mt", so it can be a program name with args.
 
6405
set dummy mt; ac_word=$2
 
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6407
$as_echo_n "checking for $ac_word... " >&6; }
 
6408
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6409
  $as_echo_n "(cached) " >&6
 
6410
else
 
6411
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6412
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6413
else
 
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6415
for as_dir in $PATH
 
6416
do
 
6417
  IFS=$as_save_IFS
 
6418
  test -z "$as_dir" && as_dir=.
 
6419
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6421
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6422
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6423
    break 2
 
6424
  fi
 
6425
done
 
6426
  done
 
6427
IFS=$as_save_IFS
 
6428
 
 
6429
fi
 
6430
fi
 
6431
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6432
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6434
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6435
else
 
6436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6437
$as_echo "no" >&6; }
 
6438
fi
 
6439
 
 
6440
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6441
    MANIFEST_TOOL=":"
 
6442
  else
 
6443
    case $cross_compiling:$ac_tool_warned in
 
6444
yes:)
 
6445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6447
ac_tool_warned=yes ;;
 
6448
esac
 
6449
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6450
  fi
 
6451
else
 
6452
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6453
fi
 
6454
 
 
6455
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6457
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6458
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6459
  $as_echo_n "(cached) " >&6
 
6460
else
 
6461
  lt_cv_path_mainfest_tool=no
 
6462
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6463
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6464
  cat conftest.err >&5
 
6465
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6466
    lt_cv_path_mainfest_tool=yes
 
6467
  fi
 
6468
  rm -f conftest*
 
6469
fi
 
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6471
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6472
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6473
  MANIFEST_TOOL=:
 
6474
fi
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
  case $host_os in
 
6482
    rhapsody* | darwin*)
 
6483
    if test -n "$ac_tool_prefix"; then
 
6484
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6485
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6487
$as_echo_n "checking for $ac_word... " >&6; }
 
6488
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6489
  $as_echo_n "(cached) " >&6
 
6490
else
 
6491
  if test -n "$DSYMUTIL"; then
 
6492
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6493
else
 
6494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6495
for as_dir in $PATH
 
6496
do
 
6497
  IFS=$as_save_IFS
 
6498
  test -z "$as_dir" && as_dir=.
 
6499
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6501
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6502
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6503
    break 2
 
6504
  fi
 
6505
done
 
6506
  done
 
6507
IFS=$as_save_IFS
 
6508
 
 
6509
fi
 
6510
fi
 
6511
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6512
if test -n "$DSYMUTIL"; then
 
6513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6514
$as_echo "$DSYMUTIL" >&6; }
 
6515
else
 
6516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6517
$as_echo "no" >&6; }
 
6518
fi
 
6519
 
 
6520
 
 
6521
fi
 
6522
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6523
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6524
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6525
set dummy dsymutil; ac_word=$2
 
6526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6527
$as_echo_n "checking for $ac_word... " >&6; }
 
6528
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6529
  $as_echo_n "(cached) " >&6
 
6530
else
 
6531
  if test -n "$ac_ct_DSYMUTIL"; then
 
6532
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6533
else
 
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6535
for as_dir in $PATH
 
6536
do
 
6537
  IFS=$as_save_IFS
 
6538
  test -z "$as_dir" && as_dir=.
 
6539
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6541
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6542
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6543
    break 2
 
6544
  fi
 
6545
done
 
6546
  done
 
6547
IFS=$as_save_IFS
 
6548
 
 
6549
fi
 
6550
fi
 
6551
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6552
if test -n "$ac_ct_DSYMUTIL"; then
 
6553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6554
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6555
else
 
6556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6557
$as_echo "no" >&6; }
 
6558
fi
 
6559
 
 
6560
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6561
    DSYMUTIL=":"
 
6562
  else
 
6563
    case $cross_compiling:$ac_tool_warned in
 
6564
yes:)
 
6565
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6567
ac_tool_warned=yes ;;
 
6568
esac
 
6569
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6570
  fi
 
6571
else
 
6572
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6573
fi
 
6574
 
 
6575
    if test -n "$ac_tool_prefix"; then
 
6576
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6577
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6579
$as_echo_n "checking for $ac_word... " >&6; }
 
6580
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6581
  $as_echo_n "(cached) " >&6
 
6582
else
 
6583
  if test -n "$NMEDIT"; then
 
6584
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6585
else
 
6586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6587
for as_dir in $PATH
 
6588
do
 
6589
  IFS=$as_save_IFS
 
6590
  test -z "$as_dir" && as_dir=.
 
6591
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6592
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6593
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6594
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6595
    break 2
 
6596
  fi
 
6597
done
 
6598
  done
 
6599
IFS=$as_save_IFS
 
6600
 
 
6601
fi
 
6602
fi
 
6603
NMEDIT=$ac_cv_prog_NMEDIT
 
6604
if test -n "$NMEDIT"; then
 
6605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6606
$as_echo "$NMEDIT" >&6; }
 
6607
else
 
6608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6609
$as_echo "no" >&6; }
 
6610
fi
 
6611
 
 
6612
 
 
6613
fi
 
6614
if test -z "$ac_cv_prog_NMEDIT"; then
 
6615
  ac_ct_NMEDIT=$NMEDIT
 
6616
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6617
set dummy nmedit; ac_word=$2
 
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6619
$as_echo_n "checking for $ac_word... " >&6; }
 
6620
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6621
  $as_echo_n "(cached) " >&6
 
6622
else
 
6623
  if test -n "$ac_ct_NMEDIT"; then
 
6624
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6625
else
 
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6627
for as_dir in $PATH
 
6628
do
 
6629
  IFS=$as_save_IFS
 
6630
  test -z "$as_dir" && as_dir=.
 
6631
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6633
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6634
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6635
    break 2
 
6636
  fi
 
6637
done
 
6638
  done
 
6639
IFS=$as_save_IFS
 
6640
 
 
6641
fi
 
6642
fi
 
6643
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6644
if test -n "$ac_ct_NMEDIT"; then
 
6645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6646
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6647
else
 
6648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6649
$as_echo "no" >&6; }
 
6650
fi
 
6651
 
 
6652
  if test "x$ac_ct_NMEDIT" = x; then
 
6653
    NMEDIT=":"
 
6654
  else
 
6655
    case $cross_compiling:$ac_tool_warned in
 
6656
yes:)
 
6657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6659
ac_tool_warned=yes ;;
 
6660
esac
 
6661
    NMEDIT=$ac_ct_NMEDIT
 
6662
  fi
 
6663
else
 
6664
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6665
fi
 
6666
 
 
6667
    if test -n "$ac_tool_prefix"; then
 
6668
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6669
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6671
$as_echo_n "checking for $ac_word... " >&6; }
 
6672
if ${ac_cv_prog_LIPO+:} false; then :
 
6673
  $as_echo_n "(cached) " >&6
 
6674
else
 
6675
  if test -n "$LIPO"; then
 
6676
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6677
else
 
6678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6679
for as_dir in $PATH
 
6680
do
 
6681
  IFS=$as_save_IFS
 
6682
  test -z "$as_dir" && as_dir=.
 
6683
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6685
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6686
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6687
    break 2
 
6688
  fi
 
6689
done
 
6690
  done
 
6691
IFS=$as_save_IFS
 
6692
 
 
6693
fi
 
6694
fi
 
6695
LIPO=$ac_cv_prog_LIPO
 
6696
if test -n "$LIPO"; then
 
6697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6698
$as_echo "$LIPO" >&6; }
 
6699
else
 
6700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6701
$as_echo "no" >&6; }
 
6702
fi
 
6703
 
 
6704
 
 
6705
fi
 
6706
if test -z "$ac_cv_prog_LIPO"; then
 
6707
  ac_ct_LIPO=$LIPO
 
6708
  # Extract the first word of "lipo", so it can be a program name with args.
 
6709
set dummy lipo; ac_word=$2
 
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6711
$as_echo_n "checking for $ac_word... " >&6; }
 
6712
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6713
  $as_echo_n "(cached) " >&6
 
6714
else
 
6715
  if test -n "$ac_ct_LIPO"; then
 
6716
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6717
else
 
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6719
for as_dir in $PATH
 
6720
do
 
6721
  IFS=$as_save_IFS
 
6722
  test -z "$as_dir" && as_dir=.
 
6723
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6725
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6726
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6727
    break 2
 
6728
  fi
 
6729
done
 
6730
  done
 
6731
IFS=$as_save_IFS
 
6732
 
 
6733
fi
 
6734
fi
 
6735
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6736
if test -n "$ac_ct_LIPO"; then
 
6737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6738
$as_echo "$ac_ct_LIPO" >&6; }
 
6739
else
 
6740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6741
$as_echo "no" >&6; }
 
6742
fi
 
6743
 
 
6744
  if test "x$ac_ct_LIPO" = x; then
 
6745
    LIPO=":"
 
6746
  else
 
6747
    case $cross_compiling:$ac_tool_warned in
 
6748
yes:)
 
6749
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6750
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6751
ac_tool_warned=yes ;;
 
6752
esac
 
6753
    LIPO=$ac_ct_LIPO
 
6754
  fi
 
6755
else
 
6756
  LIPO="$ac_cv_prog_LIPO"
 
6757
fi
 
6758
 
 
6759
    if test -n "$ac_tool_prefix"; then
 
6760
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6761
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6763
$as_echo_n "checking for $ac_word... " >&6; }
 
6764
if ${ac_cv_prog_OTOOL+:} false; then :
 
6765
  $as_echo_n "(cached) " >&6
 
6766
else
 
6767
  if test -n "$OTOOL"; then
 
6768
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6769
else
 
6770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6771
for as_dir in $PATH
 
6772
do
 
6773
  IFS=$as_save_IFS
 
6774
  test -z "$as_dir" && as_dir=.
 
6775
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6776
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6777
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6778
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6779
    break 2
 
6780
  fi
 
6781
done
 
6782
  done
 
6783
IFS=$as_save_IFS
 
6784
 
 
6785
fi
 
6786
fi
 
6787
OTOOL=$ac_cv_prog_OTOOL
 
6788
if test -n "$OTOOL"; then
 
6789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6790
$as_echo "$OTOOL" >&6; }
 
6791
else
 
6792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6793
$as_echo "no" >&6; }
 
6794
fi
 
6795
 
 
6796
 
 
6797
fi
 
6798
if test -z "$ac_cv_prog_OTOOL"; then
 
6799
  ac_ct_OTOOL=$OTOOL
 
6800
  # Extract the first word of "otool", so it can be a program name with args.
 
6801
set dummy otool; ac_word=$2
 
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6803
$as_echo_n "checking for $ac_word... " >&6; }
 
6804
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6805
  $as_echo_n "(cached) " >&6
 
6806
else
 
6807
  if test -n "$ac_ct_OTOOL"; then
 
6808
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6809
else
 
6810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6811
for as_dir in $PATH
 
6812
do
 
6813
  IFS=$as_save_IFS
 
6814
  test -z "$as_dir" && as_dir=.
 
6815
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6817
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6818
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6819
    break 2
 
6820
  fi
 
6821
done
 
6822
  done
 
6823
IFS=$as_save_IFS
 
6824
 
 
6825
fi
 
6826
fi
 
6827
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6828
if test -n "$ac_ct_OTOOL"; then
 
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6830
$as_echo "$ac_ct_OTOOL" >&6; }
 
6831
else
 
6832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6833
$as_echo "no" >&6; }
 
6834
fi
 
6835
 
 
6836
  if test "x$ac_ct_OTOOL" = x; then
 
6837
    OTOOL=":"
 
6838
  else
 
6839
    case $cross_compiling:$ac_tool_warned in
 
6840
yes:)
 
6841
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6842
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6843
ac_tool_warned=yes ;;
 
6844
esac
 
6845
    OTOOL=$ac_ct_OTOOL
 
6846
  fi
 
6847
else
 
6848
  OTOOL="$ac_cv_prog_OTOOL"
 
6849
fi
 
6850
 
 
6851
    if test -n "$ac_tool_prefix"; then
 
6852
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6853
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6855
$as_echo_n "checking for $ac_word... " >&6; }
 
6856
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6857
  $as_echo_n "(cached) " >&6
 
6858
else
 
6859
  if test -n "$OTOOL64"; then
 
6860
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6861
else
 
6862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6863
for as_dir in $PATH
 
6864
do
 
6865
  IFS=$as_save_IFS
 
6866
  test -z "$as_dir" && as_dir=.
 
6867
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6868
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6869
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6870
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6871
    break 2
 
6872
  fi
 
6873
done
 
6874
  done
 
6875
IFS=$as_save_IFS
 
6876
 
 
6877
fi
 
6878
fi
 
6879
OTOOL64=$ac_cv_prog_OTOOL64
 
6880
if test -n "$OTOOL64"; then
 
6881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6882
$as_echo "$OTOOL64" >&6; }
 
6883
else
 
6884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6885
$as_echo "no" >&6; }
 
6886
fi
 
6887
 
 
6888
 
 
6889
fi
 
6890
if test -z "$ac_cv_prog_OTOOL64"; then
 
6891
  ac_ct_OTOOL64=$OTOOL64
 
6892
  # Extract the first word of "otool64", so it can be a program name with args.
 
6893
set dummy otool64; ac_word=$2
 
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6895
$as_echo_n "checking for $ac_word... " >&6; }
 
6896
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
6897
  $as_echo_n "(cached) " >&6
 
6898
else
 
6899
  if test -n "$ac_ct_OTOOL64"; then
 
6900
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6901
else
 
6902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6903
for as_dir in $PATH
 
6904
do
 
6905
  IFS=$as_save_IFS
 
6906
  test -z "$as_dir" && as_dir=.
 
6907
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6909
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6910
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6911
    break 2
 
6912
  fi
 
6913
done
 
6914
  done
 
6915
IFS=$as_save_IFS
 
6916
 
 
6917
fi
 
6918
fi
 
6919
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6920
if test -n "$ac_ct_OTOOL64"; then
 
6921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6922
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6923
else
 
6924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6925
$as_echo "no" >&6; }
 
6926
fi
 
6927
 
 
6928
  if test "x$ac_ct_OTOOL64" = x; then
 
6929
    OTOOL64=":"
 
6930
  else
 
6931
    case $cross_compiling:$ac_tool_warned in
 
6932
yes:)
 
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6934
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6935
ac_tool_warned=yes ;;
 
6936
esac
 
6937
    OTOOL64=$ac_ct_OTOOL64
 
6938
  fi
 
6939
else
 
6940
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6941
fi
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
 
6951
 
 
6952
 
 
6953
 
 
6954
 
 
6955
 
 
6956
 
 
6957
 
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
 
 
6967
 
 
6968
 
 
6969
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6970
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6971
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
6972
  $as_echo_n "(cached) " >&6
 
6973
else
 
6974
  lt_cv_apple_cc_single_mod=no
 
6975
      if test -z "${LT_MULTI_MODULE}"; then
 
6976
        # By default we will add the -single_module flag. You can override
 
6977
        # by either setting the environment variable LT_MULTI_MODULE
 
6978
        # non-empty at configure time, or by adding -multi_module to the
 
6979
        # link flags.
 
6980
        rm -rf libconftest.dylib*
 
6981
        echo "int foo(void){return 1;}" > conftest.c
 
6982
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6983
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6984
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6985
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6986
        _lt_result=$?
 
6987
        # If there is a non-empty error log, and "single_module"
 
6988
        # appears in it, assume the flag caused a linker warning
 
6989
        if test -s conftest.err && $GREP single_module conftest.err; then
 
6990
          cat conftest.err >&5
 
6991
        # Otherwise, if the output was created with a 0 exit code from
 
6992
        # the compiler, it worked.
 
6993
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
6994
          lt_cv_apple_cc_single_mod=yes
 
6995
        else
 
6996
          cat conftest.err >&5
 
6997
        fi
 
6998
        rm -rf libconftest.dylib*
 
6999
        rm -f conftest.*
 
7000
      fi
 
7001
fi
 
7002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7003
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7004
 
 
7005
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7006
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7007
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7008
  $as_echo_n "(cached) " >&6
 
7009
else
 
7010
  lt_cv_ld_exported_symbols_list=no
 
7011
      save_LDFLAGS=$LDFLAGS
 
7012
      echo "_main" > conftest.sym
 
7013
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7014
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7015
/* end confdefs.h.  */
 
7016
 
 
7017
int
 
7018
main ()
 
7019
{
 
7020
 
 
7021
  ;
 
7022
  return 0;
 
7023
}
 
7024
_ACEOF
 
7025
if ac_fn_c_try_link "$LINENO"; then :
 
7026
  lt_cv_ld_exported_symbols_list=yes
 
7027
else
 
7028
  lt_cv_ld_exported_symbols_list=no
 
7029
fi
 
7030
rm -f core conftest.err conftest.$ac_objext \
 
7031
    conftest$ac_exeext conftest.$ac_ext
 
7032
        LDFLAGS="$save_LDFLAGS"
 
7033
 
 
7034
fi
 
7035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7036
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7037
 
 
7038
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7039
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7040
if ${lt_cv_ld_force_load+:} false; then :
 
7041
  $as_echo_n "(cached) " >&6
 
7042
else
 
7043
  lt_cv_ld_force_load=no
 
7044
      cat > conftest.c << _LT_EOF
 
7045
int forced_loaded() { return 2;}
 
7046
_LT_EOF
 
7047
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7048
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7049
      echo "$AR cru libconftest.a conftest.o" >&5
 
7050
      $AR cru libconftest.a conftest.o 2>&5
 
7051
      echo "$RANLIB libconftest.a" >&5
 
7052
      $RANLIB libconftest.a 2>&5
 
7053
      cat > conftest.c << _LT_EOF
 
7054
int main() { return 0;}
 
7055
_LT_EOF
 
7056
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7057
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7058
      _lt_result=$?
 
7059
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7060
        cat conftest.err >&5
 
7061
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7062
        lt_cv_ld_force_load=yes
 
7063
      else
 
7064
        cat conftest.err >&5
 
7065
      fi
 
7066
        rm -f conftest.err libconftest.a conftest conftest.c
 
7067
        rm -rf conftest.dSYM
 
7068
 
 
7069
fi
 
7070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7071
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7072
    case $host_os in
 
7073
    rhapsody* | darwin1.[012])
 
7074
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7075
    darwin1.*)
 
7076
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7077
    darwin*) # darwin 5.x on
 
7078
      # if running on 10.5 or later, the deployment target defaults
 
7079
      # to the OS version, if on x86, and 10.4, the deployment
 
7080
      # target defaults to 10.4. Don't you love it?
 
7081
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7082
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7083
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7084
        10.[012]*)
 
7085
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7086
        10.*)
 
7087
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7088
      esac
 
7089
    ;;
 
7090
  esac
 
7091
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7092
      _lt_dar_single_mod='$single_module'
 
7093
    fi
 
7094
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7095
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7096
    else
 
7097
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7098
    fi
 
7099
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7100
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7101
    else
 
7102
      _lt_dsymutil=
 
7103
    fi
 
7104
    ;;
 
7105
  esac
 
7106
 
 
7107
ac_ext=c
 
7108
ac_cpp='$CPP $CPPFLAGS'
 
7109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7113
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7114
# On Suns, sometimes $CPP names a directory.
 
7115
if test -n "$CPP" && test -d "$CPP"; then
 
7116
  CPP=
 
7117
fi
 
7118
if test -z "$CPP"; then
 
7119
  if ${ac_cv_prog_CPP+:} false; then :
 
7120
  $as_echo_n "(cached) " >&6
 
7121
else
 
7122
      # Double quotes because CPP needs to be expanded
 
7123
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7124
    do
 
7125
      ac_preproc_ok=false
 
7126
for ac_c_preproc_warn_flag in '' yes
 
7127
do
 
7128
  # Use a header file that comes with gcc, so configuring glibc
 
7129
  # with a fresh cross-compiler works.
 
7130
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7131
  # <limits.h> exists even on freestanding compilers.
 
7132
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7133
  # not just through cpp. "Syntax error" is here to catch this case.
 
7134
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7135
/* end confdefs.h.  */
 
7136
#ifdef __STDC__
 
7137
# include <limits.h>
 
7138
#else
 
7139
# include <assert.h>
 
7140
#endif
 
7141
                     Syntax error
 
7142
_ACEOF
 
7143
if ac_fn_c_try_cpp "$LINENO"; then :
 
7144
 
 
7145
else
 
7146
  # Broken: fails on valid input.
 
7147
continue
 
7148
fi
 
7149
rm -f conftest.err conftest.i conftest.$ac_ext
 
7150
 
 
7151
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7152
  # can be detected and how.
 
7153
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7154
/* end confdefs.h.  */
 
7155
#include <ac_nonexistent.h>
 
7156
_ACEOF
 
7157
if ac_fn_c_try_cpp "$LINENO"; then :
 
7158
  # Broken: success on invalid input.
 
7159
continue
 
7160
else
 
7161
  # Passes both tests.
 
7162
ac_preproc_ok=:
 
7163
break
 
7164
fi
 
7165
rm -f conftest.err conftest.i conftest.$ac_ext
 
7166
 
 
7167
done
 
7168
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7169
rm -f conftest.i conftest.err conftest.$ac_ext
 
7170
if $ac_preproc_ok; then :
 
7171
  break
 
7172
fi
 
7173
 
 
7174
    done
 
7175
    ac_cv_prog_CPP=$CPP
 
7176
 
 
7177
fi
 
7178
  CPP=$ac_cv_prog_CPP
 
7179
else
 
7180
  ac_cv_prog_CPP=$CPP
 
7181
fi
 
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7183
$as_echo "$CPP" >&6; }
 
7184
ac_preproc_ok=false
 
7185
for ac_c_preproc_warn_flag in '' yes
 
7186
do
 
7187
  # Use a header file that comes with gcc, so configuring glibc
 
7188
  # with a fresh cross-compiler works.
 
7189
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7190
  # <limits.h> exists even on freestanding compilers.
 
7191
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7192
  # not just through cpp. "Syntax error" is here to catch this case.
 
7193
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7194
/* end confdefs.h.  */
 
7195
#ifdef __STDC__
 
7196
# include <limits.h>
 
7197
#else
 
7198
# include <assert.h>
 
7199
#endif
 
7200
                     Syntax error
 
7201
_ACEOF
 
7202
if ac_fn_c_try_cpp "$LINENO"; then :
 
7203
 
 
7204
else
 
7205
  # Broken: fails on valid input.
 
7206
continue
 
7207
fi
 
7208
rm -f conftest.err conftest.i conftest.$ac_ext
 
7209
 
 
7210
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7211
  # can be detected and how.
 
7212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7213
/* end confdefs.h.  */
 
7214
#include <ac_nonexistent.h>
 
7215
_ACEOF
 
7216
if ac_fn_c_try_cpp "$LINENO"; then :
 
7217
  # Broken: success on invalid input.
 
7218
continue
 
7219
else
 
7220
  # Passes both tests.
 
7221
ac_preproc_ok=:
 
7222
break
 
7223
fi
 
7224
rm -f conftest.err conftest.i conftest.$ac_ext
 
7225
 
 
7226
done
 
7227
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7228
rm -f conftest.i conftest.err conftest.$ac_ext
 
7229
if $ac_preproc_ok; then :
 
7230
 
 
7231
else
 
7232
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7233
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7234
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7235
See \`config.log' for more details" "$LINENO" 5; }
 
7236
fi
 
7237
 
 
7238
ac_ext=c
 
7239
ac_cpp='$CPP $CPPFLAGS'
 
7240
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7241
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7242
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7243
 
 
7244
 
 
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7246
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7247
if ${ac_cv_header_stdc+:} false; then :
 
7248
  $as_echo_n "(cached) " >&6
 
7249
else
 
7250
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7251
/* end confdefs.h.  */
 
7252
#include <stdlib.h>
 
7253
#include <stdarg.h>
 
7254
#include <string.h>
 
7255
#include <float.h>
 
7256
 
 
7257
int
 
7258
main ()
 
7259
{
 
7260
 
 
7261
  ;
 
7262
  return 0;
 
7263
}
 
7264
_ACEOF
 
7265
if ac_fn_c_try_compile "$LINENO"; then :
 
7266
  ac_cv_header_stdc=yes
 
7267
else
 
7268
  ac_cv_header_stdc=no
 
7269
fi
 
7270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7271
 
 
7272
if test $ac_cv_header_stdc = yes; then
 
7273
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7274
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7275
/* end confdefs.h.  */
 
7276
#include <string.h>
 
7277
 
 
7278
_ACEOF
 
7279
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7280
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7281
 
 
7282
else
 
7283
  ac_cv_header_stdc=no
 
7284
fi
 
7285
rm -f conftest*
 
7286
 
 
7287
fi
 
7288
 
 
7289
if test $ac_cv_header_stdc = yes; then
 
7290
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7291
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7292
/* end confdefs.h.  */
 
7293
#include <stdlib.h>
 
7294
 
 
7295
_ACEOF
 
7296
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7297
  $EGREP "free" >/dev/null 2>&1; then :
 
7298
 
 
7299
else
 
7300
  ac_cv_header_stdc=no
 
7301
fi
 
7302
rm -f conftest*
 
7303
 
 
7304
fi
 
7305
 
 
7306
if test $ac_cv_header_stdc = yes; then
 
7307
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7308
  if test "$cross_compiling" = yes; then :
 
7309
  :
 
7310
else
 
7311
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7312
/* end confdefs.h.  */
 
7313
#include <ctype.h>
 
7314
#include <stdlib.h>
 
7315
#if ((' ' & 0x0FF) == 0x020)
 
7316
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7317
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7318
#else
 
7319
# define ISLOWER(c) \
 
7320
                   (('a' <= (c) && (c) <= 'i') \
 
7321
                     || ('j' <= (c) && (c) <= 'r') \
 
7322
                     || ('s' <= (c) && (c) <= 'z'))
 
7323
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7324
#endif
 
7325
 
 
7326
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7327
int
 
7328
main ()
 
7329
{
 
7330
  int i;
 
7331
  for (i = 0; i < 256; i++)
 
7332
    if (XOR (islower (i), ISLOWER (i))
 
7333
        || toupper (i) != TOUPPER (i))
 
7334
      return 2;
 
7335
  return 0;
 
7336
}
 
7337
_ACEOF
 
7338
if ac_fn_c_try_run "$LINENO"; then :
 
7339
 
 
7340
else
 
7341
  ac_cv_header_stdc=no
 
7342
fi
 
7343
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7344
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7345
fi
 
7346
 
 
7347
fi
 
7348
fi
 
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7350
$as_echo "$ac_cv_header_stdc" >&6; }
 
7351
if test $ac_cv_header_stdc = yes; then
 
7352
 
 
7353
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7354
 
 
7355
fi
 
7356
 
 
7357
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7358
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7359
                  inttypes.h stdint.h unistd.h
 
7360
do :
 
7361
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7362
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7363
"
 
7364
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7365
  cat >>confdefs.h <<_ACEOF
 
7366
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7367
_ACEOF
 
7368
 
 
7369
fi
 
7370
 
 
7371
done
 
7372
 
 
7373
 
 
7374
for ac_header in dlfcn.h
 
7375
do :
 
7376
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7377
"
 
7378
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7379
  cat >>confdefs.h <<_ACEOF
 
7380
#define HAVE_DLFCN_H 1
 
7381
_ACEOF
 
7382
 
 
7383
fi
 
7384
 
 
7385
done
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
 
 
7391
# Set options
 
7392
 
 
7393
 
 
7394
 
 
7395
        enable_dlopen=no
 
7396
 
 
7397
 
 
7398
  enable_win32_dll=no
 
7399
 
 
7400
 
 
7401
            # Check whether --enable-shared was given.
 
7402
if test "${enable_shared+set}" = set; then :
 
7403
  enableval=$enable_shared; p=${PACKAGE-default}
 
7404
    case $enableval in
 
7405
    yes) enable_shared=yes ;;
 
7406
    no) enable_shared=no ;;
 
7407
    *)
 
7408
      enable_shared=no
 
7409
      # Look at the argument we got.  We use all the common list separators.
 
7410
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7411
      for pkg in $enableval; do
 
7412
        IFS="$lt_save_ifs"
 
7413
        if test "X$pkg" = "X$p"; then
 
7414
          enable_shared=yes
 
7415
        fi
 
7416
      done
 
7417
      IFS="$lt_save_ifs"
 
7418
      ;;
 
7419
    esac
 
7420
else
 
7421
  enable_shared=yes
 
7422
fi
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
  # Check whether --enable-static was given.
 
7433
if test "${enable_static+set}" = set; then :
 
7434
  enableval=$enable_static; p=${PACKAGE-default}
 
7435
    case $enableval in
 
7436
    yes) enable_static=yes ;;
 
7437
    no) enable_static=no ;;
 
7438
    *)
 
7439
     enable_static=no
 
7440
      # Look at the argument we got.  We use all the common list separators.
 
7441
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7442
      for pkg in $enableval; do
 
7443
        IFS="$lt_save_ifs"
 
7444
        if test "X$pkg" = "X$p"; then
 
7445
          enable_static=yes
 
7446
        fi
 
7447
      done
 
7448
      IFS="$lt_save_ifs"
 
7449
      ;;
 
7450
    esac
 
7451
else
 
7452
  enable_static=yes
 
7453
fi
 
7454
 
 
7455
 
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
7464
# Check whether --with-pic was given.
 
7465
if test "${with_pic+set}" = set; then :
 
7466
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7467
    case $withval in
 
7468
    yes|no) pic_mode=$withval ;;
 
7469
    *)
 
7470
      pic_mode=default
 
7471
      # Look at the argument we got.  We use all the common list separators.
 
7472
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7473
      for lt_pkg in $withval; do
 
7474
        IFS="$lt_save_ifs"
 
7475
        if test "X$lt_pkg" = "X$lt_p"; then
 
7476
          pic_mode=yes
 
7477
        fi
 
7478
      done
 
7479
      IFS="$lt_save_ifs"
 
7480
      ;;
 
7481
    esac
 
7482
else
 
7483
  pic_mode=default
 
7484
fi
 
7485
 
 
7486
 
 
7487
test -z "$pic_mode" && pic_mode=default
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
  # Check whether --enable-fast-install was given.
 
7496
if test "${enable_fast_install+set}" = set; then :
 
7497
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7498
    case $enableval in
 
7499
    yes) enable_fast_install=yes ;;
 
7500
    no) enable_fast_install=no ;;
 
7501
    *)
 
7502
      enable_fast_install=no
 
7503
      # Look at the argument we got.  We use all the common list separators.
 
7504
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7505
      for pkg in $enableval; do
 
7506
        IFS="$lt_save_ifs"
 
7507
        if test "X$pkg" = "X$p"; then
 
7508
          enable_fast_install=yes
 
7509
        fi
 
7510
      done
 
7511
      IFS="$lt_save_ifs"
 
7512
      ;;
 
7513
    esac
 
7514
else
 
7515
  enable_fast_install=yes
 
7516
fi
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
# This can be used to rebuild libtool when needed
 
7529
LIBTOOL_DEPS="$ltmain"
 
7530
 
 
7531
# Always use our own libtool.
 
7532
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
test -z "$LN_S" && LN_S="ln -s"
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
 
7570
 
 
7571
 
 
7572
 
 
7573
 
 
7574
 
 
7575
 
 
7576
 
 
7577
 
 
7578
if test -n "${ZSH_VERSION+set}" ; then
 
7579
   setopt NO_GLOB_SUBST
 
7580
fi
 
7581
 
 
7582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7583
$as_echo_n "checking for objdir... " >&6; }
 
7584
if ${lt_cv_objdir+:} false; then :
 
7585
  $as_echo_n "(cached) " >&6
 
7586
else
 
7587
  rm -f .libs 2>/dev/null
 
7588
mkdir .libs 2>/dev/null
 
7589
if test -d .libs; then
 
7590
  lt_cv_objdir=.libs
 
7591
else
 
7592
  # MS-DOS does not allow filenames that begin with a dot.
 
7593
  lt_cv_objdir=_libs
 
7594
fi
 
7595
rmdir .libs 2>/dev/null
 
7596
fi
 
7597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7598
$as_echo "$lt_cv_objdir" >&6; }
 
7599
objdir=$lt_cv_objdir
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
cat >>confdefs.h <<_ACEOF
 
7606
#define LT_OBJDIR "$lt_cv_objdir/"
 
7607
_ACEOF
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
case $host_os in
 
7613
aix3*)
 
7614
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7615
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7616
  # vanish in a puff of smoke.
 
7617
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7618
    COLLECT_NAMES=
 
7619
    export COLLECT_NAMES
 
7620
  fi
 
7621
  ;;
 
7622
esac
 
7623
 
 
7624
# Global variables:
 
7625
ofile=libtool
 
7626
can_build_shared=yes
 
7627
 
 
7628
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7629
# which needs '.lib').
 
7630
libext=a
 
7631
 
 
7632
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7633
 
 
7634
old_CC="$CC"
 
7635
old_CFLAGS="$CFLAGS"
 
7636
 
 
7637
# Set sane defaults for various variables
 
7638
test -z "$CC" && CC=cc
 
7639
test -z "$LTCC" && LTCC=$CC
 
7640
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7641
test -z "$LD" && LD=ld
 
7642
test -z "$ac_objext" && ac_objext=o
 
7643
 
 
7644
for cc_temp in $compiler""; do
 
7645
  case $cc_temp in
 
7646
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7647
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7648
    \-*) ;;
 
7649
    *) break;;
 
7650
  esac
 
7651
done
 
7652
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7653
 
 
7654
 
 
7655
# Only perform the check for file, if the check method requires it
 
7656
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7657
case $deplibs_check_method in
 
7658
file_magic*)
 
7659
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7660
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7661
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7662
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7663
  $as_echo_n "(cached) " >&6
 
7664
else
 
7665
  case $MAGIC_CMD in
 
7666
[\\/*] |  ?:[\\/]*)
 
7667
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7668
  ;;
 
7669
*)
 
7670
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7671
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7672
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7673
  for ac_dir in $ac_dummy; do
 
7674
    IFS="$lt_save_ifs"
 
7675
    test -z "$ac_dir" && ac_dir=.
 
7676
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7677
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7678
      if test -n "$file_magic_test_file"; then
 
7679
        case $deplibs_check_method in
 
7680
        "file_magic "*)
 
7681
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7682
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7683
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7684
            $EGREP "$file_magic_regex" > /dev/null; then
 
7685
            :
 
7686
          else
 
7687
            cat <<_LT_EOF 1>&2
 
7688
 
 
7689
*** Warning: the command libtool uses to detect shared libraries,
 
7690
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7691
*** The result is that libtool may fail to recognize shared libraries
 
7692
*** as such.  This will affect the creation of libtool libraries that
 
7693
*** depend on shared libraries, but programs linked with such libtool
 
7694
*** libraries will work regardless of this problem.  Nevertheless, you
 
7695
*** may want to report the problem to your system manager and/or to
 
7696
*** bug-libtool@gnu.org
 
7697
 
 
7698
_LT_EOF
 
7699
          fi ;;
 
7700
        esac
 
7701
      fi
 
7702
      break
 
7703
    fi
 
7704
  done
 
7705
  IFS="$lt_save_ifs"
 
7706
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7707
  ;;
 
7708
esac
 
7709
fi
 
7710
 
 
7711
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7712
if test -n "$MAGIC_CMD"; then
 
7713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7714
$as_echo "$MAGIC_CMD" >&6; }
 
7715
else
 
7716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7717
$as_echo "no" >&6; }
 
7718
fi
 
7719
 
 
7720
 
 
7721
 
 
7722
 
 
7723
 
 
7724
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7725
  if test -n "$ac_tool_prefix"; then
 
7726
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7727
$as_echo_n "checking for file... " >&6; }
 
7728
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7729
  $as_echo_n "(cached) " >&6
 
7730
else
 
7731
  case $MAGIC_CMD in
 
7732
[\\/*] |  ?:[\\/]*)
 
7733
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7734
  ;;
 
7735
*)
 
7736
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7737
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7738
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7739
  for ac_dir in $ac_dummy; do
 
7740
    IFS="$lt_save_ifs"
 
7741
    test -z "$ac_dir" && ac_dir=.
 
7742
    if test -f $ac_dir/file; then
 
7743
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7744
      if test -n "$file_magic_test_file"; then
 
7745
        case $deplibs_check_method in
 
7746
        "file_magic "*)
 
7747
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7748
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7749
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7750
            $EGREP "$file_magic_regex" > /dev/null; then
 
7751
            :
 
7752
          else
 
7753
            cat <<_LT_EOF 1>&2
 
7754
 
 
7755
*** Warning: the command libtool uses to detect shared libraries,
 
7756
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7757
*** The result is that libtool may fail to recognize shared libraries
 
7758
*** as such.  This will affect the creation of libtool libraries that
 
7759
*** depend on shared libraries, but programs linked with such libtool
 
7760
*** libraries will work regardless of this problem.  Nevertheless, you
 
7761
*** may want to report the problem to your system manager and/or to
 
7762
*** bug-libtool@gnu.org
 
7763
 
 
7764
_LT_EOF
 
7765
          fi ;;
 
7766
        esac
 
7767
      fi
 
7768
      break
 
7769
    fi
 
7770
  done
 
7771
  IFS="$lt_save_ifs"
 
7772
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7773
  ;;
 
7774
esac
 
7775
fi
 
7776
 
 
7777
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7778
if test -n "$MAGIC_CMD"; then
 
7779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7780
$as_echo "$MAGIC_CMD" >&6; }
 
7781
else
 
7782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7783
$as_echo "no" >&6; }
 
7784
fi
 
7785
 
 
7786
 
 
7787
  else
 
7788
    MAGIC_CMD=:
 
7789
  fi
 
7790
fi
 
7791
 
 
7792
  fi
 
7793
  ;;
 
7794
esac
 
7795
 
 
7796
# Use C for the default configuration in the libtool script
 
7797
 
 
7798
lt_save_CC="$CC"
 
7799
ac_ext=c
 
7800
ac_cpp='$CPP $CPPFLAGS'
 
7801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7804
 
 
7805
 
 
7806
# Source file extension for C test sources.
 
7807
ac_ext=c
 
7808
 
 
7809
# Object file extension for compiled C test sources.
 
7810
objext=o
 
7811
objext=$objext
 
7812
 
 
7813
# Code to be used in simple compile tests
 
7814
lt_simple_compile_test_code="int some_variable = 0;"
 
7815
 
 
7816
# Code to be used in simple link tests
 
7817
lt_simple_link_test_code='int main(){return(0);}'
 
7818
 
 
7819
 
 
7820
 
 
7821
 
 
7822
 
 
7823
 
 
7824
 
 
7825
# If no C compiler was specified, use CC.
 
7826
LTCC=${LTCC-"$CC"}
 
7827
 
 
7828
# If no C compiler flags were specified, use CFLAGS.
 
7829
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7830
 
 
7831
# Allow CC to be a program name with arguments.
 
7832
compiler=$CC
 
7833
 
 
7834
# Save the default compiler, since it gets overwritten when the other
 
7835
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7836
compiler_DEFAULT=$CC
 
7837
 
 
7838
# save warnings/boilerplate of simple test code
 
7839
ac_outfile=conftest.$ac_objext
 
7840
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7841
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7842
_lt_compiler_boilerplate=`cat conftest.err`
 
7843
$RM conftest*
 
7844
 
 
7845
ac_outfile=conftest.$ac_objext
 
7846
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7847
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7848
_lt_linker_boilerplate=`cat conftest.err`
 
7849
$RM -r conftest*
 
7850
 
 
7851
 
 
7852
if test -n "$compiler"; then
 
7853
 
 
7854
lt_prog_compiler_no_builtin_flag=
 
7855
 
 
7856
if test "$GCC" = yes; then
 
7857
  case $cc_basename in
 
7858
  nvcc*)
 
7859
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7860
  *)
 
7861
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7862
  esac
 
7863
 
 
7864
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7865
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7866
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
7867
  $as_echo_n "(cached) " >&6
 
7868
else
 
7869
  lt_cv_prog_compiler_rtti_exceptions=no
 
7870
   ac_outfile=conftest.$ac_objext
 
7871
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7872
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7873
   # Insert the option either (1) after the last *FLAGS variable, or
 
7874
   # (2) before a word containing "conftest.", or (3) at the end.
 
7875
   # Note that $ac_compile itself does not contain backslashes and begins
 
7876
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7877
   # The option is referenced via a variable to avoid confusing sed.
 
7878
   lt_compile=`echo "$ac_compile" | $SED \
 
7879
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7880
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7881
   -e 's:$: $lt_compiler_flag:'`
 
7882
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
7883
   (eval "$lt_compile" 2>conftest.err)
 
7884
   ac_status=$?
 
7885
   cat conftest.err >&5
 
7886
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7887
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7888
     # The compiler can only warn and ignore the option if not recognized
 
7889
     # So say no if there are warnings other than the usual output.
 
7890
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
7891
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7892
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7893
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7894
     fi
 
7895
   fi
 
7896
   $RM conftest*
 
7897
 
 
7898
fi
 
7899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7900
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7901
 
 
7902
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7903
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7904
else
 
7905
    :
 
7906
fi
 
7907
 
 
7908
fi
 
7909
 
 
7910
 
 
7911
 
 
7912
 
 
7913
 
 
7914
 
 
7915
  lt_prog_compiler_wl=
 
7916
lt_prog_compiler_pic=
 
7917
lt_prog_compiler_static=
 
7918
 
 
7919
 
 
7920
  if test "$GCC" = yes; then
 
7921
    lt_prog_compiler_wl='-Wl,'
 
7922
    lt_prog_compiler_static='-static'
 
7923
 
 
7924
    case $host_os in
 
7925
      aix*)
 
7926
      # All AIX code is PIC.
 
7927
      if test "$host_cpu" = ia64; then
 
7928
        # AIX 5 now supports IA64 processor
 
7929
        lt_prog_compiler_static='-Bstatic'
 
7930
      fi
 
7931
      ;;
 
7932
 
 
7933
    amigaos*)
 
7934
      case $host_cpu in
 
7935
      powerpc)
 
7936
            # see comment about AmigaOS4 .so support
 
7937
            lt_prog_compiler_pic='-fPIC'
 
7938
        ;;
 
7939
      m68k)
 
7940
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7941
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7942
            # like `-m68040'.
 
7943
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7944
        ;;
 
7945
      esac
 
7946
      ;;
 
7947
 
 
7948
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7949
      # PIC is the default for these OSes.
 
7950
      ;;
 
7951
 
 
7952
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7953
      # This hack is so that the source file can tell whether it is being
 
7954
      # built for inclusion in a dll (and should export symbols for example).
 
7955
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7956
      # (--disable-auto-import) libraries
 
7957
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7958
      ;;
 
7959
 
 
7960
    darwin* | rhapsody*)
 
7961
      # PIC is the default on this platform
 
7962
      # Common symbols not allowed in MH_DYLIB files
 
7963
      lt_prog_compiler_pic='-fno-common'
 
7964
      ;;
 
7965
 
 
7966
    haiku*)
 
7967
      # PIC is the default for Haiku.
 
7968
      # The "-static" flag exists, but is broken.
 
7969
      lt_prog_compiler_static=
 
7970
      ;;
 
7971
 
 
7972
    hpux*)
 
7973
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7974
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7975
      # sets the default TLS model and affects inlining.
 
7976
      case $host_cpu in
 
7977
      hppa*64*)
 
7978
        # +Z the default
 
7979
        ;;
 
7980
      *)
 
7981
        lt_prog_compiler_pic='-fPIC'
 
7982
        ;;
 
7983
      esac
 
7984
      ;;
 
7985
 
 
7986
    interix[3-9]*)
 
7987
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7988
      # Instead, we relocate shared libraries at runtime.
 
7989
      ;;
 
7990
 
 
7991
    msdosdjgpp*)
 
7992
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7993
      # on systems that don't support them.
 
7994
      lt_prog_compiler_can_build_shared=no
 
7995
      enable_shared=no
 
7996
      ;;
 
7997
 
 
7998
    *nto* | *qnx*)
 
7999
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8000
      # it will coredump.
 
8001
      lt_prog_compiler_pic='-fPIC -shared'
 
8002
      ;;
 
8003
 
 
8004
    sysv4*MP*)
 
8005
      if test -d /usr/nec; then
 
8006
        lt_prog_compiler_pic=-Kconform_pic
 
8007
      fi
 
8008
      ;;
 
8009
 
 
8010
    *)
 
8011
      lt_prog_compiler_pic='-fPIC'
 
8012
      ;;
 
8013
    esac
 
8014
 
 
8015
    case $cc_basename in
 
8016
    nvcc*) # Cuda Compiler Driver 2.2
 
8017
      lt_prog_compiler_wl='-Xlinker '
 
8018
      if test -n "$lt_prog_compiler_pic"; then
 
8019
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8020
      fi
 
8021
      ;;
 
8022
    esac
 
8023
  else
 
8024
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8025
    case $host_os in
 
8026
    aix*)
 
8027
      lt_prog_compiler_wl='-Wl,'
 
8028
      if test "$host_cpu" = ia64; then
 
8029
        # AIX 5 now supports IA64 processor
 
8030
        lt_prog_compiler_static='-Bstatic'
 
8031
      else
 
8032
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8033
      fi
 
8034
      ;;
 
8035
 
 
8036
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8037
      # This hack is so that the source file can tell whether it is being
 
8038
      # built for inclusion in a dll (and should export symbols for example).
 
8039
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8040
      ;;
 
8041
 
 
8042
    hpux9* | hpux10* | hpux11*)
 
8043
      lt_prog_compiler_wl='-Wl,'
 
8044
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8045
      # not for PA HP-UX.
 
8046
      case $host_cpu in
 
8047
      hppa*64*|ia64*)
 
8048
        # +Z the default
 
8049
        ;;
 
8050
      *)
 
8051
        lt_prog_compiler_pic='+Z'
 
8052
        ;;
 
8053
      esac
 
8054
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8055
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8056
      ;;
 
8057
 
 
8058
    irix5* | irix6* | nonstopux*)
 
8059
      lt_prog_compiler_wl='-Wl,'
 
8060
      # PIC (with -KPIC) is the default.
 
8061
      lt_prog_compiler_static='-non_shared'
 
8062
      ;;
 
8063
 
 
8064
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8065
      case $cc_basename in
 
8066
      # old Intel for x86_64 which still supported -KPIC.
 
8067
      ecc*)
 
8068
        lt_prog_compiler_wl='-Wl,'
 
8069
        lt_prog_compiler_pic='-KPIC'
 
8070
        lt_prog_compiler_static='-static'
 
8071
        ;;
 
8072
      # icc used to be incompatible with GCC.
 
8073
      # ICC 10 doesn't accept -KPIC any more.
 
8074
      icc* | ifort*)
 
8075
        lt_prog_compiler_wl='-Wl,'
 
8076
        lt_prog_compiler_pic='-fPIC'
 
8077
        lt_prog_compiler_static='-static'
 
8078
        ;;
 
8079
      # Lahey Fortran 8.1.
 
8080
      lf95*)
 
8081
        lt_prog_compiler_wl='-Wl,'
 
8082
        lt_prog_compiler_pic='--shared'
 
8083
        lt_prog_compiler_static='--static'
 
8084
        ;;
 
8085
      nagfor*)
 
8086
        # NAG Fortran compiler
 
8087
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8088
        lt_prog_compiler_pic='-PIC'
 
8089
        lt_prog_compiler_static='-Bstatic'
 
8090
        ;;
 
8091
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8092
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8093
        # which looks to be a dead project)
 
8094
        lt_prog_compiler_wl='-Wl,'
 
8095
        lt_prog_compiler_pic='-fpic'
 
8096
        lt_prog_compiler_static='-Bstatic'
 
8097
        ;;
 
8098
      ccc*)
 
8099
        lt_prog_compiler_wl='-Wl,'
 
8100
        # All Alpha code is PIC.
 
8101
        lt_prog_compiler_static='-non_shared'
 
8102
        ;;
 
8103
      xl* | bgxl* | bgf* | mpixl*)
 
8104
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8105
        lt_prog_compiler_wl='-Wl,'
 
8106
        lt_prog_compiler_pic='-qpic'
 
8107
        lt_prog_compiler_static='-qstaticlink'
 
8108
        ;;
 
8109
      *)
 
8110
        case `$CC -V 2>&1 | sed 5q` in
 
8111
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8112
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8113
          lt_prog_compiler_pic='-KPIC'
 
8114
          lt_prog_compiler_static='-Bstatic'
 
8115
          lt_prog_compiler_wl=''
 
8116
          ;;
 
8117
        *Sun\ F* | *Sun*Fortran*)
 
8118
          lt_prog_compiler_pic='-KPIC'
 
8119
          lt_prog_compiler_static='-Bstatic'
 
8120
          lt_prog_compiler_wl='-Qoption ld '
 
8121
          ;;
 
8122
        *Sun\ C*)
 
8123
          # Sun C 5.9
 
8124
          lt_prog_compiler_pic='-KPIC'
 
8125
          lt_prog_compiler_static='-Bstatic'
 
8126
          lt_prog_compiler_wl='-Wl,'
 
8127
          ;;
 
8128
        *Intel*\ [CF]*Compiler*)
 
8129
          lt_prog_compiler_wl='-Wl,'
 
8130
          lt_prog_compiler_pic='-fPIC'
 
8131
          lt_prog_compiler_static='-static'
 
8132
          ;;
 
8133
        *Portland\ Group*)
 
8134
          lt_prog_compiler_wl='-Wl,'
 
8135
          lt_prog_compiler_pic='-fpic'
 
8136
          lt_prog_compiler_static='-Bstatic'
 
8137
          ;;
 
8138
        esac
 
8139
        ;;
 
8140
      esac
 
8141
      ;;
 
8142
 
 
8143
    newsos6)
 
8144
      lt_prog_compiler_pic='-KPIC'
 
8145
      lt_prog_compiler_static='-Bstatic'
 
8146
      ;;
 
8147
 
 
8148
    *nto* | *qnx*)
 
8149
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8150
      # it will coredump.
 
8151
      lt_prog_compiler_pic='-fPIC -shared'
 
8152
      ;;
 
8153
 
 
8154
    osf3* | osf4* | osf5*)
 
8155
      lt_prog_compiler_wl='-Wl,'
 
8156
      # All OSF/1 code is PIC.
 
8157
      lt_prog_compiler_static='-non_shared'
 
8158
      ;;
 
8159
 
 
8160
    rdos*)
 
8161
      lt_prog_compiler_static='-non_shared'
 
8162
      ;;
 
8163
 
 
8164
    solaris*)
 
8165
      lt_prog_compiler_pic='-KPIC'
 
8166
      lt_prog_compiler_static='-Bstatic'
 
8167
      case $cc_basename in
 
8168
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8169
        lt_prog_compiler_wl='-Qoption ld ';;
 
8170
      *)
 
8171
        lt_prog_compiler_wl='-Wl,';;
 
8172
      esac
 
8173
      ;;
 
8174
 
 
8175
    sunos4*)
 
8176
      lt_prog_compiler_wl='-Qoption ld '
 
8177
      lt_prog_compiler_pic='-PIC'
 
8178
      lt_prog_compiler_static='-Bstatic'
 
8179
      ;;
 
8180
 
 
8181
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8182
      lt_prog_compiler_wl='-Wl,'
 
8183
      lt_prog_compiler_pic='-KPIC'
 
8184
      lt_prog_compiler_static='-Bstatic'
 
8185
      ;;
 
8186
 
 
8187
    sysv4*MP*)
 
8188
      if test -d /usr/nec ;then
 
8189
        lt_prog_compiler_pic='-Kconform_pic'
 
8190
        lt_prog_compiler_static='-Bstatic'
 
8191
      fi
 
8192
      ;;
 
8193
 
 
8194
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8195
      lt_prog_compiler_wl='-Wl,'
 
8196
      lt_prog_compiler_pic='-KPIC'
 
8197
      lt_prog_compiler_static='-Bstatic'
 
8198
      ;;
 
8199
 
 
8200
    unicos*)
 
8201
      lt_prog_compiler_wl='-Wl,'
 
8202
      lt_prog_compiler_can_build_shared=no
 
8203
      ;;
 
8204
 
 
8205
    uts4*)
 
8206
      lt_prog_compiler_pic='-pic'
 
8207
      lt_prog_compiler_static='-Bstatic'
 
8208
      ;;
 
8209
 
 
8210
    *)
 
8211
      lt_prog_compiler_can_build_shared=no
 
8212
      ;;
 
8213
    esac
 
8214
  fi
 
8215
 
 
8216
case $host_os in
 
8217
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8218
  *djgpp*)
 
8219
    lt_prog_compiler_pic=
 
8220
    ;;
 
8221
  *)
 
8222
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8223
    ;;
 
8224
esac
 
8225
 
 
8226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8227
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8228
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8229
  $as_echo_n "(cached) " >&6
 
8230
else
 
8231
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8232
fi
 
8233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8234
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8235
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8236
 
 
8237
#
 
8238
# Check to make sure the PIC flag actually works.
 
8239
#
 
8240
if test -n "$lt_prog_compiler_pic"; then
 
8241
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8242
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8243
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8244
  $as_echo_n "(cached) " >&6
 
8245
else
 
8246
  lt_cv_prog_compiler_pic_works=no
 
8247
   ac_outfile=conftest.$ac_objext
 
8248
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8249
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8250
   # Insert the option either (1) after the last *FLAGS variable, or
 
8251
   # (2) before a word containing "conftest.", or (3) at the end.
 
8252
   # Note that $ac_compile itself does not contain backslashes and begins
 
8253
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8254
   # The option is referenced via a variable to avoid confusing sed.
 
8255
   lt_compile=`echo "$ac_compile" | $SED \
 
8256
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8257
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8258
   -e 's:$: $lt_compiler_flag:'`
 
8259
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8260
   (eval "$lt_compile" 2>conftest.err)
 
8261
   ac_status=$?
 
8262
   cat conftest.err >&5
 
8263
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8264
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8265
     # The compiler can only warn and ignore the option if not recognized
 
8266
     # So say no if there are warnings other than the usual output.
 
8267
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8268
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8269
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8270
       lt_cv_prog_compiler_pic_works=yes
 
8271
     fi
 
8272
   fi
 
8273
   $RM conftest*
 
8274
 
 
8275
fi
 
8276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8277
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8278
 
 
8279
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8280
    case $lt_prog_compiler_pic in
 
8281
     "" | " "*) ;;
 
8282
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8283
     esac
 
8284
else
 
8285
    lt_prog_compiler_pic=
 
8286
     lt_prog_compiler_can_build_shared=no
 
8287
fi
 
8288
 
 
8289
fi
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
 
8296
 
 
8297
 
 
8298
 
 
8299
 
 
8300
 
 
8301
#
 
8302
# Check to make sure the static flag actually works.
 
8303
#
 
8304
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8306
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8307
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8308
  $as_echo_n "(cached) " >&6
 
8309
else
 
8310
  lt_cv_prog_compiler_static_works=no
 
8311
   save_LDFLAGS="$LDFLAGS"
 
8312
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8313
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8314
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8315
     # The linker can only warn and ignore the option if not recognized
 
8316
     # So say no if there are warnings
 
8317
     if test -s conftest.err; then
 
8318
       # Append any errors to the config.log.
 
8319
       cat conftest.err 1>&5
 
8320
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8321
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8322
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8323
         lt_cv_prog_compiler_static_works=yes
 
8324
       fi
 
8325
     else
 
8326
       lt_cv_prog_compiler_static_works=yes
 
8327
     fi
 
8328
   fi
 
8329
   $RM -r conftest*
 
8330
   LDFLAGS="$save_LDFLAGS"
 
8331
 
 
8332
fi
 
8333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8334
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8335
 
 
8336
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8337
    :
 
8338
else
 
8339
    lt_prog_compiler_static=
 
8340
fi
 
8341
 
 
8342
 
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8349
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8350
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8351
  $as_echo_n "(cached) " >&6
 
8352
else
 
8353
  lt_cv_prog_compiler_c_o=no
 
8354
   $RM -r conftest 2>/dev/null
 
8355
   mkdir conftest
 
8356
   cd conftest
 
8357
   mkdir out
 
8358
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8359
 
 
8360
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8361
   # Insert the option either (1) after the last *FLAGS variable, or
 
8362
   # (2) before a word containing "conftest.", or (3) at the end.
 
8363
   # Note that $ac_compile itself does not contain backslashes and begins
 
8364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8365
   lt_compile=`echo "$ac_compile" | $SED \
 
8366
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8368
   -e 's:$: $lt_compiler_flag:'`
 
8369
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8370
   (eval "$lt_compile" 2>out/conftest.err)
 
8371
   ac_status=$?
 
8372
   cat out/conftest.err >&5
 
8373
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8374
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8375
   then
 
8376
     # The compiler can only warn and ignore the option if not recognized
 
8377
     # So say no if there are warnings
 
8378
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8379
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8380
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8381
       lt_cv_prog_compiler_c_o=yes
 
8382
     fi
 
8383
   fi
 
8384
   chmod u+w . 2>&5
 
8385
   $RM conftest*
 
8386
   # SGI C++ compiler will create directory out/ii_files/ for
 
8387
   # template instantiation
 
8388
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8389
   $RM out/* && rmdir out
 
8390
   cd ..
 
8391
   $RM -r conftest
 
8392
   $RM conftest*
 
8393
 
 
8394
fi
 
8395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8396
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8397
 
 
8398
 
 
8399
 
 
8400
 
 
8401
 
 
8402
 
 
8403
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8404
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8405
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8406
  $as_echo_n "(cached) " >&6
 
8407
else
 
8408
  lt_cv_prog_compiler_c_o=no
 
8409
   $RM -r conftest 2>/dev/null
 
8410
   mkdir conftest
 
8411
   cd conftest
 
8412
   mkdir out
 
8413
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8414
 
 
8415
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8416
   # Insert the option either (1) after the last *FLAGS variable, or
 
8417
   # (2) before a word containing "conftest.", or (3) at the end.
 
8418
   # Note that $ac_compile itself does not contain backslashes and begins
 
8419
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8420
   lt_compile=`echo "$ac_compile" | $SED \
 
8421
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8422
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8423
   -e 's:$: $lt_compiler_flag:'`
 
8424
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8425
   (eval "$lt_compile" 2>out/conftest.err)
 
8426
   ac_status=$?
 
8427
   cat out/conftest.err >&5
 
8428
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8429
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8430
   then
 
8431
     # The compiler can only warn and ignore the option if not recognized
 
8432
     # So say no if there are warnings
 
8433
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8434
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8435
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8436
       lt_cv_prog_compiler_c_o=yes
 
8437
     fi
 
8438
   fi
 
8439
   chmod u+w . 2>&5
 
8440
   $RM conftest*
 
8441
   # SGI C++ compiler will create directory out/ii_files/ for
 
8442
   # template instantiation
 
8443
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8444
   $RM out/* && rmdir out
 
8445
   cd ..
 
8446
   $RM -r conftest
 
8447
   $RM conftest*
 
8448
 
 
8449
fi
 
8450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8451
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
hard_links="nottested"
 
8457
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8458
  # do not overwrite the value of need_locks provided by the user
 
8459
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8460
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8461
  hard_links=yes
 
8462
  $RM conftest*
 
8463
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8464
  touch conftest.a
 
8465
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8466
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8468
$as_echo "$hard_links" >&6; }
 
8469
  if test "$hard_links" = no; then
 
8470
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8471
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8472
    need_locks=warn
 
8473
  fi
 
8474
else
 
8475
  need_locks=no
 
8476
fi
 
8477
 
 
8478
 
 
8479
 
 
8480
 
 
8481
 
 
8482
 
 
8483
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8484
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8485
 
 
8486
  runpath_var=
 
8487
  allow_undefined_flag=
 
8488
  always_export_symbols=no
 
8489
  archive_cmds=
 
8490
  archive_expsym_cmds=
 
8491
  compiler_needs_object=no
 
8492
  enable_shared_with_static_runtimes=no
 
8493
  export_dynamic_flag_spec=
 
8494
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8495
  hardcode_automatic=no
 
8496
  hardcode_direct=no
 
8497
  hardcode_direct_absolute=no
 
8498
  hardcode_libdir_flag_spec=
 
8499
  hardcode_libdir_separator=
 
8500
  hardcode_minus_L=no
 
8501
  hardcode_shlibpath_var=unsupported
 
8502
  inherit_rpath=no
 
8503
  link_all_deplibs=unknown
 
8504
  module_cmds=
 
8505
  module_expsym_cmds=
 
8506
  old_archive_from_new_cmds=
 
8507
  old_archive_from_expsyms_cmds=
 
8508
  thread_safe_flag_spec=
 
8509
  whole_archive_flag_spec=
 
8510
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8511
  # included in the symbol list
 
8512
  include_expsyms=
 
8513
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8514
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8515
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8516
  # as well as any symbol that contains `d'.
 
8517
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8518
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8519
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8520
  # the symbol is explicitly referenced.  Since portable code cannot
 
8521
  # rely on this symbol name, it's probably fine to never include it in
 
8522
  # preloaded symbol tables.
 
8523
  # Exclude shared library initialization/finalization symbols.
 
8524
  extract_expsyms_cmds=
 
8525
 
 
8526
  case $host_os in
 
8527
  cygwin* | mingw* | pw32* | cegcc*)
 
8528
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8529
    # When not using gcc, we currently assume that we are using
 
8530
    # Microsoft Visual C++.
 
8531
    if test "$GCC" != yes; then
 
8532
      with_gnu_ld=no
 
8533
    fi
 
8534
    ;;
 
8535
  interix*)
 
8536
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8537
    with_gnu_ld=yes
 
8538
    ;;
 
8539
  openbsd*)
 
8540
    with_gnu_ld=no
 
8541
    ;;
 
8542
  linux* | k*bsd*-gnu | gnu*)
 
8543
    link_all_deplibs=no
 
8544
    ;;
 
8545
  esac
 
8546
 
 
8547
  ld_shlibs=yes
 
8548
 
 
8549
  # On some targets, GNU ld is compatible enough with the native linker
 
8550
  # that we're better off using the native interface for both.
 
8551
  lt_use_gnu_ld_interface=no
 
8552
  if test "$with_gnu_ld" = yes; then
 
8553
    case $host_os in
 
8554
      aix*)
 
8555
        # The AIX port of GNU ld has always aspired to compatibility
 
8556
        # with the native linker.  However, as the warning in the GNU ld
 
8557
        # block says, versions before 2.19.5* couldn't really create working
 
8558
        # shared libraries, regardless of the interface used.
 
8559
        case `$LD -v 2>&1` in
 
8560
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8561
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8562
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8563
          *)
 
8564
            lt_use_gnu_ld_interface=yes
 
8565
            ;;
 
8566
        esac
 
8567
        ;;
 
8568
      *)
 
8569
        lt_use_gnu_ld_interface=yes
 
8570
        ;;
 
8571
    esac
 
8572
  fi
 
8573
 
 
8574
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8575
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8576
    wlarc='${wl}'
 
8577
 
 
8578
    # Set some defaults for GNU ld with shared library support. These
 
8579
    # are reset later if shared libraries are not supported. Putting them
 
8580
    # here allows them to be overridden if necessary.
 
8581
    runpath_var=LD_RUN_PATH
 
8582
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8583
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8584
    # ancient GNU ld didn't support --whole-archive et. al.
 
8585
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8586
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8587
    else
 
8588
      whole_archive_flag_spec=
 
8589
    fi
 
8590
    supports_anon_versioning=no
 
8591
    case `$LD -v 2>&1` in
 
8592
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8593
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8594
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8595
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8596
      *\ 2.11.*) ;; # other 2.11 versions
 
8597
      *) supports_anon_versioning=yes ;;
 
8598
    esac
 
8599
 
 
8600
    # See if GNU ld supports shared libraries.
 
8601
    case $host_os in
 
8602
    aix[3-9]*)
 
8603
      # On AIX/PPC, the GNU linker is very broken
 
8604
      if test "$host_cpu" != ia64; then
 
8605
        ld_shlibs=no
 
8606
        cat <<_LT_EOF 1>&2
 
8607
 
 
8608
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8609
*** to be unable to reliably create shared libraries on AIX.
 
8610
*** Therefore, libtool is disabling shared libraries support.  If you
 
8611
*** really care for shared libraries, you may want to install binutils
 
8612
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8613
*** You will then need to restart the configuration process.
 
8614
 
 
8615
_LT_EOF
 
8616
      fi
 
8617
      ;;
 
8618
 
 
8619
    amigaos*)
 
8620
      case $host_cpu in
 
8621
      powerpc)
 
8622
            # see comment about AmigaOS4 .so support
 
8623
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8624
            archive_expsym_cmds=''
 
8625
        ;;
 
8626
      m68k)
 
8627
            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)'
 
8628
            hardcode_libdir_flag_spec='-L$libdir'
 
8629
            hardcode_minus_L=yes
 
8630
        ;;
 
8631
      esac
 
8632
      ;;
 
8633
 
 
8634
    beos*)
 
8635
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8636
        allow_undefined_flag=unsupported
 
8637
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8638
        # support --undefined.  This deserves some investigation.  FIXME
 
8639
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8640
      else
 
8641
        ld_shlibs=no
 
8642
      fi
 
8643
      ;;
 
8644
 
 
8645
    cygwin* | mingw* | pw32* | cegcc*)
 
8646
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8647
      # as there is no search path for DLLs.
 
8648
      hardcode_libdir_flag_spec='-L$libdir'
 
8649
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
8650
      allow_undefined_flag=unsupported
 
8651
      always_export_symbols=no
 
8652
      enable_shared_with_static_runtimes=yes
 
8653
      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'
 
8654
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
8655
 
 
8656
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8657
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8658
        # If the export-symbols file already is a .def file (1st line
 
8659
        # is EXPORTS), use it as is; otherwise, prepend...
 
8660
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8661
          cp $export_symbols $output_objdir/$soname.def;
 
8662
        else
 
8663
          echo EXPORTS > $output_objdir/$soname.def;
 
8664
          cat $export_symbols >> $output_objdir/$soname.def;
 
8665
        fi~
 
8666
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8667
      else
 
8668
        ld_shlibs=no
 
8669
      fi
 
8670
      ;;
 
8671
 
 
8672
    haiku*)
 
8673
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8674
      link_all_deplibs=yes
 
8675
      ;;
 
8676
 
 
8677
    interix[3-9]*)
 
8678
      hardcode_direct=no
 
8679
      hardcode_shlibpath_var=no
 
8680
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8681
      export_dynamic_flag_spec='${wl}-E'
 
8682
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8683
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8684
      # default) and relocated if they conflict, which is a slow very memory
 
8685
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8686
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8687
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8688
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8689
      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'
 
8690
      ;;
 
8691
 
 
8692
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8693
      tmp_diet=no
 
8694
      if test "$host_os" = linux-dietlibc; then
 
8695
        case $cc_basename in
 
8696
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8697
        esac
 
8698
      fi
 
8699
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8700
         && test "$tmp_diet" = no
 
8701
      then
 
8702
        tmp_addflag=' $pic_flag'
 
8703
        tmp_sharedflag='-shared'
 
8704
        case $cc_basename,$host_cpu in
 
8705
        pgcc*)                          # Portland Group C compiler
 
8706
          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'
 
8707
          tmp_addflag=' $pic_flag'
 
8708
          ;;
 
8709
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8710
                                        # Portland Group f77 and f90 compilers
 
8711
          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'
 
8712
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8713
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8714
          tmp_addflag=' -i_dynamic' ;;
 
8715
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8716
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8717
        ifc* | ifort*)                  # Intel Fortran compiler
 
8718
          tmp_addflag=' -nofor_main' ;;
 
8719
        lf95*)                          # Lahey Fortran 8.1
 
8720
          whole_archive_flag_spec=
 
8721
          tmp_sharedflag='--shared' ;;
 
8722
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8723
          tmp_sharedflag='-qmkshrobj'
 
8724
          tmp_addflag= ;;
 
8725
        nvcc*)  # Cuda Compiler Driver 2.2
 
8726
          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'
 
8727
          compiler_needs_object=yes
 
8728
          ;;
 
8729
        esac
 
8730
        case `$CC -V 2>&1 | sed 5q` in
 
8731
        *Sun\ C*)                       # Sun C 5.9
 
8732
          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'
 
8733
          compiler_needs_object=yes
 
8734
          tmp_sharedflag='-G' ;;
 
8735
        *Sun\ F*)                       # Sun Fortran 8.3
 
8736
          tmp_sharedflag='-G' ;;
 
8737
        esac
 
8738
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8739
 
 
8740
        if test "x$supports_anon_versioning" = xyes; then
 
8741
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8742
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8743
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8744
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8745
        fi
 
8746
 
 
8747
        case $cc_basename in
 
8748
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8749
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8750
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8751
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8752
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8753
          if test "x$supports_anon_versioning" = xyes; then
 
8754
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8755
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8756
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8757
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8758
          fi
 
8759
          ;;
 
8760
        esac
 
8761
      else
 
8762
        ld_shlibs=no
 
8763
      fi
 
8764
      ;;
 
8765
 
 
8766
    netbsd* | netbsdelf*-gnu)
 
8767
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8768
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8769
        wlarc=
 
8770
      else
 
8771
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8772
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8773
      fi
 
8774
      ;;
 
8775
 
 
8776
    solaris*)
 
8777
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8778
        ld_shlibs=no
 
8779
        cat <<_LT_EOF 1>&2
 
8780
 
 
8781
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8782
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8783
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8784
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8785
*** your PATH or compiler configuration so that the native linker is
 
8786
*** used, and then restart.
 
8787
 
 
8788
_LT_EOF
 
8789
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8790
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8791
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8792
      else
 
8793
        ld_shlibs=no
 
8794
      fi
 
8795
      ;;
 
8796
 
 
8797
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8798
      case `$LD -v 2>&1` in
 
8799
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8800
        ld_shlibs=no
 
8801
        cat <<_LT_EOF 1>&2
 
8802
 
 
8803
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8804
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8805
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8806
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8807
*** your PATH or compiler configuration so that the native linker is
 
8808
*** used, and then restart.
 
8809
 
 
8810
_LT_EOF
 
8811
        ;;
 
8812
        *)
 
8813
          # For security reasons, it is highly recommended that you always
 
8814
          # use absolute paths for naming shared libraries, and exclude the
 
8815
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8816
          # requires that you compile everything twice, which is a pain.
 
8817
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8818
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8819
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8820
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8821
          else
 
8822
            ld_shlibs=no
 
8823
          fi
 
8824
        ;;
 
8825
      esac
 
8826
      ;;
 
8827
 
 
8828
    sunos4*)
 
8829
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8830
      wlarc=
 
8831
      hardcode_direct=yes
 
8832
      hardcode_shlibpath_var=no
 
8833
      ;;
 
8834
 
 
8835
    *)
 
8836
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8837
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8838
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8839
      else
 
8840
        ld_shlibs=no
 
8841
      fi
 
8842
      ;;
 
8843
    esac
 
8844
 
 
8845
    if test "$ld_shlibs" = no; then
 
8846
      runpath_var=
 
8847
      hardcode_libdir_flag_spec=
 
8848
      export_dynamic_flag_spec=
 
8849
      whole_archive_flag_spec=
 
8850
    fi
 
8851
  else
 
8852
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8853
    case $host_os in
 
8854
    aix3*)
 
8855
      allow_undefined_flag=unsupported
 
8856
      always_export_symbols=yes
 
8857
      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'
 
8858
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8859
      # are no directories specified by -L.
 
8860
      hardcode_minus_L=yes
 
8861
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8862
        # Neither direct hardcoding nor static linking is supported with a
 
8863
        # broken collect2.
 
8864
        hardcode_direct=unsupported
 
8865
      fi
 
8866
      ;;
 
8867
 
 
8868
    aix[4-9]*)
 
8869
      if test "$host_cpu" = ia64; then
 
8870
        # On IA64, the linker does run time linking by default, so we don't
 
8871
        # have to do anything special.
 
8872
        aix_use_runtimelinking=no
 
8873
        exp_sym_flag='-Bexport'
 
8874
        no_entry_flag=""
 
8875
      else
 
8876
        # If we're using GNU nm, then we don't want the "-C" option.
 
8877
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8878
        # Also, AIX nm treats weak defined symbols like other global
 
8879
        # defined symbols, whereas GNU nm marks them as "W".
 
8880
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8881
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8882
        else
 
8883
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8884
        fi
 
8885
        aix_use_runtimelinking=no
 
8886
 
 
8887
        # Test if we are trying to use run time linking or normal
 
8888
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8889
        # need to do runtime linking.
 
8890
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8891
          for ld_flag in $LDFLAGS; do
 
8892
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8893
            aix_use_runtimelinking=yes
 
8894
            break
 
8895
          fi
 
8896
          done
 
8897
          ;;
 
8898
        esac
 
8899
 
 
8900
        exp_sym_flag='-bexport'
 
8901
        no_entry_flag='-bnoentry'
 
8902
      fi
 
8903
 
 
8904
      # When large executables or shared objects are built, AIX ld can
 
8905
      # have problems creating the table of contents.  If linking a library
 
8906
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8907
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8908
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8909
 
 
8910
      archive_cmds=''
 
8911
      hardcode_direct=yes
 
8912
      hardcode_direct_absolute=yes
 
8913
      hardcode_libdir_separator=':'
 
8914
      link_all_deplibs=yes
 
8915
      file_list_spec='${wl}-f,'
 
8916
 
 
8917
      if test "$GCC" = yes; then
 
8918
        case $host_os in aix4.[012]|aix4.[012].*)
 
8919
        # We only want to do this on AIX 4.2 and lower, the check
 
8920
        # below for broken collect2 doesn't work under 4.3+
 
8921
          collect2name=`${CC} -print-prog-name=collect2`
 
8922
          if test -f "$collect2name" &&
 
8923
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8924
          then
 
8925
          # We have reworked collect2
 
8926
          :
 
8927
          else
 
8928
          # We have old collect2
 
8929
          hardcode_direct=unsupported
 
8930
          # It fails to find uninstalled libraries when the uninstalled
 
8931
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8932
          # to unsupported forces relinking
 
8933
          hardcode_minus_L=yes
 
8934
          hardcode_libdir_flag_spec='-L$libdir'
 
8935
          hardcode_libdir_separator=
 
8936
          fi
 
8937
          ;;
 
8938
        esac
 
8939
        shared_flag='-shared'
 
8940
        if test "$aix_use_runtimelinking" = yes; then
 
8941
          shared_flag="$shared_flag "'${wl}-G'
 
8942
        fi
 
8943
        link_all_deplibs=no
 
8944
      else
 
8945
        # not using gcc
 
8946
        if test "$host_cpu" = ia64; then
 
8947
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8948
        # chokes on -Wl,-G. The following line is correct:
 
8949
          shared_flag='-G'
 
8950
        else
 
8951
          if test "$aix_use_runtimelinking" = yes; then
 
8952
            shared_flag='${wl}-G'
 
8953
          else
 
8954
            shared_flag='${wl}-bM:SRE'
 
8955
          fi
 
8956
        fi
 
8957
      fi
 
8958
 
 
8959
      export_dynamic_flag_spec='${wl}-bexpall'
 
8960
      # It seems that -bexpall does not export symbols beginning with
 
8961
      # underscore (_), so it is better to generate a list of symbols to export.
 
8962
      always_export_symbols=yes
 
8963
      if test "$aix_use_runtimelinking" = yes; then
 
8964
        # Warning - without using the other runtime loading flags (-brtl),
 
8965
        # -berok will link without error, but may produce a broken library.
 
8966
        allow_undefined_flag='-berok'
 
8967
        # Determine the default libpath from the value encoded in an
 
8968
        # empty executable.
 
8969
        if test "${lt_cv_aix_libpath+set}" = set; then
 
8970
  aix_libpath=$lt_cv_aix_libpath
 
8971
else
 
8972
  if ${lt_cv_aix_libpath_+:} false; then :
 
8973
  $as_echo_n "(cached) " >&6
 
8974
else
 
8975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8976
/* end confdefs.h.  */
 
8977
 
 
8978
int
 
8979
main ()
 
8980
{
 
8981
 
 
8982
  ;
 
8983
  return 0;
 
8984
}
 
8985
_ACEOF
 
8986
if ac_fn_c_try_link "$LINENO"; then :
 
8987
 
 
8988
  lt_aix_libpath_sed='
 
8989
      /Import File Strings/,/^$/ {
 
8990
          /^0/ {
 
8991
              s/^0  *\([^ ]*\) *$/\1/
 
8992
              p
 
8993
          }
 
8994
      }'
 
8995
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8996
  # Check for a 64-bit object if we didn't find anything.
 
8997
  if test -z "$lt_cv_aix_libpath_"; then
 
8998
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8999
  fi
 
9000
fi
 
9001
rm -f core conftest.err conftest.$ac_objext \
 
9002
    conftest$ac_exeext conftest.$ac_ext
 
9003
  if test -z "$lt_cv_aix_libpath_"; then
 
9004
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9005
  fi
 
9006
 
 
9007
fi
 
9008
 
 
9009
  aix_libpath=$lt_cv_aix_libpath_
 
9010
fi
 
9011
 
 
9012
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9013
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9014
      else
 
9015
        if test "$host_cpu" = ia64; then
 
9016
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9017
          allow_undefined_flag="-z nodefs"
 
9018
          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"
 
9019
        else
 
9020
         # Determine the default libpath from the value encoded in an
 
9021
         # empty executable.
 
9022
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9023
  aix_libpath=$lt_cv_aix_libpath
 
9024
else
 
9025
  if ${lt_cv_aix_libpath_+:} false; then :
 
9026
  $as_echo_n "(cached) " >&6
 
9027
else
 
9028
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9029
/* end confdefs.h.  */
 
9030
 
 
9031
int
 
9032
main ()
 
9033
{
 
9034
 
 
9035
  ;
 
9036
  return 0;
 
9037
}
 
9038
_ACEOF
 
9039
if ac_fn_c_try_link "$LINENO"; then :
 
9040
 
 
9041
  lt_aix_libpath_sed='
 
9042
      /Import File Strings/,/^$/ {
 
9043
          /^0/ {
 
9044
              s/^0  *\([^ ]*\) *$/\1/
 
9045
              p
 
9046
          }
 
9047
      }'
 
9048
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9049
  # Check for a 64-bit object if we didn't find anything.
 
9050
  if test -z "$lt_cv_aix_libpath_"; then
 
9051
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9052
  fi
 
9053
fi
 
9054
rm -f core conftest.err conftest.$ac_objext \
 
9055
    conftest$ac_exeext conftest.$ac_ext
 
9056
  if test -z "$lt_cv_aix_libpath_"; then
 
9057
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9058
  fi
 
9059
 
 
9060
fi
 
9061
 
 
9062
  aix_libpath=$lt_cv_aix_libpath_
 
9063
fi
 
9064
 
 
9065
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9066
          # Warning - without using the other run time loading flags,
 
9067
          # -berok will link without error, but may produce a broken library.
 
9068
          no_undefined_flag=' ${wl}-bernotok'
 
9069
          allow_undefined_flag=' ${wl}-berok'
 
9070
          if test "$with_gnu_ld" = yes; then
 
9071
            # We only use this code for GNU lds that support --whole-archive.
 
9072
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9073
          else
 
9074
            # Exported symbols can be pulled into shared objects from archives
 
9075
            whole_archive_flag_spec='$convenience'
 
9076
          fi
 
9077
          archive_cmds_need_lc=yes
 
9078
          # This is similar to how AIX traditionally builds its shared libraries.
 
9079
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9080
        fi
 
9081
      fi
 
9082
      ;;
 
9083
 
 
9084
    amigaos*)
 
9085
      case $host_cpu in
 
9086
      powerpc)
 
9087
            # see comment about AmigaOS4 .so support
 
9088
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9089
            archive_expsym_cmds=''
 
9090
        ;;
 
9091
      m68k)
 
9092
            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)'
 
9093
            hardcode_libdir_flag_spec='-L$libdir'
 
9094
            hardcode_minus_L=yes
 
9095
        ;;
 
9096
      esac
 
9097
      ;;
 
9098
 
 
9099
    bsdi[45]*)
 
9100
      export_dynamic_flag_spec=-rdynamic
 
9101
      ;;
 
9102
 
 
9103
    cygwin* | mingw* | pw32* | cegcc*)
 
9104
      # When not using gcc, we currently assume that we are using
 
9105
      # Microsoft Visual C++.
 
9106
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9107
      # no search path for DLLs.
 
9108
      case $cc_basename in
 
9109
      cl*)
 
9110
        # Native MSVC
 
9111
        hardcode_libdir_flag_spec=' '
 
9112
        allow_undefined_flag=unsupported
 
9113
        always_export_symbols=yes
 
9114
        file_list_spec='@'
 
9115
        # Tell ltmain to make .lib files, not .a files.
 
9116
        libext=lib
 
9117
        # Tell ltmain to make .dll files, not .so files.
 
9118
        shrext_cmds=".dll"
 
9119
        # FIXME: Setting linknames here is a bad hack.
 
9120
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9121
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9122
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9123
          else
 
9124
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9125
          fi~
 
9126
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9127
          linknames='
 
9128
        # The linker will not automatically build a static lib if we build a DLL.
 
9129
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9130
        enable_shared_with_static_runtimes=yes
 
9131
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9132
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9133
        # Don't use ranlib
 
9134
        old_postinstall_cmds='chmod 644 $oldlib'
 
9135
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9136
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9137
          case $lt_outputfile in
 
9138
            *.exe|*.EXE) ;;
 
9139
            *)
 
9140
              lt_outputfile="$lt_outputfile.exe"
 
9141
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9142
              ;;
 
9143
          esac~
 
9144
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9145
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9146
            $RM "$lt_outputfile.manifest";
 
9147
          fi'
 
9148
        ;;
 
9149
      *)
 
9150
        # Assume MSVC wrapper
 
9151
        hardcode_libdir_flag_spec=' '
 
9152
        allow_undefined_flag=unsupported
 
9153
        # Tell ltmain to make .lib files, not .a files.
 
9154
        libext=lib
 
9155
        # Tell ltmain to make .dll files, not .so files.
 
9156
        shrext_cmds=".dll"
 
9157
        # FIXME: Setting linknames here is a bad hack.
 
9158
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9159
        # The linker will automatically build a .lib file if we build a DLL.
 
9160
        old_archive_from_new_cmds='true'
 
9161
        # FIXME: Should let the user specify the lib program.
 
9162
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9163
        enable_shared_with_static_runtimes=yes
 
9164
        ;;
 
9165
      esac
 
9166
      ;;
 
9167
 
 
9168
    darwin* | rhapsody*)
 
9169
 
 
9170
 
 
9171
  archive_cmds_need_lc=no
 
9172
  hardcode_direct=no
 
9173
  hardcode_automatic=yes
 
9174
  hardcode_shlibpath_var=unsupported
 
9175
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9176
    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\"`'
 
9177
 
 
9178
  else
 
9179
    whole_archive_flag_spec=''
 
9180
  fi
 
9181
  link_all_deplibs=yes
 
9182
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9183
  case $cc_basename in
 
9184
     ifort*) _lt_dar_can_shared=yes ;;
 
9185
     *) _lt_dar_can_shared=$GCC ;;
 
9186
  esac
 
9187
  if test "$_lt_dar_can_shared" = "yes"; then
 
9188
    output_verbose_link_cmd=func_echo_all
 
9189
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9190
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9191
    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}"
 
9192
    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}"
 
9193
 
 
9194
  else
 
9195
  ld_shlibs=no
 
9196
  fi
 
9197
 
 
9198
      ;;
 
9199
 
 
9200
    dgux*)
 
9201
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9202
      hardcode_libdir_flag_spec='-L$libdir'
 
9203
      hardcode_shlibpath_var=no
 
9204
      ;;
 
9205
 
 
9206
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9207
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9208
    # does not break anything, and helps significantly (at the cost of a little
 
9209
    # extra space).
 
9210
    freebsd2.2*)
 
9211
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9212
      hardcode_libdir_flag_spec='-R$libdir'
 
9213
      hardcode_direct=yes
 
9214
      hardcode_shlibpath_var=no
 
9215
      ;;
 
9216
 
 
9217
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9218
    freebsd2.*)
 
9219
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9220
      hardcode_direct=yes
 
9221
      hardcode_minus_L=yes
 
9222
      hardcode_shlibpath_var=no
 
9223
      ;;
 
9224
 
 
9225
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9226
    freebsd* | dragonfly*)
 
9227
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9228
      hardcode_libdir_flag_spec='-R$libdir'
 
9229
      hardcode_direct=yes
 
9230
      hardcode_shlibpath_var=no
 
9231
      ;;
 
9232
 
 
9233
    hpux9*)
 
9234
      if test "$GCC" = yes; then
 
9235
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9236
      else
 
9237
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9238
      fi
 
9239
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9240
      hardcode_libdir_separator=:
 
9241
      hardcode_direct=yes
 
9242
 
 
9243
      # hardcode_minus_L: Not really in the search PATH,
 
9244
      # but as the default location of the library.
 
9245
      hardcode_minus_L=yes
 
9246
      export_dynamic_flag_spec='${wl}-E'
 
9247
      ;;
 
9248
 
 
9249
    hpux10*)
 
9250
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9251
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9252
      else
 
9253
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9254
      fi
 
9255
      if test "$with_gnu_ld" = no; then
 
9256
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9257
        hardcode_libdir_separator=:
 
9258
        hardcode_direct=yes
 
9259
        hardcode_direct_absolute=yes
 
9260
        export_dynamic_flag_spec='${wl}-E'
 
9261
        # hardcode_minus_L: Not really in the search PATH,
 
9262
        # but as the default location of the library.
 
9263
        hardcode_minus_L=yes
 
9264
      fi
 
9265
      ;;
 
9266
 
 
9267
    hpux11*)
 
9268
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9269
        case $host_cpu in
 
9270
        hppa*64*)
 
9271
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9272
          ;;
 
9273
        ia64*)
 
9274
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9275
          ;;
 
9276
        *)
 
9277
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9278
          ;;
 
9279
        esac
 
9280
      else
 
9281
        case $host_cpu in
 
9282
        hppa*64*)
 
9283
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9284
          ;;
 
9285
        ia64*)
 
9286
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9287
          ;;
 
9288
        *)
 
9289
 
 
9290
          # Older versions of the 11.00 compiler do not understand -b yet
 
9291
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9292
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9293
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9294
if ${lt_cv_prog_compiler__b+:} false; then :
 
9295
  $as_echo_n "(cached) " >&6
 
9296
else
 
9297
  lt_cv_prog_compiler__b=no
 
9298
   save_LDFLAGS="$LDFLAGS"
 
9299
   LDFLAGS="$LDFLAGS -b"
 
9300
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9301
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9302
     # The linker can only warn and ignore the option if not recognized
 
9303
     # So say no if there are warnings
 
9304
     if test -s conftest.err; then
 
9305
       # Append any errors to the config.log.
 
9306
       cat conftest.err 1>&5
 
9307
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9308
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9309
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9310
         lt_cv_prog_compiler__b=yes
 
9311
       fi
 
9312
     else
 
9313
       lt_cv_prog_compiler__b=yes
 
9314
     fi
 
9315
   fi
 
9316
   $RM -r conftest*
 
9317
   LDFLAGS="$save_LDFLAGS"
 
9318
 
 
9319
fi
 
9320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9321
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9322
 
 
9323
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9324
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9325
else
 
9326
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9327
fi
 
9328
 
 
9329
          ;;
 
9330
        esac
 
9331
      fi
 
9332
      if test "$with_gnu_ld" = no; then
 
9333
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9334
        hardcode_libdir_separator=:
 
9335
 
 
9336
        case $host_cpu in
 
9337
        hppa*64*|ia64*)
 
9338
          hardcode_direct=no
 
9339
          hardcode_shlibpath_var=no
 
9340
          ;;
 
9341
        *)
 
9342
          hardcode_direct=yes
 
9343
          hardcode_direct_absolute=yes
 
9344
          export_dynamic_flag_spec='${wl}-E'
 
9345
 
 
9346
          # hardcode_minus_L: Not really in the search PATH,
 
9347
          # but as the default location of the library.
 
9348
          hardcode_minus_L=yes
 
9349
          ;;
 
9350
        esac
 
9351
      fi
 
9352
      ;;
 
9353
 
 
9354
    irix5* | irix6* | nonstopux*)
 
9355
      if test "$GCC" = yes; then
 
9356
        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'
 
9357
        # Try to use the -exported_symbol ld option, if it does not
 
9358
        # work, assume that -exports_file does not work either and
 
9359
        # implicitly export all symbols.
 
9360
        # This should be the same for all languages, so no per-tag cache variable.
 
9361
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9362
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9363
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9364
  $as_echo_n "(cached) " >&6
 
9365
else
 
9366
  save_LDFLAGS="$LDFLAGS"
 
9367
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9368
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9369
/* end confdefs.h.  */
 
9370
int foo (void) { return 0; }
 
9371
_ACEOF
 
9372
if ac_fn_c_try_link "$LINENO"; then :
 
9373
  lt_cv_irix_exported_symbol=yes
 
9374
else
 
9375
  lt_cv_irix_exported_symbol=no
 
9376
fi
 
9377
rm -f core conftest.err conftest.$ac_objext \
 
9378
    conftest$ac_exeext conftest.$ac_ext
 
9379
           LDFLAGS="$save_LDFLAGS"
 
9380
fi
 
9381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9382
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9383
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9384
          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'
 
9385
        fi
 
9386
      else
 
9387
        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'
 
9388
        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'
 
9389
      fi
 
9390
      archive_cmds_need_lc='no'
 
9391
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9392
      hardcode_libdir_separator=:
 
9393
      inherit_rpath=yes
 
9394
      link_all_deplibs=yes
 
9395
      ;;
 
9396
 
 
9397
    netbsd* | netbsdelf*-gnu)
 
9398
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9399
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9400
      else
 
9401
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9402
      fi
 
9403
      hardcode_libdir_flag_spec='-R$libdir'
 
9404
      hardcode_direct=yes
 
9405
      hardcode_shlibpath_var=no
 
9406
      ;;
 
9407
 
 
9408
    newsos6)
 
9409
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9410
      hardcode_direct=yes
 
9411
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9412
      hardcode_libdir_separator=:
 
9413
      hardcode_shlibpath_var=no
 
9414
      ;;
 
9415
 
 
9416
    *nto* | *qnx*)
 
9417
      ;;
 
9418
 
 
9419
    openbsd*)
 
9420
      if test -f /usr/libexec/ld.so; then
 
9421
        hardcode_direct=yes
 
9422
        hardcode_shlibpath_var=no
 
9423
        hardcode_direct_absolute=yes
 
9424
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9425
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9426
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9427
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9428
          export_dynamic_flag_spec='${wl}-E'
 
9429
        else
 
9430
          case $host_os in
 
9431
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9432
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9433
             hardcode_libdir_flag_spec='-R$libdir'
 
9434
             ;;
 
9435
           *)
 
9436
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9437
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9438
             ;;
 
9439
          esac
 
9440
        fi
 
9441
      else
 
9442
        ld_shlibs=no
 
9443
      fi
 
9444
      ;;
 
9445
 
 
9446
    os2*)
 
9447
      hardcode_libdir_flag_spec='-L$libdir'
 
9448
      hardcode_minus_L=yes
 
9449
      allow_undefined_flag=unsupported
 
9450
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9451
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9452
      ;;
 
9453
 
 
9454
    osf3*)
 
9455
      if test "$GCC" = yes; then
 
9456
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9457
        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'
 
9458
      else
 
9459
        allow_undefined_flag=' -expect_unresolved \*'
 
9460
        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'
 
9461
      fi
 
9462
      archive_cmds_need_lc='no'
 
9463
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9464
      hardcode_libdir_separator=:
 
9465
      ;;
 
9466
 
 
9467
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9468
      if test "$GCC" = yes; then
 
9469
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9470
        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'
 
9471
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9472
      else
 
9473
        allow_undefined_flag=' -expect_unresolved \*'
 
9474
        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'
 
9475
        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~
 
9476
        $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'
 
9477
 
 
9478
        # Both c and cxx compiler support -rpath directly
 
9479
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9480
      fi
 
9481
      archive_cmds_need_lc='no'
 
9482
      hardcode_libdir_separator=:
 
9483
      ;;
 
9484
 
 
9485
    solaris*)
 
9486
      no_undefined_flag=' -z defs'
 
9487
      if test "$GCC" = yes; then
 
9488
        wlarc='${wl}'
 
9489
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9490
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9491
          $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'
 
9492
      else
 
9493
        case `$CC -V 2>&1` in
 
9494
        *"Compilers 5.0"*)
 
9495
          wlarc=''
 
9496
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9497
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9498
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9499
          ;;
 
9500
        *)
 
9501
          wlarc='${wl}'
 
9502
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9503
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9504
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9505
          ;;
 
9506
        esac
 
9507
      fi
 
9508
      hardcode_libdir_flag_spec='-R$libdir'
 
9509
      hardcode_shlibpath_var=no
 
9510
      case $host_os in
 
9511
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9512
      *)
 
9513
        # The compiler driver will combine and reorder linker options,
 
9514
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9515
        # but is careful enough not to reorder.
 
9516
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9517
        if test "$GCC" = yes; then
 
9518
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9519
        else
 
9520
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9521
        fi
 
9522
        ;;
 
9523
      esac
 
9524
      link_all_deplibs=yes
 
9525
      ;;
 
9526
 
 
9527
    sunos4*)
 
9528
      if test "x$host_vendor" = xsequent; then
 
9529
        # Use $CC to link under sequent, because it throws in some extra .o
 
9530
        # files that make .init and .fini sections work.
 
9531
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9532
      else
 
9533
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9534
      fi
 
9535
      hardcode_libdir_flag_spec='-L$libdir'
 
9536
      hardcode_direct=yes
 
9537
      hardcode_minus_L=yes
 
9538
      hardcode_shlibpath_var=no
 
9539
      ;;
 
9540
 
 
9541
    sysv4)
 
9542
      case $host_vendor in
 
9543
        sni)
 
9544
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9545
          hardcode_direct=yes # is this really true???
 
9546
        ;;
 
9547
        siemens)
 
9548
          ## LD is ld it makes a PLAMLIB
 
9549
          ## CC just makes a GrossModule.
 
9550
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9551
          reload_cmds='$CC -r -o $output$reload_objs'
 
9552
          hardcode_direct=no
 
9553
        ;;
 
9554
        motorola)
 
9555
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9556
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9557
        ;;
 
9558
      esac
 
9559
      runpath_var='LD_RUN_PATH'
 
9560
      hardcode_shlibpath_var=no
 
9561
      ;;
 
9562
 
 
9563
    sysv4.3*)
 
9564
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9565
      hardcode_shlibpath_var=no
 
9566
      export_dynamic_flag_spec='-Bexport'
 
9567
      ;;
 
9568
 
 
9569
    sysv4*MP*)
 
9570
      if test -d /usr/nec; then
 
9571
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9572
        hardcode_shlibpath_var=no
 
9573
        runpath_var=LD_RUN_PATH
 
9574
        hardcode_runpath_var=yes
 
9575
        ld_shlibs=yes
 
9576
      fi
 
9577
      ;;
 
9578
 
 
9579
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9580
      no_undefined_flag='${wl}-z,text'
 
9581
      archive_cmds_need_lc=no
 
9582
      hardcode_shlibpath_var=no
 
9583
      runpath_var='LD_RUN_PATH'
 
9584
 
 
9585
      if test "$GCC" = yes; then
 
9586
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9587
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9588
      else
 
9589
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9590
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9591
      fi
 
9592
      ;;
 
9593
 
 
9594
    sysv5* | sco3.2v5* | sco5v6*)
 
9595
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9596
      # link with -lc, and that would cause any symbols used from libc to
 
9597
      # always be unresolved, which means just about no library would
 
9598
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9599
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9600
      # as -z defs.
 
9601
      no_undefined_flag='${wl}-z,text'
 
9602
      allow_undefined_flag='${wl}-z,nodefs'
 
9603
      archive_cmds_need_lc=no
 
9604
      hardcode_shlibpath_var=no
 
9605
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9606
      hardcode_libdir_separator=':'
 
9607
      link_all_deplibs=yes
 
9608
      export_dynamic_flag_spec='${wl}-Bexport'
 
9609
      runpath_var='LD_RUN_PATH'
 
9610
 
 
9611
      if test "$GCC" = yes; then
 
9612
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9613
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9614
      else
 
9615
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9616
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9617
      fi
 
9618
      ;;
 
9619
 
 
9620
    uts4*)
 
9621
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9622
      hardcode_libdir_flag_spec='-L$libdir'
 
9623
      hardcode_shlibpath_var=no
 
9624
      ;;
 
9625
 
 
9626
    *)
 
9627
      ld_shlibs=no
 
9628
      ;;
 
9629
    esac
 
9630
 
 
9631
    if test x$host_vendor = xsni; then
 
9632
      case $host in
 
9633
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9634
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9635
        ;;
 
9636
      esac
 
9637
    fi
 
9638
  fi
 
9639
 
 
9640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9641
$as_echo "$ld_shlibs" >&6; }
 
9642
test "$ld_shlibs" = no && can_build_shared=no
 
9643
 
 
9644
with_gnu_ld=$with_gnu_ld
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
#
 
9661
# Do we need to explicitly link libc?
 
9662
#
 
9663
case "x$archive_cmds_need_lc" in
 
9664
x|xyes)
 
9665
  # Assume -lc should be added
 
9666
  archive_cmds_need_lc=yes
 
9667
 
 
9668
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9669
    case $archive_cmds in
 
9670
    *'~'*)
 
9671
      # FIXME: we may have to deal with multi-command sequences.
 
9672
      ;;
 
9673
    '$CC '*)
 
9674
      # Test whether the compiler implicitly links with -lc since on some
 
9675
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9676
      # to ld, don't add -lc before -lgcc.
 
9677
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9678
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9679
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9680
  $as_echo_n "(cached) " >&6
 
9681
else
 
9682
  $RM conftest*
 
9683
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9684
 
 
9685
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9686
  (eval $ac_compile) 2>&5
 
9687
  ac_status=$?
 
9688
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9689
  test $ac_status = 0; } 2>conftest.err; then
 
9690
          soname=conftest
 
9691
          lib=conftest
 
9692
          libobjs=conftest.$ac_objext
 
9693
          deplibs=
 
9694
          wl=$lt_prog_compiler_wl
 
9695
          pic_flag=$lt_prog_compiler_pic
 
9696
          compiler_flags=-v
 
9697
          linker_flags=-v
 
9698
          verstring=
 
9699
          output_objdir=.
 
9700
          libname=conftest
 
9701
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9702
          allow_undefined_flag=
 
9703
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9704
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9705
  ac_status=$?
 
9706
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9707
  test $ac_status = 0; }
 
9708
          then
 
9709
            lt_cv_archive_cmds_need_lc=no
 
9710
          else
 
9711
            lt_cv_archive_cmds_need_lc=yes
 
9712
          fi
 
9713
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9714
        else
 
9715
          cat conftest.err 1>&5
 
9716
        fi
 
9717
        $RM conftest*
 
9718
 
 
9719
fi
 
9720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9721
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9722
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
9723
      ;;
 
9724
    esac
 
9725
  fi
 
9726
  ;;
 
9727
esac
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9881
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9882
 
 
9883
if test "$GCC" = yes; then
 
9884
  case $host_os in
 
9885
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9886
    *) lt_awk_arg="/^libraries:/" ;;
 
9887
  esac
 
9888
  case $host_os in
 
9889
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
9890
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
9891
  esac
 
9892
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
9893
  case $lt_search_path_spec in
 
9894
  *\;*)
 
9895
    # if the path contains ";" then we assume it to be the separator
 
9896
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9897
    # assumed that no part of a normal pathname contains ";" but that should
 
9898
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9899
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
9900
    ;;
 
9901
  *)
 
9902
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
9903
    ;;
 
9904
  esac
 
9905
  # Ok, now we have the path, separated by spaces, we can step through it
 
9906
  # and add multilib dir if necessary.
 
9907
  lt_tmp_lt_search_path_spec=
 
9908
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9909
  for lt_sys_path in $lt_search_path_spec; do
 
9910
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9911
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9912
    else
 
9913
      test -d "$lt_sys_path" && \
 
9914
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9915
    fi
 
9916
  done
 
9917
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
9918
BEGIN {RS=" "; FS="/|\n";} {
 
9919
  lt_foo="";
 
9920
  lt_count=0;
 
9921
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9922
    if ($lt_i != "" && $lt_i != ".") {
 
9923
      if ($lt_i == "..") {
 
9924
        lt_count++;
 
9925
      } else {
 
9926
        if (lt_count == 0) {
 
9927
          lt_foo="/" $lt_i lt_foo;
 
9928
        } else {
 
9929
          lt_count--;
 
9930
        }
 
9931
      }
 
9932
    }
 
9933
  }
 
9934
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9935
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9936
}'`
 
9937
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
9938
  # for these hosts.
 
9939
  case $host_os in
 
9940
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
9941
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
9942
  esac
 
9943
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
9944
else
 
9945
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9946
fi
 
9947
library_names_spec=
 
9948
libname_spec='lib$name'
 
9949
soname_spec=
 
9950
shrext_cmds=".so"
 
9951
postinstall_cmds=
 
9952
postuninstall_cmds=
 
9953
finish_cmds=
 
9954
finish_eval=
 
9955
shlibpath_var=
 
9956
shlibpath_overrides_runpath=unknown
 
9957
version_type=none
 
9958
dynamic_linker="$host_os ld.so"
 
9959
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9960
need_lib_prefix=unknown
 
9961
hardcode_into_libs=no
 
9962
 
 
9963
# when you set need_version to no, make sure it does not cause -set_version
 
9964
# flags to be left without arguments
 
9965
need_version=unknown
 
9966
 
 
9967
case $host_os in
 
9968
aix3*)
 
9969
  version_type=linux # correct to gnu/linux during the next big refactor
 
9970
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9971
  shlibpath_var=LIBPATH
 
9972
 
 
9973
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9974
  soname_spec='${libname}${release}${shared_ext}$major'
 
9975
  ;;
 
9976
 
 
9977
aix[4-9]*)
 
9978
  version_type=linux # correct to gnu/linux during the next big refactor
 
9979
  need_lib_prefix=no
 
9980
  need_version=no
 
9981
  hardcode_into_libs=yes
 
9982
  if test "$host_cpu" = ia64; then
 
9983
    # AIX 5 supports IA64
 
9984
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9985
    shlibpath_var=LD_LIBRARY_PATH
 
9986
  else
 
9987
    # With GCC up to 2.95.x, collect2 would create an import file
 
9988
    # for dependence libraries.  The import file would start with
 
9989
    # the line `#! .'.  This would cause the generated library to
 
9990
    # depend on `.', always an invalid library.  This was fixed in
 
9991
    # development snapshots of GCC prior to 3.0.
 
9992
    case $host_os in
 
9993
      aix4 | aix4.[01] | aix4.[01].*)
 
9994
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9995
           echo ' yes '
 
9996
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9997
        :
 
9998
      else
 
9999
        can_build_shared=no
 
10000
      fi
 
10001
      ;;
 
10002
    esac
 
10003
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10004
    # soname into executable. Probably we can add versioning support to
 
10005
    # collect2, so additional links can be useful in future.
 
10006
    if test "$aix_use_runtimelinking" = yes; then
 
10007
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10008
      # instead of lib<name>.a to let people know that these are not
 
10009
      # typical AIX shared libraries.
 
10010
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10011
    else
 
10012
      # We preserve .a as extension for shared libraries through AIX4.2
 
10013
      # and later when we are not doing run time linking.
 
10014
      library_names_spec='${libname}${release}.a $libname.a'
 
10015
      soname_spec='${libname}${release}${shared_ext}$major'
 
10016
    fi
 
10017
    shlibpath_var=LIBPATH
 
10018
  fi
 
10019
  ;;
 
10020
 
 
10021
amigaos*)
 
10022
  case $host_cpu in
 
10023
  powerpc)
 
10024
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10025
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10026
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10027
    ;;
 
10028
  m68k)
 
10029
    library_names_spec='$libname.ixlibrary $libname.a'
 
10030
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10031
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10032
    ;;
 
10033
  esac
 
10034
  ;;
 
10035
 
 
10036
beos*)
 
10037
  library_names_spec='${libname}${shared_ext}'
 
10038
  dynamic_linker="$host_os ld.so"
 
10039
  shlibpath_var=LIBRARY_PATH
 
10040
  ;;
 
10041
 
 
10042
bsdi[45]*)
 
10043
  version_type=linux # correct to gnu/linux during the next big refactor
 
10044
  need_version=no
 
10045
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10046
  soname_spec='${libname}${release}${shared_ext}$major'
 
10047
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10048
  shlibpath_var=LD_LIBRARY_PATH
 
10049
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10050
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10051
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10052
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10053
  # libtool to hard-code these into programs
 
10054
  ;;
 
10055
 
 
10056
cygwin* | mingw* | pw32* | cegcc*)
 
10057
  version_type=windows
 
10058
  shrext_cmds=".dll"
 
10059
  need_version=no
 
10060
  need_lib_prefix=no
 
10061
 
 
10062
  case $GCC,$cc_basename in
 
10063
  yes,*)
 
10064
    # gcc
 
10065
    library_names_spec='$libname.dll.a'
 
10066
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10067
    postinstall_cmds='base_file=`basename \${file}`~
 
10068
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10069
      dldir=$destdir/`dirname \$dlpath`~
 
10070
      test -d \$dldir || mkdir -p \$dldir~
 
10071
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10072
      chmod a+x \$dldir/$dlname~
 
10073
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10074
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10075
      fi'
 
10076
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10077
      dlpath=$dir/\$dldll~
 
10078
       $RM \$dlpath'
 
10079
    shlibpath_overrides_runpath=yes
 
10080
 
 
10081
    case $host_os in
 
10082
    cygwin*)
 
10083
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10084
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10085
 
 
10086
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10087
      ;;
 
10088
    mingw* | cegcc*)
 
10089
      # MinGW DLLs use traditional 'lib' prefix
 
10090
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10091
      ;;
 
10092
    pw32*)
 
10093
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10094
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10095
      ;;
 
10096
    esac
 
10097
    dynamic_linker='Win32 ld.exe'
 
10098
    ;;
 
10099
 
 
10100
  *,cl*)
 
10101
    # Native MSVC
 
10102
    libname_spec='$name'
 
10103
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10104
    library_names_spec='${libname}.dll.lib'
 
10105
 
 
10106
    case $build_os in
 
10107
    mingw*)
 
10108
      sys_lib_search_path_spec=
 
10109
      lt_save_ifs=$IFS
 
10110
      IFS=';'
 
10111
      for lt_path in $LIB
 
10112
      do
 
10113
        IFS=$lt_save_ifs
 
10114
        # Let DOS variable expansion print the short 8.3 style file name.
 
10115
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10116
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10117
      done
 
10118
      IFS=$lt_save_ifs
 
10119
      # Convert to MSYS style.
 
10120
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10121
      ;;
 
10122
    cygwin*)
 
10123
      # Convert to unix form, then to dos form, then back to unix form
 
10124
      # but this time dos style (no spaces!) so that the unix form looks
 
10125
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10126
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10127
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10128
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10129
      ;;
 
10130
    *)
 
10131
      sys_lib_search_path_spec="$LIB"
 
10132
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10133
        # It is most probably a Windows format PATH.
 
10134
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10135
      else
 
10136
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10137
      fi
 
10138
      # FIXME: find the short name or the path components, as spaces are
 
10139
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10140
      ;;
 
10141
    esac
 
10142
 
 
10143
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10144
    postinstall_cmds='base_file=`basename \${file}`~
 
10145
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10146
      dldir=$destdir/`dirname \$dlpath`~
 
10147
      test -d \$dldir || mkdir -p \$dldir~
 
10148
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10149
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10150
      dlpath=$dir/\$dldll~
 
10151
       $RM \$dlpath'
 
10152
    shlibpath_overrides_runpath=yes
 
10153
    dynamic_linker='Win32 link.exe'
 
10154
    ;;
 
10155
 
 
10156
  *)
 
10157
    # Assume MSVC wrapper
 
10158
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10159
    dynamic_linker='Win32 ld.exe'
 
10160
    ;;
 
10161
  esac
 
10162
  # FIXME: first we should search . and the directory the executable is in
 
10163
  shlibpath_var=PATH
 
10164
  ;;
 
10165
 
 
10166
darwin* | rhapsody*)
 
10167
  dynamic_linker="$host_os dyld"
 
10168
  version_type=darwin
 
10169
  need_lib_prefix=no
 
10170
  need_version=no
 
10171
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10172
  soname_spec='${libname}${release}${major}$shared_ext'
 
10173
  shlibpath_overrides_runpath=yes
 
10174
  shlibpath_var=DYLD_LIBRARY_PATH
 
10175
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10176
 
 
10177
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10178
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10179
  ;;
 
10180
 
 
10181
dgux*)
 
10182
  version_type=linux # correct to gnu/linux during the next big refactor
 
10183
  need_lib_prefix=no
 
10184
  need_version=no
 
10185
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10186
  soname_spec='${libname}${release}${shared_ext}$major'
 
10187
  shlibpath_var=LD_LIBRARY_PATH
 
10188
  ;;
 
10189
 
 
10190
freebsd* | dragonfly*)
 
10191
  # DragonFly does not have aout.  When/if they implement a new
 
10192
  # versioning mechanism, adjust this.
 
10193
  if test -x /usr/bin/objformat; then
 
10194
    objformat=`/usr/bin/objformat`
 
10195
  else
 
10196
    case $host_os in
 
10197
    freebsd[23].*) objformat=aout ;;
 
10198
    *) objformat=elf ;;
 
10199
    esac
 
10200
  fi
 
10201
  version_type=freebsd-$objformat
 
10202
  case $version_type in
 
10203
    freebsd-elf*)
 
10204
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10205
      need_version=no
 
10206
      need_lib_prefix=no
 
10207
      ;;
 
10208
    freebsd-*)
 
10209
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10210
      need_version=yes
 
10211
      ;;
 
10212
  esac
 
10213
  shlibpath_var=LD_LIBRARY_PATH
 
10214
  case $host_os in
 
10215
  freebsd2.*)
 
10216
    shlibpath_overrides_runpath=yes
 
10217
    ;;
 
10218
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10219
    shlibpath_overrides_runpath=yes
 
10220
    hardcode_into_libs=yes
 
10221
    ;;
 
10222
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10223
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10224
    shlibpath_overrides_runpath=no
 
10225
    hardcode_into_libs=yes
 
10226
    ;;
 
10227
  *) # from 4.6 on, and DragonFly
 
10228
    shlibpath_overrides_runpath=yes
 
10229
    hardcode_into_libs=yes
 
10230
    ;;
 
10231
  esac
 
10232
  ;;
 
10233
 
 
10234
gnu*)
 
10235
  version_type=linux # correct to gnu/linux during the next big refactor
 
10236
  need_lib_prefix=no
 
10237
  need_version=no
 
10238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10239
  soname_spec='${libname}${release}${shared_ext}$major'
 
10240
  shlibpath_var=LD_LIBRARY_PATH
 
10241
  shlibpath_overrides_runpath=no
 
10242
  hardcode_into_libs=yes
 
10243
  ;;
 
10244
 
 
10245
haiku*)
 
10246
  version_type=linux # correct to gnu/linux during the next big refactor
 
10247
  need_lib_prefix=no
 
10248
  need_version=no
 
10249
  dynamic_linker="$host_os runtime_loader"
 
10250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10251
  soname_spec='${libname}${release}${shared_ext}$major'
 
10252
  shlibpath_var=LIBRARY_PATH
 
10253
  shlibpath_overrides_runpath=yes
 
10254
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10255
  hardcode_into_libs=yes
 
10256
  ;;
 
10257
 
 
10258
hpux9* | hpux10* | hpux11*)
 
10259
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10260
  # link against other versions.
 
10261
  version_type=sunos
 
10262
  need_lib_prefix=no
 
10263
  need_version=no
 
10264
  case $host_cpu in
 
10265
  ia64*)
 
10266
    shrext_cmds='.so'
 
10267
    hardcode_into_libs=yes
 
10268
    dynamic_linker="$host_os dld.so"
 
10269
    shlibpath_var=LD_LIBRARY_PATH
 
10270
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10271
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10272
    soname_spec='${libname}${release}${shared_ext}$major'
 
10273
    if test "X$HPUX_IA64_MODE" = X32; then
 
10274
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10275
    else
 
10276
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10277
    fi
 
10278
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10279
    ;;
 
10280
  hppa*64*)
 
10281
    shrext_cmds='.sl'
 
10282
    hardcode_into_libs=yes
 
10283
    dynamic_linker="$host_os dld.sl"
 
10284
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10285
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10286
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10287
    soname_spec='${libname}${release}${shared_ext}$major'
 
10288
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10289
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10290
    ;;
 
10291
  *)
 
10292
    shrext_cmds='.sl'
 
10293
    dynamic_linker="$host_os dld.sl"
 
10294
    shlibpath_var=SHLIB_PATH
 
10295
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10296
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10297
    soname_spec='${libname}${release}${shared_ext}$major'
 
10298
    ;;
 
10299
  esac
 
10300
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10301
  postinstall_cmds='chmod 555 $lib'
 
10302
  # or fails outright, so override atomically:
 
10303
  install_override_mode=555
 
10304
  ;;
 
10305
 
 
10306
interix[3-9]*)
 
10307
  version_type=linux # correct to gnu/linux during the next big refactor
 
10308
  need_lib_prefix=no
 
10309
  need_version=no
 
10310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10311
  soname_spec='${libname}${release}${shared_ext}$major'
 
10312
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10313
  shlibpath_var=LD_LIBRARY_PATH
 
10314
  shlibpath_overrides_runpath=no
 
10315
  hardcode_into_libs=yes
 
10316
  ;;
 
10317
 
 
10318
irix5* | irix6* | nonstopux*)
 
10319
  case $host_os in
 
10320
    nonstopux*) version_type=nonstopux ;;
 
10321
    *)
 
10322
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10323
                version_type=linux # correct to gnu/linux during the next big refactor
 
10324
        else
 
10325
                version_type=irix
 
10326
        fi ;;
 
10327
  esac
 
10328
  need_lib_prefix=no
 
10329
  need_version=no
 
10330
  soname_spec='${libname}${release}${shared_ext}$major'
 
10331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10332
  case $host_os in
 
10333
  irix5* | nonstopux*)
 
10334
    libsuff= shlibsuff=
 
10335
    ;;
 
10336
  *)
 
10337
    case $LD in # libtool.m4 will add one of these switches to LD
 
10338
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10339
      libsuff= shlibsuff= libmagic=32-bit;;
 
10340
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10341
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10342
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10343
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10344
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10345
    esac
 
10346
    ;;
 
10347
  esac
 
10348
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10349
  shlibpath_overrides_runpath=no
 
10350
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10351
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10352
  hardcode_into_libs=yes
 
10353
  ;;
 
10354
 
 
10355
# No shared lib support for Linux oldld, aout, or coff.
 
10356
linux*oldld* | linux*aout* | linux*coff*)
 
10357
  dynamic_linker=no
 
10358
  ;;
 
10359
 
 
10360
# This must be glibc/ELF.
 
10361
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10362
  version_type=linux # correct to gnu/linux during the next big refactor
 
10363
  need_lib_prefix=no
 
10364
  need_version=no
 
10365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10366
  soname_spec='${libname}${release}${shared_ext}$major'
 
10367
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10368
  shlibpath_var=LD_LIBRARY_PATH
 
10369
  shlibpath_overrides_runpath=no
 
10370
 
 
10371
  # Some binutils ld are patched to set DT_RUNPATH
 
10372
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10373
  $as_echo_n "(cached) " >&6
 
10374
else
 
10375
  lt_cv_shlibpath_overrides_runpath=no
 
10376
    save_LDFLAGS=$LDFLAGS
 
10377
    save_libdir=$libdir
 
10378
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10379
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10380
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10381
/* end confdefs.h.  */
 
10382
 
 
10383
int
 
10384
main ()
 
10385
{
 
10386
 
 
10387
  ;
 
10388
  return 0;
 
10389
}
 
10390
_ACEOF
 
10391
if ac_fn_c_try_link "$LINENO"; then :
 
10392
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10393
  lt_cv_shlibpath_overrides_runpath=yes
 
10394
fi
 
10395
fi
 
10396
rm -f core conftest.err conftest.$ac_objext \
 
10397
    conftest$ac_exeext conftest.$ac_ext
 
10398
    LDFLAGS=$save_LDFLAGS
 
10399
    libdir=$save_libdir
 
10400
 
 
10401
fi
 
10402
 
 
10403
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10404
 
 
10405
  # This implies no fast_install, which is unacceptable.
 
10406
  # Some rework will be needed to allow for fast_install
 
10407
  # before this can be enabled.
 
10408
  hardcode_into_libs=yes
 
10409
 
 
10410
  # Append ld.so.conf contents to the search path
 
10411
  if test -f /etc/ld.so.conf; then
 
10412
    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' ' '`
 
10413
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10414
  fi
 
10415
 
 
10416
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10417
  # powerpc, because MkLinux only supported shared libraries with the
 
10418
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10419
  # most powerpc-linux boxes support dynamic linking these days and
 
10420
  # people can always --disable-shared, the test was removed, and we
 
10421
  # assume the GNU/Linux dynamic linker is in use.
 
10422
  dynamic_linker='GNU/Linux ld.so'
 
10423
  ;;
 
10424
 
 
10425
netbsdelf*-gnu)
 
10426
  version_type=linux
 
10427
  need_lib_prefix=no
 
10428
  need_version=no
 
10429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10430
  soname_spec='${libname}${release}${shared_ext}$major'
 
10431
  shlibpath_var=LD_LIBRARY_PATH
 
10432
  shlibpath_overrides_runpath=no
 
10433
  hardcode_into_libs=yes
 
10434
  dynamic_linker='NetBSD ld.elf_so'
 
10435
  ;;
 
10436
 
 
10437
netbsd*)
 
10438
  version_type=sunos
 
10439
  need_lib_prefix=no
 
10440
  need_version=no
 
10441
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10442
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10443
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10444
    dynamic_linker='NetBSD (a.out) ld.so'
 
10445
  else
 
10446
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10447
    soname_spec='${libname}${release}${shared_ext}$major'
 
10448
    dynamic_linker='NetBSD ld.elf_so'
 
10449
  fi
 
10450
  shlibpath_var=LD_LIBRARY_PATH
 
10451
  shlibpath_overrides_runpath=yes
 
10452
  hardcode_into_libs=yes
 
10453
  ;;
 
10454
 
 
10455
newsos6)
 
10456
  version_type=linux # correct to gnu/linux during the next big refactor
 
10457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10458
  shlibpath_var=LD_LIBRARY_PATH
 
10459
  shlibpath_overrides_runpath=yes
 
10460
  ;;
 
10461
 
 
10462
*nto* | *qnx*)
 
10463
  version_type=qnx
 
10464
  need_lib_prefix=no
 
10465
  need_version=no
 
10466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10467
  soname_spec='${libname}${release}${shared_ext}$major'
 
10468
  shlibpath_var=LD_LIBRARY_PATH
 
10469
  shlibpath_overrides_runpath=no
 
10470
  hardcode_into_libs=yes
 
10471
  dynamic_linker='ldqnx.so'
 
10472
  ;;
 
10473
 
 
10474
openbsd*)
 
10475
  version_type=sunos
 
10476
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10477
  need_lib_prefix=no
 
10478
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10479
  case $host_os in
 
10480
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10481
    *)                          need_version=no  ;;
 
10482
  esac
 
10483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10484
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10485
  shlibpath_var=LD_LIBRARY_PATH
 
10486
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10487
    case $host_os in
 
10488
      openbsd2.[89] | openbsd2.[89].*)
 
10489
        shlibpath_overrides_runpath=no
 
10490
        ;;
 
10491
      *)
 
10492
        shlibpath_overrides_runpath=yes
 
10493
        ;;
 
10494
      esac
 
10495
  else
 
10496
    shlibpath_overrides_runpath=yes
 
10497
  fi
 
10498
  ;;
 
10499
 
 
10500
os2*)
 
10501
  libname_spec='$name'
 
10502
  shrext_cmds=".dll"
 
10503
  need_lib_prefix=no
 
10504
  library_names_spec='$libname${shared_ext} $libname.a'
 
10505
  dynamic_linker='OS/2 ld.exe'
 
10506
  shlibpath_var=LIBPATH
 
10507
  ;;
 
10508
 
 
10509
osf3* | osf4* | osf5*)
 
10510
  version_type=osf
 
10511
  need_lib_prefix=no
 
10512
  need_version=no
 
10513
  soname_spec='${libname}${release}${shared_ext}$major'
 
10514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10515
  shlibpath_var=LD_LIBRARY_PATH
 
10516
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10517
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10518
  ;;
 
10519
 
 
10520
rdos*)
 
10521
  dynamic_linker=no
 
10522
  ;;
 
10523
 
 
10524
solaris*)
 
10525
  version_type=linux # correct to gnu/linux during the next big refactor
 
10526
  need_lib_prefix=no
 
10527
  need_version=no
 
10528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10529
  soname_spec='${libname}${release}${shared_ext}$major'
 
10530
  shlibpath_var=LD_LIBRARY_PATH
 
10531
  shlibpath_overrides_runpath=yes
 
10532
  hardcode_into_libs=yes
 
10533
  # ldd complains unless libraries are executable
 
10534
  postinstall_cmds='chmod +x $lib'
 
10535
  ;;
 
10536
 
 
10537
sunos4*)
 
10538
  version_type=sunos
 
10539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10540
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10541
  shlibpath_var=LD_LIBRARY_PATH
 
10542
  shlibpath_overrides_runpath=yes
 
10543
  if test "$with_gnu_ld" = yes; then
 
10544
    need_lib_prefix=no
 
10545
  fi
 
10546
  need_version=yes
 
10547
  ;;
 
10548
 
 
10549
sysv4 | sysv4.3*)
 
10550
  version_type=linux # correct to gnu/linux during the next big refactor
 
10551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10552
  soname_spec='${libname}${release}${shared_ext}$major'
 
10553
  shlibpath_var=LD_LIBRARY_PATH
 
10554
  case $host_vendor in
 
10555
    sni)
 
10556
      shlibpath_overrides_runpath=no
 
10557
      need_lib_prefix=no
 
10558
      runpath_var=LD_RUN_PATH
 
10559
      ;;
 
10560
    siemens)
 
10561
      need_lib_prefix=no
 
10562
      ;;
 
10563
    motorola)
 
10564
      need_lib_prefix=no
 
10565
      need_version=no
 
10566
      shlibpath_overrides_runpath=no
 
10567
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10568
      ;;
 
10569
  esac
 
10570
  ;;
 
10571
 
 
10572
sysv4*MP*)
 
10573
  if test -d /usr/nec ;then
 
10574
    version_type=linux # correct to gnu/linux during the next big refactor
 
10575
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10576
    soname_spec='$libname${shared_ext}.$major'
 
10577
    shlibpath_var=LD_LIBRARY_PATH
 
10578
  fi
 
10579
  ;;
 
10580
 
 
10581
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10582
  version_type=freebsd-elf
 
10583
  need_lib_prefix=no
 
10584
  need_version=no
 
10585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10586
  soname_spec='${libname}${release}${shared_ext}$major'
 
10587
  shlibpath_var=LD_LIBRARY_PATH
 
10588
  shlibpath_overrides_runpath=yes
 
10589
  hardcode_into_libs=yes
 
10590
  if test "$with_gnu_ld" = yes; then
 
10591
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10592
  else
 
10593
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10594
    case $host_os in
 
10595
      sco3.2v5*)
 
10596
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10597
        ;;
 
10598
    esac
 
10599
  fi
 
10600
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10601
  ;;
 
10602
 
 
10603
tpf*)
 
10604
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10605
  version_type=linux # correct to gnu/linux during the next big refactor
 
10606
  need_lib_prefix=no
 
10607
  need_version=no
 
10608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10609
  shlibpath_var=LD_LIBRARY_PATH
 
10610
  shlibpath_overrides_runpath=no
 
10611
  hardcode_into_libs=yes
 
10612
  ;;
 
10613
 
 
10614
uts4*)
 
10615
  version_type=linux # correct to gnu/linux during the next big refactor
 
10616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10617
  soname_spec='${libname}${release}${shared_ext}$major'
 
10618
  shlibpath_var=LD_LIBRARY_PATH
 
10619
  ;;
 
10620
 
 
10621
*)
 
10622
  dynamic_linker=no
 
10623
  ;;
 
10624
esac
 
10625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10626
$as_echo "$dynamic_linker" >&6; }
 
10627
test "$dynamic_linker" = no && can_build_shared=no
 
10628
 
 
10629
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10630
if test "$GCC" = yes; then
 
10631
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10632
fi
 
10633
 
 
10634
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10635
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10636
fi
 
10637
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10638
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10639
fi
 
10640
 
 
10641
 
 
10642
 
 
10643
 
 
10644
 
 
10645
 
 
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
 
 
10667
 
 
10668
 
 
10669
 
 
10670
 
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
 
 
10682
 
 
10683
 
 
10684
 
 
10685
 
 
10686
 
 
10687
 
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10733
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10734
hardcode_action=
 
10735
if test -n "$hardcode_libdir_flag_spec" ||
 
10736
   test -n "$runpath_var" ||
 
10737
   test "X$hardcode_automatic" = "Xyes" ; then
 
10738
 
 
10739
  # We can hardcode non-existent directories.
 
10740
  if test "$hardcode_direct" != no &&
 
10741
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10742
     # have to relink, otherwise we might link with an installed library
 
10743
     # when we should be linking with a yet-to-be-installed one
 
10744
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10745
     test "$hardcode_minus_L" != no; then
 
10746
    # Linking always hardcodes the temporary library directory.
 
10747
    hardcode_action=relink
 
10748
  else
 
10749
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10750
    hardcode_action=immediate
 
10751
  fi
 
10752
else
 
10753
  # We cannot hardcode anything, or else we can only hardcode existing
 
10754
  # directories.
 
10755
  hardcode_action=unsupported
 
10756
fi
 
10757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10758
$as_echo "$hardcode_action" >&6; }
 
10759
 
 
10760
if test "$hardcode_action" = relink ||
 
10761
   test "$inherit_rpath" = yes; then
 
10762
  # Fast installation is not supported
 
10763
  enable_fast_install=no
 
10764
elif test "$shlibpath_overrides_runpath" = yes ||
 
10765
     test "$enable_shared" = no; then
 
10766
  # Fast installation is not necessary
 
10767
  enable_fast_install=needless
 
10768
fi
 
10769
 
 
10770
 
 
10771
 
 
10772
 
 
10773
 
 
10774
 
 
10775
  if test "x$enable_dlopen" != xyes; then
 
10776
  enable_dlopen=unknown
 
10777
  enable_dlopen_self=unknown
 
10778
  enable_dlopen_self_static=unknown
 
10779
else
 
10780
  lt_cv_dlopen=no
 
10781
  lt_cv_dlopen_libs=
 
10782
 
 
10783
  case $host_os in
 
10784
  beos*)
 
10785
    lt_cv_dlopen="load_add_on"
 
10786
    lt_cv_dlopen_libs=
 
10787
    lt_cv_dlopen_self=yes
 
10788
    ;;
 
10789
 
 
10790
  mingw* | pw32* | cegcc*)
 
10791
    lt_cv_dlopen="LoadLibrary"
 
10792
    lt_cv_dlopen_libs=
 
10793
    ;;
 
10794
 
 
10795
  cygwin*)
 
10796
    lt_cv_dlopen="dlopen"
 
10797
    lt_cv_dlopen_libs=
 
10798
    ;;
 
10799
 
 
10800
  darwin*)
 
10801
  # if libdl is installed we need to link against it
 
10802
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10803
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10804
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10805
  $as_echo_n "(cached) " >&6
 
10806
else
 
10807
  ac_check_lib_save_LIBS=$LIBS
 
10808
LIBS="-ldl  $LIBS"
 
10809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10810
/* end confdefs.h.  */
 
10811
 
 
10812
/* Override any GCC internal prototype to avoid an error.
 
10813
   Use char because int might match the return type of a GCC
 
10814
   builtin and then its argument prototype would still apply.  */
 
10815
#ifdef __cplusplus
 
10816
extern "C"
 
10817
#endif
 
10818
char dlopen ();
 
10819
int
 
10820
main ()
 
10821
{
 
10822
return dlopen ();
 
10823
  ;
 
10824
  return 0;
 
10825
}
 
10826
_ACEOF
 
10827
if ac_fn_c_try_link "$LINENO"; then :
 
10828
  ac_cv_lib_dl_dlopen=yes
 
10829
else
 
10830
  ac_cv_lib_dl_dlopen=no
 
10831
fi
 
10832
rm -f core conftest.err conftest.$ac_objext \
 
10833
    conftest$ac_exeext conftest.$ac_ext
 
10834
LIBS=$ac_check_lib_save_LIBS
 
10835
fi
 
10836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10837
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10838
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10839
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10840
else
 
10841
 
 
10842
    lt_cv_dlopen="dyld"
 
10843
    lt_cv_dlopen_libs=
 
10844
    lt_cv_dlopen_self=yes
 
10845
 
 
10846
fi
 
10847
 
 
10848
    ;;
 
10849
 
 
10850
  *)
 
10851
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10852
if test "x$ac_cv_func_shl_load" = xyes; then :
 
10853
  lt_cv_dlopen="shl_load"
 
10854
else
 
10855
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10856
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10857
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10858
  $as_echo_n "(cached) " >&6
 
10859
else
 
10860
  ac_check_lib_save_LIBS=$LIBS
 
10861
LIBS="-ldld  $LIBS"
 
10862
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10863
/* end confdefs.h.  */
 
10864
 
 
10865
/* Override any GCC internal prototype to avoid an error.
 
10866
   Use char because int might match the return type of a GCC
 
10867
   builtin and then its argument prototype would still apply.  */
 
10868
#ifdef __cplusplus
 
10869
extern "C"
 
10870
#endif
 
10871
char shl_load ();
 
10872
int
 
10873
main ()
 
10874
{
 
10875
return shl_load ();
 
10876
  ;
 
10877
  return 0;
 
10878
}
 
10879
_ACEOF
 
10880
if ac_fn_c_try_link "$LINENO"; then :
 
10881
  ac_cv_lib_dld_shl_load=yes
 
10882
else
 
10883
  ac_cv_lib_dld_shl_load=no
 
10884
fi
 
10885
rm -f core conftest.err conftest.$ac_objext \
 
10886
    conftest$ac_exeext conftest.$ac_ext
 
10887
LIBS=$ac_check_lib_save_LIBS
 
10888
fi
 
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10890
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10891
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
10892
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10893
else
 
10894
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10895
if test "x$ac_cv_func_dlopen" = xyes; then :
 
10896
  lt_cv_dlopen="dlopen"
 
10897
else
 
10898
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10899
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10900
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10901
  $as_echo_n "(cached) " >&6
 
10902
else
 
10903
  ac_check_lib_save_LIBS=$LIBS
 
10904
LIBS="-ldl  $LIBS"
 
10905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10906
/* end confdefs.h.  */
 
10907
 
 
10908
/* Override any GCC internal prototype to avoid an error.
 
10909
   Use char because int might match the return type of a GCC
 
10910
   builtin and then its argument prototype would still apply.  */
 
10911
#ifdef __cplusplus
 
10912
extern "C"
 
10913
#endif
 
10914
char dlopen ();
 
10915
int
 
10916
main ()
 
10917
{
 
10918
return dlopen ();
 
10919
  ;
 
10920
  return 0;
 
10921
}
 
10922
_ACEOF
 
10923
if ac_fn_c_try_link "$LINENO"; then :
 
10924
  ac_cv_lib_dl_dlopen=yes
 
10925
else
 
10926
  ac_cv_lib_dl_dlopen=no
 
10927
fi
 
10928
rm -f core conftest.err conftest.$ac_objext \
 
10929
    conftest$ac_exeext conftest.$ac_ext
 
10930
LIBS=$ac_check_lib_save_LIBS
 
10931
fi
 
10932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10933
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10934
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10935
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10936
else
 
10937
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10938
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10939
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
10940
  $as_echo_n "(cached) " >&6
 
10941
else
 
10942
  ac_check_lib_save_LIBS=$LIBS
 
10943
LIBS="-lsvld  $LIBS"
 
10944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10945
/* end confdefs.h.  */
 
10946
 
 
10947
/* Override any GCC internal prototype to avoid an error.
 
10948
   Use char because int might match the return type of a GCC
 
10949
   builtin and then its argument prototype would still apply.  */
 
10950
#ifdef __cplusplus
 
10951
extern "C"
 
10952
#endif
 
10953
char dlopen ();
 
10954
int
 
10955
main ()
 
10956
{
 
10957
return dlopen ();
 
10958
  ;
 
10959
  return 0;
 
10960
}
 
10961
_ACEOF
 
10962
if ac_fn_c_try_link "$LINENO"; then :
 
10963
  ac_cv_lib_svld_dlopen=yes
 
10964
else
 
10965
  ac_cv_lib_svld_dlopen=no
 
10966
fi
 
10967
rm -f core conftest.err conftest.$ac_objext \
 
10968
    conftest$ac_exeext conftest.$ac_ext
 
10969
LIBS=$ac_check_lib_save_LIBS
 
10970
fi
 
10971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10972
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10973
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
10974
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10975
else
 
10976
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10977
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10978
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
10979
  $as_echo_n "(cached) " >&6
 
10980
else
 
10981
  ac_check_lib_save_LIBS=$LIBS
 
10982
LIBS="-ldld  $LIBS"
 
10983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10984
/* end confdefs.h.  */
 
10985
 
 
10986
/* Override any GCC internal prototype to avoid an error.
 
10987
   Use char because int might match the return type of a GCC
 
10988
   builtin and then its argument prototype would still apply.  */
 
10989
#ifdef __cplusplus
 
10990
extern "C"
 
10991
#endif
 
10992
char dld_link ();
 
10993
int
 
10994
main ()
 
10995
{
 
10996
return dld_link ();
 
10997
  ;
 
10998
  return 0;
 
10999
}
 
11000
_ACEOF
 
11001
if ac_fn_c_try_link "$LINENO"; then :
 
11002
  ac_cv_lib_dld_dld_link=yes
 
11003
else
 
11004
  ac_cv_lib_dld_dld_link=no
 
11005
fi
 
11006
rm -f core conftest.err conftest.$ac_objext \
 
11007
    conftest$ac_exeext conftest.$ac_ext
 
11008
LIBS=$ac_check_lib_save_LIBS
 
11009
fi
 
11010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11011
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11012
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11013
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11014
fi
 
11015
 
 
11016
 
 
11017
fi
 
11018
 
 
11019
 
 
11020
fi
 
11021
 
 
11022
 
 
11023
fi
 
11024
 
 
11025
 
 
11026
fi
 
11027
 
 
11028
 
 
11029
fi
 
11030
 
 
11031
    ;;
 
11032
  esac
 
11033
 
 
11034
  if test "x$lt_cv_dlopen" != xno; then
 
11035
    enable_dlopen=yes
 
11036
  else
 
11037
    enable_dlopen=no
 
11038
  fi
 
11039
 
 
11040
  case $lt_cv_dlopen in
 
11041
  dlopen)
 
11042
    save_CPPFLAGS="$CPPFLAGS"
 
11043
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11044
 
 
11045
    save_LDFLAGS="$LDFLAGS"
 
11046
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11047
 
 
11048
    save_LIBS="$LIBS"
 
11049
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11050
 
 
11051
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11052
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11053
if ${lt_cv_dlopen_self+:} false; then :
 
11054
  $as_echo_n "(cached) " >&6
 
11055
else
 
11056
          if test "$cross_compiling" = yes; then :
 
11057
  lt_cv_dlopen_self=cross
 
11058
else
 
11059
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11060
  lt_status=$lt_dlunknown
 
11061
  cat > conftest.$ac_ext <<_LT_EOF
 
11062
#line $LINENO "configure"
 
11063
#include "confdefs.h"
 
11064
 
 
11065
#if HAVE_DLFCN_H
 
11066
#include <dlfcn.h>
 
11067
#endif
 
11068
 
 
11069
#include <stdio.h>
 
11070
 
 
11071
#ifdef RTLD_GLOBAL
 
11072
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11073
#else
 
11074
#  ifdef DL_GLOBAL
 
11075
#    define LT_DLGLOBAL         DL_GLOBAL
 
11076
#  else
 
11077
#    define LT_DLGLOBAL         0
 
11078
#  endif
 
11079
#endif
 
11080
 
 
11081
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11082
   find out it does not work in some platform. */
 
11083
#ifndef LT_DLLAZY_OR_NOW
 
11084
#  ifdef RTLD_LAZY
 
11085
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11086
#  else
 
11087
#    ifdef DL_LAZY
 
11088
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11089
#    else
 
11090
#      ifdef RTLD_NOW
 
11091
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11092
#      else
 
11093
#        ifdef DL_NOW
 
11094
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11095
#        else
 
11096
#          define LT_DLLAZY_OR_NOW      0
 
11097
#        endif
 
11098
#      endif
 
11099
#    endif
 
11100
#  endif
 
11101
#endif
 
11102
 
 
11103
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11104
   correspondingly for the symbols needed.  */
 
11105
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11106
int fnord () __attribute__((visibility("default")));
 
11107
#endif
 
11108
 
 
11109
int fnord () { return 42; }
 
11110
int main ()
 
11111
{
 
11112
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11113
  int status = $lt_dlunknown;
 
11114
 
 
11115
  if (self)
 
11116
    {
 
11117
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11118
      else
 
11119
        {
 
11120
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11121
          else puts (dlerror ());
 
11122
        }
 
11123
      /* dlclose (self); */
 
11124
    }
 
11125
  else
 
11126
    puts (dlerror ());
 
11127
 
 
11128
  return status;
 
11129
}
 
11130
_LT_EOF
 
11131
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11132
  (eval $ac_link) 2>&5
 
11133
  ac_status=$?
 
11134
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11135
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11136
    (./conftest; exit; ) >&5 2>/dev/null
 
11137
    lt_status=$?
 
11138
    case x$lt_status in
 
11139
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11140
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11141
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11142
    esac
 
11143
  else :
 
11144
    # compilation failed
 
11145
    lt_cv_dlopen_self=no
 
11146
  fi
 
11147
fi
 
11148
rm -fr conftest*
 
11149
 
 
11150
 
 
11151
fi
 
11152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11153
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11154
 
 
11155
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11156
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11157
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11158
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11159
if ${lt_cv_dlopen_self_static+:} false; then :
 
11160
  $as_echo_n "(cached) " >&6
 
11161
else
 
11162
          if test "$cross_compiling" = yes; then :
 
11163
  lt_cv_dlopen_self_static=cross
 
11164
else
 
11165
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11166
  lt_status=$lt_dlunknown
 
11167
  cat > conftest.$ac_ext <<_LT_EOF
 
11168
#line $LINENO "configure"
 
11169
#include "confdefs.h"
 
11170
 
 
11171
#if HAVE_DLFCN_H
 
11172
#include <dlfcn.h>
 
11173
#endif
 
11174
 
 
11175
#include <stdio.h>
 
11176
 
 
11177
#ifdef RTLD_GLOBAL
 
11178
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11179
#else
 
11180
#  ifdef DL_GLOBAL
 
11181
#    define LT_DLGLOBAL         DL_GLOBAL
 
11182
#  else
 
11183
#    define LT_DLGLOBAL         0
 
11184
#  endif
 
11185
#endif
 
11186
 
 
11187
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11188
   find out it does not work in some platform. */
 
11189
#ifndef LT_DLLAZY_OR_NOW
 
11190
#  ifdef RTLD_LAZY
 
11191
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11192
#  else
 
11193
#    ifdef DL_LAZY
 
11194
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11195
#    else
 
11196
#      ifdef RTLD_NOW
 
11197
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11198
#      else
 
11199
#        ifdef DL_NOW
 
11200
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11201
#        else
 
11202
#          define LT_DLLAZY_OR_NOW      0
 
11203
#        endif
 
11204
#      endif
 
11205
#    endif
 
11206
#  endif
 
11207
#endif
 
11208
 
 
11209
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11210
   correspondingly for the symbols needed.  */
 
11211
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11212
int fnord () __attribute__((visibility("default")));
 
11213
#endif
 
11214
 
 
11215
int fnord () { return 42; }
 
11216
int main ()
 
11217
{
 
11218
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11219
  int status = $lt_dlunknown;
 
11220
 
 
11221
  if (self)
 
11222
    {
 
11223
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11224
      else
 
11225
        {
 
11226
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11227
          else puts (dlerror ());
 
11228
        }
 
11229
      /* dlclose (self); */
 
11230
    }
 
11231
  else
 
11232
    puts (dlerror ());
 
11233
 
 
11234
  return status;
 
11235
}
 
11236
_LT_EOF
 
11237
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11238
  (eval $ac_link) 2>&5
 
11239
  ac_status=$?
 
11240
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11241
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11242
    (./conftest; exit; ) >&5 2>/dev/null
 
11243
    lt_status=$?
 
11244
    case x$lt_status in
 
11245
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11246
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11247
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11248
    esac
 
11249
  else :
 
11250
    # compilation failed
 
11251
    lt_cv_dlopen_self_static=no
 
11252
  fi
 
11253
fi
 
11254
rm -fr conftest*
 
11255
 
 
11256
 
 
11257
fi
 
11258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11259
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11260
    fi
 
11261
 
 
11262
    CPPFLAGS="$save_CPPFLAGS"
 
11263
    LDFLAGS="$save_LDFLAGS"
 
11264
    LIBS="$save_LIBS"
 
11265
    ;;
 
11266
  esac
 
11267
 
 
11268
  case $lt_cv_dlopen_self in
 
11269
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11270
  *) enable_dlopen_self=unknown ;;
 
11271
  esac
 
11272
 
 
11273
  case $lt_cv_dlopen_self_static in
 
11274
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11275
  *) enable_dlopen_self_static=unknown ;;
 
11276
  esac
 
11277
fi
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
 
 
11283
 
 
11284
 
 
11285
 
 
11286
 
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
 
 
11294
 
 
11295
striplib=
 
11296
old_striplib=
 
11297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11298
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11299
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11300
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11301
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11303
$as_echo "yes" >&6; }
 
11304
else
 
11305
# FIXME - insert some real tests, host_os isn't really good enough
 
11306
  case $host_os in
 
11307
  darwin*)
 
11308
    if test -n "$STRIP" ; then
 
11309
      striplib="$STRIP -x"
 
11310
      old_striplib="$STRIP -S"
 
11311
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11312
$as_echo "yes" >&6; }
 
11313
    else
 
11314
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11315
$as_echo "no" >&6; }
 
11316
    fi
 
11317
    ;;
 
11318
  *)
 
11319
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11320
$as_echo "no" >&6; }
 
11321
    ;;
 
11322
  esac
 
11323
fi
 
11324
 
 
11325
 
 
11326
 
 
11327
 
 
11328
 
 
11329
 
 
11330
 
 
11331
 
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
  # Report which library types will actually be built
 
11337
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11338
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11340
$as_echo "$can_build_shared" >&6; }
 
11341
 
 
11342
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11343
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11344
  test "$can_build_shared" = "no" && enable_shared=no
 
11345
 
 
11346
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11347
  # are all built from PIC.
 
11348
  case $host_os in
 
11349
  aix3*)
 
11350
    test "$enable_shared" = yes && enable_static=no
 
11351
    if test -n "$RANLIB"; then
 
11352
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11353
      postinstall_cmds='$RANLIB $lib'
 
11354
    fi
 
11355
    ;;
 
11356
 
 
11357
  aix[4-9]*)
 
11358
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11359
      test "$enable_shared" = yes && enable_static=no
 
11360
    fi
 
11361
    ;;
 
11362
  esac
 
11363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11364
$as_echo "$enable_shared" >&6; }
 
11365
 
 
11366
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11367
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11368
  # Make sure either enable_shared or enable_static is yes.
 
11369
  test "$enable_shared" = yes || enable_static=yes
 
11370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11371
$as_echo "$enable_static" >&6; }
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
fi
 
11377
ac_ext=c
 
11378
ac_cpp='$CPP $CPPFLAGS'
 
11379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11382
 
 
11383
CC="$lt_save_CC"
 
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
 
 
11390
 
 
11391
 
 
11392
 
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
 
 
11398
 
 
11399
        ac_config_commands="$ac_config_commands libtool"
 
11400
 
 
11401
 
 
11402
 
 
11403
 
 
11404
# Only expand once:
 
11405
 
 
11406
 
 
11407
 
 
11408
# Checks for programs.
 
11409
ac_ext=c
 
11410
ac_cpp='$CPP $CPPFLAGS'
 
11411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11414
if test -n "$ac_tool_prefix"; then
 
11415
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
11416
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
11417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11418
$as_echo_n "checking for $ac_word... " >&6; }
 
11419
if ${ac_cv_prog_CC+:} false; then :
 
11420
  $as_echo_n "(cached) " >&6
 
11421
else
 
11422
  if test -n "$CC"; then
 
11423
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11424
else
 
11425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11426
for as_dir in $PATH
 
11427
do
 
11428
  IFS=$as_save_IFS
 
11429
  test -z "$as_dir" && as_dir=.
 
11430
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11432
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
11433
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11434
    break 2
 
11435
  fi
 
11436
done
 
11437
  done
 
11438
IFS=$as_save_IFS
 
11439
 
 
11440
fi
 
11441
fi
 
11442
CC=$ac_cv_prog_CC
 
11443
if test -n "$CC"; then
 
11444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11445
$as_echo "$CC" >&6; }
 
11446
else
 
11447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11448
$as_echo "no" >&6; }
 
11449
fi
 
11450
 
 
11451
 
 
11452
fi
 
11453
if test -z "$ac_cv_prog_CC"; then
 
11454
  ac_ct_CC=$CC
 
11455
  # Extract the first word of "gcc", so it can be a program name with args.
 
11456
set dummy gcc; ac_word=$2
 
11457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11458
$as_echo_n "checking for $ac_word... " >&6; }
 
11459
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11460
  $as_echo_n "(cached) " >&6
 
11461
else
 
11462
  if test -n "$ac_ct_CC"; then
 
11463
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11464
else
 
11465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11466
for as_dir in $PATH
 
11467
do
 
11468
  IFS=$as_save_IFS
 
11469
  test -z "$as_dir" && as_dir=.
 
11470
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11472
    ac_cv_prog_ac_ct_CC="gcc"
 
11473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11474
    break 2
 
11475
  fi
 
11476
done
 
11477
  done
 
11478
IFS=$as_save_IFS
 
11479
 
 
11480
fi
 
11481
fi
 
11482
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11483
if test -n "$ac_ct_CC"; then
 
11484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11485
$as_echo "$ac_ct_CC" >&6; }
 
11486
else
 
11487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11488
$as_echo "no" >&6; }
 
11489
fi
 
11490
 
 
11491
  if test "x$ac_ct_CC" = x; then
 
11492
    CC=""
 
11493
  else
 
11494
    case $cross_compiling:$ac_tool_warned in
 
11495
yes:)
 
11496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11498
ac_tool_warned=yes ;;
 
11499
esac
 
11500
    CC=$ac_ct_CC
 
11501
  fi
 
11502
else
 
11503
  CC="$ac_cv_prog_CC"
 
11504
fi
 
11505
 
 
11506
if test -z "$CC"; then
 
11507
          if test -n "$ac_tool_prefix"; then
 
11508
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
11509
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
11510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11511
$as_echo_n "checking for $ac_word... " >&6; }
 
11512
if ${ac_cv_prog_CC+:} false; then :
 
11513
  $as_echo_n "(cached) " >&6
 
11514
else
 
11515
  if test -n "$CC"; then
 
11516
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11517
else
 
11518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11519
for as_dir in $PATH
 
11520
do
 
11521
  IFS=$as_save_IFS
 
11522
  test -z "$as_dir" && as_dir=.
 
11523
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11525
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
11526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11527
    break 2
 
11528
  fi
 
11529
done
 
11530
  done
 
11531
IFS=$as_save_IFS
 
11532
 
 
11533
fi
 
11534
fi
 
11535
CC=$ac_cv_prog_CC
 
11536
if test -n "$CC"; then
 
11537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11538
$as_echo "$CC" >&6; }
 
11539
else
 
11540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11541
$as_echo "no" >&6; }
 
11542
fi
 
11543
 
 
11544
 
 
11545
  fi
 
11546
fi
 
11547
if test -z "$CC"; then
 
11548
  # Extract the first word of "cc", so it can be a program name with args.
 
11549
set dummy cc; ac_word=$2
 
11550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11551
$as_echo_n "checking for $ac_word... " >&6; }
 
11552
if ${ac_cv_prog_CC+:} false; then :
 
11553
  $as_echo_n "(cached) " >&6
 
11554
else
 
11555
  if test -n "$CC"; then
 
11556
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11557
else
 
11558
  ac_prog_rejected=no
 
11559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11560
for as_dir in $PATH
 
11561
do
 
11562
  IFS=$as_save_IFS
 
11563
  test -z "$as_dir" && as_dir=.
 
11564
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11566
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
11567
       ac_prog_rejected=yes
 
11568
       continue
 
11569
     fi
 
11570
    ac_cv_prog_CC="cc"
 
11571
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11572
    break 2
 
11573
  fi
 
11574
done
 
11575
  done
 
11576
IFS=$as_save_IFS
 
11577
 
 
11578
if test $ac_prog_rejected = yes; then
 
11579
  # We found a bogon in the path, so make sure we never use it.
 
11580
  set dummy $ac_cv_prog_CC
 
11581
  shift
 
11582
  if test $# != 0; then
 
11583
    # We chose a different compiler from the bogus one.
 
11584
    # However, it has the same basename, so the bogon will be chosen
 
11585
    # first if we set CC to just the basename; use the full file name.
 
11586
    shift
 
11587
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
11588
  fi
 
11589
fi
 
11590
fi
 
11591
fi
 
11592
CC=$ac_cv_prog_CC
 
11593
if test -n "$CC"; then
 
11594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11595
$as_echo "$CC" >&6; }
 
11596
else
 
11597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11598
$as_echo "no" >&6; }
 
11599
fi
 
11600
 
 
11601
 
 
11602
fi
 
11603
if test -z "$CC"; then
 
11604
  if test -n "$ac_tool_prefix"; then
 
11605
  for ac_prog in cl.exe
 
11606
  do
 
11607
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11608
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11610
$as_echo_n "checking for $ac_word... " >&6; }
 
11611
if ${ac_cv_prog_CC+:} false; then :
 
11612
  $as_echo_n "(cached) " >&6
 
11613
else
 
11614
  if test -n "$CC"; then
 
11615
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11616
else
 
11617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11618
for as_dir in $PATH
 
11619
do
 
11620
  IFS=$as_save_IFS
 
11621
  test -z "$as_dir" && as_dir=.
 
11622
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11624
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
11625
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11626
    break 2
 
11627
  fi
 
11628
done
 
11629
  done
 
11630
IFS=$as_save_IFS
 
11631
 
 
11632
fi
 
11633
fi
 
11634
CC=$ac_cv_prog_CC
 
11635
if test -n "$CC"; then
 
11636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11637
$as_echo "$CC" >&6; }
 
11638
else
 
11639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11640
$as_echo "no" >&6; }
 
11641
fi
 
11642
 
 
11643
 
 
11644
    test -n "$CC" && break
 
11645
  done
 
11646
fi
 
11647
if test -z "$CC"; then
 
11648
  ac_ct_CC=$CC
 
11649
  for ac_prog in cl.exe
 
11650
do
 
11651
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11652
set dummy $ac_prog; ac_word=$2
 
11653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11654
$as_echo_n "checking for $ac_word... " >&6; }
 
11655
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11656
  $as_echo_n "(cached) " >&6
 
11657
else
 
11658
  if test -n "$ac_ct_CC"; then
 
11659
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11660
else
 
11661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11662
for as_dir in $PATH
 
11663
do
 
11664
  IFS=$as_save_IFS
 
11665
  test -z "$as_dir" && as_dir=.
 
11666
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11667
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11668
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
11669
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11670
    break 2
 
11671
  fi
 
11672
done
 
11673
  done
 
11674
IFS=$as_save_IFS
 
11675
 
 
11676
fi
 
11677
fi
 
11678
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11679
if test -n "$ac_ct_CC"; then
 
11680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11681
$as_echo "$ac_ct_CC" >&6; }
 
11682
else
 
11683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11684
$as_echo "no" >&6; }
 
11685
fi
 
11686
 
 
11687
 
 
11688
  test -n "$ac_ct_CC" && break
 
11689
done
 
11690
 
 
11691
  if test "x$ac_ct_CC" = x; then
 
11692
    CC=""
 
11693
  else
 
11694
    case $cross_compiling:$ac_tool_warned in
 
11695
yes:)
 
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11698
ac_tool_warned=yes ;;
 
11699
esac
 
11700
    CC=$ac_ct_CC
 
11701
  fi
 
11702
fi
 
11703
 
 
11704
fi
 
11705
 
 
11706
 
 
11707
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11709
as_fn_error $? "no acceptable C compiler found in \$PATH
 
11710
See \`config.log' for more details" "$LINENO" 5; }
 
11711
 
 
11712
# Provide some information about the compiler.
 
11713
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
11714
set X $ac_compile
 
11715
ac_compiler=$2
 
11716
for ac_option in --version -v -V -qversion; do
 
11717
  { { ac_try="$ac_compiler $ac_option >&5"
 
11718
case "(($ac_try" in
 
11719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11720
  *) ac_try_echo=$ac_try;;
 
11721
esac
 
11722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11723
$as_echo "$ac_try_echo"; } >&5
 
11724
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11725
  ac_status=$?
 
11726
  if test -s conftest.err; then
 
11727
    sed '10a\
 
11728
... rest of stderr output deleted ...
 
11729
         10q' conftest.err >conftest.er1
 
11730
    cat conftest.er1 >&5
 
11731
  fi
 
11732
  rm -f conftest.er1 conftest.err
 
11733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11734
  test $ac_status = 0; }
 
11735
done
 
11736
 
 
11737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
11738
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
11739
if ${ac_cv_c_compiler_gnu+:} false; then :
 
11740
  $as_echo_n "(cached) " >&6
 
11741
else
 
11742
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11743
/* end confdefs.h.  */
 
11744
 
 
11745
int
 
11746
main ()
 
11747
{
 
11748
#ifndef __GNUC__
 
11749
       choke me
 
11750
#endif
 
11751
 
 
11752
  ;
 
11753
  return 0;
 
11754
}
 
11755
_ACEOF
 
11756
if ac_fn_c_try_compile "$LINENO"; then :
 
11757
  ac_compiler_gnu=yes
 
11758
else
 
11759
  ac_compiler_gnu=no
 
11760
fi
 
11761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11762
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
11763
 
 
11764
fi
 
11765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
11766
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
11767
if test $ac_compiler_gnu = yes; then
 
11768
  GCC=yes
 
11769
else
 
11770
  GCC=
 
11771
fi
 
11772
ac_test_CFLAGS=${CFLAGS+set}
 
11773
ac_save_CFLAGS=$CFLAGS
 
11774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
11775
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
11776
if ${ac_cv_prog_cc_g+:} false; then :
 
11777
  $as_echo_n "(cached) " >&6
 
11778
else
 
11779
  ac_save_c_werror_flag=$ac_c_werror_flag
 
11780
   ac_c_werror_flag=yes
 
11781
   ac_cv_prog_cc_g=no
 
11782
   CFLAGS="-g"
 
11783
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11784
/* end confdefs.h.  */
 
11785
 
 
11786
int
 
11787
main ()
 
11788
{
 
11789
 
 
11790
  ;
 
11791
  return 0;
 
11792
}
 
11793
_ACEOF
 
11794
if ac_fn_c_try_compile "$LINENO"; then :
 
11795
  ac_cv_prog_cc_g=yes
 
11796
else
 
11797
  CFLAGS=""
 
11798
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11799
/* end confdefs.h.  */
 
11800
 
 
11801
int
 
11802
main ()
 
11803
{
 
11804
 
 
11805
  ;
 
11806
  return 0;
 
11807
}
 
11808
_ACEOF
 
11809
if ac_fn_c_try_compile "$LINENO"; then :
 
11810
 
 
11811
else
 
11812
  ac_c_werror_flag=$ac_save_c_werror_flag
 
11813
         CFLAGS="-g"
 
11814
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11815
/* end confdefs.h.  */
 
11816
 
 
11817
int
 
11818
main ()
 
11819
{
 
11820
 
 
11821
  ;
 
11822
  return 0;
 
11823
}
 
11824
_ACEOF
 
11825
if ac_fn_c_try_compile "$LINENO"; then :
 
11826
  ac_cv_prog_cc_g=yes
 
11827
fi
 
11828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11829
fi
 
11830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11831
fi
 
11832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11833
   ac_c_werror_flag=$ac_save_c_werror_flag
 
11834
fi
 
11835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
11836
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
11837
if test "$ac_test_CFLAGS" = set; then
 
11838
  CFLAGS=$ac_save_CFLAGS
 
11839
elif test $ac_cv_prog_cc_g = yes; then
 
11840
  if test "$GCC" = yes; then
 
11841
    CFLAGS="-g -O2"
 
11842
  else
 
11843
    CFLAGS="-g"
 
11844
  fi
 
11845
else
 
11846
  if test "$GCC" = yes; then
 
11847
    CFLAGS="-O2"
 
11848
  else
 
11849
    CFLAGS=
 
11850
  fi
 
11851
fi
 
11852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
11853
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
11854
if ${ac_cv_prog_cc_c89+:} false; then :
 
11855
  $as_echo_n "(cached) " >&6
 
11856
else
 
11857
  ac_cv_prog_cc_c89=no
 
11858
ac_save_CC=$CC
 
11859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11860
/* end confdefs.h.  */
 
11861
#include <stdarg.h>
 
11862
#include <stdio.h>
 
11863
#include <sys/types.h>
 
11864
#include <sys/stat.h>
 
11865
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11866
struct buf { int x; };
 
11867
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11868
static char *e (p, i)
 
11869
     char **p;
 
11870
     int i;
 
11871
{
 
11872
  return p[i];
 
11873
}
 
11874
static char *f (char * (*g) (char **, int), char **p, ...)
 
11875
{
 
11876
  char *s;
 
11877
  va_list v;
 
11878
  va_start (v,p);
 
11879
  s = g (p, va_arg (v,int));
 
11880
  va_end (v);
 
11881
  return s;
 
11882
}
 
11883
 
 
11884
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
11885
   function prototypes and stuff, but not '\xHH' hex character constants.
 
11886
   These don't provoke an error unfortunately, instead are silently treated
 
11887
   as 'x'.  The following induces an error, until -std is added to get
 
11888
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
11889
   array size at least.  It's necessary to write '\x00'==0 to get something
 
11890
   that's true only with -std.  */
 
11891
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
11892
 
 
11893
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
11894
   inside strings and character constants.  */
 
11895
#define FOO(x) 'x'
 
11896
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
11897
 
 
11898
int test (int i, double x);
 
11899
struct s1 {int (*f) (int a);};
 
11900
struct s2 {int (*f) (double a);};
 
11901
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11902
int argc;
 
11903
char **argv;
 
11904
int
 
11905
main ()
 
11906
{
 
11907
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11908
  ;
 
11909
  return 0;
 
11910
}
 
11911
_ACEOF
 
11912
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
11913
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11914
do
 
11915
  CC="$ac_save_CC $ac_arg"
 
11916
  if ac_fn_c_try_compile "$LINENO"; then :
 
11917
  ac_cv_prog_cc_c89=$ac_arg
 
11918
fi
 
11919
rm -f core conftest.err conftest.$ac_objext
 
11920
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
11921
done
 
11922
rm -f conftest.$ac_ext
 
11923
CC=$ac_save_CC
 
11924
 
 
11925
fi
 
11926
# AC_CACHE_VAL
 
11927
case "x$ac_cv_prog_cc_c89" in
 
11928
  x)
 
11929
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
11930
$as_echo "none needed" >&6; } ;;
 
11931
  xno)
 
11932
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
11933
$as_echo "unsupported" >&6; } ;;
 
11934
  *)
 
11935
    CC="$CC $ac_cv_prog_cc_c89"
 
11936
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
11937
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
11938
esac
 
11939
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
11940
 
 
11941
fi
 
11942
 
 
11943
ac_ext=c
 
11944
ac_cpp='$CPP $CPPFLAGS'
 
11945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11948
 
 
11949
depcc="$CC"   am_compiler_list=
 
11950
 
 
11951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
11952
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
11953
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
11954
  $as_echo_n "(cached) " >&6
 
11955
else
 
11956
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
11957
  # We make a subdir and do the tests there.  Otherwise we can end up
 
11958
  # making bogus files that we don't know about and never remove.  For
 
11959
  # instance it was reported that on HP-UX the gcc test will end up
 
11960
  # making a dummy file named `D' -- because `-MD' means `put the output
 
11961
  # in D'.
 
11962
  rm -rf conftest.dir
 
11963
  mkdir conftest.dir
 
11964
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
11965
  # using a relative directory.
 
11966
  cp "$am_depcomp" conftest.dir
 
11967
  cd conftest.dir
 
11968
  # We will build objects and dependencies in a subdirectory because
 
11969
  # it helps to detect inapplicable dependency modes.  For instance
 
11970
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
11971
  # side effect of compilation, but ICC will put the dependencies in
 
11972
  # the current directory while Tru64 will put them in the object
 
11973
  # directory.
 
11974
  mkdir sub
 
11975
 
 
11976
  am_cv_CC_dependencies_compiler_type=none
 
11977
  if test "$am_compiler_list" = ""; then
 
11978
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
11979
  fi
 
11980
  am__universal=false
 
11981
  case " $depcc " in #(
 
11982
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
11983
     esac
 
11984
 
 
11985
  for depmode in $am_compiler_list; do
 
11986
    # Setup a source with many dependencies, because some compilers
 
11987
    # like to wrap large dependency lists on column 80 (with \), and
 
11988
    # we should not choose a depcomp mode which is confused by this.
 
11989
    #
 
11990
    # We need to recreate these files for each test, as the compiler may
 
11991
    # overwrite some of them when testing with obscure command lines.
 
11992
    # This happens at least with the AIX C compiler.
 
11993
    : > sub/conftest.c
 
11994
    for i in 1 2 3 4 5 6; do
 
11995
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
11996
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
11997
      # Solaris 8's {/usr,}/bin/sh.
 
11998
      touch sub/conftst$i.h
 
11999
    done
 
12000
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12001
 
 
12002
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12003
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12004
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12005
    # versions had trouble with output in subdirs
 
12006
    am__obj=sub/conftest.${OBJEXT-o}
 
12007
    am__minus_obj="-o $am__obj"
 
12008
    case $depmode in
 
12009
    gcc)
 
12010
      # This depmode causes a compiler race in universal mode.
 
12011
      test "$am__universal" = false || continue
 
12012
      ;;
 
12013
    nosideeffect)
 
12014
      # after this tag, mechanisms are not by side-effect, so they'll
 
12015
      # only be used when explicitly requested
 
12016
      if test "x$enable_dependency_tracking" = xyes; then
 
12017
        continue
 
12018
      else
 
12019
        break
 
12020
      fi
 
12021
      ;;
 
12022
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
12023
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12024
      # not run yet.  These depmodes are late enough in the game, and
 
12025
      # so weak that their functioning should not be impacted.
 
12026
      am__obj=conftest.${OBJEXT-o}
 
12027
      am__minus_obj=
 
12028
      ;;
 
12029
    none) break ;;
 
12030
    esac
 
12031
    if depmode=$depmode \
 
12032
       source=sub/conftest.c object=$am__obj \
 
12033
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12034
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12035
         >/dev/null 2>conftest.err &&
 
12036
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12037
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12038
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12039
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12040
      # icc doesn't choke on unknown options, it will just issue warnings
 
12041
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12042
      # that says an option was ignored or not supported.
 
12043
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12044
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12045
      # The diagnosis changed in icc 8.0:
 
12046
      #   icc: Command line remark: option '-MP' not supported
 
12047
      if (grep 'ignoring option' conftest.err ||
 
12048
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12049
        am_cv_CC_dependencies_compiler_type=$depmode
 
12050
        break
 
12051
      fi
 
12052
    fi
 
12053
  done
 
12054
 
 
12055
  cd ..
 
12056
  rm -rf conftest.dir
 
12057
else
 
12058
  am_cv_CC_dependencies_compiler_type=none
 
12059
fi
 
12060
 
 
12061
fi
 
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
12063
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
12064
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
12065
 
 
12066
 if
 
12067
  test "x$enable_dependency_tracking" != xno \
 
12068
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
12069
  am__fastdepCC_TRUE=
 
12070
  am__fastdepCC_FALSE='#'
 
12071
else
 
12072
  am__fastdepCC_TRUE='#'
 
12073
  am__fastdepCC_FALSE=
 
12074
fi
 
12075
 
 
12076
 
 
12077
ac_ext=cpp
 
12078
ac_cpp='$CXXCPP $CPPFLAGS'
 
12079
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12080
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12081
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12082
if test -z "$CXX"; then
 
12083
  if test -n "$CCC"; then
 
12084
    CXX=$CCC
 
12085
  else
 
12086
    if test -n "$ac_tool_prefix"; then
 
12087
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12088
  do
 
12089
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
12090
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
12091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12092
$as_echo_n "checking for $ac_word... " >&6; }
 
12093
if ${ac_cv_prog_CXX+:} false; then :
 
12094
  $as_echo_n "(cached) " >&6
 
12095
else
 
12096
  if test -n "$CXX"; then
 
12097
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
12098
else
 
12099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12100
for as_dir in $PATH
 
12101
do
 
12102
  IFS=$as_save_IFS
 
12103
  test -z "$as_dir" && as_dir=.
 
12104
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12105
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12106
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
12107
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12108
    break 2
 
12109
  fi
 
12110
done
 
12111
  done
 
12112
IFS=$as_save_IFS
 
12113
 
 
12114
fi
 
12115
fi
 
12116
CXX=$ac_cv_prog_CXX
 
12117
if test -n "$CXX"; then
 
12118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
12119
$as_echo "$CXX" >&6; }
 
12120
else
 
12121
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12122
$as_echo "no" >&6; }
 
12123
fi
 
12124
 
 
12125
 
 
12126
    test -n "$CXX" && break
 
12127
  done
 
12128
fi
 
12129
if test -z "$CXX"; then
 
12130
  ac_ct_CXX=$CXX
 
12131
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12132
do
 
12133
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12134
set dummy $ac_prog; ac_word=$2
 
12135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12136
$as_echo_n "checking for $ac_word... " >&6; }
 
12137
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
12138
  $as_echo_n "(cached) " >&6
 
12139
else
 
12140
  if test -n "$ac_ct_CXX"; then
 
12141
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
12142
else
 
12143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12144
for as_dir in $PATH
 
12145
do
 
12146
  IFS=$as_save_IFS
 
12147
  test -z "$as_dir" && as_dir=.
 
12148
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12149
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12150
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
12151
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12152
    break 2
 
12153
  fi
 
12154
done
 
12155
  done
 
12156
IFS=$as_save_IFS
 
12157
 
 
12158
fi
 
12159
fi
 
12160
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
12161
if test -n "$ac_ct_CXX"; then
 
12162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
12163
$as_echo "$ac_ct_CXX" >&6; }
 
12164
else
 
12165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12166
$as_echo "no" >&6; }
 
12167
fi
 
12168
 
 
12169
 
 
12170
  test -n "$ac_ct_CXX" && break
 
12171
done
 
12172
 
 
12173
  if test "x$ac_ct_CXX" = x; then
 
12174
    CXX="g++"
 
12175
  else
 
12176
    case $cross_compiling:$ac_tool_warned in
 
12177
yes:)
 
12178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12180
ac_tool_warned=yes ;;
 
12181
esac
 
12182
    CXX=$ac_ct_CXX
 
12183
  fi
 
12184
fi
 
12185
 
 
12186
  fi
 
12187
fi
 
12188
# Provide some information about the compiler.
 
12189
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
12190
set X $ac_compile
 
12191
ac_compiler=$2
 
12192
for ac_option in --version -v -V -qversion; do
 
12193
  { { ac_try="$ac_compiler $ac_option >&5"
 
12194
case "(($ac_try" in
 
12195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12196
  *) ac_try_echo=$ac_try;;
 
12197
esac
 
12198
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
12199
$as_echo "$ac_try_echo"; } >&5
 
12200
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
12201
  ac_status=$?
 
12202
  if test -s conftest.err; then
 
12203
    sed '10a\
 
12204
... rest of stderr output deleted ...
 
12205
         10q' conftest.err >conftest.er1
 
12206
    cat conftest.er1 >&5
 
12207
  fi
 
12208
  rm -f conftest.er1 conftest.err
 
12209
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12210
  test $ac_status = 0; }
 
12211
done
 
12212
 
 
12213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
12214
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
12215
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
12216
  $as_echo_n "(cached) " >&6
 
12217
else
 
12218
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12219
/* end confdefs.h.  */
 
12220
 
 
12221
int
 
12222
main ()
 
12223
{
 
12224
#ifndef __GNUC__
 
12225
       choke me
 
12226
#endif
 
12227
 
 
12228
  ;
 
12229
  return 0;
 
12230
}
 
12231
_ACEOF
 
12232
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12233
  ac_compiler_gnu=yes
 
12234
else
 
12235
  ac_compiler_gnu=no
 
12236
fi
 
12237
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12238
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
12239
 
 
12240
fi
 
12241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
12242
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
12243
if test $ac_compiler_gnu = yes; then
 
12244
  GXX=yes
 
12245
else
 
12246
  GXX=
 
12247
fi
 
12248
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
12249
ac_save_CXXFLAGS=$CXXFLAGS
 
12250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
12251
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
12252
if ${ac_cv_prog_cxx_g+:} false; then :
 
12253
  $as_echo_n "(cached) " >&6
 
12254
else
 
12255
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
12256
   ac_cxx_werror_flag=yes
 
12257
   ac_cv_prog_cxx_g=no
 
12258
   CXXFLAGS="-g"
 
12259
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12260
/* end confdefs.h.  */
 
12261
 
 
12262
int
 
12263
main ()
 
12264
{
 
12265
 
 
12266
  ;
 
12267
  return 0;
 
12268
}
 
12269
_ACEOF
 
12270
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12271
  ac_cv_prog_cxx_g=yes
 
12272
else
 
12273
  CXXFLAGS=""
 
12274
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12275
/* end confdefs.h.  */
 
12276
 
 
12277
int
 
12278
main ()
 
12279
{
 
12280
 
 
12281
  ;
 
12282
  return 0;
 
12283
}
 
12284
_ACEOF
 
12285
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12286
 
 
12287
else
 
12288
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12289
         CXXFLAGS="-g"
 
12290
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12291
/* end confdefs.h.  */
 
12292
 
 
12293
int
 
12294
main ()
 
12295
{
 
12296
 
 
12297
  ;
 
12298
  return 0;
 
12299
}
 
12300
_ACEOF
 
12301
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12302
  ac_cv_prog_cxx_g=yes
 
12303
fi
 
12304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12305
fi
 
12306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12307
fi
 
12308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12309
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12310
fi
 
12311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
12312
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
12313
if test "$ac_test_CXXFLAGS" = set; then
 
12314
  CXXFLAGS=$ac_save_CXXFLAGS
 
12315
elif test $ac_cv_prog_cxx_g = yes; then
 
12316
  if test "$GXX" = yes; then
 
12317
    CXXFLAGS="-g -O2"
 
12318
  else
 
12319
    CXXFLAGS="-g"
 
12320
  fi
 
12321
else
 
12322
  if test "$GXX" = yes; then
 
12323
    CXXFLAGS="-O2"
 
12324
  else
 
12325
    CXXFLAGS=
 
12326
  fi
 
12327
fi
 
12328
ac_ext=c
 
12329
ac_cpp='$CPP $CPPFLAGS'
 
12330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12333
 
 
12334
depcc="$CXX"  am_compiler_list=
 
12335
 
 
12336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
12337
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
12338
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
12339
  $as_echo_n "(cached) " >&6
 
12340
else
 
12341
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
12342
  # We make a subdir and do the tests there.  Otherwise we can end up
 
12343
  # making bogus files that we don't know about and never remove.  For
 
12344
  # instance it was reported that on HP-UX the gcc test will end up
 
12345
  # making a dummy file named `D' -- because `-MD' means `put the output
 
12346
  # in D'.
 
12347
  rm -rf conftest.dir
 
12348
  mkdir conftest.dir
 
12349
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
12350
  # using a relative directory.
 
12351
  cp "$am_depcomp" conftest.dir
 
12352
  cd conftest.dir
 
12353
  # We will build objects and dependencies in a subdirectory because
 
12354
  # it helps to detect inapplicable dependency modes.  For instance
 
12355
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
12356
  # side effect of compilation, but ICC will put the dependencies in
 
12357
  # the current directory while Tru64 will put them in the object
 
12358
  # directory.
 
12359
  mkdir sub
 
12360
 
 
12361
  am_cv_CXX_dependencies_compiler_type=none
 
12362
  if test "$am_compiler_list" = ""; then
 
12363
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
12364
  fi
 
12365
  am__universal=false
 
12366
  case " $depcc " in #(
 
12367
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12368
     esac
 
12369
 
 
12370
  for depmode in $am_compiler_list; do
 
12371
    # Setup a source with many dependencies, because some compilers
 
12372
    # like to wrap large dependency lists on column 80 (with \), and
 
12373
    # we should not choose a depcomp mode which is confused by this.
 
12374
    #
 
12375
    # We need to recreate these files for each test, as the compiler may
 
12376
    # overwrite some of them when testing with obscure command lines.
 
12377
    # This happens at least with the AIX C compiler.
 
12378
    : > sub/conftest.c
 
12379
    for i in 1 2 3 4 5 6; do
 
12380
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
12381
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
12382
      # Solaris 8's {/usr,}/bin/sh.
 
12383
      touch sub/conftst$i.h
 
12384
    done
 
12385
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12386
 
 
12387
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12388
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12389
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12390
    # versions had trouble with output in subdirs
 
12391
    am__obj=sub/conftest.${OBJEXT-o}
 
12392
    am__minus_obj="-o $am__obj"
 
12393
    case $depmode in
 
12394
    gcc)
 
12395
      # This depmode causes a compiler race in universal mode.
 
12396
      test "$am__universal" = false || continue
 
12397
      ;;
 
12398
    nosideeffect)
 
12399
      # after this tag, mechanisms are not by side-effect, so they'll
 
12400
      # only be used when explicitly requested
 
12401
      if test "x$enable_dependency_tracking" = xyes; then
 
12402
        continue
 
12403
      else
 
12404
        break
 
12405
      fi
 
12406
      ;;
 
12407
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
12408
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12409
      # not run yet.  These depmodes are late enough in the game, and
 
12410
      # so weak that their functioning should not be impacted.
 
12411
      am__obj=conftest.${OBJEXT-o}
 
12412
      am__minus_obj=
 
12413
      ;;
 
12414
    none) break ;;
 
12415
    esac
 
12416
    if depmode=$depmode \
 
12417
       source=sub/conftest.c object=$am__obj \
 
12418
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12419
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12420
         >/dev/null 2>conftest.err &&
 
12421
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12422
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12423
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12424
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12425
      # icc doesn't choke on unknown options, it will just issue warnings
 
12426
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12427
      # that says an option was ignored or not supported.
 
12428
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12429
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12430
      # The diagnosis changed in icc 8.0:
 
12431
      #   icc: Command line remark: option '-MP' not supported
 
12432
      if (grep 'ignoring option' conftest.err ||
 
12433
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12434
        am_cv_CXX_dependencies_compiler_type=$depmode
 
12435
        break
 
12436
      fi
 
12437
    fi
 
12438
  done
 
12439
 
 
12440
  cd ..
 
12441
  rm -rf conftest.dir
 
12442
else
 
12443
  am_cv_CXX_dependencies_compiler_type=none
 
12444
fi
 
12445
 
 
12446
fi
 
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
12448
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
12449
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
12450
 
 
12451
 if
 
12452
  test "x$enable_dependency_tracking" != xno \
 
12453
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
12454
  am__fastdepCXX_TRUE=
 
12455
  am__fastdepCXX_FALSE='#'
 
12456
else
 
12457
  am__fastdepCXX_TRUE='#'
 
12458
  am__fastdepCXX_FALSE=
 
12459
fi
 
12460
 
 
12461
 
 
12462
 
 
12463
 
 
12464
func_stripname_cnf ()
 
12465
{
 
12466
  case ${2} in
 
12467
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
12468
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
12469
  esac
 
12470
} # func_stripname_cnf
 
12471
 
 
12472
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12473
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12474
    (test "X$CXX" != "Xg++"))) ; then
 
12475
  ac_ext=cpp
 
12476
ac_cpp='$CXXCPP $CPPFLAGS'
 
12477
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12478
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12479
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12481
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12482
if test -z "$CXXCPP"; then
 
12483
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12484
  $as_echo_n "(cached) " >&6
 
12485
else
 
12486
      # Double quotes because CXXCPP needs to be expanded
 
12487
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12488
    do
 
12489
      ac_preproc_ok=false
 
12490
for ac_cxx_preproc_warn_flag in '' yes
 
12491
do
 
12492
  # Use a header file that comes with gcc, so configuring glibc
 
12493
  # with a fresh cross-compiler works.
 
12494
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12495
  # <limits.h> exists even on freestanding compilers.
 
12496
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12497
  # not just through cpp. "Syntax error" is here to catch this case.
 
12498
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12499
/* end confdefs.h.  */
 
12500
#ifdef __STDC__
 
12501
# include <limits.h>
 
12502
#else
 
12503
# include <assert.h>
 
12504
#endif
 
12505
                     Syntax error
 
12506
_ACEOF
 
12507
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12508
 
 
12509
else
 
12510
  # Broken: fails on valid input.
 
12511
continue
 
12512
fi
 
12513
rm -f conftest.err conftest.i conftest.$ac_ext
 
12514
 
 
12515
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12516
  # can be detected and how.
 
12517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12518
/* end confdefs.h.  */
 
12519
#include <ac_nonexistent.h>
 
12520
_ACEOF
 
12521
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12522
  # Broken: success on invalid input.
 
12523
continue
 
12524
else
 
12525
  # Passes both tests.
 
12526
ac_preproc_ok=:
 
12527
break
 
12528
fi
 
12529
rm -f conftest.err conftest.i conftest.$ac_ext
 
12530
 
 
12531
done
 
12532
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12533
rm -f conftest.i conftest.err conftest.$ac_ext
 
12534
if $ac_preproc_ok; then :
 
12535
  break
 
12536
fi
 
12537
 
 
12538
    done
 
12539
    ac_cv_prog_CXXCPP=$CXXCPP
 
12540
 
 
12541
fi
 
12542
  CXXCPP=$ac_cv_prog_CXXCPP
 
12543
else
 
12544
  ac_cv_prog_CXXCPP=$CXXCPP
 
12545
fi
 
12546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12547
$as_echo "$CXXCPP" >&6; }
 
12548
ac_preproc_ok=false
 
12549
for ac_cxx_preproc_warn_flag in '' yes
 
12550
do
 
12551
  # Use a header file that comes with gcc, so configuring glibc
 
12552
  # with a fresh cross-compiler works.
 
12553
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12554
  # <limits.h> exists even on freestanding compilers.
 
12555
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12556
  # not just through cpp. "Syntax error" is here to catch this case.
 
12557
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12558
/* end confdefs.h.  */
 
12559
#ifdef __STDC__
 
12560
# include <limits.h>
 
12561
#else
 
12562
# include <assert.h>
 
12563
#endif
 
12564
                     Syntax error
 
12565
_ACEOF
 
12566
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12567
 
 
12568
else
 
12569
  # Broken: fails on valid input.
 
12570
continue
 
12571
fi
 
12572
rm -f conftest.err conftest.i conftest.$ac_ext
 
12573
 
 
12574
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12575
  # can be detected and how.
 
12576
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12577
/* end confdefs.h.  */
 
12578
#include <ac_nonexistent.h>
 
12579
_ACEOF
 
12580
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12581
  # Broken: success on invalid input.
 
12582
continue
 
12583
else
 
12584
  # Passes both tests.
 
12585
ac_preproc_ok=:
 
12586
break
 
12587
fi
 
12588
rm -f conftest.err conftest.i conftest.$ac_ext
 
12589
 
 
12590
done
 
12591
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12592
rm -f conftest.i conftest.err conftest.$ac_ext
 
12593
if $ac_preproc_ok; then :
 
12594
 
 
12595
else
 
12596
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12598
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12599
See \`config.log' for more details" "$LINENO" 5; }
 
12600
fi
 
12601
 
 
12602
ac_ext=c
 
12603
ac_cpp='$CPP $CPPFLAGS'
 
12604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12607
 
 
12608
else
 
12609
  _lt_caught_CXX_error=yes
 
12610
fi
 
12611
 
 
12612
ac_ext=cpp
 
12613
ac_cpp='$CXXCPP $CPPFLAGS'
 
12614
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12615
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12616
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12617
 
 
12618
archive_cmds_need_lc_CXX=no
 
12619
allow_undefined_flag_CXX=
 
12620
always_export_symbols_CXX=no
 
12621
archive_expsym_cmds_CXX=
 
12622
compiler_needs_object_CXX=no
 
12623
export_dynamic_flag_spec_CXX=
 
12624
hardcode_direct_CXX=no
 
12625
hardcode_direct_absolute_CXX=no
 
12626
hardcode_libdir_flag_spec_CXX=
 
12627
hardcode_libdir_separator_CXX=
 
12628
hardcode_minus_L_CXX=no
 
12629
hardcode_shlibpath_var_CXX=unsupported
 
12630
hardcode_automatic_CXX=no
 
12631
inherit_rpath_CXX=no
 
12632
module_cmds_CXX=
 
12633
module_expsym_cmds_CXX=
 
12634
link_all_deplibs_CXX=unknown
 
12635
old_archive_cmds_CXX=$old_archive_cmds
 
12636
reload_flag_CXX=$reload_flag
 
12637
reload_cmds_CXX=$reload_cmds
 
12638
no_undefined_flag_CXX=
 
12639
whole_archive_flag_spec_CXX=
 
12640
enable_shared_with_static_runtimes_CXX=no
 
12641
 
 
12642
# Source file extension for C++ test sources.
 
12643
ac_ext=cpp
 
12644
 
 
12645
# Object file extension for compiled C++ test sources.
 
12646
objext=o
 
12647
objext_CXX=$objext
 
12648
 
 
12649
# No sense in running all these tests if we already determined that
 
12650
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12651
# are currently assumed to apply to all compilers on this platform,
 
12652
# and will be corrupted by setting them based on a non-working compiler.
 
12653
if test "$_lt_caught_CXX_error" != yes; then
 
12654
  # Code to be used in simple compile tests
 
12655
  lt_simple_compile_test_code="int some_variable = 0;"
 
12656
 
 
12657
  # Code to be used in simple link tests
 
12658
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12659
 
 
12660
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12661
 
 
12662
 
 
12663
 
 
12664
 
 
12665
 
 
12666
 
 
12667
# If no C compiler was specified, use CC.
 
12668
LTCC=${LTCC-"$CC"}
 
12669
 
 
12670
# If no C compiler flags were specified, use CFLAGS.
 
12671
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12672
 
 
12673
# Allow CC to be a program name with arguments.
 
12674
compiler=$CC
 
12675
 
 
12676
 
 
12677
  # save warnings/boilerplate of simple test code
 
12678
  ac_outfile=conftest.$ac_objext
 
12679
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12680
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12681
_lt_compiler_boilerplate=`cat conftest.err`
 
12682
$RM conftest*
 
12683
 
 
12684
  ac_outfile=conftest.$ac_objext
 
12685
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12686
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12687
_lt_linker_boilerplate=`cat conftest.err`
 
12688
$RM -r conftest*
 
12689
 
 
12690
 
 
12691
  # Allow CC to be a program name with arguments.
 
12692
  lt_save_CC=$CC
 
12693
  lt_save_CFLAGS=$CFLAGS
 
12694
  lt_save_LD=$LD
 
12695
  lt_save_GCC=$GCC
 
12696
  GCC=$GXX
 
12697
  lt_save_with_gnu_ld=$with_gnu_ld
 
12698
  lt_save_path_LD=$lt_cv_path_LD
 
12699
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12700
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12701
  else
 
12702
    $as_unset lt_cv_prog_gnu_ld
 
12703
  fi
 
12704
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12705
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12706
  else
 
12707
    $as_unset lt_cv_path_LD
 
12708
  fi
 
12709
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12710
  CC=${CXX-"c++"}
 
12711
  CFLAGS=$CXXFLAGS
 
12712
  compiler=$CC
 
12713
  compiler_CXX=$CC
 
12714
  for cc_temp in $compiler""; do
 
12715
  case $cc_temp in
 
12716
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12717
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12718
    \-*) ;;
 
12719
    *) break;;
 
12720
  esac
 
12721
done
 
12722
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12723
 
 
12724
 
 
12725
  if test -n "$compiler"; then
 
12726
    # We don't want -fno-exception when compiling C++ code, so set the
 
12727
    # no_builtin_flag separately
 
12728
    if test "$GXX" = yes; then
 
12729
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12730
    else
 
12731
      lt_prog_compiler_no_builtin_flag_CXX=
 
12732
    fi
 
12733
 
 
12734
    if test "$GXX" = yes; then
 
12735
      # Set up default GNU C++ configuration
 
12736
 
 
12737
 
 
12738
 
 
12739
# Check whether --with-gnu-ld was given.
 
12740
if test "${with_gnu_ld+set}" = set; then :
 
12741
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12742
else
 
12743
  with_gnu_ld=no
 
12744
fi
 
12745
 
 
12746
ac_prog=ld
 
12747
if test "$GCC" = yes; then
 
12748
  # Check if gcc -print-prog-name=ld gives a path.
 
12749
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12750
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12751
  case $host in
 
12752
  *-*-mingw*)
 
12753
    # gcc leaves a trailing carriage return which upsets mingw
 
12754
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12755
  *)
 
12756
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12757
  esac
 
12758
  case $ac_prog in
 
12759
    # Accept absolute paths.
 
12760
    [\\/]* | ?:[\\/]*)
 
12761
      re_direlt='/[^/][^/]*/\.\./'
 
12762
      # Canonicalize the pathname of ld
 
12763
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12764
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12765
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12766
      done
 
12767
      test -z "$LD" && LD="$ac_prog"
 
12768
      ;;
 
12769
  "")
 
12770
    # If it fails, then pretend we aren't using GCC.
 
12771
    ac_prog=ld
 
12772
    ;;
 
12773
  *)
 
12774
    # If it is relative, then search for the first ld in PATH.
 
12775
    with_gnu_ld=unknown
 
12776
    ;;
 
12777
  esac
 
12778
elif test "$with_gnu_ld" = yes; then
 
12779
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12780
$as_echo_n "checking for GNU ld... " >&6; }
 
12781
else
 
12782
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12783
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12784
fi
 
12785
if ${lt_cv_path_LD+:} false; then :
 
12786
  $as_echo_n "(cached) " >&6
 
12787
else
 
12788
  if test -z "$LD"; then
 
12789
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12790
  for ac_dir in $PATH; do
 
12791
    IFS="$lt_save_ifs"
 
12792
    test -z "$ac_dir" && ac_dir=.
 
12793
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12794
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12795
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12796
      # but apparently some variants of GNU ld only accept -v.
 
12797
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12798
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12799
      *GNU* | *'with BFD'*)
 
12800
        test "$with_gnu_ld" != no && break
 
12801
        ;;
 
12802
      *)
 
12803
        test "$with_gnu_ld" != yes && break
 
12804
        ;;
 
12805
      esac
 
12806
    fi
 
12807
  done
 
12808
  IFS="$lt_save_ifs"
 
12809
else
 
12810
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12811
fi
 
12812
fi
 
12813
 
 
12814
LD="$lt_cv_path_LD"
 
12815
if test -n "$LD"; then
 
12816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12817
$as_echo "$LD" >&6; }
 
12818
else
 
12819
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12820
$as_echo "no" >&6; }
 
12821
fi
 
12822
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12824
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12825
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12826
  $as_echo_n "(cached) " >&6
 
12827
else
 
12828
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12829
case `$LD -v 2>&1 </dev/null` in
 
12830
*GNU* | *'with BFD'*)
 
12831
  lt_cv_prog_gnu_ld=yes
 
12832
  ;;
 
12833
*)
 
12834
  lt_cv_prog_gnu_ld=no
 
12835
  ;;
 
12836
esac
 
12837
fi
 
12838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12839
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12840
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12841
 
 
12842
 
 
12843
 
 
12844
 
 
12845
 
 
12846
 
 
12847
 
 
12848
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12849
      # archiving commands below assume that GNU ld is being used.
 
12850
      if test "$with_gnu_ld" = yes; then
 
12851
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12852
        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'
 
12853
 
 
12854
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12855
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12856
 
 
12857
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12858
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12859
        #     investigate it a little bit more. (MM)
 
12860
        wlarc='${wl}'
 
12861
 
 
12862
        # ancient GNU ld didn't support --whole-archive et. al.
 
12863
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12864
          $GREP 'no-whole-archive' > /dev/null; then
 
12865
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12866
        else
 
12867
          whole_archive_flag_spec_CXX=
 
12868
        fi
 
12869
      else
 
12870
        with_gnu_ld=no
 
12871
        wlarc=
 
12872
 
 
12873
        # A generic and very simple default shared library creation
 
12874
        # command for GNU C++ for the case where it uses the native
 
12875
        # linker, instead of GNU ld.  If possible, this setting should
 
12876
        # overridden to take advantage of the native linker features on
 
12877
        # the platform it is being used on.
 
12878
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12879
      fi
 
12880
 
 
12881
      # Commands to make compiler produce verbose output that lists
 
12882
      # what "hidden" libraries, object files and flags are used when
 
12883
      # linking a shared library.
 
12884
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12885
 
 
12886
    else
 
12887
      GXX=no
 
12888
      with_gnu_ld=no
 
12889
      wlarc=
 
12890
    fi
 
12891
 
 
12892
    # PORTME: fill in a description of your system's C++ link characteristics
 
12893
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12894
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12895
    ld_shlibs_CXX=yes
 
12896
    case $host_os in
 
12897
      aix3*)
 
12898
        # FIXME: insert proper C++ library support
 
12899
        ld_shlibs_CXX=no
 
12900
        ;;
 
12901
      aix[4-9]*)
 
12902
        if test "$host_cpu" = ia64; then
 
12903
          # On IA64, the linker does run time linking by default, so we don't
 
12904
          # have to do anything special.
 
12905
          aix_use_runtimelinking=no
 
12906
          exp_sym_flag='-Bexport'
 
12907
          no_entry_flag=""
 
12908
        else
 
12909
          aix_use_runtimelinking=no
 
12910
 
 
12911
          # Test if we are trying to use run time linking or normal
 
12912
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12913
          # need to do runtime linking.
 
12914
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12915
            for ld_flag in $LDFLAGS; do
 
12916
              case $ld_flag in
 
12917
              *-brtl*)
 
12918
                aix_use_runtimelinking=yes
 
12919
                break
 
12920
                ;;
 
12921
              esac
 
12922
            done
 
12923
            ;;
 
12924
          esac
 
12925
 
 
12926
          exp_sym_flag='-bexport'
 
12927
          no_entry_flag='-bnoentry'
 
12928
        fi
 
12929
 
 
12930
        # When large executables or shared objects are built, AIX ld can
 
12931
        # have problems creating the table of contents.  If linking a library
 
12932
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12933
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12934
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12935
 
 
12936
        archive_cmds_CXX=''
 
12937
        hardcode_direct_CXX=yes
 
12938
        hardcode_direct_absolute_CXX=yes
 
12939
        hardcode_libdir_separator_CXX=':'
 
12940
        link_all_deplibs_CXX=yes
 
12941
        file_list_spec_CXX='${wl}-f,'
 
12942
 
 
12943
        if test "$GXX" = yes; then
 
12944
          case $host_os in aix4.[012]|aix4.[012].*)
 
12945
          # We only want to do this on AIX 4.2 and lower, the check
 
12946
          # below for broken collect2 doesn't work under 4.3+
 
12947
          collect2name=`${CC} -print-prog-name=collect2`
 
12948
          if test -f "$collect2name" &&
 
12949
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12950
          then
 
12951
            # We have reworked collect2
 
12952
            :
 
12953
          else
 
12954
            # We have old collect2
 
12955
            hardcode_direct_CXX=unsupported
 
12956
            # It fails to find uninstalled libraries when the uninstalled
 
12957
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12958
            # to unsupported forces relinking
 
12959
            hardcode_minus_L_CXX=yes
 
12960
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12961
            hardcode_libdir_separator_CXX=
 
12962
          fi
 
12963
          esac
 
12964
          shared_flag='-shared'
 
12965
          if test "$aix_use_runtimelinking" = yes; then
 
12966
            shared_flag="$shared_flag "'${wl}-G'
 
12967
          fi
 
12968
        else
 
12969
          # not using gcc
 
12970
          if test "$host_cpu" = ia64; then
 
12971
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12972
          # chokes on -Wl,-G. The following line is correct:
 
12973
          shared_flag='-G'
 
12974
          else
 
12975
            if test "$aix_use_runtimelinking" = yes; then
 
12976
              shared_flag='${wl}-G'
 
12977
            else
 
12978
              shared_flag='${wl}-bM:SRE'
 
12979
            fi
 
12980
          fi
 
12981
        fi
 
12982
 
 
12983
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12984
        # It seems that -bexpall does not export symbols beginning with
 
12985
        # underscore (_), so it is better to generate a list of symbols to
 
12986
        # export.
 
12987
        always_export_symbols_CXX=yes
 
12988
        if test "$aix_use_runtimelinking" = yes; then
 
12989
          # Warning - without using the other runtime loading flags (-brtl),
 
12990
          # -berok will link without error, but may produce a broken library.
 
12991
          allow_undefined_flag_CXX='-berok'
 
12992
          # Determine the default libpath from the value encoded in an empty
 
12993
          # executable.
 
12994
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12995
  aix_libpath=$lt_cv_aix_libpath
 
12996
else
 
12997
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12998
  $as_echo_n "(cached) " >&6
 
12999
else
 
13000
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13001
/* end confdefs.h.  */
 
13002
 
 
13003
int
 
13004
main ()
 
13005
{
 
13006
 
 
13007
  ;
 
13008
  return 0;
 
13009
}
 
13010
_ACEOF
 
13011
if ac_fn_cxx_try_link "$LINENO"; then :
 
13012
 
 
13013
  lt_aix_libpath_sed='
 
13014
      /Import File Strings/,/^$/ {
 
13015
          /^0/ {
 
13016
              s/^0  *\([^ ]*\) *$/\1/
 
13017
              p
 
13018
          }
 
13019
      }'
 
13020
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13021
  # Check for a 64-bit object if we didn't find anything.
 
13022
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13023
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13024
  fi
 
13025
fi
 
13026
rm -f core conftest.err conftest.$ac_objext \
 
13027
    conftest$ac_exeext conftest.$ac_ext
 
13028
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13029
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13030
  fi
 
13031
 
 
13032
fi
 
13033
 
 
13034
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13035
fi
 
13036
 
 
13037
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13038
 
 
13039
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13040
        else
 
13041
          if test "$host_cpu" = ia64; then
 
13042
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13043
            allow_undefined_flag_CXX="-z nodefs"
 
13044
            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"
 
13045
          else
 
13046
            # Determine the default libpath from the value encoded in an
 
13047
            # empty executable.
 
13048
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13049
  aix_libpath=$lt_cv_aix_libpath
 
13050
else
 
13051
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13052
  $as_echo_n "(cached) " >&6
 
13053
else
 
13054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13055
/* end confdefs.h.  */
 
13056
 
 
13057
int
 
13058
main ()
 
13059
{
 
13060
 
 
13061
  ;
 
13062
  return 0;
 
13063
}
 
13064
_ACEOF
 
13065
if ac_fn_cxx_try_link "$LINENO"; then :
 
13066
 
 
13067
  lt_aix_libpath_sed='
 
13068
      /Import File Strings/,/^$/ {
 
13069
          /^0/ {
 
13070
              s/^0  *\([^ ]*\) *$/\1/
 
13071
              p
 
13072
          }
 
13073
      }'
 
13074
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13075
  # Check for a 64-bit object if we didn't find anything.
 
13076
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13077
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13078
  fi
 
13079
fi
 
13080
rm -f core conftest.err conftest.$ac_objext \
 
13081
    conftest$ac_exeext conftest.$ac_ext
 
13082
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13083
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13084
  fi
 
13085
 
 
13086
fi
 
13087
 
 
13088
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13089
fi
 
13090
 
 
13091
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13092
            # Warning - without using the other run time loading flags,
 
13093
            # -berok will link without error, but may produce a broken library.
 
13094
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13095
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13096
            if test "$with_gnu_ld" = yes; then
 
13097
              # We only use this code for GNU lds that support --whole-archive.
 
13098
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13099
            else
 
13100
              # Exported symbols can be pulled into shared objects from archives
 
13101
              whole_archive_flag_spec_CXX='$convenience'
 
13102
            fi
 
13103
            archive_cmds_need_lc_CXX=yes
 
13104
            # This is similar to how AIX traditionally builds its shared
 
13105
            # libraries.
 
13106
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13107
          fi
 
13108
        fi
 
13109
        ;;
 
13110
 
 
13111
      beos*)
 
13112
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13113
          allow_undefined_flag_CXX=unsupported
 
13114
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13115
          # support --undefined.  This deserves some investigation.  FIXME
 
13116
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13117
        else
 
13118
          ld_shlibs_CXX=no
 
13119
        fi
 
13120
        ;;
 
13121
 
 
13122
      chorus*)
 
13123
        case $cc_basename in
 
13124
          *)
 
13125
          # FIXME: insert proper C++ library support
 
13126
          ld_shlibs_CXX=no
 
13127
          ;;
 
13128
        esac
 
13129
        ;;
 
13130
 
 
13131
      cygwin* | mingw* | pw32* | cegcc*)
 
13132
        case $GXX,$cc_basename in
 
13133
        ,cl* | no,cl*)
 
13134
          # Native MSVC
 
13135
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13136
          # no search path for DLLs.
 
13137
          hardcode_libdir_flag_spec_CXX=' '
 
13138
          allow_undefined_flag_CXX=unsupported
 
13139
          always_export_symbols_CXX=yes
 
13140
          file_list_spec_CXX='@'
 
13141
          # Tell ltmain to make .lib files, not .a files.
 
13142
          libext=lib
 
13143
          # Tell ltmain to make .dll files, not .so files.
 
13144
          shrext_cmds=".dll"
 
13145
          # FIXME: Setting linknames here is a bad hack.
 
13146
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
13147
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13148
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
13149
            else
 
13150
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
13151
            fi~
 
13152
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
13153
            linknames='
 
13154
          # The linker will not automatically build a static lib if we build a DLL.
 
13155
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
13156
          enable_shared_with_static_runtimes_CXX=yes
 
13157
          # Don't use ranlib
 
13158
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
13159
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
13160
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
13161
            case $lt_outputfile in
 
13162
              *.exe|*.EXE) ;;
 
13163
              *)
 
13164
                lt_outputfile="$lt_outputfile.exe"
 
13165
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
13166
                ;;
 
13167
            esac~
 
13168
            func_to_tool_file "$lt_outputfile"~
 
13169
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
13170
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
13171
              $RM "$lt_outputfile.manifest";
 
13172
            fi'
 
13173
          ;;
 
13174
        *)
 
13175
          # g++
 
13176
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13177
          # as there is no search path for DLLs.
 
13178
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13179
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
13180
          allow_undefined_flag_CXX=unsupported
 
13181
          always_export_symbols_CXX=no
 
13182
          enable_shared_with_static_runtimes_CXX=yes
 
13183
 
 
13184
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13185
            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'
 
13186
            # If the export-symbols file already is a .def file (1st line
 
13187
            # is EXPORTS), use it as is; otherwise, prepend...
 
13188
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13189
              cp $export_symbols $output_objdir/$soname.def;
 
13190
            else
 
13191
              echo EXPORTS > $output_objdir/$soname.def;
 
13192
              cat $export_symbols >> $output_objdir/$soname.def;
 
13193
            fi~
 
13194
            $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'
 
13195
          else
 
13196
            ld_shlibs_CXX=no
 
13197
          fi
 
13198
          ;;
 
13199
        esac
 
13200
        ;;
 
13201
      darwin* | rhapsody*)
 
13202
 
 
13203
 
 
13204
  archive_cmds_need_lc_CXX=no
 
13205
  hardcode_direct_CXX=no
 
13206
  hardcode_automatic_CXX=yes
 
13207
  hardcode_shlibpath_var_CXX=unsupported
 
13208
  if test "$lt_cv_ld_force_load" = "yes"; then
 
13209
    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\"`'
 
13210
 
 
13211
  else
 
13212
    whole_archive_flag_spec_CXX=''
 
13213
  fi
 
13214
  link_all_deplibs_CXX=yes
 
13215
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13216
  case $cc_basename in
 
13217
     ifort*) _lt_dar_can_shared=yes ;;
 
13218
     *) _lt_dar_can_shared=$GCC ;;
 
13219
  esac
 
13220
  if test "$_lt_dar_can_shared" = "yes"; then
 
13221
    output_verbose_link_cmd=func_echo_all
 
13222
    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}"
 
13223
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13224
    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}"
 
13225
    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}"
 
13226
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13227
      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}"
 
13228
      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}"
 
13229
    fi
 
13230
 
 
13231
  else
 
13232
  ld_shlibs_CXX=no
 
13233
  fi
 
13234
 
 
13235
        ;;
 
13236
 
 
13237
      dgux*)
 
13238
        case $cc_basename in
 
13239
          ec++*)
 
13240
            # FIXME: insert proper C++ library support
 
13241
            ld_shlibs_CXX=no
 
13242
            ;;
 
13243
          ghcx*)
 
13244
            # Green Hills C++ Compiler
 
13245
            # FIXME: insert proper C++ library support
 
13246
            ld_shlibs_CXX=no
 
13247
            ;;
 
13248
          *)
 
13249
            # FIXME: insert proper C++ library support
 
13250
            ld_shlibs_CXX=no
 
13251
            ;;
 
13252
        esac
 
13253
        ;;
 
13254
 
 
13255
      freebsd2.*)
 
13256
        # C++ shared libraries reported to be fairly broken before
 
13257
        # switch to ELF
 
13258
        ld_shlibs_CXX=no
 
13259
        ;;
 
13260
 
 
13261
      freebsd-elf*)
 
13262
        archive_cmds_need_lc_CXX=no
 
13263
        ;;
 
13264
 
 
13265
      freebsd* | dragonfly*)
 
13266
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13267
        # conventions
 
13268
        ld_shlibs_CXX=yes
 
13269
        ;;
 
13270
 
 
13271
      gnu*)
 
13272
        ;;
 
13273
 
 
13274
      haiku*)
 
13275
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13276
        link_all_deplibs_CXX=yes
 
13277
        ;;
 
13278
 
 
13279
      hpux9*)
 
13280
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13281
        hardcode_libdir_separator_CXX=:
 
13282
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13283
        hardcode_direct_CXX=yes
 
13284
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13285
                                             # but as the default
 
13286
                                             # location of the library.
 
13287
 
 
13288
        case $cc_basename in
 
13289
          CC*)
 
13290
            # FIXME: insert proper C++ library support
 
13291
            ld_shlibs_CXX=no
 
13292
            ;;
 
13293
          aCC*)
 
13294
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13295
            # Commands to make compiler produce verbose output that lists
 
13296
            # what "hidden" libraries, object files and flags are used when
 
13297
            # linking a shared library.
 
13298
            #
 
13299
            # There doesn't appear to be a way to prevent this compiler from
 
13300
            # explicitly linking system object files so we need to strip them
 
13301
            # from the output so that they don't get included in the library
 
13302
            # dependencies.
 
13303
            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"'
 
13304
            ;;
 
13305
          *)
 
13306
            if test "$GXX" = yes; then
 
13307
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13308
            else
 
13309
              # FIXME: insert proper C++ library support
 
13310
              ld_shlibs_CXX=no
 
13311
            fi
 
13312
            ;;
 
13313
        esac
 
13314
        ;;
 
13315
 
 
13316
      hpux10*|hpux11*)
 
13317
        if test $with_gnu_ld = no; then
 
13318
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13319
          hardcode_libdir_separator_CXX=:
 
13320
 
 
13321
          case $host_cpu in
 
13322
            hppa*64*|ia64*)
 
13323
              ;;
 
13324
            *)
 
13325
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13326
              ;;
 
13327
          esac
 
13328
        fi
 
13329
        case $host_cpu in
 
13330
          hppa*64*|ia64*)
 
13331
            hardcode_direct_CXX=no
 
13332
            hardcode_shlibpath_var_CXX=no
 
13333
            ;;
 
13334
          *)
 
13335
            hardcode_direct_CXX=yes
 
13336
            hardcode_direct_absolute_CXX=yes
 
13337
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13338
                                                 # but as the default
 
13339
                                                 # location of the library.
 
13340
            ;;
 
13341
        esac
 
13342
 
 
13343
        case $cc_basename in
 
13344
          CC*)
 
13345
            # FIXME: insert proper C++ library support
 
13346
            ld_shlibs_CXX=no
 
13347
            ;;
 
13348
          aCC*)
 
13349
            case $host_cpu in
 
13350
              hppa*64*)
 
13351
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13352
                ;;
 
13353
              ia64*)
 
13354
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13355
                ;;
 
13356
              *)
 
13357
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13358
                ;;
 
13359
            esac
 
13360
            # Commands to make compiler produce verbose output that lists
 
13361
            # what "hidden" libraries, object files and flags are used when
 
13362
            # linking a shared library.
 
13363
            #
 
13364
            # There doesn't appear to be a way to prevent this compiler from
 
13365
            # explicitly linking system object files so we need to strip them
 
13366
            # from the output so that they don't get included in the library
 
13367
            # dependencies.
 
13368
            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"'
 
13369
            ;;
 
13370
          *)
 
13371
            if test "$GXX" = yes; then
 
13372
              if test $with_gnu_ld = no; then
 
13373
                case $host_cpu in
 
13374
                  hppa*64*)
 
13375
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13376
                    ;;
 
13377
                  ia64*)
 
13378
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13379
                    ;;
 
13380
                  *)
 
13381
                    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'
 
13382
                    ;;
 
13383
                esac
 
13384
              fi
 
13385
            else
 
13386
              # FIXME: insert proper C++ library support
 
13387
              ld_shlibs_CXX=no
 
13388
            fi
 
13389
            ;;
 
13390
        esac
 
13391
        ;;
 
13392
 
 
13393
      interix[3-9]*)
 
13394
        hardcode_direct_CXX=no
 
13395
        hardcode_shlibpath_var_CXX=no
 
13396
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13397
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13398
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13399
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13400
        # default) and relocated if they conflict, which is a slow very memory
 
13401
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13402
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13403
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13404
        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'
 
13405
        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'
 
13406
        ;;
 
13407
      irix5* | irix6*)
 
13408
        case $cc_basename in
 
13409
          CC*)
 
13410
            # SGI C++
 
13411
            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'
 
13412
 
 
13413
            # Archives containing C++ object files must be created using
 
13414
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13415
            # necessary to make sure instantiated templates are included
 
13416
            # in the archive.
 
13417
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13418
            ;;
 
13419
          *)
 
13420
            if test "$GXX" = yes; then
 
13421
              if test "$with_gnu_ld" = no; then
 
13422
                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'
 
13423
              else
 
13424
                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'
 
13425
              fi
 
13426
            fi
 
13427
            link_all_deplibs_CXX=yes
 
13428
            ;;
 
13429
        esac
 
13430
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13431
        hardcode_libdir_separator_CXX=:
 
13432
        inherit_rpath_CXX=yes
 
13433
        ;;
 
13434
 
 
13435
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13436
        case $cc_basename in
 
13437
          KCC*)
 
13438
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13439
 
 
13440
            # KCC will only create a shared library if the output file
 
13441
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13442
            # to its proper name (with version) after linking.
 
13443
            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'
 
13444
            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'
 
13445
            # Commands to make compiler produce verbose output that lists
 
13446
            # what "hidden" libraries, object files and flags are used when
 
13447
            # linking a shared library.
 
13448
            #
 
13449
            # There doesn't appear to be a way to prevent this compiler from
 
13450
            # explicitly linking system object files so we need to strip them
 
13451
            # from the output so that they don't get included in the library
 
13452
            # dependencies.
 
13453
            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"'
 
13454
 
 
13455
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13456
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13457
 
 
13458
            # Archives containing C++ object files must be created using
 
13459
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13460
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13461
            ;;
 
13462
          icpc* | ecpc* )
 
13463
            # Intel C++
 
13464
            with_gnu_ld=yes
 
13465
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13466
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13467
            # earlier do not add the objects themselves.
 
13468
            case `$CC -V 2>&1` in
 
13469
              *"Version 7."*)
 
13470
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13471
                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'
 
13472
                ;;
 
13473
              *)  # Version 8.0 or newer
 
13474
                tmp_idyn=
 
13475
                case $host_cpu in
 
13476
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13477
                esac
 
13478
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13479
                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'
 
13480
                ;;
 
13481
            esac
 
13482
            archive_cmds_need_lc_CXX=no
 
13483
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13484
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13485
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13486
            ;;
 
13487
          pgCC* | pgcpp*)
 
13488
            # Portland Group C++ compiler
 
13489
            case `$CC -V` in
 
13490
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13491
              prelink_cmds_CXX='tpldir=Template.dir~
 
13492
                rm -rf $tpldir~
 
13493
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13494
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13495
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13496
                rm -rf $tpldir~
 
13497
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13498
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13499
                $RANLIB $oldlib'
 
13500
              archive_cmds_CXX='tpldir=Template.dir~
 
13501
                rm -rf $tpldir~
 
13502
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13503
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13504
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13505
                rm -rf $tpldir~
 
13506
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13507
                $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'
 
13508
              ;;
 
13509
            *) # Version 6 and above use weak symbols
 
13510
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13511
              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'
 
13512
              ;;
 
13513
            esac
 
13514
 
 
13515
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13516
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13517
            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'
 
13518
            ;;
 
13519
          cxx*)
 
13520
            # Compaq C++
 
13521
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13522
            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'
 
13523
 
 
13524
            runpath_var=LD_RUN_PATH
 
13525
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13526
            hardcode_libdir_separator_CXX=:
 
13527
 
 
13528
            # Commands to make compiler produce verbose output that lists
 
13529
            # what "hidden" libraries, object files and flags are used when
 
13530
            # linking a shared library.
 
13531
            #
 
13532
            # There doesn't appear to be a way to prevent this compiler from
 
13533
            # explicitly linking system object files so we need to strip them
 
13534
            # from the output so that they don't get included in the library
 
13535
            # dependencies.
 
13536
            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'
 
13537
            ;;
 
13538
          xl* | mpixl* | bgxl*)
 
13539
            # IBM XL 8.0 on PPC, with GNU ld
 
13540
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13541
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13542
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13543
            if test "x$supports_anon_versioning" = xyes; then
 
13544
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13545
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13546
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13547
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13548
            fi
 
13549
            ;;
 
13550
          *)
 
13551
            case `$CC -V 2>&1 | sed 5q` in
 
13552
            *Sun\ C*)
 
13553
              # Sun C++ 5.9
 
13554
              no_undefined_flag_CXX=' -zdefs'
 
13555
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13556
              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'
 
13557
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13558
              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'
 
13559
              compiler_needs_object_CXX=yes
 
13560
 
 
13561
              # Not sure whether something based on
 
13562
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13563
              # would be better.
 
13564
              output_verbose_link_cmd='func_echo_all'
 
13565
 
 
13566
              # Archives containing C++ object files must be created using
 
13567
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13568
              # necessary to make sure instantiated templates are included
 
13569
              # in the archive.
 
13570
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13571
              ;;
 
13572
            esac
 
13573
            ;;
 
13574
        esac
 
13575
        ;;
 
13576
 
 
13577
      lynxos*)
 
13578
        # FIXME: insert proper C++ library support
 
13579
        ld_shlibs_CXX=no
 
13580
        ;;
 
13581
 
 
13582
      m88k*)
 
13583
        # FIXME: insert proper C++ library support
 
13584
        ld_shlibs_CXX=no
 
13585
        ;;
 
13586
 
 
13587
      mvs*)
 
13588
        case $cc_basename in
 
13589
          cxx*)
 
13590
            # FIXME: insert proper C++ library support
 
13591
            ld_shlibs_CXX=no
 
13592
            ;;
 
13593
          *)
 
13594
            # FIXME: insert proper C++ library support
 
13595
            ld_shlibs_CXX=no
 
13596
            ;;
 
13597
        esac
 
13598
        ;;
 
13599
 
 
13600
      netbsd*)
 
13601
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13602
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13603
          wlarc=
 
13604
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13605
          hardcode_direct_CXX=yes
 
13606
          hardcode_shlibpath_var_CXX=no
 
13607
        fi
 
13608
        # Workaround some broken pre-1.5 toolchains
 
13609
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13610
        ;;
 
13611
 
 
13612
      *nto* | *qnx*)
 
13613
        ld_shlibs_CXX=yes
 
13614
        ;;
 
13615
 
 
13616
      openbsd2*)
 
13617
        # C++ shared libraries are fairly broken
 
13618
        ld_shlibs_CXX=no
 
13619
        ;;
 
13620
 
 
13621
      openbsd*)
 
13622
        if test -f /usr/libexec/ld.so; then
 
13623
          hardcode_direct_CXX=yes
 
13624
          hardcode_shlibpath_var_CXX=no
 
13625
          hardcode_direct_absolute_CXX=yes
 
13626
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13627
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13628
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13629
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13630
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13631
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13632
          fi
 
13633
          output_verbose_link_cmd=func_echo_all
 
13634
        else
 
13635
          ld_shlibs_CXX=no
 
13636
        fi
 
13637
        ;;
 
13638
 
 
13639
      osf3* | osf4* | osf5*)
 
13640
        case $cc_basename in
 
13641
          KCC*)
 
13642
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13643
 
 
13644
            # KCC will only create a shared library if the output file
 
13645
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13646
            # to its proper name (with version) after linking.
 
13647
            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'
 
13648
 
 
13649
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13650
            hardcode_libdir_separator_CXX=:
 
13651
 
 
13652
            # Archives containing C++ object files must be created using
 
13653
            # the KAI C++ compiler.
 
13654
            case $host in
 
13655
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13656
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13657
            esac
 
13658
            ;;
 
13659
          RCC*)
 
13660
            # Rational C++ 2.4.1
 
13661
            # FIXME: insert proper C++ library support
 
13662
            ld_shlibs_CXX=no
 
13663
            ;;
 
13664
          cxx*)
 
13665
            case $host in
 
13666
              osf3*)
 
13667
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13668
                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'
 
13669
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13670
                ;;
 
13671
              *)
 
13672
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13673
                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'
 
13674
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13675
                  echo "-hidden">> $lib.exp~
 
13676
                  $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~
 
13677
                  $RM $lib.exp'
 
13678
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13679
                ;;
 
13680
            esac
 
13681
 
 
13682
            hardcode_libdir_separator_CXX=:
 
13683
 
 
13684
            # Commands to make compiler produce verbose output that lists
 
13685
            # what "hidden" libraries, object files and flags are used when
 
13686
            # linking a shared library.
 
13687
            #
 
13688
            # There doesn't appear to be a way to prevent this compiler from
 
13689
            # explicitly linking system object files so we need to strip them
 
13690
            # from the output so that they don't get included in the library
 
13691
            # dependencies.
 
13692
            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"'
 
13693
            ;;
 
13694
          *)
 
13695
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13696
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13697
              case $host in
 
13698
                osf3*)
 
13699
                  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'
 
13700
                  ;;
 
13701
                *)
 
13702
                  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'
 
13703
                  ;;
 
13704
              esac
 
13705
 
 
13706
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13707
              hardcode_libdir_separator_CXX=:
 
13708
 
 
13709
              # Commands to make compiler produce verbose output that lists
 
13710
              # what "hidden" libraries, object files and flags are used when
 
13711
              # linking a shared library.
 
13712
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13713
 
 
13714
            else
 
13715
              # FIXME: insert proper C++ library support
 
13716
              ld_shlibs_CXX=no
 
13717
            fi
 
13718
            ;;
 
13719
        esac
 
13720
        ;;
 
13721
 
 
13722
      psos*)
 
13723
        # FIXME: insert proper C++ library support
 
13724
        ld_shlibs_CXX=no
 
13725
        ;;
 
13726
 
 
13727
      sunos4*)
 
13728
        case $cc_basename in
 
13729
          CC*)
 
13730
            # Sun C++ 4.x
 
13731
            # FIXME: insert proper C++ library support
 
13732
            ld_shlibs_CXX=no
 
13733
            ;;
 
13734
          lcc*)
 
13735
            # Lucid
 
13736
            # FIXME: insert proper C++ library support
 
13737
            ld_shlibs_CXX=no
 
13738
            ;;
 
13739
          *)
 
13740
            # FIXME: insert proper C++ library support
 
13741
            ld_shlibs_CXX=no
 
13742
            ;;
 
13743
        esac
 
13744
        ;;
 
13745
 
 
13746
      solaris*)
 
13747
        case $cc_basename in
 
13748
          CC* | sunCC*)
 
13749
            # Sun C++ 4.2, 5.x and Centerline C++
 
13750
            archive_cmds_need_lc_CXX=yes
 
13751
            no_undefined_flag_CXX=' -zdefs'
 
13752
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13753
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13754
              $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'
 
13755
 
 
13756
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13757
            hardcode_shlibpath_var_CXX=no
 
13758
            case $host_os in
 
13759
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13760
              *)
 
13761
                # The compiler driver will combine and reorder linker options,
 
13762
                # but understands `-z linker_flag'.
 
13763
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13764
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13765
                ;;
 
13766
            esac
 
13767
            link_all_deplibs_CXX=yes
 
13768
 
 
13769
            output_verbose_link_cmd='func_echo_all'
 
13770
 
 
13771
            # Archives containing C++ object files must be created using
 
13772
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13773
            # necessary to make sure instantiated templates are included
 
13774
            # in the archive.
 
13775
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13776
            ;;
 
13777
          gcx*)
 
13778
            # Green Hills C++ Compiler
 
13779
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13780
 
 
13781
            # The C++ compiler must be used to create the archive.
 
13782
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13783
            ;;
 
13784
          *)
 
13785
            # GNU C++ compiler with Solaris linker
 
13786
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13787
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13788
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13789
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13790
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13791
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13792
 
 
13793
                # Commands to make compiler produce verbose output that lists
 
13794
                # what "hidden" libraries, object files and flags are used when
 
13795
                # linking a shared library.
 
13796
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13797
              else
 
13798
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13799
                # platform.
 
13800
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13801
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13802
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13803
 
 
13804
                # Commands to make compiler produce verbose output that lists
 
13805
                # what "hidden" libraries, object files and flags are used when
 
13806
                # linking a shared library.
 
13807
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13808
              fi
 
13809
 
 
13810
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13811
              case $host_os in
 
13812
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13813
                *)
 
13814
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13815
                  ;;
 
13816
              esac
 
13817
            fi
 
13818
            ;;
 
13819
        esac
 
13820
        ;;
 
13821
 
 
13822
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13823
      no_undefined_flag_CXX='${wl}-z,text'
 
13824
      archive_cmds_need_lc_CXX=no
 
13825
      hardcode_shlibpath_var_CXX=no
 
13826
      runpath_var='LD_RUN_PATH'
 
13827
 
 
13828
      case $cc_basename in
 
13829
        CC*)
 
13830
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13831
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13832
          ;;
 
13833
        *)
 
13834
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13835
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13836
          ;;
 
13837
      esac
 
13838
      ;;
 
13839
 
 
13840
      sysv5* | sco3.2v5* | sco5v6*)
 
13841
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13842
        # link with -lc, and that would cause any symbols used from libc to
 
13843
        # always be unresolved, which means just about no library would
 
13844
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13845
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13846
        # as -z defs.
 
13847
        no_undefined_flag_CXX='${wl}-z,text'
 
13848
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13849
        archive_cmds_need_lc_CXX=no
 
13850
        hardcode_shlibpath_var_CXX=no
 
13851
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13852
        hardcode_libdir_separator_CXX=':'
 
13853
        link_all_deplibs_CXX=yes
 
13854
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13855
        runpath_var='LD_RUN_PATH'
 
13856
 
 
13857
        case $cc_basename in
 
13858
          CC*)
 
13859
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13860
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13861
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13862
              '"$old_archive_cmds_CXX"
 
13863
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13864
              '"$reload_cmds_CXX"
 
13865
            ;;
 
13866
          *)
 
13867
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13868
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13869
            ;;
 
13870
        esac
 
13871
      ;;
 
13872
 
 
13873
      tandem*)
 
13874
        case $cc_basename in
 
13875
          NCC*)
 
13876
            # NonStop-UX NCC 3.20
 
13877
            # FIXME: insert proper C++ library support
 
13878
            ld_shlibs_CXX=no
 
13879
            ;;
 
13880
          *)
 
13881
            # FIXME: insert proper C++ library support
 
13882
            ld_shlibs_CXX=no
 
13883
            ;;
 
13884
        esac
 
13885
        ;;
 
13886
 
 
13887
      vxworks*)
 
13888
        # FIXME: insert proper C++ library support
 
13889
        ld_shlibs_CXX=no
 
13890
        ;;
 
13891
 
 
13892
      *)
 
13893
        # FIXME: insert proper C++ library support
 
13894
        ld_shlibs_CXX=no
 
13895
        ;;
 
13896
    esac
 
13897
 
 
13898
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13899
$as_echo "$ld_shlibs_CXX" >&6; }
 
13900
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13901
 
 
13902
    GCC_CXX="$GXX"
 
13903
    LD_CXX="$LD"
 
13904
 
 
13905
    ## CAVEAT EMPTOR:
 
13906
    ## There is no encapsulation within the following macros, do not change
 
13907
    ## the running order or otherwise move them around unless you know exactly
 
13908
    ## what you are doing...
 
13909
    # Dependencies to place before and after the object being linked:
 
13910
predep_objects_CXX=
 
13911
postdep_objects_CXX=
 
13912
predeps_CXX=
 
13913
postdeps_CXX=
 
13914
compiler_lib_search_path_CXX=
 
13915
 
 
13916
cat > conftest.$ac_ext <<_LT_EOF
 
13917
class Foo
 
13918
{
 
13919
public:
 
13920
  Foo (void) { a = 0; }
 
13921
private:
 
13922
  int a;
 
13923
};
 
13924
_LT_EOF
 
13925
 
 
13926
 
 
13927
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13928
case "$CC $CFLAGS " in #(
 
13929
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13930
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13931
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
13932
esac
 
13933
 
 
13934
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13935
  (eval $ac_compile) 2>&5
 
13936
  ac_status=$?
 
13937
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13938
  test $ac_status = 0; }; then
 
13939
  # Parse the compiler output and extract the necessary
 
13940
  # objects, libraries and library flags.
 
13941
 
 
13942
  # Sentinel used to keep track of whether or not we are before
 
13943
  # the conftest object file.
 
13944
  pre_test_object_deps_done=no
 
13945
 
 
13946
  for p in `eval "$output_verbose_link_cmd"`; do
 
13947
    case ${prev}${p} in
 
13948
 
 
13949
    -L* | -R* | -l*)
 
13950
       # Some compilers place space between "-{L,R}" and the path.
 
13951
       # Remove the space.
 
13952
       if test $p = "-L" ||
 
13953
          test $p = "-R"; then
 
13954
         prev=$p
 
13955
         continue
 
13956
       fi
 
13957
 
 
13958
       # Expand the sysroot to ease extracting the directories later.
 
13959
       if test -z "$prev"; then
 
13960
         case $p in
 
13961
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13962
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13963
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13964
         esac
 
13965
       fi
 
13966
       case $p in
 
13967
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13968
       esac
 
13969
       if test "$pre_test_object_deps_done" = no; then
 
13970
         case ${prev} in
 
13971
         -L | -R)
 
13972
           # Internal compiler library paths should come after those
 
13973
           # provided the user.  The postdeps already come after the
 
13974
           # user supplied libs so there is no need to process them.
 
13975
           if test -z "$compiler_lib_search_path_CXX"; then
 
13976
             compiler_lib_search_path_CXX="${prev}${p}"
 
13977
           else
 
13978
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13979
           fi
 
13980
           ;;
 
13981
         # The "-l" case would never come before the object being
 
13982
         # linked, so don't bother handling this case.
 
13983
         esac
 
13984
       else
 
13985
         if test -z "$postdeps_CXX"; then
 
13986
           postdeps_CXX="${prev}${p}"
 
13987
         else
 
13988
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13989
         fi
 
13990
       fi
 
13991
       prev=
 
13992
       ;;
 
13993
 
 
13994
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13995
    *.$objext)
 
13996
       # This assumes that the test object file only shows up
 
13997
       # once in the compiler output.
 
13998
       if test "$p" = "conftest.$objext"; then
 
13999
         pre_test_object_deps_done=yes
 
14000
         continue
 
14001
       fi
 
14002
 
 
14003
       if test "$pre_test_object_deps_done" = no; then
 
14004
         if test -z "$predep_objects_CXX"; then
 
14005
           predep_objects_CXX="$p"
 
14006
         else
 
14007
           predep_objects_CXX="$predep_objects_CXX $p"
 
14008
         fi
 
14009
       else
 
14010
         if test -z "$postdep_objects_CXX"; then
 
14011
           postdep_objects_CXX="$p"
 
14012
         else
 
14013
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14014
         fi
 
14015
       fi
 
14016
       ;;
 
14017
 
 
14018
    *) ;; # Ignore the rest.
 
14019
 
 
14020
    esac
 
14021
  done
 
14022
 
 
14023
  # Clean up.
 
14024
  rm -f a.out a.exe
 
14025
else
 
14026
  echo "libtool.m4: error: problem compiling CXX test program"
 
14027
fi
 
14028
 
 
14029
$RM -f confest.$objext
 
14030
CFLAGS=$_lt_libdeps_save_CFLAGS
 
14031
 
 
14032
# PORTME: override above test on systems where it is broken
 
14033
case $host_os in
 
14034
interix[3-9]*)
 
14035
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14036
  # hack all around it, let's just trust "g++" to DTRT.
 
14037
  predep_objects_CXX=
 
14038
  postdep_objects_CXX=
 
14039
  postdeps_CXX=
 
14040
  ;;
 
14041
 
 
14042
linux*)
 
14043
  case `$CC -V 2>&1 | sed 5q` in
 
14044
  *Sun\ C*)
 
14045
    # Sun C++ 5.9
 
14046
 
 
14047
    # The more standards-conforming stlport4 library is
 
14048
    # incompatible with the Cstd library. Avoid specifying
 
14049
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14050
    # -library=stlport4 depends on it.
 
14051
    case " $CXX $CXXFLAGS " in
 
14052
    *" -library=stlport4 "*)
 
14053
      solaris_use_stlport4=yes
 
14054
      ;;
 
14055
    esac
 
14056
 
 
14057
    if test "$solaris_use_stlport4" != yes; then
 
14058
      postdeps_CXX='-library=Cstd -library=Crun'
 
14059
    fi
 
14060
    ;;
 
14061
  esac
 
14062
  ;;
 
14063
 
 
14064
solaris*)
 
14065
  case $cc_basename in
 
14066
  CC* | sunCC*)
 
14067
    # The more standards-conforming stlport4 library is
 
14068
    # incompatible with the Cstd library. Avoid specifying
 
14069
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14070
    # -library=stlport4 depends on it.
 
14071
    case " $CXX $CXXFLAGS " in
 
14072
    *" -library=stlport4 "*)
 
14073
      solaris_use_stlport4=yes
 
14074
      ;;
 
14075
    esac
 
14076
 
 
14077
    # Adding this requires a known-good setup of shared libraries for
 
14078
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14079
    # archive will be linked into the output, leading to subtle bugs.
 
14080
    if test "$solaris_use_stlport4" != yes; then
 
14081
      postdeps_CXX='-library=Cstd -library=Crun'
 
14082
    fi
 
14083
    ;;
 
14084
  esac
 
14085
  ;;
 
14086
esac
 
14087
 
 
14088
 
 
14089
case " $postdeps_CXX " in
 
14090
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14091
esac
 
14092
 compiler_lib_search_dirs_CXX=
 
14093
if test -n "${compiler_lib_search_path_CXX}"; then
 
14094
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14095
fi
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
 
 
14101
 
 
14102
 
 
14103
 
 
14104
 
 
14105
 
 
14106
 
 
14107
 
 
14108
 
 
14109
 
 
14110
 
 
14111
 
 
14112
 
 
14113
 
 
14114
 
 
14115
 
 
14116
 
 
14117
 
 
14118
 
 
14119
 
 
14120
 
 
14121
 
 
14122
 
 
14123
 
 
14124
 
 
14125
 
 
14126
 
 
14127
    lt_prog_compiler_wl_CXX=
 
14128
lt_prog_compiler_pic_CXX=
 
14129
lt_prog_compiler_static_CXX=
 
14130
 
 
14131
 
 
14132
  # C++ specific cases for pic, static, wl, etc.
 
14133
  if test "$GXX" = yes; then
 
14134
    lt_prog_compiler_wl_CXX='-Wl,'
 
14135
    lt_prog_compiler_static_CXX='-static'
 
14136
 
 
14137
    case $host_os in
 
14138
    aix*)
 
14139
      # All AIX code is PIC.
 
14140
      if test "$host_cpu" = ia64; then
 
14141
        # AIX 5 now supports IA64 processor
 
14142
        lt_prog_compiler_static_CXX='-Bstatic'
 
14143
      fi
 
14144
      ;;
 
14145
 
 
14146
    amigaos*)
 
14147
      case $host_cpu in
 
14148
      powerpc)
 
14149
            # see comment about AmigaOS4 .so support
 
14150
            lt_prog_compiler_pic_CXX='-fPIC'
 
14151
        ;;
 
14152
      m68k)
 
14153
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14154
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14155
            # like `-m68040'.
 
14156
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14157
        ;;
 
14158
      esac
 
14159
      ;;
 
14160
 
 
14161
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14162
      # PIC is the default for these OSes.
 
14163
      ;;
 
14164
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14165
      # This hack is so that the source file can tell whether it is being
 
14166
      # built for inclusion in a dll (and should export symbols for example).
 
14167
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14168
      # (--disable-auto-import) libraries
 
14169
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14170
      ;;
 
14171
    darwin* | rhapsody*)
 
14172
      # PIC is the default on this platform
 
14173
      # Common symbols not allowed in MH_DYLIB files
 
14174
      lt_prog_compiler_pic_CXX='-fno-common'
 
14175
      ;;
 
14176
    *djgpp*)
 
14177
      # DJGPP does not support shared libraries at all
 
14178
      lt_prog_compiler_pic_CXX=
 
14179
      ;;
 
14180
    haiku*)
 
14181
      # PIC is the default for Haiku.
 
14182
      # The "-static" flag exists, but is broken.
 
14183
      lt_prog_compiler_static_CXX=
 
14184
      ;;
 
14185
    interix[3-9]*)
 
14186
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14187
      # Instead, we relocate shared libraries at runtime.
 
14188
      ;;
 
14189
    sysv4*MP*)
 
14190
      if test -d /usr/nec; then
 
14191
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14192
      fi
 
14193
      ;;
 
14194
    hpux*)
 
14195
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14196
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14197
      # sets the default TLS model and affects inlining.
 
14198
      case $host_cpu in
 
14199
      hppa*64*)
 
14200
        ;;
 
14201
      *)
 
14202
        lt_prog_compiler_pic_CXX='-fPIC'
 
14203
        ;;
 
14204
      esac
 
14205
      ;;
 
14206
    *qnx* | *nto*)
 
14207
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14208
      # it will coredump.
 
14209
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14210
      ;;
 
14211
    *)
 
14212
      lt_prog_compiler_pic_CXX='-fPIC'
 
14213
      ;;
 
14214
    esac
 
14215
  else
 
14216
    case $host_os in
 
14217
      aix[4-9]*)
 
14218
        # All AIX code is PIC.
 
14219
        if test "$host_cpu" = ia64; then
 
14220
          # AIX 5 now supports IA64 processor
 
14221
          lt_prog_compiler_static_CXX='-Bstatic'
 
14222
        else
 
14223
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14224
        fi
 
14225
        ;;
 
14226
      chorus*)
 
14227
        case $cc_basename in
 
14228
        cxch68*)
 
14229
          # Green Hills C++ Compiler
 
14230
          # _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"
 
14231
          ;;
 
14232
        esac
 
14233
        ;;
 
14234
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14235
        # This hack is so that the source file can tell whether it is being
 
14236
        # built for inclusion in a dll (and should export symbols for example).
 
14237
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14238
        ;;
 
14239
      dgux*)
 
14240
        case $cc_basename in
 
14241
          ec++*)
 
14242
            lt_prog_compiler_pic_CXX='-KPIC'
 
14243
            ;;
 
14244
          ghcx*)
 
14245
            # Green Hills C++ Compiler
 
14246
            lt_prog_compiler_pic_CXX='-pic'
 
14247
            ;;
 
14248
          *)
 
14249
            ;;
 
14250
        esac
 
14251
        ;;
 
14252
      freebsd* | dragonfly*)
 
14253
        # FreeBSD uses GNU C++
 
14254
        ;;
 
14255
      hpux9* | hpux10* | hpux11*)
 
14256
        case $cc_basename in
 
14257
          CC*)
 
14258
            lt_prog_compiler_wl_CXX='-Wl,'
 
14259
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14260
            if test "$host_cpu" != ia64; then
 
14261
              lt_prog_compiler_pic_CXX='+Z'
 
14262
            fi
 
14263
            ;;
 
14264
          aCC*)
 
14265
            lt_prog_compiler_wl_CXX='-Wl,'
 
14266
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14267
            case $host_cpu in
 
14268
            hppa*64*|ia64*)
 
14269
              # +Z the default
 
14270
              ;;
 
14271
            *)
 
14272
              lt_prog_compiler_pic_CXX='+Z'
 
14273
              ;;
 
14274
            esac
 
14275
            ;;
 
14276
          *)
 
14277
            ;;
 
14278
        esac
 
14279
        ;;
 
14280
      interix*)
 
14281
        # This is c89, which is MS Visual C++ (no shared libs)
 
14282
        # Anyone wants to do a port?
 
14283
        ;;
 
14284
      irix5* | irix6* | nonstopux*)
 
14285
        case $cc_basename in
 
14286
          CC*)
 
14287
            lt_prog_compiler_wl_CXX='-Wl,'
 
14288
            lt_prog_compiler_static_CXX='-non_shared'
 
14289
            # CC pic flag -KPIC is the default.
 
14290
            ;;
 
14291
          *)
 
14292
            ;;
 
14293
        esac
 
14294
        ;;
 
14295
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14296
        case $cc_basename in
 
14297
          KCC*)
 
14298
            # KAI C++ Compiler
 
14299
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14300
            lt_prog_compiler_pic_CXX='-fPIC'
 
14301
            ;;
 
14302
          ecpc* )
 
14303
            # old Intel C++ for x86_64 which still supported -KPIC.
 
14304
            lt_prog_compiler_wl_CXX='-Wl,'
 
14305
            lt_prog_compiler_pic_CXX='-KPIC'
 
14306
            lt_prog_compiler_static_CXX='-static'
 
14307
            ;;
 
14308
          icpc* )
 
14309
            # Intel C++, used to be incompatible with GCC.
 
14310
            # ICC 10 doesn't accept -KPIC any more.
 
14311
            lt_prog_compiler_wl_CXX='-Wl,'
 
14312
            lt_prog_compiler_pic_CXX='-fPIC'
 
14313
            lt_prog_compiler_static_CXX='-static'
 
14314
            ;;
 
14315
          pgCC* | pgcpp*)
 
14316
            # Portland Group C++ compiler
 
14317
            lt_prog_compiler_wl_CXX='-Wl,'
 
14318
            lt_prog_compiler_pic_CXX='-fpic'
 
14319
            lt_prog_compiler_static_CXX='-Bstatic'
 
14320
            ;;
 
14321
          cxx*)
 
14322
            # Compaq C++
 
14323
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14324
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14325
            lt_prog_compiler_pic_CXX=
 
14326
            lt_prog_compiler_static_CXX='-non_shared'
 
14327
            ;;
 
14328
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14329
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
14330
            lt_prog_compiler_wl_CXX='-Wl,'
 
14331
            lt_prog_compiler_pic_CXX='-qpic'
 
14332
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14333
            ;;
 
14334
          *)
 
14335
            case `$CC -V 2>&1 | sed 5q` in
 
14336
            *Sun\ C*)
 
14337
              # Sun C++ 5.9
 
14338
              lt_prog_compiler_pic_CXX='-KPIC'
 
14339
              lt_prog_compiler_static_CXX='-Bstatic'
 
14340
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14341
              ;;
 
14342
            esac
 
14343
            ;;
 
14344
        esac
 
14345
        ;;
 
14346
      lynxos*)
 
14347
        ;;
 
14348
      m88k*)
 
14349
        ;;
 
14350
      mvs*)
 
14351
        case $cc_basename in
 
14352
          cxx*)
 
14353
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14354
            ;;
 
14355
          *)
 
14356
            ;;
 
14357
        esac
 
14358
        ;;
 
14359
      netbsd* | netbsdelf*-gnu)
 
14360
        ;;
 
14361
      *qnx* | *nto*)
 
14362
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14363
        # it will coredump.
 
14364
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14365
        ;;
 
14366
      osf3* | osf4* | osf5*)
 
14367
        case $cc_basename in
 
14368
          KCC*)
 
14369
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14370
            ;;
 
14371
          RCC*)
 
14372
            # Rational C++ 2.4.1
 
14373
            lt_prog_compiler_pic_CXX='-pic'
 
14374
            ;;
 
14375
          cxx*)
 
14376
            # Digital/Compaq C++
 
14377
            lt_prog_compiler_wl_CXX='-Wl,'
 
14378
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14379
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14380
            lt_prog_compiler_pic_CXX=
 
14381
            lt_prog_compiler_static_CXX='-non_shared'
 
14382
            ;;
 
14383
          *)
 
14384
            ;;
 
14385
        esac
 
14386
        ;;
 
14387
      psos*)
 
14388
        ;;
 
14389
      solaris*)
 
14390
        case $cc_basename in
 
14391
          CC* | sunCC*)
 
14392
            # Sun C++ 4.2, 5.x and Centerline C++
 
14393
            lt_prog_compiler_pic_CXX='-KPIC'
 
14394
            lt_prog_compiler_static_CXX='-Bstatic'
 
14395
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14396
            ;;
 
14397
          gcx*)
 
14398
            # Green Hills C++ Compiler
 
14399
            lt_prog_compiler_pic_CXX='-PIC'
 
14400
            ;;
 
14401
          *)
 
14402
            ;;
 
14403
        esac
 
14404
        ;;
 
14405
      sunos4*)
 
14406
        case $cc_basename in
 
14407
          CC*)
 
14408
            # Sun C++ 4.x
 
14409
            lt_prog_compiler_pic_CXX='-pic'
 
14410
            lt_prog_compiler_static_CXX='-Bstatic'
 
14411
            ;;
 
14412
          lcc*)
 
14413
            # Lucid
 
14414
            lt_prog_compiler_pic_CXX='-pic'
 
14415
            ;;
 
14416
          *)
 
14417
            ;;
 
14418
        esac
 
14419
        ;;
 
14420
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14421
        case $cc_basename in
 
14422
          CC*)
 
14423
            lt_prog_compiler_wl_CXX='-Wl,'
 
14424
            lt_prog_compiler_pic_CXX='-KPIC'
 
14425
            lt_prog_compiler_static_CXX='-Bstatic'
 
14426
            ;;
 
14427
        esac
 
14428
        ;;
 
14429
      tandem*)
 
14430
        case $cc_basename in
 
14431
          NCC*)
 
14432
            # NonStop-UX NCC 3.20
 
14433
            lt_prog_compiler_pic_CXX='-KPIC'
 
14434
            ;;
 
14435
          *)
 
14436
            ;;
 
14437
        esac
 
14438
        ;;
 
14439
      vxworks*)
 
14440
        ;;
 
14441
      *)
 
14442
        lt_prog_compiler_can_build_shared_CXX=no
 
14443
        ;;
 
14444
    esac
 
14445
  fi
 
14446
 
 
14447
case $host_os in
 
14448
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14449
  *djgpp*)
 
14450
    lt_prog_compiler_pic_CXX=
 
14451
    ;;
 
14452
  *)
 
14453
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14454
    ;;
 
14455
esac
 
14456
 
 
14457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14458
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14459
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14460
  $as_echo_n "(cached) " >&6
 
14461
else
 
14462
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14463
fi
 
14464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14465
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14466
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14467
 
 
14468
#
 
14469
# Check to make sure the PIC flag actually works.
 
14470
#
 
14471
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14472
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14473
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14474
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14475
  $as_echo_n "(cached) " >&6
 
14476
else
 
14477
  lt_cv_prog_compiler_pic_works_CXX=no
 
14478
   ac_outfile=conftest.$ac_objext
 
14479
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14480
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14481
   # Insert the option either (1) after the last *FLAGS variable, or
 
14482
   # (2) before a word containing "conftest.", or (3) at the end.
 
14483
   # Note that $ac_compile itself does not contain backslashes and begins
 
14484
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14485
   # The option is referenced via a variable to avoid confusing sed.
 
14486
   lt_compile=`echo "$ac_compile" | $SED \
 
14487
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14488
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14489
   -e 's:$: $lt_compiler_flag:'`
 
14490
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14491
   (eval "$lt_compile" 2>conftest.err)
 
14492
   ac_status=$?
 
14493
   cat conftest.err >&5
 
14494
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14495
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14496
     # The compiler can only warn and ignore the option if not recognized
 
14497
     # So say no if there are warnings other than the usual output.
 
14498
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14499
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14500
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14501
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14502
     fi
 
14503
   fi
 
14504
   $RM conftest*
 
14505
 
 
14506
fi
 
14507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14508
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14509
 
 
14510
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14511
    case $lt_prog_compiler_pic_CXX in
 
14512
     "" | " "*) ;;
 
14513
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14514
     esac
 
14515
else
 
14516
    lt_prog_compiler_pic_CXX=
 
14517
     lt_prog_compiler_can_build_shared_CXX=no
 
14518
fi
 
14519
 
 
14520
fi
 
14521
 
 
14522
 
 
14523
 
 
14524
 
 
14525
 
 
14526
#
 
14527
# Check to make sure the static flag actually works.
 
14528
#
 
14529
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14531
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14532
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14533
  $as_echo_n "(cached) " >&6
 
14534
else
 
14535
  lt_cv_prog_compiler_static_works_CXX=no
 
14536
   save_LDFLAGS="$LDFLAGS"
 
14537
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14538
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14539
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14540
     # The linker can only warn and ignore the option if not recognized
 
14541
     # So say no if there are warnings
 
14542
     if test -s conftest.err; then
 
14543
       # Append any errors to the config.log.
 
14544
       cat conftest.err 1>&5
 
14545
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14546
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14547
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14548
         lt_cv_prog_compiler_static_works_CXX=yes
 
14549
       fi
 
14550
     else
 
14551
       lt_cv_prog_compiler_static_works_CXX=yes
 
14552
     fi
 
14553
   fi
 
14554
   $RM -r conftest*
 
14555
   LDFLAGS="$save_LDFLAGS"
 
14556
 
 
14557
fi
 
14558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14559
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14560
 
 
14561
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14562
    :
 
14563
else
 
14564
    lt_prog_compiler_static_CXX=
 
14565
fi
 
14566
 
 
14567
 
 
14568
 
 
14569
 
 
14570
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14571
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14572
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14573
  $as_echo_n "(cached) " >&6
 
14574
else
 
14575
  lt_cv_prog_compiler_c_o_CXX=no
 
14576
   $RM -r conftest 2>/dev/null
 
14577
   mkdir conftest
 
14578
   cd conftest
 
14579
   mkdir out
 
14580
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14581
 
 
14582
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14583
   # Insert the option either (1) after the last *FLAGS variable, or
 
14584
   # (2) before a word containing "conftest.", or (3) at the end.
 
14585
   # Note that $ac_compile itself does not contain backslashes and begins
 
14586
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14587
   lt_compile=`echo "$ac_compile" | $SED \
 
14588
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14589
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14590
   -e 's:$: $lt_compiler_flag:'`
 
14591
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14592
   (eval "$lt_compile" 2>out/conftest.err)
 
14593
   ac_status=$?
 
14594
   cat out/conftest.err >&5
 
14595
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14596
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14597
   then
 
14598
     # The compiler can only warn and ignore the option if not recognized
 
14599
     # So say no if there are warnings
 
14600
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14601
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14602
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14603
       lt_cv_prog_compiler_c_o_CXX=yes
 
14604
     fi
 
14605
   fi
 
14606
   chmod u+w . 2>&5
 
14607
   $RM conftest*
 
14608
   # SGI C++ compiler will create directory out/ii_files/ for
 
14609
   # template instantiation
 
14610
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14611
   $RM out/* && rmdir out
 
14612
   cd ..
 
14613
   $RM -r conftest
 
14614
   $RM conftest*
 
14615
 
 
14616
fi
 
14617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14618
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14619
 
 
14620
 
 
14621
 
 
14622
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14623
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14624
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14625
  $as_echo_n "(cached) " >&6
 
14626
else
 
14627
  lt_cv_prog_compiler_c_o_CXX=no
 
14628
   $RM -r conftest 2>/dev/null
 
14629
   mkdir conftest
 
14630
   cd conftest
 
14631
   mkdir out
 
14632
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14633
 
 
14634
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14635
   # Insert the option either (1) after the last *FLAGS variable, or
 
14636
   # (2) before a word containing "conftest.", or (3) at the end.
 
14637
   # Note that $ac_compile itself does not contain backslashes and begins
 
14638
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14639
   lt_compile=`echo "$ac_compile" | $SED \
 
14640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14642
   -e 's:$: $lt_compiler_flag:'`
 
14643
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14644
   (eval "$lt_compile" 2>out/conftest.err)
 
14645
   ac_status=$?
 
14646
   cat out/conftest.err >&5
 
14647
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14648
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14649
   then
 
14650
     # The compiler can only warn and ignore the option if not recognized
 
14651
     # So say no if there are warnings
 
14652
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14653
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14654
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14655
       lt_cv_prog_compiler_c_o_CXX=yes
 
14656
     fi
 
14657
   fi
 
14658
   chmod u+w . 2>&5
 
14659
   $RM conftest*
 
14660
   # SGI C++ compiler will create directory out/ii_files/ for
 
14661
   # template instantiation
 
14662
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14663
   $RM out/* && rmdir out
 
14664
   cd ..
 
14665
   $RM -r conftest
 
14666
   $RM conftest*
 
14667
 
 
14668
fi
 
14669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14670
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14671
 
 
14672
 
 
14673
 
 
14674
 
 
14675
hard_links="nottested"
 
14676
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14677
  # do not overwrite the value of need_locks provided by the user
 
14678
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14679
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14680
  hard_links=yes
 
14681
  $RM conftest*
 
14682
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14683
  touch conftest.a
 
14684
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14685
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14686
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14687
$as_echo "$hard_links" >&6; }
 
14688
  if test "$hard_links" = no; then
 
14689
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14690
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14691
    need_locks=warn
 
14692
  fi
 
14693
else
 
14694
  need_locks=no
 
14695
fi
 
14696
 
 
14697
 
 
14698
 
 
14699
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14700
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14701
 
 
14702
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14703
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14704
  case $host_os in
 
14705
  aix[4-9]*)
 
14706
    # If we're using GNU nm, then we don't want the "-C" option.
 
14707
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14708
    # Also, AIX nm treats weak defined symbols like other global defined
 
14709
    # symbols, whereas GNU nm marks them as "W".
 
14710
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14711
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14712
    else
 
14713
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14714
    fi
 
14715
    ;;
 
14716
  pw32*)
 
14717
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14718
    ;;
 
14719
  cygwin* | mingw* | cegcc*)
 
14720
    case $cc_basename in
 
14721
    cl*)
 
14722
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14723
      ;;
 
14724
    *)
 
14725
      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'
 
14726
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14727
      ;;
 
14728
    esac
 
14729
    ;;
 
14730
  linux* | k*bsd*-gnu | gnu*)
 
14731
    link_all_deplibs_CXX=no
 
14732
    ;;
 
14733
  *)
 
14734
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14735
    ;;
 
14736
  esac
 
14737
 
 
14738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14739
$as_echo "$ld_shlibs_CXX" >&6; }
 
14740
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14741
 
 
14742
with_gnu_ld_CXX=$with_gnu_ld
 
14743
 
 
14744
 
 
14745
 
 
14746
 
 
14747
 
 
14748
 
 
14749
#
 
14750
# Do we need to explicitly link libc?
 
14751
#
 
14752
case "x$archive_cmds_need_lc_CXX" in
 
14753
x|xyes)
 
14754
  # Assume -lc should be added
 
14755
  archive_cmds_need_lc_CXX=yes
 
14756
 
 
14757
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14758
    case $archive_cmds_CXX in
 
14759
    *'~'*)
 
14760
      # FIXME: we may have to deal with multi-command sequences.
 
14761
      ;;
 
14762
    '$CC '*)
 
14763
      # Test whether the compiler implicitly links with -lc since on some
 
14764
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14765
      # to ld, don't add -lc before -lgcc.
 
14766
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14767
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14768
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14769
  $as_echo_n "(cached) " >&6
 
14770
else
 
14771
  $RM conftest*
 
14772
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14773
 
 
14774
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14775
  (eval $ac_compile) 2>&5
 
14776
  ac_status=$?
 
14777
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14778
  test $ac_status = 0; } 2>conftest.err; then
 
14779
          soname=conftest
 
14780
          lib=conftest
 
14781
          libobjs=conftest.$ac_objext
 
14782
          deplibs=
 
14783
          wl=$lt_prog_compiler_wl_CXX
 
14784
          pic_flag=$lt_prog_compiler_pic_CXX
 
14785
          compiler_flags=-v
 
14786
          linker_flags=-v
 
14787
          verstring=
 
14788
          output_objdir=.
 
14789
          libname=conftest
 
14790
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14791
          allow_undefined_flag_CXX=
 
14792
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14793
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14794
  ac_status=$?
 
14795
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14796
  test $ac_status = 0; }
 
14797
          then
 
14798
            lt_cv_archive_cmds_need_lc_CXX=no
 
14799
          else
 
14800
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14801
          fi
 
14802
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14803
        else
 
14804
          cat conftest.err 1>&5
 
14805
        fi
 
14806
        $RM conftest*
 
14807
 
 
14808
fi
 
14809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14810
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14811
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14812
      ;;
 
14813
    esac
 
14814
  fi
 
14815
  ;;
 
14816
esac
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
 
14846
 
 
14847
 
 
14848
 
 
14849
 
 
14850
 
 
14851
 
 
14852
 
 
14853
 
 
14854
 
 
14855
 
 
14856
 
 
14857
 
 
14858
 
 
14859
 
 
14860
 
 
14861
 
 
14862
 
 
14863
 
 
14864
 
 
14865
 
 
14866
 
 
14867
 
 
14868
 
 
14869
 
 
14870
 
 
14871
 
 
14872
 
 
14873
 
 
14874
 
 
14875
 
 
14876
 
 
14877
 
 
14878
 
 
14879
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14880
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14881
 
 
14882
library_names_spec=
 
14883
libname_spec='lib$name'
 
14884
soname_spec=
 
14885
shrext_cmds=".so"
 
14886
postinstall_cmds=
 
14887
postuninstall_cmds=
 
14888
finish_cmds=
 
14889
finish_eval=
 
14890
shlibpath_var=
 
14891
shlibpath_overrides_runpath=unknown
 
14892
version_type=none
 
14893
dynamic_linker="$host_os ld.so"
 
14894
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14895
need_lib_prefix=unknown
 
14896
hardcode_into_libs=no
 
14897
 
 
14898
# when you set need_version to no, make sure it does not cause -set_version
 
14899
# flags to be left without arguments
 
14900
need_version=unknown
 
14901
 
 
14902
case $host_os in
 
14903
aix3*)
 
14904
  version_type=linux # correct to gnu/linux during the next big refactor
 
14905
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14906
  shlibpath_var=LIBPATH
 
14907
 
 
14908
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14909
  soname_spec='${libname}${release}${shared_ext}$major'
 
14910
  ;;
 
14911
 
 
14912
aix[4-9]*)
 
14913
  version_type=linux # correct to gnu/linux during the next big refactor
 
14914
  need_lib_prefix=no
 
14915
  need_version=no
 
14916
  hardcode_into_libs=yes
 
14917
  if test "$host_cpu" = ia64; then
 
14918
    # AIX 5 supports IA64
 
14919
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14920
    shlibpath_var=LD_LIBRARY_PATH
 
14921
  else
 
14922
    # With GCC up to 2.95.x, collect2 would create an import file
 
14923
    # for dependence libraries.  The import file would start with
 
14924
    # the line `#! .'.  This would cause the generated library to
 
14925
    # depend on `.', always an invalid library.  This was fixed in
 
14926
    # development snapshots of GCC prior to 3.0.
 
14927
    case $host_os in
 
14928
      aix4 | aix4.[01] | aix4.[01].*)
 
14929
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14930
           echo ' yes '
 
14931
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14932
        :
 
14933
      else
 
14934
        can_build_shared=no
 
14935
      fi
 
14936
      ;;
 
14937
    esac
 
14938
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14939
    # soname into executable. Probably we can add versioning support to
 
14940
    # collect2, so additional links can be useful in future.
 
14941
    if test "$aix_use_runtimelinking" = yes; then
 
14942
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14943
      # instead of lib<name>.a to let people know that these are not
 
14944
      # typical AIX shared libraries.
 
14945
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14946
    else
 
14947
      # We preserve .a as extension for shared libraries through AIX4.2
 
14948
      # and later when we are not doing run time linking.
 
14949
      library_names_spec='${libname}${release}.a $libname.a'
 
14950
      soname_spec='${libname}${release}${shared_ext}$major'
 
14951
    fi
 
14952
    shlibpath_var=LIBPATH
 
14953
  fi
 
14954
  ;;
 
14955
 
 
14956
amigaos*)
 
14957
  case $host_cpu in
 
14958
  powerpc)
 
14959
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14960
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14961
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14962
    ;;
 
14963
  m68k)
 
14964
    library_names_spec='$libname.ixlibrary $libname.a'
 
14965
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14966
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14967
    ;;
 
14968
  esac
 
14969
  ;;
 
14970
 
 
14971
beos*)
 
14972
  library_names_spec='${libname}${shared_ext}'
 
14973
  dynamic_linker="$host_os ld.so"
 
14974
  shlibpath_var=LIBRARY_PATH
 
14975
  ;;
 
14976
 
 
14977
bsdi[45]*)
 
14978
  version_type=linux # correct to gnu/linux during the next big refactor
 
14979
  need_version=no
 
14980
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14981
  soname_spec='${libname}${release}${shared_ext}$major'
 
14982
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14983
  shlibpath_var=LD_LIBRARY_PATH
 
14984
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14985
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14986
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14987
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14988
  # libtool to hard-code these into programs
 
14989
  ;;
 
14990
 
 
14991
cygwin* | mingw* | pw32* | cegcc*)
 
14992
  version_type=windows
 
14993
  shrext_cmds=".dll"
 
14994
  need_version=no
 
14995
  need_lib_prefix=no
 
14996
 
 
14997
  case $GCC,$cc_basename in
 
14998
  yes,*)
 
14999
    # gcc
 
15000
    library_names_spec='$libname.dll.a'
 
15001
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15002
    postinstall_cmds='base_file=`basename \${file}`~
 
15003
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15004
      dldir=$destdir/`dirname \$dlpath`~
 
15005
      test -d \$dldir || mkdir -p \$dldir~
 
15006
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15007
      chmod a+x \$dldir/$dlname~
 
15008
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15009
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15010
      fi'
 
15011
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15012
      dlpath=$dir/\$dldll~
 
15013
       $RM \$dlpath'
 
15014
    shlibpath_overrides_runpath=yes
 
15015
 
 
15016
    case $host_os in
 
15017
    cygwin*)
 
15018
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15019
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15020
 
 
15021
      ;;
 
15022
    mingw* | cegcc*)
 
15023
      # MinGW DLLs use traditional 'lib' prefix
 
15024
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15025
      ;;
 
15026
    pw32*)
 
15027
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15028
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15029
      ;;
 
15030
    esac
 
15031
    dynamic_linker='Win32 ld.exe'
 
15032
    ;;
 
15033
 
 
15034
  *,cl*)
 
15035
    # Native MSVC
 
15036
    libname_spec='$name'
 
15037
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15038
    library_names_spec='${libname}.dll.lib'
 
15039
 
 
15040
    case $build_os in
 
15041
    mingw*)
 
15042
      sys_lib_search_path_spec=
 
15043
      lt_save_ifs=$IFS
 
15044
      IFS=';'
 
15045
      for lt_path in $LIB
 
15046
      do
 
15047
        IFS=$lt_save_ifs
 
15048
        # Let DOS variable expansion print the short 8.3 style file name.
 
15049
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
15050
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
15051
      done
 
15052
      IFS=$lt_save_ifs
 
15053
      # Convert to MSYS style.
 
15054
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
15055
      ;;
 
15056
    cygwin*)
 
15057
      # Convert to unix form, then to dos form, then back to unix form
 
15058
      # but this time dos style (no spaces!) so that the unix form looks
 
15059
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
15060
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
15061
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
15062
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15063
      ;;
 
15064
    *)
 
15065
      sys_lib_search_path_spec="$LIB"
 
15066
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15067
        # It is most probably a Windows format PATH.
 
15068
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15069
      else
 
15070
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15071
      fi
 
15072
      # FIXME: find the short name or the path components, as spaces are
 
15073
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
15074
      ;;
 
15075
    esac
 
15076
 
 
15077
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15078
    postinstall_cmds='base_file=`basename \${file}`~
 
15079
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15080
      dldir=$destdir/`dirname \$dlpath`~
 
15081
      test -d \$dldir || mkdir -p \$dldir~
 
15082
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15083
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15084
      dlpath=$dir/\$dldll~
 
15085
       $RM \$dlpath'
 
15086
    shlibpath_overrides_runpath=yes
 
15087
    dynamic_linker='Win32 link.exe'
 
15088
    ;;
 
15089
 
 
15090
  *)
 
15091
    # Assume MSVC wrapper
 
15092
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15093
    dynamic_linker='Win32 ld.exe'
 
15094
    ;;
 
15095
  esac
 
15096
  # FIXME: first we should search . and the directory the executable is in
 
15097
  shlibpath_var=PATH
 
15098
  ;;
 
15099
 
 
15100
darwin* | rhapsody*)
 
15101
  dynamic_linker="$host_os dyld"
 
15102
  version_type=darwin
 
15103
  need_lib_prefix=no
 
15104
  need_version=no
 
15105
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15106
  soname_spec='${libname}${release}${major}$shared_ext'
 
15107
  shlibpath_overrides_runpath=yes
 
15108
  shlibpath_var=DYLD_LIBRARY_PATH
 
15109
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15110
 
 
15111
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15112
  ;;
 
15113
 
 
15114
dgux*)
 
15115
  version_type=linux # correct to gnu/linux during the next big refactor
 
15116
  need_lib_prefix=no
 
15117
  need_version=no
 
15118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15119
  soname_spec='${libname}${release}${shared_ext}$major'
 
15120
  shlibpath_var=LD_LIBRARY_PATH
 
15121
  ;;
 
15122
 
 
15123
freebsd* | dragonfly*)
 
15124
  # DragonFly does not have aout.  When/if they implement a new
 
15125
  # versioning mechanism, adjust this.
 
15126
  if test -x /usr/bin/objformat; then
 
15127
    objformat=`/usr/bin/objformat`
 
15128
  else
 
15129
    case $host_os in
 
15130
    freebsd[23].*) objformat=aout ;;
 
15131
    *) objformat=elf ;;
 
15132
    esac
 
15133
  fi
 
15134
  version_type=freebsd-$objformat
 
15135
  case $version_type in
 
15136
    freebsd-elf*)
 
15137
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15138
      need_version=no
 
15139
      need_lib_prefix=no
 
15140
      ;;
 
15141
    freebsd-*)
 
15142
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15143
      need_version=yes
 
15144
      ;;
 
15145
  esac
 
15146
  shlibpath_var=LD_LIBRARY_PATH
 
15147
  case $host_os in
 
15148
  freebsd2.*)
 
15149
    shlibpath_overrides_runpath=yes
 
15150
    ;;
 
15151
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15152
    shlibpath_overrides_runpath=yes
 
15153
    hardcode_into_libs=yes
 
15154
    ;;
 
15155
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15156
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15157
    shlibpath_overrides_runpath=no
 
15158
    hardcode_into_libs=yes
 
15159
    ;;
 
15160
  *) # from 4.6 on, and DragonFly
 
15161
    shlibpath_overrides_runpath=yes
 
15162
    hardcode_into_libs=yes
 
15163
    ;;
 
15164
  esac
 
15165
  ;;
 
15166
 
 
15167
gnu*)
 
15168
  version_type=linux # correct to gnu/linux during the next big refactor
 
15169
  need_lib_prefix=no
 
15170
  need_version=no
 
15171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15172
  soname_spec='${libname}${release}${shared_ext}$major'
 
15173
  shlibpath_var=LD_LIBRARY_PATH
 
15174
  shlibpath_overrides_runpath=no
 
15175
  hardcode_into_libs=yes
 
15176
  ;;
 
15177
 
 
15178
haiku*)
 
15179
  version_type=linux # correct to gnu/linux during the next big refactor
 
15180
  need_lib_prefix=no
 
15181
  need_version=no
 
15182
  dynamic_linker="$host_os runtime_loader"
 
15183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15184
  soname_spec='${libname}${release}${shared_ext}$major'
 
15185
  shlibpath_var=LIBRARY_PATH
 
15186
  shlibpath_overrides_runpath=yes
 
15187
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
15188
  hardcode_into_libs=yes
 
15189
  ;;
 
15190
 
 
15191
hpux9* | hpux10* | hpux11*)
 
15192
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15193
  # link against other versions.
 
15194
  version_type=sunos
 
15195
  need_lib_prefix=no
 
15196
  need_version=no
 
15197
  case $host_cpu in
 
15198
  ia64*)
 
15199
    shrext_cmds='.so'
 
15200
    hardcode_into_libs=yes
 
15201
    dynamic_linker="$host_os dld.so"
 
15202
    shlibpath_var=LD_LIBRARY_PATH
 
15203
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15205
    soname_spec='${libname}${release}${shared_ext}$major'
 
15206
    if test "X$HPUX_IA64_MODE" = X32; then
 
15207
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15208
    else
 
15209
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15210
    fi
 
15211
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15212
    ;;
 
15213
  hppa*64*)
 
15214
    shrext_cmds='.sl'
 
15215
    hardcode_into_libs=yes
 
15216
    dynamic_linker="$host_os dld.sl"
 
15217
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15218
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15219
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15220
    soname_spec='${libname}${release}${shared_ext}$major'
 
15221
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15222
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15223
    ;;
 
15224
  *)
 
15225
    shrext_cmds='.sl'
 
15226
    dynamic_linker="$host_os dld.sl"
 
15227
    shlibpath_var=SHLIB_PATH
 
15228
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15229
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15230
    soname_spec='${libname}${release}${shared_ext}$major'
 
15231
    ;;
 
15232
  esac
 
15233
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
15234
  postinstall_cmds='chmod 555 $lib'
 
15235
  # or fails outright, so override atomically:
 
15236
  install_override_mode=555
 
15237
  ;;
 
15238
 
 
15239
interix[3-9]*)
 
15240
  version_type=linux # correct to gnu/linux during the next big refactor
 
15241
  need_lib_prefix=no
 
15242
  need_version=no
 
15243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15244
  soname_spec='${libname}${release}${shared_ext}$major'
 
15245
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15246
  shlibpath_var=LD_LIBRARY_PATH
 
15247
  shlibpath_overrides_runpath=no
 
15248
  hardcode_into_libs=yes
 
15249
  ;;
 
15250
 
 
15251
irix5* | irix6* | nonstopux*)
 
15252
  case $host_os in
 
15253
    nonstopux*) version_type=nonstopux ;;
 
15254
    *)
 
15255
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15256
                version_type=linux # correct to gnu/linux during the next big refactor
 
15257
        else
 
15258
                version_type=irix
 
15259
        fi ;;
 
15260
  esac
 
15261
  need_lib_prefix=no
 
15262
  need_version=no
 
15263
  soname_spec='${libname}${release}${shared_ext}$major'
 
15264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15265
  case $host_os in
 
15266
  irix5* | nonstopux*)
 
15267
    libsuff= shlibsuff=
 
15268
    ;;
 
15269
  *)
 
15270
    case $LD in # libtool.m4 will add one of these switches to LD
 
15271
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15272
      libsuff= shlibsuff= libmagic=32-bit;;
 
15273
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15274
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15275
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15276
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15277
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15278
    esac
 
15279
    ;;
 
15280
  esac
 
15281
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15282
  shlibpath_overrides_runpath=no
 
15283
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15284
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15285
  hardcode_into_libs=yes
 
15286
  ;;
 
15287
 
 
15288
# No shared lib support for Linux oldld, aout, or coff.
 
15289
linux*oldld* | linux*aout* | linux*coff*)
 
15290
  dynamic_linker=no
 
15291
  ;;
 
15292
 
 
15293
# This must be glibc/ELF.
 
15294
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
15295
  version_type=linux # correct to gnu/linux during the next big refactor
 
15296
  need_lib_prefix=no
 
15297
  need_version=no
 
15298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15299
  soname_spec='${libname}${release}${shared_ext}$major'
 
15300
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15301
  shlibpath_var=LD_LIBRARY_PATH
 
15302
  shlibpath_overrides_runpath=no
 
15303
 
 
15304
  # Some binutils ld are patched to set DT_RUNPATH
 
15305
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15306
  $as_echo_n "(cached) " >&6
 
15307
else
 
15308
  lt_cv_shlibpath_overrides_runpath=no
 
15309
    save_LDFLAGS=$LDFLAGS
 
15310
    save_libdir=$libdir
 
15311
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15312
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15313
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15314
/* end confdefs.h.  */
 
15315
 
 
15316
int
 
15317
main ()
 
15318
{
 
15319
 
 
15320
  ;
 
15321
  return 0;
 
15322
}
 
15323
_ACEOF
 
15324
if ac_fn_cxx_try_link "$LINENO"; then :
 
15325
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15326
  lt_cv_shlibpath_overrides_runpath=yes
 
15327
fi
 
15328
fi
 
15329
rm -f core conftest.err conftest.$ac_objext \
 
15330
    conftest$ac_exeext conftest.$ac_ext
 
15331
    LDFLAGS=$save_LDFLAGS
 
15332
    libdir=$save_libdir
 
15333
 
 
15334
fi
 
15335
 
 
15336
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
15337
 
 
15338
  # This implies no fast_install, which is unacceptable.
 
15339
  # Some rework will be needed to allow for fast_install
 
15340
  # before this can be enabled.
 
15341
  hardcode_into_libs=yes
 
15342
 
 
15343
  # Append ld.so.conf contents to the search path
 
15344
  if test -f /etc/ld.so.conf; then
 
15345
    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' ' '`
 
15346
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15347
  fi
 
15348
 
 
15349
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15350
  # powerpc, because MkLinux only supported shared libraries with the
 
15351
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15352
  # most powerpc-linux boxes support dynamic linking these days and
 
15353
  # people can always --disable-shared, the test was removed, and we
 
15354
  # assume the GNU/Linux dynamic linker is in use.
 
15355
  dynamic_linker='GNU/Linux ld.so'
 
15356
  ;;
 
15357
 
 
15358
netbsdelf*-gnu)
 
15359
  version_type=linux
 
15360
  need_lib_prefix=no
 
15361
  need_version=no
 
15362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15363
  soname_spec='${libname}${release}${shared_ext}$major'
 
15364
  shlibpath_var=LD_LIBRARY_PATH
 
15365
  shlibpath_overrides_runpath=no
 
15366
  hardcode_into_libs=yes
 
15367
  dynamic_linker='NetBSD ld.elf_so'
 
15368
  ;;
 
15369
 
 
15370
netbsd*)
 
15371
  version_type=sunos
 
15372
  need_lib_prefix=no
 
15373
  need_version=no
 
15374
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15375
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15376
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15377
    dynamic_linker='NetBSD (a.out) ld.so'
 
15378
  else
 
15379
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15380
    soname_spec='${libname}${release}${shared_ext}$major'
 
15381
    dynamic_linker='NetBSD ld.elf_so'
 
15382
  fi
 
15383
  shlibpath_var=LD_LIBRARY_PATH
 
15384
  shlibpath_overrides_runpath=yes
 
15385
  hardcode_into_libs=yes
 
15386
  ;;
 
15387
 
 
15388
newsos6)
 
15389
  version_type=linux # correct to gnu/linux during the next big refactor
 
15390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15391
  shlibpath_var=LD_LIBRARY_PATH
 
15392
  shlibpath_overrides_runpath=yes
 
15393
  ;;
 
15394
 
 
15395
*nto* | *qnx*)
 
15396
  version_type=qnx
 
15397
  need_lib_prefix=no
 
15398
  need_version=no
 
15399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15400
  soname_spec='${libname}${release}${shared_ext}$major'
 
15401
  shlibpath_var=LD_LIBRARY_PATH
 
15402
  shlibpath_overrides_runpath=no
 
15403
  hardcode_into_libs=yes
 
15404
  dynamic_linker='ldqnx.so'
 
15405
  ;;
 
15406
 
 
15407
openbsd*)
 
15408
  version_type=sunos
 
15409
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15410
  need_lib_prefix=no
 
15411
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15412
  case $host_os in
 
15413
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15414
    *)                          need_version=no  ;;
 
15415
  esac
 
15416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15417
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15418
  shlibpath_var=LD_LIBRARY_PATH
 
15419
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15420
    case $host_os in
 
15421
      openbsd2.[89] | openbsd2.[89].*)
 
15422
        shlibpath_overrides_runpath=no
 
15423
        ;;
 
15424
      *)
 
15425
        shlibpath_overrides_runpath=yes
 
15426
        ;;
 
15427
      esac
 
15428
  else
 
15429
    shlibpath_overrides_runpath=yes
 
15430
  fi
 
15431
  ;;
 
15432
 
 
15433
os2*)
 
15434
  libname_spec='$name'
 
15435
  shrext_cmds=".dll"
 
15436
  need_lib_prefix=no
 
15437
  library_names_spec='$libname${shared_ext} $libname.a'
 
15438
  dynamic_linker='OS/2 ld.exe'
 
15439
  shlibpath_var=LIBPATH
 
15440
  ;;
 
15441
 
 
15442
osf3* | osf4* | osf5*)
 
15443
  version_type=osf
 
15444
  need_lib_prefix=no
 
15445
  need_version=no
 
15446
  soname_spec='${libname}${release}${shared_ext}$major'
 
15447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15448
  shlibpath_var=LD_LIBRARY_PATH
 
15449
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15450
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15451
  ;;
 
15452
 
 
15453
rdos*)
 
15454
  dynamic_linker=no
 
15455
  ;;
 
15456
 
 
15457
solaris*)
 
15458
  version_type=linux # correct to gnu/linux during the next big refactor
 
15459
  need_lib_prefix=no
 
15460
  need_version=no
 
15461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15462
  soname_spec='${libname}${release}${shared_ext}$major'
 
15463
  shlibpath_var=LD_LIBRARY_PATH
 
15464
  shlibpath_overrides_runpath=yes
 
15465
  hardcode_into_libs=yes
 
15466
  # ldd complains unless libraries are executable
 
15467
  postinstall_cmds='chmod +x $lib'
 
15468
  ;;
 
15469
 
 
15470
sunos4*)
 
15471
  version_type=sunos
 
15472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15473
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15474
  shlibpath_var=LD_LIBRARY_PATH
 
15475
  shlibpath_overrides_runpath=yes
 
15476
  if test "$with_gnu_ld" = yes; then
 
15477
    need_lib_prefix=no
 
15478
  fi
 
15479
  need_version=yes
 
15480
  ;;
 
15481
 
 
15482
sysv4 | sysv4.3*)
 
15483
  version_type=linux # correct to gnu/linux during the next big refactor
 
15484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15485
  soname_spec='${libname}${release}${shared_ext}$major'
 
15486
  shlibpath_var=LD_LIBRARY_PATH
 
15487
  case $host_vendor in
 
15488
    sni)
 
15489
      shlibpath_overrides_runpath=no
 
15490
      need_lib_prefix=no
 
15491
      runpath_var=LD_RUN_PATH
 
15492
      ;;
 
15493
    siemens)
 
15494
      need_lib_prefix=no
 
15495
      ;;
 
15496
    motorola)
 
15497
      need_lib_prefix=no
 
15498
      need_version=no
 
15499
      shlibpath_overrides_runpath=no
 
15500
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15501
      ;;
 
15502
  esac
 
15503
  ;;
 
15504
 
 
15505
sysv4*MP*)
 
15506
  if test -d /usr/nec ;then
 
15507
    version_type=linux # correct to gnu/linux during the next big refactor
 
15508
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15509
    soname_spec='$libname${shared_ext}.$major'
 
15510
    shlibpath_var=LD_LIBRARY_PATH
 
15511
  fi
 
15512
  ;;
 
15513
 
 
15514
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15515
  version_type=freebsd-elf
 
15516
  need_lib_prefix=no
 
15517
  need_version=no
 
15518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15519
  soname_spec='${libname}${release}${shared_ext}$major'
 
15520
  shlibpath_var=LD_LIBRARY_PATH
 
15521
  shlibpath_overrides_runpath=yes
 
15522
  hardcode_into_libs=yes
 
15523
  if test "$with_gnu_ld" = yes; then
 
15524
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15525
  else
 
15526
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15527
    case $host_os in
 
15528
      sco3.2v5*)
 
15529
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15530
        ;;
 
15531
    esac
 
15532
  fi
 
15533
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15534
  ;;
 
15535
 
 
15536
tpf*)
 
15537
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15538
  version_type=linux # correct to gnu/linux during the next big refactor
 
15539
  need_lib_prefix=no
 
15540
  need_version=no
 
15541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15542
  shlibpath_var=LD_LIBRARY_PATH
 
15543
  shlibpath_overrides_runpath=no
 
15544
  hardcode_into_libs=yes
 
15545
  ;;
 
15546
 
 
15547
uts4*)
 
15548
  version_type=linux # correct to gnu/linux during the next big refactor
 
15549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15550
  soname_spec='${libname}${release}${shared_ext}$major'
 
15551
  shlibpath_var=LD_LIBRARY_PATH
 
15552
  ;;
 
15553
 
 
15554
*)
 
15555
  dynamic_linker=no
 
15556
  ;;
 
15557
esac
 
15558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15559
$as_echo "$dynamic_linker" >&6; }
 
15560
test "$dynamic_linker" = no && can_build_shared=no
 
15561
 
 
15562
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15563
if test "$GCC" = yes; then
 
15564
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15565
fi
 
15566
 
 
15567
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15568
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15569
fi
 
15570
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15571
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15572
fi
 
15573
 
 
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
 
 
15584
 
 
15585
 
 
15586
 
 
15587
 
 
15588
 
 
15589
 
 
15590
 
 
15591
 
 
15592
 
 
15593
 
 
15594
 
 
15595
 
 
15596
 
 
15597
 
 
15598
 
 
15599
 
 
15600
 
 
15601
 
 
15602
 
 
15603
 
 
15604
 
 
15605
 
 
15606
 
 
15607
 
 
15608
 
 
15609
 
 
15610
 
 
15611
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15612
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15613
hardcode_action_CXX=
 
15614
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15615
   test -n "$runpath_var_CXX" ||
 
15616
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15617
 
 
15618
  # We can hardcode non-existent directories.
 
15619
  if test "$hardcode_direct_CXX" != no &&
 
15620
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15621
     # have to relink, otherwise we might link with an installed library
 
15622
     # when we should be linking with a yet-to-be-installed one
 
15623
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15624
     test "$hardcode_minus_L_CXX" != no; then
 
15625
    # Linking always hardcodes the temporary library directory.
 
15626
    hardcode_action_CXX=relink
 
15627
  else
 
15628
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15629
    hardcode_action_CXX=immediate
 
15630
  fi
 
15631
else
 
15632
  # We cannot hardcode anything, or else we can only hardcode existing
 
15633
  # directories.
 
15634
  hardcode_action_CXX=unsupported
 
15635
fi
 
15636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15637
$as_echo "$hardcode_action_CXX" >&6; }
 
15638
 
 
15639
if test "$hardcode_action_CXX" = relink ||
 
15640
   test "$inherit_rpath_CXX" = yes; then
 
15641
  # Fast installation is not supported
 
15642
  enable_fast_install=no
 
15643
elif test "$shlibpath_overrides_runpath" = yes ||
 
15644
     test "$enable_shared" = no; then
 
15645
  # Fast installation is not necessary
 
15646
  enable_fast_install=needless
 
15647
fi
 
15648
 
 
15649
 
 
15650
 
 
15651
 
 
15652
 
 
15653
 
 
15654
 
 
15655
  fi # test -n "$compiler"
 
15656
 
 
15657
  CC=$lt_save_CC
 
15658
  CFLAGS=$lt_save_CFLAGS
 
15659
  LDCXX=$LD
 
15660
  LD=$lt_save_LD
 
15661
  GCC=$lt_save_GCC
 
15662
  with_gnu_ld=$lt_save_with_gnu_ld
 
15663
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15664
  lt_cv_path_LD=$lt_save_path_LD
 
15665
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15666
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15667
fi # test "$_lt_caught_CXX_error" != yes
 
15668
 
 
15669
ac_ext=c
 
15670
ac_cpp='$CPP $CPPFLAGS'
 
15671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15674
 
 
15675
 
 
15676
 
 
15677
 
 
15678
 
 
15679
 
 
15680
 
 
15681
 
 
15682
 
 
15683
        if test -n "$PYTHON"; then
 
15684
      # If the user set $PYTHON, use it and don't search something else.
 
15685
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
 
15686
$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
 
15687
      prog="import sys
 
15688
# split strings by '.' and convert to numeric.  Append some zeros
 
15689
# because we need at least 4 digits for the hex conversion.
 
15690
# map returns an iterator in Python 3.0 and a list in 2.x
 
15691
minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
 
15692
minverhex = 0
 
15693
# xrange is not present in Python 3.0 and range returns an iterator
 
15694
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
15695
sys.exit(sys.hexversion < minverhex)"
 
15696
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
15697
   ($PYTHON -c "$prog") >&5 2>&5
 
15698
   ac_status=$?
 
15699
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15700
   (exit $ac_status); }; then :
 
15701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15702
$as_echo "yes" >&6; }
 
15703
else
 
15704
  as_fn_error $? "too old" "$LINENO" 5
 
15705
fi
 
15706
      am_display_PYTHON=$PYTHON
 
15707
    else
 
15708
      # Otherwise, try each interpreter until we find one that satisfies
 
15709
      # VERSION.
 
15710
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
 
15711
$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
 
15712
if ${am_cv_pathless_PYTHON+:} false; then :
 
15713
  $as_echo_n "(cached) " >&6
 
15714
else
 
15715
 
 
15716
        for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
15717
          test "$am_cv_pathless_PYTHON" = none && break
 
15718
          prog="import sys
 
15719
# split strings by '.' and convert to numeric.  Append some zeros
 
15720
# because we need at least 4 digits for the hex conversion.
 
15721
# map returns an iterator in Python 3.0 and a list in 2.x
 
15722
minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
 
15723
minverhex = 0
 
15724
# xrange is not present in Python 3.0 and range returns an iterator
 
15725
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
15726
sys.exit(sys.hexversion < minverhex)"
 
15727
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
15728
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
15729
   ac_status=$?
 
15730
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15731
   (exit $ac_status); }; then :
 
15732
  break
 
15733
fi
 
15734
        done
 
15735
fi
 
15736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
 
15737
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
15738
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
15739
      if test "$am_cv_pathless_PYTHON" = none; then
 
15740
        PYTHON=:
 
15741
      else
 
15742
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
15743
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
15744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15745
$as_echo_n "checking for $ac_word... " >&6; }
 
15746
if ${ac_cv_path_PYTHON+:} false; then :
 
15747
  $as_echo_n "(cached) " >&6
 
15748
else
 
15749
  case $PYTHON in
 
15750
  [\\/]* | ?:[\\/]*)
 
15751
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
15752
  ;;
 
15753
  *)
 
15754
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15755
for as_dir in $PATH
 
15756
do
 
15757
  IFS=$as_save_IFS
 
15758
  test -z "$as_dir" && as_dir=.
 
15759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15761
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
15762
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15763
    break 2
 
15764
  fi
 
15765
done
 
15766
  done
 
15767
IFS=$as_save_IFS
 
15768
 
 
15769
  ;;
 
15770
esac
 
15771
fi
 
15772
PYTHON=$ac_cv_path_PYTHON
 
15773
if test -n "$PYTHON"; then
 
15774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
15775
$as_echo "$PYTHON" >&6; }
 
15776
else
 
15777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15778
$as_echo "no" >&6; }
 
15779
fi
 
15780
 
 
15781
 
 
15782
      fi
 
15783
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
15784
    fi
 
15785
 
 
15786
 
 
15787
  if test "$PYTHON" = :; then
 
15788
      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
 
15789
  else
 
15790
 
 
15791
 
 
15792
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
15793
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
15794
if ${am_cv_python_version+:} false; then :
 
15795
  $as_echo_n "(cached) " >&6
 
15796
else
 
15797
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
15798
fi
 
15799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
15800
$as_echo "$am_cv_python_version" >&6; }
 
15801
  PYTHON_VERSION=$am_cv_python_version
 
15802
 
 
15803
 
 
15804
 
 
15805
  PYTHON_PREFIX='${prefix}'
 
15806
 
 
15807
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
15808
 
 
15809
 
 
15810
 
 
15811
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
15812
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
15813
if ${am_cv_python_platform+:} false; then :
 
15814
  $as_echo_n "(cached) " >&6
 
15815
else
 
15816
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
15817
fi
 
15818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
15819
$as_echo "$am_cv_python_platform" >&6; }
 
15820
  PYTHON_PLATFORM=$am_cv_python_platform
 
15821
 
 
15822
 
 
15823
 
 
15824
 
 
15825
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
15826
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
15827
if ${am_cv_python_pythondir+:} false; then :
 
15828
  $as_echo_n "(cached) " >&6
 
15829
else
 
15830
  if test "x$prefix" = xNONE
 
15831
     then
 
15832
       am_py_prefix=$ac_default_prefix
 
15833
     else
 
15834
       am_py_prefix=$prefix
 
15835
     fi
 
15836
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
 
15837
     case $am_cv_python_pythondir in
 
15838
     $am_py_prefix*)
 
15839
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
15840
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
15841
       ;;
 
15842
     *)
 
15843
       case $am_py_prefix in
 
15844
         /usr|/System*) ;;
 
15845
         *)
 
15846
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
15847
          ;;
 
15848
       esac
 
15849
       ;;
 
15850
     esac
 
15851
 
 
15852
fi
 
15853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
15854
$as_echo "$am_cv_python_pythondir" >&6; }
 
15855
  pythondir=$am_cv_python_pythondir
 
15856
 
 
15857
 
 
15858
 
 
15859
  pkgpythondir=\${pythondir}/$PACKAGE
 
15860
 
 
15861
 
 
15862
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
15863
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
15864
if ${am_cv_python_pyexecdir+:} false; then :
 
15865
  $as_echo_n "(cached) " >&6
 
15866
else
 
15867
  if test "x$exec_prefix" = xNONE
 
15868
     then
 
15869
       am_py_exec_prefix=$am_py_prefix
 
15870
     else
 
15871
       am_py_exec_prefix=$exec_prefix
 
15872
     fi
 
15873
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
 
15874
     case $am_cv_python_pyexecdir in
 
15875
     $am_py_exec_prefix*)
 
15876
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
15877
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
15878
       ;;
 
15879
     *)
 
15880
       case $am_py_exec_prefix in
 
15881
         /usr|/System*) ;;
 
15882
         *)
 
15883
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
15884
           ;;
 
15885
       esac
 
15886
       ;;
 
15887
     esac
 
15888
 
 
15889
fi
 
15890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
15891
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
15892
  pyexecdir=$am_cv_python_pyexecdir
 
15893
 
 
15894
 
 
15895
 
 
15896
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
15897
 
 
15898
 
 
15899
 
 
15900
  fi
 
15901
 
 
15902
 
 
15903
 
 
15904
# man page generation
 
15905
 
 
15906
# Extract the first word of "xmlto", so it can be a program name with args.
 
15907
set dummy xmlto; ac_word=$2
 
15908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15909
$as_echo_n "checking for $ac_word... " >&6; }
 
15910
if ${ac_cv_path_XMLTO+:} false; then :
 
15911
  $as_echo_n "(cached) " >&6
 
15912
else
 
15913
  case $XMLTO in
 
15914
  [\\/]* | ?:[\\/]*)
 
15915
  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
 
15916
  ;;
 
15917
  *)
 
15918
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15919
for as_dir in $PATH
 
15920
do
 
15921
  IFS=$as_save_IFS
 
15922
  test -z "$as_dir" && as_dir=.
 
15923
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15924
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15925
    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 
15926
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15927
    break 2
 
15928
  fi
 
15929
done
 
15930
  done
 
15931
IFS=$as_save_IFS
 
15932
 
 
15933
  ;;
 
15934
esac
 
15935
fi
 
15936
XMLTO=$ac_cv_path_XMLTO
 
15937
if test -n "$XMLTO"; then
 
15938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
 
15939
$as_echo "$XMLTO" >&6; }
 
15940
else
 
15941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15942
$as_echo "no" >&6; }
 
15943
fi
 
15944
 
 
15945
 
 
15946
 
 
15947
# Extract the first word of "asciidoc", so it can be a program name with args.
 
15948
set dummy asciidoc; ac_word=$2
 
15949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15950
$as_echo_n "checking for $ac_word... " >&6; }
 
15951
if ${ac_cv_path_ASCIIDOC+:} false; then :
 
15952
  $as_echo_n "(cached) " >&6
 
15953
else
 
15954
  case $ASCIIDOC in
 
15955
  [\\/]* | ?:[\\/]*)
 
15956
  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
 
15957
  ;;
 
15958
  *)
 
15959
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15960
for as_dir in $PATH
 
15961
do
 
15962
  IFS=$as_save_IFS
 
15963
  test -z "$as_dir" && as_dir=.
 
15964
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15966
    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
 
15967
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15968
    break 2
 
15969
  fi
 
15970
done
 
15971
  done
 
15972
IFS=$as_save_IFS
 
15973
 
 
15974
  ;;
 
15975
esac
 
15976
fi
 
15977
ASCIIDOC=$ac_cv_path_ASCIIDOC
 
15978
if test -n "$ASCIIDOC"; then
 
15979
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
 
15980
$as_echo "$ASCIIDOC" >&6; }
 
15981
else
 
15982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15983
$as_echo "no" >&6; }
 
15984
fi
 
15985
 
 
15986
 
 
15987
 if test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"; then
 
15988
  HAVE_DOCTOOLS_TRUE=
 
15989
  HAVE_DOCTOOLS_FALSE='#'
 
15990
else
 
15991
  HAVE_DOCTOOLS_TRUE='#'
 
15992
  HAVE_DOCTOOLS_FALSE=
 
15993
fi
 
15994
 
 
15995
if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
 
15996
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
 
15997
$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
 
15998
fi
 
15999
 
 
16000
AM_CFLAGS="-Wall -Wextra -pedantic -Werror -std=gnu99 -D_GNU_SOURCE=1"
 
16001
 
 
16002
 
 
16003
 
 
16004
ac_config_files="$ac_config_files Makefile src/Makefile python/Makefile tools/Makefile test/Makefile evemu.pc"
 
16005
 
 
16006
cat >confcache <<\_ACEOF
 
16007
# This file is a shell script that caches the results of configure
 
16008
# tests run on this system so they can be shared between configure
 
16009
# scripts and configure runs, see configure's option --config-cache.
 
16010
# It is not useful on other systems.  If it contains results you don't
 
16011
# want to keep, you may remove or edit it.
 
16012
#
 
16013
# config.status only pays attention to the cache file if you give it
 
16014
# the --recheck option to rerun configure.
 
16015
#
 
16016
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
16017
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
16018
# following values.
 
16019
 
 
16020
_ACEOF
 
16021
 
 
16022
# The following way of writing the cache mishandles newlines in values,
 
16023
# but we know of no workaround that is simple, portable, and efficient.
 
16024
# So, we kill variables containing newlines.
 
16025
# Ultrix sh set writes to stderr and can't be redirected directly,
 
16026
# and sets the high bit in the cache file unless we assign to the vars.
 
16027
(
 
16028
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
16029
    eval ac_val=\$$ac_var
 
16030
    case $ac_val in #(
 
16031
    *${as_nl}*)
 
16032
      case $ac_var in #(
 
16033
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
16034
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
16035
      esac
 
16036
      case $ac_var in #(
 
16037
      _ | IFS | as_nl) ;; #(
 
16038
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
16039
      *) { eval $ac_var=; unset $ac_var;} ;;
 
16040
      esac ;;
 
16041
    esac
 
16042
  done
 
16043
 
 
16044
  (set) 2>&1 |
 
16045
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
16046
    *${as_nl}ac_space=\ *)
 
16047
      # `set' does not quote correctly, so add quotes: double-quote
 
16048
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
16049
      sed -n \
 
16050
        "s/'/'\\\\''/g;
 
16051
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
16052
      ;; #(
 
16053
    *)
 
16054
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
16055
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
16056
      ;;
 
16057
    esac |
 
16058
    sort
 
16059
) |
 
16060
  sed '
 
16061
     /^ac_cv_env_/b end
 
16062
     t clear
 
16063
     :clear
 
16064
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
16065
     t end
 
16066
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16067
     :end' >>confcache
 
16068
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
16069
  if test -w "$cache_file"; then
 
16070
    if test "x$cache_file" != "x/dev/null"; then
 
16071
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
16072
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
16073
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
16074
        cat confcache >"$cache_file"
 
16075
      else
 
16076
        case $cache_file in #(
 
16077
        */* | ?:*)
 
16078
          mv -f confcache "$cache_file"$$ &&
 
16079
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
16080
        *)
 
16081
          mv -f confcache "$cache_file" ;;
 
16082
        esac
 
16083
      fi
 
16084
    fi
 
16085
  else
 
16086
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
16087
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
16088
  fi
 
16089
fi
 
16090
rm -f confcache
 
16091
 
 
16092
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
16093
# Let make expand exec_prefix.
 
16094
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
16095
 
 
16096
DEFS=-DHAVE_CONFIG_H
 
16097
 
 
16098
ac_libobjs=
 
16099
ac_ltlibobjs=
 
16100
U=
 
16101
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
16102
  # 1. Remove the extension, and $U if already installed.
 
16103
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
16104
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
16105
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
16106
  #    will be set to the directory where LIBOBJS objects are built.
 
16107
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
16108
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
16109
done
 
16110
LIBOBJS=$ac_libobjs
 
16111
 
 
16112
LTLIBOBJS=$ac_ltlibobjs
 
16113
 
 
16114
 
 
16115
 if test -n "$EXEEXT"; then
 
16116
  am__EXEEXT_TRUE=
 
16117
  am__EXEEXT_FALSE='#'
 
16118
else
 
16119
  am__EXEEXT_TRUE='#'
 
16120
  am__EXEEXT_FALSE=
 
16121
fi
 
16122
 
 
16123
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
16124
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
16125
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16126
fi
 
16127
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
16128
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
16129
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16130
fi
 
16131
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16132
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
16133
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16134
fi
 
16135
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16136
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
16137
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16138
fi
 
16139
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16140
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
16141
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16142
fi
 
16143
if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
 
16144
  as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
 
16145
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16146
fi
 
16147
 
 
16148
: "${CONFIG_STATUS=./config.status}"
 
16149
ac_write_fail=0
 
16150
ac_clean_files_save=$ac_clean_files
 
16151
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
16152
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
16153
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16154
as_write_fail=0
 
16155
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
16156
#! $SHELL
 
16157
# Generated by $as_me.
 
16158
# Run this file to recreate the current configuration.
 
16159
# Compiler output produced by configure, useful for debugging
 
16160
# configure, is in config.log if it exists.
 
16161
 
 
16162
debug=false
 
16163
ac_cs_recheck=false
 
16164
ac_cs_silent=false
 
16165
 
 
16166
SHELL=\${CONFIG_SHELL-$SHELL}
 
16167
export SHELL
 
16168
_ASEOF
 
16169
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
16170
## -------------------- ##
 
16171
## M4sh Initialization. ##
 
16172
## -------------------- ##
 
16173
 
 
16174
# Be more Bourne compatible
 
16175
DUALCASE=1; export DUALCASE # for MKS sh
 
16176
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
16177
  emulate sh
 
16178
  NULLCMD=:
 
16179
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
16180
  # is contrary to our usage.  Disable this feature.
 
16181
  alias -g '${1+"$@"}'='"$@"'
 
16182
  setopt NO_GLOB_SUBST
 
16183
else
 
16184
  case `(set -o) 2>/dev/null` in #(
 
16185
  *posix*) :
 
16186
    set -o posix ;; #(
 
16187
  *) :
 
16188
     ;;
 
16189
esac
 
16190
fi
 
16191
 
 
16192
 
 
16193
as_nl='
 
16194
'
 
16195
export as_nl
 
16196
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
16197
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
16198
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
16199
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
16200
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
16201
# but without wasting forks for bash or zsh.
 
16202
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
16203
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16204
  as_echo='print -r --'
 
16205
  as_echo_n='print -rn --'
 
16206
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16207
  as_echo='printf %s\n'
 
16208
  as_echo_n='printf %s'
 
16209
else
 
16210
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
16211
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
16212
    as_echo_n='/usr/ucb/echo -n'
 
16213
  else
 
16214
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
16215
    as_echo_n_body='eval
 
16216
      arg=$1;
 
16217
      case $arg in #(
 
16218
      *"$as_nl"*)
 
16219
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
16220
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
16221
      esac;
 
16222
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
16223
    '
 
16224
    export as_echo_n_body
 
16225
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
16226
  fi
 
16227
  export as_echo_body
 
16228
  as_echo='sh -c $as_echo_body as_echo'
 
16229
fi
 
16230
 
 
16231
# The user is always right.
 
16232
if test "${PATH_SEPARATOR+set}" != set; then
 
16233
  PATH_SEPARATOR=:
 
16234
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
16235
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
16236
      PATH_SEPARATOR=';'
 
16237
  }
 
16238
fi
 
16239
 
 
16240
 
 
16241
# IFS
 
16242
# We need space, tab and new line, in precisely that order.  Quoting is
 
16243
# there to prevent editors from complaining about space-tab.
 
16244
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
16245
# splitting by setting IFS to empty value.)
 
16246
IFS=" ""        $as_nl"
 
16247
 
 
16248
# Find who we are.  Look in the path if we contain no directory separator.
 
16249
as_myself=
 
16250
case $0 in #((
 
16251
  *[\\/]* ) as_myself=$0 ;;
 
16252
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16253
for as_dir in $PATH
 
16254
do
 
16255
  IFS=$as_save_IFS
 
16256
  test -z "$as_dir" && as_dir=.
 
16257
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16258
  done
 
16259
IFS=$as_save_IFS
 
16260
 
 
16261
     ;;
 
16262
esac
 
16263
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
16264
# in which case we are not to be found in the path.
 
16265
if test "x$as_myself" = x; then
 
16266
  as_myself=$0
 
16267
fi
 
16268
if test ! -f "$as_myself"; then
 
16269
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
16270
  exit 1
 
16271
fi
 
16272
 
 
16273
# Unset variables that we do not need and which cause bugs (e.g. in
 
16274
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
16275
# suppresses any "Segmentation fault" message there.  '((' could
 
16276
# trigger a bug in pdksh 5.2.14.
 
16277
for as_var in BASH_ENV ENV MAIL MAILPATH
 
16278
do eval test x\${$as_var+set} = xset \
 
16279
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
16280
done
 
16281
PS1='$ '
 
16282
PS2='> '
 
16283
PS4='+ '
 
16284
 
 
16285
# NLS nuisances.
 
16286
LC_ALL=C
 
16287
export LC_ALL
 
16288
LANGUAGE=C
 
16289
export LANGUAGE
 
16290
 
 
16291
# CDPATH.
 
16292
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16293
 
 
16294
 
 
16295
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
16296
# ----------------------------------------
 
16297
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
16298
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
16299
# script with STATUS, using 1 if that was 0.
 
16300
as_fn_error ()
 
16301
{
 
16302
  as_status=$1; test $as_status -eq 0 && as_status=1
 
16303
  if test "$4"; then
 
16304
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
16305
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
16306
  fi
 
16307
  $as_echo "$as_me: error: $2" >&2
 
16308
  as_fn_exit $as_status
 
16309
} # as_fn_error
 
16310
 
 
16311
 
 
16312
# as_fn_set_status STATUS
 
16313
# -----------------------
 
16314
# Set $? to STATUS, without forking.
 
16315
as_fn_set_status ()
 
16316
{
 
16317
  return $1
 
16318
} # as_fn_set_status
 
16319
 
 
16320
# as_fn_exit STATUS
 
16321
# -----------------
 
16322
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
16323
as_fn_exit ()
 
16324
{
 
16325
  set +e
 
16326
  as_fn_set_status $1
 
16327
  exit $1
 
16328
} # as_fn_exit
 
16329
 
 
16330
# as_fn_unset VAR
 
16331
# ---------------
 
16332
# Portably unset VAR.
 
16333
as_fn_unset ()
 
16334
{
 
16335
  { eval $1=; unset $1;}
 
16336
}
 
16337
as_unset=as_fn_unset
 
16338
# as_fn_append VAR VALUE
 
16339
# ----------------------
 
16340
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
16341
# advantage of any shell optimizations that allow amortized linear growth over
 
16342
# repeated appends, instead of the typical quadratic growth present in naive
 
16343
# implementations.
 
16344
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
16345
  eval 'as_fn_append ()
 
16346
  {
 
16347
    eval $1+=\$2
 
16348
  }'
 
16349
else
 
16350
  as_fn_append ()
 
16351
  {
 
16352
    eval $1=\$$1\$2
 
16353
  }
 
16354
fi # as_fn_append
 
16355
 
 
16356
# as_fn_arith ARG...
 
16357
# ------------------
 
16358
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
16359
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
16360
# must be portable across $(()) and expr.
 
16361
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
16362
  eval 'as_fn_arith ()
 
16363
  {
 
16364
    as_val=$(( $* ))
 
16365
  }'
 
16366
else
 
16367
  as_fn_arith ()
 
16368
  {
 
16369
    as_val=`expr "$@" || test $? -eq 1`
 
16370
  }
 
16371
fi # as_fn_arith
 
16372
 
 
16373
 
 
16374
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
16375
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
16376
  as_expr=expr
 
16377
else
 
16378
  as_expr=false
 
16379
fi
 
16380
 
 
16381
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
16382
  as_basename=basename
 
16383
else
 
16384
  as_basename=false
 
16385
fi
 
16386
 
 
16387
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
16388
  as_dirname=dirname
 
16389
else
 
16390
  as_dirname=false
 
16391
fi
 
16392
 
 
16393
as_me=`$as_basename -- "$0" ||
 
16394
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
16395
         X"$0" : 'X\(//\)$' \| \
 
16396
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
16397
$as_echo X/"$0" |
 
16398
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
16399
            s//\1/
 
16400
            q
 
16401
          }
 
16402
          /^X\/\(\/\/\)$/{
 
16403
            s//\1/
 
16404
            q
 
16405
          }
 
16406
          /^X\/\(\/\).*/{
 
16407
            s//\1/
 
16408
            q
 
16409
          }
 
16410
          s/.*/./; q'`
 
16411
 
 
16412
# Avoid depending upon Character Ranges.
 
16413
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
16414
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
16415
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
16416
as_cr_digits='0123456789'
 
16417
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16418
 
 
16419
ECHO_C= ECHO_N= ECHO_T=
 
16420
case `echo -n x` in #(((((
 
16421
-n*)
 
16422
  case `echo 'xy\c'` in
 
16423
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
16424
  xy)  ECHO_C='\c';;
 
16425
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
16426
       ECHO_T=' ';;
 
16427
  esac;;
 
16428
*)
 
16429
  ECHO_N='-n';;
 
16430
esac
 
16431
 
 
16432
rm -f conf$$ conf$$.exe conf$$.file
 
16433
if test -d conf$$.dir; then
 
16434
  rm -f conf$$.dir/conf$$.file
 
16435
else
 
16436
  rm -f conf$$.dir
 
16437
  mkdir conf$$.dir 2>/dev/null
 
16438
fi
 
16439
if (echo >conf$$.file) 2>/dev/null; then
 
16440
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16441
    as_ln_s='ln -s'
 
16442
    # ... but there are two gotchas:
 
16443
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
16444
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
16445
    # In both cases, we have to default to `cp -p'.
 
16446
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
16447
      as_ln_s='cp -p'
 
16448
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
16449
    as_ln_s=ln
 
16450
  else
 
16451
    as_ln_s='cp -p'
 
16452
  fi
 
16453
else
 
16454
  as_ln_s='cp -p'
 
16455
fi
 
16456
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
16457
rmdir conf$$.dir 2>/dev/null
 
16458
 
 
16459
 
 
16460
# as_fn_mkdir_p
 
16461
# -------------
 
16462
# Create "$as_dir" as a directory, including parents if necessary.
 
16463
as_fn_mkdir_p ()
 
16464
{
 
16465
 
 
16466
  case $as_dir in #(
 
16467
  -*) as_dir=./$as_dir;;
 
16468
  esac
 
16469
  test -d "$as_dir" || eval $as_mkdir_p || {
 
16470
    as_dirs=
 
16471
    while :; do
 
16472
      case $as_dir in #(
 
16473
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
16474
      *) as_qdir=$as_dir;;
 
16475
      esac
 
16476
      as_dirs="'$as_qdir' $as_dirs"
 
16477
      as_dir=`$as_dirname -- "$as_dir" ||
 
16478
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16479
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16480
         X"$as_dir" : 'X\(//\)$' \| \
 
16481
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
16482
$as_echo X"$as_dir" |
 
16483
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16484
            s//\1/
 
16485
            q
 
16486
          }
 
16487
          /^X\(\/\/\)[^/].*/{
 
16488
            s//\1/
 
16489
            q
 
16490
          }
 
16491
          /^X\(\/\/\)$/{
 
16492
            s//\1/
 
16493
            q
 
16494
          }
 
16495
          /^X\(\/\).*/{
 
16496
            s//\1/
 
16497
            q
 
16498
          }
 
16499
          s/.*/./; q'`
 
16500
      test -d "$as_dir" && break
 
16501
    done
 
16502
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
16503
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
16504
 
 
16505
 
 
16506
} # as_fn_mkdir_p
 
16507
if mkdir -p . 2>/dev/null; then
 
16508
  as_mkdir_p='mkdir -p "$as_dir"'
 
16509
else
 
16510
  test -d ./-p && rmdir ./-p
 
16511
  as_mkdir_p=false
 
16512
fi
 
16513
 
 
16514
if test -x / >/dev/null 2>&1; then
 
16515
  as_test_x='test -x'
 
16516
else
 
16517
  if ls -dL / >/dev/null 2>&1; then
 
16518
    as_ls_L_option=L
 
16519
  else
 
16520
    as_ls_L_option=
 
16521
  fi
 
16522
  as_test_x='
 
16523
    eval sh -c '\''
 
16524
      if test -d "$1"; then
 
16525
        test -d "$1/.";
 
16526
      else
 
16527
        case $1 in #(
 
16528
        -*)set "./$1";;
 
16529
        esac;
 
16530
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
16531
        ???[sx]*):;;*)false;;esac;fi
 
16532
    '\'' sh
 
16533
  '
 
16534
fi
 
16535
as_executable_p=$as_test_x
 
16536
 
 
16537
# Sed expression to map a string onto a valid CPP name.
 
16538
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
16539
 
 
16540
# Sed expression to map a string onto a valid variable name.
 
16541
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
16542
 
 
16543
 
 
16544
exec 6>&1
 
16545
## ----------------------------------- ##
 
16546
## Main body of $CONFIG_STATUS script. ##
 
16547
## ----------------------------------- ##
 
16548
_ASEOF
 
16549
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
16550
 
 
16551
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16552
# Save the log message, to keep $0 and so on meaningful, and to
 
16553
# report actual input values of CONFIG_FILES etc. instead of their
 
16554
# values after options handling.
 
16555
ac_log="
 
16556
This file was extended by Kernel device emulation $as_me 1.0.9.1, which was
 
16557
generated by GNU Autoconf 2.68.  Invocation command line was
 
16558
 
 
16559
  CONFIG_FILES    = $CONFIG_FILES
 
16560
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
16561
  CONFIG_LINKS    = $CONFIG_LINKS
 
16562
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
16563
  $ $0 $@
 
16564
 
 
16565
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
16566
"
 
16567
 
 
16568
_ACEOF
 
16569
 
 
16570
case $ac_config_files in *"
 
16571
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
16572
esac
 
16573
 
 
16574
case $ac_config_headers in *"
 
16575
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
16576
esac
 
16577
 
 
16578
 
 
16579
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16580
# Files that config.status was made for.
 
16581
config_files="$ac_config_files"
 
16582
config_headers="$ac_config_headers"
 
16583
config_commands="$ac_config_commands"
 
16584
 
 
16585
_ACEOF
 
16586
 
 
16587
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16588
ac_cs_usage="\
 
16589
\`$as_me' instantiates files and other configuration actions
 
16590
from templates according to the current configuration.  Unless the files
 
16591
and actions are specified as TAGs, all are instantiated by default.
 
16592
 
 
16593
Usage: $0 [OPTION]... [TAG]...
 
16594
 
 
16595
  -h, --help       print this help, then exit
 
16596
  -V, --version    print version number and configuration settings, then exit
 
16597
      --config     print configuration, then exit
 
16598
  -q, --quiet, --silent
 
16599
                   do not print progress messages
 
16600
  -d, --debug      don't remove temporary files
 
16601
      --recheck    update $as_me by reconfiguring in the same conditions
 
16602
      --file=FILE[:TEMPLATE]
 
16603
                   instantiate the configuration file FILE
 
16604
      --header=FILE[:TEMPLATE]
 
16605
                   instantiate the configuration header FILE
 
16606
 
 
16607
Configuration files:
 
16608
$config_files
 
16609
 
 
16610
Configuration headers:
 
16611
$config_headers
 
16612
 
 
16613
Configuration commands:
 
16614
$config_commands
 
16615
 
 
16616
Report bugs to the package provider."
 
16617
 
 
16618
_ACEOF
 
16619
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16620
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
16621
ac_cs_version="\\
 
16622
Kernel device emulation config.status 1.0.9.1
 
16623
configured by $0, generated by GNU Autoconf 2.68,
 
16624
  with options \\"\$ac_cs_config\\"
 
16625
 
 
16626
Copyright (C) 2010 Free Software Foundation, Inc.
 
16627
This config.status script is free software; the Free Software Foundation
 
16628
gives unlimited permission to copy, distribute and modify it."
 
16629
 
 
16630
ac_pwd='$ac_pwd'
 
16631
srcdir='$srcdir'
 
16632
INSTALL='$INSTALL'
 
16633
MKDIR_P='$MKDIR_P'
 
16634
AWK='$AWK'
 
16635
test -n "\$AWK" || AWK=awk
 
16636
_ACEOF
 
16637
 
 
16638
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16639
# The default lists apply if the user does not specify any file.
 
16640
ac_need_defaults=:
 
16641
while test $# != 0
 
16642
do
 
16643
  case $1 in
 
16644
  --*=?*)
 
16645
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16646
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
16647
    ac_shift=:
 
16648
    ;;
 
16649
  --*=)
 
16650
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16651
    ac_optarg=
 
16652
    ac_shift=:
 
16653
    ;;
 
16654
  *)
 
16655
    ac_option=$1
 
16656
    ac_optarg=$2
 
16657
    ac_shift=shift
 
16658
    ;;
 
16659
  esac
 
16660
 
 
16661
  case $ac_option in
 
16662
  # Handling of the options.
 
16663
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
16664
    ac_cs_recheck=: ;;
 
16665
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
16666
    $as_echo "$ac_cs_version"; exit ;;
 
16667
  --config | --confi | --conf | --con | --co | --c )
 
16668
    $as_echo "$ac_cs_config"; exit ;;
 
16669
  --debug | --debu | --deb | --de | --d | -d )
 
16670
    debug=: ;;
 
16671
  --file | --fil | --fi | --f )
 
16672
    $ac_shift
 
16673
    case $ac_optarg in
 
16674
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16675
    '') as_fn_error $? "missing file argument" ;;
 
16676
    esac
 
16677
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
16678
    ac_need_defaults=false;;
 
16679
  --header | --heade | --head | --hea )
 
16680
    $ac_shift
 
16681
    case $ac_optarg in
 
16682
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16683
    esac
 
16684
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
16685
    ac_need_defaults=false;;
 
16686
  --he | --h)
 
16687
    # Conflict between --help and --header
 
16688
    as_fn_error $? "ambiguous option: \`$1'
 
16689
Try \`$0 --help' for more information.";;
 
16690
  --help | --hel | -h )
 
16691
    $as_echo "$ac_cs_usage"; exit ;;
 
16692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
16693
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
16694
    ac_cs_silent=: ;;
 
16695
 
 
16696
  # This is an error.
 
16697
  -*) as_fn_error $? "unrecognized option: \`$1'
 
16698
Try \`$0 --help' for more information." ;;
 
16699
 
 
16700
  *) as_fn_append ac_config_targets " $1"
 
16701
     ac_need_defaults=false ;;
 
16702
 
 
16703
  esac
 
16704
  shift
 
16705
done
 
16706
 
 
16707
ac_configure_extra_args=
 
16708
 
 
16709
if $ac_cs_silent; then
 
16710
  exec 6>/dev/null
 
16711
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
16712
fi
 
16713
 
 
16714
_ACEOF
 
16715
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16716
if \$ac_cs_recheck; then
 
16717
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
16718
  shift
 
16719
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
16720
  CONFIG_SHELL='$SHELL'
 
16721
  export CONFIG_SHELL
 
16722
  exec "\$@"
 
16723
fi
 
16724
 
 
16725
_ACEOF
 
16726
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16727
exec 5>>config.log
 
16728
{
 
16729
  echo
 
16730
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
16731
## Running $as_me. ##
 
16732
_ASBOX
 
16733
  $as_echo "$ac_log"
 
16734
} >&5
 
16735
 
 
16736
_ACEOF
 
16737
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16738
#
 
16739
# INIT-COMMANDS
 
16740
#
 
16741
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
16742
 
 
16743
 
 
16744
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16745
# if CDPATH is set.
 
16746
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16747
 
 
16748
sed_quote_subst='$sed_quote_subst'
 
16749
double_quote_subst='$double_quote_subst'
 
16750
delay_variable_subst='$delay_variable_subst'
 
16751
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
16752
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
16753
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
16754
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
16755
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
16756
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
16757
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
16758
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
16759
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
16760
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
16761
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
16762
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
16763
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
16764
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
16765
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
16766
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
16767
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
16768
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
16769
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
16770
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
16771
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
16772
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
16773
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
16774
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
16775
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
16776
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
16777
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
16778
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
16779
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
16780
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16781
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16782
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
16783
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
16784
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
16785
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
16786
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
16787
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
16788
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
16789
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
16790
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
16791
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
16792
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
16793
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
16794
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
16795
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
16796
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16797
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16798
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16799
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
16800
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
16801
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
16802
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
16803
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
16804
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
16805
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
16806
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
16807
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"`'
 
16808
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16809
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
16810
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
16811
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
16812
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
16813
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
16814
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
16815
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
16816
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
16817
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
16818
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
16819
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
16820
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
16821
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
16822
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
16823
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
16824
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
16825
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
16826
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16827
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
16828
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
16829
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16830
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16831
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
16832
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
16833
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16834
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16835
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16836
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
16837
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16838
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
16839
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16840
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16841
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16842
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
16843
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
16844
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
16845
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
16846
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16847
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
16848
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
16849
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
16850
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
16851
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
16852
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
16853
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
16854
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
16855
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
16856
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16857
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
16858
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
16859
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
16860
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
16861
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
16862
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16863
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
16864
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
16865
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
16866
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
16867
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
16868
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16869
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16870
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
16871
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
16872
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
16873
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
16874
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
16875
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
16876
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
16877
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
16878
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
16879
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
16880
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
16881
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
16882
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
16883
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
16884
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
16885
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
16886
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
16887
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
16888
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16889
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16890
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16891
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
16892
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
16893
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16894
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
16895
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
16896
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
16897
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
16898
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
16899
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
16900
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16901
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16902
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
16903
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16904
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16905
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16906
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16907
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16908
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16909
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
16910
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16911
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16912
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16913
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
16914
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
16915
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
16916
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
16917
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
16918
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
16919
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
16920
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
16921
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
16922
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16923
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16924
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16925
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16926
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16927
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16928
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
16929
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
16930
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16931
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16932
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16933
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16934
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
16935
 
 
16936
LTCC='$LTCC'
 
16937
LTCFLAGS='$LTCFLAGS'
 
16938
compiler='$compiler_DEFAULT'
 
16939
 
 
16940
# A function that is used when there is no print builtin or printf.
 
16941
func_fallback_echo ()
 
16942
{
 
16943
  eval 'cat <<_LTECHO_EOF
 
16944
\$1
 
16945
_LTECHO_EOF'
 
16946
}
 
16947
 
 
16948
# Quote evaled strings.
 
16949
for var in SHELL \
 
16950
ECHO \
 
16951
PATH_SEPARATOR \
 
16952
SED \
 
16953
GREP \
 
16954
EGREP \
 
16955
FGREP \
 
16956
LD \
 
16957
NM \
 
16958
LN_S \
 
16959
lt_SP2NL \
 
16960
lt_NL2SP \
 
16961
reload_flag \
 
16962
OBJDUMP \
 
16963
deplibs_check_method \
 
16964
file_magic_cmd \
 
16965
file_magic_glob \
 
16966
want_nocaseglob \
 
16967
DLLTOOL \
 
16968
sharedlib_from_linklib_cmd \
 
16969
AR \
 
16970
AR_FLAGS \
 
16971
archiver_list_spec \
 
16972
STRIP \
 
16973
RANLIB \
 
16974
CC \
 
16975
CFLAGS \
 
16976
compiler \
 
16977
lt_cv_sys_global_symbol_pipe \
 
16978
lt_cv_sys_global_symbol_to_cdecl \
 
16979
lt_cv_sys_global_symbol_to_c_name_address \
 
16980
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
16981
nm_file_list_spec \
 
16982
lt_prog_compiler_no_builtin_flag \
 
16983
lt_prog_compiler_pic \
 
16984
lt_prog_compiler_wl \
 
16985
lt_prog_compiler_static \
 
16986
lt_cv_prog_compiler_c_o \
 
16987
need_locks \
 
16988
MANIFEST_TOOL \
 
16989
DSYMUTIL \
 
16990
NMEDIT \
 
16991
LIPO \
 
16992
OTOOL \
 
16993
OTOOL64 \
 
16994
shrext_cmds \
 
16995
export_dynamic_flag_spec \
 
16996
whole_archive_flag_spec \
 
16997
compiler_needs_object \
 
16998
with_gnu_ld \
 
16999
allow_undefined_flag \
 
17000
no_undefined_flag \
 
17001
hardcode_libdir_flag_spec \
 
17002
hardcode_libdir_separator \
 
17003
exclude_expsyms \
 
17004
include_expsyms \
 
17005
file_list_spec \
 
17006
variables_saved_for_relink \
 
17007
libname_spec \
 
17008
library_names_spec \
 
17009
soname_spec \
 
17010
install_override_mode \
 
17011
finish_eval \
 
17012
old_striplib \
 
17013
striplib \
 
17014
compiler_lib_search_dirs \
 
17015
predep_objects \
 
17016
postdep_objects \
 
17017
predeps \
 
17018
postdeps \
 
17019
compiler_lib_search_path \
 
17020
LD_CXX \
 
17021
reload_flag_CXX \
 
17022
compiler_CXX \
 
17023
lt_prog_compiler_no_builtin_flag_CXX \
 
17024
lt_prog_compiler_pic_CXX \
 
17025
lt_prog_compiler_wl_CXX \
 
17026
lt_prog_compiler_static_CXX \
 
17027
lt_cv_prog_compiler_c_o_CXX \
 
17028
export_dynamic_flag_spec_CXX \
 
17029
whole_archive_flag_spec_CXX \
 
17030
compiler_needs_object_CXX \
 
17031
with_gnu_ld_CXX \
 
17032
allow_undefined_flag_CXX \
 
17033
no_undefined_flag_CXX \
 
17034
hardcode_libdir_flag_spec_CXX \
 
17035
hardcode_libdir_separator_CXX \
 
17036
exclude_expsyms_CXX \
 
17037
include_expsyms_CXX \
 
17038
file_list_spec_CXX \
 
17039
compiler_lib_search_dirs_CXX \
 
17040
predep_objects_CXX \
 
17041
postdep_objects_CXX \
 
17042
predeps_CXX \
 
17043
postdeps_CXX \
 
17044
compiler_lib_search_path_CXX; do
 
17045
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17046
    *[\\\\\\\`\\"\\\$]*)
 
17047
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
17048
      ;;
 
17049
    *)
 
17050
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17051
      ;;
 
17052
    esac
 
17053
done
 
17054
 
 
17055
# Double-quote double-evaled strings.
 
17056
for var in reload_cmds \
 
17057
old_postinstall_cmds \
 
17058
old_postuninstall_cmds \
 
17059
old_archive_cmds \
 
17060
extract_expsyms_cmds \
 
17061
old_archive_from_new_cmds \
 
17062
old_archive_from_expsyms_cmds \
 
17063
archive_cmds \
 
17064
archive_expsym_cmds \
 
17065
module_cmds \
 
17066
module_expsym_cmds \
 
17067
export_symbols_cmds \
 
17068
prelink_cmds \
 
17069
postlink_cmds \
 
17070
postinstall_cmds \
 
17071
postuninstall_cmds \
 
17072
finish_cmds \
 
17073
sys_lib_search_path_spec \
 
17074
sys_lib_dlsearch_path_spec \
 
17075
reload_cmds_CXX \
 
17076
old_archive_cmds_CXX \
 
17077
old_archive_from_new_cmds_CXX \
 
17078
old_archive_from_expsyms_cmds_CXX \
 
17079
archive_cmds_CXX \
 
17080
archive_expsym_cmds_CXX \
 
17081
module_cmds_CXX \
 
17082
module_expsym_cmds_CXX \
 
17083
export_symbols_cmds_CXX \
 
17084
prelink_cmds_CXX \
 
17085
postlink_cmds_CXX; do
 
17086
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17087
    *[\\\\\\\`\\"\\\$]*)
 
17088
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
17089
      ;;
 
17090
    *)
 
17091
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17092
      ;;
 
17093
    esac
 
17094
done
 
17095
 
 
17096
ac_aux_dir='$ac_aux_dir'
 
17097
xsi_shell='$xsi_shell'
 
17098
lt_shell_append='$lt_shell_append'
 
17099
 
 
17100
# See if we are running on zsh, and set the options which allow our
 
17101
# commands through without removal of \ escapes INIT.
 
17102
if test -n "\${ZSH_VERSION+set}" ; then
 
17103
   setopt NO_GLOB_SUBST
 
17104
fi
 
17105
 
 
17106
 
 
17107
    PACKAGE='$PACKAGE'
 
17108
    VERSION='$VERSION'
 
17109
    TIMESTAMP='$TIMESTAMP'
 
17110
    RM='$RM'
 
17111
    ofile='$ofile'
 
17112
 
 
17113
 
 
17114
 
 
17115
 
 
17116
 
 
17117
 
 
17118
_ACEOF
 
17119
 
 
17120
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17121
 
 
17122
# Handling of arguments.
 
17123
for ac_config_target in $ac_config_targets
 
17124
do
 
17125
  case $ac_config_target in
 
17126
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
17127
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
17128
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
17129
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17130
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
17131
    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
 
17132
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
17133
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
17134
    "evemu.pc") CONFIG_FILES="$CONFIG_FILES evemu.pc" ;;
 
17135
 
 
17136
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
17137
  esac
 
17138
done
 
17139
 
 
17140
 
 
17141
# If the user did not use the arguments to specify the items to instantiate,
 
17142
# then the envvar interface is used.  Set only those that are not.
 
17143
# We use the long form for the default assignment because of an extremely
 
17144
# bizarre bug on SunOS 4.1.3.
 
17145
if $ac_need_defaults; then
 
17146
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
17147
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
17148
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
17149
fi
 
17150
 
 
17151
# Have a temporary directory for convenience.  Make it in the build tree
 
17152
# simply because there is no reason against having it here, and in addition,
 
17153
# creating and moving files from /tmp can sometimes cause problems.
 
17154
# Hook for its removal unless debugging.
 
17155
# Note that there is a small window in which the directory will not be cleaned:
 
17156
# after its creation but before its name has been assigned to `$tmp'.
 
17157
$debug ||
 
17158
{
 
17159
  tmp= ac_tmp=
 
17160
  trap 'exit_status=$?
 
17161
  : "${ac_tmp:=$tmp}"
 
17162
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
17163
' 0
 
17164
  trap 'as_fn_exit 1' 1 2 13 15
 
17165
}
 
17166
# Create a (secure) tmp directory for tmp files.
 
17167
 
 
17168
{
 
17169
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
17170
  test -d "$tmp"
 
17171
}  ||
 
17172
{
 
17173
  tmp=./conf$$-$RANDOM
 
17174
  (umask 077 && mkdir "$tmp")
 
17175
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
17176
ac_tmp=$tmp
 
17177
 
 
17178
# Set up the scripts for CONFIG_FILES section.
 
17179
# No need to generate them if there are no CONFIG_FILES.
 
17180
# This happens for instance with `./config.status config.h'.
 
17181
if test -n "$CONFIG_FILES"; then
 
17182
 
 
17183
 
 
17184
ac_cr=`echo X | tr X '\015'`
 
17185
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
17186
# But we know of no other shell where ac_cr would be empty at this
 
17187
# point, so we can use a bashism as a fallback.
 
17188
if test "x$ac_cr" = x; then
 
17189
  eval ac_cr=\$\'\\r\'
 
17190
fi
 
17191
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
17192
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
17193
  ac_cs_awk_cr='\\r'
 
17194
else
 
17195
  ac_cs_awk_cr=$ac_cr
 
17196
fi
 
17197
 
 
17198
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
17199
_ACEOF
 
17200
 
 
17201
 
 
17202
{
 
17203
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
17204
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
17205
  echo "_ACEOF"
 
17206
} >conf$$subs.sh ||
 
17207
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17208
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
17209
ac_delim='%!_!# '
 
17210
for ac_last_try in false false false false false :; do
 
17211
  . ./conf$$subs.sh ||
 
17212
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17213
 
 
17214
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
17215
  if test $ac_delim_n = $ac_delim_num; then
 
17216
    break
 
17217
  elif $ac_last_try; then
 
17218
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17219
  else
 
17220
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17221
  fi
 
17222
done
 
17223
rm -f conf$$subs.sh
 
17224
 
 
17225
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17226
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
17227
_ACEOF
 
17228
sed -n '
 
17229
h
 
17230
s/^/S["/; s/!.*/"]=/
 
17231
p
 
17232
g
 
17233
s/^[^!]*!//
 
17234
:repl
 
17235
t repl
 
17236
s/'"$ac_delim"'$//
 
17237
t delim
 
17238
:nl
 
17239
h
 
17240
s/\(.\{148\}\)..*/\1/
 
17241
t more1
 
17242
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
17243
p
 
17244
n
 
17245
b repl
 
17246
:more1
 
17247
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17248
p
 
17249
g
 
17250
s/.\{148\}//
 
17251
t nl
 
17252
:delim
 
17253
h
 
17254
s/\(.\{148\}\)..*/\1/
 
17255
t more2
 
17256
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
17257
p
 
17258
b
 
17259
:more2
 
17260
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17261
p
 
17262
g
 
17263
s/.\{148\}//
 
17264
t delim
 
17265
' <conf$$subs.awk | sed '
 
17266
/^[^""]/{
 
17267
  N
 
17268
  s/\n//
 
17269
}
 
17270
' >>$CONFIG_STATUS || ac_write_fail=1
 
17271
rm -f conf$$subs.awk
 
17272
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17273
_ACAWK
 
17274
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
17275
  for (key in S) S_is_set[key] = 1
 
17276
  FS = ""
 
17277
 
 
17278
}
 
17279
{
 
17280
  line = $ 0
 
17281
  nfields = split(line, field, "@")
 
17282
  substed = 0
 
17283
  len = length(field[1])
 
17284
  for (i = 2; i < nfields; i++) {
 
17285
    key = field[i]
 
17286
    keylen = length(key)
 
17287
    if (S_is_set[key]) {
 
17288
      value = S[key]
 
17289
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
17290
      len += length(value) + length(field[++i])
 
17291
      substed = 1
 
17292
    } else
 
17293
      len += 1 + keylen
 
17294
  }
 
17295
 
 
17296
  print line
 
17297
}
 
17298
 
 
17299
_ACAWK
 
17300
_ACEOF
 
17301
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17302
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
17303
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
17304
else
 
17305
  cat
 
17306
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
17307
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
17308
_ACEOF
 
17309
 
 
17310
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
17311
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
17312
# trailing colons and then remove the whole line if VPATH becomes empty
 
17313
# (actually we leave an empty line to preserve line numbers).
 
17314
if test "x$srcdir" = x.; then
 
17315
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
17316
h
 
17317
s///
 
17318
s/^/:/
 
17319
s/[      ]*$/:/
 
17320
s/:\$(srcdir):/:/g
 
17321
s/:\${srcdir}:/:/g
 
17322
s/:@srcdir@:/:/g
 
17323
s/^:*//
 
17324
s/:*$//
 
17325
x
 
17326
s/\(=[   ]*\).*/\1/
 
17327
G
 
17328
s/\n//
 
17329
s/^[^=]*=[       ]*$//
 
17330
}'
 
17331
fi
 
17332
 
 
17333
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17334
fi # test -n "$CONFIG_FILES"
 
17335
 
 
17336
# Set up the scripts for CONFIG_HEADERS section.
 
17337
# No need to generate them if there are no CONFIG_HEADERS.
 
17338
# This happens for instance with `./config.status Makefile'.
 
17339
if test -n "$CONFIG_HEADERS"; then
 
17340
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
17341
BEGIN {
 
17342
_ACEOF
 
17343
 
 
17344
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
17345
# here-document in config.status, that substitutes the proper values into
 
17346
# config.h.in to produce config.h.
 
17347
 
 
17348
# Create a delimiter string that does not exist in confdefs.h, to ease
 
17349
# handling of long lines.
 
17350
ac_delim='%!_!# '
 
17351
for ac_last_try in false false :; do
 
17352
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
17353
  if test -z "$ac_tt"; then
 
17354
    break
 
17355
  elif $ac_last_try; then
 
17356
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
17357
  else
 
17358
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17359
  fi
 
17360
done
 
17361
 
 
17362
# For the awk script, D is an array of macro values keyed by name,
 
17363
# likewise P contains macro parameters if any.  Preserve backslash
 
17364
# newline sequences.
 
17365
 
 
17366
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
17367
sed -n '
 
17368
s/.\{148\}/&'"$ac_delim"'/g
 
17369
t rset
 
17370
:rset
 
17371
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
17372
t def
 
17373
d
 
17374
:def
 
17375
s/\\$//
 
17376
t bsnl
 
17377
s/["\\]/\\&/g
 
17378
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17379
D["\1"]=" \3"/p
 
17380
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
17381
d
 
17382
:bsnl
 
17383
s/["\\]/\\&/g
 
17384
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17385
D["\1"]=" \3\\\\\\n"\\/p
 
17386
t cont
 
17387
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
17388
t cont
 
17389
d
 
17390
:cont
 
17391
n
 
17392
s/.\{148\}/&'"$ac_delim"'/g
 
17393
t clear
 
17394
:clear
 
17395
s/\\$//
 
17396
t bsnlc
 
17397
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
17398
d
 
17399
:bsnlc
 
17400
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
17401
b cont
 
17402
' <confdefs.h | sed '
 
17403
s/'"$ac_delim"'/"\\\
 
17404
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
17405
 
 
17406
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17407
  for (key in D) D_is_set[key] = 1
 
17408
  FS = ""
 
17409
}
 
17410
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
17411
  line = \$ 0
 
17412
  split(line, arg, " ")
 
17413
  if (arg[1] == "#") {
 
17414
    defundef = arg[2]
 
17415
    mac1 = arg[3]
 
17416
  } else {
 
17417
    defundef = substr(arg[1], 2)
 
17418
    mac1 = arg[2]
 
17419
  }
 
17420
  split(mac1, mac2, "(") #)
 
17421
  macro = mac2[1]
 
17422
  prefix = substr(line, 1, index(line, defundef) - 1)
 
17423
  if (D_is_set[macro]) {
 
17424
    # Preserve the white space surrounding the "#".
 
17425
    print prefix "define", macro P[macro] D[macro]
 
17426
    next
 
17427
  } else {
 
17428
    # Replace #undef with comments.  This is necessary, for example,
 
17429
    # in the case of _POSIX_SOURCE, which is predefined and required
 
17430
    # on some systems where configure will not decide to define it.
 
17431
    if (defundef == "undef") {
 
17432
      print "/*", prefix defundef, macro, "*/"
 
17433
      next
 
17434
    }
 
17435
  }
 
17436
}
 
17437
{ print }
 
17438
_ACAWK
 
17439
_ACEOF
 
17440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17441
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
17442
fi # test -n "$CONFIG_HEADERS"
 
17443
 
 
17444
 
 
17445
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
17446
shift
 
17447
for ac_tag
 
17448
do
 
17449
  case $ac_tag in
 
17450
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
17451
  esac
 
17452
  case $ac_mode$ac_tag in
 
17453
  :[FHL]*:*);;
 
17454
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
17455
  :[FH]-) ac_tag=-:-;;
 
17456
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
17457
  esac
 
17458
  ac_save_IFS=$IFS
 
17459
  IFS=:
 
17460
  set x $ac_tag
 
17461
  IFS=$ac_save_IFS
 
17462
  shift
 
17463
  ac_file=$1
 
17464
  shift
 
17465
 
 
17466
  case $ac_mode in
 
17467
  :L) ac_source=$1;;
 
17468
  :[FH])
 
17469
    ac_file_inputs=
 
17470
    for ac_f
 
17471
    do
 
17472
      case $ac_f in
 
17473
      -) ac_f="$ac_tmp/stdin";;
 
17474
      *) # Look for the file first in the build tree, then in the source tree
 
17475
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
17476
         # because $ac_f cannot contain `:'.
 
17477
         test -f "$ac_f" ||
 
17478
           case $ac_f in
 
17479
           [\\/$]*) false;;
 
17480
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
17481
           esac ||
 
17482
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
17483
      esac
 
17484
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
17485
      as_fn_append ac_file_inputs " '$ac_f'"
 
17486
    done
 
17487
 
 
17488
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17489
    # use $as_me), people would be surprised to read:
 
17490
    #    /* config.h.  Generated by config.status.  */
 
17491
    configure_input='Generated from '`
 
17492
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
17493
        `' by configure.'
 
17494
    if test x"$ac_file" != x-; then
 
17495
      configure_input="$ac_file.  $configure_input"
 
17496
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
17497
$as_echo "$as_me: creating $ac_file" >&6;}
 
17498
    fi
 
17499
    # Neutralize special characters interpreted by sed in replacement strings.
 
17500
    case $configure_input in #(
 
17501
    *\&* | *\|* | *\\* )
 
17502
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
17503
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
17504
    *) ac_sed_conf_input=$configure_input;;
 
17505
    esac
 
17506
 
 
17507
    case $ac_tag in
 
17508
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
17509
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
17510
    esac
 
17511
    ;;
 
17512
  esac
 
17513
 
 
17514
  ac_dir=`$as_dirname -- "$ac_file" ||
 
17515
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17516
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17517
         X"$ac_file" : 'X\(//\)$' \| \
 
17518
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
17519
$as_echo X"$ac_file" |
 
17520
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17521
            s//\1/
 
17522
            q
 
17523
          }
 
17524
          /^X\(\/\/\)[^/].*/{
 
17525
            s//\1/
 
17526
            q
 
17527
          }
 
17528
          /^X\(\/\/\)$/{
 
17529
            s//\1/
 
17530
            q
 
17531
          }
 
17532
          /^X\(\/\).*/{
 
17533
            s//\1/
 
17534
            q
 
17535
          }
 
17536
          s/.*/./; q'`
 
17537
  as_dir="$ac_dir"; as_fn_mkdir_p
 
17538
  ac_builddir=.
 
17539
 
 
17540
case "$ac_dir" in
 
17541
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17542
*)
 
17543
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
17544
  # A ".." for each directory in $ac_dir_suffix.
 
17545
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
17546
  case $ac_top_builddir_sub in
 
17547
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17548
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
17549
  esac ;;
 
17550
esac
 
17551
ac_abs_top_builddir=$ac_pwd
 
17552
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
17553
# for backward compatibility:
 
17554
ac_top_builddir=$ac_top_build_prefix
 
17555
 
 
17556
case $srcdir in
 
17557
  .)  # We are building in place.
 
17558
    ac_srcdir=.
 
17559
    ac_top_srcdir=$ac_top_builddir_sub
 
17560
    ac_abs_top_srcdir=$ac_pwd ;;
 
17561
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
17562
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17563
    ac_top_srcdir=$srcdir
 
17564
    ac_abs_top_srcdir=$srcdir ;;
 
17565
  *) # Relative name.
 
17566
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
17567
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
17568
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
17569
esac
 
17570
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
17571
 
 
17572
 
 
17573
  case $ac_mode in
 
17574
  :F)
 
17575
  #
 
17576
  # CONFIG_FILE
 
17577
  #
 
17578
 
 
17579
  case $INSTALL in
 
17580
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
17581
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
17582
  esac
 
17583
  ac_MKDIR_P=$MKDIR_P
 
17584
  case $MKDIR_P in
 
17585
  [\\/$]* | ?:[\\/]* ) ;;
 
17586
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
17587
  esac
 
17588
_ACEOF
 
17589
 
 
17590
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17591
# If the template does not know about datarootdir, expand it.
 
17592
# FIXME: This hack should be removed a few years after 2.60.
 
17593
ac_datarootdir_hack=; ac_datarootdir_seen=
 
17594
ac_sed_dataroot='
 
17595
/datarootdir/ {
 
17596
  p
 
17597
  q
 
17598
}
 
17599
/@datadir@/p
 
17600
/@docdir@/p
 
17601
/@infodir@/p
 
17602
/@localedir@/p
 
17603
/@mandir@/p'
 
17604
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
17605
*datarootdir*) ac_datarootdir_seen=yes;;
 
17606
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
17607
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
17608
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
17609
_ACEOF
 
17610
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17611
  ac_datarootdir_hack='
 
17612
  s&@datadir@&$datadir&g
 
17613
  s&@docdir@&$docdir&g
 
17614
  s&@infodir@&$infodir&g
 
17615
  s&@localedir@&$localedir&g
 
17616
  s&@mandir@&$mandir&g
 
17617
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
17618
esac
 
17619
_ACEOF
 
17620
 
 
17621
# Neutralize VPATH when `$srcdir' = `.'.
 
17622
# Shell code in configure.ac might set extrasub.
 
17623
# FIXME: do we really want to maintain this feature?
 
17624
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17625
ac_sed_extra="$ac_vpsub
 
17626
$extrasub
 
17627
_ACEOF
 
17628
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17629
:t
 
17630
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
17631
s|@configure_input@|$ac_sed_conf_input|;t t
 
17632
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
17633
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
17634
s&@srcdir@&$ac_srcdir&;t t
 
17635
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
17636
s&@top_srcdir@&$ac_top_srcdir&;t t
 
17637
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
17638
s&@builddir@&$ac_builddir&;t t
 
17639
s&@abs_builddir@&$ac_abs_builddir&;t t
 
17640
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
17641
s&@INSTALL@&$ac_INSTALL&;t t
 
17642
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
17643
$ac_datarootdir_hack
 
17644
"
 
17645
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
17646
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17647
 
 
17648
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
17649
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
17650
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
17651
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
17652
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17653
which seems to be undefined.  Please make sure it is defined" >&5
 
17654
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17655
which seems to be undefined.  Please make sure it is defined" >&2;}
 
17656
 
 
17657
  rm -f "$ac_tmp/stdin"
 
17658
  case $ac_file in
 
17659
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
17660
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
17661
  esac \
 
17662
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17663
 ;;
 
17664
  :H)
 
17665
  #
 
17666
  # CONFIG_HEADER
 
17667
  #
 
17668
  if test x"$ac_file" != x-; then
 
17669
    {
 
17670
      $as_echo "/* $configure_input  */" \
 
17671
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
17672
    } >"$ac_tmp/config.h" \
 
17673
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17674
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
17675
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
17676
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
17677
    else
 
17678
      rm -f "$ac_file"
 
17679
      mv "$ac_tmp/config.h" "$ac_file" \
 
17680
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17681
    fi
 
17682
  else
 
17683
    $as_echo "/* $configure_input  */" \
 
17684
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
17685
      || as_fn_error $? "could not create -" "$LINENO" 5
 
17686
  fi
 
17687
# Compute "$ac_file"'s index in $config_headers.
 
17688
_am_arg="$ac_file"
 
17689
_am_stamp_count=1
 
17690
for _am_header in $config_headers :; do
 
17691
  case $_am_header in
 
17692
    $_am_arg | $_am_arg:* )
 
17693
      break ;;
 
17694
    * )
 
17695
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
17696
  esac
 
17697
done
 
17698
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
17699
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17700
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
17701
         X"$_am_arg" : 'X\(//\)$' \| \
 
17702
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
17703
$as_echo X"$_am_arg" |
 
17704
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17705
            s//\1/
 
17706
            q
 
17707
          }
 
17708
          /^X\(\/\/\)[^/].*/{
 
17709
            s//\1/
 
17710
            q
 
17711
          }
 
17712
          /^X\(\/\/\)$/{
 
17713
            s//\1/
 
17714
            q
 
17715
          }
 
17716
          /^X\(\/\).*/{
 
17717
            s//\1/
 
17718
            q
 
17719
          }
 
17720
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
17721
 ;;
 
17722
 
 
17723
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
17724
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
17725
 ;;
 
17726
  esac
 
17727
 
 
17728
 
 
17729
  case $ac_file$ac_mode in
 
17730
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
17731
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
17732
  # are listed without --file.  Let's play safe and only enable the eval
 
17733
  # if we detect the quoting.
 
17734
  case $CONFIG_FILES in
 
17735
  *\'*) eval set x "$CONFIG_FILES" ;;
 
17736
  *)   set x $CONFIG_FILES ;;
 
17737
  esac
 
17738
  shift
 
17739
  for mf
 
17740
  do
 
17741
    # Strip MF so we end up with the name of the file.
 
17742
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
17743
    # Check whether this is an Automake generated Makefile or not.
 
17744
    # We used to match only the files named `Makefile.in', but
 
17745
    # some people rename them; so instead we look at the file content.
 
17746
    # Grep'ing the first line is not enough: some people post-process
 
17747
    # each Makefile.in and add a new line on top of each file to say so.
 
17748
    # Grep'ing the whole file is not good either: AIX grep has a line
 
17749
    # limit of 2048, but all sed's we know have understand at least 4000.
 
17750
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
17751
      dirpart=`$as_dirname -- "$mf" ||
 
17752
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17753
         X"$mf" : 'X\(//\)[^/]' \| \
 
17754
         X"$mf" : 'X\(//\)$' \| \
 
17755
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
17756
$as_echo X"$mf" |
 
17757
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17758
            s//\1/
 
17759
            q
 
17760
          }
 
17761
          /^X\(\/\/\)[^/].*/{
 
17762
            s//\1/
 
17763
            q
 
17764
          }
 
17765
          /^X\(\/\/\)$/{
 
17766
            s//\1/
 
17767
            q
 
17768
          }
 
17769
          /^X\(\/\).*/{
 
17770
            s//\1/
 
17771
            q
 
17772
          }
 
17773
          s/.*/./; q'`
 
17774
    else
 
17775
      continue
 
17776
    fi
 
17777
    # Extract the definition of DEPDIR, am__include, and am__quote
 
17778
    # from the Makefile without running `make'.
 
17779
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
17780
    test -z "$DEPDIR" && continue
 
17781
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
17782
    test -z "am__include" && continue
 
17783
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
17784
    # When using ansi2knr, U may be empty or an underscore; expand it
 
17785
    U=`sed -n 's/^U = //p' < "$mf"`
 
17786
    # Find all dependency output files, they are included files with
 
17787
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
17788
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
17789
    # expansion.
 
17790
    for file in `sed -n "
 
17791
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
17792
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17793
      # Make sure the directory exists.
 
17794
      test -f "$dirpart/$file" && continue
 
17795
      fdir=`$as_dirname -- "$file" ||
 
17796
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17797
         X"$file" : 'X\(//\)[^/]' \| \
 
17798
         X"$file" : 'X\(//\)$' \| \
 
17799
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
17800
$as_echo X"$file" |
 
17801
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17802
            s//\1/
 
17803
            q
 
17804
          }
 
17805
          /^X\(\/\/\)[^/].*/{
 
17806
            s//\1/
 
17807
            q
 
17808
          }
 
17809
          /^X\(\/\/\)$/{
 
17810
            s//\1/
 
17811
            q
 
17812
          }
 
17813
          /^X\(\/\).*/{
 
17814
            s//\1/
 
17815
            q
 
17816
          }
 
17817
          s/.*/./; q'`
 
17818
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
17819
      # echo "creating $dirpart/$file"
 
17820
      echo '# dummy' > "$dirpart/$file"
 
17821
    done
 
17822
  done
 
17823
}
 
17824
 ;;
 
17825
    "libtool":C)
 
17826
 
 
17827
    # See if we are running on zsh, and set the options which allow our
 
17828
    # commands through without removal of \ escapes.
 
17829
    if test -n "${ZSH_VERSION+set}" ; then
 
17830
      setopt NO_GLOB_SUBST
 
17831
    fi
 
17832
 
 
17833
    cfgfile="${ofile}T"
 
17834
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17835
    $RM "$cfgfile"
 
17836
 
 
17837
    cat <<_LT_EOF >> "$cfgfile"
 
17838
#! $SHELL
 
17839
 
 
17840
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17841
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17842
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17843
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17844
#
 
17845
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17846
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
17847
#                 Foundation, Inc.
 
17848
#   Written by Gordon Matzigkeit, 1996
 
17849
#
 
17850
#   This file is part of GNU Libtool.
 
17851
#
 
17852
# GNU Libtool is free software; you can redistribute it and/or
 
17853
# modify it under the terms of the GNU General Public License as
 
17854
# published by the Free Software Foundation; either version 2 of
 
17855
# the License, or (at your option) any later version.
 
17856
#
 
17857
# As a special exception to the GNU General Public License,
 
17858
# if you distribute this file as part of a program or library that
 
17859
# is built using GNU Libtool, you may include this file under the
 
17860
# same distribution terms that you use for the rest of that program.
 
17861
#
 
17862
# GNU Libtool is distributed in the hope that it will be useful,
 
17863
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17864
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17865
# GNU General Public License for more details.
 
17866
#
 
17867
# You should have received a copy of the GNU General Public License
 
17868
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17869
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17870
# obtained by writing to the Free Software Foundation, Inc.,
 
17871
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17872
 
 
17873
 
 
17874
# The names of the tagged configurations supported by this script.
 
17875
available_tags="CXX "
 
17876
 
 
17877
# ### BEGIN LIBTOOL CONFIG
 
17878
 
 
17879
# Which release of libtool.m4 was used?
 
17880
macro_version=$macro_version
 
17881
macro_revision=$macro_revision
 
17882
 
 
17883
# Whether or not to build shared libraries.
 
17884
build_libtool_libs=$enable_shared
 
17885
 
 
17886
# Whether or not to build static libraries.
 
17887
build_old_libs=$enable_static
 
17888
 
 
17889
# What type of objects to build.
 
17890
pic_mode=$pic_mode
 
17891
 
 
17892
# Whether or not to optimize for fast installation.
 
17893
fast_install=$enable_fast_install
 
17894
 
 
17895
# Shell to use when invoking shell scripts.
 
17896
SHELL=$lt_SHELL
 
17897
 
 
17898
# An echo program that protects backslashes.
 
17899
ECHO=$lt_ECHO
 
17900
 
 
17901
# The PATH separator for the build system.
 
17902
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
17903
 
 
17904
# The host system.
 
17905
host_alias=$host_alias
 
17906
host=$host
 
17907
host_os=$host_os
 
17908
 
 
17909
# The build system.
 
17910
build_alias=$build_alias
 
17911
build=$build
 
17912
build_os=$build_os
 
17913
 
 
17914
# A sed program that does not truncate output.
 
17915
SED=$lt_SED
 
17916
 
 
17917
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17918
Xsed="\$SED -e 1s/^X//"
 
17919
 
 
17920
# A grep program that handles long lines.
 
17921
GREP=$lt_GREP
 
17922
 
 
17923
# An ERE matcher.
 
17924
EGREP=$lt_EGREP
 
17925
 
 
17926
# A literal string matcher.
 
17927
FGREP=$lt_FGREP
 
17928
 
 
17929
# A BSD- or MS-compatible name lister.
 
17930
NM=$lt_NM
 
17931
 
 
17932
# Whether we need soft or hard links.
 
17933
LN_S=$lt_LN_S
 
17934
 
 
17935
# What is the maximum length of a command?
 
17936
max_cmd_len=$max_cmd_len
 
17937
 
 
17938
# Object file suffix (normally "o").
 
17939
objext=$ac_objext
 
17940
 
 
17941
# Executable file suffix (normally "").
 
17942
exeext=$exeext
 
17943
 
 
17944
# whether the shell understands "unset".
 
17945
lt_unset=$lt_unset
 
17946
 
 
17947
# turn spaces into newlines.
 
17948
SP2NL=$lt_lt_SP2NL
 
17949
 
 
17950
# turn newlines into spaces.
 
17951
NL2SP=$lt_lt_NL2SP
 
17952
 
 
17953
# convert \$build file names to \$host format.
 
17954
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
17955
 
 
17956
# convert \$build files to toolchain format.
 
17957
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
17958
 
 
17959
# An object symbol dumper.
 
17960
OBJDUMP=$lt_OBJDUMP
 
17961
 
 
17962
# Method to check whether dependent libraries are shared objects.
 
17963
deplibs_check_method=$lt_deplibs_check_method
 
17964
 
 
17965
# Command to use when deplibs_check_method = "file_magic".
 
17966
file_magic_cmd=$lt_file_magic_cmd
 
17967
 
 
17968
# How to find potential files when deplibs_check_method = "file_magic".
 
17969
file_magic_glob=$lt_file_magic_glob
 
17970
 
 
17971
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
17972
want_nocaseglob=$lt_want_nocaseglob
 
17973
 
 
17974
# DLL creation program.
 
17975
DLLTOOL=$lt_DLLTOOL
 
17976
 
 
17977
# Command to associate shared and link libraries.
 
17978
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
17979
 
 
17980
# The archiver.
 
17981
AR=$lt_AR
 
17982
 
 
17983
# Flags to create an archive.
 
17984
AR_FLAGS=$lt_AR_FLAGS
 
17985
 
 
17986
# How to feed a file listing to the archiver.
 
17987
archiver_list_spec=$lt_archiver_list_spec
 
17988
 
 
17989
# A symbol stripping program.
 
17990
STRIP=$lt_STRIP
 
17991
 
 
17992
# Commands used to install an old-style archive.
 
17993
RANLIB=$lt_RANLIB
 
17994
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17995
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17996
 
 
17997
# Whether to use a lock for old archive extraction.
 
17998
lock_old_archive_extraction=$lock_old_archive_extraction
 
17999
 
 
18000
# A C compiler.
 
18001
LTCC=$lt_CC
 
18002
 
 
18003
# LTCC compiler flags.
 
18004
LTCFLAGS=$lt_CFLAGS
 
18005
 
 
18006
# Take the output of nm and produce a listing of raw symbols and C names.
 
18007
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18008
 
 
18009
# Transform the output of nm in a proper C declaration.
 
18010
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18011
 
 
18012
# Transform the output of nm in a C name address pair.
 
18013
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18014
 
 
18015
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
18016
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
18017
 
 
18018
# Specify filename containing input files for \$NM.
 
18019
nm_file_list_spec=$lt_nm_file_list_spec
 
18020
 
 
18021
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
18022
lt_sysroot=$lt_sysroot
 
18023
 
 
18024
# The name of the directory that contains temporary libtool files.
 
18025
objdir=$objdir
 
18026
 
 
18027
# Used to examine libraries when file_magic_cmd begins with "file".
 
18028
MAGIC_CMD=$MAGIC_CMD
 
18029
 
 
18030
# Must we lock files when doing compilation?
 
18031
need_locks=$lt_need_locks
 
18032
 
 
18033
# Manifest tool.
 
18034
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
18035
 
 
18036
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
18037
DSYMUTIL=$lt_DSYMUTIL
 
18038
 
 
18039
# Tool to change global to local symbols on Mac OS X.
 
18040
NMEDIT=$lt_NMEDIT
 
18041
 
 
18042
# Tool to manipulate fat objects and archives on Mac OS X.
 
18043
LIPO=$lt_LIPO
 
18044
 
 
18045
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
18046
OTOOL=$lt_OTOOL
 
18047
 
 
18048
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
18049
OTOOL64=$lt_OTOOL64
 
18050
 
 
18051
# Old archive suffix (normally "a").
 
18052
libext=$libext
 
18053
 
 
18054
# Shared library suffix (normally ".so").
 
18055
shrext_cmds=$lt_shrext_cmds
 
18056
 
 
18057
# The commands to extract the exported symbol list from a shared archive.
 
18058
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18059
 
 
18060
# Variables whose values should be saved in libtool wrapper scripts and
 
18061
# restored at link time.
 
18062
variables_saved_for_relink=$lt_variables_saved_for_relink
 
18063
 
 
18064
# Do we need the "lib" prefix for modules?
 
18065
need_lib_prefix=$need_lib_prefix
 
18066
 
 
18067
# Do we need a version for libraries?
 
18068
need_version=$need_version
 
18069
 
 
18070
# Library versioning type.
 
18071
version_type=$version_type
 
18072
 
 
18073
# Shared library runtime path variable.
 
18074
runpath_var=$runpath_var
 
18075
 
 
18076
# Shared library path variable.
 
18077
shlibpath_var=$shlibpath_var
 
18078
 
 
18079
# Is shlibpath searched before the hard-coded library search path?
 
18080
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18081
 
 
18082
# Format of library name prefix.
 
18083
libname_spec=$lt_libname_spec
 
18084
 
 
18085
# List of archive names.  First name is the real one, the rest are links.
 
18086
# The last name is the one that the linker finds with -lNAME
 
18087
library_names_spec=$lt_library_names_spec
 
18088
 
 
18089
# The coded name of the library, if different from the real name.
 
18090
soname_spec=$lt_soname_spec
 
18091
 
 
18092
# Permission mode override for installation of shared libraries.
 
18093
install_override_mode=$lt_install_override_mode
 
18094
 
 
18095
# Command to use after installation of a shared archive.
 
18096
postinstall_cmds=$lt_postinstall_cmds
 
18097
 
 
18098
# Command to use after uninstallation of a shared archive.
 
18099
postuninstall_cmds=$lt_postuninstall_cmds
 
18100
 
 
18101
# Commands used to finish a libtool library installation in a directory.
 
18102
finish_cmds=$lt_finish_cmds
 
18103
 
 
18104
# As "finish_cmds", except a single script fragment to be evaled but
 
18105
# not shown.
 
18106
finish_eval=$lt_finish_eval
 
18107
 
 
18108
# Whether we should hardcode library paths into libraries.
 
18109
hardcode_into_libs=$hardcode_into_libs
 
18110
 
 
18111
# Compile-time system search path for libraries.
 
18112
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18113
 
 
18114
# Run-time system search path for libraries.
 
18115
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18116
 
 
18117
# Whether dlopen is supported.
 
18118
dlopen_support=$enable_dlopen
 
18119
 
 
18120
# Whether dlopen of programs is supported.
 
18121
dlopen_self=$enable_dlopen_self
 
18122
 
 
18123
# Whether dlopen of statically linked programs is supported.
 
18124
dlopen_self_static=$enable_dlopen_self_static
 
18125
 
 
18126
# Commands to strip libraries.
 
18127
old_striplib=$lt_old_striplib
 
18128
striplib=$lt_striplib
 
18129
 
 
18130
 
 
18131
# The linker used to build libraries.
 
18132
LD=$lt_LD
 
18133
 
 
18134
# How to create reloadable object files.
 
18135
reload_flag=$lt_reload_flag
 
18136
reload_cmds=$lt_reload_cmds
 
18137
 
 
18138
# Commands used to build an old-style archive.
 
18139
old_archive_cmds=$lt_old_archive_cmds
 
18140
 
 
18141
# A language specific compiler.
 
18142
CC=$lt_compiler
 
18143
 
 
18144
# Is the compiler the GNU compiler?
 
18145
with_gcc=$GCC
 
18146
 
 
18147
# Compiler flag to turn off builtin functions.
 
18148
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18149
 
 
18150
# Additional compiler flags for building library objects.
 
18151
pic_flag=$lt_lt_prog_compiler_pic
 
18152
 
 
18153
# How to pass a linker flag through the compiler.
 
18154
wl=$lt_lt_prog_compiler_wl
 
18155
 
 
18156
# Compiler flag to prevent dynamic linking.
 
18157
link_static_flag=$lt_lt_prog_compiler_static
 
18158
 
 
18159
# Does compiler simultaneously support -c and -o options?
 
18160
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18161
 
 
18162
# Whether or not to add -lc for building shared libraries.
 
18163
build_libtool_need_lc=$archive_cmds_need_lc
 
18164
 
 
18165
# Whether or not to disallow shared libs when runtime libs are static.
 
18166
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18167
 
 
18168
# Compiler flag to allow reflexive dlopens.
 
18169
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18170
 
 
18171
# Compiler flag to generate shared objects directly from archives.
 
18172
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18173
 
 
18174
# Whether the compiler copes with passing no objects directly.
 
18175
compiler_needs_object=$lt_compiler_needs_object
 
18176
 
 
18177
# Create an old-style archive from a shared archive.
 
18178
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18179
 
 
18180
# Create a temporary old-style archive to link instead of a shared archive.
 
18181
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18182
 
 
18183
# Commands used to build a shared archive.
 
18184
archive_cmds=$lt_archive_cmds
 
18185
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18186
 
 
18187
# Commands used to build a loadable module if different from building
 
18188
# a shared archive.
 
18189
module_cmds=$lt_module_cmds
 
18190
module_expsym_cmds=$lt_module_expsym_cmds
 
18191
 
 
18192
# Whether we are building with GNU ld or not.
 
18193
with_gnu_ld=$lt_with_gnu_ld
 
18194
 
 
18195
# Flag that allows shared libraries with undefined symbols to be built.
 
18196
allow_undefined_flag=$lt_allow_undefined_flag
 
18197
 
 
18198
# Flag that enforces no undefined symbols.
 
18199
no_undefined_flag=$lt_no_undefined_flag
 
18200
 
 
18201
# Flag to hardcode \$libdir into a binary during linking.
 
18202
# This must work even if \$libdir does not exist
 
18203
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18204
 
 
18205
# Whether we need a single "-rpath" flag with a separated argument.
 
18206
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18207
 
 
18208
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18209
# DIR into the resulting binary.
 
18210
hardcode_direct=$hardcode_direct
 
18211
 
 
18212
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18213
# DIR into the resulting binary and the resulting library dependency is
 
18214
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18215
# library is relocated.
 
18216
hardcode_direct_absolute=$hardcode_direct_absolute
 
18217
 
 
18218
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18219
# into the resulting binary.
 
18220
hardcode_minus_L=$hardcode_minus_L
 
18221
 
 
18222
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18223
# into the resulting binary.
 
18224
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18225
 
 
18226
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18227
# into the library and all subsequent libraries and executables linked
 
18228
# against it.
 
18229
hardcode_automatic=$hardcode_automatic
 
18230
 
 
18231
# Set to yes if linker adds runtime paths of dependent libraries
 
18232
# to runtime path list.
 
18233
inherit_rpath=$inherit_rpath
 
18234
 
 
18235
# Whether libtool must link a program against all its dependency libraries.
 
18236
link_all_deplibs=$link_all_deplibs
 
18237
 
 
18238
# Set to "yes" if exported symbols are required.
 
18239
always_export_symbols=$always_export_symbols
 
18240
 
 
18241
# The commands to list exported symbols.
 
18242
export_symbols_cmds=$lt_export_symbols_cmds
 
18243
 
 
18244
# Symbols that should not be listed in the preloaded symbols.
 
18245
exclude_expsyms=$lt_exclude_expsyms
 
18246
 
 
18247
# Symbols that must always be exported.
 
18248
include_expsyms=$lt_include_expsyms
 
18249
 
 
18250
# Commands necessary for linking programs (against libraries) with templates.
 
18251
prelink_cmds=$lt_prelink_cmds
 
18252
 
 
18253
# Commands necessary for finishing linking programs.
 
18254
postlink_cmds=$lt_postlink_cmds
 
18255
 
 
18256
# Specify filename containing input files.
 
18257
file_list_spec=$lt_file_list_spec
 
18258
 
 
18259
# How to hardcode a shared library path into an executable.
 
18260
hardcode_action=$hardcode_action
 
18261
 
 
18262
# The directories searched by this compiler when creating a shared library.
 
18263
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18264
 
 
18265
# Dependencies to place before and after the objects being linked to
 
18266
# create a shared library.
 
18267
predep_objects=$lt_predep_objects
 
18268
postdep_objects=$lt_postdep_objects
 
18269
predeps=$lt_predeps
 
18270
postdeps=$lt_postdeps
 
18271
 
 
18272
# The library search path used internally by the compiler when linking
 
18273
# a shared library.
 
18274
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18275
 
 
18276
# ### END LIBTOOL CONFIG
 
18277
 
 
18278
_LT_EOF
 
18279
 
 
18280
  case $host_os in
 
18281
  aix3*)
 
18282
    cat <<\_LT_EOF >> "$cfgfile"
 
18283
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18284
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18285
# vanish in a puff of smoke.
 
18286
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18287
  COLLECT_NAMES=
 
18288
  export COLLECT_NAMES
 
18289
fi
 
18290
_LT_EOF
 
18291
    ;;
 
18292
  esac
 
18293
 
 
18294
 
 
18295
ltmain="$ac_aux_dir/ltmain.sh"
 
18296
 
 
18297
 
 
18298
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18299
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18300
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18301
  # is reportedly fixed, but why not run on old versions too?
 
18302
  sed '$q' "$ltmain" >> "$cfgfile" \
 
18303
     || (rm -f "$cfgfile"; exit 1)
 
18304
 
 
18305
  if test x"$xsi_shell" = xyes; then
 
18306
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
18307
func_dirname ()\
 
18308
{\
 
18309
\    case ${1} in\
 
18310
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18311
\      *  ) func_dirname_result="${3}" ;;\
 
18312
\    esac\
 
18313
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
18314
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18315
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18316
test 0 -eq $? || _lt_function_replace_fail=:
 
18317
 
 
18318
 
 
18319
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
18320
func_basename ()\
 
18321
{\
 
18322
\    func_basename_result="${1##*/}"\
 
18323
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18324
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18325
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18326
test 0 -eq $? || _lt_function_replace_fail=:
 
18327
 
 
18328
 
 
18329
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
18330
func_dirname_and_basename ()\
 
18331
{\
 
18332
\    case ${1} in\
 
18333
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18334
\      *  ) func_dirname_result="${3}" ;;\
 
18335
\    esac\
 
18336
\    func_basename_result="${1##*/}"\
 
18337
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18338
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18339
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18340
test 0 -eq $? || _lt_function_replace_fail=:
 
18341
 
 
18342
 
 
18343
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
18344
func_stripname ()\
 
18345
{\
 
18346
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
18347
\    # positional parameters, so assign one to ordinary parameter first.\
 
18348
\    func_stripname_result=${3}\
 
18349
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
18350
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
18351
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
18352
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18353
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18354
test 0 -eq $? || _lt_function_replace_fail=:
 
18355
 
 
18356
 
 
18357
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
18358
func_split_long_opt ()\
 
18359
{\
 
18360
\    func_split_long_opt_name=${1%%=*}\
 
18361
\    func_split_long_opt_arg=${1#*=}\
 
18362
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18363
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18364
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18365
test 0 -eq $? || _lt_function_replace_fail=:
 
18366
 
 
18367
 
 
18368
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
18369
func_split_short_opt ()\
 
18370
{\
 
18371
\    func_split_short_opt_arg=${1#??}\
 
18372
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
18373
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18374
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18375
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18376
test 0 -eq $? || _lt_function_replace_fail=:
 
18377
 
 
18378
 
 
18379
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
18380
func_lo2o ()\
 
18381
{\
 
18382
\    case ${1} in\
 
18383
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
18384
\      *)    func_lo2o_result=${1} ;;\
 
18385
\    esac\
 
18386
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
18387
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18388
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18389
test 0 -eq $? || _lt_function_replace_fail=:
 
18390
 
 
18391
 
 
18392
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
18393
func_xform ()\
 
18394
{\
 
18395
    func_xform_result=${1%.*}.lo\
 
18396
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
18397
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18398
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18399
test 0 -eq $? || _lt_function_replace_fail=:
 
18400
 
 
18401
 
 
18402
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
18403
func_arith ()\
 
18404
{\
 
18405
    func_arith_result=$(( $* ))\
 
18406
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
18407
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18408
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18409
test 0 -eq $? || _lt_function_replace_fail=:
 
18410
 
 
18411
 
 
18412
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
18413
func_len ()\
 
18414
{\
 
18415
    func_len_result=${#1}\
 
18416
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
18417
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18418
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18419
test 0 -eq $? || _lt_function_replace_fail=:
 
18420
 
 
18421
fi
 
18422
 
 
18423
if test x"$lt_shell_append" = xyes; then
 
18424
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
18425
func_append ()\
 
18426
{\
 
18427
    eval "${1}+=\\${2}"\
 
18428
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
18429
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18430
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18431
test 0 -eq $? || _lt_function_replace_fail=:
 
18432
 
 
18433
 
 
18434
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
18435
func_append_quoted ()\
 
18436
{\
 
18437
\    func_quote_for_eval "${2}"\
 
18438
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
18439
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
18440
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18441
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18442
test 0 -eq $? || _lt_function_replace_fail=:
 
18443
 
 
18444
 
 
18445
  # Save a `func_append' function call where possible by direct use of '+='
 
18446
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
18447
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18448
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18449
  test 0 -eq $? || _lt_function_replace_fail=:
 
18450
else
 
18451
  # Save a `func_append' function call even when '+=' is not available
 
18452
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
18453
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18454
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18455
  test 0 -eq $? || _lt_function_replace_fail=:
 
18456
fi
 
18457
 
 
18458
if test x"$_lt_function_replace_fail" = x":"; then
 
18459
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
18460
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
18461
fi
 
18462
 
 
18463
 
 
18464
   mv -f "$cfgfile" "$ofile" ||
 
18465
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18466
  chmod +x "$ofile"
 
18467
 
 
18468
 
 
18469
    cat <<_LT_EOF >> "$ofile"
 
18470
 
 
18471
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
18472
 
 
18473
# The linker used to build libraries.
 
18474
LD=$lt_LD_CXX
 
18475
 
 
18476
# How to create reloadable object files.
 
18477
reload_flag=$lt_reload_flag_CXX
 
18478
reload_cmds=$lt_reload_cmds_CXX
 
18479
 
 
18480
# Commands used to build an old-style archive.
 
18481
old_archive_cmds=$lt_old_archive_cmds_CXX
 
18482
 
 
18483
# A language specific compiler.
 
18484
CC=$lt_compiler_CXX
 
18485
 
 
18486
# Is the compiler the GNU compiler?
 
18487
with_gcc=$GCC_CXX
 
18488
 
 
18489
# Compiler flag to turn off builtin functions.
 
18490
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
18491
 
 
18492
# Additional compiler flags for building library objects.
 
18493
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
18494
 
 
18495
# How to pass a linker flag through the compiler.
 
18496
wl=$lt_lt_prog_compiler_wl_CXX
 
18497
 
 
18498
# Compiler flag to prevent dynamic linking.
 
18499
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
18500
 
 
18501
# Does compiler simultaneously support -c and -o options?
 
18502
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
18503
 
 
18504
# Whether or not to add -lc for building shared libraries.
 
18505
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
18506
 
 
18507
# Whether or not to disallow shared libs when runtime libs are static.
 
18508
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
18509
 
 
18510
# Compiler flag to allow reflexive dlopens.
 
18511
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
18512
 
 
18513
# Compiler flag to generate shared objects directly from archives.
 
18514
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
18515
 
 
18516
# Whether the compiler copes with passing no objects directly.
 
18517
compiler_needs_object=$lt_compiler_needs_object_CXX
 
18518
 
 
18519
# Create an old-style archive from a shared archive.
 
18520
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
18521
 
 
18522
# Create a temporary old-style archive to link instead of a shared archive.
 
18523
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
18524
 
 
18525
# Commands used to build a shared archive.
 
18526
archive_cmds=$lt_archive_cmds_CXX
 
18527
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
18528
 
 
18529
# Commands used to build a loadable module if different from building
 
18530
# a shared archive.
 
18531
module_cmds=$lt_module_cmds_CXX
 
18532
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
18533
 
 
18534
# Whether we are building with GNU ld or not.
 
18535
with_gnu_ld=$lt_with_gnu_ld_CXX
 
18536
 
 
18537
# Flag that allows shared libraries with undefined symbols to be built.
 
18538
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
18539
 
 
18540
# Flag that enforces no undefined symbols.
 
18541
no_undefined_flag=$lt_no_undefined_flag_CXX
 
18542
 
 
18543
# Flag to hardcode \$libdir into a binary during linking.
 
18544
# This must work even if \$libdir does not exist
 
18545
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
18546
 
 
18547
# Whether we need a single "-rpath" flag with a separated argument.
 
18548
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
18549
 
 
18550
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18551
# DIR into the resulting binary.
 
18552
hardcode_direct=$hardcode_direct_CXX
 
18553
 
 
18554
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18555
# DIR into the resulting binary and the resulting library dependency is
 
18556
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18557
# library is relocated.
 
18558
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
18559
 
 
18560
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18561
# into the resulting binary.
 
18562
hardcode_minus_L=$hardcode_minus_L_CXX
 
18563
 
 
18564
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18565
# into the resulting binary.
 
18566
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
18567
 
 
18568
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18569
# into the library and all subsequent libraries and executables linked
 
18570
# against it.
 
18571
hardcode_automatic=$hardcode_automatic_CXX
 
18572
 
 
18573
# Set to yes if linker adds runtime paths of dependent libraries
 
18574
# to runtime path list.
 
18575
inherit_rpath=$inherit_rpath_CXX
 
18576
 
 
18577
# Whether libtool must link a program against all its dependency libraries.
 
18578
link_all_deplibs=$link_all_deplibs_CXX
 
18579
 
 
18580
# Set to "yes" if exported symbols are required.
 
18581
always_export_symbols=$always_export_symbols_CXX
 
18582
 
 
18583
# The commands to list exported symbols.
 
18584
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
18585
 
 
18586
# Symbols that should not be listed in the preloaded symbols.
 
18587
exclude_expsyms=$lt_exclude_expsyms_CXX
 
18588
 
 
18589
# Symbols that must always be exported.
 
18590
include_expsyms=$lt_include_expsyms_CXX
 
18591
 
 
18592
# Commands necessary for linking programs (against libraries) with templates.
 
18593
prelink_cmds=$lt_prelink_cmds_CXX
 
18594
 
 
18595
# Commands necessary for finishing linking programs.
 
18596
postlink_cmds=$lt_postlink_cmds_CXX
 
18597
 
 
18598
# Specify filename containing input files.
 
18599
file_list_spec=$lt_file_list_spec_CXX
 
18600
 
 
18601
# How to hardcode a shared library path into an executable.
 
18602
hardcode_action=$hardcode_action_CXX
 
18603
 
 
18604
# The directories searched by this compiler when creating a shared library.
 
18605
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
18606
 
 
18607
# Dependencies to place before and after the objects being linked to
 
18608
# create a shared library.
 
18609
predep_objects=$lt_predep_objects_CXX
 
18610
postdep_objects=$lt_postdep_objects_CXX
 
18611
predeps=$lt_predeps_CXX
 
18612
postdeps=$lt_postdeps_CXX
 
18613
 
 
18614
# The library search path used internally by the compiler when linking
 
18615
# a shared library.
 
18616
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
18617
 
 
18618
# ### END LIBTOOL TAG CONFIG: CXX
 
18619
_LT_EOF
 
18620
 
 
18621
 ;;
 
18622
 
 
18623
  esac
 
18624
done # for ac_tag
 
18625
 
 
18626
 
 
18627
as_fn_exit 0
 
18628
_ACEOF
 
18629
ac_clean_files=$ac_clean_files_save
 
18630
 
 
18631
test $ac_write_fail = 0 ||
 
18632
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
18633
 
 
18634
 
 
18635
# configure is writing to config.log, and then calls config.status.
 
18636
# config.status does its own redirection, appending to config.log.
 
18637
# Unfortunately, on DOS this fails, as config.log is still kept open
 
18638
# by configure, so config.status won't be able to write to it; its
 
18639
# output is simply discarded.  So we exec the FD to /dev/null,
 
18640
# effectively closing config.log, so it can be properly (re)opened and
 
18641
# appended to by config.status.  When coming back to configure, we
 
18642
# need to make the FD available again.
 
18643
if test "$no_create" != yes; then
 
18644
  ac_cs_success=:
 
18645
  ac_config_status_args=
 
18646
  test "$silent" = yes &&
 
18647
    ac_config_status_args="$ac_config_status_args --quiet"
 
18648
  exec 5>/dev/null
 
18649
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
18650
  exec 5>>config.log
 
18651
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
18652
  # would make configure fail if this is the last instruction.
 
18653
  $ac_cs_success || as_fn_exit 1
 
18654
fi
 
18655
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
18656
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
18657
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
18658
fi
 
18659