OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libitm/] [configure] - Blame information for rev 769

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 737 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
 
173
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    PATH=/empty FPATH=/empty; export PATH FPATH
178
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180
test \$(( 1 + 1 )) = 2 || exit 1"
181
  if (eval "$as_required") 2>/dev/null; then :
182
  as_have_required=yes
183
else
184
  as_have_required=no
185
fi
186
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
 
188
else
189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
as_found=false
191
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192
do
193
  IFS=$as_save_IFS
194
  test -z "$as_dir" && as_dir=.
195
  as_found=:
196
  case $as_dir in #(
197
         /*)
198
           for as_base in sh bash ksh sh5; do
199
             # Try only shells that exist, to save several forks.
200
             as_shell=$as_dir/$as_base
201
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203
  CONFIG_SHELL=$as_shell as_have_required=yes
204
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
  break 2
206
fi
207
fi
208
           done;;
209
       esac
210
  as_found=false
211
done
212
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214
  CONFIG_SHELL=$SHELL as_have_required=yes
215
fi; }
216
IFS=$as_save_IFS
217
 
218
 
219
      if test "x$CONFIG_SHELL" != x; then :
220
  # We cannot yet assume a decent shell, so we have to provide a
221
        # neutralization value for shells without unset; and this also
222
        # works around shells that cannot unset nonexistent variables.
223
        BASH_ENV=/dev/null
224
        ENV=/dev/null
225
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
        export CONFIG_SHELL
227
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228
fi
229
 
230
    if test x$as_have_required = xno; then :
231
  $as_echo "$0: This script requires a shell more modern than all"
232
  $as_echo "$0: the shells that I found on your system."
233
  if test x${ZSH_VERSION+set} = xset ; then
234
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
  else
237
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
241
  fi
242
  exit 1
243
fi
244
fi
245
fi
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
export SHELL
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
255
# as_fn_unset VAR
256
# ---------------
257
# Portably unset VAR.
258
as_fn_unset ()
259
{
260
  { eval $1=; unset $1;}
261
}
262
as_unset=as_fn_unset
263
 
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
267
as_fn_set_status ()
268
{
269
  return $1
270
} # as_fn_set_status
271
 
272
# as_fn_exit STATUS
273
# -----------------
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
as_fn_exit ()
276
{
277
  set +e
278
  as_fn_set_status $1
279
  exit $1
280
} # as_fn_exit
281
 
282
# as_fn_mkdir_p
283
# -------------
284
# Create "$as_dir" as a directory, including parents if necessary.
285
as_fn_mkdir_p ()
286
{
287
 
288
  case $as_dir in #(
289
  -*) as_dir=./$as_dir;;
290
  esac
291
  test -d "$as_dir" || eval $as_mkdir_p || {
292
    as_dirs=
293
    while :; do
294
      case $as_dir in #(
295
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
      *) as_qdir=$as_dir;;
297
      esac
298
      as_dirs="'$as_qdir' $as_dirs"
299
      as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
         X"$as_dir" : 'X\(//\)$' \| \
303
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\/\)[^/].*/{
310
            s//\1/
311
            q
312
          }
313
          /^X\(\/\/\)$/{
314
            s//\1/
315
            q
316
          }
317
          /^X\(\/\).*/{
318
            s//\1/
319
            q
320
          }
321
          s/.*/./; q'`
322
      test -d "$as_dir" && break
323
    done
324
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
 
327
 
328
} # as_fn_mkdir_p
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
334
# implementations.
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
  eval 'as_fn_append ()
337
  {
338
    eval $1+=\$2
339
  }'
340
else
341
  as_fn_append ()
342
  {
343
    eval $1=\$$1\$2
344
  }
345
fi # as_fn_append
346
 
347
# as_fn_arith ARG...
348
# ------------------
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
  eval 'as_fn_arith ()
354
  {
355
    as_val=$(( $* ))
356
  }'
357
else
358
  as_fn_arith ()
359
  {
360
    as_val=`expr "$@" || test $? -eq 1`
361
  }
362
fi # as_fn_arith
363
 
364
 
365
# as_fn_error ERROR [LINENO LOG_FD]
366
# ---------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with status $?, using 1 if that was 0.
370
as_fn_error ()
371
{
372
  as_status=$?; test $as_status -eq 0 && as_status=1
373
  if test "$3"; then
374
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376
  fi
377
  $as_echo "$as_me: error: $1" >&2
378
  as_fn_exit $as_status
379
} # as_fn_error
380
 
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
  as_expr=expr
384
else
385
  as_expr=false
386
fi
387
 
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
  as_basename=basename
390
else
391
  as_basename=false
392
fi
393
 
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
  as_dirname=dirname
396
else
397
  as_dirname=false
398
fi
399
 
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
         X"$0" : 'X\(//\)$' \| \
403
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
$as_echo X/"$0" |
405
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
            s//\1/
407
            q
408
          }
409
          /^X\/\(\/\/\)$/{
410
            s//\1/
411
            q
412
          }
413
          /^X\/\(\/\).*/{
414
            s//\1/
415
            q
416
          }
417
          s/.*/./; q'`
418
 
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
426
 
427
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
  sed -n '
433
    p
434
    /[$]LINENO/=
435
  ' <$as_myself |
436
    sed '
437
      s/[$]LINENO.*/&-/
438
      t lineno
439
      b
440
      :lineno
441
      N
442
      :loop
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
      t loop
445
      s/-\n.*//
446
    ' >$as_me.lineno &&
447
  chmod +x "$as_me.lineno" ||
448
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
450
  # Don't try to exec as it changes $[0], causing all sort of problems
451
  # (the dirname of $[0] is not the place where we might find the
452
  # original and so on.  Autoconf is especially sensitive to this).
453
  . "./$as_me.lineno"
454
  # Exit status is that of the last command.
455
  exit
456
}
457
 
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
460
-n*)
461
  case `echo 'xy\c'` in
462
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
  xy)  ECHO_C='\c';;
464
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
       ECHO_T=' ';;
466
  esac;;
467
*)
468
  ECHO_N='-n';;
469
esac
470
 
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
  rm -f conf$$.dir/conf$$.file
474
else
475
  rm -f conf$$.dir
476
  mkdir conf$$.dir 2>/dev/null
477
fi
478
if (echo >conf$$.file) 2>/dev/null; then
479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s='ln -s'
481
    # ... but there are two gotchas:
482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
    # In both cases, we have to default to `cp -p'.
485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
      as_ln_s='cp -p'
487
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
    as_ln_s=ln
489
  else
490
    as_ln_s='cp -p'
491
  fi
492
else
493
  as_ln_s='cp -p'
494
fi
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
497
 
498
if mkdir -p . 2>/dev/null; then
499
  as_mkdir_p='mkdir -p "$as_dir"'
500
else
501
  test -d ./-p && rmdir ./-p
502
  as_mkdir_p=false
503
fi
504
 
505
if test -x / >/dev/null 2>&1; then
506
  as_test_x='test -x'
507
else
508
  if ls -dL / >/dev/null 2>&1; then
509
    as_ls_L_option=L
510
  else
511
    as_ls_L_option=
512
  fi
513
  as_test_x='
514
    eval sh -c '\''
515
      if test -d "$1"; then
516
        test -d "$1/.";
517
      else
518
        case $1 in #(
519
        -*)set "./$1";;
520
        esac;
521
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
        ???[sx]*):;;*)false;;esac;fi
523
    '\'' sh
524
  '
525
fi
526
as_executable_p=$as_test_x
527
 
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
 
537
exec 7<&0 &1
538
 
539
# Name of the host.
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
 
544
#
545
# Initializations.
546
#
547
ac_default_prefix=/usr/local
548
ac_clean_files=
549
ac_config_libobj_dir=.
550
LIBOBJS=
551
cross_compiling=no
552
subdirs=
553
MFLAGS=
554
MAKEFLAGS=
555
 
556
# Identity of this package.
557
PACKAGE_NAME='GNU TM Runtime Library'
558
PACKAGE_TARNAME='libitm'
559
PACKAGE_VERSION='1.0'
560
PACKAGE_STRING='GNU TM Runtime Library 1.0'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
 
564
# Factoring default headers for most tests.
565
ac_includes_default="\
566
#include 
567
#ifdef HAVE_SYS_TYPES_H
568
# include 
569
#endif
570
#ifdef HAVE_SYS_STAT_H
571
# include 
572
#endif
573
#ifdef STDC_HEADERS
574
# include 
575
# include 
576
#else
577
# ifdef HAVE_STDLIB_H
578
#  include 
579
# endif
580
#endif
581
#ifdef HAVE_STRING_H
582
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583
#  include 
584
# endif
585
# include 
586
#endif
587
#ifdef HAVE_STRINGS_H
588
# include 
589
#endif
590
#ifdef HAVE_INTTYPES_H
591
# include 
592
#endif
593
#ifdef HAVE_STDINT_H
594
# include 
595
#endif
596
#ifdef HAVE_UNISTD_H
597
# include 
598
#endif"
599
 
600
ac_subst_vars='am__EXEEXT_FALSE
601
am__EXEEXT_TRUE
602
LTLIBOBJS
603
LIBOBJS
604
ARCH_FUTEX_FALSE
605
ARCH_FUTEX_TRUE
606
ARCH_X86_AVX_FALSE
607
ARCH_X86_AVX_TRUE
608
ARCH_X86_FALSE
609
ARCH_X86_TRUE
610
ARCH_ARM_FALSE
611
ARCH_ARM_TRUE
612
link_itm
613
XLDFLAGS
614
XCFLAGS
615
config_path
616
LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
617
LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
618
LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
619
LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
620
LIBITM_BUILD_VERSIONED_SHLIB_FALSE
621
LIBITM_BUILD_VERSIONED_SHLIB_TRUE
622
OPT_LDFLAGS
623
SECTION_LDFLAGS
624
HAVE_HWCAP_FALSE
625
HAVE_HWCAP_TRUE
626
HWCAP_LDFLAGS
627
libtool_VERSION
628
MAINT
629
MAINTAINER_MODE_FALSE
630
MAINTAINER_MODE_TRUE
631
enable_static
632
enable_shared
633
CXXCPP
634
CPP
635
OTOOL64
636
OTOOL
637
LIPO
638
NMEDIT
639
DSYMUTIL
640
OBJDUMP
641
LN_S
642
ac_ct_DUMPBIN
643
DUMPBIN
644
LD
645
FGREP
646
EGREP
647
GREP
648
SED
649
LIBTOOL
650
BUILD_INFO_FALSE
651
BUILD_INFO_TRUE
652
PERL
653
RANLIB
654
NM
655
AR
656
am__fastdepCCAS_FALSE
657
am__fastdepCCAS_TRUE
658
CCASDEPMODE
659
CCASFLAGS
660
CCAS
661
am__fastdepCXX_FALSE
662
am__fastdepCXX_TRUE
663
CXXDEPMODE
664
ac_ct_CXX
665
CXXFLAGS
666
CXX
667
am__fastdepCC_FALSE
668
am__fastdepCC_TRUE
669
CCDEPMODE
670
AMDEPBACKSLASH
671
AMDEP_FALSE
672
AMDEP_TRUE
673
am__quote
674
am__include
675
DEPDIR
676
OBJEXT
677
EXEEXT
678
ac_ct_CC
679
CPPFLAGS
680
LDFLAGS
681
CFLAGS
682
CC
683
toolexeclibdir
684
toolexecdir
685
multi_basedir
686
am__untar
687
am__tar
688
AMTAR
689
am__leading_dot
690
SET_MAKE
691
AWK
692
mkdir_p
693
MKDIR_P
694
INSTALL_STRIP_PROGRAM
695
STRIP
696
install_sh
697
MAKEINFO
698
AUTOHEADER
699
AUTOMAKE
700
AUTOCONF
701
ACLOCAL
702
VERSION
703
PACKAGE
704
CYGPATH_W
705
am__isrc
706
INSTALL_DATA
707
INSTALL_SCRIPT
708
INSTALL_PROGRAM
709
target_os
710
target_vendor
711
target_cpu
712
target
713
host_os
714
host_vendor
715
host_cpu
716
host
717
build_os
718
build_vendor
719
build_cpu
720
build
721
GENINSRC_FALSE
722
GENINSRC_TRUE
723
target_alias
724
host_alias
725
build_alias
726
LIBS
727
ECHO_T
728
ECHO_N
729
ECHO_C
730
DEFS
731
mandir
732
localedir
733
libdir
734
psdir
735
pdfdir
736
dvidir
737
htmldir
738
infodir
739
docdir
740
oldincludedir
741
includedir
742
localstatedir
743
sharedstatedir
744
sysconfdir
745
datadir
746
datarootdir
747
libexecdir
748
sbindir
749
bindir
750
program_transform_name
751
prefix
752
exec_prefix
753
PACKAGE_URL
754
PACKAGE_BUGREPORT
755
PACKAGE_STRING
756
PACKAGE_VERSION
757
PACKAGE_TARNAME
758
PACKAGE_NAME
759
PATH_SEPARATOR
760
SHELL'
761
ac_subst_files=''
762
ac_user_opts='
763
enable_option_checking
764
enable_version_specific_runtime_libs
765
enable_generated_files_in_srcdir
766
enable_multilib
767
enable_dependency_tracking
768
enable_shared
769
enable_static
770
with_pic
771
enable_fast_install
772
with_gnu_ld
773
enable_libtool_lock
774
enable_maintainer_mode
775
enable_linux_futex
776
enable_tls
777
enable_symvers
778
'
779
      ac_precious_vars='build_alias
780
host_alias
781
target_alias
782
CPP
783
CPPFLAGS
784
CXXCPP'
785
 
786
 
787
# Initialize some variables set by options.
788
ac_init_help=
789
ac_init_version=false
790
ac_unrecognized_opts=
791
ac_unrecognized_sep=
792
# The variables have the same names as the options, with
793
# dashes changed to underlines.
794
cache_file=/dev/null
795
exec_prefix=NONE
796
no_create=
797
no_recursion=
798
prefix=NONE
799
program_prefix=NONE
800
program_suffix=NONE
801
program_transform_name=s,x,x,
802
silent=
803
site=
804
srcdir=
805
verbose=
806
x_includes=NONE
807
x_libraries=NONE
808
 
809
# Installation directory options.
810
# These are left unexpanded so users can "make install exec_prefix=/foo"
811
# and all the variables that are supposed to be based on exec_prefix
812
# by default will actually change.
813
# Use braces instead of parens because sh, perl, etc. also accept them.
814
# (The list follows the same order as the GNU Coding Standards.)
815
bindir='${exec_prefix}/bin'
816
sbindir='${exec_prefix}/sbin'
817
libexecdir='${exec_prefix}/libexec'
818
datarootdir='${prefix}/share'
819
datadir='${datarootdir}'
820
sysconfdir='${prefix}/etc'
821
sharedstatedir='${prefix}/com'
822
localstatedir='${prefix}/var'
823
includedir='${prefix}/include'
824
oldincludedir='/usr/include'
825
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826
infodir='${datarootdir}/info'
827
htmldir='${docdir}'
828
dvidir='${docdir}'
829
pdfdir='${docdir}'
830
psdir='${docdir}'
831
libdir='${exec_prefix}/lib'
832
localedir='${datarootdir}/locale'
833
mandir='${datarootdir}/man'
834
 
835
ac_prev=
836
ac_dashdash=
837
for ac_option
838
do
839
  # If the previous option needs an argument, assign it.
840
  if test -n "$ac_prev"; then
841
    eval $ac_prev=\$ac_option
842
    ac_prev=
843
    continue
844
  fi
845
 
846
  case $ac_option in
847
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848
  *)    ac_optarg=yes ;;
849
  esac
850
 
851
  # Accept the important Cygnus configure options, so we can diagnose typos.
852
 
853
  case $ac_dashdash$ac_option in
854
  --)
855
    ac_dashdash=yes ;;
856
 
857
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858
    ac_prev=bindir ;;
859
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860
    bindir=$ac_optarg ;;
861
 
862
  -build | --build | --buil | --bui | --bu)
863
    ac_prev=build_alias ;;
864
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865
    build_alias=$ac_optarg ;;
866
 
867
  -cache-file | --cache-file | --cache-fil | --cache-fi \
868
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869
    ac_prev=cache_file ;;
870
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872
    cache_file=$ac_optarg ;;
873
 
874
  --config-cache | -C)
875
    cache_file=config.cache ;;
876
 
877
  -datadir | --datadir | --datadi | --datad)
878
    ac_prev=datadir ;;
879
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880
    datadir=$ac_optarg ;;
881
 
882
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883
  | --dataroo | --dataro | --datar)
884
    ac_prev=datarootdir ;;
885
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887
    datarootdir=$ac_optarg ;;
888
 
889
  -disable-* | --disable-*)
890
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891
    # Reject names that are not valid shell variable names.
892
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893
      as_fn_error "invalid feature name: $ac_useropt"
894
    ac_useropt_orig=$ac_useropt
895
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896
    case $ac_user_opts in
897
      *"
898
"enable_$ac_useropt"
899
"*) ;;
900
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901
         ac_unrecognized_sep=', ';;
902
    esac
903
    eval enable_$ac_useropt=no ;;
904
 
905
  -docdir | --docdir | --docdi | --doc | --do)
906
    ac_prev=docdir ;;
907
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908
    docdir=$ac_optarg ;;
909
 
910
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911
    ac_prev=dvidir ;;
912
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913
    dvidir=$ac_optarg ;;
914
 
915
  -enable-* | --enable-*)
916
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917
    # Reject names that are not valid shell variable names.
918
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919
      as_fn_error "invalid feature name: $ac_useropt"
920
    ac_useropt_orig=$ac_useropt
921
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922
    case $ac_user_opts in
923
      *"
924
"enable_$ac_useropt"
925
"*) ;;
926
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927
         ac_unrecognized_sep=', ';;
928
    esac
929
    eval enable_$ac_useropt=\$ac_optarg ;;
930
 
931
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933
  | --exec | --exe | --ex)
934
    ac_prev=exec_prefix ;;
935
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937
  | --exec=* | --exe=* | --ex=*)
938
    exec_prefix=$ac_optarg ;;
939
 
940
  -gas | --gas | --ga | --g)
941
    # Obsolete; use --with-gas.
942
    with_gas=yes ;;
943
 
944
  -help | --help | --hel | --he | -h)
945
    ac_init_help=long ;;
946
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947
    ac_init_help=recursive ;;
948
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949
    ac_init_help=short ;;
950
 
951
  -host | --host | --hos | --ho)
952
    ac_prev=host_alias ;;
953
  -host=* | --host=* | --hos=* | --ho=*)
954
    host_alias=$ac_optarg ;;
955
 
956
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957
    ac_prev=htmldir ;;
958
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959
  | --ht=*)
960
    htmldir=$ac_optarg ;;
961
 
962
  -includedir | --includedir | --includedi | --included | --include \
963
  | --includ | --inclu | --incl | --inc)
964
    ac_prev=includedir ;;
965
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966
  | --includ=* | --inclu=* | --incl=* | --inc=*)
967
    includedir=$ac_optarg ;;
968
 
969
  -infodir | --infodir | --infodi | --infod | --info | --inf)
970
    ac_prev=infodir ;;
971
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972
    infodir=$ac_optarg ;;
973
 
974
  -libdir | --libdir | --libdi | --libd)
975
    ac_prev=libdir ;;
976
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977
    libdir=$ac_optarg ;;
978
 
979
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980
  | --libexe | --libex | --libe)
981
    ac_prev=libexecdir ;;
982
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983
  | --libexe=* | --libex=* | --libe=*)
984
    libexecdir=$ac_optarg ;;
985
 
986
  -localedir | --localedir | --localedi | --localed | --locale)
987
    ac_prev=localedir ;;
988
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989
    localedir=$ac_optarg ;;
990
 
991
  -localstatedir | --localstatedir | --localstatedi | --localstated \
992
  | --localstate | --localstat | --localsta | --localst | --locals)
993
    ac_prev=localstatedir ;;
994
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996
    localstatedir=$ac_optarg ;;
997
 
998
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999
    ac_prev=mandir ;;
1000
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001
    mandir=$ac_optarg ;;
1002
 
1003
  -nfp | --nfp | --nf)
1004
    # Obsolete; use --without-fp.
1005
    with_fp=no ;;
1006
 
1007
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008
  | --no-cr | --no-c | -n)
1009
    no_create=yes ;;
1010
 
1011
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013
    no_recursion=yes ;;
1014
 
1015
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017
  | --oldin | --oldi | --old | --ol | --o)
1018
    ac_prev=oldincludedir ;;
1019
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022
    oldincludedir=$ac_optarg ;;
1023
 
1024
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025
    ac_prev=prefix ;;
1026
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027
    prefix=$ac_optarg ;;
1028
 
1029
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030
  | --program-pre | --program-pr | --program-p)
1031
    ac_prev=program_prefix ;;
1032
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034
    program_prefix=$ac_optarg ;;
1035
 
1036
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037
  | --program-suf | --program-su | --program-s)
1038
    ac_prev=program_suffix ;;
1039
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041
    program_suffix=$ac_optarg ;;
1042
 
1043
  -program-transform-name | --program-transform-name \
1044
  | --program-transform-nam | --program-transform-na \
1045
  | --program-transform-n | --program-transform- \
1046
  | --program-transform | --program-transfor \
1047
  | --program-transfo | --program-transf \
1048
  | --program-trans | --program-tran \
1049
  | --progr-tra | --program-tr | --program-t)
1050
    ac_prev=program_transform_name ;;
1051
  -program-transform-name=* | --program-transform-name=* \
1052
  | --program-transform-nam=* | --program-transform-na=* \
1053
  | --program-transform-n=* | --program-transform-=* \
1054
  | --program-transform=* | --program-transfor=* \
1055
  | --program-transfo=* | --program-transf=* \
1056
  | --program-trans=* | --program-tran=* \
1057
  | --progr-tra=* | --program-tr=* | --program-t=*)
1058
    program_transform_name=$ac_optarg ;;
1059
 
1060
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061
    ac_prev=pdfdir ;;
1062
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063
    pdfdir=$ac_optarg ;;
1064
 
1065
  -psdir | --psdir | --psdi | --psd | --ps)
1066
    ac_prev=psdir ;;
1067
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068
    psdir=$ac_optarg ;;
1069
 
1070
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071
  | -silent | --silent | --silen | --sile | --sil)
1072
    silent=yes ;;
1073
 
1074
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075
    ac_prev=sbindir ;;
1076
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077
  | --sbi=* | --sb=*)
1078
    sbindir=$ac_optarg ;;
1079
 
1080
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082
  | --sharedst | --shareds | --shared | --share | --shar \
1083
  | --sha | --sh)
1084
    ac_prev=sharedstatedir ;;
1085
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088
  | --sha=* | --sh=*)
1089
    sharedstatedir=$ac_optarg ;;
1090
 
1091
  -site | --site | --sit)
1092
    ac_prev=site ;;
1093
  -site=* | --site=* | --sit=*)
1094
    site=$ac_optarg ;;
1095
 
1096
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097
    ac_prev=srcdir ;;
1098
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099
    srcdir=$ac_optarg ;;
1100
 
1101
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102
  | --syscon | --sysco | --sysc | --sys | --sy)
1103
    ac_prev=sysconfdir ;;
1104
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106
    sysconfdir=$ac_optarg ;;
1107
 
1108
  -target | --target | --targe | --targ | --tar | --ta | --t)
1109
    ac_prev=target_alias ;;
1110
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111
    target_alias=$ac_optarg ;;
1112
 
1113
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114
    verbose=yes ;;
1115
 
1116
  -version | --version | --versio | --versi | --vers | -V)
1117
    ac_init_version=: ;;
1118
 
1119
  -with-* | --with-*)
1120
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121
    # Reject names that are not valid shell variable names.
1122
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123
      as_fn_error "invalid package name: $ac_useropt"
1124
    ac_useropt_orig=$ac_useropt
1125
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126
    case $ac_user_opts in
1127
      *"
1128
"with_$ac_useropt"
1129
"*) ;;
1130
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131
         ac_unrecognized_sep=', ';;
1132
    esac
1133
    eval with_$ac_useropt=\$ac_optarg ;;
1134
 
1135
  -without-* | --without-*)
1136
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137
    # Reject names that are not valid shell variable names.
1138
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139
      as_fn_error "invalid package name: $ac_useropt"
1140
    ac_useropt_orig=$ac_useropt
1141
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142
    case $ac_user_opts in
1143
      *"
1144
"with_$ac_useropt"
1145
"*) ;;
1146
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147
         ac_unrecognized_sep=', ';;
1148
    esac
1149
    eval with_$ac_useropt=no ;;
1150
 
1151
  --x)
1152
    # Obsolete; use --with-x.
1153
    with_x=yes ;;
1154
 
1155
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156
  | --x-incl | --x-inc | --x-in | --x-i)
1157
    ac_prev=x_includes ;;
1158
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160
    x_includes=$ac_optarg ;;
1161
 
1162
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164
    ac_prev=x_libraries ;;
1165
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167
    x_libraries=$ac_optarg ;;
1168
 
1169
  -*) as_fn_error "unrecognized option: \`$ac_option'
1170
Try \`$0 --help' for more information."
1171
    ;;
1172
 
1173
  *=*)
1174
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175
    # Reject names that are not valid shell variable names.
1176
    case $ac_envvar in #(
1177
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179
    esac
1180
    eval $ac_envvar=\$ac_optarg
1181
    export $ac_envvar ;;
1182
 
1183
  *)
1184
    # FIXME: should be removed in autoconf 3.0.
1185
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189
    ;;
1190
 
1191
  esac
1192
done
1193
 
1194
if test -n "$ac_prev"; then
1195
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196
  as_fn_error "missing argument to $ac_option"
1197
fi
1198
 
1199
if test -n "$ac_unrecognized_opts"; then
1200
  case $enable_option_checking in
1201
    no) ;;
1202
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204
  esac
1205
fi
1206
 
1207
# Check all directory arguments for consistency.
1208
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209
                datadir sysconfdir sharedstatedir localstatedir includedir \
1210
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211
                libdir localedir mandir
1212
do
1213
  eval ac_val=\$$ac_var
1214
  # Remove trailing slashes.
1215
  case $ac_val in
1216
    */ )
1217
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218
      eval $ac_var=\$ac_val;;
1219
  esac
1220
  # Be sure to have absolute directory names.
1221
  case $ac_val in
1222
    [\\/$]* | ?:[\\/]* )  continue;;
1223
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224
  esac
1225
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226
done
1227
 
1228
# There might be people who depend on the old broken behavior: `$host'
1229
# used to hold the argument of --host etc.
1230
# FIXME: To remove some day.
1231
build=$build_alias
1232
host=$host_alias
1233
target=$target_alias
1234
 
1235
# FIXME: To remove some day.
1236
if test "x$host_alias" != x; then
1237
  if test "x$build_alias" = x; then
1238
    cross_compiling=maybe
1239
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240
    If a cross compiler is detected then cross compile mode will be used." >&2
1241
  elif test "x$build_alias" != "x$host_alias"; then
1242
    cross_compiling=yes
1243
  fi
1244
fi
1245
 
1246
ac_tool_prefix=
1247
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
 
1249
test "$silent" = yes && exec 6>/dev/null
1250
 
1251
 
1252
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253
ac_ls_di=`ls -di .` &&
1254
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255
  as_fn_error "working directory cannot be determined"
1256
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257
  as_fn_error "pwd does not report name of working directory"
1258
 
1259
 
1260
# Find the source files, if location was not specified.
1261
if test -z "$srcdir"; then
1262
  ac_srcdir_defaulted=yes
1263
  # Try the directory containing this script, then the parent directory.
1264
  ac_confdir=`$as_dirname -- "$as_myself" ||
1265
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266
         X"$as_myself" : 'X\(//\)[^/]' \| \
1267
         X"$as_myself" : 'X\(//\)$' \| \
1268
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269
$as_echo X"$as_myself" |
1270
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271
            s//\1/
1272
            q
1273
          }
1274
          /^X\(\/\/\)[^/].*/{
1275
            s//\1/
1276
            q
1277
          }
1278
          /^X\(\/\/\)$/{
1279
            s//\1/
1280
            q
1281
          }
1282
          /^X\(\/\).*/{
1283
            s//\1/
1284
            q
1285
          }
1286
          s/.*/./; q'`
1287
  srcdir=$ac_confdir
1288
  if test ! -r "$srcdir/$ac_unique_file"; then
1289
    srcdir=..
1290
  fi
1291
else
1292
  ac_srcdir_defaulted=no
1293
fi
1294
if test ! -r "$srcdir/$ac_unique_file"; then
1295
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297
fi
1298
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299
ac_abs_confdir=`(
1300
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301
        pwd)`
1302
# When building in place, set srcdir=.
1303
if test "$ac_abs_confdir" = "$ac_pwd"; then
1304
  srcdir=.
1305
fi
1306
# Remove unnecessary trailing slashes from srcdir.
1307
# Double slashes in file names in object file debugging info
1308
# mess up M-x gdb in Emacs.
1309
case $srcdir in
1310
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311
esac
1312
for ac_var in $ac_precious_vars; do
1313
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314
  eval ac_env_${ac_var}_value=\$${ac_var}
1315
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317
done
1318
 
1319
#
1320
# Report the --help message.
1321
#
1322
if test "$ac_init_help" = "long"; then
1323
  # Omit some internal or obsolete options to make the list less imposing.
1324
  # This message is too long to be a string in the A/UX 3.1 sh.
1325
  cat <<_ACEOF
1326
\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1327
 
1328
Usage: $0 [OPTION]... [VAR=VALUE]...
1329
 
1330
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331
VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
 
1333
Defaults for the options are specified in brackets.
1334
 
1335
Configuration:
1336
  -h, --help              display this help and exit
1337
      --help=short        display options specific to this package
1338
      --help=recursive    display the short help of all the included packages
1339
  -V, --version           display version information and exit
1340
  -q, --quiet, --silent   do not print \`checking...' messages
1341
      --cache-file=FILE   cache test results in FILE [disabled]
1342
  -C, --config-cache      alias for \`--cache-file=config.cache'
1343
  -n, --no-create         do not create output files
1344
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
 
1346
Installation directories:
1347
  --prefix=PREFIX         install architecture-independent files in PREFIX
1348
                          [$ac_default_prefix]
1349
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350
                          [PREFIX]
1351
 
1352
By default, \`make install' will install all the files in
1353
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355
for instance \`--prefix=\$HOME'.
1356
 
1357
For better control, use the options below.
1358
 
1359
Fine tuning of the installation directories:
1360
  --bindir=DIR            user executables [EPREFIX/bin]
1361
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366
  --libdir=DIR            object code libraries [EPREFIX/lib]
1367
  --includedir=DIR        C header files [PREFIX/include]
1368
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libitm]
1375
  --htmldir=DIR           html documentation [DOCDIR]
1376
  --dvidir=DIR            dvi documentation [DOCDIR]
1377
  --pdfdir=DIR            pdf documentation [DOCDIR]
1378
  --psdir=DIR             ps documentation [DOCDIR]
1379
_ACEOF
1380
 
1381
  cat <<\_ACEOF
1382
 
1383
Program names:
1384
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1385
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1386
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
 
1388
System types:
1389
  --build=BUILD     configure for building on BUILD [guessed]
1390
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391
  --target=TARGET   configure for building compilers for TARGET [HOST]
1392
_ACEOF
1393
fi
1394
 
1395
if test -n "$ac_init_help"; then
1396
  case $ac_init_help in
1397
     short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1398
   esac
1399
  cat <<\_ACEOF
1400
 
1401
Optional Features:
1402
  --disable-option-checking  ignore unrecognized --enable/--with options
1403
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405
  --enable-version-specific-runtime-libs
1406
                          Specify that runtime libraries should be installed
1407
                          in a compiler-specific directory [default=no]
1408
  --enable-generated-files-in-srcdir
1409
                          put copies of generated files in source dir intended
1410
                          for creating source tarballs for users without
1411
                          texinfo bison or flex. [default=no]
1412
  --enable-multilib       build many library versions (default)
1413
  --disable-dependency-tracking  speeds up one-time build
1414
  --enable-dependency-tracking   do not reject slow dependency extractors
1415
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1416
  --enable-static[=PKGS]  build static libraries [default=yes]
1417
  --enable-fast-install[=PKGS]
1418
                          optimize for fast installation [default=yes]
1419
  --disable-libtool-lock  avoid locking (might break parallel builds)
1420
  --enable-maintainer-mode  enable make rules and dependencies not useful
1421
                          (and sometimes confusing) to the casual installer
1422
  --enable-linux-futex    use the Linux futex system call [default=default]
1423
  --enable-tls            Use thread-local storage [default=yes]
1424
  --enable-symvers=STYLE  enables symbol versioning of the shared library
1425
                          [default=yes]
1426
 
1427
Optional Packages:
1428
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430
  --with-pic              try to use only PIC/non-PIC objects [default=use
1431
                          both]
1432
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433
 
1434
Some influential environment variables:
1435
  CC          C compiler command
1436
  CFLAGS      C compiler flags
1437
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1438
              nonstandard directory 
1439
  LIBS        libraries to pass to the linker, e.g. -l
1440
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1441
              you have headers in a nonstandard directory 
1442
  CXX         C++ compiler command
1443
  CXXFLAGS    C++ compiler flags
1444
  CCAS        assembler compiler command (defaults to CC)
1445
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1446
  CPP         C preprocessor
1447
  CXXCPP      C++ preprocessor
1448
 
1449
Use these variables to override the choices made by `configure' or to help
1450
it to find libraries and programs with nonstandard names/locations.
1451
 
1452
Report bugs to the package provider.
1453
GNU TM Runtime Library home page: .
1454
General help using GNU software: .
1455
_ACEOF
1456
ac_status=$?
1457
fi
1458
 
1459
if test "$ac_init_help" = "recursive"; then
1460
  # If there are subdirs, report their specific --help.
1461
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462
    test -d "$ac_dir" ||
1463
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464
      continue
1465
    ac_builddir=.
1466
 
1467
case "$ac_dir" in
1468
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469
*)
1470
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471
  # A ".." for each directory in $ac_dir_suffix.
1472
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473
  case $ac_top_builddir_sub in
1474
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476
  esac ;;
1477
esac
1478
ac_abs_top_builddir=$ac_pwd
1479
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480
# for backward compatibility:
1481
ac_top_builddir=$ac_top_build_prefix
1482
 
1483
case $srcdir in
1484
  .)  # We are building in place.
1485
    ac_srcdir=.
1486
    ac_top_srcdir=$ac_top_builddir_sub
1487
    ac_abs_top_srcdir=$ac_pwd ;;
1488
  [\\/]* | ?:[\\/]* )  # Absolute name.
1489
    ac_srcdir=$srcdir$ac_dir_suffix;
1490
    ac_top_srcdir=$srcdir
1491
    ac_abs_top_srcdir=$srcdir ;;
1492
  *) # Relative name.
1493
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496
esac
1497
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
 
1499
    cd "$ac_dir" || { ac_status=$?; continue; }
1500
    # Check for guested configure.
1501
    if test -f "$ac_srcdir/configure.gnu"; then
1502
      echo &&
1503
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504
    elif test -f "$ac_srcdir/configure"; then
1505
      echo &&
1506
      $SHELL "$ac_srcdir/configure" --help=recursive
1507
    else
1508
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509
    fi || ac_status=$?
1510
    cd "$ac_pwd" || { ac_status=$?; break; }
1511
  done
1512
fi
1513
 
1514
test -n "$ac_init_help" && exit $ac_status
1515
if $ac_init_version; then
1516
  cat <<\_ACEOF
1517
GNU TM Runtime Library configure 1.0
1518
generated by GNU Autoconf 2.64
1519
 
1520
Copyright (C) 2009 Free Software Foundation, Inc.
1521
This configure script is free software; the Free Software Foundation
1522
gives unlimited permission to copy, distribute and modify it.
1523
_ACEOF
1524
  exit
1525
fi
1526
 
1527
## ------------------------ ##
1528
## Autoconf initialization. ##
1529
## ------------------------ ##
1530
 
1531
# ac_fn_c_try_compile LINENO
1532
# --------------------------
1533
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534
ac_fn_c_try_compile ()
1535
{
1536
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537
  rm -f conftest.$ac_objext
1538
  if { { ac_try="$ac_compile"
1539
case "(($ac_try" in
1540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541
  *) ac_try_echo=$ac_try;;
1542
esac
1543
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544
$as_echo "$ac_try_echo"; } >&5
1545
  (eval "$ac_compile") 2>conftest.err
1546
  ac_status=$?
1547
  if test -s conftest.err; then
1548
    grep -v '^ *+' conftest.err >conftest.er1
1549
    cat conftest.er1 >&5
1550
    mv -f conftest.er1 conftest.err
1551
  fi
1552
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553
  test $ac_status = 0; } && {
1554
         test -z "$ac_c_werror_flag" ||
1555
         test ! -s conftest.err
1556
       } && test -s conftest.$ac_objext; then :
1557
  ac_retval=0
1558
else
1559
  $as_echo "$as_me: failed program was:" >&5
1560
sed 's/^/| /' conftest.$ac_ext >&5
1561
 
1562
        ac_retval=1
1563
fi
1564
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565
  return $ac_retval
1566
 
1567
} # ac_fn_c_try_compile
1568
 
1569
# ac_fn_cxx_try_compile LINENO
1570
# ----------------------------
1571
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572
ac_fn_cxx_try_compile ()
1573
{
1574
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575
  rm -f conftest.$ac_objext
1576
  if { { ac_try="$ac_compile"
1577
case "(($ac_try" in
1578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579
  *) ac_try_echo=$ac_try;;
1580
esac
1581
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582
$as_echo "$ac_try_echo"; } >&5
1583
  (eval "$ac_compile") 2>conftest.err
1584
  ac_status=$?
1585
  if test -s conftest.err; then
1586
    grep -v '^ *+' conftest.err >conftest.er1
1587
    cat conftest.er1 >&5
1588
    mv -f conftest.er1 conftest.err
1589
  fi
1590
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591
  test $ac_status = 0; } && {
1592
         test -z "$ac_cxx_werror_flag" ||
1593
         test ! -s conftest.err
1594
       } && test -s conftest.$ac_objext; then :
1595
  ac_retval=0
1596
else
1597
  $as_echo "$as_me: failed program was:" >&5
1598
sed 's/^/| /' conftest.$ac_ext >&5
1599
 
1600
        ac_retval=1
1601
fi
1602
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603
  return $ac_retval
1604
 
1605
} # ac_fn_cxx_try_compile
1606
 
1607
# ac_fn_c_try_link LINENO
1608
# -----------------------
1609
# Try to link conftest.$ac_ext, and return whether this succeeded.
1610
ac_fn_c_try_link ()
1611
{
1612
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613
  rm -f conftest.$ac_objext conftest$ac_exeext
1614
  if { { ac_try="$ac_link"
1615
case "(($ac_try" in
1616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617
  *) ac_try_echo=$ac_try;;
1618
esac
1619
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620
$as_echo "$ac_try_echo"; } >&5
1621
  (eval "$ac_link") 2>conftest.err
1622
  ac_status=$?
1623
  if test -s conftest.err; then
1624
    grep -v '^ *+' conftest.err >conftest.er1
1625
    cat conftest.er1 >&5
1626
    mv -f conftest.er1 conftest.err
1627
  fi
1628
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629
  test $ac_status = 0; } && {
1630
         test -z "$ac_c_werror_flag" ||
1631
         test ! -s conftest.err
1632
       } && test -s conftest$ac_exeext && {
1633
         test "$cross_compiling" = yes ||
1634
         $as_test_x conftest$ac_exeext
1635
       }; then :
1636
  ac_retval=0
1637
else
1638
  $as_echo "$as_me: failed program was:" >&5
1639
sed 's/^/| /' conftest.$ac_ext >&5
1640
 
1641
        ac_retval=1
1642
fi
1643
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645
  # interfere with the next link command; also delete a directory that is
1646
  # left behind by Apple's compiler.  We do this before executing the actions.
1647
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649
  return $ac_retval
1650
 
1651
} # ac_fn_c_try_link
1652
 
1653
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654
# -------------------------------------------------------
1655
# Tests whether HEADER exists and can be compiled using the include files in
1656
# INCLUDES, setting the cache variable VAR accordingly.
1657
ac_fn_c_check_header_compile ()
1658
{
1659
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661
$as_echo_n "checking for $2... " >&6; }
1662
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663
  $as_echo_n "(cached) " >&6
1664
else
1665
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666
/* end confdefs.h.  */
1667
$4
1668
#include <$2>
1669
_ACEOF
1670
if ac_fn_c_try_compile "$LINENO"; then :
1671
  eval "$3=yes"
1672
else
1673
  eval "$3=no"
1674
fi
1675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676
fi
1677
eval ac_res=\$$3
1678
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679
$as_echo "$ac_res" >&6; }
1680
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
 
1682
} # ac_fn_c_check_header_compile
1683
 
1684
# ac_fn_c_try_cpp LINENO
1685
# ----------------------
1686
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687
ac_fn_c_try_cpp ()
1688
{
1689
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1691
case "(($ac_try" in
1692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693
  *) ac_try_echo=$ac_try;;
1694
esac
1695
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696
$as_echo "$ac_try_echo"; } >&5
1697
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698
  ac_status=$?
1699
  if test -s conftest.err; then
1700
    grep -v '^ *+' conftest.err >conftest.er1
1701
    cat conftest.er1 >&5
1702
    mv -f conftest.er1 conftest.err
1703
  fi
1704
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705
  test $ac_status = 0; } >/dev/null && {
1706
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707
         test ! -s conftest.err
1708
       }; then :
1709
  ac_retval=0
1710
else
1711
  $as_echo "$as_me: failed program was:" >&5
1712
sed 's/^/| /' conftest.$ac_ext >&5
1713
 
1714
    ac_retval=1
1715
fi
1716
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717
  return $ac_retval
1718
 
1719
} # ac_fn_c_try_cpp
1720
 
1721
# ac_fn_c_try_run LINENO
1722
# ----------------------
1723
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724
# that executables *can* be run.
1725
ac_fn_c_try_run ()
1726
{
1727
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
  if { { ac_try="$ac_link"
1729
case "(($ac_try" in
1730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731
  *) ac_try_echo=$ac_try;;
1732
esac
1733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734
$as_echo "$ac_try_echo"; } >&5
1735
  (eval "$ac_link") 2>&5
1736
  ac_status=$?
1737
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739
  { { case "(($ac_try" in
1740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741
  *) ac_try_echo=$ac_try;;
1742
esac
1743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744
$as_echo "$ac_try_echo"; } >&5
1745
  (eval "$ac_try") 2>&5
1746
  ac_status=$?
1747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
  test $ac_status = 0; }; }; then :
1749
  ac_retval=0
1750
else
1751
  $as_echo "$as_me: program exited with status $ac_status" >&5
1752
       $as_echo "$as_me: failed program was:" >&5
1753
sed 's/^/| /' conftest.$ac_ext >&5
1754
 
1755
       ac_retval=$ac_status
1756
fi
1757
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
  return $ac_retval
1760
 
1761
} # ac_fn_c_try_run
1762
 
1763
# ac_fn_c_check_func LINENO FUNC VAR
1764
# ----------------------------------
1765
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766
ac_fn_c_check_func ()
1767
{
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770
$as_echo_n "checking for $2... " >&6; }
1771
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  $as_echo_n "(cached) " >&6
1773
else
1774
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775
/* end confdefs.h.  */
1776
/* Define $2 to an innocuous variant, in case  declares $2.
1777
   For example, HP-UX 11i  declares gettimeofday.  */
1778
#define $2 innocuous_$2
1779
 
1780
/* System header to define __stub macros and hopefully few prototypes,
1781
    which can conflict with char $2 (); below.
1782
    Prefer  to  if __STDC__ is defined, since
1783
     exists even on freestanding compilers.  */
1784
 
1785
#ifdef __STDC__
1786
# include 
1787
#else
1788
# include 
1789
#endif
1790
 
1791
#undef $2
1792
 
1793
/* Override any GCC internal prototype to avoid an error.
1794
   Use char because int might match the return type of a GCC
1795
   builtin and then its argument prototype would still apply.  */
1796
#ifdef __cplusplus
1797
extern "C"
1798
#endif
1799
char $2 ();
1800
/* The GNU C library defines this for functions which it implements
1801
    to always fail with ENOSYS.  Some functions are actually named
1802
    something starting with __ and the normal name is an alias.  */
1803
#if defined __stub_$2 || defined __stub___$2
1804
choke me
1805
#endif
1806
 
1807
int
1808
main ()
1809
{
1810
return $2 ();
1811
  ;
1812
  return 0;
1813
}
1814
_ACEOF
1815
if ac_fn_c_try_link "$LINENO"; then :
1816
  eval "$3=yes"
1817
else
1818
  eval "$3=no"
1819
fi
1820
rm -f core conftest.err conftest.$ac_objext \
1821
    conftest$ac_exeext conftest.$ac_ext
1822
fi
1823
eval ac_res=\$$3
1824
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825
$as_echo "$ac_res" >&6; }
1826
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
 
1828
} # ac_fn_c_check_func
1829
 
1830
# ac_fn_cxx_try_cpp LINENO
1831
# ------------------------
1832
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833
ac_fn_cxx_try_cpp ()
1834
{
1835
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1837
case "(($ac_try" in
1838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839
  *) ac_try_echo=$ac_try;;
1840
esac
1841
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842
$as_echo "$ac_try_echo"; } >&5
1843
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844
  ac_status=$?
1845
  if test -s conftest.err; then
1846
    grep -v '^ *+' conftest.err >conftest.er1
1847
    cat conftest.er1 >&5
1848
    mv -f conftest.er1 conftest.err
1849
  fi
1850
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851
  test $ac_status = 0; } >/dev/null && {
1852
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1853
         test ! -s conftest.err
1854
       }; then :
1855
  ac_retval=0
1856
else
1857
  $as_echo "$as_me: failed program was:" >&5
1858
sed 's/^/| /' conftest.$ac_ext >&5
1859
 
1860
    ac_retval=1
1861
fi
1862
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
  return $ac_retval
1864
 
1865
} # ac_fn_cxx_try_cpp
1866
 
1867
# ac_fn_cxx_try_link LINENO
1868
# -------------------------
1869
# Try to link conftest.$ac_ext, and return whether this succeeded.
1870
ac_fn_cxx_try_link ()
1871
{
1872
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873
  rm -f conftest.$ac_objext conftest$ac_exeext
1874
  if { { ac_try="$ac_link"
1875
case "(($ac_try" in
1876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877
  *) ac_try_echo=$ac_try;;
1878
esac
1879
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880
$as_echo "$ac_try_echo"; } >&5
1881
  (eval "$ac_link") 2>conftest.err
1882
  ac_status=$?
1883
  if test -s conftest.err; then
1884
    grep -v '^ *+' conftest.err >conftest.er1
1885
    cat conftest.er1 >&5
1886
    mv -f conftest.er1 conftest.err
1887
  fi
1888
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889
  test $ac_status = 0; } && {
1890
         test -z "$ac_cxx_werror_flag" ||
1891
         test ! -s conftest.err
1892
       } && test -s conftest$ac_exeext && {
1893
         test "$cross_compiling" = yes ||
1894
         $as_test_x conftest$ac_exeext
1895
       }; then :
1896
  ac_retval=0
1897
else
1898
  $as_echo "$as_me: failed program was:" >&5
1899
sed 's/^/| /' conftest.$ac_ext >&5
1900
 
1901
        ac_retval=1
1902
fi
1903
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905
  # interfere with the next link command; also delete a directory that is
1906
  # left behind by Apple's compiler.  We do this before executing the actions.
1907
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
  return $ac_retval
1910
 
1911
} # ac_fn_cxx_try_link
1912
 
1913
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914
# -------------------------------------------------------
1915
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916
# the include files in INCLUDES and setting the cache variable VAR
1917
# accordingly.
1918
ac_fn_c_check_header_mongrel ()
1919
{
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923
$as_echo_n "checking for $2... " >&6; }
1924
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925
  $as_echo_n "(cached) " >&6
1926
fi
1927
eval ac_res=\$$3
1928
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929
$as_echo "$ac_res" >&6; }
1930
else
1931
  # Is the header compilable?
1932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933
$as_echo_n "checking $2 usability... " >&6; }
1934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935
/* end confdefs.h.  */
1936
$4
1937
#include <$2>
1938
_ACEOF
1939
if ac_fn_c_try_compile "$LINENO"; then :
1940
  ac_header_compiler=yes
1941
else
1942
  ac_header_compiler=no
1943
fi
1944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946
$as_echo "$ac_header_compiler" >&6; }
1947
 
1948
# Is the header present?
1949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950
$as_echo_n "checking $2 presence... " >&6; }
1951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952
/* end confdefs.h.  */
1953
#include <$2>
1954
_ACEOF
1955
if ac_fn_c_try_cpp "$LINENO"; then :
1956
  ac_header_preproc=yes
1957
else
1958
  ac_header_preproc=no
1959
fi
1960
rm -f conftest.err conftest.$ac_ext
1961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962
$as_echo "$ac_header_preproc" >&6; }
1963
 
1964
# So?  What about this header?
1965
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966
  yes:no: )
1967
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971
    ;;
1972
  no:yes:* )
1973
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1976
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1977
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1980
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1981
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983
    ;;
1984
esac
1985
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986
$as_echo_n "checking for $2... " >&6; }
1987
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988
  $as_echo_n "(cached) " >&6
1989
else
1990
  eval "$3=\$ac_header_compiler"
1991
fi
1992
eval ac_res=\$$3
1993
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994
$as_echo "$ac_res" >&6; }
1995
fi
1996
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
 
1998
} # ac_fn_c_check_header_mongrel
1999
 
2000
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001
# -------------------------------------------
2002
# Tests whether TYPE exists after having included INCLUDES, setting cache
2003
# variable VAR accordingly.
2004
ac_fn_c_check_type ()
2005
{
2006
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008
$as_echo_n "checking for $2... " >&6; }
2009
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010
  $as_echo_n "(cached) " >&6
2011
else
2012
  eval "$3=no"
2013
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014
/* end confdefs.h.  */
2015
$4
2016
int
2017
main ()
2018
{
2019
if (sizeof ($2))
2020
         return 0;
2021
  ;
2022
  return 0;
2023
}
2024
_ACEOF
2025
if ac_fn_c_try_compile "$LINENO"; then :
2026
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027
/* end confdefs.h.  */
2028
$4
2029
int
2030
main ()
2031
{
2032
if (sizeof (($2)))
2033
            return 0;
2034
  ;
2035
  return 0;
2036
}
2037
_ACEOF
2038
if ac_fn_c_try_compile "$LINENO"; then :
2039
 
2040
else
2041
  eval "$3=yes"
2042
fi
2043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044
fi
2045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046
fi
2047
eval ac_res=\$$3
2048
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049
$as_echo "$ac_res" >&6; }
2050
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
 
2052
} # ac_fn_c_check_type
2053
 
2054
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055
# --------------------------------------------
2056
# Tries to find the compile-time value of EXPR in a program that includes
2057
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2058
# computed
2059
ac_fn_c_compute_int ()
2060
{
2061
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062
  if test "$cross_compiling" = yes; then
2063
    # Depending upon the size, compute the lo and hi bounds.
2064
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065
/* end confdefs.h.  */
2066
$4
2067
int
2068
main ()
2069
{
2070
static int test_array [1 - 2 * !(($2) >= 0)];
2071
test_array [0] = 0
2072
 
2073
  ;
2074
  return 0;
2075
}
2076
_ACEOF
2077
if ac_fn_c_try_compile "$LINENO"; then :
2078
  ac_lo=0 ac_mid=0
2079
  while :; do
2080
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081
/* end confdefs.h.  */
2082
$4
2083
int
2084
main ()
2085
{
2086
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087
test_array [0] = 0
2088
 
2089
  ;
2090
  return 0;
2091
}
2092
_ACEOF
2093
if ac_fn_c_try_compile "$LINENO"; then :
2094
  ac_hi=$ac_mid; break
2095
else
2096
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097
                        if test $ac_lo -le $ac_mid; then
2098
                          ac_lo= ac_hi=
2099
                          break
2100
                        fi
2101
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102
fi
2103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104
  done
2105
else
2106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107
/* end confdefs.h.  */
2108
$4
2109
int
2110
main ()
2111
{
2112
static int test_array [1 - 2 * !(($2) < 0)];
2113
test_array [0] = 0
2114
 
2115
  ;
2116
  return 0;
2117
}
2118
_ACEOF
2119
if ac_fn_c_try_compile "$LINENO"; then :
2120
  ac_hi=-1 ac_mid=-1
2121
  while :; do
2122
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123
/* end confdefs.h.  */
2124
$4
2125
int
2126
main ()
2127
{
2128
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129
test_array [0] = 0
2130
 
2131
  ;
2132
  return 0;
2133
}
2134
_ACEOF
2135
if ac_fn_c_try_compile "$LINENO"; then :
2136
  ac_lo=$ac_mid; break
2137
else
2138
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139
                        if test $ac_mid -le $ac_hi; then
2140
                          ac_lo= ac_hi=
2141
                          break
2142
                        fi
2143
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144
fi
2145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146
  done
2147
else
2148
  ac_lo= ac_hi=
2149
fi
2150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151
fi
2152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153
# Binary search between lo and hi bounds.
2154
while test "x$ac_lo" != "x$ac_hi"; do
2155
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157
/* end confdefs.h.  */
2158
$4
2159
int
2160
main ()
2161
{
2162
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163
test_array [0] = 0
2164
 
2165
  ;
2166
  return 0;
2167
}
2168
_ACEOF
2169
if ac_fn_c_try_compile "$LINENO"; then :
2170
  ac_hi=$ac_mid
2171
else
2172
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173
fi
2174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175
done
2176
case $ac_lo in #((
2177
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178
'') ac_retval=1 ;;
2179
esac
2180
  else
2181
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182
/* end confdefs.h.  */
2183
$4
2184
static long int longval () { return $2; }
2185
static unsigned long int ulongval () { return $2; }
2186
#include 
2187
#include 
2188
int
2189
main ()
2190
{
2191
 
2192
  FILE *f = fopen ("conftest.val", "w");
2193
  if (! f)
2194
    return 1;
2195
  if (($2) < 0)
2196
    {
2197
      long int i = longval ();
2198
      if (i != ($2))
2199
        return 1;
2200
      fprintf (f, "%ld", i);
2201
    }
2202
  else
2203
    {
2204
      unsigned long int i = ulongval ();
2205
      if (i != ($2))
2206
        return 1;
2207
      fprintf (f, "%lu", i);
2208
    }
2209
  /* Do not output a trailing newline, as this causes \r\n confusion
2210
     on some platforms.  */
2211
  return ferror (f) || fclose (f) != 0;
2212
 
2213
  ;
2214
  return 0;
2215
}
2216
_ACEOF
2217
if ac_fn_c_try_run "$LINENO"; then :
2218
  echo >>conftest.val; read $3 
2219
else
2220
  ac_retval=1
2221
fi
2222
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2224
rm -f conftest.val
2225
 
2226
  fi
2227
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228
  return $ac_retval
2229
 
2230
} # ac_fn_c_compute_int
2231
 
2232
# ac_fn_c_check_decl LINENO SYMBOL VAR
2233
# ------------------------------------
2234
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235
ac_fn_c_check_decl ()
2236
{
2237
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238
  as_decl_name=`echo $2|sed 's/ *(.*//'`
2239
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243
  $as_echo_n "(cached) " >&6
2244
else
2245
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246
/* end confdefs.h.  */
2247
$4
2248
int
2249
main ()
2250
{
2251
#ifndef $as_decl_name
2252
#ifdef __cplusplus
2253
  (void) $as_decl_use;
2254
#else
2255
  (void) $as_decl_name;
2256
#endif
2257
#endif
2258
 
2259
  ;
2260
  return 0;
2261
}
2262
_ACEOF
2263
if ac_fn_c_try_compile "$LINENO"; then :
2264
  eval "$3=yes"
2265
else
2266
  eval "$3=no"
2267
fi
2268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269
fi
2270
eval ac_res=\$$3
2271
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272
$as_echo "$ac_res" >&6; }
2273
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
 
2275
} # ac_fn_c_check_decl
2276
cat >config.log <<_ACEOF
2277
This file contains any messages produced by compilers while
2278
running configure, to aid debugging if configure makes a mistake.
2279
 
2280
It was created by GNU TM Runtime Library $as_me 1.0, which was
2281
generated by GNU Autoconf 2.64.  Invocation command line was
2282
 
2283
  $ $0 $@
2284
 
2285
_ACEOF
2286
exec 5>>config.log
2287
{
2288
cat <<_ASUNAME
2289
## --------- ##
2290
## Platform. ##
2291
## --------- ##
2292
 
2293
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
 
2299
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
 
2302
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
 
2310
_ASUNAME
2311
 
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313
for as_dir in $PATH
2314
do
2315
  IFS=$as_save_IFS
2316
  test -z "$as_dir" && as_dir=.
2317
    $as_echo "PATH: $as_dir"
2318
  done
2319
IFS=$as_save_IFS
2320
 
2321
} >&5
2322
 
2323
cat >&5 <<_ACEOF
2324
 
2325
 
2326
## ----------- ##
2327
## Core tests. ##
2328
## ----------- ##
2329
 
2330
_ACEOF
2331
 
2332
 
2333
# Keep a trace of the command line.
2334
# Strip out --no-create and --no-recursion so they do not pile up.
2335
# Strip out --silent because we don't want to record it for future runs.
2336
# Also quote any args containing shell meta-characters.
2337
# Make two passes to allow for proper duplicate-argument suppression.
2338
ac_configure_args=
2339
ac_configure_args0=
2340
ac_configure_args1=
2341
ac_must_keep_next=false
2342
for ac_pass in 1 2
2343
do
2344
  for ac_arg
2345
  do
2346
    case $ac_arg in
2347
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349
    | -silent | --silent | --silen | --sile | --sil)
2350
      continue ;;
2351
    *\'*)
2352
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353
    esac
2354
    case $ac_pass in
2355
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356
    2)
2357
      as_fn_append ac_configure_args1 " '$ac_arg'"
2358
      if test $ac_must_keep_next = true; then
2359
        ac_must_keep_next=false # Got value, back to normal.
2360
      else
2361
        case $ac_arg in
2362
          *=* | --config-cache | -C | -disable-* | --disable-* \
2363
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365
          | -with-* | --with-* | -without-* | --without-* | --x)
2366
            case "$ac_configure_args0 " in
2367
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368
            esac
2369
            ;;
2370
          -* ) ac_must_keep_next=true ;;
2371
        esac
2372
      fi
2373
      as_fn_append ac_configure_args " '$ac_arg'"
2374
      ;;
2375
    esac
2376
  done
2377
done
2378
{ ac_configure_args0=; unset ac_configure_args0;}
2379
{ ac_configure_args1=; unset ac_configure_args1;}
2380
 
2381
# When interrupted or exit'd, cleanup temporary files, and complete
2382
# config.log.  We remove comments because anyway the quotes in there
2383
# would cause problems or look ugly.
2384
# WARNING: Use '\'' to represent an apostrophe within the trap.
2385
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386
trap 'exit_status=$?
2387
  # Save into config.log some information that might help in debugging.
2388
  {
2389
    echo
2390
 
2391
    cat <<\_ASBOX
2392
## ---------------- ##
2393
## Cache variables. ##
2394
## ---------------- ##
2395
_ASBOX
2396
    echo
2397
    # The following way of writing the cache mishandles newlines in values,
2398
(
2399
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400
    eval ac_val=\$$ac_var
2401
    case $ac_val in #(
2402
    *${as_nl}*)
2403
      case $ac_var in #(
2404
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406
      esac
2407
      case $ac_var in #(
2408
      _ | IFS | as_nl) ;; #(
2409
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410
      *) { eval $ac_var=; unset $ac_var;} ;;
2411
      esac ;;
2412
    esac
2413
  done
2414
  (set) 2>&1 |
2415
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416
    *${as_nl}ac_space=\ *)
2417
      sed -n \
2418
        "s/'\''/'\''\\\\'\'''\''/g;
2419
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420
      ;; #(
2421
    *)
2422
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423
      ;;
2424
    esac |
2425
    sort
2426
)
2427
    echo
2428
 
2429
    cat <<\_ASBOX
2430
## ----------------- ##
2431
## Output variables. ##
2432
## ----------------- ##
2433
_ASBOX
2434
    echo
2435
    for ac_var in $ac_subst_vars
2436
    do
2437
      eval ac_val=\$$ac_var
2438
      case $ac_val in
2439
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440
      esac
2441
      $as_echo "$ac_var='\''$ac_val'\''"
2442
    done | sort
2443
    echo
2444
 
2445
    if test -n "$ac_subst_files"; then
2446
      cat <<\_ASBOX
2447
## ------------------- ##
2448
## File substitutions. ##
2449
## ------------------- ##
2450
_ASBOX
2451
      echo
2452
      for ac_var in $ac_subst_files
2453
      do
2454
        eval ac_val=\$$ac_var
2455
        case $ac_val in
2456
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457
        esac
2458
        $as_echo "$ac_var='\''$ac_val'\''"
2459
      done | sort
2460
      echo
2461
    fi
2462
 
2463
    if test -s confdefs.h; then
2464
      cat <<\_ASBOX
2465
## ----------- ##
2466
## confdefs.h. ##
2467
## ----------- ##
2468
_ASBOX
2469
      echo
2470
      cat confdefs.h
2471
      echo
2472
    fi
2473
    test "$ac_signal" != 0 &&
2474
      $as_echo "$as_me: caught signal $ac_signal"
2475
    $as_echo "$as_me: exit $exit_status"
2476
  } >&5
2477
  rm -f core *.core core.conftest.* &&
2478
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479
    exit $exit_status
2480
' 0
2481
for ac_signal in 1 2 13 15; do
2482
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483
done
2484
ac_signal=0
2485
 
2486
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487
rm -f -r conftest* confdefs.h
2488
 
2489
$as_echo "/* confdefs.h */" > confdefs.h
2490
 
2491
# Predefined preprocessor variables.
2492
 
2493
cat >>confdefs.h <<_ACEOF
2494
#define PACKAGE_NAME "$PACKAGE_NAME"
2495
_ACEOF
2496
 
2497
cat >>confdefs.h <<_ACEOF
2498
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499
_ACEOF
2500
 
2501
cat >>confdefs.h <<_ACEOF
2502
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503
_ACEOF
2504
 
2505
cat >>confdefs.h <<_ACEOF
2506
#define PACKAGE_STRING "$PACKAGE_STRING"
2507
_ACEOF
2508
 
2509
cat >>confdefs.h <<_ACEOF
2510
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511
_ACEOF
2512
 
2513
cat >>confdefs.h <<_ACEOF
2514
#define PACKAGE_URL "$PACKAGE_URL"
2515
_ACEOF
2516
 
2517
 
2518
# Let the site file select an alternate cache file if it wants to.
2519
# Prefer an explicitly selected file to automatically selected ones.
2520
ac_site_file1=NONE
2521
ac_site_file2=NONE
2522
if test -n "$CONFIG_SITE"; then
2523
  ac_site_file1=$CONFIG_SITE
2524
elif test "x$prefix" != xNONE; then
2525
  ac_site_file1=$prefix/share/config.site
2526
  ac_site_file2=$prefix/etc/config.site
2527
else
2528
  ac_site_file1=$ac_default_prefix/share/config.site
2529
  ac_site_file2=$ac_default_prefix/etc/config.site
2530
fi
2531
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532
do
2533
  test "x$ac_site_file" = xNONE && continue
2534
  if test -r "$ac_site_file"; then
2535
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537
    sed 's/^/| /' "$ac_site_file" >&5
2538
    . "$ac_site_file"
2539
  fi
2540
done
2541
 
2542
if test -r "$cache_file"; then
2543
  # Some versions of bash will fail to source /dev/null (special
2544
  # files actually), so we avoid doing that.
2545
  if test -f "$cache_file"; then
2546
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547
$as_echo "$as_me: loading cache $cache_file" >&6;}
2548
    case $cache_file in
2549
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550
      *)                      . "./$cache_file";;
2551
    esac
2552
  fi
2553
else
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555
$as_echo "$as_me: creating cache $cache_file" >&6;}
2556
  >$cache_file
2557
fi
2558
 
2559
# Check that the precious variables saved in the cache have kept the same
2560
# value.
2561
ac_cache_corrupted=false
2562
for ac_var in $ac_precious_vars; do
2563
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564
  eval ac_new_set=\$ac_env_${ac_var}_set
2565
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566
  eval ac_new_val=\$ac_env_${ac_var}_value
2567
  case $ac_old_set,$ac_new_set in
2568
    set,)
2569
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571
      ac_cache_corrupted=: ;;
2572
    ,set)
2573
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575
      ac_cache_corrupted=: ;;
2576
    ,);;
2577
    *)
2578
      if test "x$ac_old_val" != "x$ac_new_val"; then
2579
        # differences in whitespace do not lead to failure.
2580
        ac_old_val_w=`echo x $ac_old_val`
2581
        ac_new_val_w=`echo x $ac_new_val`
2582
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585
          ac_cache_corrupted=:
2586
        else
2587
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589
          eval $ac_var=\$ac_old_val
2590
        fi
2591
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2592
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2593
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2594
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2595
      fi;;
2596
  esac
2597
  # Pass precious variables to config.status.
2598
  if test "$ac_new_set" = set; then
2599
    case $ac_new_val in
2600
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601
    *) ac_arg=$ac_var=$ac_new_val ;;
2602
    esac
2603
    case " $ac_configure_args " in
2604
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2605
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606
    esac
2607
  fi
2608
done
2609
if $ac_cache_corrupted; then
2610
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615
fi
2616
## -------------------- ##
2617
## Main body of script. ##
2618
## -------------------- ##
2619
 
2620
ac_ext=c
2621
ac_cpp='$CPP $CPPFLAGS'
2622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
 
2626
 
2627
 
2628
 
2629
 
2630
ac_config_headers="$ac_config_headers config.h"
2631
 
2632
 
2633
# -------
2634
# Options
2635
# -------
2636
 
2637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2638
$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2639
 # Check whether --enable-version-specific-runtime-libs was given.
2640
if test "${enable_version_specific_runtime_libs+set}" = set; then :
2641
  enableval=$enable_version_specific_runtime_libs;
2642
      case "$enableval" in
2643
       yes|no) ;;
2644
       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2645
                          esac
2646
 
2647
else
2648
  enable_version_specific_runtime_libs=no
2649
fi
2650
 
2651
 
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2653
$as_echo "$enable_version_specific_runtime_libs" >&6; }
2654
 
2655
# We would like our source tree to be readonly. However when releases or
2656
# pre-releases are generated, the flex/bison generated files as well as the
2657
# various formats of manuals need to be included along with the rest of the
2658
# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2659
# just that.
2660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2661
$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2662
 # Check whether --enable-generated-files-in-srcdir was given.
2663
if test "${enable_generated_files_in_srcdir+set}" = set; then :
2664
  enableval=$enable_generated_files_in_srcdir;
2665
      case "$enableval" in
2666
       yes|no) ;;
2667
       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2668
                          esac
2669
 
2670
else
2671
  enable_generated_files_in_srcdir=no
2672
fi
2673
 
2674
 
2675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2676
$as_echo "$enable_generated_files_in_srcdir" >&6; }
2677
 if test "$enable_generated_files_in_srcdir" = yes; then
2678
  GENINSRC_TRUE=
2679
  GENINSRC_FALSE='#'
2680
else
2681
  GENINSRC_TRUE='#'
2682
  GENINSRC_FALSE=
2683
fi
2684
 
2685
 
2686
 
2687
# -------
2688
# -------
2689
 
2690
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2691
#
2692
# You will slowly go insane if you do not grok the following fact:  when
2693
# building this library, the top-level /target/ becomes the library's /host/.
2694
#
2695
# configure then causes --target to default to --host, exactly like any
2696
# other package using autoconf.  Therefore, 'target' and 'host' will
2697
# always be the same.  This makes sense both for native and cross compilers
2698
# just think about it for a little while.  :-)
2699
#
2700
# Also, if this library is being configured as part of a cross compiler, the
2701
# top-level configure script will pass the "real" host as $with_cross_host.
2702
#
2703
# Do not delete or change the following two lines.  For why, see
2704
# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2705
ac_aux_dir=
2706
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707
  for ac_t in install-sh install.sh shtool; do
2708
    if test -f "$ac_dir/$ac_t"; then
2709
      ac_aux_dir=$ac_dir
2710
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2711
      break 2
2712
    fi
2713
  done
2714
done
2715
if test -z "$ac_aux_dir"; then
2716
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717
fi
2718
 
2719
# These three variables are undocumented and unsupported,
2720
# and are intended to be withdrawn in a future Autoconf release.
2721
# They can cause serious problems if a builder's source tree is in a directory
2722
# whose full name contains unusual characters.
2723
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2724
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2725
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2726
 
2727
 
2728
# Make sure we can run config.sub.
2729
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
 
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733
$as_echo_n "checking build system type... " >&6; }
2734
if test "${ac_cv_build+set}" = set; then :
2735
  $as_echo_n "(cached) " >&6
2736
else
2737
  ac_build_alias=$build_alias
2738
test "x$ac_build_alias" = x &&
2739
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740
test "x$ac_build_alias" = x &&
2741
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2742
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
 
2745
fi
2746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747
$as_echo "$ac_cv_build" >&6; }
2748
case $ac_cv_build in
2749
*-*-*) ;;
2750
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751
esac
2752
build=$ac_cv_build
2753
ac_save_IFS=$IFS; IFS='-'
2754
set x $ac_cv_build
2755
shift
2756
build_cpu=$1
2757
build_vendor=$2
2758
shift; shift
2759
# Remember, the first character of IFS is used to create $*,
2760
# except with old shells:
2761
build_os=$*
2762
IFS=$ac_save_IFS
2763
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
 
2765
 
2766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767
$as_echo_n "checking host system type... " >&6; }
2768
if test "${ac_cv_host+set}" = set; then :
2769
  $as_echo_n "(cached) " >&6
2770
else
2771
  if test "x$host_alias" = x; then
2772
  ac_cv_host=$ac_cv_build
2773
else
2774
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776
fi
2777
 
2778
fi
2779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780
$as_echo "$ac_cv_host" >&6; }
2781
case $ac_cv_host in
2782
*-*-*) ;;
2783
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784
esac
2785
host=$ac_cv_host
2786
ac_save_IFS=$IFS; IFS='-'
2787
set x $ac_cv_host
2788
shift
2789
host_cpu=$1
2790
host_vendor=$2
2791
shift; shift
2792
# Remember, the first character of IFS is used to create $*,
2793
# except with old shells:
2794
host_os=$*
2795
IFS=$ac_save_IFS
2796
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
 
2798
 
2799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800
$as_echo_n "checking target system type... " >&6; }
2801
if test "${ac_cv_target+set}" = set; then :
2802
  $as_echo_n "(cached) " >&6
2803
else
2804
  if test "x$target_alias" = x; then
2805
  ac_cv_target=$ac_cv_host
2806
else
2807
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809
fi
2810
 
2811
fi
2812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813
$as_echo "$ac_cv_target" >&6; }
2814
case $ac_cv_target in
2815
*-*-*) ;;
2816
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817
esac
2818
target=$ac_cv_target
2819
ac_save_IFS=$IFS; IFS='-'
2820
set x $ac_cv_target
2821
shift
2822
target_cpu=$1
2823
target_vendor=$2
2824
shift; shift
2825
# Remember, the first character of IFS is used to create $*,
2826
# except with old shells:
2827
target_os=$*
2828
IFS=$ac_save_IFS
2829
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
 
2831
 
2832
# The aliases save the names the user supplied, while $host etc.
2833
# will get canonicalized.
2834
test -n "$target_alias" &&
2835
  test "$program_prefix$program_suffix$program_transform_name" = \
2836
    NONENONEs,x,x, &&
2837
  program_prefix=${target_alias}-
2838
 
2839
target_alias=${target_alias-$host_alias}
2840
 
2841
# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2842
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843
#  1.9.0:  minimum required version
2844
#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845
#              of other PACKAGE_* variables will, however, and there's nothing
2846
#              we can do about that; they come from AC_INIT).
2847
#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2848
#            file in the top srcdir, etc, etc), so stop complaining.
2849
#  -Wall:  turns on all automake warnings...
2850
#  -Wno-portability:  ...except this one, since GNU make is required.
2851
#  -Wno-override: ... and this one, since we do want this in testsuite.
2852
am__api_version='1.11'
2853
 
2854
# Find a good install program.  We prefer a C program (faster),
2855
# so one script is as good as another.  But avoid the broken or
2856
# incompatible versions:
2857
# SysV /etc/install, /usr/sbin/install
2858
# SunOS /usr/etc/install
2859
# IRIX /sbin/install
2860
# AIX /bin/install
2861
# AmigaOS /C/install, which installs bootblocks on floppy discs
2862
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865
# OS/2's system install, which has a completely different semantic
2866
# ./install, which can be erroneously created by make from ./install.sh.
2867
# Reject install programs that cannot install multiple files.
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2869
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2870
if test -z "$INSTALL"; then
2871
if test "${ac_cv_path_install+set}" = set; then :
2872
  $as_echo_n "(cached) " >&6
2873
else
2874
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875
for as_dir in $PATH
2876
do
2877
  IFS=$as_save_IFS
2878
  test -z "$as_dir" && as_dir=.
2879
    # Account for people who put trailing slashes in PATH elements.
2880
case $as_dir/ in #((
2881
  ./ | .// | /[cC]/* | \
2882
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2883
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2884
  /usr/ucb/* ) ;;
2885
  *)
2886
    # OSF1 and SCO ODT 3.0 have their own names for install.
2887
    # Don't use installbsd from OSF since it installs stuff as root
2888
    # by default.
2889
    for ac_prog in ginstall scoinst install; do
2890
      for ac_exec_ext in '' $ac_executable_extensions; do
2891
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2892
          if test $ac_prog = install &&
2893
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894
            # AIX install.  It has an incompatible calling convention.
2895
            :
2896
          elif test $ac_prog = install &&
2897
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898
            # program-specific install script used by HP pwplus--don't use.
2899
            :
2900
          else
2901
            rm -rf conftest.one conftest.two conftest.dir
2902
            echo one > conftest.one
2903
            echo two > conftest.two
2904
            mkdir conftest.dir
2905
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2906
              test -s conftest.one && test -s conftest.two &&
2907
              test -s conftest.dir/conftest.one &&
2908
              test -s conftest.dir/conftest.two
2909
            then
2910
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2911
              break 3
2912
            fi
2913
          fi
2914
        fi
2915
      done
2916
    done
2917
    ;;
2918
esac
2919
 
2920
  done
2921
IFS=$as_save_IFS
2922
 
2923
rm -rf conftest.one conftest.two conftest.dir
2924
 
2925
fi
2926
  if test "${ac_cv_path_install+set}" = set; then
2927
    INSTALL=$ac_cv_path_install
2928
  else
2929
    # As a last resort, use the slow shell script.  Don't cache a
2930
    # value for INSTALL within a source directory, because that will
2931
    # break other packages using the cache if that directory is
2932
    # removed, or if the value is a relative name.
2933
    INSTALL=$ac_install_sh
2934
  fi
2935
fi
2936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2937
$as_echo "$INSTALL" >&6; }
2938
 
2939
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2940
# It thinks the first close brace ends the variable substitution.
2941
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942
 
2943
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944
 
2945
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946
 
2947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2948
$as_echo_n "checking whether build environment is sane... " >&6; }
2949
# Just in case
2950
sleep 1
2951
echo timestamp > conftest.file
2952
# Reject unsafe characters in $srcdir or the absolute working directory
2953
# name.  Accept space and tab only in the latter.
2954
am_lf='
2955
'
2956
case `pwd` in
2957
  *[\\\"\#\$\&\'\`$am_lf]*)
2958
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2959
esac
2960
case $srcdir in
2961
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2962
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2963
esac
2964
 
2965
# Do `set' in a subshell so we don't clobber the current shell's
2966
# arguments.  Must try -L first in case configure is actually a
2967
# symlink; some systems play weird games with the mod time of symlinks
2968
# (eg FreeBSD returns the mod time of the symlink's containing
2969
# directory).
2970
if (
2971
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2972
   if test "$*" = "X"; then
2973
      # -L didn't work.
2974
      set X `ls -t "$srcdir/configure" conftest.file`
2975
   fi
2976
   rm -f conftest.file
2977
   if test "$*" != "X $srcdir/configure conftest.file" \
2978
      && test "$*" != "X conftest.file $srcdir/configure"; then
2979
 
2980
      # If neither matched, then we have a broken ls.  This can happen
2981
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2982
      # broken ls alias from the environment.  This has actually
2983
      # happened.  Such a system could not be considered "sane".
2984
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2985
alias in your environment" "$LINENO" 5
2986
   fi
2987
 
2988
   test "$2" = conftest.file
2989
   )
2990
then
2991
   # Ok.
2992
   :
2993
else
2994
   as_fn_error "newly created file is older than distributed files!
2995
Check your system clock" "$LINENO" 5
2996
fi
2997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998
$as_echo "yes" >&6; }
2999
test "$program_prefix" != NONE &&
3000
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3001
# Use a double $ so make ignores it.
3002
test "$program_suffix" != NONE &&
3003
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004
# Double any \ or $.
3005
# By default was `s,x,x', remove it if useless.
3006
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3008
 
3009
# expand $ac_aux_dir to an absolute path
3010
am_aux_dir=`cd $ac_aux_dir && pwd`
3011
 
3012
if test x"${MISSING+set}" != xset; then
3013
  case $am_aux_dir in
3014
  *\ * | *\     *)
3015
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016
  *)
3017
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018
  esac
3019
fi
3020
# Use eval to expand $SHELL
3021
if eval "$MISSING --run true"; then
3022
  am_missing_run="$MISSING --run "
3023
else
3024
  am_missing_run=
3025
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3026
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3027
fi
3028
 
3029
if test x"${install_sh}" != xset; then
3030
  case $am_aux_dir in
3031
  *\ * | *\     *)
3032
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033
  *)
3034
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3035
  esac
3036
fi
3037
 
3038
# Installed binaries are usually stripped using `strip' when the user
3039
# run `make install-strip'.  However `strip' might not be the right
3040
# tool to use in cross-compilation environments, therefore Automake
3041
# will honor the `STRIP' environment variable to overrule this program.
3042
if test "$cross_compiling" != no; then
3043
  if test -n "$ac_tool_prefix"; then
3044
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045
set dummy ${ac_tool_prefix}strip; ac_word=$2
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047
$as_echo_n "checking for $ac_word... " >&6; }
3048
if test "${ac_cv_prog_STRIP+set}" = set; then :
3049
  $as_echo_n "(cached) " >&6
3050
else
3051
  if test -n "$STRIP"; then
3052
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053
else
3054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055
for as_dir in $PATH
3056
do
3057
  IFS=$as_save_IFS
3058
  test -z "$as_dir" && as_dir=.
3059
    for ac_exec_ext in '' $ac_executable_extensions; do
3060
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063
    break 2
3064
  fi
3065
done
3066
  done
3067
IFS=$as_save_IFS
3068
 
3069
fi
3070
fi
3071
STRIP=$ac_cv_prog_STRIP
3072
if test -n "$STRIP"; then
3073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074
$as_echo "$STRIP" >&6; }
3075
else
3076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077
$as_echo "no" >&6; }
3078
fi
3079
 
3080
 
3081
fi
3082
if test -z "$ac_cv_prog_STRIP"; then
3083
  ac_ct_STRIP=$STRIP
3084
  # Extract the first word of "strip", so it can be a program name with args.
3085
set dummy strip; ac_word=$2
3086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087
$as_echo_n "checking for $ac_word... " >&6; }
3088
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3089
  $as_echo_n "(cached) " >&6
3090
else
3091
  if test -n "$ac_ct_STRIP"; then
3092
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093
else
3094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095
for as_dir in $PATH
3096
do
3097
  IFS=$as_save_IFS
3098
  test -z "$as_dir" && as_dir=.
3099
    for ac_exec_ext in '' $ac_executable_extensions; do
3100
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101
    ac_cv_prog_ac_ct_STRIP="strip"
3102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103
    break 2
3104
  fi
3105
done
3106
  done
3107
IFS=$as_save_IFS
3108
 
3109
fi
3110
fi
3111
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112
if test -n "$ac_ct_STRIP"; then
3113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114
$as_echo "$ac_ct_STRIP" >&6; }
3115
else
3116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117
$as_echo "no" >&6; }
3118
fi
3119
 
3120
  if test "x$ac_ct_STRIP" = x; then
3121
    STRIP=":"
3122
  else
3123
    case $cross_compiling:$ac_tool_warned in
3124
yes:)
3125
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127
ac_tool_warned=yes ;;
3128
esac
3129
    STRIP=$ac_ct_STRIP
3130
  fi
3131
else
3132
  STRIP="$ac_cv_prog_STRIP"
3133
fi
3134
 
3135
fi
3136
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
 
3138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140
if test -z "$MKDIR_P"; then
3141
  if test "${ac_cv_path_mkdir+set}" = set; then :
3142
  $as_echo_n "(cached) " >&6
3143
else
3144
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146
do
3147
  IFS=$as_save_IFS
3148
  test -z "$as_dir" && as_dir=.
3149
    for ac_prog in mkdir gmkdir; do
3150
         for ac_exec_ext in '' $ac_executable_extensions; do
3151
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3152
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153
             'mkdir (GNU coreutils) '* | \
3154
             'mkdir (coreutils) '* | \
3155
             'mkdir (fileutils) '4.1*)
3156
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157
               break 3;;
3158
           esac
3159
         done
3160
       done
3161
  done
3162
IFS=$as_save_IFS
3163
 
3164
fi
3165
 
3166
  if test "${ac_cv_path_mkdir+set}" = set; then
3167
    MKDIR_P="$ac_cv_path_mkdir -p"
3168
  else
3169
    # As a last resort, use the slow shell script.  Don't cache a
3170
    # value for MKDIR_P within a source directory, because that will
3171
    # break other packages using the cache if that directory is
3172
    # removed, or if the value is a relative name.
3173
    test -d ./--version && rmdir ./--version
3174
    MKDIR_P="$ac_install_sh -d"
3175
  fi
3176
fi
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178
$as_echo "$MKDIR_P" >&6; }
3179
 
3180
mkdir_p="$MKDIR_P"
3181
case $mkdir_p in
3182
  [\\/$]* | ?:[\\/]*) ;;
3183
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3184
esac
3185
 
3186
for ac_prog in gawk mawk nawk awk
3187
do
3188
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3189
set dummy $ac_prog; ac_word=$2
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191
$as_echo_n "checking for $ac_word... " >&6; }
3192
if test "${ac_cv_prog_AWK+set}" = set; then :
3193
  $as_echo_n "(cached) " >&6
3194
else
3195
  if test -n "$AWK"; then
3196
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197
else
3198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199
for as_dir in $PATH
3200
do
3201
  IFS=$as_save_IFS
3202
  test -z "$as_dir" && as_dir=.
3203
    for ac_exec_ext in '' $ac_executable_extensions; do
3204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205
    ac_cv_prog_AWK="$ac_prog"
3206
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207
    break 2
3208
  fi
3209
done
3210
  done
3211
IFS=$as_save_IFS
3212
 
3213
fi
3214
fi
3215
AWK=$ac_cv_prog_AWK
3216
if test -n "$AWK"; then
3217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218
$as_echo "$AWK" >&6; }
3219
else
3220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221
$as_echo "no" >&6; }
3222
fi
3223
 
3224
 
3225
  test -n "$AWK" && break
3226
done
3227
 
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3230
set x ${MAKE-make}
3231
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3233
  $as_echo_n "(cached) " >&6
3234
else
3235
  cat >conftest.make <<\_ACEOF
3236
SHELL = /bin/sh
3237
all:
3238
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3239
_ACEOF
3240
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3241
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3242
  *@@@%%%=?*=@@@%%%*)
3243
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3244
  *)
3245
    eval ac_cv_prog_make_${ac_make}_set=no;;
3246
esac
3247
rm -f conftest.make
3248
fi
3249
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251
$as_echo "yes" >&6; }
3252
  SET_MAKE=
3253
else
3254
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255
$as_echo "no" >&6; }
3256
  SET_MAKE="MAKE=${MAKE-make}"
3257
fi
3258
 
3259
rm -rf .tst 2>/dev/null
3260
mkdir .tst 2>/dev/null
3261
if test -d .tst; then
3262
  am__leading_dot=.
3263
else
3264
  am__leading_dot=_
3265
fi
3266
rmdir .tst 2>/dev/null
3267
 
3268
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3269
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3270
  # is not polluted with repeated "-I."
3271
  am__isrc=' -I$(srcdir)'
3272
  # test to see if srcdir already configured
3273
  if test -f $srcdir/config.status; then
3274
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3275
  fi
3276
fi
3277
 
3278
# test whether we have cygpath
3279
if test -z "$CYGPATH_W"; then
3280
  if (cygpath --version) >/dev/null 2>/dev/null; then
3281
    CYGPATH_W='cygpath -w'
3282
  else
3283
    CYGPATH_W=echo
3284
  fi
3285
fi
3286
 
3287
 
3288
# Define the identity of the package.
3289
 PACKAGE='libitm'
3290
 VERSION='1.0'
3291
 
3292
 
3293
cat >>confdefs.h <<_ACEOF
3294
#define PACKAGE "$PACKAGE"
3295
_ACEOF
3296
 
3297
 
3298
cat >>confdefs.h <<_ACEOF
3299
#define VERSION "$VERSION"
3300
_ACEOF
3301
 
3302
# Some tools Automake needs.
3303
 
3304
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3305
 
3306
 
3307
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3308
 
3309
 
3310
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3311
 
3312
 
3313
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3314
 
3315
 
3316
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3317
 
3318
# We need awk for the "check" target.  The system "awk" is bad on
3319
# some platforms.
3320
# Always define AMTAR for backward compatibility.
3321
 
3322
AMTAR=${AMTAR-"${am_missing_run}tar"}
3323
 
3324
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3325
 
3326
 
3327
 
3328
 
3329
 
3330
# Default to --enable-multilib
3331
# Check whether --enable-multilib was given.
3332
if test "${enable_multilib+set}" = set; then :
3333
  enableval=$enable_multilib; case "$enableval" in
3334
  yes) multilib=yes ;;
3335
  no)  multilib=no ;;
3336
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3337
 esac
3338
else
3339
  multilib=yes
3340
fi
3341
 
3342
 
3343
# We may get other options which we leave undocumented:
3344
# --with-target-subdir, --with-multisrctop, --with-multisubdir
3345
# See config-ml.in if you want the gory details.
3346
 
3347
if test "$srcdir" = "."; then
3348
  if test "$with_target_subdir" != "."; then
3349
    multi_basedir="$srcdir/$with_multisrctop../.."
3350
  else
3351
    multi_basedir="$srcdir/$with_multisrctop.."
3352
  fi
3353
else
3354
  multi_basedir="$srcdir/.."
3355
fi
3356
 
3357
 
3358
# Even if the default multilib is not a cross compilation,
3359
# it may be that some of the other multilibs are.
3360
if test $cross_compiling = no && test $multilib = yes \
3361
   && test "x${with_multisubdir}" != x ; then
3362
   cross_compiling=maybe
3363
fi
3364
 
3365
ac_config_commands="$ac_config_commands default-1"
3366
 
3367
 
3368
# Calculate toolexeclibdir
3369
# Also toolexecdir, though it's only used in toolexeclibdir
3370
case ${enable_version_specific_runtime_libs} in
3371
  yes)
3372
    # Need the gcc compiler version to know where to install libraries
3373
    # and header files if --enable-version-specific-runtime-libs option
3374
    # is selected.
3375
    toolexecdir='$(libdir)/gcc/$(target_alias)'
3376
    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3377
    ;;
3378
  no)
3379
    if test -n "$with_cross_host" &&
3380
       test x"$with_cross_host" != x"no"; then
3381
      # Install a library built with a cross compiler in tooldir, not libdir.
3382
      toolexecdir='$(exec_prefix)/$(target_alias)'
3383
      toolexeclibdir='$(toolexecdir)/lib'
3384
    else
3385
      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3386
      toolexeclibdir='$(libdir)'
3387
    fi
3388
    multi_os_directory=`$CC -print-multi-os-directory`
3389
    case $multi_os_directory in
3390
      .) ;; # Avoid trailing /.
3391
      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3392
    esac
3393
    ;;
3394
esac
3395
 
3396
 
3397
 
3398
# Check the compiler.
3399
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3400
# We must force CC to /not/ be precious variables; otherwise
3401
# the wrong, non-multilib-adjusted value will be used in multilibs.
3402
# As a side effect, we have to subst CFLAGS ourselves.
3403
 
3404
 
3405
 
3406
ac_ext=c
3407
ac_cpp='$CPP $CPPFLAGS'
3408
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
if test -n "$ac_tool_prefix"; then
3412
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415
$as_echo_n "checking for $ac_word... " >&6; }
3416
if test "${ac_cv_prog_CC+set}" = set; then :
3417
  $as_echo_n "(cached) " >&6
3418
else
3419
  if test -n "$CC"; then
3420
  ac_cv_prog_CC="$CC" # Let the user override the test.
3421
else
3422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423
for as_dir in $PATH
3424
do
3425
  IFS=$as_save_IFS
3426
  test -z "$as_dir" && as_dir=.
3427
    for ac_exec_ext in '' $ac_executable_extensions; do
3428
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
    break 2
3432
  fi
3433
done
3434
  done
3435
IFS=$as_save_IFS
3436
 
3437
fi
3438
fi
3439
CC=$ac_cv_prog_CC
3440
if test -n "$CC"; then
3441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442
$as_echo "$CC" >&6; }
3443
else
3444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445
$as_echo "no" >&6; }
3446
fi
3447
 
3448
 
3449
fi
3450
if test -z "$ac_cv_prog_CC"; then
3451
  ac_ct_CC=$CC
3452
  # Extract the first word of "gcc", so it can be a program name with args.
3453
set dummy gcc; ac_word=$2
3454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455
$as_echo_n "checking for $ac_word... " >&6; }
3456
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3457
  $as_echo_n "(cached) " >&6
3458
else
3459
  if test -n "$ac_ct_CC"; then
3460
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461
else
3462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463
for as_dir in $PATH
3464
do
3465
  IFS=$as_save_IFS
3466
  test -z "$as_dir" && as_dir=.
3467
    for ac_exec_ext in '' $ac_executable_extensions; do
3468
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469
    ac_cv_prog_ac_ct_CC="gcc"
3470
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471
    break 2
3472
  fi
3473
done
3474
  done
3475
IFS=$as_save_IFS
3476
 
3477
fi
3478
fi
3479
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480
if test -n "$ac_ct_CC"; then
3481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482
$as_echo "$ac_ct_CC" >&6; }
3483
else
3484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485
$as_echo "no" >&6; }
3486
fi
3487
 
3488
  if test "x$ac_ct_CC" = x; then
3489
    CC=""
3490
  else
3491
    case $cross_compiling:$ac_tool_warned in
3492
yes:)
3493
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495
ac_tool_warned=yes ;;
3496
esac
3497
    CC=$ac_ct_CC
3498
  fi
3499
else
3500
  CC="$ac_cv_prog_CC"
3501
fi
3502
 
3503
if test -z "$CC"; then
3504
          if test -n "$ac_tool_prefix"; then
3505
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506
set dummy ${ac_tool_prefix}cc; ac_word=$2
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508
$as_echo_n "checking for $ac_word... " >&6; }
3509
if test "${ac_cv_prog_CC+set}" = set; then :
3510
  $as_echo_n "(cached) " >&6
3511
else
3512
  if test -n "$CC"; then
3513
  ac_cv_prog_CC="$CC" # Let the user override the test.
3514
else
3515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516
for as_dir in $PATH
3517
do
3518
  IFS=$as_save_IFS
3519
  test -z "$as_dir" && as_dir=.
3520
    for ac_exec_ext in '' $ac_executable_extensions; do
3521
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3523
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524
    break 2
3525
  fi
3526
done
3527
  done
3528
IFS=$as_save_IFS
3529
 
3530
fi
3531
fi
3532
CC=$ac_cv_prog_CC
3533
if test -n "$CC"; then
3534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535
$as_echo "$CC" >&6; }
3536
else
3537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538
$as_echo "no" >&6; }
3539
fi
3540
 
3541
 
3542
  fi
3543
fi
3544
if test -z "$CC"; then
3545
  # Extract the first word of "cc", so it can be a program name with args.
3546
set dummy cc; ac_word=$2
3547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548
$as_echo_n "checking for $ac_word... " >&6; }
3549
if test "${ac_cv_prog_CC+set}" = set; then :
3550
  $as_echo_n "(cached) " >&6
3551
else
3552
  if test -n "$CC"; then
3553
  ac_cv_prog_CC="$CC" # Let the user override the test.
3554
else
3555
  ac_prog_rejected=no
3556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557
for as_dir in $PATH
3558
do
3559
  IFS=$as_save_IFS
3560
  test -z "$as_dir" && as_dir=.
3561
    for ac_exec_ext in '' $ac_executable_extensions; do
3562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3564
       ac_prog_rejected=yes
3565
       continue
3566
     fi
3567
    ac_cv_prog_CC="cc"
3568
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569
    break 2
3570
  fi
3571
done
3572
  done
3573
IFS=$as_save_IFS
3574
 
3575
if test $ac_prog_rejected = yes; then
3576
  # We found a bogon in the path, so make sure we never use it.
3577
  set dummy $ac_cv_prog_CC
3578
  shift
3579
  if test $# != 0; then
3580
    # We chose a different compiler from the bogus one.
3581
    # However, it has the same basename, so the bogon will be chosen
3582
    # first if we set CC to just the basename; use the full file name.
3583
    shift
3584
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3585
  fi
3586
fi
3587
fi
3588
fi
3589
CC=$ac_cv_prog_CC
3590
if test -n "$CC"; then
3591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592
$as_echo "$CC" >&6; }
3593
else
3594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595
$as_echo "no" >&6; }
3596
fi
3597
 
3598
 
3599
fi
3600
if test -z "$CC"; then
3601
  if test -n "$ac_tool_prefix"; then
3602
  for ac_prog in cl.exe
3603
  do
3604
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607
$as_echo_n "checking for $ac_word... " >&6; }
3608
if test "${ac_cv_prog_CC+set}" = set; then :
3609
  $as_echo_n "(cached) " >&6
3610
else
3611
  if test -n "$CC"; then
3612
  ac_cv_prog_CC="$CC" # Let the user override the test.
3613
else
3614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615
for as_dir in $PATH
3616
do
3617
  IFS=$as_save_IFS
3618
  test -z "$as_dir" && as_dir=.
3619
    for ac_exec_ext in '' $ac_executable_extensions; do
3620
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3622
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623
    break 2
3624
  fi
3625
done
3626
  done
3627
IFS=$as_save_IFS
3628
 
3629
fi
3630
fi
3631
CC=$ac_cv_prog_CC
3632
if test -n "$CC"; then
3633
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634
$as_echo "$CC" >&6; }
3635
else
3636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637
$as_echo "no" >&6; }
3638
fi
3639
 
3640
 
3641
    test -n "$CC" && break
3642
  done
3643
fi
3644
if test -z "$CC"; then
3645
  ac_ct_CC=$CC
3646
  for ac_prog in cl.exe
3647
do
3648
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3649
set dummy $ac_prog; ac_word=$2
3650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651
$as_echo_n "checking for $ac_word... " >&6; }
3652
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653
  $as_echo_n "(cached) " >&6
3654
else
3655
  if test -n "$ac_ct_CC"; then
3656
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657
else
3658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659
for as_dir in $PATH
3660
do
3661
  IFS=$as_save_IFS
3662
  test -z "$as_dir" && as_dir=.
3663
    for ac_exec_ext in '' $ac_executable_extensions; do
3664
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665
    ac_cv_prog_ac_ct_CC="$ac_prog"
3666
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667
    break 2
3668
  fi
3669
done
3670
  done
3671
IFS=$as_save_IFS
3672
 
3673
fi
3674
fi
3675
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676
if test -n "$ac_ct_CC"; then
3677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678
$as_echo "$ac_ct_CC" >&6; }
3679
else
3680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681
$as_echo "no" >&6; }
3682
fi
3683
 
3684
 
3685
  test -n "$ac_ct_CC" && break
3686
done
3687
 
3688
  if test "x$ac_ct_CC" = x; then
3689
    CC=""
3690
  else
3691
    case $cross_compiling:$ac_tool_warned in
3692
yes:)
3693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695
ac_tool_warned=yes ;;
3696
esac
3697
    CC=$ac_ct_CC
3698
  fi
3699
fi
3700
 
3701
fi
3702
 
3703
 
3704
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706
as_fn_error "no acceptable C compiler found in \$PATH
3707
See \`config.log' for more details." "$LINENO" 5; }
3708
 
3709
# Provide some information about the compiler.
3710
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711
set X $ac_compile
3712
ac_compiler=$2
3713
for ac_option in --version -v -V -qversion; do
3714
  { { ac_try="$ac_compiler $ac_option >&5"
3715
case "(($ac_try" in
3716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717
  *) ac_try_echo=$ac_try;;
3718
esac
3719
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720
$as_echo "$ac_try_echo"; } >&5
3721
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722
  ac_status=$?
3723
  if test -s conftest.err; then
3724
    sed '10a\
3725
... rest of stderr output deleted ...
3726
         10q' conftest.err >conftest.er1
3727
    cat conftest.er1 >&5
3728
    rm -f conftest.er1 conftest.err
3729
  fi
3730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731
  test $ac_status = 0; }
3732
done
3733
 
3734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735
/* end confdefs.h.  */
3736
 
3737
int
3738
main ()
3739
{
3740
 
3741
  ;
3742
  return 0;
3743
}
3744
_ACEOF
3745
ac_clean_files_save=$ac_clean_files
3746
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3747
# Try to create an executable without -o first, disregard a.out.
3748
# It will help us diagnose broken compilers, and finding out an intuition
3749
# of exeext.
3750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3751
$as_echo_n "checking for C compiler default output file name... " >&6; }
3752
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753
 
3754
# The possible output files:
3755
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756
 
3757
ac_rmfiles=
3758
for ac_file in $ac_files
3759
do
3760
  case $ac_file in
3761
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763
  esac
3764
done
3765
rm -f $ac_rmfiles
3766
 
3767
if { { ac_try="$ac_link_default"
3768
case "(($ac_try" in
3769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770
  *) ac_try_echo=$ac_try;;
3771
esac
3772
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773
$as_echo "$ac_try_echo"; } >&5
3774
  (eval "$ac_link_default") 2>&5
3775
  ac_status=$?
3776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777
  test $ac_status = 0; }; then :
3778
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3781
# so that the user can short-circuit this test for compilers unknown to
3782
# Autoconf.
3783
for ac_file in $ac_files ''
3784
do
3785
  test -f "$ac_file" || continue
3786
  case $ac_file in
3787
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788
        ;;
3789
    [ab].out )
3790
        # We found the default executable, but exeext='' is most
3791
        # certainly right.
3792
        break;;
3793
    *.* )
3794
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3795
        then :; else
3796
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797
        fi
3798
        # We set ac_cv_exeext here because the later test for it is not
3799
        # safe: cross compilers may not add the suffix if given an `-o'
3800
        # argument, so we may need to know it at that point already.
3801
        # Even if this section looks crufty: it has the advantage of
3802
        # actually working.
3803
        break;;
3804
    * )
3805
        break;;
3806
  esac
3807
done
3808
test "$ac_cv_exeext" = no && ac_cv_exeext=
3809
 
3810
else
3811
  ac_file=''
3812
fi
3813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814
$as_echo "$ac_file" >&6; }
3815
if test -z "$ac_file"; then :
3816
  $as_echo "$as_me: failed program was:" >&5
3817
sed 's/^/| /' conftest.$ac_ext >&5
3818
 
3819
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821
{ as_fn_set_status 77
3822
as_fn_error "C compiler cannot create executables
3823
See \`config.log' for more details." "$LINENO" 5; }; }
3824
fi
3825
ac_exeext=$ac_cv_exeext
3826
 
3827
# Check that the compiler produces executables we can run.  If not, either
3828
# the compiler is broken, or we cross compile.
3829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830
$as_echo_n "checking whether the C compiler works... " >&6; }
3831
# If not cross compiling, check that we can run a simple program.
3832
if test "$cross_compiling" != yes; then
3833
  if { ac_try='./$ac_file'
3834
  { { case "(($ac_try" in
3835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836
  *) ac_try_echo=$ac_try;;
3837
esac
3838
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839
$as_echo "$ac_try_echo"; } >&5
3840
  (eval "$ac_try") 2>&5
3841
  ac_status=$?
3842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843
  test $ac_status = 0; }; }; then
3844
    cross_compiling=no
3845
  else
3846
    if test "$cross_compiling" = maybe; then
3847
        cross_compiling=yes
3848
    else
3849
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851
as_fn_error "cannot run C compiled programs.
3852
If you meant to cross compile, use \`--host'.
3853
See \`config.log' for more details." "$LINENO" 5; }
3854
    fi
3855
  fi
3856
fi
3857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858
$as_echo "yes" >&6; }
3859
 
3860
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3861
ac_clean_files=$ac_clean_files_save
3862
# Check that the compiler produces executables we can run.  If not, either
3863
# the compiler is broken, or we cross compile.
3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3865
$as_echo_n "checking whether we are cross compiling... " >&6; }
3866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3867
$as_echo "$cross_compiling" >&6; }
3868
 
3869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3870
$as_echo_n "checking for suffix of executables... " >&6; }
3871
if { { ac_try="$ac_link"
3872
case "(($ac_try" in
3873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874
  *) ac_try_echo=$ac_try;;
3875
esac
3876
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877
$as_echo "$ac_try_echo"; } >&5
3878
  (eval "$ac_link") 2>&5
3879
  ac_status=$?
3880
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881
  test $ac_status = 0; }; then :
3882
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3884
# work properly (i.e., refer to `conftest.exe'), while it won't with
3885
# `rm'.
3886
for ac_file in conftest.exe conftest conftest.*; do
3887
  test -f "$ac_file" || continue
3888
  case $ac_file in
3889
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891
          break;;
3892
    * ) break;;
3893
  esac
3894
done
3895
else
3896
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898
as_fn_error "cannot compute suffix of executables: cannot compile and link
3899
See \`config.log' for more details." "$LINENO" 5; }
3900
fi
3901
rm -f conftest$ac_cv_exeext
3902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903
$as_echo "$ac_cv_exeext" >&6; }
3904
 
3905
rm -f conftest.$ac_ext
3906
EXEEXT=$ac_cv_exeext
3907
ac_exeext=$EXEEXT
3908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3909
$as_echo_n "checking for suffix of object files... " >&6; }
3910
if test "${ac_cv_objext+set}" = set; then :
3911
  $as_echo_n "(cached) " >&6
3912
else
3913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914
/* end confdefs.h.  */
3915
 
3916
int
3917
main ()
3918
{
3919
 
3920
  ;
3921
  return 0;
3922
}
3923
_ACEOF
3924
rm -f conftest.o conftest.obj
3925
if { { ac_try="$ac_compile"
3926
case "(($ac_try" in
3927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928
  *) ac_try_echo=$ac_try;;
3929
esac
3930
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931
$as_echo "$ac_try_echo"; } >&5
3932
  (eval "$ac_compile") 2>&5
3933
  ac_status=$?
3934
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935
  test $ac_status = 0; }; then :
3936
  for ac_file in conftest.o conftest.obj conftest.*; do
3937
  test -f "$ac_file" || continue;
3938
  case $ac_file in
3939
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3940
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3941
       break;;
3942
  esac
3943
done
3944
else
3945
  $as_echo "$as_me: failed program was:" >&5
3946
sed 's/^/| /' conftest.$ac_ext >&5
3947
 
3948
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950
as_fn_error "cannot compute suffix of object files: cannot compile
3951
See \`config.log' for more details." "$LINENO" 5; }
3952
fi
3953
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3954
fi
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3956
$as_echo "$ac_cv_objext" >&6; }
3957
OBJEXT=$ac_cv_objext
3958
ac_objext=$OBJEXT
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3960
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3961
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3962
  $as_echo_n "(cached) " >&6
3963
else
3964
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965
/* end confdefs.h.  */
3966
 
3967
int
3968
main ()
3969
{
3970
#ifndef __GNUC__
3971
       choke me
3972
#endif
3973
 
3974
  ;
3975
  return 0;
3976
}
3977
_ACEOF
3978
if ac_fn_c_try_compile "$LINENO"; then :
3979
  ac_compiler_gnu=yes
3980
else
3981
  ac_compiler_gnu=no
3982
fi
3983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3985
 
3986
fi
3987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3988
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3989
if test $ac_compiler_gnu = yes; then
3990
  GCC=yes
3991
else
3992
  GCC=
3993
fi
3994
ac_test_CFLAGS=${CFLAGS+set}
3995
ac_save_CFLAGS=$CFLAGS
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3997
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3998
if test "${ac_cv_prog_cc_g+set}" = set; then :
3999
  $as_echo_n "(cached) " >&6
4000
else
4001
  ac_save_c_werror_flag=$ac_c_werror_flag
4002
   ac_c_werror_flag=yes
4003
   ac_cv_prog_cc_g=no
4004
   CFLAGS="-g"
4005
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006
/* end confdefs.h.  */
4007
 
4008
int
4009
main ()
4010
{
4011
 
4012
  ;
4013
  return 0;
4014
}
4015
_ACEOF
4016
if ac_fn_c_try_compile "$LINENO"; then :
4017
  ac_cv_prog_cc_g=yes
4018
else
4019
  CFLAGS=""
4020
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021
/* end confdefs.h.  */
4022
 
4023
int
4024
main ()
4025
{
4026
 
4027
  ;
4028
  return 0;
4029
}
4030
_ACEOF
4031
if ac_fn_c_try_compile "$LINENO"; then :
4032
 
4033
else
4034
  ac_c_werror_flag=$ac_save_c_werror_flag
4035
         CFLAGS="-g"
4036
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037
/* end confdefs.h.  */
4038
 
4039
int
4040
main ()
4041
{
4042
 
4043
  ;
4044
  return 0;
4045
}
4046
_ACEOF
4047
if ac_fn_c_try_compile "$LINENO"; then :
4048
  ac_cv_prog_cc_g=yes
4049
fi
4050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051
fi
4052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053
fi
4054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055
   ac_c_werror_flag=$ac_save_c_werror_flag
4056
fi
4057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4058
$as_echo "$ac_cv_prog_cc_g" >&6; }
4059
if test "$ac_test_CFLAGS" = set; then
4060
  CFLAGS=$ac_save_CFLAGS
4061
elif test $ac_cv_prog_cc_g = yes; then
4062
  if test "$GCC" = yes; then
4063
    CFLAGS="-g -O2"
4064
  else
4065
    CFLAGS="-g"
4066
  fi
4067
else
4068
  if test "$GCC" = yes; then
4069
    CFLAGS="-O2"
4070
  else
4071
    CFLAGS=
4072
  fi
4073
fi
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4075
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4076
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4077
  $as_echo_n "(cached) " >&6
4078
else
4079
  ac_cv_prog_cc_c89=no
4080
ac_save_CC=$CC
4081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082
/* end confdefs.h.  */
4083
#include 
4084
#include 
4085
#include 
4086
#include 
4087
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4088
struct buf { int x; };
4089
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4090
static char *e (p, i)
4091
     char **p;
4092
     int i;
4093
{
4094
  return p[i];
4095
}
4096
static char *f (char * (*g) (char **, int), char **p, ...)
4097
{
4098
  char *s;
4099
  va_list v;
4100
  va_start (v,p);
4101
  s = g (p, va_arg (v,int));
4102
  va_end (v);
4103
  return s;
4104
}
4105
 
4106
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4107
   function prototypes and stuff, but not '\xHH' hex character constants.
4108
   These don't provoke an error unfortunately, instead are silently treated
4109
   as 'x'.  The following induces an error, until -std is added to get
4110
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4111
   array size at least.  It's necessary to write '\x00'==0 to get something
4112
   that's true only with -std.  */
4113
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4114
 
4115
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4116
   inside strings and character constants.  */
4117
#define FOO(x) 'x'
4118
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4119
 
4120
int test (int i, double x);
4121
struct s1 {int (*f) (int a);};
4122
struct s2 {int (*f) (double a);};
4123
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124
int argc;
4125
char **argv;
4126
int
4127
main ()
4128
{
4129
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4130
  ;
4131
  return 0;
4132
}
4133
_ACEOF
4134
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4135
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4136
do
4137
  CC="$ac_save_CC $ac_arg"
4138
  if ac_fn_c_try_compile "$LINENO"; then :
4139
  ac_cv_prog_cc_c89=$ac_arg
4140
fi
4141
rm -f core conftest.err conftest.$ac_objext
4142
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4143
done
4144
rm -f conftest.$ac_ext
4145
CC=$ac_save_CC
4146
 
4147
fi
4148
# AC_CACHE_VAL
4149
case "x$ac_cv_prog_cc_c89" in
4150
  x)
4151
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4152
$as_echo "none needed" >&6; } ;;
4153
  xno)
4154
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4155
$as_echo "unsupported" >&6; } ;;
4156
  *)
4157
    CC="$CC $ac_cv_prog_cc_c89"
4158
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4159
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4160
esac
4161
if test "x$ac_cv_prog_cc_c89" != xno; then :
4162
 
4163
fi
4164
 
4165
ac_ext=c
4166
ac_cpp='$CPP $CPPFLAGS'
4167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
DEPDIR="${am__leading_dot}deps"
4171
 
4172
ac_config_commands="$ac_config_commands depfiles"
4173
 
4174
 
4175
am_make=${MAKE-make}
4176
cat > confinc << 'END'
4177
am__doit:
4178
        @echo this is the am__doit target
4179
.PHONY: am__doit
4180
END
4181
# If we don't find an include directive, just comment out the code.
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4183
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4184
am__include="#"
4185
am__quote=
4186
_am_result=none
4187
# First try GNU make style include.
4188
echo "include confinc" > confmf
4189
# Ignore all kinds of additional output from `make'.
4190
case `$am_make -s -f confmf 2> /dev/null` in #(
4191
*the\ am__doit\ target*)
4192
  am__include=include
4193
  am__quote=
4194
  _am_result=GNU
4195
  ;;
4196
esac
4197
# Now try BSD make style include.
4198
if test "$am__include" = "#"; then
4199
   echo '.include "confinc"' > confmf
4200
   case `$am_make -s -f confmf 2> /dev/null` in #(
4201
   *the\ am__doit\ target*)
4202
     am__include=.include
4203
     am__quote="\""
4204
     _am_result=BSD
4205
     ;;
4206
   esac
4207
fi
4208
 
4209
 
4210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4211
$as_echo "$_am_result" >&6; }
4212
rm -f confinc confmf
4213
 
4214
# Check whether --enable-dependency-tracking was given.
4215
if test "${enable_dependency_tracking+set}" = set; then :
4216
  enableval=$enable_dependency_tracking;
4217
fi
4218
 
4219
if test "x$enable_dependency_tracking" != xno; then
4220
  am_depcomp="$ac_aux_dir/depcomp"
4221
  AMDEPBACKSLASH='\'
4222
fi
4223
 if test "x$enable_dependency_tracking" != xno; then
4224
  AMDEP_TRUE=
4225
  AMDEP_FALSE='#'
4226
else
4227
  AMDEP_TRUE='#'
4228
  AMDEP_FALSE=
4229
fi
4230
 
4231
 
4232
 
4233
depcc="$CC"   am_compiler_list=
4234
 
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236
$as_echo_n "checking dependency style of $depcc... " >&6; }
4237
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4238
  $as_echo_n "(cached) " >&6
4239
else
4240
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241
  # We make a subdir and do the tests there.  Otherwise we can end up
4242
  # making bogus files that we don't know about and never remove.  For
4243
  # instance it was reported that on HP-UX the gcc test will end up
4244
  # making a dummy file named `D' -- because `-MD' means `put the output
4245
  # in D'.
4246
  mkdir conftest.dir
4247
  # Copy depcomp to subdir because otherwise we won't find it if we're
4248
  # using a relative directory.
4249
  cp "$am_depcomp" conftest.dir
4250
  cd conftest.dir
4251
  # We will build objects and dependencies in a subdirectory because
4252
  # it helps to detect inapplicable dependency modes.  For instance
4253
  # both Tru64's cc and ICC support -MD to output dependencies as a
4254
  # side effect of compilation, but ICC will put the dependencies in
4255
  # the current directory while Tru64 will put them in the object
4256
  # directory.
4257
  mkdir sub
4258
 
4259
  am_cv_CC_dependencies_compiler_type=none
4260
  if test "$am_compiler_list" = ""; then
4261
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4262
  fi
4263
  am__universal=false
4264
  case " $depcc " in #(
4265
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4266
     esac
4267
 
4268
  for depmode in $am_compiler_list; do
4269
    # Setup a source with many dependencies, because some compilers
4270
    # like to wrap large dependency lists on column 80 (with \), and
4271
    # we should not choose a depcomp mode which is confused by this.
4272
    #
4273
    # We need to recreate these files for each test, as the compiler may
4274
    # overwrite some of them when testing with obscure command lines.
4275
    # This happens at least with the AIX C compiler.
4276
    : > sub/conftest.c
4277
    for i in 1 2 3 4 5 6; do
4278
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280
      # Solaris 8's {/usr,}/bin/sh.
4281
      touch sub/conftst$i.h
4282
    done
4283
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4284
 
4285
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4286
    # mode.  It turns out that the SunPro C++ compiler does not properly
4287
    # handle `-M -o', and we need to detect this.  Also, some Intel
4288
    # versions had trouble with output in subdirs
4289
    am__obj=sub/conftest.${OBJEXT-o}
4290
    am__minus_obj="-o $am__obj"
4291
    case $depmode in
4292
    gcc)
4293
      # This depmode causes a compiler race in universal mode.
4294
      test "$am__universal" = false || continue
4295
      ;;
4296
    nosideeffect)
4297
      # after this tag, mechanisms are not by side-effect, so they'll
4298
      # only be used when explicitly requested
4299
      if test "x$enable_dependency_tracking" = xyes; then
4300
        continue
4301
      else
4302
        break
4303
      fi
4304
      ;;
4305
    msvisualcpp | msvcmsys)
4306
      # This compiler won't grok `-c -o', but also, the minuso test has
4307
      # not run yet.  These depmodes are late enough in the game, and
4308
      # so weak that their functioning should not be impacted.
4309
      am__obj=conftest.${OBJEXT-o}
4310
      am__minus_obj=
4311
      ;;
4312
    none) break ;;
4313
    esac
4314
    if depmode=$depmode \
4315
       source=sub/conftest.c object=$am__obj \
4316
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4317
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4318
         >/dev/null 2>conftest.err &&
4319
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4320
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4321
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4322
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4323
      # icc doesn't choke on unknown options, it will just issue warnings
4324
      # or remarks (even with -Werror).  So we grep stderr for any message
4325
      # that says an option was ignored or not supported.
4326
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4327
      #   icc: Command line warning: ignoring option '-M'; no argument required
4328
      # The diagnosis changed in icc 8.0:
4329
      #   icc: Command line remark: option '-MP' not supported
4330
      if (grep 'ignoring option' conftest.err ||
4331
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332
        am_cv_CC_dependencies_compiler_type=$depmode
4333
        break
4334
      fi
4335
    fi
4336
  done
4337
 
4338
  cd ..
4339
  rm -rf conftest.dir
4340
else
4341
  am_cv_CC_dependencies_compiler_type=none
4342
fi
4343
 
4344
fi
4345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4346
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4347
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4348
 
4349
 if
4350
  test "x$enable_dependency_tracking" != xno \
4351
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4352
  am__fastdepCC_TRUE=
4353
  am__fastdepCC_FALSE='#'
4354
else
4355
  am__fastdepCC_TRUE='#'
4356
  am__fastdepCC_FALSE=
4357
fi
4358
 
4359
 
4360
ac_ext=cpp
4361
ac_cpp='$CXXCPP $CPPFLAGS'
4362
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4365
if test -z "$CXX"; then
4366
  if test -n "$CCC"; then
4367
    CXX=$CCC
4368
  else
4369
    if test -n "$ac_tool_prefix"; then
4370
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4371
  do
4372
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375
$as_echo_n "checking for $ac_word... " >&6; }
4376
if test "${ac_cv_prog_CXX+set}" = set; then :
4377
  $as_echo_n "(cached) " >&6
4378
else
4379
  if test -n "$CXX"; then
4380
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4381
else
4382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383
for as_dir in $PATH
4384
do
4385
  IFS=$as_save_IFS
4386
  test -z "$as_dir" && as_dir=.
4387
    for ac_exec_ext in '' $ac_executable_extensions; do
4388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4390
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391
    break 2
4392
  fi
4393
done
4394
  done
4395
IFS=$as_save_IFS
4396
 
4397
fi
4398
fi
4399
CXX=$ac_cv_prog_CXX
4400
if test -n "$CXX"; then
4401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4402
$as_echo "$CXX" >&6; }
4403
else
4404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405
$as_echo "no" >&6; }
4406
fi
4407
 
4408
 
4409
    test -n "$CXX" && break
4410
  done
4411
fi
4412
if test -z "$CXX"; then
4413
  ac_ct_CXX=$CXX
4414
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4415
do
4416
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4417
set dummy $ac_prog; ac_word=$2
4418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419
$as_echo_n "checking for $ac_word... " >&6; }
4420
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4421
  $as_echo_n "(cached) " >&6
4422
else
4423
  if test -n "$ac_ct_CXX"; then
4424
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4425
else
4426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427
for as_dir in $PATH
4428
do
4429
  IFS=$as_save_IFS
4430
  test -z "$as_dir" && as_dir=.
4431
    for ac_exec_ext in '' $ac_executable_extensions; do
4432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435
    break 2
4436
  fi
4437
done
4438
  done
4439
IFS=$as_save_IFS
4440
 
4441
fi
4442
fi
4443
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4444
if test -n "$ac_ct_CXX"; then
4445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4446
$as_echo "$ac_ct_CXX" >&6; }
4447
else
4448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449
$as_echo "no" >&6; }
4450
fi
4451
 
4452
 
4453
  test -n "$ac_ct_CXX" && break
4454
done
4455
 
4456
  if test "x$ac_ct_CXX" = x; then
4457
    CXX="g++"
4458
  else
4459
    case $cross_compiling:$ac_tool_warned in
4460
yes:)
4461
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463
ac_tool_warned=yes ;;
4464
esac
4465
    CXX=$ac_ct_CXX
4466
  fi
4467
fi
4468
 
4469
  fi
4470
fi
4471
# Provide some information about the compiler.
4472
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4473
set X $ac_compile
4474
ac_compiler=$2
4475
for ac_option in --version -v -V -qversion; do
4476
  { { ac_try="$ac_compiler $ac_option >&5"
4477
case "(($ac_try" in
4478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479
  *) ac_try_echo=$ac_try;;
4480
esac
4481
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482
$as_echo "$ac_try_echo"; } >&5
4483
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4484
  ac_status=$?
4485
  if test -s conftest.err; then
4486
    sed '10a\
4487
... rest of stderr output deleted ...
4488
         10q' conftest.err >conftest.er1
4489
    cat conftest.er1 >&5
4490
    rm -f conftest.er1 conftest.err
4491
  fi
4492
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493
  test $ac_status = 0; }
4494
done
4495
 
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4497
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4498
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4499
  $as_echo_n "(cached) " >&6
4500
else
4501
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502
/* end confdefs.h.  */
4503
 
4504
int
4505
main ()
4506
{
4507
#ifndef __GNUC__
4508
       choke me
4509
#endif
4510
 
4511
  ;
4512
  return 0;
4513
}
4514
_ACEOF
4515
if ac_fn_cxx_try_compile "$LINENO"; then :
4516
  ac_compiler_gnu=yes
4517
else
4518
  ac_compiler_gnu=no
4519
fi
4520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4522
 
4523
fi
4524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4525
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4526
if test $ac_compiler_gnu = yes; then
4527
  GXX=yes
4528
else
4529
  GXX=
4530
fi
4531
ac_test_CXXFLAGS=${CXXFLAGS+set}
4532
ac_save_CXXFLAGS=$CXXFLAGS
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4534
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4535
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4536
  $as_echo_n "(cached) " >&6
4537
else
4538
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4539
   ac_cxx_werror_flag=yes
4540
   ac_cv_prog_cxx_g=no
4541
   CXXFLAGS="-g"
4542
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543
/* end confdefs.h.  */
4544
 
4545
int
4546
main ()
4547
{
4548
 
4549
  ;
4550
  return 0;
4551
}
4552
_ACEOF
4553
if ac_fn_cxx_try_compile "$LINENO"; then :
4554
  ac_cv_prog_cxx_g=yes
4555
else
4556
  CXXFLAGS=""
4557
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558
/* end confdefs.h.  */
4559
 
4560
int
4561
main ()
4562
{
4563
 
4564
  ;
4565
  return 0;
4566
}
4567
_ACEOF
4568
if ac_fn_cxx_try_compile "$LINENO"; then :
4569
 
4570
else
4571
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572
         CXXFLAGS="-g"
4573
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574
/* end confdefs.h.  */
4575
 
4576
int
4577
main ()
4578
{
4579
 
4580
  ;
4581
  return 0;
4582
}
4583
_ACEOF
4584
if ac_fn_cxx_try_compile "$LINENO"; then :
4585
  ac_cv_prog_cxx_g=yes
4586
fi
4587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588
fi
4589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590
fi
4591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593
fi
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4595
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4596
if test "$ac_test_CXXFLAGS" = set; then
4597
  CXXFLAGS=$ac_save_CXXFLAGS
4598
elif test $ac_cv_prog_cxx_g = yes; then
4599
  if test "$GXX" = yes; then
4600
    CXXFLAGS="-g -O2"
4601
  else
4602
    CXXFLAGS="-g"
4603
  fi
4604
else
4605
  if test "$GXX" = yes; then
4606
    CXXFLAGS="-O2"
4607
  else
4608
    CXXFLAGS=
4609
  fi
4610
fi
4611
ac_ext=c
4612
ac_cpp='$CPP $CPPFLAGS'
4613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
 
4617
depcc="$CXX"  am_compiler_list=
4618
 
4619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4620
$as_echo_n "checking dependency style of $depcc... " >&6; }
4621
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4622
  $as_echo_n "(cached) " >&6
4623
else
4624
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4625
  # We make a subdir and do the tests there.  Otherwise we can end up
4626
  # making bogus files that we don't know about and never remove.  For
4627
  # instance it was reported that on HP-UX the gcc test will end up
4628
  # making a dummy file named `D' -- because `-MD' means `put the output
4629
  # in D'.
4630
  mkdir conftest.dir
4631
  # Copy depcomp to subdir because otherwise we won't find it if we're
4632
  # using a relative directory.
4633
  cp "$am_depcomp" conftest.dir
4634
  cd conftest.dir
4635
  # We will build objects and dependencies in a subdirectory because
4636
  # it helps to detect inapplicable dependency modes.  For instance
4637
  # both Tru64's cc and ICC support -MD to output dependencies as a
4638
  # side effect of compilation, but ICC will put the dependencies in
4639
  # the current directory while Tru64 will put them in the object
4640
  # directory.
4641
  mkdir sub
4642
 
4643
  am_cv_CXX_dependencies_compiler_type=none
4644
  if test "$am_compiler_list" = ""; then
4645
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4646
  fi
4647
  am__universal=false
4648
  case " $depcc " in #(
4649
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4650
     esac
4651
 
4652
  for depmode in $am_compiler_list; do
4653
    # Setup a source with many dependencies, because some compilers
4654
    # like to wrap large dependency lists on column 80 (with \), and
4655
    # we should not choose a depcomp mode which is confused by this.
4656
    #
4657
    # We need to recreate these files for each test, as the compiler may
4658
    # overwrite some of them when testing with obscure command lines.
4659
    # This happens at least with the AIX C compiler.
4660
    : > sub/conftest.c
4661
    for i in 1 2 3 4 5 6; do
4662
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4663
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4664
      # Solaris 8's {/usr,}/bin/sh.
4665
      touch sub/conftst$i.h
4666
    done
4667
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668
 
4669
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4670
    # mode.  It turns out that the SunPro C++ compiler does not properly
4671
    # handle `-M -o', and we need to detect this.  Also, some Intel
4672
    # versions had trouble with output in subdirs
4673
    am__obj=sub/conftest.${OBJEXT-o}
4674
    am__minus_obj="-o $am__obj"
4675
    case $depmode in
4676
    gcc)
4677
      # This depmode causes a compiler race in universal mode.
4678
      test "$am__universal" = false || continue
4679
      ;;
4680
    nosideeffect)
4681
      # after this tag, mechanisms are not by side-effect, so they'll
4682
      # only be used when explicitly requested
4683
      if test "x$enable_dependency_tracking" = xyes; then
4684
        continue
4685
      else
4686
        break
4687
      fi
4688
      ;;
4689
    msvisualcpp | msvcmsys)
4690
      # This compiler won't grok `-c -o', but also, the minuso test has
4691
      # not run yet.  These depmodes are late enough in the game, and
4692
      # so weak that their functioning should not be impacted.
4693
      am__obj=conftest.${OBJEXT-o}
4694
      am__minus_obj=
4695
      ;;
4696
    none) break ;;
4697
    esac
4698
    if depmode=$depmode \
4699
       source=sub/conftest.c object=$am__obj \
4700
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4701
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4702
         >/dev/null 2>conftest.err &&
4703
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4704
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4705
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4706
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4707
      # icc doesn't choke on unknown options, it will just issue warnings
4708
      # or remarks (even with -Werror).  So we grep stderr for any message
4709
      # that says an option was ignored or not supported.
4710
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4711
      #   icc: Command line warning: ignoring option '-M'; no argument required
4712
      # The diagnosis changed in icc 8.0:
4713
      #   icc: Command line remark: option '-MP' not supported
4714
      if (grep 'ignoring option' conftest.err ||
4715
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4716
        am_cv_CXX_dependencies_compiler_type=$depmode
4717
        break
4718
      fi
4719
    fi
4720
  done
4721
 
4722
  cd ..
4723
  rm -rf conftest.dir
4724
else
4725
  am_cv_CXX_dependencies_compiler_type=none
4726
fi
4727
 
4728
fi
4729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4730
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4731
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4732
 
4733
 if
4734
  test "x$enable_dependency_tracking" != xno \
4735
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4736
  am__fastdepCXX_TRUE=
4737
  am__fastdepCXX_FALSE='#'
4738
else
4739
  am__fastdepCXX_TRUE='#'
4740
  am__fastdepCXX_FALSE=
4741
fi
4742
 
4743
 
4744
# By default we simply use the C compiler to build assembly code.
4745
 
4746
test "${CCAS+set}" = set || CCAS=$CC
4747
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4748
 
4749
 
4750
 
4751
depcc="$CCAS"   am_compiler_list=
4752
 
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4754
$as_echo_n "checking dependency style of $depcc... " >&6; }
4755
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4756
  $as_echo_n "(cached) " >&6
4757
else
4758
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759
  # We make a subdir and do the tests there.  Otherwise we can end up
4760
  # making bogus files that we don't know about and never remove.  For
4761
  # instance it was reported that on HP-UX the gcc test will end up
4762
  # making a dummy file named `D' -- because `-MD' means `put the output
4763
  # in D'.
4764
  mkdir conftest.dir
4765
  # Copy depcomp to subdir because otherwise we won't find it if we're
4766
  # using a relative directory.
4767
  cp "$am_depcomp" conftest.dir
4768
  cd conftest.dir
4769
  # We will build objects and dependencies in a subdirectory because
4770
  # it helps to detect inapplicable dependency modes.  For instance
4771
  # both Tru64's cc and ICC support -MD to output dependencies as a
4772
  # side effect of compilation, but ICC will put the dependencies in
4773
  # the current directory while Tru64 will put them in the object
4774
  # directory.
4775
  mkdir sub
4776
 
4777
  am_cv_CCAS_dependencies_compiler_type=none
4778
  if test "$am_compiler_list" = ""; then
4779
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780
  fi
4781
  am__universal=false
4782
 
4783
 
4784
  for depmode in $am_compiler_list; do
4785
    # Setup a source with many dependencies, because some compilers
4786
    # like to wrap large dependency lists on column 80 (with \), and
4787
    # we should not choose a depcomp mode which is confused by this.
4788
    #
4789
    # We need to recreate these files for each test, as the compiler may
4790
    # overwrite some of them when testing with obscure command lines.
4791
    # This happens at least with the AIX C compiler.
4792
    : > sub/conftest.c
4793
    for i in 1 2 3 4 5 6; do
4794
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4795
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4796
      # Solaris 8's {/usr,}/bin/sh.
4797
      touch sub/conftst$i.h
4798
    done
4799
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4800
 
4801
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4802
    # mode.  It turns out that the SunPro C++ compiler does not properly
4803
    # handle `-M -o', and we need to detect this.  Also, some Intel
4804
    # versions had trouble with output in subdirs
4805
    am__obj=sub/conftest.${OBJEXT-o}
4806
    am__minus_obj="-o $am__obj"
4807
    case $depmode in
4808
    gcc)
4809
      # This depmode causes a compiler race in universal mode.
4810
      test "$am__universal" = false || continue
4811
      ;;
4812
    nosideeffect)
4813
      # after this tag, mechanisms are not by side-effect, so they'll
4814
      # only be used when explicitly requested
4815
      if test "x$enable_dependency_tracking" = xyes; then
4816
        continue
4817
      else
4818
        break
4819
      fi
4820
      ;;
4821
    msvisualcpp | msvcmsys)
4822
      # This compiler won't grok `-c -o', but also, the minuso test has
4823
      # not run yet.  These depmodes are late enough in the game, and
4824
      # so weak that their functioning should not be impacted.
4825
      am__obj=conftest.${OBJEXT-o}
4826
      am__minus_obj=
4827
      ;;
4828
    none) break ;;
4829
    esac
4830
    if depmode=$depmode \
4831
       source=sub/conftest.c object=$am__obj \
4832
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4833
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4834
         >/dev/null 2>conftest.err &&
4835
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4836
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4837
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4838
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4839
      # icc doesn't choke on unknown options, it will just issue warnings
4840
      # or remarks (even with -Werror).  So we grep stderr for any message
4841
      # that says an option was ignored or not supported.
4842
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4843
      #   icc: Command line warning: ignoring option '-M'; no argument required
4844
      # The diagnosis changed in icc 8.0:
4845
      #   icc: Command line remark: option '-MP' not supported
4846
      if (grep 'ignoring option' conftest.err ||
4847
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4848
        am_cv_CCAS_dependencies_compiler_type=$depmode
4849
        break
4850
      fi
4851
    fi
4852
  done
4853
 
4854
  cd ..
4855
  rm -rf conftest.dir
4856
else
4857
  am_cv_CCAS_dependencies_compiler_type=none
4858
fi
4859
 
4860
fi
4861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4862
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4863
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4864
 
4865
 if
4866
  test "x$enable_dependency_tracking" != xno \
4867
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4868
  am__fastdepCCAS_TRUE=
4869
  am__fastdepCCAS_FALSE='#'
4870
else
4871
  am__fastdepCCAS_TRUE='#'
4872
  am__fastdepCCAS_FALSE=
4873
fi
4874
 
4875
 
4876
 
4877
 
4878
 
4879
 
4880
# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4881
# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4882
# in both places for now and restore CFLAGS at the end of config.
4883
save_CFLAGS="$CFLAGS"
4884
 
4885
# Find other programs we need.
4886
if test -n "$ac_tool_prefix"; then
4887
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4888
set dummy ${ac_tool_prefix}ar; ac_word=$2
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890
$as_echo_n "checking for $ac_word... " >&6; }
4891
if test "${ac_cv_prog_AR+set}" = set; then :
4892
  $as_echo_n "(cached) " >&6
4893
else
4894
  if test -n "$AR"; then
4895
  ac_cv_prog_AR="$AR" # Let the user override the test.
4896
else
4897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898
for as_dir in $PATH
4899
do
4900
  IFS=$as_save_IFS
4901
  test -z "$as_dir" && as_dir=.
4902
    for ac_exec_ext in '' $ac_executable_extensions; do
4903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4905
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906
    break 2
4907
  fi
4908
done
4909
  done
4910
IFS=$as_save_IFS
4911
 
4912
fi
4913
fi
4914
AR=$ac_cv_prog_AR
4915
if test -n "$AR"; then
4916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4917
$as_echo "$AR" >&6; }
4918
else
4919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920
$as_echo "no" >&6; }
4921
fi
4922
 
4923
 
4924
fi
4925
if test -z "$ac_cv_prog_AR"; then
4926
  ac_ct_AR=$AR
4927
  # Extract the first word of "ar", so it can be a program name with args.
4928
set dummy ar; ac_word=$2
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930
$as_echo_n "checking for $ac_word... " >&6; }
4931
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4932
  $as_echo_n "(cached) " >&6
4933
else
4934
  if test -n "$ac_ct_AR"; then
4935
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4936
else
4937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938
for as_dir in $PATH
4939
do
4940
  IFS=$as_save_IFS
4941
  test -z "$as_dir" && as_dir=.
4942
    for ac_exec_ext in '' $ac_executable_extensions; do
4943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944
    ac_cv_prog_ac_ct_AR="ar"
4945
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946
    break 2
4947
  fi
4948
done
4949
  done
4950
IFS=$as_save_IFS
4951
 
4952
fi
4953
fi
4954
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4955
if test -n "$ac_ct_AR"; then
4956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4957
$as_echo "$ac_ct_AR" >&6; }
4958
else
4959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960
$as_echo "no" >&6; }
4961
fi
4962
 
4963
  if test "x$ac_ct_AR" = x; then
4964
    AR=""
4965
  else
4966
    case $cross_compiling:$ac_tool_warned in
4967
yes:)
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970
ac_tool_warned=yes ;;
4971
esac
4972
    AR=$ac_ct_AR
4973
  fi
4974
else
4975
  AR="$ac_cv_prog_AR"
4976
fi
4977
 
4978
if test -n "$ac_tool_prefix"; then
4979
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4980
set dummy ${ac_tool_prefix}nm; ac_word=$2
4981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982
$as_echo_n "checking for $ac_word... " >&6; }
4983
if test "${ac_cv_prog_NM+set}" = set; then :
4984
  $as_echo_n "(cached) " >&6
4985
else
4986
  if test -n "$NM"; then
4987
  ac_cv_prog_NM="$NM" # Let the user override the test.
4988
else
4989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990
for as_dir in $PATH
4991
do
4992
  IFS=$as_save_IFS
4993
  test -z "$as_dir" && as_dir=.
4994
    for ac_exec_ext in '' $ac_executable_extensions; do
4995
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996
    ac_cv_prog_NM="${ac_tool_prefix}nm"
4997
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998
    break 2
4999
  fi
5000
done
5001
  done
5002
IFS=$as_save_IFS
5003
 
5004
fi
5005
fi
5006
NM=$ac_cv_prog_NM
5007
if test -n "$NM"; then
5008
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5009
$as_echo "$NM" >&6; }
5010
else
5011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012
$as_echo "no" >&6; }
5013
fi
5014
 
5015
 
5016
fi
5017
if test -z "$ac_cv_prog_NM"; then
5018
  ac_ct_NM=$NM
5019
  # Extract the first word of "nm", so it can be a program name with args.
5020
set dummy nm; ac_word=$2
5021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022
$as_echo_n "checking for $ac_word... " >&6; }
5023
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5024
  $as_echo_n "(cached) " >&6
5025
else
5026
  if test -n "$ac_ct_NM"; then
5027
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5028
else
5029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030
for as_dir in $PATH
5031
do
5032
  IFS=$as_save_IFS
5033
  test -z "$as_dir" && as_dir=.
5034
    for ac_exec_ext in '' $ac_executable_extensions; do
5035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036
    ac_cv_prog_ac_ct_NM="nm"
5037
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038
    break 2
5039
  fi
5040
done
5041
  done
5042
IFS=$as_save_IFS
5043
 
5044
fi
5045
fi
5046
ac_ct_NM=$ac_cv_prog_ac_ct_NM
5047
if test -n "$ac_ct_NM"; then
5048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5049
$as_echo "$ac_ct_NM" >&6; }
5050
else
5051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052
$as_echo "no" >&6; }
5053
fi
5054
 
5055
  if test "x$ac_ct_NM" = x; then
5056
    NM=""
5057
  else
5058
    case $cross_compiling:$ac_tool_warned in
5059
yes:)
5060
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062
ac_tool_warned=yes ;;
5063
esac
5064
    NM=$ac_ct_NM
5065
  fi
5066
else
5067
  NM="$ac_cv_prog_NM"
5068
fi
5069
 
5070
if test -n "$ac_tool_prefix"; then
5071
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5072
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074
$as_echo_n "checking for $ac_word... " >&6; }
5075
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5076
  $as_echo_n "(cached) " >&6
5077
else
5078
  if test -n "$RANLIB"; then
5079
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5080
else
5081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082
for as_dir in $PATH
5083
do
5084
  IFS=$as_save_IFS
5085
  test -z "$as_dir" && as_dir=.
5086
    for ac_exec_ext in '' $ac_executable_extensions; do
5087
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5089
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090
    break 2
5091
  fi
5092
done
5093
  done
5094
IFS=$as_save_IFS
5095
 
5096
fi
5097
fi
5098
RANLIB=$ac_cv_prog_RANLIB
5099
if test -n "$RANLIB"; then
5100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5101
$as_echo "$RANLIB" >&6; }
5102
else
5103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104
$as_echo "no" >&6; }
5105
fi
5106
 
5107
 
5108
fi
5109
if test -z "$ac_cv_prog_RANLIB"; then
5110
  ac_ct_RANLIB=$RANLIB
5111
  # Extract the first word of "ranlib", so it can be a program name with args.
5112
set dummy ranlib; ac_word=$2
5113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114
$as_echo_n "checking for $ac_word... " >&6; }
5115
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5116
  $as_echo_n "(cached) " >&6
5117
else
5118
  if test -n "$ac_ct_RANLIB"; then
5119
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5120
else
5121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122
for as_dir in $PATH
5123
do
5124
  IFS=$as_save_IFS
5125
  test -z "$as_dir" && as_dir=.
5126
    for ac_exec_ext in '' $ac_executable_extensions; do
5127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5129
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130
    break 2
5131
  fi
5132
done
5133
  done
5134
IFS=$as_save_IFS
5135
 
5136
fi
5137
fi
5138
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5139
if test -n "$ac_ct_RANLIB"; then
5140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5141
$as_echo "$ac_ct_RANLIB" >&6; }
5142
else
5143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144
$as_echo "no" >&6; }
5145
fi
5146
 
5147
  if test "x$ac_ct_RANLIB" = x; then
5148
    RANLIB="ranlib-not-found-in-path-error"
5149
  else
5150
    case $cross_compiling:$ac_tool_warned in
5151
yes:)
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154
ac_tool_warned=yes ;;
5155
esac
5156
    RANLIB=$ac_ct_RANLIB
5157
  fi
5158
else
5159
  RANLIB="$ac_cv_prog_RANLIB"
5160
fi
5161
 
5162
# Extract the first word of "perl", so it can be a program name with args.
5163
set dummy perl; ac_word=$2
5164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165
$as_echo_n "checking for $ac_word... " >&6; }
5166
if test "${ac_cv_path_PERL+set}" = set; then :
5167
  $as_echo_n "(cached) " >&6
5168
else
5169
  case $PERL in
5170
  [\\/]* | ?:[\\/]*)
5171
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5172
  ;;
5173
  *)
5174
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175
for as_dir in $PATH
5176
do
5177
  IFS=$as_save_IFS
5178
  test -z "$as_dir" && as_dir=.
5179
    for ac_exec_ext in '' $ac_executable_extensions; do
5180
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5182
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183
    break 2
5184
  fi
5185
done
5186
  done
5187
IFS=$as_save_IFS
5188
 
5189
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5190
  ;;
5191
esac
5192
fi
5193
PERL=$ac_cv_path_PERL
5194
if test -n "$PERL"; then
5195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5196
$as_echo "$PERL" >&6; }
5197
else
5198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199
$as_echo "no" >&6; }
5200
fi
5201
 
5202
 
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5204
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5205
set x ${MAKE-make}
5206
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5207
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5208
  $as_echo_n "(cached) " >&6
5209
else
5210
  cat >conftest.make <<\_ACEOF
5211
SHELL = /bin/sh
5212
all:
5213
        @echo '@@@%%%=$(MAKE)=@@@%%%'
5214
_ACEOF
5215
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5216
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5217
  *@@@%%%=?*=@@@%%%*)
5218
    eval ac_cv_prog_make_${ac_make}_set=yes;;
5219
  *)
5220
    eval ac_cv_prog_make_${ac_make}_set=no;;
5221
esac
5222
rm -f conftest.make
5223
fi
5224
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226
$as_echo "yes" >&6; }
5227
  SET_MAKE=
5228
else
5229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230
$as_echo "no" >&6; }
5231
  SET_MAKE="MAKE=${MAKE-make}"
5232
fi
5233
 
5234
 
5235
 
5236
# See if makeinfo has been installed and is modern enough
5237
# that we can use it.
5238
 
5239
  # Extract the first word of "makeinfo", so it can be a program name with args.
5240
set dummy makeinfo; ac_word=$2
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242
$as_echo_n "checking for $ac_word... " >&6; }
5243
if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5244
  $as_echo_n "(cached) " >&6
5245
else
5246
  if test -n "$MAKEINFO"; then
5247
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5248
else
5249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250
for as_dir in $PATH
5251
do
5252
  IFS=$as_save_IFS
5253
  test -z "$as_dir" && as_dir=.
5254
    for ac_exec_ext in '' $ac_executable_extensions; do
5255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256
    ac_cv_prog_MAKEINFO="makeinfo"
5257
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258
    break 2
5259
  fi
5260
done
5261
  done
5262
IFS=$as_save_IFS
5263
 
5264
fi
5265
fi
5266
MAKEINFO=$ac_cv_prog_MAKEINFO
5267
if test -n "$MAKEINFO"; then
5268
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5269
$as_echo "$MAKEINFO" >&6; }
5270
else
5271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272
$as_echo "no" >&6; }
5273
fi
5274
 
5275
 
5276
  if test -n "$MAKEINFO"; then
5277
    # Found it, now check the version.
5278
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5279
$as_echo_n "checking for modern makeinfo... " >&6; }
5280
if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5281
  $as_echo_n "(cached) " >&6
5282
else
5283
  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5284
                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5285
 
5286
                    case $ac_prog_version in
5287
                      '')  gcc_cv_prog_makeinfo_modern=no;;
5288
                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
5289
                      *)   gcc_cv_prog_makeinfo_modern=no;;
5290
                    esac
5291
 
5292
fi
5293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5294
$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5295
  else
5296
    gcc_cv_prog_makeinfo_modern=no
5297
  fi
5298
  if test $gcc_cv_prog_makeinfo_modern = no; then
5299
    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5300
  fi
5301
 
5302
 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5303
  BUILD_INFO_TRUE=
5304
  BUILD_INFO_FALSE='#'
5305
else
5306
  BUILD_INFO_TRUE='#'
5307
  BUILD_INFO_FALSE=
5308
fi
5309
 
5310
 
5311
 
5312
# Configure libtool
5313
case `pwd` in
5314
  *\ * | *\     *)
5315
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5316
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5317
esac
5318
 
5319
 
5320
 
5321
macro_version='2.2.7a'
5322
macro_revision='1.3134'
5323
 
5324
 
5325
 
5326
 
5327
 
5328
 
5329
 
5330
 
5331
 
5332
 
5333
 
5334
 
5335
 
5336
ltmain="$ac_aux_dir/ltmain.sh"
5337
 
5338
# Backslashify metacharacters that are still active within
5339
# double-quoted strings.
5340
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5341
 
5342
# Same as above, but do not quote variable references.
5343
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5344
 
5345
# Sed substitution to delay expansion of an escaped shell variable in a
5346
# double_quote_subst'ed string.
5347
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5348
 
5349
# Sed substitution to delay expansion of an escaped single quote.
5350
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5351
 
5352
# Sed substitution to avoid accidental globbing in evaled expressions
5353
no_glob_subst='s/\*/\\\*/g'
5354
 
5355
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5356
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5357
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5358
 
5359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5360
$as_echo_n "checking how to print strings... " >&6; }
5361
# Test print first, because it will be a builtin if present.
5362
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5363
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5364
  ECHO='print -r --'
5365
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5366
  ECHO='printf %s\n'
5367
else
5368
  # Use this function as a fallback that always works.
5369
  func_fallback_echo ()
5370
  {
5371
    eval 'cat <<_LTECHO_EOF
5372
$1
5373
_LTECHO_EOF'
5374
  }
5375
  ECHO='func_fallback_echo'
5376
fi
5377
 
5378
# func_echo_all arg...
5379
# Invoke $ECHO with all args, space-separated.
5380
func_echo_all ()
5381
{
5382
    $ECHO ""
5383
}
5384
 
5385
case "$ECHO" in
5386
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5387
$as_echo "printf" >&6; } ;;
5388
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5389
$as_echo "print -r" >&6; } ;;
5390
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5391
$as_echo "cat" >&6; } ;;
5392
esac
5393
 
5394
 
5395
 
5396
 
5397
 
5398
 
5399
 
5400
 
5401
 
5402
 
5403
 
5404
 
5405
 
5406
 
5407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5408
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5409
if test "${ac_cv_path_SED+set}" = set; then :
5410
  $as_echo_n "(cached) " >&6
5411
else
5412
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5413
     for ac_i in 1 2 3 4 5 6 7; do
5414
       ac_script="$ac_script$as_nl$ac_script"
5415
     done
5416
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5417
     { ac_script=; unset ac_script;}
5418
     if test -z "$SED"; then
5419
  ac_path_SED_found=false
5420
  # Loop through the user's path and test for each of PROGNAME-LIST
5421
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422
for as_dir in $PATH
5423
do
5424
  IFS=$as_save_IFS
5425
  test -z "$as_dir" && as_dir=.
5426
    for ac_prog in sed gsed; do
5427
    for ac_exec_ext in '' $ac_executable_extensions; do
5428
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5429
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5430
# Check for GNU ac_path_SED and select it if it is found.
5431
  # Check for GNU $ac_path_SED
5432
case `"$ac_path_SED" --version 2>&1` in
5433
*GNU*)
5434
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5435
*)
5436
  ac_count=0
5437
  $as_echo_n 0123456789 >"conftest.in"
5438
  while :
5439
  do
5440
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5441
    mv "conftest.tmp" "conftest.in"
5442
    cp "conftest.in" "conftest.nl"
5443
    $as_echo '' >> "conftest.nl"
5444
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5445
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5446
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5447
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5448
      # Best one so far, save it but keep looking for a better one
5449
      ac_cv_path_SED="$ac_path_SED"
5450
      ac_path_SED_max=$ac_count
5451
    fi
5452
    # 10*(2^10) chars as input seems more than enough
5453
    test $ac_count -gt 10 && break
5454
  done
5455
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5456
esac
5457
 
5458
      $ac_path_SED_found && break 3
5459
    done
5460
  done
5461
  done
5462
IFS=$as_save_IFS
5463
  if test -z "$ac_cv_path_SED"; then
5464
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5465
  fi
5466
else
5467
  ac_cv_path_SED=$SED
5468
fi
5469
 
5470
fi
5471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5472
$as_echo "$ac_cv_path_SED" >&6; }
5473
 SED="$ac_cv_path_SED"
5474
  rm -f conftest.sed
5475
 
5476
test -z "$SED" && SED=sed
5477
Xsed="$SED -e 1s/^X//"
5478
 
5479
 
5480
 
5481
 
5482
 
5483
 
5484
 
5485
 
5486
 
5487
 
5488
 
5489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5490
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5491
if test "${ac_cv_path_GREP+set}" = set; then :
5492
  $as_echo_n "(cached) " >&6
5493
else
5494
  if test -z "$GREP"; then
5495
  ac_path_GREP_found=false
5496
  # Loop through the user's path and test for each of PROGNAME-LIST
5497
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499
do
5500
  IFS=$as_save_IFS
5501
  test -z "$as_dir" && as_dir=.
5502
    for ac_prog in grep ggrep; do
5503
    for ac_exec_ext in '' $ac_executable_extensions; do
5504
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5505
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5506
# Check for GNU ac_path_GREP and select it if it is found.
5507
  # Check for GNU $ac_path_GREP
5508
case `"$ac_path_GREP" --version 2>&1` in
5509
*GNU*)
5510
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5511
*)
5512
  ac_count=0
5513
  $as_echo_n 0123456789 >"conftest.in"
5514
  while :
5515
  do
5516
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5517
    mv "conftest.tmp" "conftest.in"
5518
    cp "conftest.in" "conftest.nl"
5519
    $as_echo 'GREP' >> "conftest.nl"
5520
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5523
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5524
      # Best one so far, save it but keep looking for a better one
5525
      ac_cv_path_GREP="$ac_path_GREP"
5526
      ac_path_GREP_max=$ac_count
5527
    fi
5528
    # 10*(2^10) chars as input seems more than enough
5529
    test $ac_count -gt 10 && break
5530
  done
5531
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532
esac
5533
 
5534
      $ac_path_GREP_found && break 3
5535
    done
5536
  done
5537
  done
5538
IFS=$as_save_IFS
5539
  if test -z "$ac_cv_path_GREP"; then
5540
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541
  fi
5542
else
5543
  ac_cv_path_GREP=$GREP
5544
fi
5545
 
5546
fi
5547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5548
$as_echo "$ac_cv_path_GREP" >&6; }
5549
 GREP="$ac_cv_path_GREP"
5550
 
5551
 
5552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5553
$as_echo_n "checking for egrep... " >&6; }
5554
if test "${ac_cv_path_EGREP+set}" = set; then :
5555
  $as_echo_n "(cached) " >&6
5556
else
5557
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5558
   then ac_cv_path_EGREP="$GREP -E"
5559
   else
5560
     if test -z "$EGREP"; then
5561
  ac_path_EGREP_found=false
5562
  # Loop through the user's path and test for each of PROGNAME-LIST
5563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565
do
5566
  IFS=$as_save_IFS
5567
  test -z "$as_dir" && as_dir=.
5568
    for ac_prog in egrep; do
5569
    for ac_exec_ext in '' $ac_executable_extensions; do
5570
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5571
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5572
# Check for GNU ac_path_EGREP and select it if it is found.
5573
  # Check for GNU $ac_path_EGREP
5574
case `"$ac_path_EGREP" --version 2>&1` in
5575
*GNU*)
5576
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5577
*)
5578
  ac_count=0
5579
  $as_echo_n 0123456789 >"conftest.in"
5580
  while :
5581
  do
5582
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5583
    mv "conftest.tmp" "conftest.in"
5584
    cp "conftest.in" "conftest.nl"
5585
    $as_echo 'EGREP' >> "conftest.nl"
5586
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5587
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5588
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5589
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5590
      # Best one so far, save it but keep looking for a better one
5591
      ac_cv_path_EGREP="$ac_path_EGREP"
5592
      ac_path_EGREP_max=$ac_count
5593
    fi
5594
    # 10*(2^10) chars as input seems more than enough
5595
    test $ac_count -gt 10 && break
5596
  done
5597
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598
esac
5599
 
5600
      $ac_path_EGREP_found && break 3
5601
    done
5602
  done
5603
  done
5604
IFS=$as_save_IFS
5605
  if test -z "$ac_cv_path_EGREP"; then
5606
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5607
  fi
5608
else
5609
  ac_cv_path_EGREP=$EGREP
5610
fi
5611
 
5612
   fi
5613
fi
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5615
$as_echo "$ac_cv_path_EGREP" >&6; }
5616
 EGREP="$ac_cv_path_EGREP"
5617
 
5618
 
5619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5620
$as_echo_n "checking for fgrep... " >&6; }
5621
if test "${ac_cv_path_FGREP+set}" = set; then :
5622
  $as_echo_n "(cached) " >&6
5623
else
5624
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5625
   then ac_cv_path_FGREP="$GREP -F"
5626
   else
5627
     if test -z "$FGREP"; then
5628
  ac_path_FGREP_found=false
5629
  # Loop through the user's path and test for each of PROGNAME-LIST
5630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632
do
5633
  IFS=$as_save_IFS
5634
  test -z "$as_dir" && as_dir=.
5635
    for ac_prog in fgrep; do
5636
    for ac_exec_ext in '' $ac_executable_extensions; do
5637
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5638
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5639
# Check for GNU ac_path_FGREP and select it if it is found.
5640
  # Check for GNU $ac_path_FGREP
5641
case `"$ac_path_FGREP" --version 2>&1` in
5642
*GNU*)
5643
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5644
*)
5645
  ac_count=0
5646
  $as_echo_n 0123456789 >"conftest.in"
5647
  while :
5648
  do
5649
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5650
    mv "conftest.tmp" "conftest.in"
5651
    cp "conftest.in" "conftest.nl"
5652
    $as_echo 'FGREP' >> "conftest.nl"
5653
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5656
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5657
      # Best one so far, save it but keep looking for a better one
5658
      ac_cv_path_FGREP="$ac_path_FGREP"
5659
      ac_path_FGREP_max=$ac_count
5660
    fi
5661
    # 10*(2^10) chars as input seems more than enough
5662
    test $ac_count -gt 10 && break
5663
  done
5664
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665
esac
5666
 
5667
      $ac_path_FGREP_found && break 3
5668
    done
5669
  done
5670
  done
5671
IFS=$as_save_IFS
5672
  if test -z "$ac_cv_path_FGREP"; then
5673
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5674
  fi
5675
else
5676
  ac_cv_path_FGREP=$FGREP
5677
fi
5678
 
5679
   fi
5680
fi
5681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5682
$as_echo "$ac_cv_path_FGREP" >&6; }
5683
 FGREP="$ac_cv_path_FGREP"
5684
 
5685
 
5686
test -z "$GREP" && GREP=grep
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
 
5696
 
5697
 
5698
 
5699
 
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
# Check whether --with-gnu-ld was given.
5707
if test "${with_gnu_ld+set}" = set; then :
5708
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709
else
5710
  with_gnu_ld=no
5711
fi
5712
 
5713
ac_prog=ld
5714
if test "$GCC" = yes; then
5715
  # Check if gcc -print-prog-name=ld gives a path.
5716
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5717
$as_echo_n "checking for ld used by $CC... " >&6; }
5718
  case $host in
5719
  *-*-mingw*)
5720
    # gcc leaves a trailing carriage return which upsets mingw
5721
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5722
  *)
5723
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724
  esac
5725
  case $ac_prog in
5726
    # Accept absolute paths.
5727
    [\\/]* | ?:[\\/]*)
5728
      re_direlt='/[^/][^/]*/\.\./'
5729
      # Canonicalize the pathname of ld
5730
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5733
      done
5734
      test -z "$LD" && LD="$ac_prog"
5735
      ;;
5736
  "")
5737
    # If it fails, then pretend we aren't using GCC.
5738
    ac_prog=ld
5739
    ;;
5740
  *)
5741
    # If it is relative, then search for the first ld in PATH.
5742
    with_gnu_ld=unknown
5743
    ;;
5744
  esac
5745
elif test "$with_gnu_ld" = yes; then
5746
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5747
$as_echo_n "checking for GNU ld... " >&6; }
5748
else
5749
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5750
$as_echo_n "checking for non-GNU ld... " >&6; }
5751
fi
5752
if test "${lt_cv_path_LD+set}" = set; then :
5753
  $as_echo_n "(cached) " >&6
5754
else
5755
  if test -z "$LD"; then
5756
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757
  for ac_dir in $PATH; do
5758
    IFS="$lt_save_ifs"
5759
    test -z "$ac_dir" && ac_dir=.
5760
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761
      lt_cv_path_LD="$ac_dir/$ac_prog"
5762
      # Check to see if the program is GNU ld.  I'd rather use --version,
5763
      # but apparently some variants of GNU ld only accept -v.
5764
      # Break only if it was the GNU/non-GNU ld that we prefer.
5765
      case `"$lt_cv_path_LD" -v 2>&1 
5766
      *GNU* | *'with BFD'*)
5767
        test "$with_gnu_ld" != no && break
5768
        ;;
5769
      *)
5770
        test "$with_gnu_ld" != yes && break
5771
        ;;
5772
      esac
5773
    fi
5774
  done
5775
  IFS="$lt_save_ifs"
5776
else
5777
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778
fi
5779
fi
5780
 
5781
LD="$lt_cv_path_LD"
5782
if test -n "$LD"; then
5783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5784
$as_echo "$LD" >&6; }
5785
else
5786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787
$as_echo "no" >&6; }
5788
fi
5789
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5791
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5792
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5793
  $as_echo_n "(cached) " >&6
5794
else
5795
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796
case `$LD -v 2>&1 
5797
*GNU* | *'with BFD'*)
5798
  lt_cv_prog_gnu_ld=yes
5799
  ;;
5800
*)
5801
  lt_cv_prog_gnu_ld=no
5802
  ;;
5803
esac
5804
fi
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5806
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5807
with_gnu_ld=$lt_cv_prog_gnu_ld
5808
 
5809
 
5810
 
5811
 
5812
 
5813
 
5814
 
5815
 
5816
 
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5818
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5819
if test "${lt_cv_path_NM+set}" = set; then :
5820
  $as_echo_n "(cached) " >&6
5821
else
5822
  if test -n "$NM"; then
5823
  # Let the user override the test.
5824
  lt_cv_path_NM="$NM"
5825
else
5826
  lt_nm_to_check="${ac_tool_prefix}nm"
5827
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828
    lt_nm_to_check="$lt_nm_to_check nm"
5829
  fi
5830
  for lt_tmp_nm in $lt_nm_to_check; do
5831
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833
      IFS="$lt_save_ifs"
5834
      test -z "$ac_dir" && ac_dir=.
5835
      tmp_nm="$ac_dir/$lt_tmp_nm"
5836
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837
        # Check to see if the nm accepts a BSD-compat flag.
5838
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839
        #   nm: unknown option "B" ignored
5840
        # Tru64's nm complains that /dev/null is an invalid object file
5841
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842
        */dev/null* | *'Invalid file or object type'*)
5843
          lt_cv_path_NM="$tmp_nm -B"
5844
          break
5845
          ;;
5846
        *)
5847
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848
          */dev/null*)
5849
            lt_cv_path_NM="$tmp_nm -p"
5850
            break
5851
            ;;
5852
          *)
5853
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854
            continue # so that we can try to find one that supports BSD flags
5855
            ;;
5856
          esac
5857
          ;;
5858
        esac
5859
      fi
5860
    done
5861
    IFS="$lt_save_ifs"
5862
  done
5863
  : ${lt_cv_path_NM=no}
5864
fi
5865
fi
5866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5867
$as_echo "$lt_cv_path_NM" >&6; }
5868
if test "$lt_cv_path_NM" != "no"; then
5869
  NM="$lt_cv_path_NM"
5870
else
5871
  # Didn't find any BSD compatible name lister, look for dumpbin.
5872
  if test -n "$DUMPBIN"; then :
5873
    # Let the user override the test.
5874
  else
5875
    if test -n "$ac_tool_prefix"; then
5876
  for ac_prog in dumpbin "link -dump"
5877
  do
5878
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881
$as_echo_n "checking for $ac_word... " >&6; }
5882
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5883
  $as_echo_n "(cached) " >&6
5884
else
5885
  if test -n "$DUMPBIN"; then
5886
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887
else
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889
for as_dir in $PATH
5890
do
5891
  IFS=$as_save_IFS
5892
  test -z "$as_dir" && as_dir=.
5893
    for ac_exec_ext in '' $ac_executable_extensions; do
5894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897
    break 2
5898
  fi
5899
done
5900
  done
5901
IFS=$as_save_IFS
5902
 
5903
fi
5904
fi
5905
DUMPBIN=$ac_cv_prog_DUMPBIN
5906
if test -n "$DUMPBIN"; then
5907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5908
$as_echo "$DUMPBIN" >&6; }
5909
else
5910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911
$as_echo "no" >&6; }
5912
fi
5913
 
5914
 
5915
    test -n "$DUMPBIN" && break
5916
  done
5917
fi
5918
if test -z "$DUMPBIN"; then
5919
  ac_ct_DUMPBIN=$DUMPBIN
5920
  for ac_prog in dumpbin "link -dump"
5921
do
5922
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5923
set dummy $ac_prog; ac_word=$2
5924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925
$as_echo_n "checking for $ac_word... " >&6; }
5926
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5927
  $as_echo_n "(cached) " >&6
5928
else
5929
  if test -n "$ac_ct_DUMPBIN"; then
5930
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931
else
5932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933
for as_dir in $PATH
5934
do
5935
  IFS=$as_save_IFS
5936
  test -z "$as_dir" && as_dir=.
5937
    for ac_exec_ext in '' $ac_executable_extensions; do
5938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941
    break 2
5942
  fi
5943
done
5944
  done
5945
IFS=$as_save_IFS
5946
 
5947
fi
5948
fi
5949
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950
if test -n "$ac_ct_DUMPBIN"; then
5951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5952
$as_echo "$ac_ct_DUMPBIN" >&6; }
5953
else
5954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955
$as_echo "no" >&6; }
5956
fi
5957
 
5958
 
5959
  test -n "$ac_ct_DUMPBIN" && break
5960
done
5961
 
5962
  if test "x$ac_ct_DUMPBIN" = x; then
5963
    DUMPBIN=":"
5964
  else
5965
    case $cross_compiling:$ac_tool_warned in
5966
yes:)
5967
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969
ac_tool_warned=yes ;;
5970
esac
5971
    DUMPBIN=$ac_ct_DUMPBIN
5972
  fi
5973
fi
5974
 
5975
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5976
    *COFF*)
5977
      DUMPBIN="$DUMPBIN -symbols"
5978
      ;;
5979
    *)
5980
      DUMPBIN=:
5981
      ;;
5982
    esac
5983
  fi
5984
 
5985
  if test "$DUMPBIN" != ":"; then
5986
    NM="$DUMPBIN"
5987
  fi
5988
fi
5989
test -z "$NM" && NM=nm
5990
 
5991
 
5992
 
5993
 
5994
 
5995
 
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5997
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5998
if test "${lt_cv_nm_interface+set}" = set; then :
5999
  $as_echo_n "(cached) " >&6
6000
else
6001
  lt_cv_nm_interface="BSD nm"
6002
  echo "int some_variable = 0;" > conftest.$ac_ext
6003
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6004
  (eval "$ac_compile" 2>conftest.err)
6005
  cat conftest.err >&5
6006
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6007
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6008
  cat conftest.err >&5
6009
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6010
  cat conftest.out >&5
6011
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6012
    lt_cv_nm_interface="MS dumpbin"
6013
  fi
6014
  rm -f conftest*
6015
fi
6016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6017
$as_echo "$lt_cv_nm_interface" >&6; }
6018
 
6019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6020
$as_echo_n "checking whether ln -s works... " >&6; }
6021
LN_S=$as_ln_s
6022
if test "$LN_S" = "ln -s"; then
6023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6024
$as_echo "yes" >&6; }
6025
else
6026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6027
$as_echo "no, using $LN_S" >&6; }
6028
fi
6029
 
6030
# find the maximum length of command line arguments
6031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6032
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6033
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6034
  $as_echo_n "(cached) " >&6
6035
else
6036
    i=0
6037
  teststring="ABCD"
6038
 
6039
  case $build_os in
6040
  msdosdjgpp*)
6041
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6042
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6043
    # during glob expansion).  Even if it were fixed, the result of this
6044
    # check would be larger than it should be.
6045
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6046
    ;;
6047
 
6048
  gnu*)
6049
    # Under GNU Hurd, this test is not required because there is
6050
    # no limit to the length of command line arguments.
6051
    # Libtool will interpret -1 as no limit whatsoever
6052
    lt_cv_sys_max_cmd_len=-1;
6053
    ;;
6054
 
6055
  cygwin* | mingw* | cegcc*)
6056
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6057
    # about 5 minutes as the teststring grows exponentially.
6058
    # Worse, since 9x/ME are not pre-emptively multitasking,
6059
    # you end up with a "frozen" computer, even though with patience
6060
    # the test eventually succeeds (with a max line length of 256k).
6061
    # Instead, let's just punt: use the minimum linelength reported by
6062
    # all of the supported platforms: 8192 (on NT/2K/XP).
6063
    lt_cv_sys_max_cmd_len=8192;
6064
    ;;
6065
 
6066
  mint*)
6067
    # On MiNT this can take a long time and run out of memory.
6068
    lt_cv_sys_max_cmd_len=8192;
6069
    ;;
6070
 
6071
  amigaos*)
6072
    # On AmigaOS with pdksh, this test takes hours, literally.
6073
    # So we just punt and use a minimum line length of 8192.
6074
    lt_cv_sys_max_cmd_len=8192;
6075
    ;;
6076
 
6077
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6078
    # This has been around since 386BSD, at least.  Likely further.
6079
    if test -x /sbin/sysctl; then
6080
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6081
    elif test -x /usr/sbin/sysctl; then
6082
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6083
    else
6084
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6085
    fi
6086
    # And add a safety zone
6087
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6089
    ;;
6090
 
6091
  interix*)
6092
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6093
    lt_cv_sys_max_cmd_len=196608
6094
    ;;
6095
 
6096
  osf*)
6097
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6098
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6099
    # nice to cause kernel panics so lets avoid the loop below.
6100
    # First set a reasonable default.
6101
    lt_cv_sys_max_cmd_len=16384
6102
    #
6103
    if test -x /sbin/sysconfig; then
6104
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6105
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6106
      esac
6107
    fi
6108
    ;;
6109
  sco3.2v5*)
6110
    lt_cv_sys_max_cmd_len=102400
6111
    ;;
6112
  sysv5* | sco5v6* | sysv4.2uw2*)
6113
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6114
    if test -n "$kargmax"; then
6115
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6116
    else
6117
      lt_cv_sys_max_cmd_len=32768
6118
    fi
6119
    ;;
6120
  *)
6121
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6122
    if test -n "$lt_cv_sys_max_cmd_len"; then
6123
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125
    else
6126
      # Make teststring a little bigger before we do anything with it.
6127
      # a 1K string should be a reasonable start.
6128
      for i in 1 2 3 4 5 6 7 8 ; do
6129
        teststring=$teststring$teststring
6130
      done
6131
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6132
      # If test is not a shell built-in, we'll probably end up computing a
6133
      # maximum length that is only half of the actual maximum length, but
6134
      # we can't tell.
6135
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6136
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6137
              test $i != 17 # 1/2 MB should be enough
6138
      do
6139
        i=`expr $i + 1`
6140
        teststring=$teststring$teststring
6141
      done
6142
      # Only check the string length outside the loop.
6143
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6144
      teststring=
6145
      # Add a significant safety factor because C++ compilers can tack on
6146
      # massive amounts of additional arguments before passing them to the
6147
      # linker.  It appears as though 1/2 is a usable value.
6148
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6149
    fi
6150
    ;;
6151
  esac
6152
 
6153
fi
6154
 
6155
if test -n $lt_cv_sys_max_cmd_len ; then
6156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6157
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6158
else
6159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6160
$as_echo "none" >&6; }
6161
fi
6162
max_cmd_len=$lt_cv_sys_max_cmd_len
6163
 
6164
 
6165
 
6166
 
6167
 
6168
 
6169
: ${CP="cp -f"}
6170
: ${MV="mv -f"}
6171
: ${RM="rm -f"}
6172
 
6173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6174
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6175
# Try some XSI features
6176
xsi_shell=no
6177
( _lt_dummy="a/b/c"
6178
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6179
      = c,a/b,, \
6180
    && eval 'test $(( 1 + 1 )) -eq 2 \
6181
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6182
  && xsi_shell=yes
6183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6184
$as_echo "$xsi_shell" >&6; }
6185
 
6186
 
6187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6188
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6189
lt_shell_append=no
6190
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6191
    >/dev/null 2>&1 \
6192
  && lt_shell_append=yes
6193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6194
$as_echo "$lt_shell_append" >&6; }
6195
 
6196
 
6197
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6198
  lt_unset=unset
6199
else
6200
  lt_unset=false
6201
fi
6202
 
6203
 
6204
 
6205
 
6206
 
6207
# test EBCDIC or ASCII
6208
case `echo X|tr X '\101'` in
6209
 A) # ASCII based system
6210
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6211
  lt_SP2NL='tr \040 \012'
6212
  lt_NL2SP='tr \015\012 \040\040'
6213
  ;;
6214
 *) # EBCDIC based system
6215
  lt_SP2NL='tr \100 \n'
6216
  lt_NL2SP='tr \r\n \100\100'
6217
  ;;
6218
esac
6219
 
6220
 
6221
 
6222
 
6223
 
6224
 
6225
 
6226
 
6227
 
6228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6229
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6230
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6231
  $as_echo_n "(cached) " >&6
6232
else
6233
  lt_cv_ld_reload_flag='-r'
6234
fi
6235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6236
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6237
reload_flag=$lt_cv_ld_reload_flag
6238
case $reload_flag in
6239
"" | " "*) ;;
6240
*) reload_flag=" $reload_flag" ;;
6241
esac
6242
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243
case $host_os in
6244
  darwin*)
6245
    if test "$GCC" = yes; then
6246
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6247
    else
6248
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249
    fi
6250
    ;;
6251
esac
6252
 
6253
 
6254
 
6255
 
6256
 
6257
 
6258
 
6259
 
6260
 
6261
if test -n "$ac_tool_prefix"; then
6262
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6263
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265
$as_echo_n "checking for $ac_word... " >&6; }
6266
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6267
  $as_echo_n "(cached) " >&6
6268
else
6269
  if test -n "$OBJDUMP"; then
6270
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6271
else
6272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273
for as_dir in $PATH
6274
do
6275
  IFS=$as_save_IFS
6276
  test -z "$as_dir" && as_dir=.
6277
    for ac_exec_ext in '' $ac_executable_extensions; do
6278
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6280
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281
    break 2
6282
  fi
6283
done
6284
  done
6285
IFS=$as_save_IFS
6286
 
6287
fi
6288
fi
6289
OBJDUMP=$ac_cv_prog_OBJDUMP
6290
if test -n "$OBJDUMP"; then
6291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6292
$as_echo "$OBJDUMP" >&6; }
6293
else
6294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295
$as_echo "no" >&6; }
6296
fi
6297
 
6298
 
6299
fi
6300
if test -z "$ac_cv_prog_OBJDUMP"; then
6301
  ac_ct_OBJDUMP=$OBJDUMP
6302
  # Extract the first word of "objdump", so it can be a program name with args.
6303
set dummy objdump; ac_word=$2
6304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305
$as_echo_n "checking for $ac_word... " >&6; }
6306
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6307
  $as_echo_n "(cached) " >&6
6308
else
6309
  if test -n "$ac_ct_OBJDUMP"; then
6310
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6311
else
6312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313
for as_dir in $PATH
6314
do
6315
  IFS=$as_save_IFS
6316
  test -z "$as_dir" && as_dir=.
6317
    for ac_exec_ext in '' $ac_executable_extensions; do
6318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6320
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321
    break 2
6322
  fi
6323
done
6324
  done
6325
IFS=$as_save_IFS
6326
 
6327
fi
6328
fi
6329
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6330
if test -n "$ac_ct_OBJDUMP"; then
6331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6332
$as_echo "$ac_ct_OBJDUMP" >&6; }
6333
else
6334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335
$as_echo "no" >&6; }
6336
fi
6337
 
6338
  if test "x$ac_ct_OBJDUMP" = x; then
6339
    OBJDUMP="false"
6340
  else
6341
    case $cross_compiling:$ac_tool_warned in
6342
yes:)
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345
ac_tool_warned=yes ;;
6346
esac
6347
    OBJDUMP=$ac_ct_OBJDUMP
6348
  fi
6349
else
6350
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6351
fi
6352
 
6353
test -z "$OBJDUMP" && OBJDUMP=objdump
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6364
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6365
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6366
  $as_echo_n "(cached) " >&6
6367
else
6368
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6369
lt_cv_file_magic_test_file=
6370
lt_cv_deplibs_check_method='unknown'
6371
# Need to set the preceding variable on all platforms that support
6372
# interlibrary dependencies.
6373
# 'none' -- dependencies not supported.
6374
# `unknown' -- same as none, but documents that we really don't know.
6375
# 'pass_all' -- all dependencies passed with no checks.
6376
# 'test_compile' -- check by making test program.
6377
# 'file_magic [[regex]]' -- check by looking for files in library path
6378
# which responds to the $file_magic_cmd with a given extended regex.
6379
# If you have `file' or equivalent on your system and you're not sure
6380
# whether `pass_all' will *always* work, you probably want this one.
6381
 
6382
case $host_os in
6383
aix[4-9]*)
6384
  lt_cv_deplibs_check_method=pass_all
6385
  ;;
6386
 
6387
beos*)
6388
  lt_cv_deplibs_check_method=pass_all
6389
  ;;
6390
 
6391
bsdi[45]*)
6392
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6393
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6394
  lt_cv_file_magic_test_file=/shlib/libc.so
6395
  ;;
6396
 
6397
cygwin*)
6398
  # func_win32_libid is a shell function defined in ltmain.sh
6399
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400
  lt_cv_file_magic_cmd='func_win32_libid'
6401
  ;;
6402
 
6403
mingw* | pw32*)
6404
  # Base MSYS/MinGW do not provide the 'file' command needed by
6405
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6406
  # unless we find 'file', for example because we are cross-compiling.
6407
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6408
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6409
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410
    lt_cv_file_magic_cmd='func_win32_libid'
6411
  else
6412
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6413
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6414
  fi
6415
  ;;
6416
 
6417
cegcc*)
6418
  # use the weaker test based on 'objdump'. See mingw*.
6419
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6420
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6421
  ;;
6422
 
6423
darwin* | rhapsody*)
6424
  lt_cv_deplibs_check_method=pass_all
6425
  ;;
6426
 
6427
freebsd* | dragonfly*)
6428
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429
    case $host_cpu in
6430
    i*86 )
6431
      # Not sure whether the presence of OpenBSD here was a mistake.
6432
      # Let's accept both of them until this is cleared up.
6433
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6434
      lt_cv_file_magic_cmd=/usr/bin/file
6435
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6436
      ;;
6437
    esac
6438
  else
6439
    lt_cv_deplibs_check_method=pass_all
6440
  fi
6441
  ;;
6442
 
6443
gnu*)
6444
  lt_cv_deplibs_check_method=pass_all
6445
  ;;
6446
 
6447
haiku*)
6448
  lt_cv_deplibs_check_method=pass_all
6449
  ;;
6450
 
6451
hpux10.20* | hpux11*)
6452
  lt_cv_file_magic_cmd=/usr/bin/file
6453
  case $host_cpu in
6454
  ia64*)
6455
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6457
    ;;
6458
  hppa*64*)
6459
    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]'
6460
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6461
    ;;
6462
  *)
6463
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6464
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6465
    ;;
6466
  esac
6467
  ;;
6468
 
6469
interix[3-9]*)
6470
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6472
  ;;
6473
 
6474
irix5* | irix6* | nonstopux*)
6475
  case $LD in
6476
  *-32|*"-32 ") libmagic=32-bit;;
6477
  *-n32|*"-n32 ") libmagic=N32;;
6478
  *-64|*"-64 ") libmagic=64-bit;;
6479
  *) libmagic=never-match;;
6480
  esac
6481
  lt_cv_deplibs_check_method=pass_all
6482
  ;;
6483
 
6484
# This must be Linux ELF.
6485
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6486
  lt_cv_deplibs_check_method=pass_all
6487
  ;;
6488
 
6489
netbsd*)
6490
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492
  else
6493
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6494
  fi
6495
  ;;
6496
 
6497
newos6*)
6498
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499
  lt_cv_file_magic_cmd=/usr/bin/file
6500
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6501
  ;;
6502
 
6503
*nto* | *qnx*)
6504
  lt_cv_deplibs_check_method=pass_all
6505
  ;;
6506
 
6507
openbsd*)
6508
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6509
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510
  else
6511
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512
  fi
6513
  ;;
6514
 
6515
osf3* | osf4* | osf5*)
6516
  lt_cv_deplibs_check_method=pass_all
6517
  ;;
6518
 
6519
rdos*)
6520
  lt_cv_deplibs_check_method=pass_all
6521
  ;;
6522
 
6523
solaris*)
6524
  lt_cv_deplibs_check_method=pass_all
6525
  ;;
6526
 
6527
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6528
  lt_cv_deplibs_check_method=pass_all
6529
  ;;
6530
 
6531
sysv4 | sysv4.3*)
6532
  case $host_vendor in
6533
  motorola)
6534
    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]'
6535
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536
    ;;
6537
  ncr)
6538
    lt_cv_deplibs_check_method=pass_all
6539
    ;;
6540
  sequent)
6541
    lt_cv_file_magic_cmd='/bin/file'
6542
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543
    ;;
6544
  sni)
6545
    lt_cv_file_magic_cmd='/bin/file'
6546
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547
    lt_cv_file_magic_test_file=/lib/libc.so
6548
    ;;
6549
  siemens)
6550
    lt_cv_deplibs_check_method=pass_all
6551
    ;;
6552
  pc)
6553
    lt_cv_deplibs_check_method=pass_all
6554
    ;;
6555
  esac
6556
  ;;
6557
 
6558
tpf*)
6559
  lt_cv_deplibs_check_method=pass_all
6560
  ;;
6561
esac
6562
 
6563
fi
6564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6565
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6566
file_magic_cmd=$lt_cv_file_magic_cmd
6567
deplibs_check_method=$lt_cv_deplibs_check_method
6568
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
if test -n "$ac_tool_prefix"; then
6582
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583
set dummy ${ac_tool_prefix}ar; ac_word=$2
6584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585
$as_echo_n "checking for $ac_word... " >&6; }
6586
if test "${ac_cv_prog_AR+set}" = set; then :
6587
  $as_echo_n "(cached) " >&6
6588
else
6589
  if test -n "$AR"; then
6590
  ac_cv_prog_AR="$AR" # Let the user override the test.
6591
else
6592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593
for as_dir in $PATH
6594
do
6595
  IFS=$as_save_IFS
6596
  test -z "$as_dir" && as_dir=.
6597
    for ac_exec_ext in '' $ac_executable_extensions; do
6598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6600
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601
    break 2
6602
  fi
6603
done
6604
  done
6605
IFS=$as_save_IFS
6606
 
6607
fi
6608
fi
6609
AR=$ac_cv_prog_AR
6610
if test -n "$AR"; then
6611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6612
$as_echo "$AR" >&6; }
6613
else
6614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615
$as_echo "no" >&6; }
6616
fi
6617
 
6618
 
6619
fi
6620
if test -z "$ac_cv_prog_AR"; then
6621
  ac_ct_AR=$AR
6622
  # Extract the first word of "ar", so it can be a program name with args.
6623
set dummy ar; ac_word=$2
6624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625
$as_echo_n "checking for $ac_word... " >&6; }
6626
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6627
  $as_echo_n "(cached) " >&6
6628
else
6629
  if test -n "$ac_ct_AR"; then
6630
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6631
else
6632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633
for as_dir in $PATH
6634
do
6635
  IFS=$as_save_IFS
6636
  test -z "$as_dir" && as_dir=.
6637
    for ac_exec_ext in '' $ac_executable_extensions; do
6638
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639
    ac_cv_prog_ac_ct_AR="ar"
6640
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641
    break 2
6642
  fi
6643
done
6644
  done
6645
IFS=$as_save_IFS
6646
 
6647
fi
6648
fi
6649
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6650
if test -n "$ac_ct_AR"; then
6651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6652
$as_echo "$ac_ct_AR" >&6; }
6653
else
6654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655
$as_echo "no" >&6; }
6656
fi
6657
 
6658
  if test "x$ac_ct_AR" = x; then
6659
    AR="false"
6660
  else
6661
    case $cross_compiling:$ac_tool_warned in
6662
yes:)
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665
ac_tool_warned=yes ;;
6666
esac
6667
    AR=$ac_ct_AR
6668
  fi
6669
else
6670
  AR="$ac_cv_prog_AR"
6671
fi
6672
 
6673
test -z "$AR" && AR=ar
6674
test -z "$AR_FLAGS" && AR_FLAGS=cru
6675
 
6676
 
6677
 
6678
 
6679
 
6680
 
6681
 
6682
 
6683
 
6684
 
6685
 
6686
if test -n "$ac_tool_prefix"; then
6687
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6688
set dummy ${ac_tool_prefix}strip; ac_word=$2
6689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690
$as_echo_n "checking for $ac_word... " >&6; }
6691
if test "${ac_cv_prog_STRIP+set}" = set; then :
6692
  $as_echo_n "(cached) " >&6
6693
else
6694
  if test -n "$STRIP"; then
6695
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6696
else
6697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698
for as_dir in $PATH
6699
do
6700
  IFS=$as_save_IFS
6701
  test -z "$as_dir" && as_dir=.
6702
    for ac_exec_ext in '' $ac_executable_extensions; do
6703
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6705
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706
    break 2
6707
  fi
6708
done
6709
  done
6710
IFS=$as_save_IFS
6711
 
6712
fi
6713
fi
6714
STRIP=$ac_cv_prog_STRIP
6715
if test -n "$STRIP"; then
6716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6717
$as_echo "$STRIP" >&6; }
6718
else
6719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720
$as_echo "no" >&6; }
6721
fi
6722
 
6723
 
6724
fi
6725
if test -z "$ac_cv_prog_STRIP"; then
6726
  ac_ct_STRIP=$STRIP
6727
  # Extract the first word of "strip", so it can be a program name with args.
6728
set dummy strip; ac_word=$2
6729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730
$as_echo_n "checking for $ac_word... " >&6; }
6731
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6732
  $as_echo_n "(cached) " >&6
6733
else
6734
  if test -n "$ac_ct_STRIP"; then
6735
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736
else
6737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738
for as_dir in $PATH
6739
do
6740
  IFS=$as_save_IFS
6741
  test -z "$as_dir" && as_dir=.
6742
    for ac_exec_ext in '' $ac_executable_extensions; do
6743
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744
    ac_cv_prog_ac_ct_STRIP="strip"
6745
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746
    break 2
6747
  fi
6748
done
6749
  done
6750
IFS=$as_save_IFS
6751
 
6752
fi
6753
fi
6754
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755
if test -n "$ac_ct_STRIP"; then
6756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6757
$as_echo "$ac_ct_STRIP" >&6; }
6758
else
6759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760
$as_echo "no" >&6; }
6761
fi
6762
 
6763
  if test "x$ac_ct_STRIP" = x; then
6764
    STRIP=":"
6765
  else
6766
    case $cross_compiling:$ac_tool_warned in
6767
yes:)
6768
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770
ac_tool_warned=yes ;;
6771
esac
6772
    STRIP=$ac_ct_STRIP
6773
  fi
6774
else
6775
  STRIP="$ac_cv_prog_STRIP"
6776
fi
6777
 
6778
test -z "$STRIP" && STRIP=:
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
if test -n "$ac_tool_prefix"; then
6786
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789
$as_echo_n "checking for $ac_word... " >&6; }
6790
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6791
  $as_echo_n "(cached) " >&6
6792
else
6793
  if test -n "$RANLIB"; then
6794
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795
else
6796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797
for as_dir in $PATH
6798
do
6799
  IFS=$as_save_IFS
6800
  test -z "$as_dir" && as_dir=.
6801
    for ac_exec_ext in '' $ac_executable_extensions; do
6802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805
    break 2
6806
  fi
6807
done
6808
  done
6809
IFS=$as_save_IFS
6810
 
6811
fi
6812
fi
6813
RANLIB=$ac_cv_prog_RANLIB
6814
if test -n "$RANLIB"; then
6815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6816
$as_echo "$RANLIB" >&6; }
6817
else
6818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819
$as_echo "no" >&6; }
6820
fi
6821
 
6822
 
6823
fi
6824
if test -z "$ac_cv_prog_RANLIB"; then
6825
  ac_ct_RANLIB=$RANLIB
6826
  # Extract the first word of "ranlib", so it can be a program name with args.
6827
set dummy ranlib; ac_word=$2
6828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829
$as_echo_n "checking for $ac_word... " >&6; }
6830
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6831
  $as_echo_n "(cached) " >&6
6832
else
6833
  if test -n "$ac_ct_RANLIB"; then
6834
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835
else
6836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837
for as_dir in $PATH
6838
do
6839
  IFS=$as_save_IFS
6840
  test -z "$as_dir" && as_dir=.
6841
    for ac_exec_ext in '' $ac_executable_extensions; do
6842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6844
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845
    break 2
6846
  fi
6847
done
6848
  done
6849
IFS=$as_save_IFS
6850
 
6851
fi
6852
fi
6853
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854
if test -n "$ac_ct_RANLIB"; then
6855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6856
$as_echo "$ac_ct_RANLIB" >&6; }
6857
else
6858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859
$as_echo "no" >&6; }
6860
fi
6861
 
6862
  if test "x$ac_ct_RANLIB" = x; then
6863
    RANLIB=":"
6864
  else
6865
    case $cross_compiling:$ac_tool_warned in
6866
yes:)
6867
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869
ac_tool_warned=yes ;;
6870
esac
6871
    RANLIB=$ac_ct_RANLIB
6872
  fi
6873
else
6874
  RANLIB="$ac_cv_prog_RANLIB"
6875
fi
6876
 
6877
test -z "$RANLIB" && RANLIB=:
6878
 
6879
 
6880
 
6881
 
6882
 
6883
 
6884
# Determine commands to create old-style static archives.
6885
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886
old_postinstall_cmds='chmod 644 $oldlib'
6887
old_postuninstall_cmds=
6888
 
6889
if test -n "$RANLIB"; then
6890
  case $host_os in
6891
  openbsd*)
6892
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893
    ;;
6894
  *)
6895
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896
    ;;
6897
  esac
6898
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6899
fi
6900
 
6901
case $host_os in
6902
  darwin*)
6903
    lock_old_archive_extraction=yes ;;
6904
  *)
6905
    lock_old_archive_extraction=no ;;
6906
esac
6907
 
6908
 
6909
 
6910
 
6911
 
6912
 
6913
 
6914
 
6915
 
6916
 
6917
 
6918
 
6919
 
6920
 
6921
 
6922
 
6923
 
6924
 
6925
 
6926
 
6927
 
6928
 
6929
 
6930
 
6931
 
6932
 
6933
 
6934
 
6935
 
6936
 
6937
 
6938
 
6939
 
6940
 
6941
 
6942
 
6943
 
6944
 
6945
 
6946
# If no C compiler was specified, use CC.
6947
LTCC=${LTCC-"$CC"}
6948
 
6949
# If no C compiler flags were specified, use CFLAGS.
6950
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6951
 
6952
# Allow CC to be a program name with arguments.
6953
compiler=$CC
6954
 
6955
 
6956
# Check for command to grab the raw symbol name followed by C symbol from nm.
6957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6958
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6959
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6960
  $as_echo_n "(cached) " >&6
6961
else
6962
 
6963
# These are sane defaults that work on at least a few old systems.
6964
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6965
 
6966
# Character class describing NM global symbol codes.
6967
symcode='[BCDEGRST]'
6968
 
6969
# Regexp to match symbols that can be accessed directly from C.
6970
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6971
 
6972
# Define system-specific variables.
6973
case $host_os in
6974
aix*)
6975
  symcode='[BCDT]'
6976
  ;;
6977
cygwin* | mingw* | pw32* | cegcc*)
6978
  symcode='[ABCDGISTW]'
6979
  ;;
6980
hpux*)
6981
  if test "$host_cpu" = ia64; then
6982
    symcode='[ABCDEGRST]'
6983
  fi
6984
  ;;
6985
irix* | nonstopux*)
6986
  symcode='[BCDEGRST]'
6987
  ;;
6988
osf*)
6989
  symcode='[BCDEGQRST]'
6990
  ;;
6991
solaris*)
6992
  symcode='[BDRT]'
6993
  ;;
6994
sco3.2v5*)
6995
  symcode='[DT]'
6996
  ;;
6997
sysv4.2uw2*)
6998
  symcode='[DT]'
6999
  ;;
7000
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7001
  symcode='[ABDT]'
7002
  ;;
7003
sysv4)
7004
  symcode='[DFNSTU]'
7005
  ;;
7006
esac
7007
 
7008
# If we're using GNU nm, then use its standard symbol codes.
7009
case `$NM -V 2>&1` in
7010
*GNU* | *'with BFD'*)
7011
  symcode='[ABCDGIRSTW]' ;;
7012
esac
7013
 
7014
# Transform an extracted symbol line into a proper C declaration.
7015
# Some systems (esp. on ia64) link data and code symbols differently,
7016
# so use this general approach.
7017
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7018
 
7019
# Transform an extracted symbol line into symbol name and symbol address
7020
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7021
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'"
7022
 
7023
# Handle CRLF in mingw tool chain
7024
opt_cr=
7025
case $build_os in
7026
mingw*)
7027
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7028
  ;;
7029
esac
7030
 
7031
# Try without a prefix underscore, then with it.
7032
for ac_symprfx in "" "_"; do
7033
 
7034
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7035
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7036
 
7037
  # Write the raw and C identifiers.
7038
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7039
    # Fake it for dumpbin and say T for any non-static function
7040
    # and D for any global variable.
7041
    # Also find C++ and __fastcall symbols from MSVC++,
7042
    # which start with @ or ?.
7043
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7044
"     {last_section=section; section=\$ 3};"\
7045
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7046
"     \$ 0!~/External *\|/{next};"\
7047
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7048
"     {if(hide[section]) next};"\
7049
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7050
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7051
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7052
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7053
"     ' prfx=^$ac_symprfx"
7054
  else
7055
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7056
  fi
7057
 
7058
  # Check to see that the pipe works correctly.
7059
  pipe_works=no
7060
 
7061
  rm -f conftest*
7062
  cat > conftest.$ac_ext <<_LT_EOF
7063
#ifdef __cplusplus
7064
extern "C" {
7065
#endif
7066
char nm_test_var;
7067
void nm_test_func(void);
7068
void nm_test_func(void){}
7069
#ifdef __cplusplus
7070
}
7071
#endif
7072
int main(){nm_test_var='a';nm_test_func();return(0);}
7073
_LT_EOF
7074
 
7075
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7076
  (eval $ac_compile) 2>&5
7077
  ac_status=$?
7078
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079
  test $ac_status = 0; }; then
7080
    # Now try to grab the symbols.
7081
    nlist=conftest.nm
7082
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7083
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7084
  ac_status=$?
7085
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086
  test $ac_status = 0; } && test -s "$nlist"; then
7087
      # Try sorting and uniquifying the output.
7088
      if sort "$nlist" | uniq > "$nlist"T; then
7089
        mv -f "$nlist"T "$nlist"
7090
      else
7091
        rm -f "$nlist"T
7092
      fi
7093
 
7094
      # Make sure that we snagged all the symbols we need.
7095
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7096
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7097
          cat <<_LT_EOF > conftest.$ac_ext
7098
#ifdef __cplusplus
7099
extern "C" {
7100
#endif
7101
 
7102
_LT_EOF
7103
          # Now generate the symbol file.
7104
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7105
 
7106
          cat <<_LT_EOF >> conftest.$ac_ext
7107
 
7108
/* The mapping between symbol names and symbols.  */
7109
const struct {
7110
  const char *name;
7111
  void       *address;
7112
}
7113
lt__PROGRAM__LTX_preloaded_symbols[] =
7114
{
7115
  { "@PROGRAM@", (void *) 0 },
7116
_LT_EOF
7117
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7118
          cat <<\_LT_EOF >> conftest.$ac_ext
7119
  {0, (void *) 0}
7120
};
7121
 
7122
/* This works around a problem in FreeBSD linker */
7123
#ifdef FREEBSD_WORKAROUND
7124
static const void *lt_preloaded_setup() {
7125
  return lt__PROGRAM__LTX_preloaded_symbols;
7126
}
7127
#endif
7128
 
7129
#ifdef __cplusplus
7130
}
7131
#endif
7132
_LT_EOF
7133
          # Now try linking the two files.
7134
          mv conftest.$ac_objext conftstm.$ac_objext
7135
          lt_save_LIBS="$LIBS"
7136
          lt_save_CFLAGS="$CFLAGS"
7137
          LIBS="conftstm.$ac_objext"
7138
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7139
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7140
  (eval $ac_link) 2>&5
7141
  ac_status=$?
7142
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7144
            pipe_works=yes
7145
          fi
7146
          LIBS="$lt_save_LIBS"
7147
          CFLAGS="$lt_save_CFLAGS"
7148
        else
7149
          echo "cannot find nm_test_func in $nlist" >&5
7150
        fi
7151
      else
7152
        echo "cannot find nm_test_var in $nlist" >&5
7153
      fi
7154
    else
7155
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7156
    fi
7157
  else
7158
    echo "$progname: failed program was:" >&5
7159
    cat conftest.$ac_ext >&5
7160
  fi
7161
  rm -rf conftest* conftst*
7162
 
7163
  # Do not use the global_symbol_pipe unless it works.
7164
  if test "$pipe_works" = yes; then
7165
    break
7166
  else
7167
    lt_cv_sys_global_symbol_pipe=
7168
  fi
7169
done
7170
 
7171
fi
7172
 
7173
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7174
  lt_cv_sys_global_symbol_to_cdecl=
7175
fi
7176
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7178
$as_echo "failed" >&6; }
7179
else
7180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7181
$as_echo "ok" >&6; }
7182
fi
7183
 
7184
 
7185
 
7186
 
7187
 
7188
 
7189
 
7190
 
7191
 
7192
 
7193
 
7194
 
7195
 
7196
 
7197
 
7198
 
7199
 
7200
 
7201
 
7202
 
7203
 
7204
 
7205
 
7206
# Check whether --enable-libtool-lock was given.
7207
if test "${enable_libtool_lock+set}" = set; then :
7208
  enableval=$enable_libtool_lock;
7209
fi
7210
 
7211
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7212
 
7213
# Some flags need to be propagated to the compiler or linker for good
7214
# libtool support.
7215
case $host in
7216
ia64-*-hpux*)
7217
  # Find out which ABI we are using.
7218
  echo 'int i;' > conftest.$ac_ext
7219
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220
  (eval $ac_compile) 2>&5
7221
  ac_status=$?
7222
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223
  test $ac_status = 0; }; then
7224
    case `/usr/bin/file conftest.$ac_objext` in
7225
      *ELF-32*)
7226
        HPUX_IA64_MODE="32"
7227
        ;;
7228
      *ELF-64*)
7229
        HPUX_IA64_MODE="64"
7230
        ;;
7231
    esac
7232
  fi
7233
  rm -rf conftest*
7234
  ;;
7235
*-*-irix6*)
7236
  # Find out which ABI we are using.
7237
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7238
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239
  (eval $ac_compile) 2>&5
7240
  ac_status=$?
7241
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242
  test $ac_status = 0; }; then
7243
    if test "$lt_cv_prog_gnu_ld" = yes; then
7244
      case `/usr/bin/file conftest.$ac_objext` in
7245
        *32-bit*)
7246
          LD="${LD-ld} -melf32bsmip"
7247
          ;;
7248
        *N32*)
7249
          LD="${LD-ld} -melf32bmipn32"
7250
          ;;
7251
        *64-bit*)
7252
          LD="${LD-ld} -melf64bmip"
7253
        ;;
7254
      esac
7255
    else
7256
      case `/usr/bin/file conftest.$ac_objext` in
7257
        *32-bit*)
7258
          LD="${LD-ld} -32"
7259
          ;;
7260
        *N32*)
7261
          LD="${LD-ld} -n32"
7262
          ;;
7263
        *64-bit*)
7264
          LD="${LD-ld} -64"
7265
          ;;
7266
      esac
7267
    fi
7268
  fi
7269
  rm -rf conftest*
7270
  ;;
7271
 
7272
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7273
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7274
  # Find out which ABI we are using.
7275
  echo 'int i;' > conftest.$ac_ext
7276
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277
  (eval $ac_compile) 2>&5
7278
  ac_status=$?
7279
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280
  test $ac_status = 0; }; then
7281
    case `/usr/bin/file conftest.o` in
7282
      *32-bit*)
7283
        case $host in
7284
          x86_64-*kfreebsd*-gnu)
7285
            LD="${LD-ld} -m elf_i386_fbsd"
7286
            ;;
7287
          x86_64-*linux*)
7288
            LD="${LD-ld} -m elf_i386"
7289
            ;;
7290
          ppc64-*linux*|powerpc64-*linux*)
7291
            LD="${LD-ld} -m elf32ppclinux"
7292
            ;;
7293
          s390x-*linux*)
7294
            LD="${LD-ld} -m elf_s390"
7295
            ;;
7296
          sparc64-*linux*)
7297
            LD="${LD-ld} -m elf32_sparc"
7298
            ;;
7299
        esac
7300
        ;;
7301
      *64-bit*)
7302
        case $host in
7303
          x86_64-*kfreebsd*-gnu)
7304
            LD="${LD-ld} -m elf_x86_64_fbsd"
7305
            ;;
7306
          x86_64-*linux*)
7307
            LD="${LD-ld} -m elf_x86_64"
7308
            ;;
7309
          ppc*-*linux*|powerpc*-*linux*)
7310
            LD="${LD-ld} -m elf64ppc"
7311
            ;;
7312
          s390*-*linux*|s390*-*tpf*)
7313
            LD="${LD-ld} -m elf64_s390"
7314
            ;;
7315
          sparc*-*linux*)
7316
            LD="${LD-ld} -m elf64_sparc"
7317
            ;;
7318
        esac
7319
        ;;
7320
    esac
7321
  fi
7322
  rm -rf conftest*
7323
  ;;
7324
 
7325
*-*-sco3.2v5*)
7326
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7327
  SAVE_CFLAGS="$CFLAGS"
7328
  CFLAGS="$CFLAGS -belf"
7329
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7330
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7331
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7332
  $as_echo_n "(cached) " >&6
7333
else
7334
  ac_ext=c
7335
ac_cpp='$CPP $CPPFLAGS'
7336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
 
7340
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341
/* end confdefs.h.  */
7342
 
7343
int
7344
main ()
7345
{
7346
 
7347
  ;
7348
  return 0;
7349
}
7350
_ACEOF
7351
if ac_fn_c_try_link "$LINENO"; then :
7352
  lt_cv_cc_needs_belf=yes
7353
else
7354
  lt_cv_cc_needs_belf=no
7355
fi
7356
rm -f core conftest.err conftest.$ac_objext \
7357
    conftest$ac_exeext conftest.$ac_ext
7358
     ac_ext=c
7359
ac_cpp='$CPP $CPPFLAGS'
7360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
 
7364
fi
7365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7366
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7367
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7368
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369
    CFLAGS="$SAVE_CFLAGS"
7370
  fi
7371
  ;;
7372
sparc*-*solaris*)
7373
  # Find out which ABI we are using.
7374
  echo 'int i;' > conftest.$ac_ext
7375
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376
  (eval $ac_compile) 2>&5
7377
  ac_status=$?
7378
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379
  test $ac_status = 0; }; then
7380
    case `/usr/bin/file conftest.o` in
7381
    *64-bit*)
7382
      case $lt_cv_prog_gnu_ld in
7383
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7384
      *)
7385
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7386
          LD="${LD-ld} -64"
7387
        fi
7388
        ;;
7389
      esac
7390
      ;;
7391
    esac
7392
  fi
7393
  rm -rf conftest*
7394
  ;;
7395
esac
7396
 
7397
need_locks="$enable_libtool_lock"
7398
 
7399
 
7400
  case $host_os in
7401
    rhapsody* | darwin*)
7402
    if test -n "$ac_tool_prefix"; then
7403
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7404
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406
$as_echo_n "checking for $ac_word... " >&6; }
7407
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7408
  $as_echo_n "(cached) " >&6
7409
else
7410
  if test -n "$DSYMUTIL"; then
7411
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7412
else
7413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414
for as_dir in $PATH
7415
do
7416
  IFS=$as_save_IFS
7417
  test -z "$as_dir" && as_dir=.
7418
    for ac_exec_ext in '' $ac_executable_extensions; do
7419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7421
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422
    break 2
7423
  fi
7424
done
7425
  done
7426
IFS=$as_save_IFS
7427
 
7428
fi
7429
fi
7430
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7431
if test -n "$DSYMUTIL"; then
7432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7433
$as_echo "$DSYMUTIL" >&6; }
7434
else
7435
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436
$as_echo "no" >&6; }
7437
fi
7438
 
7439
 
7440
fi
7441
if test -z "$ac_cv_prog_DSYMUTIL"; then
7442
  ac_ct_DSYMUTIL=$DSYMUTIL
7443
  # Extract the first word of "dsymutil", so it can be a program name with args.
7444
set dummy dsymutil; ac_word=$2
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446
$as_echo_n "checking for $ac_word... " >&6; }
7447
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7448
  $as_echo_n "(cached) " >&6
7449
else
7450
  if test -n "$ac_ct_DSYMUTIL"; then
7451
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7452
else
7453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454
for as_dir in $PATH
7455
do
7456
  IFS=$as_save_IFS
7457
  test -z "$as_dir" && as_dir=.
7458
    for ac_exec_ext in '' $ac_executable_extensions; do
7459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7461
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462
    break 2
7463
  fi
7464
done
7465
  done
7466
IFS=$as_save_IFS
7467
 
7468
fi
7469
fi
7470
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7471
if test -n "$ac_ct_DSYMUTIL"; then
7472
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7473
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7474
else
7475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476
$as_echo "no" >&6; }
7477
fi
7478
 
7479
  if test "x$ac_ct_DSYMUTIL" = x; then
7480
    DSYMUTIL=":"
7481
  else
7482
    case $cross_compiling:$ac_tool_warned in
7483
yes:)
7484
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486
ac_tool_warned=yes ;;
7487
esac
7488
    DSYMUTIL=$ac_ct_DSYMUTIL
7489
  fi
7490
else
7491
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7492
fi
7493
 
7494
    if test -n "$ac_tool_prefix"; then
7495
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7496
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498
$as_echo_n "checking for $ac_word... " >&6; }
7499
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7500
  $as_echo_n "(cached) " >&6
7501
else
7502
  if test -n "$NMEDIT"; then
7503
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7504
else
7505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506
for as_dir in $PATH
7507
do
7508
  IFS=$as_save_IFS
7509
  test -z "$as_dir" && as_dir=.
7510
    for ac_exec_ext in '' $ac_executable_extensions; do
7511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7513
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514
    break 2
7515
  fi
7516
done
7517
  done
7518
IFS=$as_save_IFS
7519
 
7520
fi
7521
fi
7522
NMEDIT=$ac_cv_prog_NMEDIT
7523
if test -n "$NMEDIT"; then
7524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7525
$as_echo "$NMEDIT" >&6; }
7526
else
7527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528
$as_echo "no" >&6; }
7529
fi
7530
 
7531
 
7532
fi
7533
if test -z "$ac_cv_prog_NMEDIT"; then
7534
  ac_ct_NMEDIT=$NMEDIT
7535
  # Extract the first word of "nmedit", so it can be a program name with args.
7536
set dummy nmedit; ac_word=$2
7537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538
$as_echo_n "checking for $ac_word... " >&6; }
7539
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7540
  $as_echo_n "(cached) " >&6
7541
else
7542
  if test -n "$ac_ct_NMEDIT"; then
7543
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7544
else
7545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546
for as_dir in $PATH
7547
do
7548
  IFS=$as_save_IFS
7549
  test -z "$as_dir" && as_dir=.
7550
    for ac_exec_ext in '' $ac_executable_extensions; do
7551
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7553
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554
    break 2
7555
  fi
7556
done
7557
  done
7558
IFS=$as_save_IFS
7559
 
7560
fi
7561
fi
7562
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7563
if test -n "$ac_ct_NMEDIT"; then
7564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7565
$as_echo "$ac_ct_NMEDIT" >&6; }
7566
else
7567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568
$as_echo "no" >&6; }
7569
fi
7570
 
7571
  if test "x$ac_ct_NMEDIT" = x; then
7572
    NMEDIT=":"
7573
  else
7574
    case $cross_compiling:$ac_tool_warned in
7575
yes:)
7576
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578
ac_tool_warned=yes ;;
7579
esac
7580
    NMEDIT=$ac_ct_NMEDIT
7581
  fi
7582
else
7583
  NMEDIT="$ac_cv_prog_NMEDIT"
7584
fi
7585
 
7586
    if test -n "$ac_tool_prefix"; then
7587
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7588
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590
$as_echo_n "checking for $ac_word... " >&6; }
7591
if test "${ac_cv_prog_LIPO+set}" = set; then :
7592
  $as_echo_n "(cached) " >&6
7593
else
7594
  if test -n "$LIPO"; then
7595
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7596
else
7597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598
for as_dir in $PATH
7599
do
7600
  IFS=$as_save_IFS
7601
  test -z "$as_dir" && as_dir=.
7602
    for ac_exec_ext in '' $ac_executable_extensions; do
7603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606
    break 2
7607
  fi
7608
done
7609
  done
7610
IFS=$as_save_IFS
7611
 
7612
fi
7613
fi
7614
LIPO=$ac_cv_prog_LIPO
7615
if test -n "$LIPO"; then
7616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7617
$as_echo "$LIPO" >&6; }
7618
else
7619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620
$as_echo "no" >&6; }
7621
fi
7622
 
7623
 
7624
fi
7625
if test -z "$ac_cv_prog_LIPO"; then
7626
  ac_ct_LIPO=$LIPO
7627
  # Extract the first word of "lipo", so it can be a program name with args.
7628
set dummy lipo; ac_word=$2
7629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630
$as_echo_n "checking for $ac_word... " >&6; }
7631
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7632
  $as_echo_n "(cached) " >&6
7633
else
7634
  if test -n "$ac_ct_LIPO"; then
7635
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7636
else
7637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638
for as_dir in $PATH
7639
do
7640
  IFS=$as_save_IFS
7641
  test -z "$as_dir" && as_dir=.
7642
    for ac_exec_ext in '' $ac_executable_extensions; do
7643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644
    ac_cv_prog_ac_ct_LIPO="lipo"
7645
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646
    break 2
7647
  fi
7648
done
7649
  done
7650
IFS=$as_save_IFS
7651
 
7652
fi
7653
fi
7654
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7655
if test -n "$ac_ct_LIPO"; then
7656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7657
$as_echo "$ac_ct_LIPO" >&6; }
7658
else
7659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660
$as_echo "no" >&6; }
7661
fi
7662
 
7663
  if test "x$ac_ct_LIPO" = x; then
7664
    LIPO=":"
7665
  else
7666
    case $cross_compiling:$ac_tool_warned in
7667
yes:)
7668
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670
ac_tool_warned=yes ;;
7671
esac
7672
    LIPO=$ac_ct_LIPO
7673
  fi
7674
else
7675
  LIPO="$ac_cv_prog_LIPO"
7676
fi
7677
 
7678
    if test -n "$ac_tool_prefix"; then
7679
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7680
set dummy ${ac_tool_prefix}otool; ac_word=$2
7681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682
$as_echo_n "checking for $ac_word... " >&6; }
7683
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7684
  $as_echo_n "(cached) " >&6
7685
else
7686
  if test -n "$OTOOL"; then
7687
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7688
else
7689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690
for as_dir in $PATH
7691
do
7692
  IFS=$as_save_IFS
7693
  test -z "$as_dir" && as_dir=.
7694
    for ac_exec_ext in '' $ac_executable_extensions; do
7695
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7697
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698
    break 2
7699
  fi
7700
done
7701
  done
7702
IFS=$as_save_IFS
7703
 
7704
fi
7705
fi
7706
OTOOL=$ac_cv_prog_OTOOL
7707
if test -n "$OTOOL"; then
7708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7709
$as_echo "$OTOOL" >&6; }
7710
else
7711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712
$as_echo "no" >&6; }
7713
fi
7714
 
7715
 
7716
fi
7717
if test -z "$ac_cv_prog_OTOOL"; then
7718
  ac_ct_OTOOL=$OTOOL
7719
  # Extract the first word of "otool", so it can be a program name with args.
7720
set dummy otool; ac_word=$2
7721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722
$as_echo_n "checking for $ac_word... " >&6; }
7723
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7724
  $as_echo_n "(cached) " >&6
7725
else
7726
  if test -n "$ac_ct_OTOOL"; then
7727
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7728
else
7729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730
for as_dir in $PATH
7731
do
7732
  IFS=$as_save_IFS
7733
  test -z "$as_dir" && as_dir=.
7734
    for ac_exec_ext in '' $ac_executable_extensions; do
7735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736
    ac_cv_prog_ac_ct_OTOOL="otool"
7737
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738
    break 2
7739
  fi
7740
done
7741
  done
7742
IFS=$as_save_IFS
7743
 
7744
fi
7745
fi
7746
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7747
if test -n "$ac_ct_OTOOL"; then
7748
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7749
$as_echo "$ac_ct_OTOOL" >&6; }
7750
else
7751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752
$as_echo "no" >&6; }
7753
fi
7754
 
7755
  if test "x$ac_ct_OTOOL" = x; then
7756
    OTOOL=":"
7757
  else
7758
    case $cross_compiling:$ac_tool_warned in
7759
yes:)
7760
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762
ac_tool_warned=yes ;;
7763
esac
7764
    OTOOL=$ac_ct_OTOOL
7765
  fi
7766
else
7767
  OTOOL="$ac_cv_prog_OTOOL"
7768
fi
7769
 
7770
    if test -n "$ac_tool_prefix"; then
7771
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7772
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774
$as_echo_n "checking for $ac_word... " >&6; }
7775
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7776
  $as_echo_n "(cached) " >&6
7777
else
7778
  if test -n "$OTOOL64"; then
7779
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7780
else
7781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782
for as_dir in $PATH
7783
do
7784
  IFS=$as_save_IFS
7785
  test -z "$as_dir" && as_dir=.
7786
    for ac_exec_ext in '' $ac_executable_extensions; do
7787
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790
    break 2
7791
  fi
7792
done
7793
  done
7794
IFS=$as_save_IFS
7795
 
7796
fi
7797
fi
7798
OTOOL64=$ac_cv_prog_OTOOL64
7799
if test -n "$OTOOL64"; then
7800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7801
$as_echo "$OTOOL64" >&6; }
7802
else
7803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804
$as_echo "no" >&6; }
7805
fi
7806
 
7807
 
7808
fi
7809
if test -z "$ac_cv_prog_OTOOL64"; then
7810
  ac_ct_OTOOL64=$OTOOL64
7811
  # Extract the first word of "otool64", so it can be a program name with args.
7812
set dummy otool64; ac_word=$2
7813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814
$as_echo_n "checking for $ac_word... " >&6; }
7815
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7816
  $as_echo_n "(cached) " >&6
7817
else
7818
  if test -n "$ac_ct_OTOOL64"; then
7819
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7820
else
7821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822
for as_dir in $PATH
7823
do
7824
  IFS=$as_save_IFS
7825
  test -z "$as_dir" && as_dir=.
7826
    for ac_exec_ext in '' $ac_executable_extensions; do
7827
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7829
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830
    break 2
7831
  fi
7832
done
7833
  done
7834
IFS=$as_save_IFS
7835
 
7836
fi
7837
fi
7838
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7839
if test -n "$ac_ct_OTOOL64"; then
7840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7841
$as_echo "$ac_ct_OTOOL64" >&6; }
7842
else
7843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844
$as_echo "no" >&6; }
7845
fi
7846
 
7847
  if test "x$ac_ct_OTOOL64" = x; then
7848
    OTOOL64=":"
7849
  else
7850
    case $cross_compiling:$ac_tool_warned in
7851
yes:)
7852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854
ac_tool_warned=yes ;;
7855
esac
7856
    OTOOL64=$ac_ct_OTOOL64
7857
  fi
7858
else
7859
  OTOOL64="$ac_cv_prog_OTOOL64"
7860
fi
7861
 
7862
 
7863
 
7864
 
7865
 
7866
 
7867
 
7868
 
7869
 
7870
 
7871
 
7872
 
7873
 
7874
 
7875
 
7876
 
7877
 
7878
 
7879
 
7880
 
7881
 
7882
 
7883
 
7884
 
7885
 
7886
 
7887
 
7888
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7889
$as_echo_n "checking for -single_module linker flag... " >&6; }
7890
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7891
  $as_echo_n "(cached) " >&6
7892
else
7893
  lt_cv_apple_cc_single_mod=no
7894
      if test -z "${LT_MULTI_MODULE}"; then
7895
        # By default we will add the -single_module flag. You can override
7896
        # by either setting the environment variable LT_MULTI_MODULE
7897
        # non-empty at configure time, or by adding -multi_module to the
7898
        # link flags.
7899
        rm -rf libconftest.dylib*
7900
        echo "int foo(void){return 1;}" > conftest.c
7901
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902
-dynamiclib -Wl,-single_module conftest.c" >&5
7903
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7904
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7905
        _lt_result=$?
7906
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7907
          lt_cv_apple_cc_single_mod=yes
7908
        else
7909
          cat conftest.err >&5
7910
        fi
7911
        rm -rf libconftest.dylib*
7912
        rm -f conftest.*
7913
      fi
7914
fi
7915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7916
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7917
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7918
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7919
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7920
  $as_echo_n "(cached) " >&6
7921
else
7922
  lt_cv_ld_exported_symbols_list=no
7923
      save_LDFLAGS=$LDFLAGS
7924
      echo "_main" > conftest.sym
7925
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7926
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927
/* end confdefs.h.  */
7928
 
7929
int
7930
main ()
7931
{
7932
 
7933
  ;
7934
  return 0;
7935
}
7936
_ACEOF
7937
if ac_fn_c_try_link "$LINENO"; then :
7938
  lt_cv_ld_exported_symbols_list=yes
7939
else
7940
  lt_cv_ld_exported_symbols_list=no
7941
fi
7942
rm -f core conftest.err conftest.$ac_objext \
7943
    conftest$ac_exeext conftest.$ac_ext
7944
        LDFLAGS="$save_LDFLAGS"
7945
 
7946
fi
7947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7948
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7949
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7950
$as_echo_n "checking for -force_load linker flag... " >&6; }
7951
if test "${lt_cv_ld_force_load+set}" = set; then :
7952
  $as_echo_n "(cached) " >&6
7953
else
7954
  lt_cv_ld_force_load=no
7955
      cat > conftest.c << _LT_EOF
7956
int forced_loaded() { return 2;}
7957
_LT_EOF
7958
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7959
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7960
      echo "$AR cru libconftest.a conftest.o" >&5
7961
      $AR cru libconftest.a conftest.o 2>&5
7962
      cat > conftest.c << _LT_EOF
7963
int main() { return 0;}
7964
_LT_EOF
7965
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7966
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7967
      _lt_result=$?
7968
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7969
        lt_cv_ld_force_load=yes
7970
      else
7971
        cat conftest.err >&5
7972
      fi
7973
        rm -f conftest.err libconftest.a conftest conftest.c
7974
        rm -rf conftest.dSYM
7975
 
7976
fi
7977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7978
$as_echo "$lt_cv_ld_force_load" >&6; }
7979
    case $host_os in
7980
    rhapsody* | darwin1.[012])
7981
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7982
    darwin1.*)
7983
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7984
    darwin*) # darwin 5.x on
7985
      # if running on 10.5 or later, the deployment target defaults
7986
      # to the OS version, if on x86, and 10.4, the deployment
7987
      # target defaults to 10.4. Don't you love it?
7988
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7989
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7990
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7991
        10.[012]*)
7992
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7993
        10.*)
7994
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7995
      esac
7996
    ;;
7997
  esac
7998
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7999
      _lt_dar_single_mod='$single_module'
8000
    fi
8001
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8002
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8003
    else
8004
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8005
    fi
8006
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8007
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8008
    else
8009
      _lt_dsymutil=
8010
    fi
8011
    ;;
8012
  esac
8013
 
8014
ac_ext=c
8015
ac_cpp='$CPP $CPPFLAGS'
8016
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8020
$as_echo_n "checking how to run the C preprocessor... " >&6; }
8021
# On Suns, sometimes $CPP names a directory.
8022
if test -n "$CPP" && test -d "$CPP"; then
8023
  CPP=
8024
fi
8025
if test -z "$CPP"; then
8026
  if test "${ac_cv_prog_CPP+set}" = set; then :
8027
  $as_echo_n "(cached) " >&6
8028
else
8029
      # Double quotes because CPP needs to be expanded
8030
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8031
    do
8032
      ac_preproc_ok=false
8033
for ac_c_preproc_warn_flag in '' yes
8034
do
8035
  # Use a header file that comes with gcc, so configuring glibc
8036
  # with a fresh cross-compiler works.
8037
  # Prefer  to  if __STDC__ is defined, since
8038
  #  exists even on freestanding compilers.
8039
  # On the NeXT, cc -E runs the code through the compiler's parser,
8040
  # not just through cpp. "Syntax error" is here to catch this case.
8041
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042
/* end confdefs.h.  */
8043
#ifdef __STDC__
8044
# include 
8045
#else
8046
# include 
8047
#endif
8048
                     Syntax error
8049
_ACEOF
8050
if ac_fn_c_try_cpp "$LINENO"; then :
8051
 
8052
else
8053
  # Broken: fails on valid input.
8054
continue
8055
fi
8056
rm -f conftest.err conftest.$ac_ext
8057
 
8058
  # OK, works on sane cases.  Now check whether nonexistent headers
8059
  # can be detected and how.
8060
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061
/* end confdefs.h.  */
8062
#include 
8063
_ACEOF
8064
if ac_fn_c_try_cpp "$LINENO"; then :
8065
  # Broken: success on invalid input.
8066
continue
8067
else
8068
  # Passes both tests.
8069
ac_preproc_ok=:
8070
break
8071
fi
8072
rm -f conftest.err conftest.$ac_ext
8073
 
8074
done
8075
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076
rm -f conftest.err conftest.$ac_ext
8077
if $ac_preproc_ok; then :
8078
  break
8079
fi
8080
 
8081
    done
8082
    ac_cv_prog_CPP=$CPP
8083
 
8084
fi
8085
  CPP=$ac_cv_prog_CPP
8086
else
8087
  ac_cv_prog_CPP=$CPP
8088
fi
8089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8090
$as_echo "$CPP" >&6; }
8091
ac_preproc_ok=false
8092
for ac_c_preproc_warn_flag in '' yes
8093
do
8094
  # Use a header file that comes with gcc, so configuring glibc
8095
  # with a fresh cross-compiler works.
8096
  # Prefer  to  if __STDC__ is defined, since
8097
  #  exists even on freestanding compilers.
8098
  # On the NeXT, cc -E runs the code through the compiler's parser,
8099
  # not just through cpp. "Syntax error" is here to catch this case.
8100
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101
/* end confdefs.h.  */
8102
#ifdef __STDC__
8103
# include 
8104
#else
8105
# include 
8106
#endif
8107
                     Syntax error
8108
_ACEOF
8109
if ac_fn_c_try_cpp "$LINENO"; then :
8110
 
8111
else
8112
  # Broken: fails on valid input.
8113
continue
8114
fi
8115
rm -f conftest.err conftest.$ac_ext
8116
 
8117
  # OK, works on sane cases.  Now check whether nonexistent headers
8118
  # can be detected and how.
8119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120
/* end confdefs.h.  */
8121
#include 
8122
_ACEOF
8123
if ac_fn_c_try_cpp "$LINENO"; then :
8124
  # Broken: success on invalid input.
8125
continue
8126
else
8127
  # Passes both tests.
8128
ac_preproc_ok=:
8129
break
8130
fi
8131
rm -f conftest.err conftest.$ac_ext
8132
 
8133
done
8134
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8135
rm -f conftest.err conftest.$ac_ext
8136
if $ac_preproc_ok; then :
8137
 
8138
else
8139
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8140
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8141
as_fn_error "C preprocessor \"$CPP\" fails sanity check
8142
See \`config.log' for more details." "$LINENO" 5; }
8143
fi
8144
 
8145
ac_ext=c
8146
ac_cpp='$CPP $CPPFLAGS'
8147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150
 
8151
 
8152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8153
$as_echo_n "checking for ANSI C header files... " >&6; }
8154
if test "${ac_cv_header_stdc+set}" = set; then :
8155
  $as_echo_n "(cached) " >&6
8156
else
8157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158
/* end confdefs.h.  */
8159
#include 
8160
#include 
8161
#include 
8162
#include 
8163
 
8164
int
8165
main ()
8166
{
8167
 
8168
  ;
8169
  return 0;
8170
}
8171
_ACEOF
8172
if ac_fn_c_try_compile "$LINENO"; then :
8173
  ac_cv_header_stdc=yes
8174
else
8175
  ac_cv_header_stdc=no
8176
fi
8177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178
 
8179
if test $ac_cv_header_stdc = yes; then
8180
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182
/* end confdefs.h.  */
8183
#include 
8184
 
8185
_ACEOF
8186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8187
  $EGREP "memchr" >/dev/null 2>&1; then :
8188
 
8189
else
8190
  ac_cv_header_stdc=no
8191
fi
8192
rm -f conftest*
8193
 
8194
fi
8195
 
8196
if test $ac_cv_header_stdc = yes; then
8197
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8198
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199
/* end confdefs.h.  */
8200
#include 
8201
 
8202
_ACEOF
8203
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204
  $EGREP "free" >/dev/null 2>&1; then :
8205
 
8206
else
8207
  ac_cv_header_stdc=no
8208
fi
8209
rm -f conftest*
8210
 
8211
fi
8212
 
8213
if test $ac_cv_header_stdc = yes; then
8214
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8215
  if test "$cross_compiling" = yes; then :
8216
  :
8217
else
8218
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219
/* end confdefs.h.  */
8220
#include 
8221
#include 
8222
#if ((' ' & 0x0FF) == 0x020)
8223
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8224
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225
#else
8226
# define ISLOWER(c) \
8227
                   (('a' <= (c) && (c) <= 'i') \
8228
                     || ('j' <= (c) && (c) <= 'r') \
8229
                     || ('s' <= (c) && (c) <= 'z'))
8230
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231
#endif
8232
 
8233
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8234
int
8235
main ()
8236
{
8237
  int i;
8238
  for (i = 0; i < 256; i++)
8239
    if (XOR (islower (i), ISLOWER (i))
8240
        || toupper (i) != TOUPPER (i))
8241
      return 2;
8242
  return 0;
8243
}
8244
_ACEOF
8245
if ac_fn_c_try_run "$LINENO"; then :
8246
 
8247
else
8248
  ac_cv_header_stdc=no
8249
fi
8250
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8251
  conftest.$ac_objext conftest.beam conftest.$ac_ext
8252
fi
8253
 
8254
fi
8255
fi
8256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8257
$as_echo "$ac_cv_header_stdc" >&6; }
8258
if test $ac_cv_header_stdc = yes; then
8259
 
8260
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8261
 
8262
fi
8263
 
8264
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8265
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8266
                  inttypes.h stdint.h unistd.h
8267
do :
8268
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8270
"
8271
eval as_val=\$$as_ac_Header
8272
   if test "x$as_val" = x""yes; then :
8273
  cat >>confdefs.h <<_ACEOF
8274
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275
_ACEOF
8276
 
8277
fi
8278
 
8279
done
8280
 
8281
 
8282
for ac_header in dlfcn.h
8283
do :
8284
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8285
"
8286
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8287
  cat >>confdefs.h <<_ACEOF
8288
#define HAVE_DLFCN_H 1
8289
_ACEOF
8290
 
8291
fi
8292
 
8293
done
8294
 
8295
 
8296
 
8297
 
8298
 
8299
 
8300
# Set options
8301
 
8302
 
8303
 
8304
        enable_dlopen=no
8305
 
8306
 
8307
  enable_win32_dll=no
8308
 
8309
 
8310
            # Check whether --enable-shared was given.
8311
if test "${enable_shared+set}" = set; then :
8312
  enableval=$enable_shared; p=${PACKAGE-default}
8313
    case $enableval in
8314
    yes) enable_shared=yes ;;
8315
    no) enable_shared=no ;;
8316
    *)
8317
      enable_shared=no
8318
      # Look at the argument we got.  We use all the common list separators.
8319
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320
      for pkg in $enableval; do
8321
        IFS="$lt_save_ifs"
8322
        if test "X$pkg" = "X$p"; then
8323
          enable_shared=yes
8324
        fi
8325
      done
8326
      IFS="$lt_save_ifs"
8327
      ;;
8328
    esac
8329
else
8330
  enable_shared=yes
8331
fi
8332
 
8333
 
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
  # Check whether --enable-static was given.
8342
if test "${enable_static+set}" = set; then :
8343
  enableval=$enable_static; p=${PACKAGE-default}
8344
    case $enableval in
8345
    yes) enable_static=yes ;;
8346
    no) enable_static=no ;;
8347
    *)
8348
     enable_static=no
8349
      # Look at the argument we got.  We use all the common list separators.
8350
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351
      for pkg in $enableval; do
8352
        IFS="$lt_save_ifs"
8353
        if test "X$pkg" = "X$p"; then
8354
          enable_static=yes
8355
        fi
8356
      done
8357
      IFS="$lt_save_ifs"
8358
      ;;
8359
    esac
8360
else
8361
  enable_static=yes
8362
fi
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373
# Check whether --with-pic was given.
8374
if test "${with_pic+set}" = set; then :
8375
  withval=$with_pic; pic_mode="$withval"
8376
else
8377
  pic_mode=default
8378
fi
8379
 
8380
 
8381
test -z "$pic_mode" && pic_mode=default
8382
 
8383
 
8384
 
8385
 
8386
 
8387
 
8388
 
8389
  # Check whether --enable-fast-install was given.
8390
if test "${enable_fast_install+set}" = set; then :
8391
  enableval=$enable_fast_install; p=${PACKAGE-default}
8392
    case $enableval in
8393
    yes) enable_fast_install=yes ;;
8394
    no) enable_fast_install=no ;;
8395
    *)
8396
      enable_fast_install=no
8397
      # Look at the argument we got.  We use all the common list separators.
8398
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8399
      for pkg in $enableval; do
8400
        IFS="$lt_save_ifs"
8401
        if test "X$pkg" = "X$p"; then
8402
          enable_fast_install=yes
8403
        fi
8404
      done
8405
      IFS="$lt_save_ifs"
8406
      ;;
8407
    esac
8408
else
8409
  enable_fast_install=yes
8410
fi
8411
 
8412
 
8413
 
8414
 
8415
 
8416
 
8417
 
8418
 
8419
 
8420
 
8421
 
8422
# This can be used to rebuild libtool when needed
8423
LIBTOOL_DEPS="$ltmain"
8424
 
8425
# Always use our own libtool.
8426
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8427
 
8428
 
8429
 
8430
 
8431
 
8432
 
8433
 
8434
 
8435
 
8436
 
8437
 
8438
 
8439
 
8440
 
8441
 
8442
 
8443
 
8444
 
8445
 
8446
 
8447
 
8448
 
8449
 
8450
 
8451
 
8452
 
8453
test -z "$LN_S" && LN_S="ln -s"
8454
 
8455
 
8456
 
8457
 
8458
 
8459
 
8460
 
8461
 
8462
 
8463
 
8464
 
8465
 
8466
 
8467
 
8468
if test -n "${ZSH_VERSION+set}" ; then
8469
   setopt NO_GLOB_SUBST
8470
fi
8471
 
8472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473
$as_echo_n "checking for objdir... " >&6; }
8474
if test "${lt_cv_objdir+set}" = set; then :
8475
  $as_echo_n "(cached) " >&6
8476
else
8477
  rm -f .libs 2>/dev/null
8478
mkdir .libs 2>/dev/null
8479
if test -d .libs; then
8480
  lt_cv_objdir=.libs
8481
else
8482
  # MS-DOS does not allow filenames that begin with a dot.
8483
  lt_cv_objdir=_libs
8484
fi
8485
rmdir .libs 2>/dev/null
8486
fi
8487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488
$as_echo "$lt_cv_objdir" >&6; }
8489
objdir=$lt_cv_objdir
8490
 
8491
 
8492
 
8493
 
8494
 
8495
cat >>confdefs.h <<_ACEOF
8496
#define LT_OBJDIR "$lt_cv_objdir/"
8497
_ACEOF
8498
 
8499
 
8500
 
8501
 
8502
case $host_os in
8503
aix3*)
8504
  # AIX sometimes has problems with the GCC collect2 program.  For some
8505
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8506
  # vanish in a puff of smoke.
8507
  if test "X${COLLECT_NAMES+set}" != Xset; then
8508
    COLLECT_NAMES=
8509
    export COLLECT_NAMES
8510
  fi
8511
  ;;
8512
esac
8513
 
8514
# Global variables:
8515
ofile=libtool
8516
can_build_shared=yes
8517
 
8518
# All known linkers require a `.a' archive for static linking (except MSVC,
8519
# which needs '.lib').
8520
libext=a
8521
 
8522
with_gnu_ld="$lt_cv_prog_gnu_ld"
8523
 
8524
old_CC="$CC"
8525
old_CFLAGS="$CFLAGS"
8526
 
8527
# Set sane defaults for various variables
8528
test -z "$CC" && CC=cc
8529
test -z "$LTCC" && LTCC=$CC
8530
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531
test -z "$LD" && LD=ld
8532
test -z "$ac_objext" && ac_objext=o
8533
 
8534
for cc_temp in $compiler""; do
8535
  case $cc_temp in
8536
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8537
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8538
    \-*) ;;
8539
    *) break;;
8540
  esac
8541
done
8542
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8543
 
8544
 
8545
# Only perform the check for file, if the check method requires it
8546
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8547
case $deplibs_check_method in
8548
file_magic*)
8549
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8550
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8551
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8552
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8553
  $as_echo_n "(cached) " >&6
8554
else
8555
  case $MAGIC_CMD in
8556
[\\/*] |  ?:[\\/]*)
8557
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8558
  ;;
8559
*)
8560
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8561
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8562
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8563
  for ac_dir in $ac_dummy; do
8564
    IFS="$lt_save_ifs"
8565
    test -z "$ac_dir" && ac_dir=.
8566
    if test -f $ac_dir/${ac_tool_prefix}file; then
8567
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8568
      if test -n "$file_magic_test_file"; then
8569
        case $deplibs_check_method in
8570
        "file_magic "*)
8571
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8572
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8573
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8574
            $EGREP "$file_magic_regex" > /dev/null; then
8575
            :
8576
          else
8577
            cat <<_LT_EOF 1>&2
8578
 
8579
*** Warning: the command libtool uses to detect shared libraries,
8580
*** $file_magic_cmd, produces output that libtool cannot recognize.
8581
*** The result is that libtool may fail to recognize shared libraries
8582
*** as such.  This will affect the creation of libtool libraries that
8583
*** depend on shared libraries, but programs linked with such libtool
8584
*** libraries will work regardless of this problem.  Nevertheless, you
8585
*** may want to report the problem to your system manager and/or to
8586
*** bug-libtool@gnu.org
8587
 
8588
_LT_EOF
8589
          fi ;;
8590
        esac
8591
      fi
8592
      break
8593
    fi
8594
  done
8595
  IFS="$lt_save_ifs"
8596
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8597
  ;;
8598
esac
8599
fi
8600
 
8601
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602
if test -n "$MAGIC_CMD"; then
8603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8604
$as_echo "$MAGIC_CMD" >&6; }
8605
else
8606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607
$as_echo "no" >&6; }
8608
fi
8609
 
8610
 
8611
 
8612
 
8613
 
8614
if test -z "$lt_cv_path_MAGIC_CMD"; then
8615
  if test -n "$ac_tool_prefix"; then
8616
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8617
$as_echo_n "checking for file... " >&6; }
8618
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8619
  $as_echo_n "(cached) " >&6
8620
else
8621
  case $MAGIC_CMD in
8622
[\\/*] |  ?:[\\/]*)
8623
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8624
  ;;
8625
*)
8626
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8627
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8628
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8629
  for ac_dir in $ac_dummy; do
8630
    IFS="$lt_save_ifs"
8631
    test -z "$ac_dir" && ac_dir=.
8632
    if test -f $ac_dir/file; then
8633
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8634
      if test -n "$file_magic_test_file"; then
8635
        case $deplibs_check_method in
8636
        "file_magic "*)
8637
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8638
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8639
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8640
            $EGREP "$file_magic_regex" > /dev/null; then
8641
            :
8642
          else
8643
            cat <<_LT_EOF 1>&2
8644
 
8645
*** Warning: the command libtool uses to detect shared libraries,
8646
*** $file_magic_cmd, produces output that libtool cannot recognize.
8647
*** The result is that libtool may fail to recognize shared libraries
8648
*** as such.  This will affect the creation of libtool libraries that
8649
*** depend on shared libraries, but programs linked with such libtool
8650
*** libraries will work regardless of this problem.  Nevertheless, you
8651
*** may want to report the problem to your system manager and/or to
8652
*** bug-libtool@gnu.org
8653
 
8654
_LT_EOF
8655
          fi ;;
8656
        esac
8657
      fi
8658
      break
8659
    fi
8660
  done
8661
  IFS="$lt_save_ifs"
8662
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8663
  ;;
8664
esac
8665
fi
8666
 
8667
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668
if test -n "$MAGIC_CMD"; then
8669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8670
$as_echo "$MAGIC_CMD" >&6; }
8671
else
8672
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673
$as_echo "no" >&6; }
8674
fi
8675
 
8676
 
8677
  else
8678
    MAGIC_CMD=:
8679
  fi
8680
fi
8681
 
8682
  fi
8683
  ;;
8684
esac
8685
 
8686
# Use C for the default configuration in the libtool script
8687
 
8688
lt_save_CC="$CC"
8689
ac_ext=c
8690
ac_cpp='$CPP $CPPFLAGS'
8691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694
 
8695
 
8696
# Source file extension for C test sources.
8697
ac_ext=c
8698
 
8699
# Object file extension for compiled C test sources.
8700
objext=o
8701
objext=$objext
8702
 
8703
# Code to be used in simple compile tests
8704
lt_simple_compile_test_code="int some_variable = 0;"
8705
 
8706
# Code to be used in simple link tests
8707
lt_simple_link_test_code='int main(){return(0);}'
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
# If no C compiler was specified, use CC.
8716
LTCC=${LTCC-"$CC"}
8717
 
8718
# If no C compiler flags were specified, use CFLAGS.
8719
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8720
 
8721
# Allow CC to be a program name with arguments.
8722
compiler=$CC
8723
 
8724
# Save the default compiler, since it gets overwritten when the other
8725
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8726
compiler_DEFAULT=$CC
8727
 
8728
# save warnings/boilerplate of simple test code
8729
ac_outfile=conftest.$ac_objext
8730
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8731
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8732
_lt_compiler_boilerplate=`cat conftest.err`
8733
$RM conftest*
8734
 
8735
ac_outfile=conftest.$ac_objext
8736
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8737
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8738
_lt_linker_boilerplate=`cat conftest.err`
8739
$RM -r conftest*
8740
 
8741
 
8742
## CAVEAT EMPTOR:
8743
## There is no encapsulation within the following macros, do not change
8744
## the running order or otherwise move them around unless you know exactly
8745
## what you are doing...
8746
if test -n "$compiler"; then
8747
 
8748
lt_prog_compiler_no_builtin_flag=
8749
 
8750
if test "$GCC" = yes; then
8751
  case $cc_basename in
8752
  nvcc*)
8753
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8754
  *)
8755
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8756
  esac
8757
 
8758
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8759
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8760
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8761
  $as_echo_n "(cached) " >&6
8762
else
8763
  lt_cv_prog_compiler_rtti_exceptions=no
8764
   ac_outfile=conftest.$ac_objext
8765
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8767
   # Insert the option either (1) after the last *FLAGS variable, or
8768
   # (2) before a word containing "conftest.", or (3) at the end.
8769
   # Note that $ac_compile itself does not contain backslashes and begins
8770
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8771
   # The option is referenced via a variable to avoid confusing sed.
8772
   lt_compile=`echo "$ac_compile" | $SED \
8773
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775
   -e 's:$: $lt_compiler_flag:'`
8776
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777
   (eval "$lt_compile" 2>conftest.err)
8778
   ac_status=$?
8779
   cat conftest.err >&5
8780
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
   if (exit $ac_status) && test -s "$ac_outfile"; then
8782
     # The compiler can only warn and ignore the option if not recognized
8783
     # So say no if there are warnings other than the usual output.
8784
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787
       lt_cv_prog_compiler_rtti_exceptions=yes
8788
     fi
8789
   fi
8790
   $RM conftest*
8791
 
8792
fi
8793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8794
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8795
 
8796
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8797
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8798
else
8799
    :
8800
fi
8801
 
8802
fi
8803
 
8804
 
8805
 
8806
 
8807
 
8808
 
8809
  lt_prog_compiler_wl=
8810
lt_prog_compiler_pic=
8811
lt_prog_compiler_static=
8812
 
8813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8814
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8815
 
8816
  if test "$GCC" = yes; then
8817
    lt_prog_compiler_wl='-Wl,'
8818
    lt_prog_compiler_static='-static'
8819
 
8820
    case $host_os in
8821
      aix*)
8822
      # All AIX code is PIC.
8823
      if test "$host_cpu" = ia64; then
8824
        # AIX 5 now supports IA64 processor
8825
        lt_prog_compiler_static='-Bstatic'
8826
      fi
8827
      ;;
8828
 
8829
    amigaos*)
8830
      case $host_cpu in
8831
      powerpc)
8832
            # see comment about AmigaOS4 .so support
8833
            lt_prog_compiler_pic='-fPIC'
8834
        ;;
8835
      m68k)
8836
            # FIXME: we need at least 68020 code to build shared libraries, but
8837
            # adding the `-m68020' flag to GCC prevents building anything better,
8838
            # like `-m68040'.
8839
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8840
        ;;
8841
      esac
8842
      ;;
8843
 
8844
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8845
      # PIC is the default for these OSes.
8846
      ;;
8847
 
8848
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8849
      # This hack is so that the source file can tell whether it is being
8850
      # built for inclusion in a dll (and should export symbols for example).
8851
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8852
      # (--disable-auto-import) libraries
8853
      lt_prog_compiler_pic='-DDLL_EXPORT'
8854
      ;;
8855
 
8856
    darwin* | rhapsody*)
8857
      # PIC is the default on this platform
8858
      # Common symbols not allowed in MH_DYLIB files
8859
      lt_prog_compiler_pic='-fno-common'
8860
      ;;
8861
 
8862
    haiku*)
8863
      # PIC is the default for Haiku.
8864
      # The "-static" flag exists, but is broken.
8865
      lt_prog_compiler_static=
8866
      ;;
8867
 
8868
    hpux*)
8869
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8870
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8871
      # sets the default TLS model and affects inlining.
8872
      case $host_cpu in
8873
      hppa*64*)
8874
        # +Z the default
8875
        ;;
8876
      *)
8877
        lt_prog_compiler_pic='-fPIC'
8878
        ;;
8879
      esac
8880
      ;;
8881
 
8882
    interix[3-9]*)
8883
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8884
      # Instead, we relocate shared libraries at runtime.
8885
      ;;
8886
 
8887
    msdosdjgpp*)
8888
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8889
      # on systems that don't support them.
8890
      lt_prog_compiler_can_build_shared=no
8891
      enable_shared=no
8892
      ;;
8893
 
8894
    *nto* | *qnx*)
8895
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8896
      # it will coredump.
8897
      lt_prog_compiler_pic='-fPIC -shared'
8898
      ;;
8899
 
8900
    sysv4*MP*)
8901
      if test -d /usr/nec; then
8902
        lt_prog_compiler_pic=-Kconform_pic
8903
      fi
8904
      ;;
8905
 
8906
    *)
8907
      lt_prog_compiler_pic='-fPIC'
8908
      ;;
8909
    esac
8910
 
8911
    case $cc_basename in
8912
    nvcc*) # Cuda Compiler Driver 2.2
8913
      lt_prog_compiler_wl='-Xlinker '
8914
      lt_prog_compiler_pic='-Xcompiler -fPIC'
8915
      ;;
8916
    esac
8917
  else
8918
    # PORTME Check for flag to pass linker flags through the system compiler.
8919
    case $host_os in
8920
    aix*)
8921
      lt_prog_compiler_wl='-Wl,'
8922
      if test "$host_cpu" = ia64; then
8923
        # AIX 5 now supports IA64 processor
8924
        lt_prog_compiler_static='-Bstatic'
8925
      else
8926
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8927
      fi
8928
      ;;
8929
 
8930
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8931
      # This hack is so that the source file can tell whether it is being
8932
      # built for inclusion in a dll (and should export symbols for example).
8933
      lt_prog_compiler_pic='-DDLL_EXPORT'
8934
      ;;
8935
 
8936
    hpux9* | hpux10* | hpux11*)
8937
      lt_prog_compiler_wl='-Wl,'
8938
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8939
      # not for PA HP-UX.
8940
      case $host_cpu in
8941
      hppa*64*|ia64*)
8942
        # +Z the default
8943
        ;;
8944
      *)
8945
        lt_prog_compiler_pic='+Z'
8946
        ;;
8947
      esac
8948
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8949
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8950
      ;;
8951
 
8952
    irix5* | irix6* | nonstopux*)
8953
      lt_prog_compiler_wl='-Wl,'
8954
      # PIC (with -KPIC) is the default.
8955
      lt_prog_compiler_static='-non_shared'
8956
      ;;
8957
 
8958
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8959
      case $cc_basename in
8960
      # old Intel for x86_64 which still supported -KPIC.
8961
      ecc*)
8962
        lt_prog_compiler_wl='-Wl,'
8963
        lt_prog_compiler_pic='-KPIC'
8964
        lt_prog_compiler_static='-static'
8965
        ;;
8966
      # icc used to be incompatible with GCC.
8967
      # ICC 10 doesn't accept -KPIC any more.
8968
      icc* | ifort*)
8969
        lt_prog_compiler_wl='-Wl,'
8970
        lt_prog_compiler_pic='-fPIC'
8971
        lt_prog_compiler_static='-static'
8972
        ;;
8973
      # Lahey Fortran 8.1.
8974
      lf95*)
8975
        lt_prog_compiler_wl='-Wl,'
8976
        lt_prog_compiler_pic='--shared'
8977
        lt_prog_compiler_static='--static'
8978
        ;;
8979
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8980
        # Portland Group compilers (*not* the Pentium gcc compiler,
8981
        # which looks to be a dead project)
8982
        lt_prog_compiler_wl='-Wl,'
8983
        lt_prog_compiler_pic='-fpic'
8984
        lt_prog_compiler_static='-Bstatic'
8985
        ;;
8986
      ccc*)
8987
        lt_prog_compiler_wl='-Wl,'
8988
        # All Alpha code is PIC.
8989
        lt_prog_compiler_static='-non_shared'
8990
        ;;
8991
      xl* | bgxl* | bgf* | mpixl*)
8992
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8993
        lt_prog_compiler_wl='-Wl,'
8994
        lt_prog_compiler_pic='-qpic'
8995
        lt_prog_compiler_static='-qstaticlink'
8996
        ;;
8997
      *)
8998
        case `$CC -V 2>&1 | sed 5q` in
8999
        *Sun\ F* | *Sun*Fortran*)
9000
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9001
          lt_prog_compiler_pic='-KPIC'
9002
          lt_prog_compiler_static='-Bstatic'
9003
          lt_prog_compiler_wl=''
9004
          ;;
9005
        *Sun\ C*)
9006
          # Sun C 5.9
9007
          lt_prog_compiler_pic='-KPIC'
9008
          lt_prog_compiler_static='-Bstatic'
9009
          lt_prog_compiler_wl='-Wl,'
9010
          ;;
9011
        esac
9012
        ;;
9013
      esac
9014
      ;;
9015
 
9016
    newsos6)
9017
      lt_prog_compiler_pic='-KPIC'
9018
      lt_prog_compiler_static='-Bstatic'
9019
      ;;
9020
 
9021
    *nto* | *qnx*)
9022
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9023
      # it will coredump.
9024
      lt_prog_compiler_pic='-fPIC -shared'
9025
      ;;
9026
 
9027
    osf3* | osf4* | osf5*)
9028
      lt_prog_compiler_wl='-Wl,'
9029
      # All OSF/1 code is PIC.
9030
      lt_prog_compiler_static='-non_shared'
9031
      ;;
9032
 
9033
    rdos*)
9034
      lt_prog_compiler_static='-non_shared'
9035
      ;;
9036
 
9037
    solaris*)
9038
      lt_prog_compiler_pic='-KPIC'
9039
      lt_prog_compiler_static='-Bstatic'
9040
      case $cc_basename in
9041
      f77* | f90* | f95*)
9042
        lt_prog_compiler_wl='-Qoption ld ';;
9043
      *)
9044
        lt_prog_compiler_wl='-Wl,';;
9045
      esac
9046
      ;;
9047
 
9048
    sunos4*)
9049
      lt_prog_compiler_wl='-Qoption ld '
9050
      lt_prog_compiler_pic='-PIC'
9051
      lt_prog_compiler_static='-Bstatic'
9052
      ;;
9053
 
9054
    sysv4 | sysv4.2uw2* | sysv4.3*)
9055
      lt_prog_compiler_wl='-Wl,'
9056
      lt_prog_compiler_pic='-KPIC'
9057
      lt_prog_compiler_static='-Bstatic'
9058
      ;;
9059
 
9060
    sysv4*MP*)
9061
      if test -d /usr/nec ;then
9062
        lt_prog_compiler_pic='-Kconform_pic'
9063
        lt_prog_compiler_static='-Bstatic'
9064
      fi
9065
      ;;
9066
 
9067
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9068
      lt_prog_compiler_wl='-Wl,'
9069
      lt_prog_compiler_pic='-KPIC'
9070
      lt_prog_compiler_static='-Bstatic'
9071
      ;;
9072
 
9073
    unicos*)
9074
      lt_prog_compiler_wl='-Wl,'
9075
      lt_prog_compiler_can_build_shared=no
9076
      ;;
9077
 
9078
    uts4*)
9079
      lt_prog_compiler_pic='-pic'
9080
      lt_prog_compiler_static='-Bstatic'
9081
      ;;
9082
 
9083
    *)
9084
      lt_prog_compiler_can_build_shared=no
9085
      ;;
9086
    esac
9087
  fi
9088
 
9089
case $host_os in
9090
  # For platforms which do not support PIC, -DPIC is meaningless:
9091
  *djgpp*)
9092
    lt_prog_compiler_pic=
9093
    ;;
9094
  *)
9095
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9096
    ;;
9097
esac
9098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9099
$as_echo "$lt_prog_compiler_pic" >&6; }
9100
 
9101
 
9102
 
9103
 
9104
 
9105
 
9106
#
9107
# Check to make sure the PIC flag actually works.
9108
#
9109
if test -n "$lt_prog_compiler_pic"; then
9110
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9111
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9112
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9113
  $as_echo_n "(cached) " >&6
9114
else
9115
  lt_cv_prog_compiler_pic_works=no
9116
   ac_outfile=conftest.$ac_objext
9117
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9119
   # Insert the option either (1) after the last *FLAGS variable, or
9120
   # (2) before a word containing "conftest.", or (3) at the end.
9121
   # Note that $ac_compile itself does not contain backslashes and begins
9122
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9123
   # The option is referenced via a variable to avoid confusing sed.
9124
   lt_compile=`echo "$ac_compile" | $SED \
9125
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127
   -e 's:$: $lt_compiler_flag:'`
9128
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9129
   (eval "$lt_compile" 2>conftest.err)
9130
   ac_status=$?
9131
   cat conftest.err >&5
9132
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
   if (exit $ac_status) && test -s "$ac_outfile"; then
9134
     # The compiler can only warn and ignore the option if not recognized
9135
     # So say no if there are warnings other than the usual output.
9136
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9137
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9138
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9139
       lt_cv_prog_compiler_pic_works=yes
9140
     fi
9141
   fi
9142
   $RM conftest*
9143
 
9144
fi
9145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9146
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9147
 
9148
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9149
    case $lt_prog_compiler_pic in
9150
     "" | " "*) ;;
9151
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9152
     esac
9153
else
9154
    lt_prog_compiler_pic=
9155
     lt_prog_compiler_can_build_shared=no
9156
fi
9157
 
9158
fi
9159
 
9160
 
9161
 
9162
 
9163
 
9164
 
9165
#
9166
# Check to make sure the static flag actually works.
9167
#
9168
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9170
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9171
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9172
  $as_echo_n "(cached) " >&6
9173
else
9174
  lt_cv_prog_compiler_static_works=no
9175
   save_LDFLAGS="$LDFLAGS"
9176
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9177
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9178
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9179
     # The linker can only warn and ignore the option if not recognized
9180
     # So say no if there are warnings
9181
     if test -s conftest.err; then
9182
       # Append any errors to the config.log.
9183
       cat conftest.err 1>&5
9184
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9185
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9186
       if diff conftest.exp conftest.er2 >/dev/null; then
9187
         lt_cv_prog_compiler_static_works=yes
9188
       fi
9189
     else
9190
       lt_cv_prog_compiler_static_works=yes
9191
     fi
9192
   fi
9193
   $RM -r conftest*
9194
   LDFLAGS="$save_LDFLAGS"
9195
 
9196
fi
9197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9198
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9199
 
9200
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9201
    :
9202
else
9203
    lt_prog_compiler_static=
9204
fi
9205
 
9206
 
9207
 
9208
 
9209
 
9210
 
9211
 
9212
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9215
  $as_echo_n "(cached) " >&6
9216
else
9217
  lt_cv_prog_compiler_c_o=no
9218
   $RM -r conftest 2>/dev/null
9219
   mkdir conftest
9220
   cd conftest
9221
   mkdir out
9222
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
 
9224
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9225
   # Insert the option either (1) after the last *FLAGS variable, or
9226
   # (2) before a word containing "conftest.", or (3) at the end.
9227
   # Note that $ac_compile itself does not contain backslashes and begins
9228
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229
   lt_compile=`echo "$ac_compile" | $SED \
9230
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232
   -e 's:$: $lt_compiler_flag:'`
9233
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234
   (eval "$lt_compile" 2>out/conftest.err)
9235
   ac_status=$?
9236
   cat out/conftest.err >&5
9237
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239
   then
9240
     # The compiler can only warn and ignore the option if not recognized
9241
     # So say no if there are warnings
9242
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9243
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245
       lt_cv_prog_compiler_c_o=yes
9246
     fi
9247
   fi
9248
   chmod u+w . 2>&5
9249
   $RM conftest*
9250
   # SGI C++ compiler will create directory out/ii_files/ for
9251
   # template instantiation
9252
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253
   $RM out/* && rmdir out
9254
   cd ..
9255
   $RM -r conftest
9256
   $RM conftest*
9257
 
9258
fi
9259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9261
 
9262
 
9263
 
9264
 
9265
 
9266
 
9267
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9268
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9269
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9270
  $as_echo_n "(cached) " >&6
9271
else
9272
  lt_cv_prog_compiler_c_o=no
9273
   $RM -r conftest 2>/dev/null
9274
   mkdir conftest
9275
   cd conftest
9276
   mkdir out
9277
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9278
 
9279
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9280
   # Insert the option either (1) after the last *FLAGS variable, or
9281
   # (2) before a word containing "conftest.", or (3) at the end.
9282
   # Note that $ac_compile itself does not contain backslashes and begins
9283
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9284
   lt_compile=`echo "$ac_compile" | $SED \
9285
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9286
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9287
   -e 's:$: $lt_compiler_flag:'`
9288
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9289
   (eval "$lt_compile" 2>out/conftest.err)
9290
   ac_status=$?
9291
   cat out/conftest.err >&5
9292
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9294
   then
9295
     # The compiler can only warn and ignore the option if not recognized
9296
     # So say no if there are warnings
9297
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9298
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9299
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9300
       lt_cv_prog_compiler_c_o=yes
9301
     fi
9302
   fi
9303
   chmod u+w . 2>&5
9304
   $RM conftest*
9305
   # SGI C++ compiler will create directory out/ii_files/ for
9306
   # template instantiation
9307
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9308
   $RM out/* && rmdir out
9309
   cd ..
9310
   $RM -r conftest
9311
   $RM conftest*
9312
 
9313
fi
9314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9315
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9316
 
9317
 
9318
 
9319
 
9320
hard_links="nottested"
9321
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9322
  # do not overwrite the value of need_locks provided by the user
9323
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9324
$as_echo_n "checking if we can lock with hard links... " >&6; }
9325
  hard_links=yes
9326
  $RM conftest*
9327
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9328
  touch conftest.a
9329
  ln conftest.a conftest.b 2>&5 || hard_links=no
9330
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9332
$as_echo "$hard_links" >&6; }
9333
  if test "$hard_links" = no; then
9334
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9335
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9336
    need_locks=warn
9337
  fi
9338
else
9339
  need_locks=no
9340
fi
9341
 
9342
 
9343
 
9344
 
9345
 
9346
 
9347
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9348
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9349
 
9350
  runpath_var=
9351
  allow_undefined_flag=
9352
  always_export_symbols=no
9353
  archive_cmds=
9354
  archive_expsym_cmds=
9355
  compiler_needs_object=no
9356
  enable_shared_with_static_runtimes=no
9357
  export_dynamic_flag_spec=
9358
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9359
  hardcode_automatic=no
9360
  hardcode_direct=no
9361
  hardcode_direct_absolute=no
9362
  hardcode_libdir_flag_spec=
9363
  hardcode_libdir_flag_spec_ld=
9364
  hardcode_libdir_separator=
9365
  hardcode_minus_L=no
9366
  hardcode_shlibpath_var=unsupported
9367
  inherit_rpath=no
9368
  link_all_deplibs=unknown
9369
  module_cmds=
9370
  module_expsym_cmds=
9371
  old_archive_from_new_cmds=
9372
  old_archive_from_expsyms_cmds=
9373
  thread_safe_flag_spec=
9374
  whole_archive_flag_spec=
9375
  # include_expsyms should be a list of space-separated symbols to be *always*
9376
  # included in the symbol list
9377
  include_expsyms=
9378
  # exclude_expsyms can be an extended regexp of symbols to exclude
9379
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9380
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9381
  # as well as any symbol that contains `d'.
9382
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9383
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9384
  # platforms (ab)use it in PIC code, but their linkers get confused if
9385
  # the symbol is explicitly referenced.  Since portable code cannot
9386
  # rely on this symbol name, it's probably fine to never include it in
9387
  # preloaded symbol tables.
9388
  # Exclude shared library initialization/finalization symbols.
9389
  extract_expsyms_cmds=
9390
 
9391
  case $host_os in
9392
  cygwin* | mingw* | pw32* | cegcc*)
9393
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9394
    # When not using gcc, we currently assume that we are using
9395
    # Microsoft Visual C++.
9396
    if test "$GCC" != yes; then
9397
      with_gnu_ld=no
9398
    fi
9399
    ;;
9400
  interix*)
9401
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9402
    with_gnu_ld=yes
9403
    ;;
9404
  openbsd*)
9405
    with_gnu_ld=no
9406
    ;;
9407
  esac
9408
 
9409
  ld_shlibs=yes
9410
 
9411
  # On some targets, GNU ld is compatible enough with the native linker
9412
  # that we're better off using the native interface for both.
9413
  lt_use_gnu_ld_interface=no
9414
  if test "$with_gnu_ld" = yes; then
9415
    case $host_os in
9416
      aix*)
9417
        # The AIX port of GNU ld has always aspired to compatibility
9418
        # with the native linker.  However, as the warning in the GNU ld
9419
        # block says, versions before 2.19.5* couldn't really create working
9420
        # shared libraries, regardless of the interface used.
9421
        case `$LD -v 2>&1` in
9422
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9423
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9424
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9425
          *)
9426
            lt_use_gnu_ld_interface=yes
9427
            ;;
9428
        esac
9429
        ;;
9430
      *)
9431
        lt_use_gnu_ld_interface=yes
9432
        ;;
9433
    esac
9434
  fi
9435
 
9436
  if test "$lt_use_gnu_ld_interface" = yes; then
9437
    # If archive_cmds runs LD, not CC, wlarc should be empty
9438
    wlarc='${wl}'
9439
 
9440
    # Set some defaults for GNU ld with shared library support. These
9441
    # are reset later if shared libraries are not supported. Putting them
9442
    # here allows them to be overridden if necessary.
9443
    runpath_var=LD_RUN_PATH
9444
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445
    export_dynamic_flag_spec='${wl}--export-dynamic'
9446
    # ancient GNU ld didn't support --whole-archive et. al.
9447
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9448
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9449
    else
9450
      whole_archive_flag_spec=
9451
    fi
9452
    supports_anon_versioning=no
9453
    case `$LD -v 2>&1` in
9454
      *GNU\ gold*) supports_anon_versioning=yes ;;
9455
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9456
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9457
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9458
      *\ 2.11.*) ;; # other 2.11 versions
9459
      *) supports_anon_versioning=yes ;;
9460
    esac
9461
 
9462
    # See if GNU ld supports shared libraries.
9463
    case $host_os in
9464
    aix[3-9]*)
9465
      # On AIX/PPC, the GNU linker is very broken
9466
      if test "$host_cpu" != ia64; then
9467
        ld_shlibs=no
9468
        cat <<_LT_EOF 1>&2
9469
 
9470
*** Warning: the GNU linker, at least up to release 2.19, is reported
9471
*** to be unable to reliably create shared libraries on AIX.
9472
*** Therefore, libtool is disabling shared libraries support.  If you
9473
*** really care for shared libraries, you may want to install binutils
9474
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9475
*** You will then need to restart the configuration process.
9476
 
9477
_LT_EOF
9478
      fi
9479
      ;;
9480
 
9481
    amigaos*)
9482
      case $host_cpu in
9483
      powerpc)
9484
            # see comment about AmigaOS4 .so support
9485
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486
            archive_expsym_cmds=''
9487
        ;;
9488
      m68k)
9489
            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)'
9490
            hardcode_libdir_flag_spec='-L$libdir'
9491
            hardcode_minus_L=yes
9492
        ;;
9493
      esac
9494
      ;;
9495
 
9496
    beos*)
9497
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498
        allow_undefined_flag=unsupported
9499
        # Joseph Beckenbach  says some releases of gcc
9500
        # support --undefined.  This deserves some investigation.  FIXME
9501
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502
      else
9503
        ld_shlibs=no
9504
      fi
9505
      ;;
9506
 
9507
    cygwin* | mingw* | pw32* | cegcc*)
9508
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9509
      # as there is no search path for DLLs.
9510
      hardcode_libdir_flag_spec='-L$libdir'
9511
      export_dynamic_flag_spec='${wl}--export-all-symbols'
9512
      allow_undefined_flag=unsupported
9513
      always_export_symbols=no
9514
      enable_shared_with_static_runtimes=yes
9515
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9516
 
9517
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9518
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9519
        # If the export-symbols file already is a .def file (1st line
9520
        # is EXPORTS), use it as is; otherwise, prepend...
9521
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9522
          cp $export_symbols $output_objdir/$soname.def;
9523
        else
9524
          echo EXPORTS > $output_objdir/$soname.def;
9525
          cat $export_symbols >> $output_objdir/$soname.def;
9526
        fi~
9527
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9528
      else
9529
        ld_shlibs=no
9530
      fi
9531
      ;;
9532
 
9533
    haiku*)
9534
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535
      link_all_deplibs=yes
9536
      ;;
9537
 
9538
    interix[3-9]*)
9539
      hardcode_direct=no
9540
      hardcode_shlibpath_var=no
9541
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542
      export_dynamic_flag_spec='${wl}-E'
9543
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9544
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9545
      # default) and relocated if they conflict, which is a slow very memory
9546
      # consuming and fragmenting process.  To avoid this, we pick a random,
9547
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9548
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9549
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9550
      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'
9551
      ;;
9552
 
9553
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9554
      tmp_diet=no
9555
      if test "$host_os" = linux-dietlibc; then
9556
        case $cc_basename in
9557
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9558
        esac
9559
      fi
9560
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9561
         && test "$tmp_diet" = no
9562
      then
9563
        tmp_addflag=
9564
        tmp_sharedflag='-shared'
9565
        case $cc_basename,$host_cpu in
9566
        pgcc*)                          # Portland Group C compiler
9567
          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'
9568
          tmp_addflag=' $pic_flag'
9569
          ;;
9570
        pgf77* | pgf90* | pgf95* | pgfortran*)
9571
                                        # Portland Group f77 and f90 compilers
9572
          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'
9573
          tmp_addflag=' $pic_flag -Mnomain' ;;
9574
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9575
          tmp_addflag=' -i_dynamic' ;;
9576
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9577
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9578
        ifc* | ifort*)                  # Intel Fortran compiler
9579
          tmp_addflag=' -nofor_main' ;;
9580
        lf95*)                          # Lahey Fortran 8.1
9581
          whole_archive_flag_spec=
9582
          tmp_sharedflag='--shared' ;;
9583
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9584
          tmp_sharedflag='-qmkshrobj'
9585
          tmp_addflag= ;;
9586
        nvcc*)  # Cuda Compiler Driver 2.2
9587
          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'
9588
          compiler_needs_object=yes
9589
          ;;
9590
        esac
9591
        case `$CC -V 2>&1 | sed 5q` in
9592
        *Sun\ C*)                       # Sun C 5.9
9593
          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'
9594
          compiler_needs_object=yes
9595
          tmp_sharedflag='-G' ;;
9596
        *Sun\ F*)                       # Sun Fortran 8.3
9597
          tmp_sharedflag='-G' ;;
9598
        esac
9599
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600
 
9601
        if test "x$supports_anon_versioning" = xyes; then
9602
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9603
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9604
            echo "local: *; };" >> $output_objdir/$libname.ver~
9605
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9606
        fi
9607
 
9608
        case $cc_basename in
9609
        xlf* | bgf* | bgxlf* | mpixlf*)
9610
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9611
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9612
          hardcode_libdir_flag_spec=
9613
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9614
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9615
          if test "x$supports_anon_versioning" = xyes; then
9616
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9617
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9618
              echo "local: *; };" >> $output_objdir/$libname.ver~
9619
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9620
          fi
9621
          ;;
9622
        esac
9623
      else
9624
        ld_shlibs=no
9625
      fi
9626
      ;;
9627
 
9628
    netbsd*)
9629
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9630
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9631
        wlarc=
9632
      else
9633
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635
      fi
9636
      ;;
9637
 
9638
    solaris*)
9639
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9640
        ld_shlibs=no
9641
        cat <<_LT_EOF 1>&2
9642
 
9643
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9644
*** create shared libraries on Solaris systems.  Therefore, libtool
9645
*** is disabling shared libraries support.  We urge you to upgrade GNU
9646
*** binutils to release 2.9.1 or newer.  Another option is to modify
9647
*** your PATH or compiler configuration so that the native linker is
9648
*** used, and then restart.
9649
 
9650
_LT_EOF
9651
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654
      else
9655
        ld_shlibs=no
9656
      fi
9657
      ;;
9658
 
9659
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9660
      case `$LD -v 2>&1` in
9661
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9662
        ld_shlibs=no
9663
        cat <<_LT_EOF 1>&2
9664
 
9665
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9666
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9667
*** is disabling shared libraries support.  We urge you to upgrade GNU
9668
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9669
*** your PATH or compiler configuration so that the native linker is
9670
*** used, and then restart.
9671
 
9672
_LT_EOF
9673
        ;;
9674
        *)
9675
          # For security reasons, it is highly recommended that you always
9676
          # use absolute paths for naming shared libraries, and exclude the
9677
          # DT_RUNPATH tag from executables and libraries.  But doing so
9678
          # requires that you compile everything twice, which is a pain.
9679
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9680
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9683
          else
9684
            ld_shlibs=no
9685
          fi
9686
        ;;
9687
      esac
9688
      ;;
9689
 
9690
    sunos4*)
9691
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9692
      wlarc=
9693
      hardcode_direct=yes
9694
      hardcode_shlibpath_var=no
9695
      ;;
9696
 
9697
    *)
9698
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9699
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9701
      else
9702
        ld_shlibs=no
9703
      fi
9704
      ;;
9705
    esac
9706
 
9707
    if test "$ld_shlibs" = no; then
9708
      runpath_var=
9709
      hardcode_libdir_flag_spec=
9710
      export_dynamic_flag_spec=
9711
      whole_archive_flag_spec=
9712
    fi
9713
  else
9714
    # PORTME fill in a description of your system's linker (not GNU ld)
9715
    case $host_os in
9716
    aix3*)
9717
      allow_undefined_flag=unsupported
9718
      always_export_symbols=yes
9719
      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'
9720
      # Note: this linker hardcodes the directories in LIBPATH if there
9721
      # are no directories specified by -L.
9722
      hardcode_minus_L=yes
9723
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9724
        # Neither direct hardcoding nor static linking is supported with a
9725
        # broken collect2.
9726
        hardcode_direct=unsupported
9727
      fi
9728
      ;;
9729
 
9730
    aix[4-9]*)
9731
      if test "$host_cpu" = ia64; then
9732
        # On IA64, the linker does run time linking by default, so we don't
9733
        # have to do anything special.
9734
        aix_use_runtimelinking=no
9735
        exp_sym_flag='-Bexport'
9736
        no_entry_flag=""
9737
      else
9738
        # If we're using GNU nm, then we don't want the "-C" option.
9739
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9740
        # Also, AIX nm treats weak defined symbols like other global
9741
        # defined symbols, whereas GNU nm marks them as "W".
9742
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9743
          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'
9744
        else
9745
          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'
9746
        fi
9747
        aix_use_runtimelinking=no
9748
 
9749
        # Test if we are trying to use run time linking or normal
9750
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9751
        # need to do runtime linking.
9752
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9753
          for ld_flag in $LDFLAGS; do
9754
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9755
            aix_use_runtimelinking=yes
9756
            break
9757
          fi
9758
          done
9759
          ;;
9760
        esac
9761
 
9762
        exp_sym_flag='-bexport'
9763
        no_entry_flag='-bnoentry'
9764
      fi
9765
 
9766
      # When large executables or shared objects are built, AIX ld can
9767
      # have problems creating the table of contents.  If linking a library
9768
      # or program results in "error TOC overflow" add -mminimal-toc to
9769
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9770
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9771
 
9772
      archive_cmds=''
9773
      hardcode_direct=yes
9774
      hardcode_direct_absolute=yes
9775
      hardcode_libdir_separator=':'
9776
      link_all_deplibs=yes
9777
      file_list_spec='${wl}-f,'
9778
 
9779
      if test "$GCC" = yes; then
9780
        case $host_os in aix4.[012]|aix4.[012].*)
9781
        # We only want to do this on AIX 4.2 and lower, the check
9782
        # below for broken collect2 doesn't work under 4.3+
9783
          collect2name=`${CC} -print-prog-name=collect2`
9784
          if test -f "$collect2name" &&
9785
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9786
          then
9787
          # We have reworked collect2
9788
          :
9789
          else
9790
          # We have old collect2
9791
          hardcode_direct=unsupported
9792
          # It fails to find uninstalled libraries when the uninstalled
9793
          # path is not listed in the libpath.  Setting hardcode_minus_L
9794
          # to unsupported forces relinking
9795
          hardcode_minus_L=yes
9796
          hardcode_libdir_flag_spec='-L$libdir'
9797
          hardcode_libdir_separator=
9798
          fi
9799
          ;;
9800
        esac
9801
        shared_flag='-shared'
9802
        if test "$aix_use_runtimelinking" = yes; then
9803
          shared_flag="$shared_flag "'${wl}-G'
9804
        fi
9805
      else
9806
        # not using gcc
9807
        if test "$host_cpu" = ia64; then
9808
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9809
        # chokes on -Wl,-G. The following line is correct:
9810
          shared_flag='-G'
9811
        else
9812
          if test "$aix_use_runtimelinking" = yes; then
9813
            shared_flag='${wl}-G'
9814
          else
9815
            shared_flag='${wl}-bM:SRE'
9816
          fi
9817
        fi
9818
      fi
9819
 
9820
      export_dynamic_flag_spec='${wl}-bexpall'
9821
      # It seems that -bexpall does not export symbols beginning with
9822
      # underscore (_), so it is better to generate a list of symbols to export.
9823
      always_export_symbols=yes
9824
      if test "$aix_use_runtimelinking" = yes; then
9825
        # Warning - without using the other runtime loading flags (-brtl),
9826
        # -berok will link without error, but may produce a broken library.
9827
        allow_undefined_flag='-berok'
9828
        # Determine the default libpath from the value encoded in an
9829
        # empty executable.
9830
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831
/* end confdefs.h.  */
9832
 
9833
int
9834
main ()
9835
{
9836
 
9837
  ;
9838
  return 0;
9839
}
9840
_ACEOF
9841
if ac_fn_c_try_link "$LINENO"; then :
9842
 
9843
lt_aix_libpath_sed='
9844
    /Import File Strings/,/^$/ {
9845
        /^0/ {
9846
            s/^0  *\(.*\)$/\1/
9847
            p
9848
        }
9849
    }'
9850
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851
# Check for a 64-bit object if we didn't find anything.
9852
if test -z "$aix_libpath"; then
9853
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854
fi
9855
fi
9856
rm -f core conftest.err conftest.$ac_objext \
9857
    conftest$ac_exeext conftest.$ac_ext
9858
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9859
 
9860
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9861
        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"
9862
      else
9863
        if test "$host_cpu" = ia64; then
9864
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9865
          allow_undefined_flag="-z nodefs"
9866
          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"
9867
        else
9868
         # Determine the default libpath from the value encoded in an
9869
         # empty executable.
9870
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871
/* end confdefs.h.  */
9872
 
9873
int
9874
main ()
9875
{
9876
 
9877
  ;
9878
  return 0;
9879
}
9880
_ACEOF
9881
if ac_fn_c_try_link "$LINENO"; then :
9882
 
9883
lt_aix_libpath_sed='
9884
    /Import File Strings/,/^$/ {
9885
        /^0/ {
9886
            s/^0  *\(.*\)$/\1/
9887
            p
9888
        }
9889
    }'
9890
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9891
# Check for a 64-bit object if we didn't find anything.
9892
if test -z "$aix_libpath"; then
9893
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9894
fi
9895
fi
9896
rm -f core conftest.err conftest.$ac_objext \
9897
    conftest$ac_exeext conftest.$ac_ext
9898
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9899
 
9900
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9901
          # Warning - without using the other run time loading flags,
9902
          # -berok will link without error, but may produce a broken library.
9903
          no_undefined_flag=' ${wl}-bernotok'
9904
          allow_undefined_flag=' ${wl}-berok'
9905
          if test "$with_gnu_ld" = yes; then
9906
            # We only use this code for GNU lds that support --whole-archive.
9907
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9908
          else
9909
            # Exported symbols can be pulled into shared objects from archives
9910
            whole_archive_flag_spec='$convenience'
9911
          fi
9912
          archive_cmds_need_lc=yes
9913
          # This is similar to how AIX traditionally builds its shared libraries.
9914
          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'
9915
        fi
9916
      fi
9917
      ;;
9918
 
9919
    amigaos*)
9920
      case $host_cpu in
9921
      powerpc)
9922
            # see comment about AmigaOS4 .so support
9923
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924
            archive_expsym_cmds=''
9925
        ;;
9926
      m68k)
9927
            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)'
9928
            hardcode_libdir_flag_spec='-L$libdir'
9929
            hardcode_minus_L=yes
9930
        ;;
9931
      esac
9932
      ;;
9933
 
9934
    bsdi[45]*)
9935
      export_dynamic_flag_spec=-rdynamic
9936
      ;;
9937
 
9938
    cygwin* | mingw* | pw32* | cegcc*)
9939
      # When not using gcc, we currently assume that we are using
9940
      # Microsoft Visual C++.
9941
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9942
      # no search path for DLLs.
9943
      hardcode_libdir_flag_spec=' '
9944
      allow_undefined_flag=unsupported
9945
      # Tell ltmain to make .lib files, not .a files.
9946
      libext=lib
9947
      # Tell ltmain to make .dll files, not .so files.
9948
      shrext_cmds=".dll"
9949
      # FIXME: Setting linknames here is a bad hack.
9950
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9951
      # The linker will automatically build a .lib file if we build a DLL.
9952
      old_archive_from_new_cmds='true'
9953
      # FIXME: Should let the user specify the lib program.
9954
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9955
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9956
      enable_shared_with_static_runtimes=yes
9957
      ;;
9958
 
9959
    darwin* | rhapsody*)
9960
 
9961
 
9962
  archive_cmds_need_lc=no
9963
  hardcode_direct=no
9964
  hardcode_automatic=yes
9965
  hardcode_shlibpath_var=unsupported
9966
  if test "$lt_cv_ld_force_load" = "yes"; then
9967
    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\"`'
9968
  else
9969
    whole_archive_flag_spec=''
9970
  fi
9971
  link_all_deplibs=yes
9972
  allow_undefined_flag="$_lt_dar_allow_undefined"
9973
  case $cc_basename in
9974
     ifort*) _lt_dar_can_shared=yes ;;
9975
     *) _lt_dar_can_shared=$GCC ;;
9976
  esac
9977
  if test "$_lt_dar_can_shared" = "yes"; then
9978
    output_verbose_link_cmd=func_echo_all
9979
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9980
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9981
    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}"
9982
    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}"
9983
 
9984
  else
9985
  ld_shlibs=no
9986
  fi
9987
 
9988
      ;;
9989
 
9990
    dgux*)
9991
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992
      hardcode_libdir_flag_spec='-L$libdir'
9993
      hardcode_shlibpath_var=no
9994
      ;;
9995
 
9996
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9997
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9998
    # does not break anything, and helps significantly (at the cost of a little
9999
    # extra space).
10000
    freebsd2.2*)
10001
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10002
      hardcode_libdir_flag_spec='-R$libdir'
10003
      hardcode_direct=yes
10004
      hardcode_shlibpath_var=no
10005
      ;;
10006
 
10007
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10008
    freebsd2.*)
10009
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010
      hardcode_direct=yes
10011
      hardcode_minus_L=yes
10012
      hardcode_shlibpath_var=no
10013
      ;;
10014
 
10015
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10016
    freebsd* | dragonfly*)
10017
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10018
      hardcode_libdir_flag_spec='-R$libdir'
10019
      hardcode_direct=yes
10020
      hardcode_shlibpath_var=no
10021
      ;;
10022
 
10023
    hpux9*)
10024
      if test "$GCC" = yes; then
10025
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10026
      else
10027
        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'
10028
      fi
10029
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10030
      hardcode_libdir_separator=:
10031
      hardcode_direct=yes
10032
 
10033
      # hardcode_minus_L: Not really in the search PATH,
10034
      # but as the default location of the library.
10035
      hardcode_minus_L=yes
10036
      export_dynamic_flag_spec='${wl}-E'
10037
      ;;
10038
 
10039
    hpux10*)
10040
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10041
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10042
      else
10043
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10044
      fi
10045
      if test "$with_gnu_ld" = no; then
10046
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10047
        hardcode_libdir_flag_spec_ld='+b $libdir'
10048
        hardcode_libdir_separator=:
10049
        hardcode_direct=yes
10050
        hardcode_direct_absolute=yes
10051
        export_dynamic_flag_spec='${wl}-E'
10052
        # hardcode_minus_L: Not really in the search PATH,
10053
        # but as the default location of the library.
10054
        hardcode_minus_L=yes
10055
      fi
10056
      ;;
10057
 
10058
    hpux11*)
10059
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10060
        case $host_cpu in
10061
        hppa*64*)
10062
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10063
          ;;
10064
        ia64*)
10065
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10066
          ;;
10067
        *)
10068
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069
          ;;
10070
        esac
10071
      else
10072
        case $host_cpu in
10073
        hppa*64*)
10074
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10075
          ;;
10076
        ia64*)
10077
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10078
          ;;
10079
        *)
10080
 
10081
          # Older versions of the 11.00 compiler do not understand -b yet
10082
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10083
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10084
$as_echo_n "checking if $CC understands -b... " >&6; }
10085
if test "${lt_cv_prog_compiler__b+set}" = set; then :
10086
  $as_echo_n "(cached) " >&6
10087
else
10088
  lt_cv_prog_compiler__b=no
10089
   save_LDFLAGS="$LDFLAGS"
10090
   LDFLAGS="$LDFLAGS -b"
10091
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10092
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10093
     # The linker can only warn and ignore the option if not recognized
10094
     # So say no if there are warnings
10095
     if test -s conftest.err; then
10096
       # Append any errors to the config.log.
10097
       cat conftest.err 1>&5
10098
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10099
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10100
       if diff conftest.exp conftest.er2 >/dev/null; then
10101
         lt_cv_prog_compiler__b=yes
10102
       fi
10103
     else
10104
       lt_cv_prog_compiler__b=yes
10105
     fi
10106
   fi
10107
   $RM -r conftest*
10108
   LDFLAGS="$save_LDFLAGS"
10109
 
10110
fi
10111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10112
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10113
 
10114
if test x"$lt_cv_prog_compiler__b" = xyes; then
10115
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10116
else
10117
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10118
fi
10119
 
10120
          ;;
10121
        esac
10122
      fi
10123
      if test "$with_gnu_ld" = no; then
10124
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10125
        hardcode_libdir_separator=:
10126
 
10127
        case $host_cpu in
10128
        hppa*64*|ia64*)
10129
          hardcode_direct=no
10130
          hardcode_shlibpath_var=no
10131
          ;;
10132
        *)
10133
          hardcode_direct=yes
10134
          hardcode_direct_absolute=yes
10135
          export_dynamic_flag_spec='${wl}-E'
10136
 
10137
          # hardcode_minus_L: Not really in the search PATH,
10138
          # but as the default location of the library.
10139
          hardcode_minus_L=yes
10140
          ;;
10141
        esac
10142
      fi
10143
      ;;
10144
 
10145
    irix5* | irix6* | nonstopux*)
10146
      if test "$GCC" = yes; then
10147
        archive_cmds='$CC -shared $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'
10148
        # Try to use the -exported_symbol ld option, if it does not
10149
        # work, assume that -exports_file does not work either and
10150
        # implicitly export all symbols.
10151
        save_LDFLAGS="$LDFLAGS"
10152
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10153
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154
/* end confdefs.h.  */
10155
int foo(void) {}
10156
_ACEOF
10157
if ac_fn_c_try_link "$LINENO"; then :
10158
  archive_expsym_cmds='$CC -shared $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'
10159
 
10160
fi
10161
rm -f core conftest.err conftest.$ac_objext \
10162
    conftest$ac_exeext conftest.$ac_ext
10163
        LDFLAGS="$save_LDFLAGS"
10164
      else
10165
        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'
10166
        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'
10167
      fi
10168
      archive_cmds_need_lc='no'
10169
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10170
      hardcode_libdir_separator=:
10171
      inherit_rpath=yes
10172
      link_all_deplibs=yes
10173
      ;;
10174
 
10175
    netbsd*)
10176
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10177
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10178
      else
10179
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10180
      fi
10181
      hardcode_libdir_flag_spec='-R$libdir'
10182
      hardcode_direct=yes
10183
      hardcode_shlibpath_var=no
10184
      ;;
10185
 
10186
    newsos6)
10187
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188
      hardcode_direct=yes
10189
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190
      hardcode_libdir_separator=:
10191
      hardcode_shlibpath_var=no
10192
      ;;
10193
 
10194
    *nto* | *qnx*)
10195
      ;;
10196
 
10197
    openbsd*)
10198
      if test -f /usr/libexec/ld.so; then
10199
        hardcode_direct=yes
10200
        hardcode_shlibpath_var=no
10201
        hardcode_direct_absolute=yes
10202
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10203
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10204
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10205
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10206
          export_dynamic_flag_spec='${wl}-E'
10207
        else
10208
          case $host_os in
10209
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10210
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10211
             hardcode_libdir_flag_spec='-R$libdir'
10212
             ;;
10213
           *)
10214
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10215
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10216
             ;;
10217
          esac
10218
        fi
10219
      else
10220
        ld_shlibs=no
10221
      fi
10222
      ;;
10223
 
10224
    os2*)
10225
      hardcode_libdir_flag_spec='-L$libdir'
10226
      hardcode_minus_L=yes
10227
      allow_undefined_flag=unsupported
10228
      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'
10229
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10230
      ;;
10231
 
10232
    osf3*)
10233
      if test "$GCC" = yes; then
10234
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10235
        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'
10236
      else
10237
        allow_undefined_flag=' -expect_unresolved \*'
10238
        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'
10239
      fi
10240
      archive_cmds_need_lc='no'
10241
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242
      hardcode_libdir_separator=:
10243
      ;;
10244
 
10245
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10246
      if test "$GCC" = yes; then
10247
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10248
        archive_cmds='$CC -shared${allow_undefined_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'
10249
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10250
      else
10251
        allow_undefined_flag=' -expect_unresolved \*'
10252
        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'
10253
        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~
10254
        $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'
10255
 
10256
        # Both c and cxx compiler support -rpath directly
10257
        hardcode_libdir_flag_spec='-rpath $libdir'
10258
      fi
10259
      archive_cmds_need_lc='no'
10260
      hardcode_libdir_separator=:
10261
      ;;
10262
 
10263
    solaris*)
10264
      no_undefined_flag=' -z defs'
10265
      if test "$GCC" = yes; then
10266
        wlarc='${wl}'
10267
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10268
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10269
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10270
      else
10271
        case `$CC -V 2>&1` in
10272
        *"Compilers 5.0"*)
10273
          wlarc=''
10274
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10276
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10277
          ;;
10278
        *)
10279
          wlarc='${wl}'
10280
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10281
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10282
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10283
          ;;
10284
        esac
10285
      fi
10286
      hardcode_libdir_flag_spec='-R$libdir'
10287
      hardcode_shlibpath_var=no
10288
      case $host_os in
10289
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10290
      *)
10291
        # The compiler driver will combine and reorder linker options,
10292
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10293
        # but is careful enough not to reorder.
10294
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10295
        if test "$GCC" = yes; then
10296
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10297
        else
10298
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10299
        fi
10300
        ;;
10301
      esac
10302
      link_all_deplibs=yes
10303
      ;;
10304
 
10305
    sunos4*)
10306
      if test "x$host_vendor" = xsequent; then
10307
        # Use $CC to link under sequent, because it throws in some extra .o
10308
        # files that make .init and .fini sections work.
10309
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10310
      else
10311
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10312
      fi
10313
      hardcode_libdir_flag_spec='-L$libdir'
10314
      hardcode_direct=yes
10315
      hardcode_minus_L=yes
10316
      hardcode_shlibpath_var=no
10317
      ;;
10318
 
10319
    sysv4)
10320
      case $host_vendor in
10321
        sni)
10322
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323
          hardcode_direct=yes # is this really true???
10324
        ;;
10325
        siemens)
10326
          ## LD is ld it makes a PLAMLIB
10327
          ## CC just makes a GrossModule.
10328
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10329
          reload_cmds='$CC -r -o $output$reload_objs'
10330
          hardcode_direct=no
10331
        ;;
10332
        motorola)
10333
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10335
        ;;
10336
      esac
10337
      runpath_var='LD_RUN_PATH'
10338
      hardcode_shlibpath_var=no
10339
      ;;
10340
 
10341
    sysv4.3*)
10342
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343
      hardcode_shlibpath_var=no
10344
      export_dynamic_flag_spec='-Bexport'
10345
      ;;
10346
 
10347
    sysv4*MP*)
10348
      if test -d /usr/nec; then
10349
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350
        hardcode_shlibpath_var=no
10351
        runpath_var=LD_RUN_PATH
10352
        hardcode_runpath_var=yes
10353
        ld_shlibs=yes
10354
      fi
10355
      ;;
10356
 
10357
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10358
      no_undefined_flag='${wl}-z,text'
10359
      archive_cmds_need_lc=no
10360
      hardcode_shlibpath_var=no
10361
      runpath_var='LD_RUN_PATH'
10362
 
10363
      if test "$GCC" = yes; then
10364
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366
      else
10367
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369
      fi
10370
      ;;
10371
 
10372
    sysv5* | sco3.2v5* | sco5v6*)
10373
      # Note: We can NOT use -z defs as we might desire, because we do not
10374
      # link with -lc, and that would cause any symbols used from libc to
10375
      # always be unresolved, which means just about no library would
10376
      # ever link correctly.  If we're not using GNU ld we use -z text
10377
      # though, which does catch some bad symbols but isn't as heavy-handed
10378
      # as -z defs.
10379
      no_undefined_flag='${wl}-z,text'
10380
      allow_undefined_flag='${wl}-z,nodefs'
10381
      archive_cmds_need_lc=no
10382
      hardcode_shlibpath_var=no
10383
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10384
      hardcode_libdir_separator=':'
10385
      link_all_deplibs=yes
10386
      export_dynamic_flag_spec='${wl}-Bexport'
10387
      runpath_var='LD_RUN_PATH'
10388
 
10389
      if test "$GCC" = yes; then
10390
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392
      else
10393
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395
      fi
10396
      ;;
10397
 
10398
    uts4*)
10399
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400
      hardcode_libdir_flag_spec='-L$libdir'
10401
      hardcode_shlibpath_var=no
10402
      ;;
10403
 
10404
    *)
10405
      ld_shlibs=no
10406
      ;;
10407
    esac
10408
 
10409
    if test x$host_vendor = xsni; then
10410
      case $host in
10411
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10412
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10413
        ;;
10414
      esac
10415
    fi
10416
  fi
10417
 
10418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10419
$as_echo "$ld_shlibs" >&6; }
10420
test "$ld_shlibs" = no && can_build_shared=no
10421
 
10422
with_gnu_ld=$with_gnu_ld
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
#
10439
# Do we need to explicitly link libc?
10440
#
10441
case "x$archive_cmds_need_lc" in
10442
x|xyes)
10443
  # Assume -lc should be added
10444
  archive_cmds_need_lc=yes
10445
 
10446
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10447
    case $archive_cmds in
10448
    *'~'*)
10449
      # FIXME: we may have to deal with multi-command sequences.
10450
      ;;
10451
    '$CC '*)
10452
      # Test whether the compiler implicitly links with -lc since on some
10453
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10454
      # to ld, don't add -lc before -lgcc.
10455
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10456
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10457
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10458
  $as_echo_n "(cached) " >&6
10459
else
10460
  $RM conftest*
10461
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10462
 
10463
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10464
  (eval $ac_compile) 2>&5
10465
  ac_status=$?
10466
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467
  test $ac_status = 0; } 2>conftest.err; then
10468
          soname=conftest
10469
          lib=conftest
10470
          libobjs=conftest.$ac_objext
10471
          deplibs=
10472
          wl=$lt_prog_compiler_wl
10473
          pic_flag=$lt_prog_compiler_pic
10474
          compiler_flags=-v
10475
          linker_flags=-v
10476
          verstring=
10477
          output_objdir=.
10478
          libname=conftest
10479
          lt_save_allow_undefined_flag=$allow_undefined_flag
10480
          allow_undefined_flag=
10481
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10482
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10483
  ac_status=$?
10484
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485
  test $ac_status = 0; }
10486
          then
10487
            lt_cv_archive_cmds_need_lc=no
10488
          else
10489
            lt_cv_archive_cmds_need_lc=yes
10490
          fi
10491
          allow_undefined_flag=$lt_save_allow_undefined_flag
10492
        else
10493
          cat conftest.err 1>&5
10494
        fi
10495
        $RM conftest*
10496
 
10497
fi
10498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10499
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10500
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10501
      ;;
10502
    esac
10503
  fi
10504
  ;;
10505
esac
10506
 
10507
 
10508
 
10509
 
10510
 
10511
 
10512
 
10513
 
10514
 
10515
 
10516
 
10517
 
10518
 
10519
 
10520
 
10521
 
10522
 
10523
 
10524
 
10525
 
10526
 
10527
 
10528
 
10529
 
10530
 
10531
 
10532
 
10533
 
10534
 
10535
 
10536
 
10537
 
10538
 
10539
 
10540
 
10541
 
10542
 
10543
 
10544
 
10545
 
10546
 
10547
 
10548
 
10549
 
10550
 
10551
 
10552
 
10553
 
10554
 
10555
 
10556
 
10557
 
10558
 
10559
 
10560
 
10561
 
10562
 
10563
 
10564
 
10565
 
10566
 
10567
 
10568
 
10569
 
10570
 
10571
 
10572
 
10573
 
10574
 
10575
 
10576
 
10577
 
10578
 
10579
 
10580
 
10581
 
10582
 
10583
 
10584
 
10585
 
10586
 
10587
 
10588
 
10589
 
10590
 
10591
 
10592
 
10593
 
10594
 
10595
 
10596
 
10597
 
10598
 
10599
 
10600
 
10601
 
10602
 
10603
 
10604
 
10605
 
10606
 
10607
 
10608
 
10609
 
10610
 
10611
 
10612
 
10613
 
10614
 
10615
 
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
 
10631
 
10632
 
10633
 
10634
 
10635
 
10636
 
10637
 
10638
 
10639
 
10640
 
10641
 
10642
 
10643
 
10644
 
10645
 
10646
 
10647
 
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10664
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10665
 
10666
if test "$GCC" = yes; then
10667
  case $host_os in
10668
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10669
    *) lt_awk_arg="/^libraries:/" ;;
10670
  esac
10671
  case $host_os in
10672
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10673
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10674
  esac
10675
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10676
  case $lt_search_path_spec in
10677
  *\;*)
10678
    # if the path contains ";" then we assume it to be the separator
10679
    # otherwise default to the standard path separator (i.e. ":") - it is
10680
    # assumed that no part of a normal pathname contains ";" but that should
10681
    # okay in the real world where ";" in dirpaths is itself problematic.
10682
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10683
    ;;
10684
  *)
10685
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10686
    ;;
10687
  esac
10688
  # Ok, now we have the path, separated by spaces, we can step through it
10689
  # and add multilib dir if necessary.
10690
  lt_tmp_lt_search_path_spec=
10691
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10692
  for lt_sys_path in $lt_search_path_spec; do
10693
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10694
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10695
    else
10696
      test -d "$lt_sys_path" && \
10697
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10698
    fi
10699
  done
10700
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10701
BEGIN {RS=" "; FS="/|\n";} {
10702
  lt_foo="";
10703
  lt_count=0;
10704
  for (lt_i = NF; lt_i > 0; lt_i--) {
10705
    if ($lt_i != "" && $lt_i != ".") {
10706
      if ($lt_i == "..") {
10707
        lt_count++;
10708
      } else {
10709
        if (lt_count == 0) {
10710
          lt_foo="/" $lt_i lt_foo;
10711
        } else {
10712
          lt_count--;
10713
        }
10714
      }
10715
    }
10716
  }
10717
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10718
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10719
}'`
10720
  # AWK program above erroneously prepends '/' to C:/dos/paths
10721
  # for these hosts.
10722
  case $host_os in
10723
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10724
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10725
  esac
10726
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10727
else
10728
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10729
fi
10730
library_names_spec=
10731
libname_spec='lib$name'
10732
soname_spec=
10733
shrext_cmds=".so"
10734
postinstall_cmds=
10735
postuninstall_cmds=
10736
finish_cmds=
10737
finish_eval=
10738
shlibpath_var=
10739
shlibpath_overrides_runpath=unknown
10740
version_type=none
10741
dynamic_linker="$host_os ld.so"
10742
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10743
need_lib_prefix=unknown
10744
hardcode_into_libs=no
10745
 
10746
# when you set need_version to no, make sure it does not cause -set_version
10747
# flags to be left without arguments
10748
need_version=unknown
10749
 
10750
case $host_os in
10751
aix3*)
10752
  version_type=linux
10753
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10754
  shlibpath_var=LIBPATH
10755
 
10756
  # AIX 3 has no versioning support, so we append a major version to the name.
10757
  soname_spec='${libname}${release}${shared_ext}$major'
10758
  ;;
10759
 
10760
aix[4-9]*)
10761
  version_type=linux
10762
  need_lib_prefix=no
10763
  need_version=no
10764
  hardcode_into_libs=yes
10765
  if test "$host_cpu" = ia64; then
10766
    # AIX 5 supports IA64
10767
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10768
    shlibpath_var=LD_LIBRARY_PATH
10769
  else
10770
    # With GCC up to 2.95.x, collect2 would create an import file
10771
    # for dependence libraries.  The import file would start with
10772
    # the line `#! .'.  This would cause the generated library to
10773
    # depend on `.', always an invalid library.  This was fixed in
10774
    # development snapshots of GCC prior to 3.0.
10775
    case $host_os in
10776
      aix4 | aix4.[01] | aix4.[01].*)
10777
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10778
           echo ' yes '
10779
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10780
        :
10781
      else
10782
        can_build_shared=no
10783
      fi
10784
      ;;
10785
    esac
10786
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10787
    # soname into executable. Probably we can add versioning support to
10788
    # collect2, so additional links can be useful in future.
10789
    if test "$aix_use_runtimelinking" = yes; then
10790
      # If using run time linking (on AIX 4.2 or later) use lib.so
10791
      # instead of lib.a to let people know that these are not
10792
      # typical AIX shared libraries.
10793
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794
    else
10795
      # We preserve .a as extension for shared libraries through AIX4.2
10796
      # and later when we are not doing run time linking.
10797
      library_names_spec='${libname}${release}.a $libname.a'
10798
      soname_spec='${libname}${release}${shared_ext}$major'
10799
    fi
10800
    shlibpath_var=LIBPATH
10801
  fi
10802
  ;;
10803
 
10804
amigaos*)
10805
  case $host_cpu in
10806
  powerpc)
10807
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10808
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810
    ;;
10811
  m68k)
10812
    library_names_spec='$libname.ixlibrary $libname.a'
10813
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10814
    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'
10815
    ;;
10816
  esac
10817
  ;;
10818
 
10819
beos*)
10820
  library_names_spec='${libname}${shared_ext}'
10821
  dynamic_linker="$host_os ld.so"
10822
  shlibpath_var=LIBRARY_PATH
10823
  ;;
10824
 
10825
bsdi[45]*)
10826
  version_type=linux
10827
  need_version=no
10828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829
  soname_spec='${libname}${release}${shared_ext}$major'
10830
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10831
  shlibpath_var=LD_LIBRARY_PATH
10832
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10833
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10834
  # the default ld.so.conf also contains /usr/contrib/lib and
10835
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10836
  # libtool to hard-code these into programs
10837
  ;;
10838
 
10839
cygwin* | mingw* | pw32* | cegcc*)
10840
  version_type=windows
10841
  shrext_cmds=".dll"
10842
  need_version=no
10843
  need_lib_prefix=no
10844
 
10845
  case $GCC,$host_os in
10846
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10847
    library_names_spec='$libname.dll.a'
10848
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10849
    postinstall_cmds='base_file=`basename \${file}`~
10850
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10851
      dldir=$destdir/`dirname \$dlpath`~
10852
      test -d \$dldir || mkdir -p \$dldir~
10853
      $install_prog $dir/$dlname \$dldir/$dlname~
10854
      chmod a+x \$dldir/$dlname~
10855
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10856
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10857
      fi'
10858
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10859
      dlpath=$dir/\$dldll~
10860
       $RM \$dlpath'
10861
    shlibpath_overrides_runpath=yes
10862
 
10863
    case $host_os in
10864
    cygwin*)
10865
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10866
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10867
 
10868
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10869
      ;;
10870
    mingw* | cegcc*)
10871
      # MinGW DLLs use traditional 'lib' prefix
10872
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10873
      ;;
10874
    pw32*)
10875
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10876
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10877
      ;;
10878
    esac
10879
    ;;
10880
 
10881
  *)
10882
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10883
    ;;
10884
  esac
10885
  dynamic_linker='Win32 ld.exe'
10886
  # FIXME: first we should search . and the directory the executable is in
10887
  shlibpath_var=PATH
10888
  ;;
10889
 
10890
darwin* | rhapsody*)
10891
  dynamic_linker="$host_os dyld"
10892
  version_type=darwin
10893
  need_lib_prefix=no
10894
  need_version=no
10895
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10896
  soname_spec='${libname}${release}${major}$shared_ext'
10897
  shlibpath_overrides_runpath=yes
10898
  shlibpath_var=DYLD_LIBRARY_PATH
10899
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10900
 
10901
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10902
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10903
  ;;
10904
 
10905
dgux*)
10906
  version_type=linux
10907
  need_lib_prefix=no
10908
  need_version=no
10909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10910
  soname_spec='${libname}${release}${shared_ext}$major'
10911
  shlibpath_var=LD_LIBRARY_PATH
10912
  ;;
10913
 
10914
freebsd* | dragonfly*)
10915
  # DragonFly does not have aout.  When/if they implement a new
10916
  # versioning mechanism, adjust this.
10917
  if test -x /usr/bin/objformat; then
10918
    objformat=`/usr/bin/objformat`
10919
  else
10920
    case $host_os in
10921
    freebsd[23].*) objformat=aout ;;
10922
    *) objformat=elf ;;
10923
    esac
10924
  fi
10925
  version_type=freebsd-$objformat
10926
  case $version_type in
10927
    freebsd-elf*)
10928
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929
      need_version=no
10930
      need_lib_prefix=no
10931
      ;;
10932
    freebsd-*)
10933
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10934
      need_version=yes
10935
      ;;
10936
  esac
10937
  shlibpath_var=LD_LIBRARY_PATH
10938
  case $host_os in
10939
  freebsd2.*)
10940
    shlibpath_overrides_runpath=yes
10941
    ;;
10942
  freebsd3.[01]* | freebsdelf3.[01]*)
10943
    shlibpath_overrides_runpath=yes
10944
    hardcode_into_libs=yes
10945
    ;;
10946
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10947
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10948
    shlibpath_overrides_runpath=no
10949
    hardcode_into_libs=yes
10950
    ;;
10951
  *) # from 4.6 on, and DragonFly
10952
    shlibpath_overrides_runpath=yes
10953
    hardcode_into_libs=yes
10954
    ;;
10955
  esac
10956
  ;;
10957
 
10958
gnu*)
10959
  version_type=linux
10960
  need_lib_prefix=no
10961
  need_version=no
10962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10963
  soname_spec='${libname}${release}${shared_ext}$major'
10964
  shlibpath_var=LD_LIBRARY_PATH
10965
  hardcode_into_libs=yes
10966
  ;;
10967
 
10968
haiku*)
10969
  version_type=linux
10970
  need_lib_prefix=no
10971
  need_version=no
10972
  dynamic_linker="$host_os runtime_loader"
10973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10974
  soname_spec='${libname}${release}${shared_ext}$major'
10975
  shlibpath_var=LIBRARY_PATH
10976
  shlibpath_overrides_runpath=yes
10977
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10978
  hardcode_into_libs=yes
10979
  ;;
10980
 
10981
hpux9* | hpux10* | hpux11*)
10982
  # Give a soname corresponding to the major version so that dld.sl refuses to
10983
  # link against other versions.
10984
  version_type=sunos
10985
  need_lib_prefix=no
10986
  need_version=no
10987
  case $host_cpu in
10988
  ia64*)
10989
    shrext_cmds='.so'
10990
    hardcode_into_libs=yes
10991
    dynamic_linker="$host_os dld.so"
10992
    shlibpath_var=LD_LIBRARY_PATH
10993
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10994
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
    soname_spec='${libname}${release}${shared_ext}$major'
10996
    if test "X$HPUX_IA64_MODE" = X32; then
10997
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10998
    else
10999
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11000
    fi
11001
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11002
    ;;
11003
  hppa*64*)
11004
    shrext_cmds='.sl'
11005
    hardcode_into_libs=yes
11006
    dynamic_linker="$host_os dld.sl"
11007
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11008
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11009
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010
    soname_spec='${libname}${release}${shared_ext}$major'
11011
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11012
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013
    ;;
11014
  *)
11015
    shrext_cmds='.sl'
11016
    dynamic_linker="$host_os dld.sl"
11017
    shlibpath_var=SHLIB_PATH
11018
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11019
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020
    soname_spec='${libname}${release}${shared_ext}$major'
11021
    ;;
11022
  esac
11023
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11024
  postinstall_cmds='chmod 555 $lib'
11025
  # or fails outright, so override atomically:
11026
  install_override_mode=555
11027
  ;;
11028
 
11029
interix[3-9]*)
11030
  version_type=linux
11031
  need_lib_prefix=no
11032
  need_version=no
11033
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11034
  soname_spec='${libname}${release}${shared_ext}$major'
11035
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11036
  shlibpath_var=LD_LIBRARY_PATH
11037
  shlibpath_overrides_runpath=no
11038
  hardcode_into_libs=yes
11039
  ;;
11040
 
11041
irix5* | irix6* | nonstopux*)
11042
  case $host_os in
11043
    nonstopux*) version_type=nonstopux ;;
11044
    *)
11045
        if test "$lt_cv_prog_gnu_ld" = yes; then
11046
                version_type=linux
11047
        else
11048
                version_type=irix
11049
        fi ;;
11050
  esac
11051
  need_lib_prefix=no
11052
  need_version=no
11053
  soname_spec='${libname}${release}${shared_ext}$major'
11054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11055
  case $host_os in
11056
  irix5* | nonstopux*)
11057
    libsuff= shlibsuff=
11058
    ;;
11059
  *)
11060
    case $LD in # libtool.m4 will add one of these switches to LD
11061
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11062
      libsuff= shlibsuff= libmagic=32-bit;;
11063
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11064
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11065
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11066
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11067
    *) libsuff= shlibsuff= libmagic=never-match;;
11068
    esac
11069
    ;;
11070
  esac
11071
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11072
  shlibpath_overrides_runpath=no
11073
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11074
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11075
  hardcode_into_libs=yes
11076
  ;;
11077
 
11078
# No shared lib support for Linux oldld, aout, or coff.
11079
linux*oldld* | linux*aout* | linux*coff*)
11080
  dynamic_linker=no
11081
  ;;
11082
 
11083
# This must be Linux ELF.
11084
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11085
  version_type=linux
11086
  need_lib_prefix=no
11087
  need_version=no
11088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089
  soname_spec='${libname}${release}${shared_ext}$major'
11090
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11091
  shlibpath_var=LD_LIBRARY_PATH
11092
  shlibpath_overrides_runpath=no
11093
 
11094
  # Some binutils ld are patched to set DT_RUNPATH
11095
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11096
  $as_echo_n "(cached) " >&6
11097
else
11098
  lt_cv_shlibpath_overrides_runpath=no
11099
    save_LDFLAGS=$LDFLAGS
11100
    save_libdir=$libdir
11101
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11102
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11103
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104
/* end confdefs.h.  */
11105
 
11106
int
11107
main ()
11108
{
11109
 
11110
  ;
11111
  return 0;
11112
}
11113
_ACEOF
11114
if ac_fn_c_try_link "$LINENO"; then :
11115
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11116
  lt_cv_shlibpath_overrides_runpath=yes
11117
fi
11118
fi
11119
rm -f core conftest.err conftest.$ac_objext \
11120
    conftest$ac_exeext conftest.$ac_ext
11121
    LDFLAGS=$save_LDFLAGS
11122
    libdir=$save_libdir
11123
 
11124
fi
11125
 
11126
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11127
 
11128
  # This implies no fast_install, which is unacceptable.
11129
  # Some rework will be needed to allow for fast_install
11130
  # before this can be enabled.
11131
  hardcode_into_libs=yes
11132
 
11133
  # Append ld.so.conf contents to the search path
11134
  if test -f /etc/ld.so.conf; then
11135
    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' ' '`
11136
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11137
  fi
11138
 
11139
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11140
  # powerpc, because MkLinux only supported shared libraries with the
11141
  # GNU dynamic linker.  Since this was broken with cross compilers,
11142
  # most powerpc-linux boxes support dynamic linking these days and
11143
  # people can always --disable-shared, the test was removed, and we
11144
  # assume the GNU/Linux dynamic linker is in use.
11145
  dynamic_linker='GNU/Linux ld.so'
11146
  ;;
11147
 
11148
netbsd*)
11149
  version_type=sunos
11150
  need_lib_prefix=no
11151
  need_version=no
11152
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11153
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11154
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11155
    dynamic_linker='NetBSD (a.out) ld.so'
11156
  else
11157
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11158
    soname_spec='${libname}${release}${shared_ext}$major'
11159
    dynamic_linker='NetBSD ld.elf_so'
11160
  fi
11161
  shlibpath_var=LD_LIBRARY_PATH
11162
  shlibpath_overrides_runpath=yes
11163
  hardcode_into_libs=yes
11164
  ;;
11165
 
11166
newsos6)
11167
  version_type=linux
11168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169
  shlibpath_var=LD_LIBRARY_PATH
11170
  shlibpath_overrides_runpath=yes
11171
  ;;
11172
 
11173
*nto* | *qnx*)
11174
  version_type=qnx
11175
  need_lib_prefix=no
11176
  need_version=no
11177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178
  soname_spec='${libname}${release}${shared_ext}$major'
11179
  shlibpath_var=LD_LIBRARY_PATH
11180
  shlibpath_overrides_runpath=no
11181
  hardcode_into_libs=yes
11182
  dynamic_linker='ldqnx.so'
11183
  ;;
11184
 
11185
openbsd*)
11186
  version_type=sunos
11187
  sys_lib_dlsearch_path_spec="/usr/lib"
11188
  need_lib_prefix=no
11189
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11190
  case $host_os in
11191
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11192
    *)                          need_version=no  ;;
11193
  esac
11194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11195
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11196
  shlibpath_var=LD_LIBRARY_PATH
11197
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11198
    case $host_os in
11199
      openbsd2.[89] | openbsd2.[89].*)
11200
        shlibpath_overrides_runpath=no
11201
        ;;
11202
      *)
11203
        shlibpath_overrides_runpath=yes
11204
        ;;
11205
      esac
11206
  else
11207
    shlibpath_overrides_runpath=yes
11208
  fi
11209
  ;;
11210
 
11211
os2*)
11212
  libname_spec='$name'
11213
  shrext_cmds=".dll"
11214
  need_lib_prefix=no
11215
  library_names_spec='$libname${shared_ext} $libname.a'
11216
  dynamic_linker='OS/2 ld.exe'
11217
  shlibpath_var=LIBPATH
11218
  ;;
11219
 
11220
osf3* | osf4* | osf5*)
11221
  version_type=osf
11222
  need_lib_prefix=no
11223
  need_version=no
11224
  soname_spec='${libname}${release}${shared_ext}$major'
11225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226
  shlibpath_var=LD_LIBRARY_PATH
11227
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11228
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11229
  ;;
11230
 
11231
rdos*)
11232
  dynamic_linker=no
11233
  ;;
11234
 
11235
solaris*)
11236
  version_type=linux
11237
  need_lib_prefix=no
11238
  need_version=no
11239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240
  soname_spec='${libname}${release}${shared_ext}$major'
11241
  shlibpath_var=LD_LIBRARY_PATH
11242
  shlibpath_overrides_runpath=yes
11243
  hardcode_into_libs=yes
11244
  # ldd complains unless libraries are executable
11245
  postinstall_cmds='chmod +x $lib'
11246
  ;;
11247
 
11248
sunos4*)
11249
  version_type=sunos
11250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11251
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11252
  shlibpath_var=LD_LIBRARY_PATH
11253
  shlibpath_overrides_runpath=yes
11254
  if test "$with_gnu_ld" = yes; then
11255
    need_lib_prefix=no
11256
  fi
11257
  need_version=yes
11258
  ;;
11259
 
11260
sysv4 | sysv4.3*)
11261
  version_type=linux
11262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263
  soname_spec='${libname}${release}${shared_ext}$major'
11264
  shlibpath_var=LD_LIBRARY_PATH
11265
  case $host_vendor in
11266
    sni)
11267
      shlibpath_overrides_runpath=no
11268
      need_lib_prefix=no
11269
      runpath_var=LD_RUN_PATH
11270
      ;;
11271
    siemens)
11272
      need_lib_prefix=no
11273
      ;;
11274
    motorola)
11275
      need_lib_prefix=no
11276
      need_version=no
11277
      shlibpath_overrides_runpath=no
11278
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11279
      ;;
11280
  esac
11281
  ;;
11282
 
11283
sysv4*MP*)
11284
  if test -d /usr/nec ;then
11285
    version_type=linux
11286
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11287
    soname_spec='$libname${shared_ext}.$major'
11288
    shlibpath_var=LD_LIBRARY_PATH
11289
  fi
11290
  ;;
11291
 
11292
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11293
  version_type=freebsd-elf
11294
  need_lib_prefix=no
11295
  need_version=no
11296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297
  soname_spec='${libname}${release}${shared_ext}$major'
11298
  shlibpath_var=LD_LIBRARY_PATH
11299
  shlibpath_overrides_runpath=yes
11300
  hardcode_into_libs=yes
11301
  if test "$with_gnu_ld" = yes; then
11302
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11303
  else
11304
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11305
    case $host_os in
11306
      sco3.2v5*)
11307
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11308
        ;;
11309
    esac
11310
  fi
11311
  sys_lib_dlsearch_path_spec='/usr/lib'
11312
  ;;
11313
 
11314
tpf*)
11315
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11316
  version_type=linux
11317
  need_lib_prefix=no
11318
  need_version=no
11319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320
  shlibpath_var=LD_LIBRARY_PATH
11321
  shlibpath_overrides_runpath=no
11322
  hardcode_into_libs=yes
11323
  ;;
11324
 
11325
uts4*)
11326
  version_type=linux
11327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328
  soname_spec='${libname}${release}${shared_ext}$major'
11329
  shlibpath_var=LD_LIBRARY_PATH
11330
  ;;
11331
 
11332
*)
11333
  dynamic_linker=no
11334
  ;;
11335
esac
11336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11337
$as_echo "$dynamic_linker" >&6; }
11338
test "$dynamic_linker" = no && can_build_shared=no
11339
 
11340
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11341
if test "$GCC" = yes; then
11342
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11343
fi
11344
 
11345
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11346
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11347
fi
11348
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11349
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11350
fi
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
 
11363
 
11364
 
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
 
11372
 
11373
 
11374
 
11375
 
11376
 
11377
 
11378
 
11379
 
11380
 
11381
 
11382
 
11383
 
11384
 
11385
 
11386
 
11387
 
11388
 
11389
 
11390
 
11391
 
11392
 
11393
 
11394
 
11395
 
11396
 
11397
 
11398
 
11399
 
11400
 
11401
 
11402
 
11403
 
11404
 
11405
 
11406
 
11407
 
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
 
11419
 
11420
 
11421
 
11422
 
11423
 
11424
 
11425
 
11426
 
11427
 
11428
 
11429
 
11430
 
11431
 
11432
 
11433
 
11434
 
11435
 
11436
 
11437
 
11438
 
11439
 
11440
 
11441
 
11442
 
11443
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11444
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11445
hardcode_action=
11446
if test -n "$hardcode_libdir_flag_spec" ||
11447
   test -n "$runpath_var" ||
11448
   test "X$hardcode_automatic" = "Xyes" ; then
11449
 
11450
  # We can hardcode non-existent directories.
11451
  if test "$hardcode_direct" != no &&
11452
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11453
     # have to relink, otherwise we might link with an installed library
11454
     # when we should be linking with a yet-to-be-installed one
11455
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11456
     test "$hardcode_minus_L" != no; then
11457
    # Linking always hardcodes the temporary library directory.
11458
    hardcode_action=relink
11459
  else
11460
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11461
    hardcode_action=immediate
11462
  fi
11463
else
11464
  # We cannot hardcode anything, or else we can only hardcode existing
11465
  # directories.
11466
  hardcode_action=unsupported
11467
fi
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11469
$as_echo "$hardcode_action" >&6; }
11470
 
11471
if test "$hardcode_action" = relink ||
11472
   test "$inherit_rpath" = yes; then
11473
  # Fast installation is not supported
11474
  enable_fast_install=no
11475
elif test "$shlibpath_overrides_runpath" = yes ||
11476
     test "$enable_shared" = no; then
11477
  # Fast installation is not necessary
11478
  enable_fast_install=needless
11479
fi
11480
 
11481
 
11482
 
11483
 
11484
 
11485
 
11486
  if test "x$enable_dlopen" != xyes; then
11487
  enable_dlopen=unknown
11488
  enable_dlopen_self=unknown
11489
  enable_dlopen_self_static=unknown
11490
else
11491
  lt_cv_dlopen=no
11492
  lt_cv_dlopen_libs=
11493
 
11494
  case $host_os in
11495
  beos*)
11496
    lt_cv_dlopen="load_add_on"
11497
    lt_cv_dlopen_libs=
11498
    lt_cv_dlopen_self=yes
11499
    ;;
11500
 
11501
  mingw* | pw32* | cegcc*)
11502
    lt_cv_dlopen="LoadLibrary"
11503
    lt_cv_dlopen_libs=
11504
    ;;
11505
 
11506
  cygwin*)
11507
    lt_cv_dlopen="dlopen"
11508
    lt_cv_dlopen_libs=
11509
    ;;
11510
 
11511
  darwin*)
11512
  # if libdl is installed we need to link against it
11513
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11514
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11515
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11516
  $as_echo_n "(cached) " >&6
11517
else
11518
  ac_check_lib_save_LIBS=$LIBS
11519
LIBS="-ldl  $LIBS"
11520
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521
/* end confdefs.h.  */
11522
 
11523
/* Override any GCC internal prototype to avoid an error.
11524
   Use char because int might match the return type of a GCC
11525
   builtin and then its argument prototype would still apply.  */
11526
#ifdef __cplusplus
11527
extern "C"
11528
#endif
11529
char dlopen ();
11530
int
11531
main ()
11532
{
11533
return dlopen ();
11534
  ;
11535
  return 0;
11536
}
11537
_ACEOF
11538
if ac_fn_c_try_link "$LINENO"; then :
11539
  ac_cv_lib_dl_dlopen=yes
11540
else
11541
  ac_cv_lib_dl_dlopen=no
11542
fi
11543
rm -f core conftest.err conftest.$ac_objext \
11544
    conftest$ac_exeext conftest.$ac_ext
11545
LIBS=$ac_check_lib_save_LIBS
11546
fi
11547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11548
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11549
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11550
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11551
else
11552
 
11553
    lt_cv_dlopen="dyld"
11554
    lt_cv_dlopen_libs=
11555
    lt_cv_dlopen_self=yes
11556
 
11557
fi
11558
 
11559
    ;;
11560
 
11561
  *)
11562
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11563
if test "x$ac_cv_func_shl_load" = x""yes; then :
11564
  lt_cv_dlopen="shl_load"
11565
else
11566
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11567
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11568
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11569
  $as_echo_n "(cached) " >&6
11570
else
11571
  ac_check_lib_save_LIBS=$LIBS
11572
LIBS="-ldld  $LIBS"
11573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574
/* end confdefs.h.  */
11575
 
11576
/* Override any GCC internal prototype to avoid an error.
11577
   Use char because int might match the return type of a GCC
11578
   builtin and then its argument prototype would still apply.  */
11579
#ifdef __cplusplus
11580
extern "C"
11581
#endif
11582
char shl_load ();
11583
int
11584
main ()
11585
{
11586
return shl_load ();
11587
  ;
11588
  return 0;
11589
}
11590
_ACEOF
11591
if ac_fn_c_try_link "$LINENO"; then :
11592
  ac_cv_lib_dld_shl_load=yes
11593
else
11594
  ac_cv_lib_dld_shl_load=no
11595
fi
11596
rm -f core conftest.err conftest.$ac_objext \
11597
    conftest$ac_exeext conftest.$ac_ext
11598
LIBS=$ac_check_lib_save_LIBS
11599
fi
11600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11601
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11602
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11603
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11604
else
11605
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11606
if test "x$ac_cv_func_dlopen" = x""yes; then :
11607
  lt_cv_dlopen="dlopen"
11608
else
11609
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11610
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11611
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11612
  $as_echo_n "(cached) " >&6
11613
else
11614
  ac_check_lib_save_LIBS=$LIBS
11615
LIBS="-ldl  $LIBS"
11616
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617
/* end confdefs.h.  */
11618
 
11619
/* Override any GCC internal prototype to avoid an error.
11620
   Use char because int might match the return type of a GCC
11621
   builtin and then its argument prototype would still apply.  */
11622
#ifdef __cplusplus
11623
extern "C"
11624
#endif
11625
char dlopen ();
11626
int
11627
main ()
11628
{
11629
return dlopen ();
11630
  ;
11631
  return 0;
11632
}
11633
_ACEOF
11634
if ac_fn_c_try_link "$LINENO"; then :
11635
  ac_cv_lib_dl_dlopen=yes
11636
else
11637
  ac_cv_lib_dl_dlopen=no
11638
fi
11639
rm -f core conftest.err conftest.$ac_objext \
11640
    conftest$ac_exeext conftest.$ac_ext
11641
LIBS=$ac_check_lib_save_LIBS
11642
fi
11643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11644
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11645
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11646
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11647
else
11648
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11649
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11650
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11651
  $as_echo_n "(cached) " >&6
11652
else
11653
  ac_check_lib_save_LIBS=$LIBS
11654
LIBS="-lsvld  $LIBS"
11655
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656
/* end confdefs.h.  */
11657
 
11658
/* Override any GCC internal prototype to avoid an error.
11659
   Use char because int might match the return type of a GCC
11660
   builtin and then its argument prototype would still apply.  */
11661
#ifdef __cplusplus
11662
extern "C"
11663
#endif
11664
char dlopen ();
11665
int
11666
main ()
11667
{
11668
return dlopen ();
11669
  ;
11670
  return 0;
11671
}
11672
_ACEOF
11673
if ac_fn_c_try_link "$LINENO"; then :
11674
  ac_cv_lib_svld_dlopen=yes
11675
else
11676
  ac_cv_lib_svld_dlopen=no
11677
fi
11678
rm -f core conftest.err conftest.$ac_objext \
11679
    conftest$ac_exeext conftest.$ac_ext
11680
LIBS=$ac_check_lib_save_LIBS
11681
fi
11682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11683
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11684
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11685
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11686
else
11687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11688
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11689
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11690
  $as_echo_n "(cached) " >&6
11691
else
11692
  ac_check_lib_save_LIBS=$LIBS
11693
LIBS="-ldld  $LIBS"
11694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695
/* end confdefs.h.  */
11696
 
11697
/* Override any GCC internal prototype to avoid an error.
11698
   Use char because int might match the return type of a GCC
11699
   builtin and then its argument prototype would still apply.  */
11700
#ifdef __cplusplus
11701
extern "C"
11702
#endif
11703
char dld_link ();
11704
int
11705
main ()
11706
{
11707
return dld_link ();
11708
  ;
11709
  return 0;
11710
}
11711
_ACEOF
11712
if ac_fn_c_try_link "$LINENO"; then :
11713
  ac_cv_lib_dld_dld_link=yes
11714
else
11715
  ac_cv_lib_dld_dld_link=no
11716
fi
11717
rm -f core conftest.err conftest.$ac_objext \
11718
    conftest$ac_exeext conftest.$ac_ext
11719
LIBS=$ac_check_lib_save_LIBS
11720
fi
11721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11722
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11723
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11724
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11725
fi
11726
 
11727
 
11728
fi
11729
 
11730
 
11731
fi
11732
 
11733
 
11734
fi
11735
 
11736
 
11737
fi
11738
 
11739
 
11740
fi
11741
 
11742
    ;;
11743
  esac
11744
 
11745
  if test "x$lt_cv_dlopen" != xno; then
11746
    enable_dlopen=yes
11747
  else
11748
    enable_dlopen=no
11749
  fi
11750
 
11751
  case $lt_cv_dlopen in
11752
  dlopen)
11753
    save_CPPFLAGS="$CPPFLAGS"
11754
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11755
 
11756
    save_LDFLAGS="$LDFLAGS"
11757
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11758
 
11759
    save_LIBS="$LIBS"
11760
    LIBS="$lt_cv_dlopen_libs $LIBS"
11761
 
11762
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11763
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11764
if test "${lt_cv_dlopen_self+set}" = set; then :
11765
  $as_echo_n "(cached) " >&6
11766
else
11767
          if test "$cross_compiling" = yes; then :
11768
  lt_cv_dlopen_self=cross
11769
else
11770
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11771
  lt_status=$lt_dlunknown
11772
  cat > conftest.$ac_ext <<_LT_EOF
11773
#line 11773 "configure"
11774
#include "confdefs.h"
11775
 
11776
#if HAVE_DLFCN_H
11777
#include 
11778
#endif
11779
 
11780
#include 
11781
 
11782
#ifdef RTLD_GLOBAL
11783
#  define LT_DLGLOBAL           RTLD_GLOBAL
11784
#else
11785
#  ifdef DL_GLOBAL
11786
#    define LT_DLGLOBAL         DL_GLOBAL
11787
#  else
11788
#    define LT_DLGLOBAL         0
11789
#  endif
11790
#endif
11791
 
11792
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11793
   find out it does not work in some platform. */
11794
#ifndef LT_DLLAZY_OR_NOW
11795
#  ifdef RTLD_LAZY
11796
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11797
#  else
11798
#    ifdef DL_LAZY
11799
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11800
#    else
11801
#      ifdef RTLD_NOW
11802
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11803
#      else
11804
#        ifdef DL_NOW
11805
#          define LT_DLLAZY_OR_NOW      DL_NOW
11806
#        else
11807
#          define LT_DLLAZY_OR_NOW      0
11808
#        endif
11809
#      endif
11810
#    endif
11811
#  endif
11812
#endif
11813
 
11814
/* When -fvisbility=hidden is used, assume the code has been annotated
11815
   correspondingly for the symbols needed.  */
11816
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11817
void fnord () __attribute__((visibility("default")));
11818
#endif
11819
 
11820
void fnord () { int i=42; }
11821
int main ()
11822
{
11823
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11824
  int status = $lt_dlunknown;
11825
 
11826
  if (self)
11827
    {
11828
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11829
      else
11830
        {
11831
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11832
          else puts (dlerror ());
11833
        }
11834
      /* dlclose (self); */
11835
    }
11836
  else
11837
    puts (dlerror ());
11838
 
11839
  return status;
11840
}
11841
_LT_EOF
11842
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11843
  (eval $ac_link) 2>&5
11844
  ac_status=$?
11845
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11847
    (./conftest; exit; ) >&5 2>/dev/null
11848
    lt_status=$?
11849
    case x$lt_status in
11850
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11851
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11852
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11853
    esac
11854
  else :
11855
    # compilation failed
11856
    lt_cv_dlopen_self=no
11857
  fi
11858
fi
11859
rm -fr conftest*
11860
 
11861
 
11862
fi
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11864
$as_echo "$lt_cv_dlopen_self" >&6; }
11865
 
11866
    if test "x$lt_cv_dlopen_self" = xyes; then
11867
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11868
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11869
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11870
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11871
  $as_echo_n "(cached) " >&6
11872
else
11873
          if test "$cross_compiling" = yes; then :
11874
  lt_cv_dlopen_self_static=cross
11875
else
11876
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11877
  lt_status=$lt_dlunknown
11878
  cat > conftest.$ac_ext <<_LT_EOF
11879
#line 11879 "configure"
11880
#include "confdefs.h"
11881
 
11882
#if HAVE_DLFCN_H
11883
#include 
11884
#endif
11885
 
11886
#include 
11887
 
11888
#ifdef RTLD_GLOBAL
11889
#  define LT_DLGLOBAL           RTLD_GLOBAL
11890
#else
11891
#  ifdef DL_GLOBAL
11892
#    define LT_DLGLOBAL         DL_GLOBAL
11893
#  else
11894
#    define LT_DLGLOBAL         0
11895
#  endif
11896
#endif
11897
 
11898
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11899
   find out it does not work in some platform. */
11900
#ifndef LT_DLLAZY_OR_NOW
11901
#  ifdef RTLD_LAZY
11902
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11903
#  else
11904
#    ifdef DL_LAZY
11905
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11906
#    else
11907
#      ifdef RTLD_NOW
11908
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11909
#      else
11910
#        ifdef DL_NOW
11911
#          define LT_DLLAZY_OR_NOW      DL_NOW
11912
#        else
11913
#          define LT_DLLAZY_OR_NOW      0
11914
#        endif
11915
#      endif
11916
#    endif
11917
#  endif
11918
#endif
11919
 
11920
/* When -fvisbility=hidden is used, assume the code has been annotated
11921
   correspondingly for the symbols needed.  */
11922
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11923
void fnord () __attribute__((visibility("default")));
11924
#endif
11925
 
11926
void fnord () { int i=42; }
11927
int main ()
11928
{
11929
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11930
  int status = $lt_dlunknown;
11931
 
11932
  if (self)
11933
    {
11934
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11935
      else
11936
        {
11937
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11938
          else puts (dlerror ());
11939
        }
11940
      /* dlclose (self); */
11941
    }
11942
  else
11943
    puts (dlerror ());
11944
 
11945
  return status;
11946
}
11947
_LT_EOF
11948
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11949
  (eval $ac_link) 2>&5
11950
  ac_status=$?
11951
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11953
    (./conftest; exit; ) >&5 2>/dev/null
11954
    lt_status=$?
11955
    case x$lt_status in
11956
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11957
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11958
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11959
    esac
11960
  else :
11961
    # compilation failed
11962
    lt_cv_dlopen_self_static=no
11963
  fi
11964
fi
11965
rm -fr conftest*
11966
 
11967
 
11968
fi
11969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11970
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11971
    fi
11972
 
11973
    CPPFLAGS="$save_CPPFLAGS"
11974
    LDFLAGS="$save_LDFLAGS"
11975
    LIBS="$save_LIBS"
11976
    ;;
11977
  esac
11978
 
11979
  case $lt_cv_dlopen_self in
11980
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11981
  *) enable_dlopen_self=unknown ;;
11982
  esac
11983
 
11984
  case $lt_cv_dlopen_self_static in
11985
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11986
  *) enable_dlopen_self_static=unknown ;;
11987
  esac
11988
fi
11989
 
11990
 
11991
 
11992
 
11993
 
11994
 
11995
 
11996
 
11997
 
11998
 
11999
 
12000
 
12001
 
12002
 
12003
 
12004
 
12005
 
12006
striplib=
12007
old_striplib=
12008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12009
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12010
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12011
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12012
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014
$as_echo "yes" >&6; }
12015
else
12016
# FIXME - insert some real tests, host_os isn't really good enough
12017
  case $host_os in
12018
  darwin*)
12019
    if test -n "$STRIP" ; then
12020
      striplib="$STRIP -x"
12021
      old_striplib="$STRIP -S"
12022
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023
$as_echo "yes" >&6; }
12024
    else
12025
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026
$as_echo "no" >&6; }
12027
    fi
12028
    ;;
12029
  *)
12030
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031
$as_echo "no" >&6; }
12032
    ;;
12033
  esac
12034
fi
12035
 
12036
 
12037
 
12038
 
12039
 
12040
 
12041
 
12042
 
12043
 
12044
 
12045
 
12046
 
12047
  # Report which library types will actually be built
12048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12049
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12051
$as_echo "$can_build_shared" >&6; }
12052
 
12053
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12054
$as_echo_n "checking whether to build shared libraries... " >&6; }
12055
  test "$can_build_shared" = "no" && enable_shared=no
12056
 
12057
  # On AIX, shared libraries and static libraries use the same namespace, and
12058
  # are all built from PIC.
12059
  case $host_os in
12060
  aix3*)
12061
    test "$enable_shared" = yes && enable_static=no
12062
    if test -n "$RANLIB"; then
12063
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12064
      postinstall_cmds='$RANLIB $lib'
12065
    fi
12066
    ;;
12067
 
12068
  aix[4-9]*)
12069
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12070
      test "$enable_shared" = yes && enable_static=no
12071
    fi
12072
    ;;
12073
  esac
12074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12075
$as_echo "$enable_shared" >&6; }
12076
 
12077
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12078
$as_echo_n "checking whether to build static libraries... " >&6; }
12079
  # Make sure either enable_shared or enable_static is yes.
12080
  test "$enable_shared" = yes || enable_static=yes
12081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12082
$as_echo "$enable_static" >&6; }
12083
 
12084
 
12085
 
12086
 
12087
fi
12088
ac_ext=c
12089
ac_cpp='$CPP $CPPFLAGS'
12090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12093
 
12094
CC="$lt_save_CC"
12095
 
12096
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12097
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12098
    (test "X$CXX" != "Xg++"))) ; then
12099
  ac_ext=cpp
12100
ac_cpp='$CXXCPP $CPPFLAGS'
12101
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12102
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12103
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12105
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12106
if test -z "$CXXCPP"; then
12107
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12108
  $as_echo_n "(cached) " >&6
12109
else
12110
      # Double quotes because CXXCPP needs to be expanded
12111
    for CXXCPP in "$CXX -E" "/lib/cpp"
12112
    do
12113
      ac_preproc_ok=false
12114
for ac_cxx_preproc_warn_flag in '' yes
12115
do
12116
  # Use a header file that comes with gcc, so configuring glibc
12117
  # with a fresh cross-compiler works.
12118
  # Prefer  to  if __STDC__ is defined, since
12119
  #  exists even on freestanding compilers.
12120
  # On the NeXT, cc -E runs the code through the compiler's parser,
12121
  # not just through cpp. "Syntax error" is here to catch this case.
12122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123
/* end confdefs.h.  */
12124
#ifdef __STDC__
12125
# include 
12126
#else
12127
# include 
12128
#endif
12129
                     Syntax error
12130
_ACEOF
12131
if ac_fn_cxx_try_cpp "$LINENO"; then :
12132
 
12133
else
12134
  # Broken: fails on valid input.
12135
continue
12136
fi
12137
rm -f conftest.err conftest.$ac_ext
12138
 
12139
  # OK, works on sane cases.  Now check whether nonexistent headers
12140
  # can be detected and how.
12141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142
/* end confdefs.h.  */
12143
#include 
12144
_ACEOF
12145
if ac_fn_cxx_try_cpp "$LINENO"; then :
12146
  # Broken: success on invalid input.
12147
continue
12148
else
12149
  # Passes both tests.
12150
ac_preproc_ok=:
12151
break
12152
fi
12153
rm -f conftest.err conftest.$ac_ext
12154
 
12155
done
12156
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12157
rm -f conftest.err conftest.$ac_ext
12158
if $ac_preproc_ok; then :
12159
  break
12160
fi
12161
 
12162
    done
12163
    ac_cv_prog_CXXCPP=$CXXCPP
12164
 
12165
fi
12166
  CXXCPP=$ac_cv_prog_CXXCPP
12167
else
12168
  ac_cv_prog_CXXCPP=$CXXCPP
12169
fi
12170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12171
$as_echo "$CXXCPP" >&6; }
12172
ac_preproc_ok=false
12173
for ac_cxx_preproc_warn_flag in '' yes
12174
do
12175
  # Use a header file that comes with gcc, so configuring glibc
12176
  # with a fresh cross-compiler works.
12177
  # Prefer  to  if __STDC__ is defined, since
12178
  #  exists even on freestanding compilers.
12179
  # On the NeXT, cc -E runs the code through the compiler's parser,
12180
  # not just through cpp. "Syntax error" is here to catch this case.
12181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182
/* end confdefs.h.  */
12183
#ifdef __STDC__
12184
# include 
12185
#else
12186
# include 
12187
#endif
12188
                     Syntax error
12189
_ACEOF
12190
if ac_fn_cxx_try_cpp "$LINENO"; then :
12191
 
12192
else
12193
  # Broken: fails on valid input.
12194
continue
12195
fi
12196
rm -f conftest.err conftest.$ac_ext
12197
 
12198
  # OK, works on sane cases.  Now check whether nonexistent headers
12199
  # can be detected and how.
12200
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201
/* end confdefs.h.  */
12202
#include 
12203
_ACEOF
12204
if ac_fn_cxx_try_cpp "$LINENO"; then :
12205
  # Broken: success on invalid input.
12206
continue
12207
else
12208
  # Passes both tests.
12209
ac_preproc_ok=:
12210
break
12211
fi
12212
rm -f conftest.err conftest.$ac_ext
12213
 
12214
done
12215
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12216
rm -f conftest.err conftest.$ac_ext
12217
if $ac_preproc_ok; then :
12218
 
12219
else
12220
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12221
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12222
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12223
See \`config.log' for more details." "$LINENO" 5; }
12224
fi
12225
 
12226
ac_ext=c
12227
ac_cpp='$CPP $CPPFLAGS'
12228
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231
 
12232
else
12233
  _lt_caught_CXX_error=yes
12234
fi
12235
 
12236
ac_ext=cpp
12237
ac_cpp='$CXXCPP $CPPFLAGS'
12238
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12239
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12240
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12241
 
12242
archive_cmds_need_lc_CXX=no
12243
allow_undefined_flag_CXX=
12244
always_export_symbols_CXX=no
12245
archive_expsym_cmds_CXX=
12246
compiler_needs_object_CXX=no
12247
export_dynamic_flag_spec_CXX=
12248
hardcode_direct_CXX=no
12249
hardcode_direct_absolute_CXX=no
12250
hardcode_libdir_flag_spec_CXX=
12251
hardcode_libdir_flag_spec_ld_CXX=
12252
hardcode_libdir_separator_CXX=
12253
hardcode_minus_L_CXX=no
12254
hardcode_shlibpath_var_CXX=unsupported
12255
hardcode_automatic_CXX=no
12256
inherit_rpath_CXX=no
12257
module_cmds_CXX=
12258
module_expsym_cmds_CXX=
12259
link_all_deplibs_CXX=unknown
12260
old_archive_cmds_CXX=$old_archive_cmds
12261
reload_flag_CXX=$reload_flag
12262
reload_cmds_CXX=$reload_cmds
12263
no_undefined_flag_CXX=
12264
whole_archive_flag_spec_CXX=
12265
enable_shared_with_static_runtimes_CXX=no
12266
 
12267
# Source file extension for C++ test sources.
12268
ac_ext=cpp
12269
 
12270
# Object file extension for compiled C++ test sources.
12271
objext=o
12272
objext_CXX=$objext
12273
 
12274
# No sense in running all these tests if we already determined that
12275
# the CXX compiler isn't working.  Some variables (like enable_shared)
12276
# are currently assumed to apply to all compilers on this platform,
12277
# and will be corrupted by setting them based on a non-working compiler.
12278
if test "$_lt_caught_CXX_error" != yes; then
12279
  # Code to be used in simple compile tests
12280
  lt_simple_compile_test_code="int some_variable = 0;"
12281
 
12282
  # Code to be used in simple link tests
12283
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12284
 
12285
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12286
 
12287
 
12288
 
12289
 
12290
 
12291
 
12292
# If no C compiler was specified, use CC.
12293
LTCC=${LTCC-"$CC"}
12294
 
12295
# If no C compiler flags were specified, use CFLAGS.
12296
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12297
 
12298
# Allow CC to be a program name with arguments.
12299
compiler=$CC
12300
 
12301
 
12302
  # save warnings/boilerplate of simple test code
12303
  ac_outfile=conftest.$ac_objext
12304
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12305
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12306
_lt_compiler_boilerplate=`cat conftest.err`
12307
$RM conftest*
12308
 
12309
  ac_outfile=conftest.$ac_objext
12310
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12311
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312
_lt_linker_boilerplate=`cat conftest.err`
12313
$RM -r conftest*
12314
 
12315
 
12316
  # Allow CC to be a program name with arguments.
12317
  lt_save_CC=$CC
12318
  lt_save_LD=$LD
12319
  lt_save_GCC=$GCC
12320
  GCC=$GXX
12321
  lt_save_with_gnu_ld=$with_gnu_ld
12322
  lt_save_path_LD=$lt_cv_path_LD
12323
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12324
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12325
  else
12326
    $as_unset lt_cv_prog_gnu_ld
12327
  fi
12328
  if test -n "${lt_cv_path_LDCXX+set}"; then
12329
    lt_cv_path_LD=$lt_cv_path_LDCXX
12330
  else
12331
    $as_unset lt_cv_path_LD
12332
  fi
12333
  test -z "${LDCXX+set}" || LD=$LDCXX
12334
  CC=${CXX-"c++"}
12335
  compiler=$CC
12336
  compiler_CXX=$CC
12337
  for cc_temp in $compiler""; do
12338
  case $cc_temp in
12339
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12340
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12341
    \-*) ;;
12342
    *) break;;
12343
  esac
12344
done
12345
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12346
 
12347
 
12348
  if test -n "$compiler"; then
12349
    # We don't want -fno-exception when compiling C++ code, so set the
12350
    # no_builtin_flag separately
12351
    if test "$GXX" = yes; then
12352
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12353
    else
12354
      lt_prog_compiler_no_builtin_flag_CXX=
12355
    fi
12356
 
12357
    if test "$GXX" = yes; then
12358
      # Set up default GNU C++ configuration
12359
 
12360
 
12361
 
12362
# Check whether --with-gnu-ld was given.
12363
if test "${with_gnu_ld+set}" = set; then :
12364
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12365
else
12366
  with_gnu_ld=no
12367
fi
12368
 
12369
ac_prog=ld
12370
if test "$GCC" = yes; then
12371
  # Check if gcc -print-prog-name=ld gives a path.
12372
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12373
$as_echo_n "checking for ld used by $CC... " >&6; }
12374
  case $host in
12375
  *-*-mingw*)
12376
    # gcc leaves a trailing carriage return which upsets mingw
12377
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12378
  *)
12379
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12380
  esac
12381
  case $ac_prog in
12382
    # Accept absolute paths.
12383
    [\\/]* | ?:[\\/]*)
12384
      re_direlt='/[^/][^/]*/\.\./'
12385
      # Canonicalize the pathname of ld
12386
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12387
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12388
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12389
      done
12390
      test -z "$LD" && LD="$ac_prog"
12391
      ;;
12392
  "")
12393
    # If it fails, then pretend we aren't using GCC.
12394
    ac_prog=ld
12395
    ;;
12396
  *)
12397
    # If it is relative, then search for the first ld in PATH.
12398
    with_gnu_ld=unknown
12399
    ;;
12400
  esac
12401
elif test "$with_gnu_ld" = yes; then
12402
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12403
$as_echo_n "checking for GNU ld... " >&6; }
12404
else
12405
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12406
$as_echo_n "checking for non-GNU ld... " >&6; }
12407
fi
12408
if test "${lt_cv_path_LD+set}" = set; then :
12409
  $as_echo_n "(cached) " >&6
12410
else
12411
  if test -z "$LD"; then
12412
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12413
  for ac_dir in $PATH; do
12414
    IFS="$lt_save_ifs"
12415
    test -z "$ac_dir" && ac_dir=.
12416
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417
      lt_cv_path_LD="$ac_dir/$ac_prog"
12418
      # Check to see if the program is GNU ld.  I'd rather use --version,
12419
      # but apparently some variants of GNU ld only accept -v.
12420
      # Break only if it was the GNU/non-GNU ld that we prefer.
12421
      case `"$lt_cv_path_LD" -v 2>&1 
12422
      *GNU* | *'with BFD'*)
12423
        test "$with_gnu_ld" != no && break
12424
        ;;
12425
      *)
12426
        test "$with_gnu_ld" != yes && break
12427
        ;;
12428
      esac
12429
    fi
12430
  done
12431
  IFS="$lt_save_ifs"
12432
else
12433
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434
fi
12435
fi
12436
 
12437
LD="$lt_cv_path_LD"
12438
if test -n "$LD"; then
12439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12440
$as_echo "$LD" >&6; }
12441
else
12442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443
$as_echo "no" >&6; }
12444
fi
12445
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12447
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12448
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12449
  $as_echo_n "(cached) " >&6
12450
else
12451
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12452
case `$LD -v 2>&1 
12453
*GNU* | *'with BFD'*)
12454
  lt_cv_prog_gnu_ld=yes
12455
  ;;
12456
*)
12457
  lt_cv_prog_gnu_ld=no
12458
  ;;
12459
esac
12460
fi
12461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12462
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12463
with_gnu_ld=$lt_cv_prog_gnu_ld
12464
 
12465
 
12466
 
12467
 
12468
 
12469
 
12470
 
12471
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12472
      # archiving commands below assume that GNU ld is being used.
12473
      if test "$with_gnu_ld" = yes; then
12474
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12475
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12476
 
12477
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12478
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12479
 
12480
        # If archive_cmds runs LD, not CC, wlarc should be empty
12481
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12482
        #     investigate it a little bit more. (MM)
12483
        wlarc='${wl}'
12484
 
12485
        # ancient GNU ld didn't support --whole-archive et. al.
12486
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12487
          $GREP 'no-whole-archive' > /dev/null; then
12488
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12489
        else
12490
          whole_archive_flag_spec_CXX=
12491
        fi
12492
      else
12493
        with_gnu_ld=no
12494
        wlarc=
12495
 
12496
        # A generic and very simple default shared library creation
12497
        # command for GNU C++ for the case where it uses the native
12498
        # linker, instead of GNU ld.  If possible, this setting should
12499
        # overridden to take advantage of the native linker features on
12500
        # the platform it is being used on.
12501
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12502
      fi
12503
 
12504
      # Commands to make compiler produce verbose output that lists
12505
      # what "hidden" libraries, object files and flags are used when
12506
      # linking a shared library.
12507
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12508
 
12509
    else
12510
      GXX=no
12511
      with_gnu_ld=no
12512
      wlarc=
12513
    fi
12514
 
12515
    # PORTME: fill in a description of your system's C++ link characteristics
12516
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12517
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12518
    ld_shlibs_CXX=yes
12519
    case $host_os in
12520
      aix3*)
12521
        # FIXME: insert proper C++ library support
12522
        ld_shlibs_CXX=no
12523
        ;;
12524
      aix[4-9]*)
12525
        if test "$host_cpu" = ia64; then
12526
          # On IA64, the linker does run time linking by default, so we don't
12527
          # have to do anything special.
12528
          aix_use_runtimelinking=no
12529
          exp_sym_flag='-Bexport'
12530
          no_entry_flag=""
12531
        else
12532
          aix_use_runtimelinking=no
12533
 
12534
          # Test if we are trying to use run time linking or normal
12535
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12536
          # need to do runtime linking.
12537
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12538
            for ld_flag in $LDFLAGS; do
12539
              case $ld_flag in
12540
              *-brtl*)
12541
                aix_use_runtimelinking=yes
12542
                break
12543
                ;;
12544
              esac
12545
            done
12546
            ;;
12547
          esac
12548
 
12549
          exp_sym_flag='-bexport'
12550
          no_entry_flag='-bnoentry'
12551
        fi
12552
 
12553
        # When large executables or shared objects are built, AIX ld can
12554
        # have problems creating the table of contents.  If linking a library
12555
        # or program results in "error TOC overflow" add -mminimal-toc to
12556
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12557
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12558
 
12559
        archive_cmds_CXX=''
12560
        hardcode_direct_CXX=yes
12561
        hardcode_direct_absolute_CXX=yes
12562
        hardcode_libdir_separator_CXX=':'
12563
        link_all_deplibs_CXX=yes
12564
        file_list_spec_CXX='${wl}-f,'
12565
 
12566
        if test "$GXX" = yes; then
12567
          case $host_os in aix4.[012]|aix4.[012].*)
12568
          # We only want to do this on AIX 4.2 and lower, the check
12569
          # below for broken collect2 doesn't work under 4.3+
12570
          collect2name=`${CC} -print-prog-name=collect2`
12571
          if test -f "$collect2name" &&
12572
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12573
          then
12574
            # We have reworked collect2
12575
            :
12576
          else
12577
            # We have old collect2
12578
            hardcode_direct_CXX=unsupported
12579
            # It fails to find uninstalled libraries when the uninstalled
12580
            # path is not listed in the libpath.  Setting hardcode_minus_L
12581
            # to unsupported forces relinking
12582
            hardcode_minus_L_CXX=yes
12583
            hardcode_libdir_flag_spec_CXX='-L$libdir'
12584
            hardcode_libdir_separator_CXX=
12585
          fi
12586
          esac
12587
          shared_flag='-shared'
12588
          if test "$aix_use_runtimelinking" = yes; then
12589
            shared_flag="$shared_flag "'${wl}-G'
12590
          fi
12591
        else
12592
          # not using gcc
12593
          if test "$host_cpu" = ia64; then
12594
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12595
          # chokes on -Wl,-G. The following line is correct:
12596
          shared_flag='-G'
12597
          else
12598
            if test "$aix_use_runtimelinking" = yes; then
12599
              shared_flag='${wl}-G'
12600
            else
12601
              shared_flag='${wl}-bM:SRE'
12602
            fi
12603
          fi
12604
        fi
12605
 
12606
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12607
        # It seems that -bexpall does not export symbols beginning with
12608
        # underscore (_), so it is better to generate a list of symbols to
12609
        # export.
12610
        always_export_symbols_CXX=yes
12611
        if test "$aix_use_runtimelinking" = yes; then
12612
          # Warning - without using the other runtime loading flags (-brtl),
12613
          # -berok will link without error, but may produce a broken library.
12614
          allow_undefined_flag_CXX='-berok'
12615
          # Determine the default libpath from the value encoded in an empty
12616
          # executable.
12617
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618
/* end confdefs.h.  */
12619
 
12620
int
12621
main ()
12622
{
12623
 
12624
  ;
12625
  return 0;
12626
}
12627
_ACEOF
12628
if ac_fn_cxx_try_link "$LINENO"; then :
12629
 
12630
lt_aix_libpath_sed='
12631
    /Import File Strings/,/^$/ {
12632
        /^0/ {
12633
            s/^0  *\(.*\)$/\1/
12634
            p
12635
        }
12636
    }'
12637
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638
# Check for a 64-bit object if we didn't find anything.
12639
if test -z "$aix_libpath"; then
12640
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641
fi
12642
fi
12643
rm -f core conftest.err conftest.$ac_objext \
12644
    conftest$ac_exeext conftest.$ac_ext
12645
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12646
 
12647
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12648
 
12649
          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"
12650
        else
12651
          if test "$host_cpu" = ia64; then
12652
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12653
            allow_undefined_flag_CXX="-z nodefs"
12654
            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"
12655
          else
12656
            # Determine the default libpath from the value encoded in an
12657
            # empty executable.
12658
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659
/* end confdefs.h.  */
12660
 
12661
int
12662
main ()
12663
{
12664
 
12665
  ;
12666
  return 0;
12667
}
12668
_ACEOF
12669
if ac_fn_cxx_try_link "$LINENO"; then :
12670
 
12671
lt_aix_libpath_sed='
12672
    /Import File Strings/,/^$/ {
12673
        /^0/ {
12674
            s/^0  *\(.*\)$/\1/
12675
            p
12676
        }
12677
    }'
12678
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679
# Check for a 64-bit object if we didn't find anything.
12680
if test -z "$aix_libpath"; then
12681
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12682
fi
12683
fi
12684
rm -f core conftest.err conftest.$ac_objext \
12685
    conftest$ac_exeext conftest.$ac_ext
12686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12687
 
12688
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12689
            # Warning - without using the other run time loading flags,
12690
            # -berok will link without error, but may produce a broken library.
12691
            no_undefined_flag_CXX=' ${wl}-bernotok'
12692
            allow_undefined_flag_CXX=' ${wl}-berok'
12693
            if test "$with_gnu_ld" = yes; then
12694
              # We only use this code for GNU lds that support --whole-archive.
12695
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12696
            else
12697
              # Exported symbols can be pulled into shared objects from archives
12698
              whole_archive_flag_spec_CXX='$convenience'
12699
            fi
12700
            archive_cmds_need_lc_CXX=yes
12701
            # This is similar to how AIX traditionally builds its shared
12702
            # libraries.
12703
            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'
12704
          fi
12705
        fi
12706
        ;;
12707
 
12708
      beos*)
12709
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12710
          allow_undefined_flag_CXX=unsupported
12711
          # Joseph Beckenbach  says some releases of gcc
12712
          # support --undefined.  This deserves some investigation.  FIXME
12713
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12714
        else
12715
          ld_shlibs_CXX=no
12716
        fi
12717
        ;;
12718
 
12719
      chorus*)
12720
        case $cc_basename in
12721
          *)
12722
          # FIXME: insert proper C++ library support
12723
          ld_shlibs_CXX=no
12724
          ;;
12725
        esac
12726
        ;;
12727
 
12728
      cygwin* | mingw* | pw32* | cegcc*)
12729
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12730
        # as there is no search path for DLLs.
12731
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12732
        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12733
        allow_undefined_flag_CXX=unsupported
12734
        always_export_symbols_CXX=no
12735
        enable_shared_with_static_runtimes_CXX=yes
12736
 
12737
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12738
          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'
12739
          # If the export-symbols file already is a .def file (1st line
12740
          # is EXPORTS), use it as is; otherwise, prepend...
12741
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12742
            cp $export_symbols $output_objdir/$soname.def;
12743
          else
12744
            echo EXPORTS > $output_objdir/$soname.def;
12745
            cat $export_symbols >> $output_objdir/$soname.def;
12746
          fi~
12747
          $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'
12748
        else
12749
          ld_shlibs_CXX=no
12750
        fi
12751
        ;;
12752
      darwin* | rhapsody*)
12753
 
12754
 
12755
  archive_cmds_need_lc_CXX=no
12756
  hardcode_direct_CXX=no
12757
  hardcode_automatic_CXX=yes
12758
  hardcode_shlibpath_var_CXX=unsupported
12759
  if test "$lt_cv_ld_force_load" = "yes"; then
12760
    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\"`'
12761
  else
12762
    whole_archive_flag_spec_CXX=''
12763
  fi
12764
  link_all_deplibs_CXX=yes
12765
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12766
  case $cc_basename in
12767
     ifort*) _lt_dar_can_shared=yes ;;
12768
     *) _lt_dar_can_shared=$GCC ;;
12769
  esac
12770
  if test "$_lt_dar_can_shared" = "yes"; then
12771
    output_verbose_link_cmd=func_echo_all
12772
    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}"
12773
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12774
    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}"
12775
    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}"
12776
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12777
      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}"
12778
      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}"
12779
    fi
12780
 
12781
  else
12782
  ld_shlibs_CXX=no
12783
  fi
12784
 
12785
        ;;
12786
 
12787
      dgux*)
12788
        case $cc_basename in
12789
          ec++*)
12790
            # FIXME: insert proper C++ library support
12791
            ld_shlibs_CXX=no
12792
            ;;
12793
          ghcx*)
12794
            # Green Hills C++ Compiler
12795
            # FIXME: insert proper C++ library support
12796
            ld_shlibs_CXX=no
12797
            ;;
12798
          *)
12799
            # FIXME: insert proper C++ library support
12800
            ld_shlibs_CXX=no
12801
            ;;
12802
        esac
12803
        ;;
12804
 
12805
      freebsd2.*)
12806
        # C++ shared libraries reported to be fairly broken before
12807
        # switch to ELF
12808
        ld_shlibs_CXX=no
12809
        ;;
12810
 
12811
      freebsd-elf*)
12812
        archive_cmds_need_lc_CXX=no
12813
        ;;
12814
 
12815
      freebsd* | dragonfly*)
12816
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12817
        # conventions
12818
        ld_shlibs_CXX=yes
12819
        ;;
12820
 
12821
      gnu*)
12822
        ;;
12823
 
12824
      haiku*)
12825
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826
        link_all_deplibs_CXX=yes
12827
        ;;
12828
 
12829
      hpux9*)
12830
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12831
        hardcode_libdir_separator_CXX=:
12832
        export_dynamic_flag_spec_CXX='${wl}-E'
12833
        hardcode_direct_CXX=yes
12834
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12835
                                             # but as the default
12836
                                             # location of the library.
12837
 
12838
        case $cc_basename in
12839
          CC*)
12840
            # FIXME: insert proper C++ library support
12841
            ld_shlibs_CXX=no
12842
            ;;
12843
          aCC*)
12844
            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'
12845
            # Commands to make compiler produce verbose output that lists
12846
            # what "hidden" libraries, object files and flags are used when
12847
            # linking a shared library.
12848
            #
12849
            # There doesn't appear to be a way to prevent this compiler from
12850
            # explicitly linking system object files so we need to strip them
12851
            # from the output so that they don't get included in the library
12852
            # dependencies.
12853
            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"'
12854
            ;;
12855
          *)
12856
            if test "$GXX" = yes; then
12857
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12858
            else
12859
              # FIXME: insert proper C++ library support
12860
              ld_shlibs_CXX=no
12861
            fi
12862
            ;;
12863
        esac
12864
        ;;
12865
 
12866
      hpux10*|hpux11*)
12867
        if test $with_gnu_ld = no; then
12868
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12869
          hardcode_libdir_separator_CXX=:
12870
 
12871
          case $host_cpu in
12872
            hppa*64*|ia64*)
12873
              ;;
12874
            *)
12875
              export_dynamic_flag_spec_CXX='${wl}-E'
12876
              ;;
12877
          esac
12878
        fi
12879
        case $host_cpu in
12880
          hppa*64*|ia64*)
12881
            hardcode_direct_CXX=no
12882
            hardcode_shlibpath_var_CXX=no
12883
            ;;
12884
          *)
12885
            hardcode_direct_CXX=yes
12886
            hardcode_direct_absolute_CXX=yes
12887
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12888
                                                 # but as the default
12889
                                                 # location of the library.
12890
            ;;
12891
        esac
12892
 
12893
        case $cc_basename in
12894
          CC*)
12895
            # FIXME: insert proper C++ library support
12896
            ld_shlibs_CXX=no
12897
            ;;
12898
          aCC*)
12899
            case $host_cpu in
12900
              hppa*64*)
12901
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902
                ;;
12903
              ia64*)
12904
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905
                ;;
12906
              *)
12907
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908
                ;;
12909
            esac
12910
            # Commands to make compiler produce verbose output that lists
12911
            # what "hidden" libraries, object files and flags are used when
12912
            # linking a shared library.
12913
            #
12914
            # There doesn't appear to be a way to prevent this compiler from
12915
            # explicitly linking system object files so we need to strip them
12916
            # from the output so that they don't get included in the library
12917
            # dependencies.
12918
            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"'
12919
            ;;
12920
          *)
12921
            if test "$GXX" = yes; then
12922
              if test $with_gnu_ld = no; then
12923
                case $host_cpu in
12924
                  hppa*64*)
12925
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926
                    ;;
12927
                  ia64*)
12928
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929
                    ;;
12930
                  *)
12931
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932
                    ;;
12933
                esac
12934
              fi
12935
            else
12936
              # FIXME: insert proper C++ library support
12937
              ld_shlibs_CXX=no
12938
            fi
12939
            ;;
12940
        esac
12941
        ;;
12942
 
12943
      interix[3-9]*)
12944
        hardcode_direct_CXX=no
12945
        hardcode_shlibpath_var_CXX=no
12946
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12947
        export_dynamic_flag_spec_CXX='${wl}-E'
12948
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12949
        # Instead, shared libraries are loaded at an image base (0x10000000 by
12950
        # default) and relocated if they conflict, which is a slow very memory
12951
        # consuming and fragmenting process.  To avoid this, we pick a random,
12952
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12953
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12954
        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'
12955
        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'
12956
        ;;
12957
      irix5* | irix6*)
12958
        case $cc_basename in
12959
          CC*)
12960
            # SGI C++
12961
            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'
12962
 
12963
            # Archives containing C++ object files must be created using
12964
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12965
            # necessary to make sure instantiated templates are included
12966
            # in the archive.
12967
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12968
            ;;
12969
          *)
12970
            if test "$GXX" = yes; then
12971
              if test "$with_gnu_ld" = no; then
12972
                archive_cmds_CXX='$CC -shared -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'
12973
              else
12974
                archive_cmds_CXX='$CC -shared -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'
12975
              fi
12976
            fi
12977
            link_all_deplibs_CXX=yes
12978
            ;;
12979
        esac
12980
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12981
        hardcode_libdir_separator_CXX=:
12982
        inherit_rpath_CXX=yes
12983
        ;;
12984
 
12985
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12986
        case $cc_basename in
12987
          KCC*)
12988
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12989
 
12990
            # KCC will only create a shared library if the output file
12991
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12992
            # to its proper name (with version) after linking.
12993
            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'
12994
            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'
12995
            # Commands to make compiler produce verbose output that lists
12996
            # what "hidden" libraries, object files and flags are used when
12997
            # linking a shared library.
12998
            #
12999
            # There doesn't appear to be a way to prevent this compiler from
13000
            # explicitly linking system object files so we need to strip them
13001
            # from the output so that they don't get included in the library
13002
            # dependencies.
13003
            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"'
13004
 
13005
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13006
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13007
 
13008
            # Archives containing C++ object files must be created using
13009
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13010
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13011
            ;;
13012
          icpc* | ecpc* )
13013
            # Intel C++
13014
            with_gnu_ld=yes
13015
            # version 8.0 and above of icpc choke on multiply defined symbols
13016
            # if we add $predep_objects and $postdep_objects, however 7.1 and
13017
            # earlier do not add the objects themselves.
13018
            case `$CC -V 2>&1` in
13019
              *"Version 7."*)
13020
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021
                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'
13022
                ;;
13023
              *)  # Version 8.0 or newer
13024
                tmp_idyn=
13025
                case $host_cpu in
13026
                  ia64*) tmp_idyn=' -i_dynamic';;
13027
                esac
13028
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029
                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'
13030
                ;;
13031
            esac
13032
            archive_cmds_need_lc_CXX=no
13033
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13034
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13036
            ;;
13037
          pgCC* | pgcpp*)
13038
            # Portland Group C++ compiler
13039
            case `$CC -V` in
13040
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13041
              prelink_cmds_CXX='tpldir=Template.dir~
13042
                rm -rf $tpldir~
13043
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13044
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13045
              old_archive_cmds_CXX='tpldir=Template.dir~
13046
                rm -rf $tpldir~
13047
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13048
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13049
                $RANLIB $oldlib'
13050
              archive_cmds_CXX='tpldir=Template.dir~
13051
                rm -rf $tpldir~
13052
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13053
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13054
              archive_expsym_cmds_CXX='tpldir=Template.dir~
13055
                rm -rf $tpldir~
13056
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13057
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13058
              ;;
13059
            *) # Version 6 and above use weak symbols
13060
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061
              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'
13062
              ;;
13063
            esac
13064
 
13065
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13066
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13067
            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'
13068
            ;;
13069
          cxx*)
13070
            # Compaq C++
13071
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13072
            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'
13073
 
13074
            runpath_var=LD_RUN_PATH
13075
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13076
            hardcode_libdir_separator_CXX=:
13077
 
13078
            # Commands to make compiler produce verbose output that lists
13079
            # what "hidden" libraries, object files and flags are used when
13080
            # linking a shared library.
13081
            #
13082
            # There doesn't appear to be a way to prevent this compiler from
13083
            # explicitly linking system object files so we need to strip them
13084
            # from the output so that they don't get included in the library
13085
            # dependencies.
13086
            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'
13087
            ;;
13088
          xl* | mpixl* | bgxl*)
13089
            # IBM XL 8.0 on PPC, with GNU ld
13090
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13092
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13093
            if test "x$supports_anon_versioning" = xyes; then
13094
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13095
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13096
                echo "local: *; };" >> $output_objdir/$libname.ver~
13097
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13098
            fi
13099
            ;;
13100
          *)
13101
            case `$CC -V 2>&1 | sed 5q` in
13102
            *Sun\ C*)
13103
              # Sun C++ 5.9
13104
              no_undefined_flag_CXX=' -zdefs'
13105
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13106
              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'
13107
              hardcode_libdir_flag_spec_CXX='-R$libdir'
13108
              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'
13109
              compiler_needs_object_CXX=yes
13110
 
13111
              # Not sure whether something based on
13112
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13113
              # would be better.
13114
              output_verbose_link_cmd='func_echo_all'
13115
 
13116
              # Archives containing C++ object files must be created using
13117
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13118
              # necessary to make sure instantiated templates are included
13119
              # in the archive.
13120
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13121
              ;;
13122
            esac
13123
            ;;
13124
        esac
13125
        ;;
13126
 
13127
      lynxos*)
13128
        # FIXME: insert proper C++ library support
13129
        ld_shlibs_CXX=no
13130
        ;;
13131
 
13132
      m88k*)
13133
        # FIXME: insert proper C++ library support
13134
        ld_shlibs_CXX=no
13135
        ;;
13136
 
13137
      mvs*)
13138
        case $cc_basename in
13139
          cxx*)
13140
            # FIXME: insert proper C++ library support
13141
            ld_shlibs_CXX=no
13142
            ;;
13143
          *)
13144
            # FIXME: insert proper C++ library support
13145
            ld_shlibs_CXX=no
13146
            ;;
13147
        esac
13148
        ;;
13149
 
13150
      netbsd*)
13151
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13152
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13153
          wlarc=
13154
          hardcode_libdir_flag_spec_CXX='-R$libdir'
13155
          hardcode_direct_CXX=yes
13156
          hardcode_shlibpath_var_CXX=no
13157
        fi
13158
        # Workaround some broken pre-1.5 toolchains
13159
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13160
        ;;
13161
 
13162
      *nto* | *qnx*)
13163
        ld_shlibs_CXX=yes
13164
        ;;
13165
 
13166
      openbsd2*)
13167
        # C++ shared libraries are fairly broken
13168
        ld_shlibs_CXX=no
13169
        ;;
13170
 
13171
      openbsd*)
13172
        if test -f /usr/libexec/ld.so; then
13173
          hardcode_direct_CXX=yes
13174
          hardcode_shlibpath_var_CXX=no
13175
          hardcode_direct_absolute_CXX=yes
13176
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13177
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13178
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13179
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13180
            export_dynamic_flag_spec_CXX='${wl}-E'
13181
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13182
          fi
13183
          output_verbose_link_cmd=func_echo_all
13184
        else
13185
          ld_shlibs_CXX=no
13186
        fi
13187
        ;;
13188
 
13189
      osf3* | osf4* | osf5*)
13190
        case $cc_basename in
13191
          KCC*)
13192
            # Kuck and Associates, Inc. (KAI) C++ Compiler
13193
 
13194
            # KCC will only create a shared library if the output file
13195
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
13196
            # to its proper name (with version) after linking.
13197
            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'
13198
 
13199
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13200
            hardcode_libdir_separator_CXX=:
13201
 
13202
            # Archives containing C++ object files must be created using
13203
            # the KAI C++ compiler.
13204
            case $host in
13205
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13206
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13207
            esac
13208
            ;;
13209
          RCC*)
13210
            # Rational C++ 2.4.1
13211
            # FIXME: insert proper C++ library support
13212
            ld_shlibs_CXX=no
13213
            ;;
13214
          cxx*)
13215
            case $host in
13216
              osf3*)
13217
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13218
                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'
13219
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13220
                ;;
13221
              *)
13222
                allow_undefined_flag_CXX=' -expect_unresolved \*'
13223
                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'
13224
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13225
                  echo "-hidden">> $lib.exp~
13226
                  $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~
13227
                  $RM $lib.exp'
13228
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13229
                ;;
13230
            esac
13231
 
13232
            hardcode_libdir_separator_CXX=:
13233
 
13234
            # Commands to make compiler produce verbose output that lists
13235
            # what "hidden" libraries, object files and flags are used when
13236
            # linking a shared library.
13237
            #
13238
            # There doesn't appear to be a way to prevent this compiler from
13239
            # explicitly linking system object files so we need to strip them
13240
            # from the output so that they don't get included in the library
13241
            # dependencies.
13242
            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"'
13243
            ;;
13244
          *)
13245
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13246
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13247
              case $host in
13248
                osf3*)
13249
                  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'
13250
                  ;;
13251
                *)
13252
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13253
                  ;;
13254
              esac
13255
 
13256
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13257
              hardcode_libdir_separator_CXX=:
13258
 
13259
              # Commands to make compiler produce verbose output that lists
13260
              # what "hidden" libraries, object files and flags are used when
13261
              # linking a shared library.
13262
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13263
 
13264
            else
13265
              # FIXME: insert proper C++ library support
13266
              ld_shlibs_CXX=no
13267
            fi
13268
            ;;
13269
        esac
13270
        ;;
13271
 
13272
      psos*)
13273
        # FIXME: insert proper C++ library support
13274
        ld_shlibs_CXX=no
13275
        ;;
13276
 
13277
      sunos4*)
13278
        case $cc_basename in
13279
          CC*)
13280
            # Sun C++ 4.x
13281
            # FIXME: insert proper C++ library support
13282
            ld_shlibs_CXX=no
13283
            ;;
13284
          lcc*)
13285
            # Lucid
13286
            # FIXME: insert proper C++ library support
13287
            ld_shlibs_CXX=no
13288
            ;;
13289
          *)
13290
            # FIXME: insert proper C++ library support
13291
            ld_shlibs_CXX=no
13292
            ;;
13293
        esac
13294
        ;;
13295
 
13296
      solaris*)
13297
        case $cc_basename in
13298
          CC*)
13299
            # Sun C++ 4.2, 5.x and Centerline C++
13300
            archive_cmds_need_lc_CXX=yes
13301
            no_undefined_flag_CXX=' -zdefs'
13302
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13303
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13304
              $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'
13305
 
13306
            hardcode_libdir_flag_spec_CXX='-R$libdir'
13307
            hardcode_shlibpath_var_CXX=no
13308
            case $host_os in
13309
              solaris2.[0-5] | solaris2.[0-5].*) ;;
13310
              *)
13311
                # The compiler driver will combine and reorder linker options,
13312
                # but understands `-z linker_flag'.
13313
                # Supported since Solaris 2.6 (maybe 2.5.1?)
13314
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13315
                ;;
13316
            esac
13317
            link_all_deplibs_CXX=yes
13318
 
13319
            output_verbose_link_cmd='func_echo_all'
13320
 
13321
            # Archives containing C++ object files must be created using
13322
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13323
            # necessary to make sure instantiated templates are included
13324
            # in the archive.
13325
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13326
            ;;
13327
          gcx*)
13328
            # Green Hills C++ Compiler
13329
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13330
 
13331
            # The C++ compiler must be used to create the archive.
13332
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13333
            ;;
13334
          *)
13335
            # GNU C++ compiler with Solaris linker
13336
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13337
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13338
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13339
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13340
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13341
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13342
 
13343
                # Commands to make compiler produce verbose output that lists
13344
                # what "hidden" libraries, object files and flags are used when
13345
                # linking a shared library.
13346
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13347
              else
13348
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
13349
                # platform.
13350
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13352
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13353
 
13354
                # Commands to make compiler produce verbose output that lists
13355
                # what "hidden" libraries, object files and flags are used when
13356
                # linking a shared library.
13357
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13358
              fi
13359
 
13360
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13361
              case $host_os in
13362
                solaris2.[0-5] | solaris2.[0-5].*) ;;
13363
                *)
13364
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13365
                  ;;
13366
              esac
13367
            fi
13368
            ;;
13369
        esac
13370
        ;;
13371
 
13372
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13373
      no_undefined_flag_CXX='${wl}-z,text'
13374
      archive_cmds_need_lc_CXX=no
13375
      hardcode_shlibpath_var_CXX=no
13376
      runpath_var='LD_RUN_PATH'
13377
 
13378
      case $cc_basename in
13379
        CC*)
13380
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13381
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382
          ;;
13383
        *)
13384
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386
          ;;
13387
      esac
13388
      ;;
13389
 
13390
      sysv5* | sco3.2v5* | sco5v6*)
13391
        # Note: We can NOT use -z defs as we might desire, because we do not
13392
        # link with -lc, and that would cause any symbols used from libc to
13393
        # always be unresolved, which means just about no library would
13394
        # ever link correctly.  If we're not using GNU ld we use -z text
13395
        # though, which does catch some bad symbols but isn't as heavy-handed
13396
        # as -z defs.
13397
        no_undefined_flag_CXX='${wl}-z,text'
13398
        allow_undefined_flag_CXX='${wl}-z,nodefs'
13399
        archive_cmds_need_lc_CXX=no
13400
        hardcode_shlibpath_var_CXX=no
13401
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13402
        hardcode_libdir_separator_CXX=':'
13403
        link_all_deplibs_CXX=yes
13404
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
13405
        runpath_var='LD_RUN_PATH'
13406
 
13407
        case $cc_basename in
13408
          CC*)
13409
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13410
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13412
              '"$old_archive_cmds_CXX"
13413
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13414
              '"$reload_cmds_CXX"
13415
            ;;
13416
          *)
13417
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13418
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419
            ;;
13420
        esac
13421
      ;;
13422
 
13423
      tandem*)
13424
        case $cc_basename in
13425
          NCC*)
13426
            # NonStop-UX NCC 3.20
13427
            # FIXME: insert proper C++ library support
13428
            ld_shlibs_CXX=no
13429
            ;;
13430
          *)
13431
            # FIXME: insert proper C++ library support
13432
            ld_shlibs_CXX=no
13433
            ;;
13434
        esac
13435
        ;;
13436
 
13437
      vxworks*)
13438
        # FIXME: insert proper C++ library support
13439
        ld_shlibs_CXX=no
13440
        ;;
13441
 
13442
      *)
13443
        # FIXME: insert proper C++ library support
13444
        ld_shlibs_CXX=no
13445
        ;;
13446
    esac
13447
 
13448
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13449
$as_echo "$ld_shlibs_CXX" >&6; }
13450
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13451
 
13452
    GCC_CXX="$GXX"
13453
    LD_CXX="$LD"
13454
 
13455
    ## CAVEAT EMPTOR:
13456
    ## There is no encapsulation within the following macros, do not change
13457
    ## the running order or otherwise move them around unless you know exactly
13458
    ## what you are doing...
13459
    # Dependencies to place before and after the object being linked:
13460
predep_objects_CXX=
13461
postdep_objects_CXX=
13462
predeps_CXX=
13463
postdeps_CXX=
13464
compiler_lib_search_path_CXX=
13465
 
13466
cat > conftest.$ac_ext <<_LT_EOF
13467
class Foo
13468
{
13469
public:
13470
  Foo (void) { a = 0; }
13471
private:
13472
  int a;
13473
};
13474
_LT_EOF
13475
 
13476
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13477
  (eval $ac_compile) 2>&5
13478
  ac_status=$?
13479
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13480
  test $ac_status = 0; }; then
13481
  # Parse the compiler output and extract the necessary
13482
  # objects, libraries and library flags.
13483
 
13484
  # Sentinel used to keep track of whether or not we are before
13485
  # the conftest object file.
13486
  pre_test_object_deps_done=no
13487
 
13488
  for p in `eval "$output_verbose_link_cmd"`; do
13489
    case $p in
13490
 
13491
    -L* | -R* | -l*)
13492
       # Some compilers place space between "-{L,R}" and the path.
13493
       # Remove the space.
13494
       if test $p = "-L" ||
13495
          test $p = "-R"; then
13496
         prev=$p
13497
         continue
13498
       else
13499
         prev=
13500
       fi
13501
 
13502
       if test "$pre_test_object_deps_done" = no; then
13503
         case $p in
13504
         -L* | -R*)
13505
           # Internal compiler library paths should come after those
13506
           # provided the user.  The postdeps already come after the
13507
           # user supplied libs so there is no need to process them.
13508
           if test -z "$compiler_lib_search_path_CXX"; then
13509
             compiler_lib_search_path_CXX="${prev}${p}"
13510
           else
13511
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13512
           fi
13513
           ;;
13514
         # The "-l" case would never come before the object being
13515
         # linked, so don't bother handling this case.
13516
         esac
13517
       else
13518
         if test -z "$postdeps_CXX"; then
13519
           postdeps_CXX="${prev}${p}"
13520
         else
13521
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13522
         fi
13523
       fi
13524
       ;;
13525
 
13526
    *.$objext)
13527
       # This assumes that the test object file only shows up
13528
       # once in the compiler output.
13529
       if test "$p" = "conftest.$objext"; then
13530
         pre_test_object_deps_done=yes
13531
         continue
13532
       fi
13533
 
13534
       if test "$pre_test_object_deps_done" = no; then
13535
         if test -z "$predep_objects_CXX"; then
13536
           predep_objects_CXX="$p"
13537
         else
13538
           predep_objects_CXX="$predep_objects_CXX $p"
13539
         fi
13540
       else
13541
         if test -z "$postdep_objects_CXX"; then
13542
           postdep_objects_CXX="$p"
13543
         else
13544
           postdep_objects_CXX="$postdep_objects_CXX $p"
13545
         fi
13546
       fi
13547
       ;;
13548
 
13549
    *) ;; # Ignore the rest.
13550
 
13551
    esac
13552
  done
13553
 
13554
  # Clean up.
13555
  rm -f a.out a.exe
13556
else
13557
  echo "libtool.m4: error: problem compiling CXX test program"
13558
fi
13559
 
13560
$RM -f confest.$objext
13561
 
13562
# PORTME: override above test on systems where it is broken
13563
case $host_os in
13564
interix[3-9]*)
13565
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13566
  # hack all around it, let's just trust "g++" to DTRT.
13567
  predep_objects_CXX=
13568
  postdep_objects_CXX=
13569
  postdeps_CXX=
13570
  ;;
13571
 
13572
linux*)
13573
  case `$CC -V 2>&1 | sed 5q` in
13574
  *Sun\ C*)
13575
    # Sun C++ 5.9
13576
 
13577
    # The more standards-conforming stlport4 library is
13578
    # incompatible with the Cstd library. Avoid specifying
13579
    # it if it's in CXXFLAGS. Ignore libCrun as
13580
    # -library=stlport4 depends on it.
13581
    case " $CXX $CXXFLAGS " in
13582
    *" -library=stlport4 "*)
13583
      solaris_use_stlport4=yes
13584
      ;;
13585
    esac
13586
 
13587
    if test "$solaris_use_stlport4" != yes; then
13588
      postdeps_CXX='-library=Cstd -library=Crun'
13589
    fi
13590
    ;;
13591
  esac
13592
  ;;
13593
 
13594
solaris*)
13595
  case $cc_basename in
13596
  CC*)
13597
    # The more standards-conforming stlport4 library is
13598
    # incompatible with the Cstd library. Avoid specifying
13599
    # it if it's in CXXFLAGS. Ignore libCrun as
13600
    # -library=stlport4 depends on it.
13601
    case " $CXX $CXXFLAGS " in
13602
    *" -library=stlport4 "*)
13603
      solaris_use_stlport4=yes
13604
      ;;
13605
    esac
13606
 
13607
    # Adding this requires a known-good setup of shared libraries for
13608
    # Sun compiler versions before 5.6, else PIC objects from an old
13609
    # archive will be linked into the output, leading to subtle bugs.
13610
    if test "$solaris_use_stlport4" != yes; then
13611
      postdeps_CXX='-library=Cstd -library=Crun'
13612
    fi
13613
    ;;
13614
  esac
13615
  ;;
13616
esac
13617
 
13618
 
13619
case " $postdeps_CXX " in
13620
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13621
esac
13622
 compiler_lib_search_dirs_CXX=
13623
if test -n "${compiler_lib_search_path_CXX}"; then
13624
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13625
fi
13626
 
13627
 
13628
 
13629
 
13630
 
13631
 
13632
 
13633
 
13634
 
13635
 
13636
 
13637
 
13638
 
13639
 
13640
 
13641
 
13642
 
13643
 
13644
 
13645
 
13646
 
13647
 
13648
 
13649
 
13650
 
13651
 
13652
 
13653
 
13654
 
13655
 
13656
 
13657
    lt_prog_compiler_wl_CXX=
13658
lt_prog_compiler_pic_CXX=
13659
lt_prog_compiler_static_CXX=
13660
 
13661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13662
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13663
 
13664
  # C++ specific cases for pic, static, wl, etc.
13665
  if test "$GXX" = yes; then
13666
    lt_prog_compiler_wl_CXX='-Wl,'
13667
    lt_prog_compiler_static_CXX='-static'
13668
 
13669
    case $host_os in
13670
    aix*)
13671
      # All AIX code is PIC.
13672
      if test "$host_cpu" = ia64; then
13673
        # AIX 5 now supports IA64 processor
13674
        lt_prog_compiler_static_CXX='-Bstatic'
13675
      fi
13676
      ;;
13677
 
13678
    amigaos*)
13679
      case $host_cpu in
13680
      powerpc)
13681
            # see comment about AmigaOS4 .so support
13682
            lt_prog_compiler_pic_CXX='-fPIC'
13683
        ;;
13684
      m68k)
13685
            # FIXME: we need at least 68020 code to build shared libraries, but
13686
            # adding the `-m68020' flag to GCC prevents building anything better,
13687
            # like `-m68040'.
13688
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13689
        ;;
13690
      esac
13691
      ;;
13692
 
13693
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13694
      # PIC is the default for these OSes.
13695
      ;;
13696
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13697
      # This hack is so that the source file can tell whether it is being
13698
      # built for inclusion in a dll (and should export symbols for example).
13699
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13700
      # (--disable-auto-import) libraries
13701
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13702
      ;;
13703
    darwin* | rhapsody*)
13704
      # PIC is the default on this platform
13705
      # Common symbols not allowed in MH_DYLIB files
13706
      lt_prog_compiler_pic_CXX='-fno-common'
13707
      ;;
13708
    *djgpp*)
13709
      # DJGPP does not support shared libraries at all
13710
      lt_prog_compiler_pic_CXX=
13711
      ;;
13712
    haiku*)
13713
      # PIC is the default for Haiku.
13714
      # The "-static" flag exists, but is broken.
13715
      lt_prog_compiler_static_CXX=
13716
      ;;
13717
    interix[3-9]*)
13718
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13719
      # Instead, we relocate shared libraries at runtime.
13720
      ;;
13721
    sysv4*MP*)
13722
      if test -d /usr/nec; then
13723
        lt_prog_compiler_pic_CXX=-Kconform_pic
13724
      fi
13725
      ;;
13726
    hpux*)
13727
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13728
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13729
      # sets the default TLS model and affects inlining.
13730
      case $host_cpu in
13731
      hppa*64*)
13732
        ;;
13733
      *)
13734
        lt_prog_compiler_pic_CXX='-fPIC'
13735
        ;;
13736
      esac
13737
      ;;
13738
    *qnx* | *nto*)
13739
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13740
      # it will coredump.
13741
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13742
      ;;
13743
    *)
13744
      lt_prog_compiler_pic_CXX='-fPIC'
13745
      ;;
13746
    esac
13747
  else
13748
    case $host_os in
13749
      aix[4-9]*)
13750
        # All AIX code is PIC.
13751
        if test "$host_cpu" = ia64; then
13752
          # AIX 5 now supports IA64 processor
13753
          lt_prog_compiler_static_CXX='-Bstatic'
13754
        else
13755
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13756
        fi
13757
        ;;
13758
      chorus*)
13759
        case $cc_basename in
13760
        cxch68*)
13761
          # Green Hills C++ Compiler
13762
          # _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"
13763
          ;;
13764
        esac
13765
        ;;
13766
      dgux*)
13767
        case $cc_basename in
13768
          ec++*)
13769
            lt_prog_compiler_pic_CXX='-KPIC'
13770
            ;;
13771
          ghcx*)
13772
            # Green Hills C++ Compiler
13773
            lt_prog_compiler_pic_CXX='-pic'
13774
            ;;
13775
          *)
13776
            ;;
13777
        esac
13778
        ;;
13779
      freebsd* | dragonfly*)
13780
        # FreeBSD uses GNU C++
13781
        ;;
13782
      hpux9* | hpux10* | hpux11*)
13783
        case $cc_basename in
13784
          CC*)
13785
            lt_prog_compiler_wl_CXX='-Wl,'
13786
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13787
            if test "$host_cpu" != ia64; then
13788
              lt_prog_compiler_pic_CXX='+Z'
13789
            fi
13790
            ;;
13791
          aCC*)
13792
            lt_prog_compiler_wl_CXX='-Wl,'
13793
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13794
            case $host_cpu in
13795
            hppa*64*|ia64*)
13796
              # +Z the default
13797
              ;;
13798
            *)
13799
              lt_prog_compiler_pic_CXX='+Z'
13800
              ;;
13801
            esac
13802
            ;;
13803
          *)
13804
            ;;
13805
        esac
13806
        ;;
13807
      interix*)
13808
        # This is c89, which is MS Visual C++ (no shared libs)
13809
        # Anyone wants to do a port?
13810
        ;;
13811
      irix5* | irix6* | nonstopux*)
13812
        case $cc_basename in
13813
          CC*)
13814
            lt_prog_compiler_wl_CXX='-Wl,'
13815
            lt_prog_compiler_static_CXX='-non_shared'
13816
            # CC pic flag -KPIC is the default.
13817
            ;;
13818
          *)
13819
            ;;
13820
        esac
13821
        ;;
13822
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13823
        case $cc_basename in
13824
          KCC*)
13825
            # KAI C++ Compiler
13826
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13827
            lt_prog_compiler_pic_CXX='-fPIC'
13828
            ;;
13829
          ecpc* )
13830
            # old Intel C++ for x86_64 which still supported -KPIC.
13831
            lt_prog_compiler_wl_CXX='-Wl,'
13832
            lt_prog_compiler_pic_CXX='-KPIC'
13833
            lt_prog_compiler_static_CXX='-static'
13834
            ;;
13835
          icpc* )
13836
            # Intel C++, used to be incompatible with GCC.
13837
            # ICC 10 doesn't accept -KPIC any more.
13838
            lt_prog_compiler_wl_CXX='-Wl,'
13839
            lt_prog_compiler_pic_CXX='-fPIC'
13840
            lt_prog_compiler_static_CXX='-static'
13841
            ;;
13842
          pgCC* | pgcpp*)
13843
            # Portland Group C++ compiler
13844
            lt_prog_compiler_wl_CXX='-Wl,'
13845
            lt_prog_compiler_pic_CXX='-fpic'
13846
            lt_prog_compiler_static_CXX='-Bstatic'
13847
            ;;
13848
          cxx*)
13849
            # Compaq C++
13850
            # Make sure the PIC flag is empty.  It appears that all Alpha
13851
            # Linux and Compaq Tru64 Unix objects are PIC.
13852
            lt_prog_compiler_pic_CXX=
13853
            lt_prog_compiler_static_CXX='-non_shared'
13854
            ;;
13855
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13856
            # IBM XL 8.0, 9.0 on PPC and BlueGene
13857
            lt_prog_compiler_wl_CXX='-Wl,'
13858
            lt_prog_compiler_pic_CXX='-qpic'
13859
            lt_prog_compiler_static_CXX='-qstaticlink'
13860
            ;;
13861
          *)
13862
            case `$CC -V 2>&1 | sed 5q` in
13863
            *Sun\ C*)
13864
              # Sun C++ 5.9
13865
              lt_prog_compiler_pic_CXX='-KPIC'
13866
              lt_prog_compiler_static_CXX='-Bstatic'
13867
              lt_prog_compiler_wl_CXX='-Qoption ld '
13868
              ;;
13869
            esac
13870
            ;;
13871
        esac
13872
        ;;
13873
      lynxos*)
13874
        ;;
13875
      m88k*)
13876
        ;;
13877
      mvs*)
13878
        case $cc_basename in
13879
          cxx*)
13880
            lt_prog_compiler_pic_CXX='-W c,exportall'
13881
            ;;
13882
          *)
13883
            ;;
13884
        esac
13885
        ;;
13886
      netbsd*)
13887
        ;;
13888
      *qnx* | *nto*)
13889
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13890
        # it will coredump.
13891
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13892
        ;;
13893
      osf3* | osf4* | osf5*)
13894
        case $cc_basename in
13895
          KCC*)
13896
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13897
            ;;
13898
          RCC*)
13899
            # Rational C++ 2.4.1
13900
            lt_prog_compiler_pic_CXX='-pic'
13901
            ;;
13902
          cxx*)
13903
            # Digital/Compaq C++
13904
            lt_prog_compiler_wl_CXX='-Wl,'
13905
            # Make sure the PIC flag is empty.  It appears that all Alpha
13906
            # Linux and Compaq Tru64 Unix objects are PIC.
13907
            lt_prog_compiler_pic_CXX=
13908
            lt_prog_compiler_static_CXX='-non_shared'
13909
            ;;
13910
          *)
13911
            ;;
13912
        esac
13913
        ;;
13914
      psos*)
13915
        ;;
13916
      solaris*)
13917
        case $cc_basename in
13918
          CC*)
13919
            # Sun C++ 4.2, 5.x and Centerline C++
13920
            lt_prog_compiler_pic_CXX='-KPIC'
13921
            lt_prog_compiler_static_CXX='-Bstatic'
13922
            lt_prog_compiler_wl_CXX='-Qoption ld '
13923
            ;;
13924
          gcx*)
13925
            # Green Hills C++ Compiler
13926
            lt_prog_compiler_pic_CXX='-PIC'
13927
            ;;
13928
          *)
13929
            ;;
13930
        esac
13931
        ;;
13932
      sunos4*)
13933
        case $cc_basename in
13934
          CC*)
13935
            # Sun C++ 4.x
13936
            lt_prog_compiler_pic_CXX='-pic'
13937
            lt_prog_compiler_static_CXX='-Bstatic'
13938
            ;;
13939
          lcc*)
13940
            # Lucid
13941
            lt_prog_compiler_pic_CXX='-pic'
13942
            ;;
13943
          *)
13944
            ;;
13945
        esac
13946
        ;;
13947
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13948
        case $cc_basename in
13949
          CC*)
13950
            lt_prog_compiler_wl_CXX='-Wl,'
13951
            lt_prog_compiler_pic_CXX='-KPIC'
13952
            lt_prog_compiler_static_CXX='-Bstatic'
13953
            ;;
13954
        esac
13955
        ;;
13956
      tandem*)
13957
        case $cc_basename in
13958
          NCC*)
13959
            # NonStop-UX NCC 3.20
13960
            lt_prog_compiler_pic_CXX='-KPIC'
13961
            ;;
13962
          *)
13963
            ;;
13964
        esac
13965
        ;;
13966
      vxworks*)
13967
        ;;
13968
      *)
13969
        lt_prog_compiler_can_build_shared_CXX=no
13970
        ;;
13971
    esac
13972
  fi
13973
 
13974
case $host_os in
13975
  # For platforms which do not support PIC, -DPIC is meaningless:
13976
  *djgpp*)
13977
    lt_prog_compiler_pic_CXX=
13978
    ;;
13979
  *)
13980
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13981
    ;;
13982
esac
13983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13984
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13985
 
13986
 
13987
 
13988
#
13989
# Check to make sure the PIC flag actually works.
13990
#
13991
if test -n "$lt_prog_compiler_pic_CXX"; then
13992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13993
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13994
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13995
  $as_echo_n "(cached) " >&6
13996
else
13997
  lt_cv_prog_compiler_pic_works_CXX=no
13998
   ac_outfile=conftest.$ac_objext
13999
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14000
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14001
   # Insert the option either (1) after the last *FLAGS variable, or
14002
   # (2) before a word containing "conftest.", or (3) at the end.
14003
   # Note that $ac_compile itself does not contain backslashes and begins
14004
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14005
   # The option is referenced via a variable to avoid confusing sed.
14006
   lt_compile=`echo "$ac_compile" | $SED \
14007
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14008
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14009
   -e 's:$: $lt_compiler_flag:'`
14010
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14011
   (eval "$lt_compile" 2>conftest.err)
14012
   ac_status=$?
14013
   cat conftest.err >&5
14014
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015
   if (exit $ac_status) && test -s "$ac_outfile"; then
14016
     # The compiler can only warn and ignore the option if not recognized
14017
     # So say no if there are warnings other than the usual output.
14018
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14019
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14020
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14021
       lt_cv_prog_compiler_pic_works_CXX=yes
14022
     fi
14023
   fi
14024
   $RM conftest*
14025
 
14026
fi
14027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14028
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14029
 
14030
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14031
    case $lt_prog_compiler_pic_CXX in
14032
     "" | " "*) ;;
14033
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14034
     esac
14035
else
14036
    lt_prog_compiler_pic_CXX=
14037
     lt_prog_compiler_can_build_shared_CXX=no
14038
fi
14039
 
14040
fi
14041
 
14042
 
14043
 
14044
#
14045
# Check to make sure the static flag actually works.
14046
#
14047
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14050
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14051
  $as_echo_n "(cached) " >&6
14052
else
14053
  lt_cv_prog_compiler_static_works_CXX=no
14054
   save_LDFLAGS="$LDFLAGS"
14055
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14056
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14057
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14058
     # The linker can only warn and ignore the option if not recognized
14059
     # So say no if there are warnings
14060
     if test -s conftest.err; then
14061
       # Append any errors to the config.log.
14062
       cat conftest.err 1>&5
14063
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14064
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14065
       if diff conftest.exp conftest.er2 >/dev/null; then
14066
         lt_cv_prog_compiler_static_works_CXX=yes
14067
       fi
14068
     else
14069
       lt_cv_prog_compiler_static_works_CXX=yes
14070
     fi
14071
   fi
14072
   $RM -r conftest*
14073
   LDFLAGS="$save_LDFLAGS"
14074
 
14075
fi
14076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14077
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14078
 
14079
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14080
    :
14081
else
14082
    lt_prog_compiler_static_CXX=
14083
fi
14084
 
14085
 
14086
 
14087
 
14088
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14089
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14090
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14091
  $as_echo_n "(cached) " >&6
14092
else
14093
  lt_cv_prog_compiler_c_o_CXX=no
14094
   $RM -r conftest 2>/dev/null
14095
   mkdir conftest
14096
   cd conftest
14097
   mkdir out
14098
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
 
14100
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14101
   # Insert the option either (1) after the last *FLAGS variable, or
14102
   # (2) before a word containing "conftest.", or (3) at the end.
14103
   # Note that $ac_compile itself does not contain backslashes and begins
14104
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14105
   lt_compile=`echo "$ac_compile" | $SED \
14106
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108
   -e 's:$: $lt_compiler_flag:'`
14109
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14110
   (eval "$lt_compile" 2>out/conftest.err)
14111
   ac_status=$?
14112
   cat out/conftest.err >&5
14113
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115
   then
14116
     # The compiler can only warn and ignore the option if not recognized
14117
     # So say no if there are warnings
14118
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14119
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121
       lt_cv_prog_compiler_c_o_CXX=yes
14122
     fi
14123
   fi
14124
   chmod u+w . 2>&5
14125
   $RM conftest*
14126
   # SGI C++ compiler will create directory out/ii_files/ for
14127
   # template instantiation
14128
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14129
   $RM out/* && rmdir out
14130
   cd ..
14131
   $RM -r conftest
14132
   $RM conftest*
14133
 
14134
fi
14135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14137
 
14138
 
14139
 
14140
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14141
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14142
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14143
  $as_echo_n "(cached) " >&6
14144
else
14145
  lt_cv_prog_compiler_c_o_CXX=no
14146
   $RM -r conftest 2>/dev/null
14147
   mkdir conftest
14148
   cd conftest
14149
   mkdir out
14150
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14151
 
14152
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14153
   # Insert the option either (1) after the last *FLAGS variable, or
14154
   # (2) before a word containing "conftest.", or (3) at the end.
14155
   # Note that $ac_compile itself does not contain backslashes and begins
14156
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14157
   lt_compile=`echo "$ac_compile" | $SED \
14158
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14159
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14160
   -e 's:$: $lt_compiler_flag:'`
14161
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14162
   (eval "$lt_compile" 2>out/conftest.err)
14163
   ac_status=$?
14164
   cat out/conftest.err >&5
14165
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14167
   then
14168
     # The compiler can only warn and ignore the option if not recognized
14169
     # So say no if there are warnings
14170
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14171
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14172
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14173
       lt_cv_prog_compiler_c_o_CXX=yes
14174
     fi
14175
   fi
14176
   chmod u+w . 2>&5
14177
   $RM conftest*
14178
   # SGI C++ compiler will create directory out/ii_files/ for
14179
   # template instantiation
14180
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14181
   $RM out/* && rmdir out
14182
   cd ..
14183
   $RM -r conftest
14184
   $RM conftest*
14185
 
14186
fi
14187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14188
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14189
 
14190
 
14191
 
14192
 
14193
hard_links="nottested"
14194
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14195
  # do not overwrite the value of need_locks provided by the user
14196
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14197
$as_echo_n "checking if we can lock with hard links... " >&6; }
14198
  hard_links=yes
14199
  $RM conftest*
14200
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201
  touch conftest.a
14202
  ln conftest.a conftest.b 2>&5 || hard_links=no
14203
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14205
$as_echo "$hard_links" >&6; }
14206
  if test "$hard_links" = no; then
14207
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14208
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14209
    need_locks=warn
14210
  fi
14211
else
14212
  need_locks=no
14213
fi
14214
 
14215
 
14216
 
14217
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14218
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14219
 
14220
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14221
  case $host_os in
14222
  aix[4-9]*)
14223
    # If we're using GNU nm, then we don't want the "-C" option.
14224
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14225
    # Also, AIX nm treats weak defined symbols like other global defined
14226
    # symbols, whereas GNU nm marks them as "W".
14227
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14228
      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'
14229
    else
14230
      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'
14231
    fi
14232
    ;;
14233
  pw32*)
14234
    export_symbols_cmds_CXX="$ltdll_cmds"
14235
  ;;
14236
  cygwin* | mingw* | cegcc*)
14237
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14238
  ;;
14239
  *)
14240
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14241
  ;;
14242
  esac
14243
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14244
 
14245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14246
$as_echo "$ld_shlibs_CXX" >&6; }
14247
test "$ld_shlibs_CXX" = no && can_build_shared=no
14248
 
14249
with_gnu_ld_CXX=$with_gnu_ld
14250
 
14251
 
14252
 
14253
 
14254
 
14255
 
14256
#
14257
# Do we need to explicitly link libc?
14258
#
14259
case "x$archive_cmds_need_lc_CXX" in
14260
x|xyes)
14261
  # Assume -lc should be added
14262
  archive_cmds_need_lc_CXX=yes
14263
 
14264
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14265
    case $archive_cmds_CXX in
14266
    *'~'*)
14267
      # FIXME: we may have to deal with multi-command sequences.
14268
      ;;
14269
    '$CC '*)
14270
      # Test whether the compiler implicitly links with -lc since on some
14271
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14272
      # to ld, don't add -lc before -lgcc.
14273
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14274
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14275
if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14276
  $as_echo_n "(cached) " >&6
14277
else
14278
  $RM conftest*
14279
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14280
 
14281
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14282
  (eval $ac_compile) 2>&5
14283
  ac_status=$?
14284
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285
  test $ac_status = 0; } 2>conftest.err; then
14286
          soname=conftest
14287
          lib=conftest
14288
          libobjs=conftest.$ac_objext
14289
          deplibs=
14290
          wl=$lt_prog_compiler_wl_CXX
14291
          pic_flag=$lt_prog_compiler_pic_CXX
14292
          compiler_flags=-v
14293
          linker_flags=-v
14294
          verstring=
14295
          output_objdir=.
14296
          libname=conftest
14297
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14298
          allow_undefined_flag_CXX=
14299
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14300
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14301
  ac_status=$?
14302
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14303
  test $ac_status = 0; }
14304
          then
14305
            lt_cv_archive_cmds_need_lc_CXX=no
14306
          else
14307
            lt_cv_archive_cmds_need_lc_CXX=yes
14308
          fi
14309
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14310
        else
14311
          cat conftest.err 1>&5
14312
        fi
14313
        $RM conftest*
14314
 
14315
fi
14316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14317
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14318
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14319
      ;;
14320
    esac
14321
  fi
14322
  ;;
14323
esac
14324
 
14325
 
14326
 
14327
 
14328
 
14329
 
14330
 
14331
 
14332
 
14333
 
14334
 
14335
 
14336
 
14337
 
14338
 
14339
 
14340
 
14341
 
14342
 
14343
 
14344
 
14345
 
14346
 
14347
 
14348
 
14349
 
14350
 
14351
 
14352
 
14353
 
14354
 
14355
 
14356
 
14357
 
14358
 
14359
 
14360
 
14361
 
14362
 
14363
 
14364
 
14365
 
14366
 
14367
 
14368
 
14369
 
14370
 
14371
 
14372
 
14373
 
14374
 
14375
 
14376
 
14377
 
14378
 
14379
 
14380
 
14381
 
14382
 
14383
 
14384
 
14385
 
14386
 
14387
 
14388
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14389
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14390
 
14391
library_names_spec=
14392
libname_spec='lib$name'
14393
soname_spec=
14394
shrext_cmds=".so"
14395
postinstall_cmds=
14396
postuninstall_cmds=
14397
finish_cmds=
14398
finish_eval=
14399
shlibpath_var=
14400
shlibpath_overrides_runpath=unknown
14401
version_type=none
14402
dynamic_linker="$host_os ld.so"
14403
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14404
need_lib_prefix=unknown
14405
hardcode_into_libs=no
14406
 
14407
# when you set need_version to no, make sure it does not cause -set_version
14408
# flags to be left without arguments
14409
need_version=unknown
14410
 
14411
case $host_os in
14412
aix3*)
14413
  version_type=linux
14414
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14415
  shlibpath_var=LIBPATH
14416
 
14417
  # AIX 3 has no versioning support, so we append a major version to the name.
14418
  soname_spec='${libname}${release}${shared_ext}$major'
14419
  ;;
14420
 
14421
aix[4-9]*)
14422
  version_type=linux
14423
  need_lib_prefix=no
14424
  need_version=no
14425
  hardcode_into_libs=yes
14426
  if test "$host_cpu" = ia64; then
14427
    # AIX 5 supports IA64
14428
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14429
    shlibpath_var=LD_LIBRARY_PATH
14430
  else
14431
    # With GCC up to 2.95.x, collect2 would create an import file
14432
    # for dependence libraries.  The import file would start with
14433
    # the line `#! .'.  This would cause the generated library to
14434
    # depend on `.', always an invalid library.  This was fixed in
14435
    # development snapshots of GCC prior to 3.0.
14436
    case $host_os in
14437
      aix4 | aix4.[01] | aix4.[01].*)
14438
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14439
           echo ' yes '
14440
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14441
        :
14442
      else
14443
        can_build_shared=no
14444
      fi
14445
      ;;
14446
    esac
14447
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14448
    # soname into executable. Probably we can add versioning support to
14449
    # collect2, so additional links can be useful in future.
14450
    if test "$aix_use_runtimelinking" = yes; then
14451
      # If using run time linking (on AIX 4.2 or later) use lib.so
14452
      # instead of lib.a to let people know that these are not
14453
      # typical AIX shared libraries.
14454
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455
    else
14456
      # We preserve .a as extension for shared libraries through AIX4.2
14457
      # and later when we are not doing run time linking.
14458
      library_names_spec='${libname}${release}.a $libname.a'
14459
      soname_spec='${libname}${release}${shared_ext}$major'
14460
    fi
14461
    shlibpath_var=LIBPATH
14462
  fi
14463
  ;;
14464
 
14465
amigaos*)
14466
  case $host_cpu in
14467
  powerpc)
14468
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14469
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14470
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471
    ;;
14472
  m68k)
14473
    library_names_spec='$libname.ixlibrary $libname.a'
14474
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14475
    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'
14476
    ;;
14477
  esac
14478
  ;;
14479
 
14480
beos*)
14481
  library_names_spec='${libname}${shared_ext}'
14482
  dynamic_linker="$host_os ld.so"
14483
  shlibpath_var=LIBRARY_PATH
14484
  ;;
14485
 
14486
bsdi[45]*)
14487
  version_type=linux
14488
  need_version=no
14489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490
  soname_spec='${libname}${release}${shared_ext}$major'
14491
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14492
  shlibpath_var=LD_LIBRARY_PATH
14493
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14494
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14495
  # the default ld.so.conf also contains /usr/contrib/lib and
14496
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14497
  # libtool to hard-code these into programs
14498
  ;;
14499
 
14500
cygwin* | mingw* | pw32* | cegcc*)
14501
  version_type=windows
14502
  shrext_cmds=".dll"
14503
  need_version=no
14504
  need_lib_prefix=no
14505
 
14506
  case $GCC,$host_os in
14507
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14508
    library_names_spec='$libname.dll.a'
14509
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14510
    postinstall_cmds='base_file=`basename \${file}`~
14511
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14512
      dldir=$destdir/`dirname \$dlpath`~
14513
      test -d \$dldir || mkdir -p \$dldir~
14514
      $install_prog $dir/$dlname \$dldir/$dlname~
14515
      chmod a+x \$dldir/$dlname~
14516
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14517
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14518
      fi'
14519
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14520
      dlpath=$dir/\$dldll~
14521
       $RM \$dlpath'
14522
    shlibpath_overrides_runpath=yes
14523
 
14524
    case $host_os in
14525
    cygwin*)
14526
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14527
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14528
 
14529
      ;;
14530
    mingw* | cegcc*)
14531
      # MinGW DLLs use traditional 'lib' prefix
14532
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14533
      ;;
14534
    pw32*)
14535
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14536
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537
      ;;
14538
    esac
14539
    ;;
14540
 
14541
  *)
14542
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14543
    ;;
14544
  esac
14545
  dynamic_linker='Win32 ld.exe'
14546
  # FIXME: first we should search . and the directory the executable is in
14547
  shlibpath_var=PATH
14548
  ;;
14549
 
14550
darwin* | rhapsody*)
14551
  dynamic_linker="$host_os dyld"
14552
  version_type=darwin
14553
  need_lib_prefix=no
14554
  need_version=no
14555
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14556
  soname_spec='${libname}${release}${major}$shared_ext'
14557
  shlibpath_overrides_runpath=yes
14558
  shlibpath_var=DYLD_LIBRARY_PATH
14559
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14560
 
14561
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14562
  ;;
14563
 
14564
dgux*)
14565
  version_type=linux
14566
  need_lib_prefix=no
14567
  need_version=no
14568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14569
  soname_spec='${libname}${release}${shared_ext}$major'
14570
  shlibpath_var=LD_LIBRARY_PATH
14571
  ;;
14572
 
14573
freebsd* | dragonfly*)
14574
  # DragonFly does not have aout.  When/if they implement a new
14575
  # versioning mechanism, adjust this.
14576
  if test -x /usr/bin/objformat; then
14577
    objformat=`/usr/bin/objformat`
14578
  else
14579
    case $host_os in
14580
    freebsd[23].*) objformat=aout ;;
14581
    *) objformat=elf ;;
14582
    esac
14583
  fi
14584
  version_type=freebsd-$objformat
14585
  case $version_type in
14586
    freebsd-elf*)
14587
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14588
      need_version=no
14589
      need_lib_prefix=no
14590
      ;;
14591
    freebsd-*)
14592
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593
      need_version=yes
14594
      ;;
14595
  esac
14596
  shlibpath_var=LD_LIBRARY_PATH
14597
  case $host_os in
14598
  freebsd2.*)
14599
    shlibpath_overrides_runpath=yes
14600
    ;;
14601
  freebsd3.[01]* | freebsdelf3.[01]*)
14602
    shlibpath_overrides_runpath=yes
14603
    hardcode_into_libs=yes
14604
    ;;
14605
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607
    shlibpath_overrides_runpath=no
14608
    hardcode_into_libs=yes
14609
    ;;
14610
  *) # from 4.6 on, and DragonFly
14611
    shlibpath_overrides_runpath=yes
14612
    hardcode_into_libs=yes
14613
    ;;
14614
  esac
14615
  ;;
14616
 
14617
gnu*)
14618
  version_type=linux
14619
  need_lib_prefix=no
14620
  need_version=no
14621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622
  soname_spec='${libname}${release}${shared_ext}$major'
14623
  shlibpath_var=LD_LIBRARY_PATH
14624
  hardcode_into_libs=yes
14625
  ;;
14626
 
14627
haiku*)
14628
  version_type=linux
14629
  need_lib_prefix=no
14630
  need_version=no
14631
  dynamic_linker="$host_os runtime_loader"
14632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14633
  soname_spec='${libname}${release}${shared_ext}$major'
14634
  shlibpath_var=LIBRARY_PATH
14635
  shlibpath_overrides_runpath=yes
14636
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14637
  hardcode_into_libs=yes
14638
  ;;
14639
 
14640
hpux9* | hpux10* | hpux11*)
14641
  # Give a soname corresponding to the major version so that dld.sl refuses to
14642
  # link against other versions.
14643
  version_type=sunos
14644
  need_lib_prefix=no
14645
  need_version=no
14646
  case $host_cpu in
14647
  ia64*)
14648
    shrext_cmds='.so'
14649
    hardcode_into_libs=yes
14650
    dynamic_linker="$host_os dld.so"
14651
    shlibpath_var=LD_LIBRARY_PATH
14652
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14653
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654
    soname_spec='${libname}${release}${shared_ext}$major'
14655
    if test "X$HPUX_IA64_MODE" = X32; then
14656
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14657
    else
14658
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14659
    fi
14660
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14661
    ;;
14662
  hppa*64*)
14663
    shrext_cmds='.sl'
14664
    hardcode_into_libs=yes
14665
    dynamic_linker="$host_os dld.sl"
14666
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14667
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669
    soname_spec='${libname}${release}${shared_ext}$major'
14670
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14671
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672
    ;;
14673
  *)
14674
    shrext_cmds='.sl'
14675
    dynamic_linker="$host_os dld.sl"
14676
    shlibpath_var=SHLIB_PATH
14677
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14678
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679
    soname_spec='${libname}${release}${shared_ext}$major'
14680
    ;;
14681
  esac
14682
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14683
  postinstall_cmds='chmod 555 $lib'
14684
  # or fails outright, so override atomically:
14685
  install_override_mode=555
14686
  ;;
14687
 
14688
interix[3-9]*)
14689
  version_type=linux
14690
  need_lib_prefix=no
14691
  need_version=no
14692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14693
  soname_spec='${libname}${release}${shared_ext}$major'
14694
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14695
  shlibpath_var=LD_LIBRARY_PATH
14696
  shlibpath_overrides_runpath=no
14697
  hardcode_into_libs=yes
14698
  ;;
14699
 
14700
irix5* | irix6* | nonstopux*)
14701
  case $host_os in
14702
    nonstopux*) version_type=nonstopux ;;
14703
    *)
14704
        if test "$lt_cv_prog_gnu_ld" = yes; then
14705
                version_type=linux
14706
        else
14707
                version_type=irix
14708
        fi ;;
14709
  esac
14710
  need_lib_prefix=no
14711
  need_version=no
14712
  soname_spec='${libname}${release}${shared_ext}$major'
14713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14714
  case $host_os in
14715
  irix5* | nonstopux*)
14716
    libsuff= shlibsuff=
14717
    ;;
14718
  *)
14719
    case $LD in # libtool.m4 will add one of these switches to LD
14720
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14721
      libsuff= shlibsuff= libmagic=32-bit;;
14722
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14723
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14724
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14725
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14726
    *) libsuff= shlibsuff= libmagic=never-match;;
14727
    esac
14728
    ;;
14729
  esac
14730
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14731
  shlibpath_overrides_runpath=no
14732
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14733
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14734
  hardcode_into_libs=yes
14735
  ;;
14736
 
14737
# No shared lib support for Linux oldld, aout, or coff.
14738
linux*oldld* | linux*aout* | linux*coff*)
14739
  dynamic_linker=no
14740
  ;;
14741
 
14742
# This must be Linux ELF.
14743
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14744
  version_type=linux
14745
  need_lib_prefix=no
14746
  need_version=no
14747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748
  soname_spec='${libname}${release}${shared_ext}$major'
14749
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14750
  shlibpath_var=LD_LIBRARY_PATH
14751
  shlibpath_overrides_runpath=no
14752
 
14753
  # Some binutils ld are patched to set DT_RUNPATH
14754
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14755
  $as_echo_n "(cached) " >&6
14756
else
14757
  lt_cv_shlibpath_overrides_runpath=no
14758
    save_LDFLAGS=$LDFLAGS
14759
    save_libdir=$libdir
14760
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14761
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14762
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763
/* end confdefs.h.  */
14764
 
14765
int
14766
main ()
14767
{
14768
 
14769
  ;
14770
  return 0;
14771
}
14772
_ACEOF
14773
if ac_fn_cxx_try_link "$LINENO"; then :
14774
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14775
  lt_cv_shlibpath_overrides_runpath=yes
14776
fi
14777
fi
14778
rm -f core conftest.err conftest.$ac_objext \
14779
    conftest$ac_exeext conftest.$ac_ext
14780
    LDFLAGS=$save_LDFLAGS
14781
    libdir=$save_libdir
14782
 
14783
fi
14784
 
14785
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14786
 
14787
  # This implies no fast_install, which is unacceptable.
14788
  # Some rework will be needed to allow for fast_install
14789
  # before this can be enabled.
14790
  hardcode_into_libs=yes
14791
 
14792
  # Append ld.so.conf contents to the search path
14793
  if test -f /etc/ld.so.conf; then
14794
    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' ' '`
14795
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14796
  fi
14797
 
14798
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14799
  # powerpc, because MkLinux only supported shared libraries with the
14800
  # GNU dynamic linker.  Since this was broken with cross compilers,
14801
  # most powerpc-linux boxes support dynamic linking these days and
14802
  # people can always --disable-shared, the test was removed, and we
14803
  # assume the GNU/Linux dynamic linker is in use.
14804
  dynamic_linker='GNU/Linux ld.so'
14805
  ;;
14806
 
14807
netbsd*)
14808
  version_type=sunos
14809
  need_lib_prefix=no
14810
  need_version=no
14811
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14812
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14813
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14814
    dynamic_linker='NetBSD (a.out) ld.so'
14815
  else
14816
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14817
    soname_spec='${libname}${release}${shared_ext}$major'
14818
    dynamic_linker='NetBSD ld.elf_so'
14819
  fi
14820
  shlibpath_var=LD_LIBRARY_PATH
14821
  shlibpath_overrides_runpath=yes
14822
  hardcode_into_libs=yes
14823
  ;;
14824
 
14825
newsos6)
14826
  version_type=linux
14827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828
  shlibpath_var=LD_LIBRARY_PATH
14829
  shlibpath_overrides_runpath=yes
14830
  ;;
14831
 
14832
*nto* | *qnx*)
14833
  version_type=qnx
14834
  need_lib_prefix=no
14835
  need_version=no
14836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837
  soname_spec='${libname}${release}${shared_ext}$major'
14838
  shlibpath_var=LD_LIBRARY_PATH
14839
  shlibpath_overrides_runpath=no
14840
  hardcode_into_libs=yes
14841
  dynamic_linker='ldqnx.so'
14842
  ;;
14843
 
14844
openbsd*)
14845
  version_type=sunos
14846
  sys_lib_dlsearch_path_spec="/usr/lib"
14847
  need_lib_prefix=no
14848
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14849
  case $host_os in
14850
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14851
    *)                          need_version=no  ;;
14852
  esac
14853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855
  shlibpath_var=LD_LIBRARY_PATH
14856
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14857
    case $host_os in
14858
      openbsd2.[89] | openbsd2.[89].*)
14859
        shlibpath_overrides_runpath=no
14860
        ;;
14861
      *)
14862
        shlibpath_overrides_runpath=yes
14863
        ;;
14864
      esac
14865
  else
14866
    shlibpath_overrides_runpath=yes
14867
  fi
14868
  ;;
14869
 
14870
os2*)
14871
  libname_spec='$name'
14872
  shrext_cmds=".dll"
14873
  need_lib_prefix=no
14874
  library_names_spec='$libname${shared_ext} $libname.a'
14875
  dynamic_linker='OS/2 ld.exe'
14876
  shlibpath_var=LIBPATH
14877
  ;;
14878
 
14879
osf3* | osf4* | osf5*)
14880
  version_type=osf
14881
  need_lib_prefix=no
14882
  need_version=no
14883
  soname_spec='${libname}${release}${shared_ext}$major'
14884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885
  shlibpath_var=LD_LIBRARY_PATH
14886
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14887
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14888
  ;;
14889
 
14890
rdos*)
14891
  dynamic_linker=no
14892
  ;;
14893
 
14894
solaris*)
14895
  version_type=linux
14896
  need_lib_prefix=no
14897
  need_version=no
14898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899
  soname_spec='${libname}${release}${shared_ext}$major'
14900
  shlibpath_var=LD_LIBRARY_PATH
14901
  shlibpath_overrides_runpath=yes
14902
  hardcode_into_libs=yes
14903
  # ldd complains unless libraries are executable
14904
  postinstall_cmds='chmod +x $lib'
14905
  ;;
14906
 
14907
sunos4*)
14908
  version_type=sunos
14909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14911
  shlibpath_var=LD_LIBRARY_PATH
14912
  shlibpath_overrides_runpath=yes
14913
  if test "$with_gnu_ld" = yes; then
14914
    need_lib_prefix=no
14915
  fi
14916
  need_version=yes
14917
  ;;
14918
 
14919
sysv4 | sysv4.3*)
14920
  version_type=linux
14921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922
  soname_spec='${libname}${release}${shared_ext}$major'
14923
  shlibpath_var=LD_LIBRARY_PATH
14924
  case $host_vendor in
14925
    sni)
14926
      shlibpath_overrides_runpath=no
14927
      need_lib_prefix=no
14928
      runpath_var=LD_RUN_PATH
14929
      ;;
14930
    siemens)
14931
      need_lib_prefix=no
14932
      ;;
14933
    motorola)
14934
      need_lib_prefix=no
14935
      need_version=no
14936
      shlibpath_overrides_runpath=no
14937
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14938
      ;;
14939
  esac
14940
  ;;
14941
 
14942
sysv4*MP*)
14943
  if test -d /usr/nec ;then
14944
    version_type=linux
14945
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14946
    soname_spec='$libname${shared_ext}.$major'
14947
    shlibpath_var=LD_LIBRARY_PATH
14948
  fi
14949
  ;;
14950
 
14951
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14952
  version_type=freebsd-elf
14953
  need_lib_prefix=no
14954
  need_version=no
14955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14956
  soname_spec='${libname}${release}${shared_ext}$major'
14957
  shlibpath_var=LD_LIBRARY_PATH
14958
  shlibpath_overrides_runpath=yes
14959
  hardcode_into_libs=yes
14960
  if test "$with_gnu_ld" = yes; then
14961
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14962
  else
14963
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14964
    case $host_os in
14965
      sco3.2v5*)
14966
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14967
        ;;
14968
    esac
14969
  fi
14970
  sys_lib_dlsearch_path_spec='/usr/lib'
14971
  ;;
14972
 
14973
tpf*)
14974
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14975
  version_type=linux
14976
  need_lib_prefix=no
14977
  need_version=no
14978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979
  shlibpath_var=LD_LIBRARY_PATH
14980
  shlibpath_overrides_runpath=no
14981
  hardcode_into_libs=yes
14982
  ;;
14983
 
14984
uts4*)
14985
  version_type=linux
14986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987
  soname_spec='${libname}${release}${shared_ext}$major'
14988
  shlibpath_var=LD_LIBRARY_PATH
14989
  ;;
14990
 
14991
*)
14992
  dynamic_linker=no
14993
  ;;
14994
esac
14995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14996
$as_echo "$dynamic_linker" >&6; }
14997
test "$dynamic_linker" = no && can_build_shared=no
14998
 
14999
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15000
if test "$GCC" = yes; then
15001
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15002
fi
15003
 
15004
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15005
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15006
fi
15007
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15008
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15009
fi
15010
 
15011
 
15012
 
15013
 
15014
 
15015
 
15016
 
15017
 
15018
 
15019
 
15020
 
15021
 
15022
 
15023
 
15024
 
15025
 
15026
 
15027
 
15028
 
15029
 
15030
 
15031
 
15032
 
15033
 
15034
 
15035
 
15036
 
15037
 
15038
 
15039
 
15040
 
15041
 
15042
 
15043
 
15044
 
15045
 
15046
 
15047
 
15048
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15049
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15050
hardcode_action_CXX=
15051
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15052
   test -n "$runpath_var_CXX" ||
15053
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15054
 
15055
  # We can hardcode non-existent directories.
15056
  if test "$hardcode_direct_CXX" != no &&
15057
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15058
     # have to relink, otherwise we might link with an installed library
15059
     # when we should be linking with a yet-to-be-installed one
15060
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15061
     test "$hardcode_minus_L_CXX" != no; then
15062
    # Linking always hardcodes the temporary library directory.
15063
    hardcode_action_CXX=relink
15064
  else
15065
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15066
    hardcode_action_CXX=immediate
15067
  fi
15068
else
15069
  # We cannot hardcode anything, or else we can only hardcode existing
15070
  # directories.
15071
  hardcode_action_CXX=unsupported
15072
fi
15073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15074
$as_echo "$hardcode_action_CXX" >&6; }
15075
 
15076
if test "$hardcode_action_CXX" = relink ||
15077
   test "$inherit_rpath_CXX" = yes; then
15078
  # Fast installation is not supported
15079
  enable_fast_install=no
15080
elif test "$shlibpath_overrides_runpath" = yes ||
15081
     test "$enable_shared" = no; then
15082
  # Fast installation is not necessary
15083
  enable_fast_install=needless
15084
fi
15085
 
15086
 
15087
 
15088
 
15089
 
15090
 
15091
 
15092
  fi # test -n "$compiler"
15093
 
15094
  CC=$lt_save_CC
15095
  LDCXX=$LD
15096
  LD=$lt_save_LD
15097
  GCC=$lt_save_GCC
15098
  with_gnu_ld=$lt_save_with_gnu_ld
15099
  lt_cv_path_LDCXX=$lt_cv_path_LD
15100
  lt_cv_path_LD=$lt_save_path_LD
15101
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15102
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15103
fi # test "$_lt_caught_CXX_error" != yes
15104
 
15105
ac_ext=c
15106
ac_cpp='$CPP $CPPFLAGS'
15107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15110
 
15111
 
15112
 
15113
 
15114
 
15115
 
15116
 
15117
 
15118
 
15119
 
15120
 
15121
 
15122
 
15123
        ac_config_commands="$ac_config_commands libtool"
15124
 
15125
 
15126
 
15127
 
15128
# Only expand once:
15129
 
15130
 
15131
 
15132
 
15133
 
15134
 
15135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15136
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15137
    # Check whether --enable-maintainer-mode was given.
15138
if test "${enable_maintainer_mode+set}" = set; then :
15139
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15140
else
15141
  USE_MAINTAINER_MODE=no
15142
fi
15143
 
15144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15145
$as_echo "$USE_MAINTAINER_MODE" >&6; }
15146
   if test $USE_MAINTAINER_MODE = yes; then
15147
  MAINTAINER_MODE_TRUE=
15148
  MAINTAINER_MODE_FALSE='#'
15149
else
15150
  MAINTAINER_MODE_TRUE='#'
15151
  MAINTAINER_MODE_FALSE=
15152
fi
15153
 
15154
  MAINT=$MAINTAINER_MODE_TRUE
15155
 
15156
 
15157
 
15158
# For libtool versioning info, format is CURRENT:REVISION:AGE
15159
libtool_VERSION=1:0:0
15160
 
15161
 
15162
# Check header files.
15163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15164
$as_echo_n "checking for ANSI C header files... " >&6; }
15165
if test "${ac_cv_header_stdc+set}" = set; then :
15166
  $as_echo_n "(cached) " >&6
15167
else
15168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169
/* end confdefs.h.  */
15170
#include 
15171
#include 
15172
#include 
15173
#include 
15174
 
15175
int
15176
main ()
15177
{
15178
 
15179
  ;
15180
  return 0;
15181
}
15182
_ACEOF
15183
if ac_fn_c_try_compile "$LINENO"; then :
15184
  ac_cv_header_stdc=yes
15185
else
15186
  ac_cv_header_stdc=no
15187
fi
15188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189
 
15190
if test $ac_cv_header_stdc = yes; then
15191
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193
/* end confdefs.h.  */
15194
#include 
15195
 
15196
_ACEOF
15197
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198
  $EGREP "memchr" >/dev/null 2>&1; then :
15199
 
15200
else
15201
  ac_cv_header_stdc=no
15202
fi
15203
rm -f conftest*
15204
 
15205
fi
15206
 
15207
if test $ac_cv_header_stdc = yes; then
15208
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15209
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210
/* end confdefs.h.  */
15211
#include 
15212
 
15213
_ACEOF
15214
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15215
  $EGREP "free" >/dev/null 2>&1; then :
15216
 
15217
else
15218
  ac_cv_header_stdc=no
15219
fi
15220
rm -f conftest*
15221
 
15222
fi
15223
 
15224
if test $ac_cv_header_stdc = yes; then
15225
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15226
  if test "$cross_compiling" = yes; then :
15227
  :
15228
else
15229
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230
/* end confdefs.h.  */
15231
#include 
15232
#include 
15233
#if ((' ' & 0x0FF) == 0x020)
15234
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15235
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15236
#else
15237
# define ISLOWER(c) \
15238
                   (('a' <= (c) && (c) <= 'i') \
15239
                     || ('j' <= (c) && (c) <= 'r') \
15240
                     || ('s' <= (c) && (c) <= 'z'))
15241
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15242
#endif
15243
 
15244
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15245
int
15246
main ()
15247
{
15248
  int i;
15249
  for (i = 0; i < 256; i++)
15250
    if (XOR (islower (i), ISLOWER (i))
15251
        || toupper (i) != TOUPPER (i))
15252
      return 2;
15253
  return 0;
15254
}
15255
_ACEOF
15256
if ac_fn_c_try_run "$LINENO"; then :
15257
 
15258
else
15259
  ac_cv_header_stdc=no
15260
fi
15261
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15262
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15263
fi
15264
 
15265
fi
15266
fi
15267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15268
$as_echo "$ac_cv_header_stdc" >&6; }
15269
if test $ac_cv_header_stdc = yes; then
15270
 
15271
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15272
 
15273
fi
15274
 
15275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15276
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15277
if test "${ac_cv_header_time+set}" = set; then :
15278
  $as_echo_n "(cached) " >&6
15279
else
15280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281
/* end confdefs.h.  */
15282
#include 
15283
#include 
15284
#include 
15285
 
15286
int
15287
main ()
15288
{
15289
if ((struct tm *) 0)
15290
return 0;
15291
  ;
15292
  return 0;
15293
}
15294
_ACEOF
15295
if ac_fn_c_try_compile "$LINENO"; then :
15296
  ac_cv_header_time=yes
15297
else
15298
  ac_cv_header_time=no
15299
fi
15300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301
fi
15302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15303
$as_echo "$ac_cv_header_time" >&6; }
15304
if test $ac_cv_header_time = yes; then
15305
 
15306
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15307
 
15308
fi
15309
 
15310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15311
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15312
if test "${gcc_cv_header_string+set}" = set; then :
15313
  $as_echo_n "(cached) " >&6
15314
else
15315
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316
/* end confdefs.h.  */
15317
#include 
15318
#include 
15319
int
15320
main ()
15321
{
15322
 
15323
  ;
15324
  return 0;
15325
}
15326
_ACEOF
15327
if ac_fn_c_try_compile "$LINENO"; then :
15328
  gcc_cv_header_string=yes
15329
else
15330
  gcc_cv_header_string=no
15331
fi
15332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333
fi
15334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15335
$as_echo "$gcc_cv_header_string" >&6; }
15336
if test $gcc_cv_header_string = yes; then
15337
 
15338
$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15339
 
15340
fi
15341
 
15342
for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15343
do :
15344
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15345
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15346
eval as_val=\$$as_ac_Header
15347
   if test "x$as_val" = x""yes; then :
15348
  cat >>confdefs.h <<_ACEOF
15349
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15350
_ACEOF
15351
 
15352
fi
15353
 
15354
done
15355
 
15356
 
15357
 
15358
 
15359
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15360
 
15361
acx_cv_header_stdint=stddef.h
15362
acx_cv_header_stdint_kind="(already complete)"
15363
for i in stdint.h $inttype_headers; do
15364
  unset ac_cv_type_uintptr_t
15365
  unset ac_cv_type_uintmax_t
15366
  unset ac_cv_type_int_least32_t
15367
  unset ac_cv_type_int_fast32_t
15368
  unset ac_cv_type_uint64_t
15369
  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15370
  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include 
15371
#include <$i>
15372
"
15373
if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15374
  acx_cv_header_stdint=$i
15375
else
15376
  continue
15377
fi
15378
 
15379
  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
15380
#include <$i>
15381
"
15382
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15383
 
15384
else
15385
  acx_cv_header_stdint_kind="(mostly complete)"
15386
fi
15387
 
15388
  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include 
15389
#include <$i>
15390
"
15391
if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15392
 
15393
else
15394
  acx_cv_header_stdint_kind="(mostly complete)"
15395
fi
15396
 
15397
  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include 
15398
#include <$i>
15399
"
15400
if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15401
 
15402
else
15403
  acx_cv_header_stdint_kind="(mostly complete)"
15404
fi
15405
 
15406
  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
15407
#include <$i>
15408
"
15409
if test "x$ac_cv_type_uint64_t" = x""yes; then :
15410
 
15411
else
15412
  acx_cv_header_stdint_kind="(lacks uint64_t)"
15413
fi
15414
 
15415
  break
15416
done
15417
if test "$acx_cv_header_stdint" = stddef.h; then
15418
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
15419
  for i in stdint.h $inttype_headers; do
15420
    unset ac_cv_type_uintptr_t
15421
    unset ac_cv_type_uint32_t
15422
    unset ac_cv_type_uint64_t
15423
    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15424
    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
15425
#include <$i>
15426
"
15427
if test "x$ac_cv_type_uint32_t" = x""yes; then :
15428
  acx_cv_header_stdint=$i
15429
else
15430
  continue
15431
fi
15432
 
15433
    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
15434
#include <$i>
15435
"
15436
if test "x$ac_cv_type_uint64_t" = x""yes; then :
15437
 
15438
fi
15439
 
15440
    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
15441
#include <$i>
15442
"
15443
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15444
 
15445
fi
15446
 
15447
    break
15448
  done
15449
fi
15450
if test "$acx_cv_header_stdint" = stddef.h; then
15451
  acx_cv_header_stdint_kind="(u_intXX_t style)"
15452
  for i in sys/types.h $inttype_headers; do
15453
    unset ac_cv_type_u_int32_t
15454
    unset ac_cv_type_u_int64_t
15455
    $as_echo_n "looking for u_intXX_t types in $i, " >&6
15456
    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include 
15457
#include <$i>
15458
"
15459
if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15460
  acx_cv_header_stdint=$i
15461
else
15462
  continue
15463
fi
15464
 
15465
    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include 
15466
#include <$i>
15467
"
15468
if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15469
 
15470
fi
15471
 
15472
    break
15473
  done
15474
fi
15475
if test "$acx_cv_header_stdint" = stddef.h; then
15476
  acx_cv_header_stdint_kind="(using manual detection)"
15477
fi
15478
 
15479
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15480
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15481
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15482
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15483
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15484
 
15485
# ----------------- Summarize what we found so far
15486
 
15487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15488
$as_echo_n "checking what to include in gstdint.h... " >&6; }
15489
 
15490
case `$as_basename -- gstdint.h ||
15491
$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15492
         Xgstdint.h : 'X\(//\)$' \| \
15493
         Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15494
$as_echo X/gstdint.h |
15495
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15496
            s//\1/
15497
            q
15498
          }
15499
          /^X\/\(\/\/\)$/{
15500
            s//\1/
15501
            q
15502
          }
15503
          /^X\/\(\/\).*/{
15504
            s//\1/
15505
            q
15506
          }
15507
          s/.*/./; q'` in
15508
  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15509
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15510
  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15511
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15512
  *) ;;
15513
esac
15514
 
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15516
$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15517
 
15518
# ----------------- done included file, check C basic types --------
15519
 
15520
# Lacking an uintptr_t?  Test size of void *
15521
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15522
  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15523
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15524
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15525
# This bug is HP SR number 8606223364.
15526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15527
$as_echo_n "checking size of void *... " >&6; }
15528
if test "${ac_cv_sizeof_void_p+set}" = set; then :
15529
  $as_echo_n "(cached) " >&6
15530
else
15531
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15532
 
15533
else
15534
  if test "$ac_cv_type_void_p" = yes; then
15535
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15536
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15537
{ as_fn_set_status 77
15538
as_fn_error "cannot compute sizeof (void *)
15539
See \`config.log' for more details." "$LINENO" 5; }; }
15540
   else
15541
     ac_cv_sizeof_void_p=0
15542
   fi
15543
fi
15544
 
15545
fi
15546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15547
$as_echo "$ac_cv_sizeof_void_p" >&6; }
15548
 
15549
 
15550
 
15551
cat >>confdefs.h <<_ACEOF
15552
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15553
_ACEOF
15554
 
15555
 ;;
15556
esac
15557
 
15558
# Lacking an uint64_t?  Test size of long
15559
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15560
  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15561
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15562
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15563
# This bug is HP SR number 8606223364.
15564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15565
$as_echo_n "checking size of long... " >&6; }
15566
if test "${ac_cv_sizeof_long+set}" = set; then :
15567
  $as_echo_n "(cached) " >&6
15568
else
15569
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15570
 
15571
else
15572
  if test "$ac_cv_type_long" = yes; then
15573
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15574
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15575
{ as_fn_set_status 77
15576
as_fn_error "cannot compute sizeof (long)
15577
See \`config.log' for more details." "$LINENO" 5; }; }
15578
   else
15579
     ac_cv_sizeof_long=0
15580
   fi
15581
fi
15582
 
15583
fi
15584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15585
$as_echo "$ac_cv_sizeof_long" >&6; }
15586
 
15587
 
15588
 
15589
cat >>confdefs.h <<_ACEOF
15590
#define SIZEOF_LONG $ac_cv_sizeof_long
15591
_ACEOF
15592
 
15593
 ;;
15594
esac
15595
 
15596
if test $acx_cv_header_stdint = stddef.h; then
15597
  # Lacking a good header?  Test size of everything and deduce all types.
15598
  # The cast to long int works around a bug in the HP C Compiler
15599
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15600
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15601
# This bug is HP SR number 8606223364.
15602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15603
$as_echo_n "checking size of int... " >&6; }
15604
if test "${ac_cv_sizeof_int+set}" = set; then :
15605
  $as_echo_n "(cached) " >&6
15606
else
15607
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15608
 
15609
else
15610
  if test "$ac_cv_type_int" = yes; then
15611
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15612
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15613
{ as_fn_set_status 77
15614
as_fn_error "cannot compute sizeof (int)
15615
See \`config.log' for more details." "$LINENO" 5; }; }
15616
   else
15617
     ac_cv_sizeof_int=0
15618
   fi
15619
fi
15620
 
15621
fi
15622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15623
$as_echo "$ac_cv_sizeof_int" >&6; }
15624
 
15625
 
15626
 
15627
cat >>confdefs.h <<_ACEOF
15628
#define SIZEOF_INT $ac_cv_sizeof_int
15629
_ACEOF
15630
 
15631
 
15632
  # The cast to long int works around a bug in the HP C Compiler
15633
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15634
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15635
# This bug is HP SR number 8606223364.
15636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15637
$as_echo_n "checking size of short... " >&6; }
15638
if test "${ac_cv_sizeof_short+set}" = set; then :
15639
  $as_echo_n "(cached) " >&6
15640
else
15641
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15642
 
15643
else
15644
  if test "$ac_cv_type_short" = yes; then
15645
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15646
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15647
{ as_fn_set_status 77
15648
as_fn_error "cannot compute sizeof (short)
15649
See \`config.log' for more details." "$LINENO" 5; }; }
15650
   else
15651
     ac_cv_sizeof_short=0
15652
   fi
15653
fi
15654
 
15655
fi
15656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15657
$as_echo "$ac_cv_sizeof_short" >&6; }
15658
 
15659
 
15660
 
15661
cat >>confdefs.h <<_ACEOF
15662
#define SIZEOF_SHORT $ac_cv_sizeof_short
15663
_ACEOF
15664
 
15665
 
15666
  # The cast to long int works around a bug in the HP C Compiler
15667
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15668
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15669
# This bug is HP SR number 8606223364.
15670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15671
$as_echo_n "checking size of char... " >&6; }
15672
if test "${ac_cv_sizeof_char+set}" = set; then :
15673
  $as_echo_n "(cached) " >&6
15674
else
15675
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15676
 
15677
else
15678
  if test "$ac_cv_type_char" = yes; then
15679
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15680
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15681
{ as_fn_set_status 77
15682
as_fn_error "cannot compute sizeof (char)
15683
See \`config.log' for more details." "$LINENO" 5; }; }
15684
   else
15685
     ac_cv_sizeof_char=0
15686
   fi
15687
fi
15688
 
15689
fi
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15691
$as_echo "$ac_cv_sizeof_char" >&6; }
15692
 
15693
 
15694
 
15695
cat >>confdefs.h <<_ACEOF
15696
#define SIZEOF_CHAR $ac_cv_sizeof_char
15697
_ACEOF
15698
 
15699
 
15700
 
15701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15702
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15703
  case "$ac_cv_sizeof_char" in
15704
    1) acx_cv_type_int8_t=char ;;
15705
    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15706
  esac
15707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15708
$as_echo "$acx_cv_type_int8_t" >&6; }
15709
 
15710
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15711
$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15712
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15713
    2:*) acx_cv_type_int16_t=int ;;
15714
    *:2) acx_cv_type_int16_t=short ;;
15715
    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15716
  esac
15717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15718
$as_echo "$acx_cv_type_int16_t" >&6; }
15719
 
15720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15721
$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15722
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15723
    4:*) acx_cv_type_int32_t=int ;;
15724
    *:4) acx_cv_type_int32_t=long ;;
15725
    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15726
  esac
15727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15728
$as_echo "$acx_cv_type_int32_t" >&6; }
15729
fi
15730
 
15731
# These tests are here to make the output prettier
15732
 
15733
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15734
  case "$ac_cv_sizeof_long" in
15735
    8) acx_cv_type_int64_t=long ;;
15736
  esac
15737
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15738
$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15740
$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15741
fi
15742
 
15743
# Now we can use the above types
15744
 
15745
if test "$ac_cv_type_uintptr_t" != yes; then
15746
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15747
$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15748
  case $ac_cv_sizeof_void_p in
15749
    2) acx_cv_type_intptr_t=int16_t ;;
15750
    4) acx_cv_type_intptr_t=int32_t ;;
15751
    8) acx_cv_type_intptr_t=int64_t ;;
15752
    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15753
  esac
15754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15755
$as_echo "$acx_cv_type_intptr_t" >&6; }
15756
fi
15757
 
15758
# ----------------- done all checks, emit header -------------
15759
ac_config_commands="$ac_config_commands gstdint.h"
15760
 
15761
 
15762
 
15763
 
15764
 
15765
ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15766
if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15767
  gcc_header_sys_mman_h=yes
15768
else
15769
  gcc_header_sys_mman_h=no
15770
fi
15771
 
15772
 
15773
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15774
if test "x$ac_cv_func_mmap" = x""yes; then :
15775
  gcc_func_mmap=yes
15776
else
15777
  gcc_func_mmap=no
15778
fi
15779
 
15780
if test "$gcc_header_sys_mman_h" != yes \
15781
 || test "$gcc_func_mmap" != yes; then
15782
   gcc_cv_func_mmap_file=no
15783
   gcc_cv_func_mmap_dev_zero=no
15784
   gcc_cv_func_mmap_anon=no
15785
else
15786
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15787
$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15788
if test "${gcc_cv_func_mmap_file+set}" = set; then :
15789
  $as_echo_n "(cached) " >&6
15790
else
15791
  # Add a system to this blacklist if
15792
   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15793
   # memory area containing the same data that you'd get if you applied
15794
   # read() to the same fd.  The only system known to have a problem here
15795
   # is VMS, where text files have record structure.
15796
   case "$host_os" in
15797
     vms* | ultrix*)
15798
        gcc_cv_func_mmap_file=no ;;
15799
     *)
15800
        gcc_cv_func_mmap_file=yes;;
15801
   esac
15802
fi
15803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15804
$as_echo "$gcc_cv_func_mmap_file" >&6; }
15805
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15806
$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15807
if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15808
  $as_echo_n "(cached) " >&6
15809
else
15810
  # Add a system to this blacklist if it has mmap() but /dev/zero
15811
   # does not exist, or if mmapping /dev/zero does not give anonymous
15812
   # zeroed pages with both the following properties:
15813
   # 1. If you map N consecutive pages in with one call, and then
15814
   #    unmap any subset of those pages, the pages that were not
15815
   #    explicitly unmapped remain accessible.
15816
   # 2. If you map two adjacent blocks of memory and then unmap them
15817
   #    both at once, they must both go away.
15818
   # Systems known to be in this category are Windows (all variants),
15819
   # VMS, and Darwin.
15820
   case "$host_os" in
15821
     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15822
        gcc_cv_func_mmap_dev_zero=no ;;
15823
     *)
15824
        gcc_cv_func_mmap_dev_zero=yes;;
15825
   esac
15826
fi
15827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15828
$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15829
 
15830
   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15831
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15832
$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15833
if test "${gcc_cv_decl_map_anon+set}" = set; then :
15834
  $as_echo_n "(cached) " >&6
15835
else
15836
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837
/* end confdefs.h.  */
15838
#include 
15839
#include 
15840
#include 
15841
 
15842
#ifndef MAP_ANONYMOUS
15843
#define MAP_ANONYMOUS MAP_ANON
15844
#endif
15845
 
15846
int
15847
main ()
15848
{
15849
int n = MAP_ANONYMOUS;
15850
  ;
15851
  return 0;
15852
}
15853
_ACEOF
15854
if ac_fn_c_try_compile "$LINENO"; then :
15855
  gcc_cv_decl_map_anon=yes
15856
else
15857
  gcc_cv_decl_map_anon=no
15858
fi
15859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860
fi
15861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15862
$as_echo "$gcc_cv_decl_map_anon" >&6; }
15863
 
15864
   if test $gcc_cv_decl_map_anon = no; then
15865
     gcc_cv_func_mmap_anon=no
15866
   else
15867
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15868
$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15869
if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15870
  $as_echo_n "(cached) " >&6
15871
else
15872
  # Add a system to this blacklist if it has mmap() and MAP_ANON or
15873
   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15874
   # doesn't give anonymous zeroed pages with the same properties listed
15875
   # above for use of /dev/zero.
15876
   # Systems known to be in this category are Windows, VMS, and SCO Unix.
15877
   case "$host_os" in
15878
     vms* | cygwin* | pe | mingw* | sco* | udk* )
15879
        gcc_cv_func_mmap_anon=no ;;
15880
     *)
15881
        gcc_cv_func_mmap_anon=yes;;
15882
   esac
15883
fi
15884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15885
$as_echo "$gcc_cv_func_mmap_anon" >&6; }
15886
   fi
15887
fi
15888
 
15889
if test $gcc_cv_func_mmap_file = yes; then
15890
 
15891
$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15892
 
15893
fi
15894
if test $gcc_cv_func_mmap_dev_zero = yes; then
15895
 
15896
$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15897
 
15898
fi
15899
if test $gcc_cv_func_mmap_anon = yes; then
15900
 
15901
$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15902
 
15903
fi
15904
 
15905
 
15906
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15907
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15908
if test "${ac_cv_c_bigendian+set}" = set; then :
15909
  $as_echo_n "(cached) " >&6
15910
else
15911
  ac_cv_c_bigendian=unknown
15912
    # See if we're dealing with a universal compiler.
15913
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914
/* end confdefs.h.  */
15915
#ifndef __APPLE_CC__
15916
               not a universal capable compiler
15917
             #endif
15918
             typedef int dummy;
15919
 
15920
_ACEOF
15921
if ac_fn_c_try_compile "$LINENO"; then :
15922
 
15923
        # Check for potential -arch flags.  It is not universal unless
15924
        # there are at least two -arch flags with different values.
15925
        ac_arch=
15926
        ac_prev=
15927
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15928
         if test -n "$ac_prev"; then
15929
           case $ac_word in
15930
             i?86 | x86_64 | ppc | ppc64)
15931
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15932
                 ac_arch=$ac_word
15933
               else
15934
                 ac_cv_c_bigendian=universal
15935
                 break
15936
               fi
15937
               ;;
15938
           esac
15939
           ac_prev=
15940
         elif test "x$ac_word" = "x-arch"; then
15941
           ac_prev=arch
15942
         fi
15943
       done
15944
fi
15945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946
    if test $ac_cv_c_bigendian = unknown; then
15947
      # See if sys/param.h defines the BYTE_ORDER macro.
15948
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949
/* end confdefs.h.  */
15950
#include 
15951
             #include 
15952
 
15953
int
15954
main ()
15955
{
15956
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15957
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15958
                     && LITTLE_ENDIAN)
15959
              bogus endian macros
15960
             #endif
15961
 
15962
  ;
15963
  return 0;
15964
}
15965
_ACEOF
15966
if ac_fn_c_try_compile "$LINENO"; then :
15967
  # It does; now see whether it defined to BIG_ENDIAN or not.
15968
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969
/* end confdefs.h.  */
15970
#include 
15971
                #include 
15972
 
15973
int
15974
main ()
15975
{
15976
#if BYTE_ORDER != BIG_ENDIAN
15977
                 not big endian
15978
                #endif
15979
 
15980
  ;
15981
  return 0;
15982
}
15983
_ACEOF
15984
if ac_fn_c_try_compile "$LINENO"; then :
15985
  ac_cv_c_bigendian=yes
15986
else
15987
  ac_cv_c_bigendian=no
15988
fi
15989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990
fi
15991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992
    fi
15993
    if test $ac_cv_c_bigendian = unknown; then
15994
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15995
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996
/* end confdefs.h.  */
15997
#include 
15998
 
15999
int
16000
main ()
16001
{
16002
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16003
              bogus endian macros
16004
             #endif
16005
 
16006
  ;
16007
  return 0;
16008
}
16009
_ACEOF
16010
if ac_fn_c_try_compile "$LINENO"; then :
16011
  # It does; now see whether it defined to _BIG_ENDIAN or not.
16012
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013
/* end confdefs.h.  */
16014
#include 
16015
 
16016
int
16017
main ()
16018
{
16019
#ifndef _BIG_ENDIAN
16020
                 not big endian
16021
                #endif
16022
 
16023
  ;
16024
  return 0;
16025
}
16026
_ACEOF
16027
if ac_fn_c_try_compile "$LINENO"; then :
16028
  ac_cv_c_bigendian=yes
16029
else
16030
  ac_cv_c_bigendian=no
16031
fi
16032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033
fi
16034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035
    fi
16036
    if test $ac_cv_c_bigendian = unknown; then
16037
      # Compile a test program.
16038
      if test "$cross_compiling" = yes; then :
16039
  # Try to guess by grepping values from an object file.
16040
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041
/* end confdefs.h.  */
16042
short int ascii_mm[] =
16043
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16044
                short int ascii_ii[] =
16045
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16046
                int use_ascii (int i) {
16047
                  return ascii_mm[i] + ascii_ii[i];
16048
                }
16049
                short int ebcdic_ii[] =
16050
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16051
                short int ebcdic_mm[] =
16052
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16053
                int use_ebcdic (int i) {
16054
                  return ebcdic_mm[i] + ebcdic_ii[i];
16055
                }
16056
                extern int foo;
16057
 
16058
int
16059
main ()
16060
{
16061
return use_ascii (foo) == use_ebcdic (foo);
16062
  ;
16063
  return 0;
16064
}
16065
_ACEOF
16066
if ac_fn_c_try_compile "$LINENO"; then :
16067
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16068
              ac_cv_c_bigendian=yes
16069
            fi
16070
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16071
              if test "$ac_cv_c_bigendian" = unknown; then
16072
                ac_cv_c_bigendian=no
16073
              else
16074
                # finding both strings is unlikely to happen, but who knows?
16075
                ac_cv_c_bigendian=unknown
16076
              fi
16077
            fi
16078
fi
16079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080
else
16081
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082
/* end confdefs.h.  */
16083
$ac_includes_default
16084
int
16085
main ()
16086
{
16087
 
16088
             /* Are we little or big endian?  From Harbison&Steele.  */
16089
             union
16090
             {
16091
               long int l;
16092
               char c[sizeof (long int)];
16093
             } u;
16094
             u.l = 1;
16095
             return u.c[sizeof (long int) - 1] == 1;
16096
 
16097
  ;
16098
  return 0;
16099
}
16100
_ACEOF
16101
if ac_fn_c_try_run "$LINENO"; then :
16102
  ac_cv_c_bigendian=no
16103
else
16104
  ac_cv_c_bigendian=yes
16105
fi
16106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16107
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16108
fi
16109
 
16110
    fi
16111
fi
16112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16113
$as_echo "$ac_cv_c_bigendian" >&6; }
16114
 case $ac_cv_c_bigendian in #(
16115
   yes)
16116
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16117
;; #(
16118
   no)
16119
      ;; #(
16120
   universal)
16121
 
16122
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16123
 
16124
     ;; #(
16125
   *)
16126
     as_fn_error "unknown endianness
16127
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16128
 esac
16129
 
16130
# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16131
 
16132
 
16133
# Check to see if -pthread or -lpthread is needed.  Prefer the former.
16134
# In case the pthread.h system header is not found, this test will fail.
16135
XPCFLAGS=""
16136
CFLAGS="$CFLAGS -pthread"
16137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138
/* end confdefs.h.  */
16139
#include 
16140
   void *g(void *d) { return NULL; }
16141
int
16142
main ()
16143
{
16144
pthread_t t; pthread_create(&t,NULL,g,NULL);
16145
  ;
16146
  return 0;
16147
}
16148
_ACEOF
16149
if ac_fn_c_try_link "$LINENO"; then :
16150
  XPCFLAGS=" -Wc,-pthread"
16151
else
16152
  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16153
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154
/* end confdefs.h.  */
16155
#include 
16156
     void *g(void *d) { return NULL; }
16157
int
16158
main ()
16159
{
16160
pthread_t t; pthread_create(&t,NULL,g,NULL);
16161
  ;
16162
  return 0;
16163
}
16164
_ACEOF
16165
if ac_fn_c_try_link "$LINENO"; then :
16166
 
16167
else
16168
  as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16169
fi
16170
rm -f core conftest.err conftest.$ac_objext \
16171
    conftest$ac_exeext conftest.$ac_ext
16172
fi
16173
rm -f core conftest.err conftest.$ac_objext \
16174
    conftest$ac_exeext conftest.$ac_ext
16175
 
16176
# Check for functions needed.
16177
for ac_func in strtoull memalign posix_memalign
16178
do :
16179
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16180
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16181
eval as_val=\$$as_ac_var
16182
   if test "x$as_val" = x""yes; then :
16183
  cat >>confdefs.h <<_ACEOF
16184
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16185
_ACEOF
16186
 
16187
fi
16188
done
16189
 
16190
 
16191
# Check for broken semaphore implementation on darwin.
16192
# sem_init returns: sem_init error: Function not implemented.
16193
case "$host" in
16194
  *-darwin*)
16195
 
16196
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16197
 
16198
    ;;
16199
esac
16200
 
16201
 # Check whether --enable-linux-futex was given.
16202
if test "${enable_linux_futex+set}" = set; then :
16203
  enableval=$enable_linux_futex;
16204
      case "$enableval" in
16205
       yes|no|default) ;;
16206
       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16207
                          esac
16208
 
16209
else
16210
  enable_linux_futex=default
16211
fi
16212
 
16213
 
16214
case "$target" in
16215
  *-linux*)
16216
    case "$enable_linux_futex" in
16217
      default)
16218
        # If headers don't have gettid/futex syscalls definition, then
16219
        # default to no, otherwise there will be compile time failures.
16220
        # Otherwise, default to yes.  If we don't detect we are
16221
        # compiled/linked against NPTL and not cross-compiling, check
16222
        # if programs are run by default against NPTL and if not, issue
16223
        # a warning.
16224
        enable_linux_futex=no
16225
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226
/* end confdefs.h.  */
16227
#include 
16228
           int lk;
16229
int
16230
main ()
16231
{
16232
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16233
  ;
16234
  return 0;
16235
}
16236
_ACEOF
16237
if ac_fn_c_try_link "$LINENO"; then :
16238
  save_LIBS="$LIBS"
16239
           LIBS="-lpthread $LIBS"
16240
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241
/* end confdefs.h.  */
16242
#ifndef _GNU_SOURCE
16243
             #define _GNU_SOURCE 1
16244
             #endif
16245
             #include 
16246
             pthread_t th; void *status;
16247
int
16248
main ()
16249
{
16250
pthread_tryjoin_np (th, &status);
16251
  ;
16252
  return 0;
16253
}
16254
_ACEOF
16255
if ac_fn_c_try_link "$LINENO"; then :
16256
  enable_linux_futex=yes
16257
else
16258
  if test x$cross_compiling = xno; then
16259
               if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16260
                  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16261
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16262
If so, please configure with --disable-linux-futex" >&5
16263
$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16264
If so, please configure with --disable-linux-futex" >&2;}
16265
               fi
16266
             fi
16267
             enable_linux_futex=yes
16268
fi
16269
rm -f core conftest.err conftest.$ac_objext \
16270
    conftest$ac_exeext conftest.$ac_ext
16271
           LIBS="$save_LIBS"
16272
fi
16273
rm -f core conftest.err conftest.$ac_objext \
16274
    conftest$ac_exeext conftest.$ac_ext
16275
        ;;
16276
      yes)
16277
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278
/* end confdefs.h.  */
16279
#include 
16280
           int lk;
16281
int
16282
main ()
16283
{
16284
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16285
  ;
16286
  return 0;
16287
}
16288
_ACEOF
16289
if ac_fn_c_try_link "$LINENO"; then :
16290
 
16291
else
16292
  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16293
fi
16294
rm -f core conftest.err conftest.$ac_objext \
16295
    conftest$ac_exeext conftest.$ac_ext
16296
        ;;
16297
    esac
16298
    ;;
16299
  *)
16300
    enable_linux_futex=no
16301
    ;;
16302
esac
16303
if test x$enable_linux_futex = xyes; then
16304
  :
16305
fi
16306
 
16307
 
16308
# See if we support thread-local storage.
16309
 
16310
 
16311
   # Check whether --enable-tls was given.
16312
if test "${enable_tls+set}" = set; then :
16313
  enableval=$enable_tls;
16314
      case "$enableval" in
16315
       yes|no) ;;
16316
       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16317
      esac
16318
 
16319
else
16320
  enable_tls=yes
16321
fi
16322
 
16323
 
16324
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16325
$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16326
if test "${gcc_cv_have_tls+set}" = set; then :
16327
  $as_echo_n "(cached) " >&6
16328
else
16329
 
16330
    if test "$cross_compiling" = yes; then :
16331
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332
/* end confdefs.h.  */
16333
__thread int a; int b; int main() { return a = b; }
16334
_ACEOF
16335
if ac_fn_c_try_link "$LINENO"; then :
16336
  chktls_save_LDFLAGS="$LDFLAGS"
16337
                          case $host in
16338
            *-*-linux*)
16339
              LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16340
              ;;
16341
          esac
16342
          chktls_save_CFLAGS="$CFLAGS"
16343
          CFLAGS="-fPIC $CFLAGS"
16344
                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345
/* end confdefs.h.  */
16346
int f() { return 0; }
16347
_ACEOF
16348
if ac_fn_c_try_link "$LINENO"; then :
16349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350
/* end confdefs.h.  */
16351
__thread int a; int b; int f() { return a = b; }
16352
_ACEOF
16353
if ac_fn_c_try_link "$LINENO"; then :
16354
  gcc_cv_have_tls=yes
16355
else
16356
  gcc_cv_have_tls=no
16357
fi
16358
rm -f core conftest.err conftest.$ac_objext \
16359
    conftest$ac_exeext conftest.$ac_ext
16360
else
16361
  gcc_cv_have_tls=yes
16362
fi
16363
rm -f core conftest.err conftest.$ac_objext \
16364
    conftest$ac_exeext conftest.$ac_ext
16365
          CFLAGS="$chktls_save_CFLAGS"
16366
          LDFLAGS="$chktls_save_LDFLAGS"
16367
else
16368
  gcc_cv_have_tls=no
16369
fi
16370
rm -f core conftest.err conftest.$ac_objext \
16371
    conftest$ac_exeext conftest.$ac_ext
16372
 
16373
 
16374
else
16375
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376
/* end confdefs.h.  */
16377
__thread int a; int b; int main() { return a = b; }
16378
_ACEOF
16379
if ac_fn_c_try_run "$LINENO"; then :
16380
                      chktls_save_LDFLAGS="$LDFLAGS"
16381
      LDFLAGS="-static $LDFLAGS"
16382
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383
/* end confdefs.h.  */
16384
int main() { return 0; }
16385
_ACEOF
16386
if ac_fn_c_try_link "$LINENO"; then :
16387
  if test "$cross_compiling" = yes; then :
16388
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16389
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16390
as_fn_error "cannot run test program while cross compiling
16391
See \`config.log' for more details." "$LINENO" 5; }
16392
else
16393
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394
/* end confdefs.h.  */
16395
__thread int a; int b; int main() { return a = b; }
16396
_ACEOF
16397
if ac_fn_c_try_run "$LINENO"; then :
16398
  gcc_cv_have_tls=yes
16399
else
16400
  gcc_cv_have_tls=no
16401
fi
16402
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16403
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16404
fi
16405
 
16406
else
16407
  gcc_cv_have_tls=yes
16408
fi
16409
rm -f core conftest.err conftest.$ac_objext \
16410
    conftest$ac_exeext conftest.$ac_ext
16411
      LDFLAGS="$chktls_save_LDFLAGS"
16412
      if test $gcc_cv_have_tls = yes; then
16413
                                                chktls_save_CFLAGS="$CFLAGS"
16414
        thread_CFLAGS=failed
16415
        for flag in '' '-pthread' '-lpthread'; do
16416
          CFLAGS="$flag $chktls_save_CFLAGS"
16417
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418
/* end confdefs.h.  */
16419
#include 
16420
                void *g(void *d) { return NULL; }
16421
int
16422
main ()
16423
{
16424
pthread_t t; pthread_create(&t,NULL,g,NULL);
16425
  ;
16426
  return 0;
16427
}
16428
_ACEOF
16429
if ac_fn_c_try_link "$LINENO"; then :
16430
  thread_CFLAGS="$flag"
16431
fi
16432
rm -f core conftest.err conftest.$ac_objext \
16433
    conftest$ac_exeext conftest.$ac_ext
16434
          if test "X$thread_CFLAGS" != Xfailed; then
16435
            break
16436
          fi
16437
        done
16438
        CFLAGS="$chktls_save_CFLAGS"
16439
        if test "X$thread_CFLAGS" != Xfailed; then
16440
          CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16441
                                                  if test "$cross_compiling" = yes; then :
16442
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16443
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16444
as_fn_error "cannot run test program while cross compiling
16445
See \`config.log' for more details." "$LINENO" 5; }
16446
else
16447
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448
/* end confdefs.h.  */
16449
#include 
16450
                __thread int a;
16451
                static int *volatile a_in_other_thread;
16452
                static void *
16453
                thread_func (void *arg)
16454
                {
16455
                  a_in_other_thread = &a;
16456
                  return (void *)0;
16457
                }
16458
int
16459
main ()
16460
{
16461
pthread_t thread;
16462
                void *thread_retval;
16463
                int *volatile a_in_main_thread;
16464
                a_in_main_thread = &a;
16465
                if (pthread_create (&thread, (pthread_attr_t *)0,
16466
                                    thread_func, (void *)0))
16467
                  return 0;
16468
                if (pthread_join (thread, &thread_retval))
16469
                  return 0;
16470
                return (a_in_other_thread == a_in_main_thread);
16471
  ;
16472
  return 0;
16473
}
16474
_ACEOF
16475
if ac_fn_c_try_run "$LINENO"; then :
16476
  gcc_cv_have_tls=yes
16477
else
16478
  gcc_cv_have_tls=no
16479
fi
16480
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16481
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16482
fi
16483
 
16484
          CFLAGS="$chktls_save_CFLAGS"
16485
        fi
16486
      fi
16487
else
16488
  gcc_cv_have_tls=no
16489
fi
16490
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16491
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16492
fi
16493
 
16494
fi
16495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16496
$as_echo "$gcc_cv_have_tls" >&6; }
16497
  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16498
 
16499
$as_echo "#define HAVE_TLS 1" >>confdefs.h
16500
 
16501
  fi
16502
 
16503
# See what sort of export controls are available.
16504
 
16505
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16506
$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16507
if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16508
  $as_echo_n "(cached) " >&6
16509
else
16510
 
16511
  save_CFLAGS="$CFLAGS"
16512
  CFLAGS="$CFLAGS -Werror"
16513
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514
/* end confdefs.h.  */
16515
void __attribute__((visibility("hidden"))) foo(void) { }
16516
int
16517
main ()
16518
{
16519
 
16520
  ;
16521
  return 0;
16522
}
16523
_ACEOF
16524
if ac_fn_c_try_compile "$LINENO"; then :
16525
  libitm_cv_have_attribute_visibility=yes
16526
else
16527
  libitm_cv_have_attribute_visibility=no
16528
fi
16529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530
  CFLAGS="$save_CFLAGS"
16531
fi
16532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16533
$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16534
  if test $libitm_cv_have_attribute_visibility = yes; then
16535
 
16536
$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16537
 
16538
  fi
16539
 
16540
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16541
$as_echo_n "checking whether the target supports dllexport... " >&6; }
16542
if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16543
  $as_echo_n "(cached) " >&6
16544
else
16545
 
16546
  save_CFLAGS="$CFLAGS"
16547
  CFLAGS="$CFLAGS -Werror"
16548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549
/* end confdefs.h.  */
16550
void __attribute__((dllexport)) foo(void) { }
16551
int
16552
main ()
16553
{
16554
 
16555
  ;
16556
  return 0;
16557
}
16558
_ACEOF
16559
if ac_fn_c_try_compile "$LINENO"; then :
16560
  libitm_cv_have_attribute_dllexport=yes
16561
else
16562
  libitm_cv_have_attribute_dllexport=no
16563
fi
16564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565
  CFLAGS="$save_CFLAGS"
16566
fi
16567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16568
$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16569
  if test $libitm_cv_have_attribute_dllexport = yes; then
16570
 
16571
$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16572
 
16573
  fi
16574
 
16575
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16576
$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16577
if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16578
  $as_echo_n "(cached) " >&6
16579
else
16580
 
16581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582
/* end confdefs.h.  */
16583
 
16584
void foo(void) { }
16585
extern void bar(void) __attribute__((alias("foo")));
16586
int
16587
main ()
16588
{
16589
bar();
16590
  ;
16591
  return 0;
16592
}
16593
_ACEOF
16594
if ac_fn_c_try_link "$LINENO"; then :
16595
  libitm_cv_have_attribute_alias=yes
16596
else
16597
  libitm_cv_have_attribute_alias=no
16598
fi
16599
rm -f core conftest.err conftest.$ac_objext \
16600
    conftest$ac_exeext conftest.$ac_ext
16601
fi
16602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16603
$as_echo "$libitm_cv_have_attribute_alias" >&6; }
16604
  if test $libitm_cv_have_attribute_alias = yes; then
16605
 
16606
$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16607
 
16608
  fi
16609
 
16610
# Check linker hardware capability support.
16611
 
16612
 
16613
# Check whether --with-gnu-ld was given.
16614
if test "${with_gnu_ld+set}" = set; then :
16615
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16616
else
16617
  with_gnu_ld=no
16618
fi
16619
 
16620
ac_prog=ld
16621
if test "$GCC" = yes; then
16622
  # Check if gcc -print-prog-name=ld gives a path.
16623
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16624
$as_echo_n "checking for ld used by $CC... " >&6; }
16625
  case $host in
16626
  *-*-mingw*)
16627
    # gcc leaves a trailing carriage return which upsets mingw
16628
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16629
  *)
16630
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16631
  esac
16632
  case $ac_prog in
16633
    # Accept absolute paths.
16634
    [\\/]* | ?:[\\/]*)
16635
      re_direlt='/[^/][^/]*/\.\./'
16636
      # Canonicalize the pathname of ld
16637
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16638
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16639
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16640
      done
16641
      test -z "$LD" && LD="$ac_prog"
16642
      ;;
16643
  "")
16644
    # If it fails, then pretend we aren't using GCC.
16645
    ac_prog=ld
16646
    ;;
16647
  *)
16648
    # If it is relative, then search for the first ld in PATH.
16649
    with_gnu_ld=unknown
16650
    ;;
16651
  esac
16652
elif test "$with_gnu_ld" = yes; then
16653
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16654
$as_echo_n "checking for GNU ld... " >&6; }
16655
else
16656
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16657
$as_echo_n "checking for non-GNU ld... " >&6; }
16658
fi
16659
if test "${lt_cv_path_LD+set}" = set; then :
16660
  $as_echo_n "(cached) " >&6
16661
else
16662
  if test -z "$LD"; then
16663
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16664
  for ac_dir in $PATH; do
16665
    IFS="$lt_save_ifs"
16666
    test -z "$ac_dir" && ac_dir=.
16667
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16668
      lt_cv_path_LD="$ac_dir/$ac_prog"
16669
      # Check to see if the program is GNU ld.  I'd rather use --version,
16670
      # but apparently some variants of GNU ld only accept -v.
16671
      # Break only if it was the GNU/non-GNU ld that we prefer.
16672
      case `"$lt_cv_path_LD" -v 2>&1 
16673
      *GNU* | *'with BFD'*)
16674
        test "$with_gnu_ld" != no && break
16675
        ;;
16676
      *)
16677
        test "$with_gnu_ld" != yes && break
16678
        ;;
16679
      esac
16680
    fi
16681
  done
16682
  IFS="$lt_save_ifs"
16683
else
16684
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16685
fi
16686
fi
16687
 
16688
LD="$lt_cv_path_LD"
16689
if test -n "$LD"; then
16690
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16691
$as_echo "$LD" >&6; }
16692
else
16693
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694
$as_echo "no" >&6; }
16695
fi
16696
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16698
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16699
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16700
  $as_echo_n "(cached) " >&6
16701
else
16702
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16703
case `$LD -v 2>&1 
16704
*GNU* | *'with BFD'*)
16705
  lt_cv_prog_gnu_ld=yes
16706
  ;;
16707
*)
16708
  lt_cv_prog_gnu_ld=no
16709
  ;;
16710
esac
16711
fi
16712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16713
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16714
with_gnu_ld=$lt_cv_prog_gnu_ld
16715
 
16716
 
16717
 
16718
 
16719
 
16720
 
16721
 
16722
  test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16723
 
16724
 
16725
  ac_save_LDFLAGS="$LDFLAGS"
16726
  LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map"
16727
 
16728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5
16729
$as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; }
16730
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731
/* end confdefs.h.  */
16732
 
16733
int
16734
main ()
16735
{
16736
return 0;
16737
  ;
16738
  return 0;
16739
}
16740
_ACEOF
16741
if ac_fn_c_try_link "$LINENO"; then :
16742
  ac_hwcap_ldflags=yes
16743
else
16744
  ac_hwcap_ldflags=no
16745
fi
16746
rm -f core conftest.err conftest.$ac_objext \
16747
    conftest$ac_exeext conftest.$ac_ext
16748
  if test "$ac_hwcap_ldflags" = "yes"; then
16749
    HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS"
16750
  fi
16751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16752
$as_echo "$ac_hwcap_ldflags" >&6; }
16753
 
16754
  LDFLAGS="$ac_save_LDFLAGS"
16755
 
16756
 
16757
 
16758
   if test $ac_hwcap_ldflags != no; then
16759
  HAVE_HWCAP_TRUE=
16760
  HAVE_HWCAP_FALSE='#'
16761
else
16762
  HAVE_HWCAP_TRUE='#'
16763
  HAVE_HWCAP_FALSE=
16764
fi
16765
 
16766
 
16767
# If defaulting to -mavx, don't clear hwcaps.
16768
ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16769
if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16770
  HWCAP_LDFLAGS=''
16771
fi
16772
 
16773
 
16774
 
16775
  # If we're not using GNU ld, then there's no point in even trying these
16776
  # tests.  Check for that first.  We should have already tested for gld
16777
  # by now (in libtool), but require it now just to be safe...
16778
  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16779
  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16780
 
16781
 
16782
 
16783
  # The name set by libtool depends on the version of libtool.  Shame on us
16784
  # for depending on an impl detail, but c'est la vie.  Older versions used
16785
  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16786
  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16787
  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16788
  # set (hence we're using an older libtool), then set it.
16789
  if test x${with_gnu_ld+set} != xset; then
16790
    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16791
      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16792
      with_gnu_ld=no
16793
    else
16794
      with_gnu_ld=$ac_cv_prog_gnu_ld
16795
    fi
16796
  fi
16797
 
16798
  # Start by getting the version number.  I think the libtool test already
16799
  # does some of this, but throws away the result.
16800
  libitm_ld_is_gold=no
16801
  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16802
    libitm_ld_is_gold=yes
16803
  fi
16804
 
16805
  ldver=`$LD --version 2>/dev/null |
16806
         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16807
 
16808
  libitm_gnu_ld_version=`echo $ldver | \
16809
         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16810
 
16811
  # Set --gc-sections.
16812
  if test "$with_gnu_ld" = "notbroken"; then
16813
    # GNU ld it is!  Joy and bunny rabbits!
16814
 
16815
    # All these tests are for C++; save the language and the compiler flags.
16816
    # Need to do this so that g++ won't try to link in libstdc++
16817
    ac_test_CFLAGS="${CFLAGS+set}"
16818
    ac_save_CFLAGS="$CFLAGS"
16819
    CFLAGS='-x c++  -Wl,--gc-sections'
16820
 
16821
    # Check for -Wl,--gc-sections
16822
    # XXX This test is broken at the moment, as symbols required for linking
16823
    # are now in libsupc++ (not built yet).  In addition, this test has
16824
    # cored on solaris in the past.  In addition, --gc-sections doesn't
16825
    # really work at the moment (keeps on discarding used sections, first
16826
    # .eh_frame and now some of the glibc sections for iconv).
16827
    # Bzzzzt.  Thanks for playing, maybe next time.
16828
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16829
$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16830
    if test "$cross_compiling" = yes; then :
16831
  ac_sectionLDflags=yes
16832
else
16833
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834
/* end confdefs.h.  */
16835
 
16836
     int main(void)
16837
     {
16838
       try { throw 1; }
16839
       catch (...) { };
16840
       return 0;
16841
     }
16842
 
16843
_ACEOF
16844
if ac_fn_c_try_run "$LINENO"; then :
16845
  ac_sectionLDflags=yes
16846
else
16847
  ac_sectionLDflags=no
16848
fi
16849
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16851
fi
16852
 
16853
    if test "$ac_test_CFLAGS" = set; then
16854
      CFLAGS="$ac_save_CFLAGS"
16855
    else
16856
      # this is the suspicious part
16857
      CFLAGS=''
16858
    fi
16859
    if test "$ac_sectionLDflags" = "yes"; then
16860
      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16861
    fi
16862
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16863
$as_echo "$ac_sectionLDflags" >&6; }
16864
  fi
16865
 
16866
  # Set linker optimization flags.
16867
  if test x"$with_gnu_ld" = x"yes"; then
16868
    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16869
  fi
16870
 
16871
 
16872
 
16873
 
16874
 
16875
 
16876
 # Check whether --enable-symvers was given.
16877
if test "${enable_symvers+set}" = set; then :
16878
  enableval=$enable_symvers;
16879
      case "$enableval" in
16880
       yes|no|gnu*|sun) ;;
16881
       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16882
                          esac
16883
 
16884
else
16885
  enable_symvers=yes
16886
fi
16887
 
16888
 
16889
 
16890
# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16891
# don't know enough about $LD to do tricks...
16892
 
16893
 
16894
# Turn a 'yes' into a suitable default.
16895
if test x$enable_symvers = xyes ; then
16896
  # FIXME  The following test is too strict, in theory.
16897
  if test $enable_shared = no || test "x$LD" = x; then
16898
    enable_symvers=no
16899
  else
16900
    if test $with_gnu_ld = yes ; then
16901
      enable_symvers=gnu
16902
    else
16903
      case ${target_os} in
16904
        # Sun symbol versioning exists since Solaris 2.5.
16905
        solaris2.[5-9]* | solaris2.1[0-9]*)
16906
          enable_symvers=sun ;;
16907
        *)
16908
          enable_symvers=no ;;
16909
      esac
16910
    fi
16911
  fi
16912
fi
16913
 
16914
# Check if 'sun' was requested on non-Solaris 2 platforms.
16915
if test x$enable_symvers = xsun ; then
16916
  case ${target_os} in
16917
    solaris2*)
16918
      # All fine.
16919
      ;;
16920
    *)
16921
      # Unlikely to work.
16922
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16923
$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16924
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16925
$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16926
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16927
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16928
      enable_symvers=no
16929
      ;;
16930
  esac
16931
fi
16932
 
16933
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16934
if test $enable_symvers != no; then
16935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16936
$as_echo_n "checking for shared libgcc... " >&6; }
16937
  ac_save_CFLAGS="$CFLAGS"
16938
  CFLAGS=' -lgcc_s'
16939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940
/* end confdefs.h.  */
16941
 
16942
int
16943
main ()
16944
{
16945
return 0;
16946
  ;
16947
  return 0;
16948
}
16949
_ACEOF
16950
if ac_fn_c_try_link "$LINENO"; then :
16951
  libitm_shared_libgcc=yes
16952
else
16953
  libitm_shared_libgcc=no
16954
fi
16955
rm -f core conftest.err conftest.$ac_objext \
16956
    conftest$ac_exeext conftest.$ac_ext
16957
  CFLAGS="$ac_save_CFLAGS"
16958
  if test $libitm_shared_libgcc = no; then
16959
    cat > conftest.c <
16960
int main (void) { return 0; }
16961
EOF
16962
    libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16963
                             -shared -shared-libgcc -o conftest.so \
16964
                             conftest.c -v 2>&1 >/dev/null \
16965
                             | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16966
    rm -f conftest.c conftest.so
16967
    if test x${libitm_libgcc_s_suffix+set} = xset; then
16968
      CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16969
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970
/* end confdefs.h.  */
16971
 
16972
int
16973
main ()
16974
{
16975
return 0;
16976
  ;
16977
  return 0;
16978
}
16979
_ACEOF
16980
if ac_fn_c_try_link "$LINENO"; then :
16981
  libitm_shared_libgcc=yes
16982
fi
16983
rm -f core conftest.err conftest.$ac_objext \
16984
    conftest$ac_exeext conftest.$ac_ext
16985
      CFLAGS="$ac_save_CFLAGS"
16986
    fi
16987
  fi
16988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16989
$as_echo "$libitm_shared_libgcc" >&6; }
16990
fi
16991
 
16992
# For GNU ld, we need at least this version.  The format is described in
16993
# LIBITM_CHECK_LINKER_FEATURES above.
16994
libitm_min_gnu_ld_version=21400
16995
# XXXXXXXXXXX libitm_gnu_ld_version=21390
16996
 
16997
# Check to see if unspecified "yes" value can win, given results above.
16998
# Change "yes" into either "no" or a style name.
16999
if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17000
  if test $with_gnu_ld = yes; then
17001
    if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17002
      enable_symvers=gnu
17003
    elif test $libitm_ld_is_gold = yes ; then
17004
      enable_symvers=gnu
17005
    else
17006
      # The right tools, the right setup, but too old.  Fallbacks?
17007
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17008
$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17009
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17010
$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17011
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17012
$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17013
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17014
$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17015
      if test $libitm_gnu_ld_version -ge 21200 ; then
17016
        # Globbing fix is present, proper block support is not.
17017
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17018
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17019
        enable_symvers=no
17020
      else
17021
        # 2.11 or older.
17022
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17023
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17024
        enable_symvers=no
17025
      fi
17026
    fi
17027
  elif test $enable_symvers = sun; then
17028
    : All interesting versions of Sun ld support sun style symbol versioning.
17029
  else
17030
    # just fail for now
17031
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17032
$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17033
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17034
$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17035
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17036
$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17037
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17038
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17039
    enable_symvers=no
17040
  fi
17041
fi
17042
 
17043
 if test $enable_symvers != no; then
17044
  LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17045
  LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17046
else
17047
  LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17048
  LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17049
fi
17050
 
17051
 if test $enable_symvers = gnu; then
17052
  LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17053
  LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17054
else
17055
  LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17056
  LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17057
fi
17058
 
17059
 if test $enable_symvers = sun; then
17060
  LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17061
  LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17062
else
17063
  LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17064
  LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17065
fi
17066
 
17067
{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17068
$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17069
 
17070
if test $enable_symvers = gnu; then
17071
 
17072
$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17073
 
17074
fi
17075
 
17076
# See if we can emit unwind info in the sjlj stub.
17077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17078
$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17079
if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17080
  $as_echo_n "(cached) " >&6
17081
else
17082
 
17083
    gcc_cv_as_cfi_pseudo_op=unknown
17084
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085
/* end confdefs.h.  */
17086
asm (".cfi_startproc\n\t.cfi_endproc");
17087
int
17088
main ()
17089
{
17090
 
17091
  ;
17092
  return 0;
17093
}
17094
_ACEOF
17095
if ac_fn_c_try_compile "$LINENO"; then :
17096
  gcc_cv_as_cfi_pseudo_op=yes
17097
else
17098
  gcc_cv_as_cfi_pseudo_op=no
17099
fi
17100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101
 
17102
fi
17103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17104
$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17105
 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17106
 
17107
$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17108
 
17109
 fi
17110
 
17111
 
17112
# Determine the proper ABI type for size_t.
17113
 
17114
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17115
$as_echo_n "checking how size_t is mangled... " >&6; }
17116
if test "${libitm_cv_size_t_mangling+set}" = set; then :
17117
  $as_echo_n "(cached) " >&6
17118
else
17119
 
17120
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121
/* end confdefs.h.  */
17122
 
17123
int
17124
main ()
17125
{
17126
extern __SIZE_TYPE__ x; extern unsigned long x;
17127
  ;
17128
  return 0;
17129
}
17130
_ACEOF
17131
if ac_fn_c_try_compile "$LINENO"; then :
17132
  libitm_cv_size_t_mangling=m
17133
else
17134
 
17135
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136
/* end confdefs.h.  */
17137
 
17138
int
17139
main ()
17140
{
17141
extern __SIZE_TYPE__ x; extern unsigned int x;
17142
  ;
17143
  return 0;
17144
}
17145
_ACEOF
17146
if ac_fn_c_try_compile "$LINENO"; then :
17147
  libitm_cv_size_t_mangling=j
17148
else
17149
 
17150
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151
/* end confdefs.h.  */
17152
 
17153
int
17154
main ()
17155
{
17156
extern __SIZE_TYPE__ x; extern unsigned long long x;
17157
  ;
17158
  return 0;
17159
}
17160
_ACEOF
17161
if ac_fn_c_try_compile "$LINENO"; then :
17162
  libitm_cv_size_t_mangling=y
17163
else
17164
 
17165
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166
/* end confdefs.h.  */
17167
 
17168
int
17169
main ()
17170
{
17171
extern __SIZE_TYPE__ x; extern unsigned short x;
17172
  ;
17173
  return 0;
17174
}
17175
_ACEOF
17176
if ac_fn_c_try_compile "$LINENO"; then :
17177
  libitm_cv_size_t_mangling=t
17178
else
17179
  libitm_cv_size_t_mangling=x
17180
fi
17181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182
 
17183
fi
17184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185
 
17186
fi
17187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188
 
17189
fi
17190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191
 
17192
fi
17193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17194
$as_echo "$libitm_cv_size_t_mangling" >&6; }
17195
  if test $libitm_cv_size_t_mangling = x; then
17196
    as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17197
  fi
17198
 
17199
cat >>confdefs.h <<_ACEOF
17200
#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17201
_ACEOF
17202
 
17203
 
17204
 
17205
# Get target configury.
17206
. ${srcdir}/configure.tgt
17207
if test -n "$UNSUPPORTED"; then
17208
  as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17209
fi
17210
 
17211
CFLAGS="$save_CFLAGS $XCFLAGS"
17212
 
17213
# Check for __sync_val_compare_and_swap, but only after the target has
17214
# had a chance to set XCFLAGS.
17215
 
17216
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17217
$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17218
if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17219
  $as_echo_n "(cached) " >&6
17220
else
17221
 
17222
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223
/* end confdefs.h.  */
17224
 
17225
int
17226
main ()
17227
{
17228
int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17229
  ;
17230
  return 0;
17231
}
17232
_ACEOF
17233
if ac_fn_c_try_link "$LINENO"; then :
17234
  libitm_cv_have_sync_builtins=yes
17235
else
17236
  libitm_cv_have_sync_builtins=no
17237
fi
17238
rm -f core conftest.err conftest.$ac_objext \
17239
    conftest$ac_exeext conftest.$ac_ext
17240
fi
17241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17242
$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17243
  if test $libitm_cv_have_sync_builtins = yes; then
17244
 
17245
$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17246
 
17247
  fi
17248
 
17249
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17250
$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17251
if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17252
  $as_echo_n "(cached) " >&6
17253
else
17254
 
17255
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256
/* end confdefs.h.  */
17257
#include 
17258
int
17259
main ()
17260
{
17261
uint64_t foo, bar;
17262
     bar = __sync_val_compare_and_swap(&foo, 0, 1);
17263
  ;
17264
  return 0;
17265
}
17266
_ACEOF
17267
if ac_fn_c_try_link "$LINENO"; then :
17268
  libitm_cv_have_64bit_sync_builtins=yes
17269
else
17270
  libitm_cv_have_64bit_sync_builtins=no
17271
fi
17272
rm -f core conftest.err conftest.$ac_objext \
17273
    conftest$ac_exeext conftest.$ac_ext
17274
fi
17275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17276
$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17277
    if test $libitm_cv_have_64bit_sync_builtins = yes; then
17278
 
17279
$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17280
 
17281
  fi
17282
 
17283
case "${target_cpu}" in
17284
i[34567]86 | x86_64)
17285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17286
$as_echo_n "checking if the assembler supports AVX... " >&6; }
17287
if test "${libitm_cv_as_avx+set}" = set; then :
17288
  $as_echo_n "(cached) " >&6
17289
else
17290
 
17291
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292
/* end confdefs.h.  */
17293
 
17294
int
17295
main ()
17296
{
17297
asm("vzeroupper");
17298
  ;
17299
  return 0;
17300
}
17301
_ACEOF
17302
if ac_fn_c_try_compile "$LINENO"; then :
17303
  libitm_cv_as_avx=yes
17304
else
17305
  libitm_cv_as_avx=no
17306
fi
17307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17308
 
17309
fi
17310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17311
$as_echo "$libitm_cv_as_avx" >&6; }
17312
  if test x$libitm_cv_as_avx = xyes; then
17313
 
17314
$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17315
 
17316
  fi
17317
  ;;
17318
esac
17319
 
17320
 
17321
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17322
$as_echo_n "checking whether weak refs work like ELF... " >&6; }
17323
if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17324
  $as_echo_n "(cached) " >&6
17325
else
17326
 
17327
  weakref_m4_saved_CFLAGS="$CFLAGS"
17328
  case "${host}" in
17329
    *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17330
    *) ;;
17331
  esac
17332
  if test "$cross_compiling" = yes; then :
17333
 
17334
case "${host}" in
17335
  alpha*-dec-osf*) ac_cv_have_elf_style_weakref=no ;;
17336
  *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17337
  *) ac_cv_have_elf_style_weakref=yes;;
17338
esac
17339
else
17340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341
/* end confdefs.h.  */
17342
 
17343
extern void fNotToBeFound(void) __attribute__((weak));
17344
int main ()
17345
{
17346
  if (fNotToBeFound)
17347
    return 1;
17348
  else
17349
    return 0;
17350
}
17351
 
17352
_ACEOF
17353
if ac_fn_c_try_run "$LINENO"; then :
17354
  ac_cv_have_elf_style_weakref=yes
17355
else
17356
  ac_cv_have_elf_style_weakref=no
17357
fi
17358
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17359
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17360
fi
17361
CFLAGS="$weakref_m4_saved_CFLAGS"
17362
fi
17363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17364
$as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17365
if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17366
 
17367
$as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17368
 
17369
fi
17370
 
17371
# Cleanup and exit.
17372
CFLAGS="$save_CFLAGS"
17373
cat >confcache <<\_ACEOF
17374
# This file is a shell script that caches the results of configure
17375
# tests run on this system so they can be shared between configure
17376
# scripts and configure runs, see configure's option --config-cache.
17377
# It is not useful on other systems.  If it contains results you don't
17378
# want to keep, you may remove or edit it.
17379
#
17380
# config.status only pays attention to the cache file if you give it
17381
# the --recheck option to rerun configure.
17382
#
17383
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17384
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17385
# following values.
17386
 
17387
_ACEOF
17388
 
17389
# The following way of writing the cache mishandles newlines in values,
17390
# but we know of no workaround that is simple, portable, and efficient.
17391
# So, we kill variables containing newlines.
17392
# Ultrix sh set writes to stderr and can't be redirected directly,
17393
# and sets the high bit in the cache file unless we assign to the vars.
17394
(
17395
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17396
    eval ac_val=\$$ac_var
17397
    case $ac_val in #(
17398
    *${as_nl}*)
17399
      case $ac_var in #(
17400
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17401
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17402
      esac
17403
      case $ac_var in #(
17404
      _ | IFS | as_nl) ;; #(
17405
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17406
      *) { eval $ac_var=; unset $ac_var;} ;;
17407
      esac ;;
17408
    esac
17409
  done
17410
 
17411
  (set) 2>&1 |
17412
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17413
    *${as_nl}ac_space=\ *)
17414
      # `set' does not quote correctly, so add quotes: double-quote
17415
      # substitution turns \\\\ into \\, and sed turns \\ into \.
17416
      sed -n \
17417
        "s/'/'\\\\''/g;
17418
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17419
      ;; #(
17420
    *)
17421
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17422
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17423
      ;;
17424
    esac |
17425
    sort
17426
) |
17427
  sed '
17428
     /^ac_cv_env_/b end
17429
     t clear
17430
     :clear
17431
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17432
     t end
17433
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17434
     :end' >>confcache
17435
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17436
  if test -w "$cache_file"; then
17437
    test "x$cache_file" != "x/dev/null" &&
17438
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17439
$as_echo "$as_me: updating cache $cache_file" >&6;}
17440
    cat confcache >$cache_file
17441
  else
17442
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17443
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17444
  fi
17445
fi
17446
rm -f confcache
17447
 
17448
# Add -Wall -Werror if we are using GCC.
17449
if test "x$GCC" = "xyes"; then
17450
  XCFLAGS="$XCFLAGS -Wall -Werror"
17451
fi
17452
 
17453
XCFLAGS="$XCFLAGS $XPCFLAGS"
17454
 
17455
 
17456
 
17457
 
17458
 
17459
if test ${multilib} = yes; then
17460
  multilib_arg="--enable-multilib"
17461
else
17462
  multilib_arg=
17463
fi
17464
 
17465
# Set up the set of libraries that we need to link against for libitm.
17466
# Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17467
# which will force linkage against -lpthread (or equivalent for the system).
17468
# That's not 100% ideal, but about the best we can do easily.
17469
if test $enable_shared = yes; then
17470
  link_itm="-litm %{static: $LIBS}"
17471
else
17472
  link_itm="-litm $LIBS"
17473
fi
17474
 
17475
 
17476
 if test "$ARCH" = arm; then
17477
  ARCH_ARM_TRUE=
17478
  ARCH_ARM_FALSE='#'
17479
else
17480
  ARCH_ARM_TRUE='#'
17481
  ARCH_ARM_FALSE=
17482
fi
17483
 
17484
 if test "$ARCH" = x86; then
17485
  ARCH_X86_TRUE=
17486
  ARCH_X86_FALSE='#'
17487
else
17488
  ARCH_X86_TRUE='#'
17489
  ARCH_X86_FALSE=
17490
fi
17491
 
17492
 if test "$libitm_cv_as_avx" = yes; then
17493
  ARCH_X86_AVX_TRUE=
17494
  ARCH_X86_AVX_FALSE='#'
17495
else
17496
  ARCH_X86_AVX_TRUE='#'
17497
  ARCH_X86_AVX_FALSE=
17498
fi
17499
 
17500
 if test $enable_linux_futex = yes; then
17501
  ARCH_FUTEX_TRUE=
17502
  ARCH_FUTEX_FALSE='#'
17503
else
17504
  ARCH_FUTEX_TRUE='#'
17505
  ARCH_FUTEX_FALSE=
17506
fi
17507
 
17508
 
17509
ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17510
 
17511
cat >confcache <<\_ACEOF
17512
# This file is a shell script that caches the results of configure
17513
# tests run on this system so they can be shared between configure
17514
# scripts and configure runs, see configure's option --config-cache.
17515
# It is not useful on other systems.  If it contains results you don't
17516
# want to keep, you may remove or edit it.
17517
#
17518
# config.status only pays attention to the cache file if you give it
17519
# the --recheck option to rerun configure.
17520
#
17521
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17522
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17523
# following values.
17524
 
17525
_ACEOF
17526
 
17527
# The following way of writing the cache mishandles newlines in values,
17528
# but we know of no workaround that is simple, portable, and efficient.
17529
# So, we kill variables containing newlines.
17530
# Ultrix sh set writes to stderr and can't be redirected directly,
17531
# and sets the high bit in the cache file unless we assign to the vars.
17532
(
17533
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17534
    eval ac_val=\$$ac_var
17535
    case $ac_val in #(
17536
    *${as_nl}*)
17537
      case $ac_var in #(
17538
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17539
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17540
      esac
17541
      case $ac_var in #(
17542
      _ | IFS | as_nl) ;; #(
17543
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17544
      *) { eval $ac_var=; unset $ac_var;} ;;
17545
      esac ;;
17546
    esac
17547
  done
17548
 
17549
  (set) 2>&1 |
17550
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17551
    *${as_nl}ac_space=\ *)
17552
      # `set' does not quote correctly, so add quotes: double-quote
17553
      # substitution turns \\\\ into \\, and sed turns \\ into \.
17554
      sed -n \
17555
        "s/'/'\\\\''/g;
17556
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17557
      ;; #(
17558
    *)
17559
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17560
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17561
      ;;
17562
    esac |
17563
    sort
17564
) |
17565
  sed '
17566
     /^ac_cv_env_/b end
17567
     t clear
17568
     :clear
17569
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17570
     t end
17571
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17572
     :end' >>confcache
17573
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17574
  if test -w "$cache_file"; then
17575
    test "x$cache_file" != "x/dev/null" &&
17576
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17577
$as_echo "$as_me: updating cache $cache_file" >&6;}
17578
    cat confcache >$cache_file
17579
  else
17580
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17581
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17582
  fi
17583
fi
17584
rm -f confcache
17585
 
17586
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17587
# Let make expand exec_prefix.
17588
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17589
 
17590
DEFS=-DHAVE_CONFIG_H
17591
 
17592
ac_libobjs=
17593
ac_ltlibobjs=
17594
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17595
  # 1. Remove the extension, and $U if already installed.
17596
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17597
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17598
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17599
  #    will be set to the directory where LIBOBJS objects are built.
17600
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17601
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17602
done
17603
LIBOBJS=$ac_libobjs
17604
 
17605
LTLIBOBJS=$ac_ltlibobjs
17606
 
17607
 
17608
if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17609
  as_fn_error "conditional \"GENINSRC\" was never defined.
17610
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17611
fi
17612
 if test -n "$EXEEXT"; then
17613
  am__EXEEXT_TRUE=
17614
  am__EXEEXT_FALSE='#'
17615
else
17616
  am__EXEEXT_TRUE='#'
17617
  am__EXEEXT_FALSE=
17618
fi
17619
 
17620
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17621
  as_fn_error "conditional \"AMDEP\" was never defined.
17622
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17623
fi
17624
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17625
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17626
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17627
fi
17628
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17629
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17630
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17631
fi
17632
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17633
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17634
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17635
fi
17636
if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17637
  as_fn_error "conditional \"BUILD_INFO\" was never defined.
17638
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17639
fi
17640
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17641
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17642
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17643
fi
17644
 
17645
if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17646
  as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17647
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17648
fi
17649
if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17650
  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17651
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17652
fi
17653
if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17654
  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17655
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17656
fi
17657
if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17658
  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17659
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17660
fi
17661
if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17662
  as_fn_error "conditional \"ARCH_ARM\" was never defined.
17663
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17664
fi
17665
if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17666
  as_fn_error "conditional \"ARCH_X86\" was never defined.
17667
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17668
fi
17669
if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17670
  as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17671
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17672
fi
17673
if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17674
  as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17675
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17676
fi
17677
 
17678
: ${CONFIG_STATUS=./config.status}
17679
ac_write_fail=0
17680
ac_clean_files_save=$ac_clean_files
17681
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17682
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17683
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17684
as_write_fail=0
17685
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17686
#! $SHELL
17687
# Generated by $as_me.
17688
# Run this file to recreate the current configuration.
17689
# Compiler output produced by configure, useful for debugging
17690
# configure, is in config.log if it exists.
17691
 
17692
debug=false
17693
ac_cs_recheck=false
17694
ac_cs_silent=false
17695
 
17696
SHELL=\${CONFIG_SHELL-$SHELL}
17697
export SHELL
17698
_ASEOF
17699
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17700
## -------------------- ##
17701
## M4sh Initialization. ##
17702
## -------------------- ##
17703
 
17704
# Be more Bourne compatible
17705
DUALCASE=1; export DUALCASE # for MKS sh
17706
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17707
  emulate sh
17708
  NULLCMD=:
17709
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17710
  # is contrary to our usage.  Disable this feature.
17711
  alias -g '${1+"$@"}'='"$@"'
17712
  setopt NO_GLOB_SUBST
17713
else
17714
  case `(set -o) 2>/dev/null` in #(
17715
  *posix*) :
17716
    set -o posix ;; #(
17717
  *) :
17718
     ;;
17719
esac
17720
fi
17721
 
17722
 
17723
as_nl='
17724
'
17725
export as_nl
17726
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17727
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17728
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17729
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17730
# Prefer a ksh shell builtin over an external printf program on Solaris,
17731
# but without wasting forks for bash or zsh.
17732
if test -z "$BASH_VERSION$ZSH_VERSION" \
17733
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17734
  as_echo='print -r --'
17735
  as_echo_n='print -rn --'
17736
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17737
  as_echo='printf %s\n'
17738
  as_echo_n='printf %s'
17739
else
17740
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17741
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17742
    as_echo_n='/usr/ucb/echo -n'
17743
  else
17744
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17745
    as_echo_n_body='eval
17746
      arg=$1;
17747
      case $arg in #(
17748
      *"$as_nl"*)
17749
        expr "X$arg" : "X\\(.*\\)$as_nl";
17750
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17751
      esac;
17752
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17753
    '
17754
    export as_echo_n_body
17755
    as_echo_n='sh -c $as_echo_n_body as_echo'
17756
  fi
17757
  export as_echo_body
17758
  as_echo='sh -c $as_echo_body as_echo'
17759
fi
17760
 
17761
# The user is always right.
17762
if test "${PATH_SEPARATOR+set}" != set; then
17763
  PATH_SEPARATOR=:
17764
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17765
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17766
      PATH_SEPARATOR=';'
17767
  }
17768
fi
17769
 
17770
 
17771
# IFS
17772
# We need space, tab and new line, in precisely that order.  Quoting is
17773
# there to prevent editors from complaining about space-tab.
17774
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17775
# splitting by setting IFS to empty value.)
17776
IFS=" ""        $as_nl"
17777
 
17778
# Find who we are.  Look in the path if we contain no directory separator.
17779
case $0 in #((
17780
  *[\\/]* ) as_myself=$0 ;;
17781
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17782
for as_dir in $PATH
17783
do
17784
  IFS=$as_save_IFS
17785
  test -z "$as_dir" && as_dir=.
17786
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17787
  done
17788
IFS=$as_save_IFS
17789
 
17790
     ;;
17791
esac
17792
# We did not find ourselves, most probably we were run as `sh COMMAND'
17793
# in which case we are not to be found in the path.
17794
if test "x$as_myself" = x; then
17795
  as_myself=$0
17796
fi
17797
if test ! -f "$as_myself"; then
17798
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17799
  exit 1
17800
fi
17801
 
17802
# Unset variables that we do not need and which cause bugs (e.g. in
17803
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17804
# suppresses any "Segmentation fault" message there.  '((' could
17805
# trigger a bug in pdksh 5.2.14.
17806
for as_var in BASH_ENV ENV MAIL MAILPATH
17807
do eval test x\${$as_var+set} = xset \
17808
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17809
done
17810
PS1='$ '
17811
PS2='> '
17812
PS4='+ '
17813
 
17814
# NLS nuisances.
17815
LC_ALL=C
17816
export LC_ALL
17817
LANGUAGE=C
17818
export LANGUAGE
17819
 
17820
# CDPATH.
17821
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17822
 
17823
 
17824
# as_fn_error ERROR [LINENO LOG_FD]
17825
# ---------------------------------
17826
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17827
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17828
# script with status $?, using 1 if that was 0.
17829
as_fn_error ()
17830
{
17831
  as_status=$?; test $as_status -eq 0 && as_status=1
17832
  if test "$3"; then
17833
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17834
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17835
  fi
17836
  $as_echo "$as_me: error: $1" >&2
17837
  as_fn_exit $as_status
17838
} # as_fn_error
17839
 
17840
 
17841
# as_fn_set_status STATUS
17842
# -----------------------
17843
# Set $? to STATUS, without forking.
17844
as_fn_set_status ()
17845
{
17846
  return $1
17847
} # as_fn_set_status
17848
 
17849
# as_fn_exit STATUS
17850
# -----------------
17851
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17852
as_fn_exit ()
17853
{
17854
  set +e
17855
  as_fn_set_status $1
17856
  exit $1
17857
} # as_fn_exit
17858
 
17859
# as_fn_unset VAR
17860
# ---------------
17861
# Portably unset VAR.
17862
as_fn_unset ()
17863
{
17864
  { eval $1=; unset $1;}
17865
}
17866
as_unset=as_fn_unset
17867
# as_fn_append VAR VALUE
17868
# ----------------------
17869
# Append the text in VALUE to the end of the definition contained in VAR. Take
17870
# advantage of any shell optimizations that allow amortized linear growth over
17871
# repeated appends, instead of the typical quadratic growth present in naive
17872
# implementations.
17873
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17874
  eval 'as_fn_append ()
17875
  {
17876
    eval $1+=\$2
17877
  }'
17878
else
17879
  as_fn_append ()
17880
  {
17881
    eval $1=\$$1\$2
17882
  }
17883
fi # as_fn_append
17884
 
17885
# as_fn_arith ARG...
17886
# ------------------
17887
# Perform arithmetic evaluation on the ARGs, and store the result in the
17888
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17889
# must be portable across $(()) and expr.
17890
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17891
  eval 'as_fn_arith ()
17892
  {
17893
    as_val=$(( $* ))
17894
  }'
17895
else
17896
  as_fn_arith ()
17897
  {
17898
    as_val=`expr "$@" || test $? -eq 1`
17899
  }
17900
fi # as_fn_arith
17901
 
17902
 
17903
if expr a : '\(a\)' >/dev/null 2>&1 &&
17904
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17905
  as_expr=expr
17906
else
17907
  as_expr=false
17908
fi
17909
 
17910
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17911
  as_basename=basename
17912
else
17913
  as_basename=false
17914
fi
17915
 
17916
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17917
  as_dirname=dirname
17918
else
17919
  as_dirname=false
17920
fi
17921
 
17922
as_me=`$as_basename -- "$0" ||
17923
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17924
         X"$0" : 'X\(//\)$' \| \
17925
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17926
$as_echo X/"$0" |
17927
    sed '/^.*\/\([^/][^/]*\)\/*$/{
17928
            s//\1/
17929
            q
17930
          }
17931
          /^X\/\(\/\/\)$/{
17932
            s//\1/
17933
            q
17934
          }
17935
          /^X\/\(\/\).*/{
17936
            s//\1/
17937
            q
17938
          }
17939
          s/.*/./; q'`
17940
 
17941
# Avoid depending upon Character Ranges.
17942
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17943
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17944
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17945
as_cr_digits='0123456789'
17946
as_cr_alnum=$as_cr_Letters$as_cr_digits
17947
 
17948
ECHO_C= ECHO_N= ECHO_T=
17949
case `echo -n x` in #(((((
17950
-n*)
17951
  case `echo 'xy\c'` in
17952
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17953
  xy)  ECHO_C='\c';;
17954
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17955
       ECHO_T=' ';;
17956
  esac;;
17957
*)
17958
  ECHO_N='-n';;
17959
esac
17960
 
17961
rm -f conf$$ conf$$.exe conf$$.file
17962
if test -d conf$$.dir; then
17963
  rm -f conf$$.dir/conf$$.file
17964
else
17965
  rm -f conf$$.dir
17966
  mkdir conf$$.dir 2>/dev/null
17967
fi
17968
if (echo >conf$$.file) 2>/dev/null; then
17969
  if ln -s conf$$.file conf$$ 2>/dev/null; then
17970
    as_ln_s='ln -s'
17971
    # ... but there are two gotchas:
17972
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17973
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17974
    # In both cases, we have to default to `cp -p'.
17975
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17976
      as_ln_s='cp -p'
17977
  elif ln conf$$.file conf$$ 2>/dev/null; then
17978
    as_ln_s=ln
17979
  else
17980
    as_ln_s='cp -p'
17981
  fi
17982
else
17983
  as_ln_s='cp -p'
17984
fi
17985
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17986
rmdir conf$$.dir 2>/dev/null
17987
 
17988
 
17989
# as_fn_mkdir_p
17990
# -------------
17991
# Create "$as_dir" as a directory, including parents if necessary.
17992
as_fn_mkdir_p ()
17993
{
17994
 
17995
  case $as_dir in #(
17996
  -*) as_dir=./$as_dir;;
17997
  esac
17998
  test -d "$as_dir" || eval $as_mkdir_p || {
17999
    as_dirs=
18000
    while :; do
18001
      case $as_dir in #(
18002
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18003
      *) as_qdir=$as_dir;;
18004
      esac
18005
      as_dirs="'$as_qdir' $as_dirs"
18006
      as_dir=`$as_dirname -- "$as_dir" ||
18007
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18008
         X"$as_dir" : 'X\(//\)[^/]' \| \
18009
         X"$as_dir" : 'X\(//\)$' \| \
18010
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18011
$as_echo X"$as_dir" |
18012
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18013
            s//\1/
18014
            q
18015
          }
18016
          /^X\(\/\/\)[^/].*/{
18017
            s//\1/
18018
            q
18019
          }
18020
          /^X\(\/\/\)$/{
18021
            s//\1/
18022
            q
18023
          }
18024
          /^X\(\/\).*/{
18025
            s//\1/
18026
            q
18027
          }
18028
          s/.*/./; q'`
18029
      test -d "$as_dir" && break
18030
    done
18031
    test -z "$as_dirs" || eval "mkdir $as_dirs"
18032
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18033
 
18034
 
18035
} # as_fn_mkdir_p
18036
if mkdir -p . 2>/dev/null; then
18037
  as_mkdir_p='mkdir -p "$as_dir"'
18038
else
18039
  test -d ./-p && rmdir ./-p
18040
  as_mkdir_p=false
18041
fi
18042
 
18043
if test -x / >/dev/null 2>&1; then
18044
  as_test_x='test -x'
18045
else
18046
  if ls -dL / >/dev/null 2>&1; then
18047
    as_ls_L_option=L
18048
  else
18049
    as_ls_L_option=
18050
  fi
18051
  as_test_x='
18052
    eval sh -c '\''
18053
      if test -d "$1"; then
18054
        test -d "$1/.";
18055
      else
18056
        case $1 in #(
18057
        -*)set "./$1";;
18058
        esac;
18059
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18060
        ???[sx]*):;;*)false;;esac;fi
18061
    '\'' sh
18062
  '
18063
fi
18064
as_executable_p=$as_test_x
18065
 
18066
# Sed expression to map a string onto a valid CPP name.
18067
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18068
 
18069
# Sed expression to map a string onto a valid variable name.
18070
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18071
 
18072
 
18073
exec 6>&1
18074
## ----------------------------------- ##
18075
## Main body of $CONFIG_STATUS script. ##
18076
## ----------------------------------- ##
18077
_ASEOF
18078
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18079
 
18080
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18081
# Save the log message, to keep $0 and so on meaningful, and to
18082
# report actual input values of CONFIG_FILES etc. instead of their
18083
# values after options handling.
18084
ac_log="
18085
This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18086
generated by GNU Autoconf 2.64.  Invocation command line was
18087
 
18088
  CONFIG_FILES    = $CONFIG_FILES
18089
  CONFIG_HEADERS  = $CONFIG_HEADERS
18090
  CONFIG_LINKS    = $CONFIG_LINKS
18091
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18092
  $ $0 $@
18093
 
18094
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18095
"
18096
 
18097
_ACEOF
18098
 
18099
case $ac_config_files in *"
18100
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18101
esac
18102
 
18103
case $ac_config_headers in *"
18104
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18105
esac
18106
 
18107
 
18108
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18109
# Files that config.status was made for.
18110
config_files="$ac_config_files"
18111
config_headers="$ac_config_headers"
18112
config_commands="$ac_config_commands"
18113
 
18114
_ACEOF
18115
 
18116
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18117
ac_cs_usage="\
18118
\`$as_me' instantiates files and other configuration actions
18119
from templates according to the current configuration.  Unless the files
18120
and actions are specified as TAGs, all are instantiated by default.
18121
 
18122
Usage: $0 [OPTION]... [TAG]...
18123
 
18124
  -h, --help       print this help, then exit
18125
  -V, --version    print version number and configuration settings, then exit
18126
  -q, --quiet, --silent
18127
                   do not print progress messages
18128
  -d, --debug      don't remove temporary files
18129
      --recheck    update $as_me by reconfiguring in the same conditions
18130
      --file=FILE[:TEMPLATE]
18131
                   instantiate the configuration file FILE
18132
      --header=FILE[:TEMPLATE]
18133
                   instantiate the configuration header FILE
18134
 
18135
Configuration files:
18136
$config_files
18137
 
18138
Configuration headers:
18139
$config_headers
18140
 
18141
Configuration commands:
18142
$config_commands
18143
 
18144
Report bugs to the package provider.
18145
GNU TM Runtime Library home page: .
18146
General help using GNU software: ."
18147
 
18148
_ACEOF
18149
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150
ac_cs_version="\\
18151
GNU TM Runtime Library config.status 1.0
18152
configured by $0, generated by GNU Autoconf 2.64,
18153
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18154
 
18155
Copyright (C) 2009 Free Software Foundation, Inc.
18156
This config.status script is free software; the Free Software Foundation
18157
gives unlimited permission to copy, distribute and modify it."
18158
 
18159
ac_pwd='$ac_pwd'
18160
srcdir='$srcdir'
18161
INSTALL='$INSTALL'
18162
MKDIR_P='$MKDIR_P'
18163
AWK='$AWK'
18164
test -n "\$AWK" || AWK=awk
18165
_ACEOF
18166
 
18167
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18168
# The default lists apply if the user does not specify any file.
18169
ac_need_defaults=:
18170
while test $# != 0
18171
do
18172
  case $1 in
18173
  --*=*)
18174
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18175
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18176
    ac_shift=:
18177
    ;;
18178
  *)
18179
    ac_option=$1
18180
    ac_optarg=$2
18181
    ac_shift=shift
18182
    ;;
18183
  esac
18184
 
18185
  case $ac_option in
18186
  # Handling of the options.
18187
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18188
    ac_cs_recheck=: ;;
18189
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18190
    $as_echo "$ac_cs_version"; exit ;;
18191
  --debug | --debu | --deb | --de | --d | -d )
18192
    debug=: ;;
18193
  --file | --fil | --fi | --f )
18194
    $ac_shift
18195
    case $ac_optarg in
18196
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18197
    esac
18198
    as_fn_append CONFIG_FILES " '$ac_optarg'"
18199
    ac_need_defaults=false;;
18200
  --header | --heade | --head | --hea )
18201
    $ac_shift
18202
    case $ac_optarg in
18203
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18204
    esac
18205
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18206
    ac_need_defaults=false;;
18207
  --he | --h)
18208
    # Conflict between --help and --header
18209
    as_fn_error "ambiguous option: \`$1'
18210
Try \`$0 --help' for more information.";;
18211
  --help | --hel | -h )
18212
    $as_echo "$ac_cs_usage"; exit ;;
18213
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18214
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18215
    ac_cs_silent=: ;;
18216
 
18217
  # This is an error.
18218
  -*) as_fn_error "unrecognized option: \`$1'
18219
Try \`$0 --help' for more information." ;;
18220
 
18221
  *) as_fn_append ac_config_targets " $1"
18222
     ac_need_defaults=false ;;
18223
 
18224
  esac
18225
  shift
18226
done
18227
 
18228
ac_configure_extra_args=
18229
 
18230
if $ac_cs_silent; then
18231
  exec 6>/dev/null
18232
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18233
fi
18234
 
18235
_ACEOF
18236
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18237
if \$ac_cs_recheck; then
18238
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18239
  shift
18240
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18241
  CONFIG_SHELL='$SHELL'
18242
  export CONFIG_SHELL
18243
  exec "\$@"
18244
fi
18245
 
18246
_ACEOF
18247
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18248
exec 5>>config.log
18249
{
18250
  echo
18251
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18252
## Running $as_me. ##
18253
_ASBOX
18254
  $as_echo "$ac_log"
18255
} >&5
18256
 
18257
_ACEOF
18258
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18259
#
18260
# INIT-COMMANDS
18261
#
18262
 
18263
srcdir="$srcdir"
18264
host="$host"
18265
target="$target"
18266
with_multisubdir="$with_multisubdir"
18267
with_multisrctop="$with_multisrctop"
18268
with_target_subdir="$with_target_subdir"
18269
ac_configure_args="${multilib_arg} ${ac_configure_args}"
18270
multi_basedir="$multi_basedir"
18271
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18272
CC="$CC"
18273
CXX="$CXX"
18274
GFORTRAN="$GFORTRAN"
18275
GCJ="$GCJ"
18276
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18277
 
18278
 
18279
# The HP-UX ksh and POSIX shell print the target directory to stdout
18280
# if CDPATH is set.
18281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18282
 
18283
sed_quote_subst='$sed_quote_subst'
18284
double_quote_subst='$double_quote_subst'
18285
delay_variable_subst='$delay_variable_subst'
18286
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18287
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18288
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18289
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18290
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18291
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18292
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18293
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18294
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18295
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18296
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18297
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18298
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18299
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18300
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18301
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18302
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18303
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18304
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18305
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18306
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18307
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18308
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18309
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18310
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18311
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18312
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18313
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18314
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18315
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18316
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18317
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18318
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18319
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18320
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18321
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18322
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18323
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18324
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18325
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18326
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18327
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18328
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18329
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18330
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18331
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18332
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18333
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18334
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"`'
18335
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18336
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18337
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18338
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18339
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18340
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18341
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18342
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18343
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18344
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18345
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18346
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18347
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18348
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18349
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18350
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18351
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18352
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18353
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18354
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18355
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18356
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18357
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18358
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18359
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18360
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18361
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18362
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18363
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18364
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18365
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18366
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18367
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18368
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18369
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18370
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18371
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18372
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18373
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18374
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18375
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18376
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18377
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18378
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18379
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18380
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18381
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18382
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18383
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18384
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18385
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18386
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18387
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18388
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18389
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18390
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18391
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18392
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18393
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18394
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18395
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18396
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18397
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18398
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18399
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18400
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18401
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18402
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18403
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18404
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18405
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18406
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18407
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18408
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18409
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18410
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18411
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18412
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18413
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18414
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18415
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18416
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18417
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18418
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18419
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18420
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18421
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18422
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18423
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18424
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18425
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18426
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18427
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18428
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18429
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18430
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18431
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18432
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18433
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18434
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18435
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18436
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18437
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18438
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18439
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18440
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18441
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18442
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18443
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18444
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18445
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18446
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18447
fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18448
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18449
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18450
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18451
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18452
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18453
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18454
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18455
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18456
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18457
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18458
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18459
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18460
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18461
 
18462
LTCC='$LTCC'
18463
LTCFLAGS='$LTCFLAGS'
18464
compiler='$compiler_DEFAULT'
18465
 
18466
# A function that is used when there is no print builtin or printf.
18467
func_fallback_echo ()
18468
{
18469
  eval 'cat <<_LTECHO_EOF
18470
\$1
18471
_LTECHO_EOF'
18472
}
18473
 
18474
# Quote evaled strings.
18475
for var in SHELL \
18476
ECHO \
18477
SED \
18478
GREP \
18479
EGREP \
18480
FGREP \
18481
LD \
18482
NM \
18483
LN_S \
18484
lt_SP2NL \
18485
lt_NL2SP \
18486
reload_flag \
18487
OBJDUMP \
18488
deplibs_check_method \
18489
file_magic_cmd \
18490
AR \
18491
AR_FLAGS \
18492
STRIP \
18493
RANLIB \
18494
CC \
18495
CFLAGS \
18496
compiler \
18497
lt_cv_sys_global_symbol_pipe \
18498
lt_cv_sys_global_symbol_to_cdecl \
18499
lt_cv_sys_global_symbol_to_c_name_address \
18500
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18501
lt_prog_compiler_no_builtin_flag \
18502
lt_prog_compiler_wl \
18503
lt_prog_compiler_pic \
18504
lt_prog_compiler_static \
18505
lt_cv_prog_compiler_c_o \
18506
need_locks \
18507
DSYMUTIL \
18508
NMEDIT \
18509
LIPO \
18510
OTOOL \
18511
OTOOL64 \
18512
shrext_cmds \
18513
export_dynamic_flag_spec \
18514
whole_archive_flag_spec \
18515
compiler_needs_object \
18516
with_gnu_ld \
18517
allow_undefined_flag \
18518
no_undefined_flag \
18519
hardcode_libdir_flag_spec \
18520
hardcode_libdir_flag_spec_ld \
18521
hardcode_libdir_separator \
18522
fix_srcfile_path \
18523
exclude_expsyms \
18524
include_expsyms \
18525
file_list_spec \
18526
variables_saved_for_relink \
18527
libname_spec \
18528
library_names_spec \
18529
soname_spec \
18530
install_override_mode \
18531
finish_eval \
18532
old_striplib \
18533
striplib \
18534
compiler_lib_search_dirs \
18535
predep_objects \
18536
postdep_objects \
18537
predeps \
18538
postdeps \
18539
compiler_lib_search_path \
18540
LD_CXX \
18541
reload_flag_CXX \
18542
compiler_CXX \
18543
lt_prog_compiler_no_builtin_flag_CXX \
18544
lt_prog_compiler_wl_CXX \
18545
lt_prog_compiler_pic_CXX \
18546
lt_prog_compiler_static_CXX \
18547
lt_cv_prog_compiler_c_o_CXX \
18548
export_dynamic_flag_spec_CXX \
18549
whole_archive_flag_spec_CXX \
18550
compiler_needs_object_CXX \
18551
with_gnu_ld_CXX \
18552
allow_undefined_flag_CXX \
18553
no_undefined_flag_CXX \
18554
hardcode_libdir_flag_spec_CXX \
18555
hardcode_libdir_flag_spec_ld_CXX \
18556
hardcode_libdir_separator_CXX \
18557
fix_srcfile_path_CXX \
18558
exclude_expsyms_CXX \
18559
include_expsyms_CXX \
18560
file_list_spec_CXX \
18561
compiler_lib_search_dirs_CXX \
18562
predep_objects_CXX \
18563
postdep_objects_CXX \
18564
predeps_CXX \
18565
postdeps_CXX \
18566
compiler_lib_search_path_CXX; do
18567
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18568
    *[\\\\\\\`\\"\\\$]*)
18569
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18570
      ;;
18571
    *)
18572
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18573
      ;;
18574
    esac
18575
done
18576
 
18577
# Double-quote double-evaled strings.
18578
for var in reload_cmds \
18579
old_postinstall_cmds \
18580
old_postuninstall_cmds \
18581
old_archive_cmds \
18582
extract_expsyms_cmds \
18583
old_archive_from_new_cmds \
18584
old_archive_from_expsyms_cmds \
18585
archive_cmds \
18586
archive_expsym_cmds \
18587
module_cmds \
18588
module_expsym_cmds \
18589
export_symbols_cmds \
18590
prelink_cmds \
18591
postinstall_cmds \
18592
postuninstall_cmds \
18593
finish_cmds \
18594
sys_lib_search_path_spec \
18595
sys_lib_dlsearch_path_spec \
18596
reload_cmds_CXX \
18597
old_archive_cmds_CXX \
18598
old_archive_from_new_cmds_CXX \
18599
old_archive_from_expsyms_cmds_CXX \
18600
archive_cmds_CXX \
18601
archive_expsym_cmds_CXX \
18602
module_cmds_CXX \
18603
module_expsym_cmds_CXX \
18604
export_symbols_cmds_CXX \
18605
prelink_cmds_CXX; do
18606
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18607
    *[\\\\\\\`\\"\\\$]*)
18608
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18609
      ;;
18610
    *)
18611
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18612
      ;;
18613
    esac
18614
done
18615
 
18616
ac_aux_dir='$ac_aux_dir'
18617
xsi_shell='$xsi_shell'
18618
lt_shell_append='$lt_shell_append'
18619
 
18620
# See if we are running on zsh, and set the options which allow our
18621
# commands through without removal of \ escapes INIT.
18622
if test -n "\${ZSH_VERSION+set}" ; then
18623
   setopt NO_GLOB_SUBST
18624
fi
18625
 
18626
 
18627
    PACKAGE='$PACKAGE'
18628
    VERSION='$VERSION'
18629
    TIMESTAMP='$TIMESTAMP'
18630
    RM='$RM'
18631
    ofile='$ofile'
18632
 
18633
 
18634
 
18635
 
18636
 
18637
 
18638
GCC="$GCC"
18639
CC="$CC"
18640
acx_cv_header_stdint="$acx_cv_header_stdint"
18641
acx_cv_type_int8_t="$acx_cv_type_int8_t"
18642
acx_cv_type_int16_t="$acx_cv_type_int16_t"
18643
acx_cv_type_int32_t="$acx_cv_type_int32_t"
18644
acx_cv_type_int64_t="$acx_cv_type_int64_t"
18645
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18646
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18647
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18648
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18649
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18650
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18651
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18652
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18653
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18654
 
18655
 
18656
_ACEOF
18657
 
18658
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18659
 
18660
# Handling of arguments.
18661
for ac_config_target in $ac_config_targets
18662
do
18663
  case $ac_config_target in
18664
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18665
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18666
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18667
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18668
    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18669
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18670
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18671
    "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18672
 
18673
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18674
  esac
18675
done
18676
 
18677
 
18678
# If the user did not use the arguments to specify the items to instantiate,
18679
# then the envvar interface is used.  Set only those that are not.
18680
# We use the long form for the default assignment because of an extremely
18681
# bizarre bug on SunOS 4.1.3.
18682
if $ac_need_defaults; then
18683
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18684
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18685
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18686
fi
18687
 
18688
# Have a temporary directory for convenience.  Make it in the build tree
18689
# simply because there is no reason against having it here, and in addition,
18690
# creating and moving files from /tmp can sometimes cause problems.
18691
# Hook for its removal unless debugging.
18692
# Note that there is a small window in which the directory will not be cleaned:
18693
# after its creation but before its name has been assigned to `$tmp'.
18694
$debug ||
18695
{
18696
  tmp=
18697
  trap 'exit_status=$?
18698
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18699
' 0
18700
  trap 'as_fn_exit 1' 1 2 13 15
18701
}
18702
# Create a (secure) tmp directory for tmp files.
18703
 
18704
{
18705
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18706
  test -n "$tmp" && test -d "$tmp"
18707
}  ||
18708
{
18709
  tmp=./conf$$-$RANDOM
18710
  (umask 077 && mkdir "$tmp")
18711
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18712
 
18713
# Set up the scripts for CONFIG_FILES section.
18714
# No need to generate them if there are no CONFIG_FILES.
18715
# This happens for instance with `./config.status config.h'.
18716
if test -n "$CONFIG_FILES"; then
18717
 
18718
 
18719
ac_cr=`echo X | tr X '\015'`
18720
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18721
# But we know of no other shell where ac_cr would be empty at this
18722
# point, so we can use a bashism as a fallback.
18723
if test "x$ac_cr" = x; then
18724
  eval ac_cr=\$\'\\r\'
18725
fi
18726
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18727
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18728
  ac_cs_awk_cr='\r'
18729
else
18730
  ac_cs_awk_cr=$ac_cr
18731
fi
18732
 
18733
echo 'BEGIN {' >"$tmp/subs1.awk" &&
18734
_ACEOF
18735
 
18736
 
18737
{
18738
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18739
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18740
  echo "_ACEOF"
18741
} >conf$$subs.sh ||
18742
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18743
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18744
ac_delim='%!_!# '
18745
for ac_last_try in false false false false false :; do
18746
  . ./conf$$subs.sh ||
18747
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18748
 
18749
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18750
  if test $ac_delim_n = $ac_delim_num; then
18751
    break
18752
  elif $ac_last_try; then
18753
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18754
  else
18755
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18756
  fi
18757
done
18758
rm -f conf$$subs.sh
18759
 
18760
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18761
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18762
_ACEOF
18763
sed -n '
18764
h
18765
s/^/S["/; s/!.*/"]=/
18766
p
18767
g
18768
s/^[^!]*!//
18769
:repl
18770
t repl
18771
s/'"$ac_delim"'$//
18772
t delim
18773
:nl
18774
h
18775
s/\(.\{148\}\).*/\1/
18776
t more1
18777
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18778
p
18779
n
18780
b repl
18781
:more1
18782
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18783
p
18784
g
18785
s/.\{148\}//
18786
t nl
18787
:delim
18788
h
18789
s/\(.\{148\}\).*/\1/
18790
t more2
18791
s/["\\]/\\&/g; s/^/"/; s/$/"/
18792
p
18793
b
18794
:more2
18795
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18796
p
18797
g
18798
s/.\{148\}//
18799
t delim
18800
' 
18801
/^[^""]/{
18802
  N
18803
  s/\n//
18804
}
18805
' >>$CONFIG_STATUS || ac_write_fail=1
18806
rm -f conf$$subs.awk
18807
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18808
_ACAWK
18809
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18810
  for (key in S) S_is_set[key] = 1
18811
  FS = ""
18812
 
18813
}
18814
{
18815
  line = $ 0
18816
  nfields = split(line, field, "@")
18817
  substed = 0
18818
  len = length(field[1])
18819
  for (i = 2; i < nfields; i++) {
18820
    key = field[i]
18821
    keylen = length(key)
18822
    if (S_is_set[key]) {
18823
      value = S[key]
18824
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18825
      len += length(value) + length(field[++i])
18826
      substed = 1
18827
    } else
18828
      len += 1 + keylen
18829
  }
18830
 
18831
  print line
18832
}
18833
 
18834
_ACAWK
18835
_ACEOF
18836
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18837
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18838
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18839
else
18840
  cat
18841
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18842
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18843
_ACEOF
18844
 
18845
# VPATH may cause trouble with some makes, so we remove $(srcdir),
18846
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18847
# trailing colons and then remove the whole line if VPATH becomes empty
18848
# (actually we leave an empty line to preserve line numbers).
18849
if test "x$srcdir" = x.; then
18850
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18851
s/:*\$(srcdir):*/:/
18852
s/:*\${srcdir}:*/:/
18853
s/:*@srcdir@:*/:/
18854
s/^\([^=]*=[     ]*\):*/\1/
18855
s/:*$//
18856
s/^[^=]*=[       ]*$//
18857
}'
18858
fi
18859
 
18860
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861
fi # test -n "$CONFIG_FILES"
18862
 
18863
# Set up the scripts for CONFIG_HEADERS section.
18864
# No need to generate them if there are no CONFIG_HEADERS.
18865
# This happens for instance with `./config.status Makefile'.
18866
if test -n "$CONFIG_HEADERS"; then
18867
cat >"$tmp/defines.awk" <<\_ACAWK ||
18868
BEGIN {
18869
_ACEOF
18870
 
18871
# Transform confdefs.h into an awk script `defines.awk', embedded as
18872
# here-document in config.status, that substitutes the proper values into
18873
# config.h.in to produce config.h.
18874
 
18875
# Create a delimiter string that does not exist in confdefs.h, to ease
18876
# handling of long lines.
18877
ac_delim='%!_!# '
18878
for ac_last_try in false false :; do
18879
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18880
  if test -z "$ac_t"; then
18881
    break
18882
  elif $ac_last_try; then
18883
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18884
  else
18885
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18886
  fi
18887
done
18888
 
18889
# For the awk script, D is an array of macro values keyed by name,
18890
# likewise P contains macro parameters if any.  Preserve backslash
18891
# newline sequences.
18892
 
18893
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18894
sed -n '
18895
s/.\{148\}/&'"$ac_delim"'/g
18896
t rset
18897
:rset
18898
s/^[     ]*#[    ]*define[       ][      ]*/ /
18899
t def
18900
d
18901
:def
18902
s/\\$//
18903
t bsnl
18904
s/["\\]/\\&/g
18905
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18906
D["\1"]=" \3"/p
18907
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18908
d
18909
:bsnl
18910
s/["\\]/\\&/g
18911
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18912
D["\1"]=" \3\\\\\\n"\\/p
18913
t cont
18914
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18915
t cont
18916
d
18917
:cont
18918
n
18919
s/.\{148\}/&'"$ac_delim"'/g
18920
t clear
18921
:clear
18922
s/\\$//
18923
t bsnlc
18924
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18925
d
18926
:bsnlc
18927
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18928
b cont
18929
' 
18930
s/'"$ac_delim"'/"\\\
18931
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18932
 
18933
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18934
  for (key in D) D_is_set[key] = 1
18935
  FS = ""
18936
}
18937
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18938
  line = \$ 0
18939
  split(line, arg, " ")
18940
  if (arg[1] == "#") {
18941
    defundef = arg[2]
18942
    mac1 = arg[3]
18943
  } else {
18944
    defundef = substr(arg[1], 2)
18945
    mac1 = arg[2]
18946
  }
18947
  split(mac1, mac2, "(") #)
18948
  macro = mac2[1]
18949
  prefix = substr(line, 1, index(line, defundef) - 1)
18950
  if (D_is_set[macro]) {
18951
    # Preserve the white space surrounding the "#".
18952
    print prefix "define", macro P[macro] D[macro]
18953
    next
18954
  } else {
18955
    # Replace #undef with comments.  This is necessary, for example,
18956
    # in the case of _POSIX_SOURCE, which is predefined and required
18957
    # on some systems where configure will not decide to define it.
18958
    if (defundef == "undef") {
18959
      print "/*", prefix defundef, macro, "*/"
18960
      next
18961
    }
18962
  }
18963
}
18964
{ print }
18965
_ACAWK
18966
_ACEOF
18967
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18968
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18969
fi # test -n "$CONFIG_HEADERS"
18970
 
18971
 
18972
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18973
shift
18974
for ac_tag
18975
do
18976
  case $ac_tag in
18977
  :[FHLC]) ac_mode=$ac_tag; continue;;
18978
  esac
18979
  case $ac_mode$ac_tag in
18980
  :[FHL]*:*);;
18981
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18982
  :[FH]-) ac_tag=-:-;;
18983
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18984
  esac
18985
  ac_save_IFS=$IFS
18986
  IFS=:
18987
  set x $ac_tag
18988
  IFS=$ac_save_IFS
18989
  shift
18990
  ac_file=$1
18991
  shift
18992
 
18993
  case $ac_mode in
18994
  :L) ac_source=$1;;
18995
  :[FH])
18996
    ac_file_inputs=
18997
    for ac_f
18998
    do
18999
      case $ac_f in
19000
      -) ac_f="$tmp/stdin";;
19001
      *) # Look for the file first in the build tree, then in the source tree
19002
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19003
         # because $ac_f cannot contain `:'.
19004
         test -f "$ac_f" ||
19005
           case $ac_f in
19006
           [\\/$]*) false;;
19007
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19008
           esac ||
19009
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19010
      esac
19011
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19012
      as_fn_append ac_file_inputs " '$ac_f'"
19013
    done
19014
 
19015
    # Let's still pretend it is `configure' which instantiates (i.e., don't
19016
    # use $as_me), people would be surprised to read:
19017
    #    /* config.h.  Generated by config.status.  */
19018
    configure_input='Generated from '`
19019
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19020
        `' by configure.'
19021
    if test x"$ac_file" != x-; then
19022
      configure_input="$ac_file.  $configure_input"
19023
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19024
$as_echo "$as_me: creating $ac_file" >&6;}
19025
    fi
19026
    # Neutralize special characters interpreted by sed in replacement strings.
19027
    case $configure_input in #(
19028
    *\&* | *\|* | *\\* )
19029
       ac_sed_conf_input=`$as_echo "$configure_input" |
19030
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19031
    *) ac_sed_conf_input=$configure_input;;
19032
    esac
19033
 
19034
    case $ac_tag in
19035
    *:-:* | *:-) cat >"$tmp/stdin" \
19036
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19037
    esac
19038
    ;;
19039
  esac
19040
 
19041
  ac_dir=`$as_dirname -- "$ac_file" ||
19042
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19043
         X"$ac_file" : 'X\(//\)[^/]' \| \
19044
         X"$ac_file" : 'X\(//\)$' \| \
19045
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19046
$as_echo X"$ac_file" |
19047
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19048
            s//\1/
19049
            q
19050
          }
19051
          /^X\(\/\/\)[^/].*/{
19052
            s//\1/
19053
            q
19054
          }
19055
          /^X\(\/\/\)$/{
19056
            s//\1/
19057
            q
19058
          }
19059
          /^X\(\/\).*/{
19060
            s//\1/
19061
            q
19062
          }
19063
          s/.*/./; q'`
19064
  as_dir="$ac_dir"; as_fn_mkdir_p
19065
  ac_builddir=.
19066
 
19067
case "$ac_dir" in
19068
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19069
*)
19070
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19071
  # A ".." for each directory in $ac_dir_suffix.
19072
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19073
  case $ac_top_builddir_sub in
19074
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19075
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19076
  esac ;;
19077
esac
19078
ac_abs_top_builddir=$ac_pwd
19079
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19080
# for backward compatibility:
19081
ac_top_builddir=$ac_top_build_prefix
19082
 
19083
case $srcdir in
19084
  .)  # We are building in place.
19085
    ac_srcdir=.
19086
    ac_top_srcdir=$ac_top_builddir_sub
19087
    ac_abs_top_srcdir=$ac_pwd ;;
19088
  [\\/]* | ?:[\\/]* )  # Absolute name.
19089
    ac_srcdir=$srcdir$ac_dir_suffix;
19090
    ac_top_srcdir=$srcdir
19091
    ac_abs_top_srcdir=$srcdir ;;
19092
  *) # Relative name.
19093
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19094
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19095
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19096
esac
19097
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19098
 
19099
 
19100
  case $ac_mode in
19101
  :F)
19102
  #
19103
  # CONFIG_FILE
19104
  #
19105
 
19106
  case $INSTALL in
19107
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19108
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19109
  esac
19110
  ac_MKDIR_P=$MKDIR_P
19111
  case $MKDIR_P in
19112
  [\\/$]* | ?:[\\/]* ) ;;
19113
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19114
  esac
19115
_ACEOF
19116
 
19117
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118
# If the template does not know about datarootdir, expand it.
19119
# FIXME: This hack should be removed a few years after 2.60.
19120
ac_datarootdir_hack=; ac_datarootdir_seen=
19121
ac_sed_dataroot='
19122
/datarootdir/ {
19123
  p
19124
  q
19125
}
19126
/@datadir@/p
19127
/@docdir@/p
19128
/@infodir@/p
19129
/@localedir@/p
19130
/@mandir@/p'
19131
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19132
*datarootdir*) ac_datarootdir_seen=yes;;
19133
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19134
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19135
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19136
_ACEOF
19137
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19138
  ac_datarootdir_hack='
19139
  s&@datadir@&$datadir&g
19140
  s&@docdir@&$docdir&g
19141
  s&@infodir@&$infodir&g
19142
  s&@localedir@&$localedir&g
19143
  s&@mandir@&$mandir&g
19144
  s&\\\${datarootdir}&$datarootdir&g' ;;
19145
esac
19146
_ACEOF
19147
 
19148
# Neutralize VPATH when `$srcdir' = `.'.
19149
# Shell code in configure.ac might set extrasub.
19150
# FIXME: do we really want to maintain this feature?
19151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152
ac_sed_extra="$ac_vpsub
19153
$extrasub
19154
_ACEOF
19155
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156
:t
19157
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19158
s|@configure_input@|$ac_sed_conf_input|;t t
19159
s&@top_builddir@&$ac_top_builddir_sub&;t t
19160
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19161
s&@srcdir@&$ac_srcdir&;t t
19162
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19163
s&@top_srcdir@&$ac_top_srcdir&;t t
19164
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19165
s&@builddir@&$ac_builddir&;t t
19166
s&@abs_builddir@&$ac_abs_builddir&;t t
19167
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19168
s&@INSTALL@&$ac_INSTALL&;t t
19169
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19170
$ac_datarootdir_hack
19171
"
19172
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19173
  || as_fn_error "could not create $ac_file" "$LINENO" 5
19174
 
19175
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19176
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19177
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19178
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19179
which seems to be undefined.  Please make sure it is defined." >&5
19180
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19181
which seems to be undefined.  Please make sure it is defined." >&2;}
19182
 
19183
  rm -f "$tmp/stdin"
19184
  case $ac_file in
19185
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19186
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19187
  esac \
19188
  || as_fn_error "could not create $ac_file" "$LINENO" 5
19189
 ;;
19190
  :H)
19191
  #
19192
  # CONFIG_HEADER
19193
  #
19194
  if test x"$ac_file" != x-; then
19195
    {
19196
      $as_echo "/* $configure_input  */" \
19197
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19198
    } >"$tmp/config.h" \
19199
      || as_fn_error "could not create $ac_file" "$LINENO" 5
19200
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19201
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19202
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19203
    else
19204
      rm -f "$ac_file"
19205
      mv "$tmp/config.h" "$ac_file" \
19206
        || as_fn_error "could not create $ac_file" "$LINENO" 5
19207
    fi
19208
  else
19209
    $as_echo "/* $configure_input  */" \
19210
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19211
      || as_fn_error "could not create -" "$LINENO" 5
19212
  fi
19213
# Compute "$ac_file"'s index in $config_headers.
19214
_am_arg="$ac_file"
19215
_am_stamp_count=1
19216
for _am_header in $config_headers :; do
19217
  case $_am_header in
19218
    $_am_arg | $_am_arg:* )
19219
      break ;;
19220
    * )
19221
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19222
  esac
19223
done
19224
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19225
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19226
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19227
         X"$_am_arg" : 'X\(//\)$' \| \
19228
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19229
$as_echo X"$_am_arg" |
19230
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19231
            s//\1/
19232
            q
19233
          }
19234
          /^X\(\/\/\)[^/].*/{
19235
            s//\1/
19236
            q
19237
          }
19238
          /^X\(\/\/\)$/{
19239
            s//\1/
19240
            q
19241
          }
19242
          /^X\(\/\).*/{
19243
            s//\1/
19244
            q
19245
          }
19246
          s/.*/./; q'`/stamp-h$_am_stamp_count
19247
 ;;
19248
 
19249
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19250
$as_echo "$as_me: executing $ac_file commands" >&6;}
19251
 ;;
19252
  esac
19253
 
19254
 
19255
  case $ac_file$ac_mode in
19256
    "default-1":C)
19257
# Only add multilib support code if we just rebuilt the top-level
19258
# Makefile.
19259
case " $CONFIG_FILES " in
19260
 *" Makefile "*)
19261
   ac_file=Makefile . ${multi_basedir}/config-ml.in
19262
   ;;
19263
esac ;;
19264
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19265
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19266
  # are listed without --file.  Let's play safe and only enable the eval
19267
  # if we detect the quoting.
19268
  case $CONFIG_FILES in
19269
  *\'*) eval set x "$CONFIG_FILES" ;;
19270
  *)   set x $CONFIG_FILES ;;
19271
  esac
19272
  shift
19273
  for mf
19274
  do
19275
    # Strip MF so we end up with the name of the file.
19276
    mf=`echo "$mf" | sed -e 's/:.*$//'`
19277
    # Check whether this is an Automake generated Makefile or not.
19278
    # We used to match only the files named `Makefile.in', but
19279
    # some people rename them; so instead we look at the file content.
19280
    # Grep'ing the first line is not enough: some people post-process
19281
    # each Makefile.in and add a new line on top of each file to say so.
19282
    # Grep'ing the whole file is not good either: AIX grep has a line
19283
    # limit of 2048, but all sed's we know have understand at least 4000.
19284
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19285
      dirpart=`$as_dirname -- "$mf" ||
19286
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287
         X"$mf" : 'X\(//\)[^/]' \| \
19288
         X"$mf" : 'X\(//\)$' \| \
19289
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19290
$as_echo X"$mf" |
19291
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19292
            s//\1/
19293
            q
19294
          }
19295
          /^X\(\/\/\)[^/].*/{
19296
            s//\1/
19297
            q
19298
          }
19299
          /^X\(\/\/\)$/{
19300
            s//\1/
19301
            q
19302
          }
19303
          /^X\(\/\).*/{
19304
            s//\1/
19305
            q
19306
          }
19307
          s/.*/./; q'`
19308
    else
19309
      continue
19310
    fi
19311
    # Extract the definition of DEPDIR, am__include, and am__quote
19312
    # from the Makefile without running `make'.
19313
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19314
    test -z "$DEPDIR" && continue
19315
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19316
    test -z "am__include" && continue
19317
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19318
    # When using ansi2knr, U may be empty or an underscore; expand it
19319
    U=`sed -n 's/^U = //p' < "$mf"`
19320
    # Find all dependency output files, they are included files with
19321
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19322
    # simplest approach to changing $(DEPDIR) to its actual value in the
19323
    # expansion.
19324
    for file in `sed -n "
19325
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19326
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19327
      # Make sure the directory exists.
19328
      test -f "$dirpart/$file" && continue
19329
      fdir=`$as_dirname -- "$file" ||
19330
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19331
         X"$file" : 'X\(//\)[^/]' \| \
19332
         X"$file" : 'X\(//\)$' \| \
19333
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19334
$as_echo X"$file" |
19335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19336
            s//\1/
19337
            q
19338
          }
19339
          /^X\(\/\/\)[^/].*/{
19340
            s//\1/
19341
            q
19342
          }
19343
          /^X\(\/\/\)$/{
19344
            s//\1/
19345
            q
19346
          }
19347
          /^X\(\/\).*/{
19348
            s//\1/
19349
            q
19350
          }
19351
          s/.*/./; q'`
19352
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19353
      # echo "creating $dirpart/$file"
19354
      echo '# dummy' > "$dirpart/$file"
19355
    done
19356
  done
19357
}
19358
 ;;
19359
    "libtool":C)
19360
 
19361
    # See if we are running on zsh, and set the options which allow our
19362
    # commands through without removal of \ escapes.
19363
    if test -n "${ZSH_VERSION+set}" ; then
19364
      setopt NO_GLOB_SUBST
19365
    fi
19366
 
19367
    cfgfile="${ofile}T"
19368
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19369
    $RM "$cfgfile"
19370
 
19371
    cat <<_LT_EOF >> "$cfgfile"
19372
#! $SHELL
19373
 
19374
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19375
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19376
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19377
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19378
#
19379
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19380
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19381
#   Written by Gordon Matzigkeit, 1996
19382
#
19383
#   This file is part of GNU Libtool.
19384
#
19385
# GNU Libtool is free software; you can redistribute it and/or
19386
# modify it under the terms of the GNU General Public License as
19387
# published by the Free Software Foundation; either version 2 of
19388
# the License, or (at your option) any later version.
19389
#
19390
# As a special exception to the GNU General Public License,
19391
# if you distribute this file as part of a program or library that
19392
# is built using GNU Libtool, you may include this file under the
19393
# same distribution terms that you use for the rest of that program.
19394
#
19395
# GNU Libtool is distributed in the hope that it will be useful,
19396
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19397
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19398
# GNU General Public License for more details.
19399
#
19400
# You should have received a copy of the GNU General Public License
19401
# along with GNU Libtool; see the file COPYING.  If not, a copy
19402
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19403
# obtained by writing to the Free Software Foundation, Inc.,
19404
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19405
 
19406
 
19407
# The names of the tagged configurations supported by this script.
19408
available_tags="CXX "
19409
 
19410
# ### BEGIN LIBTOOL CONFIG
19411
 
19412
# Which release of libtool.m4 was used?
19413
macro_version=$macro_version
19414
macro_revision=$macro_revision
19415
 
19416
# Whether or not to build shared libraries.
19417
build_libtool_libs=$enable_shared
19418
 
19419
# Whether or not to build static libraries.
19420
build_old_libs=$enable_static
19421
 
19422
# What type of objects to build.
19423
pic_mode=$pic_mode
19424
 
19425
# Whether or not to optimize for fast installation.
19426
fast_install=$enable_fast_install
19427
 
19428
# Shell to use when invoking shell scripts.
19429
SHELL=$lt_SHELL
19430
 
19431
# An echo program that protects backslashes.
19432
ECHO=$lt_ECHO
19433
 
19434
# The host system.
19435
host_alias=$host_alias
19436
host=$host
19437
host_os=$host_os
19438
 
19439
# The build system.
19440
build_alias=$build_alias
19441
build=$build
19442
build_os=$build_os
19443
 
19444
# A sed program that does not truncate output.
19445
SED=$lt_SED
19446
 
19447
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19448
Xsed="\$SED -e 1s/^X//"
19449
 
19450
# A grep program that handles long lines.
19451
GREP=$lt_GREP
19452
 
19453
# An ERE matcher.
19454
EGREP=$lt_EGREP
19455
 
19456
# A literal string matcher.
19457
FGREP=$lt_FGREP
19458
 
19459
# A BSD- or MS-compatible name lister.
19460
NM=$lt_NM
19461
 
19462
# Whether we need soft or hard links.
19463
LN_S=$lt_LN_S
19464
 
19465
# What is the maximum length of a command?
19466
max_cmd_len=$max_cmd_len
19467
 
19468
# Object file suffix (normally "o").
19469
objext=$ac_objext
19470
 
19471
# Executable file suffix (normally "").
19472
exeext=$exeext
19473
 
19474
# whether the shell understands "unset".
19475
lt_unset=$lt_unset
19476
 
19477
# turn spaces into newlines.
19478
SP2NL=$lt_lt_SP2NL
19479
 
19480
# turn newlines into spaces.
19481
NL2SP=$lt_lt_NL2SP
19482
 
19483
# An object symbol dumper.
19484
OBJDUMP=$lt_OBJDUMP
19485
 
19486
# Method to check whether dependent libraries are shared objects.
19487
deplibs_check_method=$lt_deplibs_check_method
19488
 
19489
# Command to use when deplibs_check_method == "file_magic".
19490
file_magic_cmd=$lt_file_magic_cmd
19491
 
19492
# The archiver.
19493
AR=$lt_AR
19494
AR_FLAGS=$lt_AR_FLAGS
19495
 
19496
# A symbol stripping program.
19497
STRIP=$lt_STRIP
19498
 
19499
# Commands used to install an old-style archive.
19500
RANLIB=$lt_RANLIB
19501
old_postinstall_cmds=$lt_old_postinstall_cmds
19502
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19503
 
19504
# Whether to use a lock for old archive extraction.
19505
lock_old_archive_extraction=$lock_old_archive_extraction
19506
 
19507
# A C compiler.
19508
LTCC=$lt_CC
19509
 
19510
# LTCC compiler flags.
19511
LTCFLAGS=$lt_CFLAGS
19512
 
19513
# Take the output of nm and produce a listing of raw symbols and C names.
19514
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19515
 
19516
# Transform the output of nm in a proper C declaration.
19517
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19518
 
19519
# Transform the output of nm in a C name address pair.
19520
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19521
 
19522
# Transform the output of nm in a C name address pair when lib prefix is needed.
19523
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19524
 
19525
# The name of the directory that contains temporary libtool files.
19526
objdir=$objdir
19527
 
19528
# Used to examine libraries when file_magic_cmd begins with "file".
19529
MAGIC_CMD=$MAGIC_CMD
19530
 
19531
# Must we lock files when doing compilation?
19532
need_locks=$lt_need_locks
19533
 
19534
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19535
DSYMUTIL=$lt_DSYMUTIL
19536
 
19537
# Tool to change global to local symbols on Mac OS X.
19538
NMEDIT=$lt_NMEDIT
19539
 
19540
# Tool to manipulate fat objects and archives on Mac OS X.
19541
LIPO=$lt_LIPO
19542
 
19543
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19544
OTOOL=$lt_OTOOL
19545
 
19546
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19547
OTOOL64=$lt_OTOOL64
19548
 
19549
# Old archive suffix (normally "a").
19550
libext=$libext
19551
 
19552
# Shared library suffix (normally ".so").
19553
shrext_cmds=$lt_shrext_cmds
19554
 
19555
# The commands to extract the exported symbol list from a shared archive.
19556
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19557
 
19558
# Variables whose values should be saved in libtool wrapper scripts and
19559
# restored at link time.
19560
variables_saved_for_relink=$lt_variables_saved_for_relink
19561
 
19562
# Do we need the "lib" prefix for modules?
19563
need_lib_prefix=$need_lib_prefix
19564
 
19565
# Do we need a version for libraries?
19566
need_version=$need_version
19567
 
19568
# Library versioning type.
19569
version_type=$version_type
19570
 
19571
# Shared library runtime path variable.
19572
runpath_var=$runpath_var
19573
 
19574
# Shared library path variable.
19575
shlibpath_var=$shlibpath_var
19576
 
19577
# Is shlibpath searched before the hard-coded library search path?
19578
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19579
 
19580
# Format of library name prefix.
19581
libname_spec=$lt_libname_spec
19582
 
19583
# List of archive names.  First name is the real one, the rest are links.
19584
# The last name is the one that the linker finds with -lNAME
19585
library_names_spec=$lt_library_names_spec
19586
 
19587
# The coded name of the library, if different from the real name.
19588
soname_spec=$lt_soname_spec
19589
 
19590
# Permission mode override for installation of shared libraries.
19591
install_override_mode=$lt_install_override_mode
19592
 
19593
# Command to use after installation of a shared archive.
19594
postinstall_cmds=$lt_postinstall_cmds
19595
 
19596
# Command to use after uninstallation of a shared archive.
19597
postuninstall_cmds=$lt_postuninstall_cmds
19598
 
19599
# Commands used to finish a libtool library installation in a directory.
19600
finish_cmds=$lt_finish_cmds
19601
 
19602
# As "finish_cmds", except a single script fragment to be evaled but
19603
# not shown.
19604
finish_eval=$lt_finish_eval
19605
 
19606
# Whether we should hardcode library paths into libraries.
19607
hardcode_into_libs=$hardcode_into_libs
19608
 
19609
# Compile-time system search path for libraries.
19610
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19611
 
19612
# Run-time system search path for libraries.
19613
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19614
 
19615
# Whether dlopen is supported.
19616
dlopen_support=$enable_dlopen
19617
 
19618
# Whether dlopen of programs is supported.
19619
dlopen_self=$enable_dlopen_self
19620
 
19621
# Whether dlopen of statically linked programs is supported.
19622
dlopen_self_static=$enable_dlopen_self_static
19623
 
19624
# Commands to strip libraries.
19625
old_striplib=$lt_old_striplib
19626
striplib=$lt_striplib
19627
 
19628
 
19629
# The linker used to build libraries.
19630
LD=$lt_LD
19631
 
19632
# How to create reloadable object files.
19633
reload_flag=$lt_reload_flag
19634
reload_cmds=$lt_reload_cmds
19635
 
19636
# Commands used to build an old-style archive.
19637
old_archive_cmds=$lt_old_archive_cmds
19638
 
19639
# A language specific compiler.
19640
CC=$lt_compiler
19641
 
19642
# Is the compiler the GNU compiler?
19643
with_gcc=$GCC
19644
 
19645
# Compiler flag to turn off builtin functions.
19646
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19647
 
19648
# How to pass a linker flag through the compiler.
19649
wl=$lt_lt_prog_compiler_wl
19650
 
19651
# Additional compiler flags for building library objects.
19652
pic_flag=$lt_lt_prog_compiler_pic
19653
 
19654
# Compiler flag to prevent dynamic linking.
19655
link_static_flag=$lt_lt_prog_compiler_static
19656
 
19657
# Does compiler simultaneously support -c and -o options?
19658
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19659
 
19660
# Whether or not to add -lc for building shared libraries.
19661
build_libtool_need_lc=$archive_cmds_need_lc
19662
 
19663
# Whether or not to disallow shared libs when runtime libs are static.
19664
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19665
 
19666
# Compiler flag to allow reflexive dlopens.
19667
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19668
 
19669
# Compiler flag to generate shared objects directly from archives.
19670
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19671
 
19672
# Whether the compiler copes with passing no objects directly.
19673
compiler_needs_object=$lt_compiler_needs_object
19674
 
19675
# Create an old-style archive from a shared archive.
19676
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19677
 
19678
# Create a temporary old-style archive to link instead of a shared archive.
19679
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19680
 
19681
# Commands used to build a shared archive.
19682
archive_cmds=$lt_archive_cmds
19683
archive_expsym_cmds=$lt_archive_expsym_cmds
19684
 
19685
# Commands used to build a loadable module if different from building
19686
# a shared archive.
19687
module_cmds=$lt_module_cmds
19688
module_expsym_cmds=$lt_module_expsym_cmds
19689
 
19690
# Whether we are building with GNU ld or not.
19691
with_gnu_ld=$lt_with_gnu_ld
19692
 
19693
# Flag that allows shared libraries with undefined symbols to be built.
19694
allow_undefined_flag=$lt_allow_undefined_flag
19695
 
19696
# Flag that enforces no undefined symbols.
19697
no_undefined_flag=$lt_no_undefined_flag
19698
 
19699
# Flag to hardcode \$libdir into a binary during linking.
19700
# This must work even if \$libdir does not exist
19701
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19702
 
19703
# If ld is used when linking, flag to hardcode \$libdir into a binary
19704
# during linking.  This must work even if \$libdir does not exist.
19705
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19706
 
19707
# Whether we need a single "-rpath" flag with a separated argument.
19708
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19709
 
19710
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19711
# DIR into the resulting binary.
19712
hardcode_direct=$hardcode_direct
19713
 
19714
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19715
# DIR into the resulting binary and the resulting library dependency is
19716
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19717
# library is relocated.
19718
hardcode_direct_absolute=$hardcode_direct_absolute
19719
 
19720
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19721
# into the resulting binary.
19722
hardcode_minus_L=$hardcode_minus_L
19723
 
19724
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19725
# into the resulting binary.
19726
hardcode_shlibpath_var=$hardcode_shlibpath_var
19727
 
19728
# Set to "yes" if building a shared library automatically hardcodes DIR
19729
# into the library and all subsequent libraries and executables linked
19730
# against it.
19731
hardcode_automatic=$hardcode_automatic
19732
 
19733
# Set to yes if linker adds runtime paths of dependent libraries
19734
# to runtime path list.
19735
inherit_rpath=$inherit_rpath
19736
 
19737
# Whether libtool must link a program against all its dependency libraries.
19738
link_all_deplibs=$link_all_deplibs
19739
 
19740
# Fix the shell variable \$srcfile for the compiler.
19741
fix_srcfile_path=$lt_fix_srcfile_path
19742
 
19743
# Set to "yes" if exported symbols are required.
19744
always_export_symbols=$always_export_symbols
19745
 
19746
# The commands to list exported symbols.
19747
export_symbols_cmds=$lt_export_symbols_cmds
19748
 
19749
# Symbols that should not be listed in the preloaded symbols.
19750
exclude_expsyms=$lt_exclude_expsyms
19751
 
19752
# Symbols that must always be exported.
19753
include_expsyms=$lt_include_expsyms
19754
 
19755
# Commands necessary for linking programs (against libraries) with templates.
19756
prelink_cmds=$lt_prelink_cmds
19757
 
19758
# Specify filename containing input files.
19759
file_list_spec=$lt_file_list_spec
19760
 
19761
# How to hardcode a shared library path into an executable.
19762
hardcode_action=$hardcode_action
19763
 
19764
# The directories searched by this compiler when creating a shared library.
19765
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19766
 
19767
# Dependencies to place before and after the objects being linked to
19768
# create a shared library.
19769
predep_objects=$lt_predep_objects
19770
postdep_objects=$lt_postdep_objects
19771
predeps=$lt_predeps
19772
postdeps=$lt_postdeps
19773
 
19774
# The library search path used internally by the compiler when linking
19775
# a shared library.
19776
compiler_lib_search_path=$lt_compiler_lib_search_path
19777
 
19778
# ### END LIBTOOL CONFIG
19779
 
19780
_LT_EOF
19781
 
19782
  case $host_os in
19783
  aix3*)
19784
    cat <<\_LT_EOF >> "$cfgfile"
19785
# AIX sometimes has problems with the GCC collect2 program.  For some
19786
# reason, if we set the COLLECT_NAMES environment variable, the problems
19787
# vanish in a puff of smoke.
19788
if test "X${COLLECT_NAMES+set}" != Xset; then
19789
  COLLECT_NAMES=
19790
  export COLLECT_NAMES
19791
fi
19792
_LT_EOF
19793
    ;;
19794
  esac
19795
 
19796
 
19797
ltmain="$ac_aux_dir/ltmain.sh"
19798
 
19799
 
19800
  # We use sed instead of cat because bash on DJGPP gets confused if
19801
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19802
  # text mode, it properly converts lines to CR/LF.  This bash problem
19803
  # is reportedly fixed, but why not run on old versions too?
19804
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19805
    || (rm -f "$cfgfile"; exit 1)
19806
 
19807
  case $xsi_shell in
19808
  yes)
19809
    cat << \_LT_EOF >> "$cfgfile"
19810
 
19811
# func_dirname file append nondir_replacement
19812
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19813
# otherwise set result to NONDIR_REPLACEMENT.
19814
func_dirname ()
19815
{
19816
  case ${1} in
19817
    */*) func_dirname_result="${1%/*}${2}" ;;
19818
    *  ) func_dirname_result="${3}" ;;
19819
  esac
19820
}
19821
 
19822
# func_basename file
19823
func_basename ()
19824
{
19825
  func_basename_result="${1##*/}"
19826
}
19827
 
19828
# func_dirname_and_basename file append nondir_replacement
19829
# perform func_basename and func_dirname in a single function
19830
# call:
19831
#   dirname:  Compute the dirname of FILE.  If nonempty,
19832
#             add APPEND to the result, otherwise set result
19833
#             to NONDIR_REPLACEMENT.
19834
#             value returned in "$func_dirname_result"
19835
#   basename: Compute filename of FILE.
19836
#             value retuned in "$func_basename_result"
19837
# Implementation must be kept synchronized with func_dirname
19838
# and func_basename. For efficiency, we do not delegate to
19839
# those functions but instead duplicate the functionality here.
19840
func_dirname_and_basename ()
19841
{
19842
  case ${1} in
19843
    */*) func_dirname_result="${1%/*}${2}" ;;
19844
    *  ) func_dirname_result="${3}" ;;
19845
  esac
19846
  func_basename_result="${1##*/}"
19847
}
19848
 
19849
# func_stripname prefix suffix name
19850
# strip PREFIX and SUFFIX off of NAME.
19851
# PREFIX and SUFFIX must not contain globbing or regex special
19852
# characters, hashes, percent signs, but SUFFIX may contain a leading
19853
# dot (in which case that matches only a dot).
19854
func_stripname ()
19855
{
19856
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19857
  # positional parameters, so assign one to ordinary parameter first.
19858
  func_stripname_result=${3}
19859
  func_stripname_result=${func_stripname_result#"${1}"}
19860
  func_stripname_result=${func_stripname_result%"${2}"}
19861
}
19862
 
19863
# func_opt_split
19864
func_opt_split ()
19865
{
19866
  func_opt_split_opt=${1%%=*}
19867
  func_opt_split_arg=${1#*=}
19868
}
19869
 
19870
# func_lo2o object
19871
func_lo2o ()
19872
{
19873
  case ${1} in
19874
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19875
    *)    func_lo2o_result=${1} ;;
19876
  esac
19877
}
19878
 
19879
# func_xform libobj-or-source
19880
func_xform ()
19881
{
19882
  func_xform_result=${1%.*}.lo
19883
}
19884
 
19885
# func_arith arithmetic-term...
19886
func_arith ()
19887
{
19888
  func_arith_result=$(( $* ))
19889
}
19890
 
19891
# func_len string
19892
# STRING may not start with a hyphen.
19893
func_len ()
19894
{
19895
  func_len_result=${#1}
19896
}
19897
 
19898
_LT_EOF
19899
    ;;
19900
  *) # Bourne compatible functions.
19901
    cat << \_LT_EOF >> "$cfgfile"
19902
 
19903
# func_dirname file append nondir_replacement
19904
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19905
# otherwise set result to NONDIR_REPLACEMENT.
19906
func_dirname ()
19907
{
19908
  # Extract subdirectory from the argument.
19909
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19910
  if test "X$func_dirname_result" = "X${1}"; then
19911
    func_dirname_result="${3}"
19912
  else
19913
    func_dirname_result="$func_dirname_result${2}"
19914
  fi
19915
}
19916
 
19917
# func_basename file
19918
func_basename ()
19919
{
19920
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19921
}
19922
 
19923
 
19924
# func_stripname prefix suffix name
19925
# strip PREFIX and SUFFIX off of NAME.
19926
# PREFIX and SUFFIX must not contain globbing or regex special
19927
# characters, hashes, percent signs, but SUFFIX may contain a leading
19928
# dot (in which case that matches only a dot).
19929
# func_strip_suffix prefix name
19930
func_stripname ()
19931
{
19932
  case ${2} in
19933
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19934
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19935
  esac
19936
}
19937
 
19938
# sed scripts:
19939
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19940
my_sed_long_arg='1s/^-[^=]*=//'
19941
 
19942
# func_opt_split
19943
func_opt_split ()
19944
{
19945
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19946
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19947
}
19948
 
19949
# func_lo2o object
19950
func_lo2o ()
19951
{
19952
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19953
}
19954
 
19955
# func_xform libobj-or-source
19956
func_xform ()
19957
{
19958
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19959
}
19960
 
19961
# func_arith arithmetic-term...
19962
func_arith ()
19963
{
19964
  func_arith_result=`expr "$@"`
19965
}
19966
 
19967
# func_len string
19968
# STRING may not start with a hyphen.
19969
func_len ()
19970
{
19971
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19972
}
19973
 
19974
_LT_EOF
19975
esac
19976
 
19977
case $lt_shell_append in
19978
  yes)
19979
    cat << \_LT_EOF >> "$cfgfile"
19980
 
19981
# func_append var value
19982
# Append VALUE to the end of shell variable VAR.
19983
func_append ()
19984
{
19985
  eval "$1+=\$2"
19986
}
19987
_LT_EOF
19988
    ;;
19989
  *)
19990
    cat << \_LT_EOF >> "$cfgfile"
19991
 
19992
# func_append var value
19993
# Append VALUE to the end of shell variable VAR.
19994
func_append ()
19995
{
19996
  eval "$1=\$$1\$2"
19997
}
19998
 
19999
_LT_EOF
20000
    ;;
20001
  esac
20002
 
20003
 
20004
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20005
    || (rm -f "$cfgfile"; exit 1)
20006
 
20007
  mv -f "$cfgfile" "$ofile" ||
20008
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20009
  chmod +x "$ofile"
20010
 
20011
 
20012
    cat <<_LT_EOF >> "$ofile"
20013
 
20014
# ### BEGIN LIBTOOL TAG CONFIG: CXX
20015
 
20016
# The linker used to build libraries.
20017
LD=$lt_LD_CXX
20018
 
20019
# How to create reloadable object files.
20020
reload_flag=$lt_reload_flag_CXX
20021
reload_cmds=$lt_reload_cmds_CXX
20022
 
20023
# Commands used to build an old-style archive.
20024
old_archive_cmds=$lt_old_archive_cmds_CXX
20025
 
20026
# A language specific compiler.
20027
CC=$lt_compiler_CXX
20028
 
20029
# Is the compiler the GNU compiler?
20030
with_gcc=$GCC_CXX
20031
 
20032
# Compiler flag to turn off builtin functions.
20033
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20034
 
20035
# How to pass a linker flag through the compiler.
20036
wl=$lt_lt_prog_compiler_wl_CXX
20037
 
20038
# Additional compiler flags for building library objects.
20039
pic_flag=$lt_lt_prog_compiler_pic_CXX
20040
 
20041
# Compiler flag to prevent dynamic linking.
20042
link_static_flag=$lt_lt_prog_compiler_static_CXX
20043
 
20044
# Does compiler simultaneously support -c and -o options?
20045
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20046
 
20047
# Whether or not to add -lc for building shared libraries.
20048
build_libtool_need_lc=$archive_cmds_need_lc_CXX
20049
 
20050
# Whether or not to disallow shared libs when runtime libs are static.
20051
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20052
 
20053
# Compiler flag to allow reflexive dlopens.
20054
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20055
 
20056
# Compiler flag to generate shared objects directly from archives.
20057
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20058
 
20059
# Whether the compiler copes with passing no objects directly.
20060
compiler_needs_object=$lt_compiler_needs_object_CXX
20061
 
20062
# Create an old-style archive from a shared archive.
20063
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20064
 
20065
# Create a temporary old-style archive to link instead of a shared archive.
20066
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20067
 
20068
# Commands used to build a shared archive.
20069
archive_cmds=$lt_archive_cmds_CXX
20070
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20071
 
20072
# Commands used to build a loadable module if different from building
20073
# a shared archive.
20074
module_cmds=$lt_module_cmds_CXX
20075
module_expsym_cmds=$lt_module_expsym_cmds_CXX
20076
 
20077
# Whether we are building with GNU ld or not.
20078
with_gnu_ld=$lt_with_gnu_ld_CXX
20079
 
20080
# Flag that allows shared libraries with undefined symbols to be built.
20081
allow_undefined_flag=$lt_allow_undefined_flag_CXX
20082
 
20083
# Flag that enforces no undefined symbols.
20084
no_undefined_flag=$lt_no_undefined_flag_CXX
20085
 
20086
# Flag to hardcode \$libdir into a binary during linking.
20087
# This must work even if \$libdir does not exist
20088
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20089
 
20090
# If ld is used when linking, flag to hardcode \$libdir into a binary
20091
# during linking.  This must work even if \$libdir does not exist.
20092
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20093
 
20094
# Whether we need a single "-rpath" flag with a separated argument.
20095
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20096
 
20097
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20098
# DIR into the resulting binary.
20099
hardcode_direct=$hardcode_direct_CXX
20100
 
20101
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20102
# DIR into the resulting binary and the resulting library dependency is
20103
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20104
# library is relocated.
20105
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20106
 
20107
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20108
# into the resulting binary.
20109
hardcode_minus_L=$hardcode_minus_L_CXX
20110
 
20111
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20112
# into the resulting binary.
20113
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20114
 
20115
# Set to "yes" if building a shared library automatically hardcodes DIR
20116
# into the library and all subsequent libraries and executables linked
20117
# against it.
20118
hardcode_automatic=$hardcode_automatic_CXX
20119
 
20120
# Set to yes if linker adds runtime paths of dependent libraries
20121
# to runtime path list.
20122
inherit_rpath=$inherit_rpath_CXX
20123
 
20124
# Whether libtool must link a program against all its dependency libraries.
20125
link_all_deplibs=$link_all_deplibs_CXX
20126
 
20127
# Fix the shell variable \$srcfile for the compiler.
20128
fix_srcfile_path=$lt_fix_srcfile_path_CXX
20129
 
20130
# Set to "yes" if exported symbols are required.
20131
always_export_symbols=$always_export_symbols_CXX
20132
 
20133
# The commands to list exported symbols.
20134
export_symbols_cmds=$lt_export_symbols_cmds_CXX
20135
 
20136
# Symbols that should not be listed in the preloaded symbols.
20137
exclude_expsyms=$lt_exclude_expsyms_CXX
20138
 
20139
# Symbols that must always be exported.
20140
include_expsyms=$lt_include_expsyms_CXX
20141
 
20142
# Commands necessary for linking programs (against libraries) with templates.
20143
prelink_cmds=$lt_prelink_cmds_CXX
20144
 
20145
# Specify filename containing input files.
20146
file_list_spec=$lt_file_list_spec_CXX
20147
 
20148
# How to hardcode a shared library path into an executable.
20149
hardcode_action=$hardcode_action_CXX
20150
 
20151
# The directories searched by this compiler when creating a shared library.
20152
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20153
 
20154
# Dependencies to place before and after the objects being linked to
20155
# create a shared library.
20156
predep_objects=$lt_predep_objects_CXX
20157
postdep_objects=$lt_postdep_objects_CXX
20158
predeps=$lt_predeps_CXX
20159
postdeps=$lt_postdeps_CXX
20160
 
20161
# The library search path used internally by the compiler when linking
20162
# a shared library.
20163
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20164
 
20165
# ### END LIBTOOL TAG CONFIG: CXX
20166
_LT_EOF
20167
 
20168
 ;;
20169
    "gstdint.h":C)
20170
if test "$GCC" = yes; then
20171
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20172
else
20173
  echo "/* generated for $CC */" > tmp-stdint.h
20174
fi
20175
 
20176
sed 's/^ *//' >> tmp-stdint.h <
20177
 
20178
  #ifndef GCC_GENERATED_STDINT_H
20179
  #define GCC_GENERATED_STDINT_H 1
20180
 
20181
  #include 
20182
EOF
20183
 
20184
if test "$acx_cv_header_stdint" != stdint.h; then
20185
  echo "#include " >> tmp-stdint.h
20186
fi
20187
if test "$acx_cv_header_stdint" != stddef.h; then
20188
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20189
fi
20190
 
20191
sed 's/^ *//' >> tmp-stdint.h <
20192
  /* glibc uses these symbols as guards to prevent redefinitions.  */
20193
  #ifdef __int8_t_defined
20194
  #define _INT8_T
20195
  #define _INT16_T
20196
  #define _INT32_T
20197
  #endif
20198
  #ifdef __uint32_t_defined
20199
  #define _UINT32_T
20200
  #endif
20201
 
20202
EOF
20203
 
20204
# ----------------- done header, emit basic int types -------------
20205
if test "$acx_cv_header_stdint" = stddef.h; then
20206
  sed 's/^ *//' >> tmp-stdint.h <
20207
 
20208
    #ifndef _UINT8_T
20209
    #define _UINT8_T
20210
    #ifndef __uint8_t_defined
20211
    #define __uint8_t_defined
20212
    #ifndef uint8_t
20213
    typedef unsigned $acx_cv_type_int8_t uint8_t;
20214
    #endif
20215
    #endif
20216
    #endif
20217
 
20218
    #ifndef _UINT16_T
20219
    #define _UINT16_T
20220
    #ifndef __uint16_t_defined
20221
    #define __uint16_t_defined
20222
    #ifndef uint16_t
20223
    typedef unsigned $acx_cv_type_int16_t uint16_t;
20224
    #endif
20225
    #endif
20226
    #endif
20227
 
20228
    #ifndef _UINT32_T
20229
    #define _UINT32_T
20230
    #ifndef __uint32_t_defined
20231
    #define __uint32_t_defined
20232
    #ifndef uint32_t
20233
    typedef unsigned $acx_cv_type_int32_t uint32_t;
20234
    #endif
20235
    #endif
20236
    #endif
20237
 
20238
    #ifndef _INT8_T
20239
    #define _INT8_T
20240
    #ifndef __int8_t_defined
20241
    #define __int8_t_defined
20242
    #ifndef int8_t
20243
    typedef $acx_cv_type_int8_t int8_t;
20244
    #endif
20245
    #endif
20246
    #endif
20247
 
20248
    #ifndef _INT16_T
20249
    #define _INT16_T
20250
    #ifndef __int16_t_defined
20251
    #define __int16_t_defined
20252
    #ifndef int16_t
20253
    typedef $acx_cv_type_int16_t int16_t;
20254
    #endif
20255
    #endif
20256
    #endif
20257
 
20258
    #ifndef _INT32_T
20259
    #define _INT32_T
20260
    #ifndef __int32_t_defined
20261
    #define __int32_t_defined
20262
    #ifndef int32_t
20263
    typedef $acx_cv_type_int32_t int32_t;
20264
    #endif
20265
    #endif
20266
    #endif
20267
EOF
20268
elif test "$ac_cv_type_u_int32_t" = yes; then
20269
  sed 's/^ *//' >> tmp-stdint.h <
20270
 
20271
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20272
    #ifndef _INT8_T
20273
    #define _INT8_T
20274
    #endif
20275
    #ifndef _INT16_T
20276
    #define _INT16_T
20277
    #endif
20278
    #ifndef _INT32_T
20279
    #define _INT32_T
20280
    #endif
20281
 
20282
    #ifndef _UINT8_T
20283
    #define _UINT8_T
20284
    #ifndef __uint8_t_defined
20285
    #define __uint8_t_defined
20286
    #ifndef uint8_t
20287
    typedef u_int8_t uint8_t;
20288
    #endif
20289
    #endif
20290
    #endif
20291
 
20292
    #ifndef _UINT16_T
20293
    #define _UINT16_T
20294
    #ifndef __uint16_t_defined
20295
    #define __uint16_t_defined
20296
    #ifndef uint16_t
20297
    typedef u_int16_t uint16_t;
20298
    #endif
20299
    #endif
20300
    #endif
20301
 
20302
    #ifndef _UINT32_T
20303
    #define _UINT32_T
20304
    #ifndef __uint32_t_defined
20305
    #define __uint32_t_defined
20306
    #ifndef uint32_t
20307
    typedef u_int32_t uint32_t;
20308
    #endif
20309
    #endif
20310
    #endif
20311
EOF
20312
else
20313
  sed 's/^ *//' >> tmp-stdint.h <
20314
 
20315
    /* Some systems have guard macros to prevent redefinitions, define them.  */
20316
    #ifndef _INT8_T
20317
    #define _INT8_T
20318
    #endif
20319
    #ifndef _INT16_T
20320
    #define _INT16_T
20321
    #endif
20322
    #ifndef _INT32_T
20323
    #define _INT32_T
20324
    #endif
20325
    #ifndef _UINT8_T
20326
    #define _UINT8_T
20327
    #endif
20328
    #ifndef _UINT16_T
20329
    #define _UINT16_T
20330
    #endif
20331
    #ifndef _UINT32_T
20332
    #define _UINT32_T
20333
    #endif
20334
EOF
20335
fi
20336
 
20337
# ------------- done basic int types, emit int64_t types ------------
20338
if test "$ac_cv_type_uint64_t" = yes; then
20339
  sed 's/^ *//' >> tmp-stdint.h <
20340
 
20341
    /* system headers have good uint64_t and int64_t */
20342
    #ifndef _INT64_T
20343
    #define _INT64_T
20344
    #endif
20345
    #ifndef _UINT64_T
20346
    #define _UINT64_T
20347
    #endif
20348
EOF
20349
elif test "$ac_cv_type_u_int64_t" = yes; then
20350
  sed 's/^ *//' >> tmp-stdint.h <
20351
 
20352
    /* system headers have an u_int64_t (and int64_t) */
20353
    #ifndef _INT64_T
20354
    #define _INT64_T
20355
    #endif
20356
    #ifndef _UINT64_T
20357
    #define _UINT64_T
20358
    #ifndef __uint64_t_defined
20359
    #define __uint64_t_defined
20360
    #ifndef uint64_t
20361
    typedef u_int64_t uint64_t;
20362
    #endif
20363
    #endif
20364
    #endif
20365
EOF
20366
elif test -n "$acx_cv_type_int64_t"; then
20367
  sed 's/^ *//' >> tmp-stdint.h <
20368
 
20369
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20370
    #ifndef _INT64_T
20371
    #define _INT64_T
20372
    #ifndef int64_t
20373
    typedef $acx_cv_type_int64_t int64_t;
20374
    #endif
20375
    #endif
20376
    #ifndef _UINT64_T
20377
    #define _UINT64_T
20378
    #ifndef __uint64_t_defined
20379
    #define __uint64_t_defined
20380
    #ifndef uint64_t
20381
    typedef unsigned $acx_cv_type_int64_t uint64_t;
20382
    #endif
20383
    #endif
20384
    #endif
20385
EOF
20386
else
20387
  sed 's/^ *//' >> tmp-stdint.h <
20388
 
20389
    /* some common heuristics for int64_t, using compiler-specific tests */
20390
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20391
    #ifndef _INT64_T
20392
    #define _INT64_T
20393
    #ifndef __int64_t_defined
20394
    #ifndef int64_t
20395
    typedef long long int64_t;
20396
    #endif
20397
    #endif
20398
    #endif
20399
    #ifndef _UINT64_T
20400
    #define _UINT64_T
20401
    #ifndef uint64_t
20402
    typedef unsigned long long uint64_t;
20403
    #endif
20404
    #endif
20405
 
20406
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20407
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20408
       does not implement __extension__.  But that compiler doesn't define
20409
       __GNUC_MINOR__.  */
20410
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20411
    # define __extension__
20412
    # endif
20413
 
20414
    # ifndef _INT64_T
20415
    # define _INT64_T
20416
    # ifndef int64_t
20417
    __extension__ typedef long long int64_t;
20418
    # endif
20419
    # endif
20420
    # ifndef _UINT64_T
20421
    # define _UINT64_T
20422
    # ifndef uint64_t
20423
    __extension__ typedef unsigned long long uint64_t;
20424
    # endif
20425
    # endif
20426
 
20427
    #elif !defined __STRICT_ANSI__
20428
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20429
 
20430
    #  ifndef _INT64_T
20431
    #  define _INT64_T
20432
    #  ifndef int64_t
20433
    typedef __int64 int64_t;
20434
    #  endif
20435
    #  endif
20436
    #  ifndef _UINT64_T
20437
    #  define _UINT64_T
20438
    #  ifndef uint64_t
20439
    typedef unsigned __int64 uint64_t;
20440
    #  endif
20441
    #  endif
20442
    # endif /* compiler */
20443
 
20444
    #endif /* ANSI version */
20445
EOF
20446
fi
20447
 
20448
# ------------- done int64_t types, emit intptr types ------------
20449
if test "$ac_cv_type_uintptr_t" != yes; then
20450
  sed 's/^ *//' >> tmp-stdint.h <
20451
 
20452
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20453
    #ifndef __uintptr_t_defined
20454
    #ifndef uintptr_t
20455
    typedef u$acx_cv_type_intptr_t uintptr_t;
20456
    #endif
20457
    #endif
20458
    #ifndef __intptr_t_defined
20459
    #ifndef intptr_t
20460
    typedef $acx_cv_type_intptr_t  intptr_t;
20461
    #endif
20462
    #endif
20463
EOF
20464
fi
20465
 
20466
# ------------- done intptr types, emit int_least types ------------
20467
if test "$ac_cv_type_int_least32_t" != yes; then
20468
  sed 's/^ *//' >> tmp-stdint.h <
20469
 
20470
    /* Define int_least types */
20471
    typedef int8_t     int_least8_t;
20472
    typedef int16_t    int_least16_t;
20473
    typedef int32_t    int_least32_t;
20474
    #ifdef _INT64_T
20475
    typedef int64_t    int_least64_t;
20476
    #endif
20477
 
20478
    typedef uint8_t    uint_least8_t;
20479
    typedef uint16_t   uint_least16_t;
20480
    typedef uint32_t   uint_least32_t;
20481
    #ifdef _UINT64_T
20482
    typedef uint64_t   uint_least64_t;
20483
    #endif
20484
EOF
20485
fi
20486
 
20487
# ------------- done intptr types, emit int_fast types ------------
20488
if test "$ac_cv_type_int_fast32_t" != yes; then
20489
      sed 's/^ *//' >> tmp-stdint.h <
20490
 
20491
    /* Define int_fast types.  short is often slow */
20492
    typedef int8_t       int_fast8_t;
20493
    typedef int          int_fast16_t;
20494
    typedef int32_t      int_fast32_t;
20495
    #ifdef _INT64_T
20496
    typedef int64_t      int_fast64_t;
20497
    #endif
20498
 
20499
    typedef uint8_t      uint_fast8_t;
20500
    typedef unsigned int uint_fast16_t;
20501
    typedef uint32_t     uint_fast32_t;
20502
    #ifdef _UINT64_T
20503
    typedef uint64_t     uint_fast64_t;
20504
    #endif
20505
EOF
20506
fi
20507
 
20508
if test "$ac_cv_type_uintmax_t" != yes; then
20509
  sed 's/^ *//' >> tmp-stdint.h <
20510
 
20511
    /* Define intmax based on what we found */
20512
    #ifndef intmax_t
20513
    #ifdef _INT64_T
20514
    typedef int64_t       intmax_t;
20515
    #else
20516
    typedef long          intmax_t;
20517
    #endif
20518
    #endif
20519
    #ifndef uintmax_t
20520
    #ifdef _UINT64_T
20521
    typedef uint64_t      uintmax_t;
20522
    #else
20523
    typedef unsigned long uintmax_t;
20524
    #endif
20525
    #endif
20526
EOF
20527
fi
20528
 
20529
sed 's/^ *//' >> tmp-stdint.h <
20530
 
20531
  #endif /* GCC_GENERATED_STDINT_H */
20532
EOF
20533
 
20534
if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20535
  rm -f tmp-stdint.h
20536
else
20537
  mv -f tmp-stdint.h gstdint.h
20538
fi
20539
 
20540
 ;;
20541
 
20542
  esac
20543
done # for ac_tag
20544
 
20545
 
20546
as_fn_exit 0
20547
_ACEOF
20548
ac_clean_files=$ac_clean_files_save
20549
 
20550
test $ac_write_fail = 0 ||
20551
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20552
 
20553
 
20554
# configure is writing to config.log, and then calls config.status.
20555
# config.status does its own redirection, appending to config.log.
20556
# Unfortunately, on DOS this fails, as config.log is still kept open
20557
# by configure, so config.status won't be able to write to it; its
20558
# output is simply discarded.  So we exec the FD to /dev/null,
20559
# effectively closing config.log, so it can be properly (re)opened and
20560
# appended to by config.status.  When coming back to configure, we
20561
# need to make the FD available again.
20562
if test "$no_create" != yes; then
20563
  ac_cs_success=:
20564
  ac_config_status_args=
20565
  test "$silent" = yes &&
20566
    ac_config_status_args="$ac_config_status_args --quiet"
20567
  exec 5>/dev/null
20568
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20569
  exec 5>>config.log
20570
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20571
  # would make configure fail if this is the last instruction.
20572
  $ac_cs_success || as_fn_exit $?
20573
fi
20574
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20575
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20576
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20577
fi
20578
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.