~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to speex/configure

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
4
 
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
6
 
# This configure script is free software; the Free Software Foundation
7
 
# gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
11
 
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
34
 
PS1='$ '
35
 
PS2='> '
36
 
PS4='+ '
37
 
 
38
 
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
53
 
  as_expr=expr
54
 
else
55
 
  as_expr=false
56
 
fi
57
 
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
 
  as_basename=basename
60
 
else
61
 
  as_basename=false
62
 
fi
63
 
 
64
 
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
67
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
 
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
165
 
    sed '
166
 
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
 
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
173
 
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
177
 
 
178
 
  # Don't try to exec as it changes $[0], causing all sort of problems
179
 
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
182
 
  # Exit status is that of the last command.
183
 
  exit
184
 
}
185
 
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
 
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
196
 
else
197
 
  as_expr=false
198
 
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
207
 
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
 
else
214
 
  as_ln_s='cp -p'
215
 
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
217
 
 
218
 
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
220
 
else
221
 
  test -d ./-p && rmdir ./-p
222
 
  as_mkdir_p=false
223
 
fi
224
 
 
225
 
as_executable_p="test -f"
226
 
 
227
 
# Sed expression to map a string onto a valid CPP name.
228
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
 
230
 
# Sed expression to map a string onto a valid variable name.
231
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
 
233
 
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
 
 
244
 
 
245
 
# Check that we are running under the correct shell.
246
 
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
 
248
 
case X$ECHO in
249
 
X*--fallback-echo)
250
 
  # Remove one level of quotation (which was required for Make).
251
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
 
  ;;
253
 
esac
254
 
 
255
 
echo=${ECHO-echo}
256
 
if test "X$1" = X--no-reexec; then
257
 
  # Discard the --no-reexec flag, and continue.
258
 
  shift
259
 
elif test "X$1" = X--fallback-echo; then
260
 
  # Avoid inline document here, it may be left over
261
 
  :
262
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
 
  # Yippee, $echo works!
264
 
  :
265
 
else
266
 
  # Restart under the correct shell.
267
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
 
fi
269
 
 
270
 
if test "X$1" = X--fallback-echo; then
271
 
  # used as fallback echo
272
 
  shift
273
 
  cat <<EOF
274
 
$*
275
 
EOF
276
 
  exit 0
277
 
fi
278
 
 
279
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
 
# if CDPATH is set.
281
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
 
 
283
 
if test -z "$ECHO"; then
284
 
if test "X${echo_test_string+set}" != Xset; then
285
 
# find a string as large as possible, as long as the shell can cope with it
286
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
290
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
 
    then
292
 
      break
293
 
    fi
294
 
  done
295
 
fi
296
 
 
297
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
300
 
  :
301
 
else
302
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
303
 
  # backslashes.  This makes it impossible to quote backslashes using
304
 
  #   echo "$something" | sed 's/\\/\\\\/g'
305
 
  #
306
 
  # So, first we look for a working echo in the user's PATH.
307
 
 
308
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
 
  for dir in $PATH /usr/ucb; do
310
 
    IFS="$lt_save_ifs"
311
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
315
 
      echo="$dir/echo"
316
 
      break
317
 
    fi
318
 
  done
319
 
  IFS="$lt_save_ifs"
320
 
 
321
 
  if test "X$echo" = Xecho; then
322
 
    # We didn't find a better echo, so look for alternatives.
323
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
326
 
      # This shell has a builtin print -r that does the trick.
327
 
      echo='print -r'
328
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
330
 
      # If we have ksh, try running configure again with it.
331
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
 
      export ORIGINAL_CONFIG_SHELL
333
 
      CONFIG_SHELL=/bin/ksh
334
 
      export CONFIG_SHELL
335
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336
 
    else
337
 
      # Try using printf.
338
 
      echo='printf %s\n'
339
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
342
 
        # Cool, printf works
343
 
        :
344
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
 
           test "X$echo_testing_string" = 'X\t' &&
346
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
348
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349
 
        export CONFIG_SHELL
350
 
        SHELL="$CONFIG_SHELL"
351
 
        export SHELL
352
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
353
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
 
           test "X$echo_testing_string" = 'X\t' &&
355
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
357
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
358
 
      else
359
 
        # maybe with a smaller string...
360
 
        prev=:
361
 
 
362
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364
 
          then
365
 
            break
366
 
          fi
367
 
          prev="$cmd"
368
 
        done
369
 
 
370
 
        if test "$prev" != 'sed 50q "$0"'; then
371
 
          echo_test_string=`eval $prev`
372
 
          export echo_test_string
373
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374
 
        else
375
 
          # Oops.  We lost completely, so just stick with echo.
376
 
          echo=echo
377
 
        fi
378
 
      fi
379
 
    fi
380
 
  fi
381
 
fi
382
 
fi
383
 
 
384
 
# Copy echo and quote the copy suitably for passing to libtool from
385
 
# the Makefile, instead of quoting the original, which is used later.
386
 
ECHO=$echo
387
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389
 
fi
390
 
 
391
 
 
392
 
 
393
 
 
394
 
tagnames=${tagnames+${tagnames},}CXX
395
 
 
396
 
tagnames=${tagnames+${tagnames},}F77
397
 
 
398
 
# Name of the host.
399
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
 
# so uname gets run too.
401
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
 
 
403
 
exec 6>&1
404
 
 
405
 
#
406
 
# Initializations.
407
 
#
408
 
ac_default_prefix=/usr/local
409
 
ac_config_libobj_dir=.
410
 
cross_compiling=no
411
 
subdirs=
412
 
MFLAGS=
413
 
MAKEFLAGS=
414
 
SHELL=${CONFIG_SHELL-/bin/sh}
415
 
 
416
 
# Maximum number of lines to put in a shell here document.
417
 
# This variable seems obsolete.  It should probably be removed, and
418
 
# only ac_max_sed_lines should be used.
419
 
: ${ac_max_here_lines=38}
420
 
 
421
 
# Identity of this package.
422
 
PACKAGE_NAME=
423
 
PACKAGE_TARNAME=
424
 
PACKAGE_VERSION=
425
 
PACKAGE_STRING=
426
 
PACKAGE_BUGREPORT=
427
 
 
428
 
ac_unique_file="libspeex/speex.h"
429
 
# Factoring default headers for most tests.
430
 
ac_includes_default="\
431
 
#include <stdio.h>
432
 
#if HAVE_SYS_TYPES_H
433
 
# include <sys/types.h>
434
 
#endif
435
 
#if HAVE_SYS_STAT_H
436
 
# include <sys/stat.h>
437
 
#endif
438
 
#if STDC_HEADERS
439
 
# include <stdlib.h>
440
 
# include <stddef.h>
441
 
#else
442
 
# if HAVE_STDLIB_H
443
 
#  include <stdlib.h>
444
 
# endif
445
 
#endif
446
 
#if HAVE_STRING_H
447
 
# if !STDC_HEADERS && HAVE_MEMORY_H
448
 
#  include <memory.h>
449
 
# endif
450
 
# include <string.h>
451
 
#endif
452
 
#if HAVE_STRINGS_H
453
 
# include <strings.h>
454
 
#endif
455
 
#if HAVE_INTTYPES_H
456
 
# include <inttypes.h>
457
 
#else
458
 
# if HAVE_STDINT_H
459
 
#  include <stdint.h>
460
 
# endif
461
 
#endif
462
 
#if HAVE_UNISTD_H
463
 
# include <unistd.h>
464
 
#endif"
465
 
 
466
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPEEX_LT_CURRENT SPEEX_LT_REVISION SPEEX_LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL OGG_LIBS OGG_INCLUDES OGG_LDFLAGS src LIBOBJS LTLIBOBJS'
467
 
ac_subst_files=''
468
 
 
469
 
# Initialize some variables set by options.
470
 
ac_init_help=
471
 
ac_init_version=false
472
 
# The variables have the same names as the options, with
473
 
# dashes changed to underlines.
474
 
cache_file=/dev/null
475
 
exec_prefix=NONE
476
 
no_create=
477
 
no_recursion=
478
 
prefix=NONE
479
 
program_prefix=NONE
480
 
program_suffix=NONE
481
 
program_transform_name=s,x,x,
482
 
silent=
483
 
site=
484
 
srcdir=
485
 
verbose=
486
 
x_includes=NONE
487
 
x_libraries=NONE
488
 
 
489
 
# Installation directory options.
490
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
 
# and all the variables that are supposed to be based on exec_prefix
492
 
# by default will actually change.
493
 
# Use braces instead of parens because sh, perl, etc. also accept them.
494
 
bindir='${exec_prefix}/bin'
495
 
sbindir='${exec_prefix}/sbin'
496
 
libexecdir='${exec_prefix}/libexec'
497
 
datadir='${prefix}/share'
498
 
sysconfdir='${prefix}/etc'
499
 
sharedstatedir='${prefix}/com'
500
 
localstatedir='${prefix}/var'
501
 
libdir='${exec_prefix}/lib'
502
 
includedir='${prefix}/include'
503
 
oldincludedir='/usr/include'
504
 
infodir='${prefix}/info'
505
 
mandir='${prefix}/man'
506
 
 
507
 
ac_prev=
508
 
for ac_option
509
 
do
510
 
  # If the previous option needs an argument, assign it.
511
 
  if test -n "$ac_prev"; then
512
 
    eval "$ac_prev=\$ac_option"
513
 
    ac_prev=
514
 
    continue
515
 
  fi
516
 
 
517
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
 
 
519
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
520
 
 
521
 
  case $ac_option in
522
 
 
523
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524
 
    ac_prev=bindir ;;
525
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526
 
    bindir=$ac_optarg ;;
527
 
 
528
 
  -build | --build | --buil | --bui | --bu)
529
 
    ac_prev=build_alias ;;
530
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
 
    build_alias=$ac_optarg ;;
532
 
 
533
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
534
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
 
    ac_prev=cache_file ;;
536
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
 
    cache_file=$ac_optarg ;;
539
 
 
540
 
  --config-cache | -C)
541
 
    cache_file=config.cache ;;
542
 
 
543
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544
 
    ac_prev=datadir ;;
545
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
 
  | --da=*)
547
 
    datadir=$ac_optarg ;;
548
 
 
549
 
  -disable-* | --disable-*)
550
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
 
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
 
   { (exit 1); exit 1; }; }
555
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
 
    eval "enable_$ac_feature=no" ;;
557
 
 
558
 
  -enable-* | --enable-*)
559
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
 
    # Reject names that are not valid shell variable names.
561
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
 
   { (exit 1); exit 1; }; }
564
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565
 
    case $ac_option in
566
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567
 
      *) ac_optarg=yes ;;
568
 
    esac
569
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
570
 
 
571
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
 
  | --exec | --exe | --ex)
574
 
    ac_prev=exec_prefix ;;
575
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
 
  | --exec=* | --exe=* | --ex=*)
578
 
    exec_prefix=$ac_optarg ;;
579
 
 
580
 
  -gas | --gas | --ga | --g)
581
 
    # Obsolete; use --with-gas.
582
 
    with_gas=yes ;;
583
 
 
584
 
  -help | --help | --hel | --he | -h)
585
 
    ac_init_help=long ;;
586
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
 
    ac_init_help=recursive ;;
588
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
 
    ac_init_help=short ;;
590
 
 
591
 
  -host | --host | --hos | --ho)
592
 
    ac_prev=host_alias ;;
593
 
  -host=* | --host=* | --hos=* | --ho=*)
594
 
    host_alias=$ac_optarg ;;
595
 
 
596
 
  -includedir | --includedir | --includedi | --included | --include \
597
 
  | --includ | --inclu | --incl | --inc)
598
 
    ac_prev=includedir ;;
599
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
601
 
    includedir=$ac_optarg ;;
602
 
 
603
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
604
 
    ac_prev=infodir ;;
605
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
 
    infodir=$ac_optarg ;;
607
 
 
608
 
  -libdir | --libdir | --libdi | --libd)
609
 
    ac_prev=libdir ;;
610
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611
 
    libdir=$ac_optarg ;;
612
 
 
613
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
 
  | --libexe | --libex | --libe)
615
 
    ac_prev=libexecdir ;;
616
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
 
  | --libexe=* | --libex=* | --libe=*)
618
 
    libexecdir=$ac_optarg ;;
619
 
 
620
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
621
 
  | --localstate | --localstat | --localsta | --localst \
622
 
  | --locals | --local | --loca | --loc | --lo)
623
 
    ac_prev=localstatedir ;;
624
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
 
    localstatedir=$ac_optarg ;;
628
 
 
629
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630
 
    ac_prev=mandir ;;
631
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632
 
    mandir=$ac_optarg ;;
633
 
 
634
 
  -nfp | --nfp | --nf)
635
 
    # Obsolete; use --without-fp.
636
 
    with_fp=no ;;
637
 
 
638
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
 
  | --no-cr | --no-c | -n)
640
 
    no_create=yes ;;
641
 
 
642
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644
 
    no_recursion=yes ;;
645
 
 
646
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
 
  | --oldin | --oldi | --old | --ol | --o)
649
 
    ac_prev=oldincludedir ;;
650
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
 
    oldincludedir=$ac_optarg ;;
654
 
 
655
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656
 
    ac_prev=prefix ;;
657
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658
 
    prefix=$ac_optarg ;;
659
 
 
660
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661
 
  | --program-pre | --program-pr | --program-p)
662
 
    ac_prev=program_prefix ;;
663
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
 
    program_prefix=$ac_optarg ;;
666
 
 
667
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668
 
  | --program-suf | --program-su | --program-s)
669
 
    ac_prev=program_suffix ;;
670
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
 
    program_suffix=$ac_optarg ;;
673
 
 
674
 
  -program-transform-name | --program-transform-name \
675
 
  | --program-transform-nam | --program-transform-na \
676
 
  | --program-transform-n | --program-transform- \
677
 
  | --program-transform | --program-transfor \
678
 
  | --program-transfo | --program-transf \
679
 
  | --program-trans | --program-tran \
680
 
  | --progr-tra | --program-tr | --program-t)
681
 
    ac_prev=program_transform_name ;;
682
 
  -program-transform-name=* | --program-transform-name=* \
683
 
  | --program-transform-nam=* | --program-transform-na=* \
684
 
  | --program-transform-n=* | --program-transform-=* \
685
 
  | --program-transform=* | --program-transfor=* \
686
 
  | --program-transfo=* | --program-transf=* \
687
 
  | --program-trans=* | --program-tran=* \
688
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
689
 
    program_transform_name=$ac_optarg ;;
690
 
 
691
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
 
  | -silent | --silent | --silen | --sile | --sil)
693
 
    silent=yes ;;
694
 
 
695
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696
 
    ac_prev=sbindir ;;
697
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698
 
  | --sbi=* | --sb=*)
699
 
    sbindir=$ac_optarg ;;
700
 
 
701
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
 
  | --sharedst | --shareds | --shared | --share | --shar \
704
 
  | --sha | --sh)
705
 
    ac_prev=sharedstatedir ;;
706
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709
 
  | --sha=* | --sh=*)
710
 
    sharedstatedir=$ac_optarg ;;
711
 
 
712
 
  -site | --site | --sit)
713
 
    ac_prev=site ;;
714
 
  -site=* | --site=* | --sit=*)
715
 
    site=$ac_optarg ;;
716
 
 
717
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718
 
    ac_prev=srcdir ;;
719
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720
 
    srcdir=$ac_optarg ;;
721
 
 
722
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
 
  | --syscon | --sysco | --sysc | --sys | --sy)
724
 
    ac_prev=sysconfdir ;;
725
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
 
    sysconfdir=$ac_optarg ;;
728
 
 
729
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
730
 
    ac_prev=target_alias ;;
731
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
 
    target_alias=$ac_optarg ;;
733
 
 
734
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735
 
    verbose=yes ;;
736
 
 
737
 
  -version | --version | --versio | --versi | --vers | -V)
738
 
    ac_init_version=: ;;
739
 
 
740
 
  -with-* | --with-*)
741
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
 
    # Reject names that are not valid shell variable names.
743
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
745
 
   { (exit 1); exit 1; }; }
746
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
747
 
    case $ac_option in
748
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749
 
      *) ac_optarg=yes ;;
750
 
    esac
751
 
    eval "with_$ac_package='$ac_optarg'" ;;
752
 
 
753
 
  -without-* | --without-*)
754
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
 
    # Reject names that are not valid shell variable names.
756
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
758
 
   { (exit 1); exit 1; }; }
759
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
760
 
    eval "with_$ac_package=no" ;;
761
 
 
762
 
  --x)
763
 
    # Obsolete; use --with-x.
764
 
    with_x=yes ;;
765
 
 
766
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
 
  | --x-incl | --x-inc | --x-in | --x-i)
768
 
    ac_prev=x_includes ;;
769
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
 
    x_includes=$ac_optarg ;;
772
 
 
773
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
 
    ac_prev=x_libraries ;;
776
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
 
    x_libraries=$ac_optarg ;;
779
 
 
780
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
781
 
Try \`$0 --help' for more information." >&2
782
 
   { (exit 1); exit 1; }; }
783
 
    ;;
784
 
 
785
 
  *=*)
786
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
 
    # Reject names that are not valid shell variable names.
788
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
 
   { (exit 1); exit 1; }; }
791
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
 
    eval "$ac_envvar='$ac_optarg'"
793
 
    export $ac_envvar ;;
794
 
 
795
 
  *)
796
 
    # FIXME: should be removed in autoconf 3.0.
797
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801
 
    ;;
802
 
 
803
 
  esac
804
 
done
805
 
 
806
 
if test -n "$ac_prev"; then
807
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
809
 
   { (exit 1); exit 1; }; }
810
 
fi
811
 
 
812
 
# Be sure to have absolute paths.
813
 
for ac_var in exec_prefix prefix
814
 
do
815
 
  eval ac_val=$`echo $ac_var`
816
 
  case $ac_val in
817
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
 
   { (exit 1); exit 1; }; };;
820
 
  esac
821
 
done
822
 
 
823
 
# Be sure to have absolute paths.
824
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
 
              localstatedir libdir includedir oldincludedir infodir mandir
826
 
do
827
 
  eval ac_val=$`echo $ac_var`
828
 
  case $ac_val in
829
 
    [\\/$]* | ?:[\\/]* ) ;;
830
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
 
   { (exit 1); exit 1; }; };;
832
 
  esac
833
 
done
834
 
 
835
 
# There might be people who depend on the old broken behavior: `$host'
836
 
# used to hold the argument of --host etc.
837
 
# FIXME: To remove some day.
838
 
build=$build_alias
839
 
host=$host_alias
840
 
target=$target_alias
841
 
 
842
 
# FIXME: To remove some day.
843
 
if test "x$host_alias" != x; then
844
 
  if test "x$build_alias" = x; then
845
 
    cross_compiling=maybe
846
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
 
    If a cross compiler is detected then cross compile mode will be used." >&2
848
 
  elif test "x$build_alias" != "x$host_alias"; then
849
 
    cross_compiling=yes
850
 
  fi
851
 
fi
852
 
 
853
 
ac_tool_prefix=
854
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
 
 
856
 
test "$silent" = yes && exec 6>/dev/null
857
 
 
858
 
 
859
 
# Find the source files, if location was not specified.
860
 
if test -z "$srcdir"; then
861
 
  ac_srcdir_defaulted=yes
862
 
  # Try the directory containing this script, then its parent.
863
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
864
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
 
         X"$0" : 'X\(//\)[^/]' \| \
866
 
         X"$0" : 'X\(//\)$' \| \
867
 
         X"$0" : 'X\(/\)' \| \
868
 
         .     : '\(.\)' 2>/dev/null ||
869
 
echo X"$0" |
870
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
 
          /^X\(\/\/\)$/{ s//\1/; q; }
873
 
          /^X\(\/\).*/{ s//\1/; q; }
874
 
          s/.*/./; q'`
875
 
  srcdir=$ac_confdir
876
 
  if test ! -r $srcdir/$ac_unique_file; then
877
 
    srcdir=..
878
 
  fi
879
 
else
880
 
  ac_srcdir_defaulted=no
881
 
fi
882
 
if test ! -r $srcdir/$ac_unique_file; then
883
 
  if test "$ac_srcdir_defaulted" = yes; then
884
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
 
   { (exit 1); exit 1; }; }
886
 
  else
887
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
 
   { (exit 1); exit 1; }; }
889
 
  fi
890
 
fi
891
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
 
   { (exit 1); exit 1; }; }
894
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
 
ac_env_build_alias_set=${build_alias+set}
896
 
ac_env_build_alias_value=$build_alias
897
 
ac_cv_env_build_alias_set=${build_alias+set}
898
 
ac_cv_env_build_alias_value=$build_alias
899
 
ac_env_host_alias_set=${host_alias+set}
900
 
ac_env_host_alias_value=$host_alias
901
 
ac_cv_env_host_alias_set=${host_alias+set}
902
 
ac_cv_env_host_alias_value=$host_alias
903
 
ac_env_target_alias_set=${target_alias+set}
904
 
ac_env_target_alias_value=$target_alias
905
 
ac_cv_env_target_alias_set=${target_alias+set}
906
 
ac_cv_env_target_alias_value=$target_alias
907
 
ac_env_CC_set=${CC+set}
908
 
ac_env_CC_value=$CC
909
 
ac_cv_env_CC_set=${CC+set}
910
 
ac_cv_env_CC_value=$CC
911
 
ac_env_CFLAGS_set=${CFLAGS+set}
912
 
ac_env_CFLAGS_value=$CFLAGS
913
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
 
ac_cv_env_CFLAGS_value=$CFLAGS
915
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
 
ac_env_LDFLAGS_value=$LDFLAGS
917
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
 
ac_env_CPPFLAGS_value=$CPPFLAGS
921
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
 
ac_env_CPP_set=${CPP+set}
924
 
ac_env_CPP_value=$CPP
925
 
ac_cv_env_CPP_set=${CPP+set}
926
 
ac_cv_env_CPP_value=$CPP
927
 
ac_env_CXX_set=${CXX+set}
928
 
ac_env_CXX_value=$CXX
929
 
ac_cv_env_CXX_set=${CXX+set}
930
 
ac_cv_env_CXX_value=$CXX
931
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
 
ac_env_CXXFLAGS_value=$CXXFLAGS
933
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
 
ac_env_CXXCPP_set=${CXXCPP+set}
936
 
ac_env_CXXCPP_value=$CXXCPP
937
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
 
ac_cv_env_CXXCPP_value=$CXXCPP
939
 
ac_env_F77_set=${F77+set}
940
 
ac_env_F77_value=$F77
941
 
ac_cv_env_F77_set=${F77+set}
942
 
ac_cv_env_F77_value=$F77
943
 
ac_env_FFLAGS_set=${FFLAGS+set}
944
 
ac_env_FFLAGS_value=$FFLAGS
945
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_cv_env_FFLAGS_value=$FFLAGS
947
 
 
948
 
#
949
 
# Report the --help message.
950
 
#
951
 
if test "$ac_init_help" = "long"; then
952
 
  # Omit some internal or obsolete options to make the list less imposing.
953
 
  # This message is too long to be a string in the A/UX 3.1 sh.
954
 
  cat <<_ACEOF
955
 
\`configure' configures this package to adapt to many kinds of systems.
956
 
 
957
 
Usage: $0 [OPTION]... [VAR=VALUE]...
958
 
 
959
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
961
 
 
962
 
Defaults for the options are specified in brackets.
963
 
 
964
 
Configuration:
965
 
  -h, --help              display this help and exit
966
 
      --help=short        display options specific to this package
967
 
      --help=recursive    display the short help of all the included packages
968
 
  -V, --version           display version information and exit
969
 
  -q, --quiet, --silent   do not print \`checking...' messages
970
 
      --cache-file=FILE   cache test results in FILE [disabled]
971
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
972
 
  -n, --no-create         do not create output files
973
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
 
 
975
 
_ACEOF
976
 
 
977
 
  cat <<_ACEOF
978
 
Installation directories:
979
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
980
 
                          [$ac_default_prefix]
981
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982
 
                          [PREFIX]
983
 
 
984
 
By default, \`make install' will install all the files in
985
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
 
for instance \`--prefix=\$HOME'.
988
 
 
989
 
For better control, use the options below.
990
 
 
991
 
Fine tuning of the installation directories:
992
 
  --bindir=DIR           user executables [EPREFIX/bin]
993
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
995
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1000
 
  --includedir=DIR       C header files [PREFIX/include]
1001
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002
 
  --infodir=DIR          info documentation [PREFIX/info]
1003
 
  --mandir=DIR           man documentation [PREFIX/man]
1004
 
_ACEOF
1005
 
 
1006
 
  cat <<\_ACEOF
1007
 
 
1008
 
Program names:
1009
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
 
 
1013
 
System types:
1014
 
  --build=BUILD     configure for building on BUILD [guessed]
1015
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016
 
_ACEOF
1017
 
fi
1018
 
 
1019
 
if test -n "$ac_init_help"; then
1020
 
 
1021
 
  cat <<\_ACEOF
1022
 
 
1023
 
Optional Features:
1024
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1027
 
                          (and sometimes confusing) to the casual installer
1028
 
  --enable-shared[=PKGS]
1029
 
                          build shared libraries [default=yes]
1030
 
  --enable-static[=PKGS]
1031
 
                          build static libraries [default=yes]
1032
 
  --enable-fast-install[=PKGS]
1033
 
                          optimize for fast installation [default=yes]
1034
 
  --disable-dependency-tracking Speeds up one-time builds
1035
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1036
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1037
 
  --enable-ogg=yes/no    Turn on or off the use of ogg
1038
 
libraries default=yes
1039
 
  --enable-sse             enable SSE support
1040
 
  --enable-fixed-point             compile as fixed-point
1041
 
  --enable-arm-asm             make use of ARM assembly instructions
1042
 
  --enable-fixed-point-debug             Debug fixed-point implementation
1043
 
  --enable-epic-48k             enable support for epic 4.8 kbps mode
1044
 
 
1045
 
Optional Packages:
1046
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1050
 
                          both]
1051
 
  --with-tags[=TAGS]
1052
 
                          include additional configurations [automatic]
1053
 
  --with-ogg-dir=DIR       where the root of OGG is installed
1054
 
  --with-ogg-includes=DIR  where the OGG includes are.
1055
 
  --with-ogg-libraries=DIR where the OGG library is installed.
1056
 
 
1057
 
Some influential environment variables:
1058
 
  CC          C compiler command
1059
 
  CFLAGS      C compiler flags
1060
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061
 
              nonstandard directory <lib dir>
1062
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
 
              headers in a nonstandard directory <include dir>
1064
 
  CPP         C preprocessor
1065
 
  CXX         C++ compiler command
1066
 
  CXXFLAGS    C++ compiler flags
1067
 
  CXXCPP      C++ preprocessor
1068
 
  F77         Fortran 77 compiler command
1069
 
  FFLAGS      Fortran 77 compiler flags
1070
 
 
1071
 
Use these variables to override the choices made by `configure' or to help
1072
 
it to find libraries and programs with nonstandard names/locations.
1073
 
 
1074
 
_ACEOF
1075
 
fi
1076
 
 
1077
 
if test "$ac_init_help" = "recursive"; then
1078
 
  # If there are subdirs, report their specific --help.
1079
 
  ac_popdir=`pwd`
1080
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081
 
    test -d $ac_dir || continue
1082
 
    ac_builddir=.
1083
 
 
1084
 
if test "$ac_dir" != .; then
1085
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086
 
  # A "../" for each directory in $ac_dir_suffix.
1087
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088
 
else
1089
 
  ac_dir_suffix= ac_top_builddir=
1090
 
fi
1091
 
 
1092
 
case $srcdir in
1093
 
  .)  # No --srcdir option.  We are building in place.
1094
 
    ac_srcdir=.
1095
 
    if test -z "$ac_top_builddir"; then
1096
 
       ac_top_srcdir=.
1097
 
    else
1098
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099
 
    fi ;;
1100
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1101
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1102
 
    ac_top_srcdir=$srcdir ;;
1103
 
  *) # Relative path.
1104
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106
 
esac
1107
 
 
1108
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1109
 
# the directories may not exist.
1110
 
case `pwd` in
1111
 
.) ac_abs_builddir="$ac_dir";;
1112
 
*)
1113
 
  case "$ac_dir" in
1114
 
  .) ac_abs_builddir=`pwd`;;
1115
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117
 
  esac;;
1118
 
esac
1119
 
case $ac_abs_builddir in
1120
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1121
 
*)
1122
 
  case ${ac_top_builddir}. in
1123
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1124
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126
 
  esac;;
1127
 
esac
1128
 
case $ac_abs_builddir in
1129
 
.) ac_abs_srcdir=$ac_srcdir;;
1130
 
*)
1131
 
  case $ac_srcdir in
1132
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1133
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135
 
  esac;;
1136
 
esac
1137
 
case $ac_abs_builddir in
1138
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1139
 
*)
1140
 
  case $ac_top_srcdir in
1141
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144
 
  esac;;
1145
 
esac
1146
 
 
1147
 
    cd $ac_dir
1148
 
    # Check for guested configure; otherwise get Cygnus style configure.
1149
 
    if test -f $ac_srcdir/configure.gnu; then
1150
 
      echo
1151
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1152
 
    elif test -f $ac_srcdir/configure; then
1153
 
      echo
1154
 
      $SHELL $ac_srcdir/configure  --help=recursive
1155
 
    elif test -f $ac_srcdir/configure.ac ||
1156
 
           test -f $ac_srcdir/configure.in; then
1157
 
      echo
1158
 
      $ac_configure --help
1159
 
    else
1160
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161
 
    fi
1162
 
    cd "$ac_popdir"
1163
 
  done
1164
 
fi
1165
 
 
1166
 
test -n "$ac_init_help" && exit 0
1167
 
if $ac_init_version; then
1168
 
  cat <<\_ACEOF
1169
 
 
1170
 
Copyright (C) 2003 Free Software Foundation, Inc.
1171
 
This configure script is free software; the Free Software Foundation
1172
 
gives unlimited permission to copy, distribute and modify it.
1173
 
_ACEOF
1174
 
  exit 0
1175
 
fi
1176
 
exec 5>config.log
1177
 
cat >&5 <<_ACEOF
1178
 
This file contains any messages produced by compilers while
1179
 
running configure, to aid debugging if configure makes a mistake.
1180
 
 
1181
 
It was created by $as_me, which was
1182
 
generated by GNU Autoconf 2.59.  Invocation command line was
1183
 
 
1184
 
  $ $0 $@
1185
 
 
1186
 
_ACEOF
1187
 
{
1188
 
cat <<_ASUNAME
1189
 
## --------- ##
1190
 
## Platform. ##
1191
 
## --------- ##
1192
 
 
1193
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
 
 
1199
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
 
 
1202
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
 
 
1210
 
_ASUNAME
1211
 
 
1212
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213
 
for as_dir in $PATH
1214
 
do
1215
 
  IFS=$as_save_IFS
1216
 
  test -z "$as_dir" && as_dir=.
1217
 
  echo "PATH: $as_dir"
1218
 
done
1219
 
 
1220
 
} >&5
1221
 
 
1222
 
cat >&5 <<_ACEOF
1223
 
 
1224
 
 
1225
 
## ----------- ##
1226
 
## Core tests. ##
1227
 
## ----------- ##
1228
 
 
1229
 
_ACEOF
1230
 
 
1231
 
 
1232
 
# Keep a trace of the command line.
1233
 
# Strip out --no-create and --no-recursion so they do not pile up.
1234
 
# Strip out --silent because we don't want to record it for future runs.
1235
 
# Also quote any args containing shell meta-characters.
1236
 
# Make two passes to allow for proper duplicate-argument suppression.
1237
 
ac_configure_args=
1238
 
ac_configure_args0=
1239
 
ac_configure_args1=
1240
 
ac_sep=
1241
 
ac_must_keep_next=false
1242
 
for ac_pass in 1 2
1243
 
do
1244
 
  for ac_arg
1245
 
  do
1246
 
    case $ac_arg in
1247
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249
 
    | -silent | --silent | --silen | --sile | --sil)
1250
 
      continue ;;
1251
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253
 
    esac
1254
 
    case $ac_pass in
1255
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256
 
    2)
1257
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258
 
      if test $ac_must_keep_next = true; then
1259
 
        ac_must_keep_next=false # Got value, back to normal.
1260
 
      else
1261
 
        case $ac_arg in
1262
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1263
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1266
 
            case "$ac_configure_args0 " in
1267
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268
 
            esac
1269
 
            ;;
1270
 
          -* ) ac_must_keep_next=true ;;
1271
 
        esac
1272
 
      fi
1273
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274
 
      # Get rid of the leading space.
1275
 
      ac_sep=" "
1276
 
      ;;
1277
 
    esac
1278
 
  done
1279
 
done
1280
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
 
 
1283
 
# When interrupted or exit'd, cleanup temporary files, and complete
1284
 
# config.log.  We remove comments because anyway the quotes in there
1285
 
# would cause problems or look ugly.
1286
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1287
 
# such as our DU 5.0 friend, will then `close' the trap.
1288
 
trap 'exit_status=$?
1289
 
  # Save into config.log some information that might help in debugging.
1290
 
  {
1291
 
    echo
1292
 
 
1293
 
    cat <<\_ASBOX
1294
 
## ---------------- ##
1295
 
## Cache variables. ##
1296
 
## ---------------- ##
1297
 
_ASBOX
1298
 
    echo
1299
 
    # The following way of writing the cache mishandles newlines in values,
1300
 
{
1301
 
  (set) 2>&1 |
1302
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303
 
    *ac_space=\ *)
1304
 
      sed -n \
1305
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307
 
      ;;
1308
 
    *)
1309
 
      sed -n \
1310
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311
 
      ;;
1312
 
    esac;
1313
 
}
1314
 
    echo
1315
 
 
1316
 
    cat <<\_ASBOX
1317
 
## ----------------- ##
1318
 
## Output variables. ##
1319
 
## ----------------- ##
1320
 
_ASBOX
1321
 
    echo
1322
 
    for ac_var in $ac_subst_vars
1323
 
    do
1324
 
      eval ac_val=$`echo $ac_var`
1325
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1326
 
    done | sort
1327
 
    echo
1328
 
 
1329
 
    if test -n "$ac_subst_files"; then
1330
 
      cat <<\_ASBOX
1331
 
## ------------- ##
1332
 
## Output files. ##
1333
 
## ------------- ##
1334
 
_ASBOX
1335
 
      echo
1336
 
      for ac_var in $ac_subst_files
1337
 
      do
1338
 
        eval ac_val=$`echo $ac_var`
1339
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1340
 
      done | sort
1341
 
      echo
1342
 
    fi
1343
 
 
1344
 
    if test -s confdefs.h; then
1345
 
      cat <<\_ASBOX
1346
 
## ----------- ##
1347
 
## confdefs.h. ##
1348
 
## ----------- ##
1349
 
_ASBOX
1350
 
      echo
1351
 
      sed "/^$/d" confdefs.h | sort
1352
 
      echo
1353
 
    fi
1354
 
    test "$ac_signal" != 0 &&
1355
 
      echo "$as_me: caught signal $ac_signal"
1356
 
    echo "$as_me: exit $exit_status"
1357
 
  } >&5
1358
 
  rm -f core *.core &&
1359
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360
 
    exit $exit_status
1361
 
     ' 0
1362
 
for ac_signal in 1 2 13 15; do
1363
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364
 
done
1365
 
ac_signal=0
1366
 
 
1367
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368
 
rm -rf conftest* confdefs.h
1369
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370
 
echo >confdefs.h
1371
 
 
1372
 
# Predefined preprocessor variables.
1373
 
 
1374
 
cat >>confdefs.h <<_ACEOF
1375
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1376
 
_ACEOF
1377
 
 
1378
 
 
1379
 
cat >>confdefs.h <<_ACEOF
1380
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381
 
_ACEOF
1382
 
 
1383
 
 
1384
 
cat >>confdefs.h <<_ACEOF
1385
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1386
 
_ACEOF
1387
 
 
1388
 
 
1389
 
cat >>confdefs.h <<_ACEOF
1390
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1391
 
_ACEOF
1392
 
 
1393
 
 
1394
 
cat >>confdefs.h <<_ACEOF
1395
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396
 
_ACEOF
1397
 
 
1398
 
 
1399
 
# Let the site file select an alternate cache file if it wants to.
1400
 
# Prefer explicitly selected file to automatically selected ones.
1401
 
if test -z "$CONFIG_SITE"; then
1402
 
  if test "x$prefix" != xNONE; then
1403
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404
 
  else
1405
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406
 
  fi
1407
 
fi
1408
 
for ac_site_file in $CONFIG_SITE; do
1409
 
  if test -r "$ac_site_file"; then
1410
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1412
 
    sed 's/^/| /' "$ac_site_file" >&5
1413
 
    . "$ac_site_file"
1414
 
  fi
1415
 
done
1416
 
 
1417
 
if test -r "$cache_file"; then
1418
 
  # Some versions of bash will fail to source /dev/null (special
1419
 
  # files actually), so we avoid doing that.
1420
 
  if test -f "$cache_file"; then
1421
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422
 
echo "$as_me: loading cache $cache_file" >&6;}
1423
 
    case $cache_file in
1424
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1425
 
      *)                      . ./$cache_file;;
1426
 
    esac
1427
 
  fi
1428
 
else
1429
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430
 
echo "$as_me: creating cache $cache_file" >&6;}
1431
 
  >$cache_file
1432
 
fi
1433
 
 
1434
 
# Check that the precious variables saved in the cache have kept the same
1435
 
# value.
1436
 
ac_cache_corrupted=false
1437
 
for ac_var in `(set) 2>&1 |
1438
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1441
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1443
 
  case $ac_old_set,$ac_new_set in
1444
 
    set,)
1445
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447
 
      ac_cache_corrupted=: ;;
1448
 
    ,set)
1449
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451
 
      ac_cache_corrupted=: ;;
1452
 
    ,);;
1453
 
    *)
1454
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1455
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1459
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1461
 
        ac_cache_corrupted=:
1462
 
      fi;;
1463
 
  esac
1464
 
  # Pass precious variables to config.status.
1465
 
  if test "$ac_new_set" = set; then
1466
 
    case $ac_new_val in
1467
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1470
 
    esac
1471
 
    case " $ac_configure_args " in
1472
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474
 
    esac
1475
 
  fi
1476
 
done
1477
 
if $ac_cache_corrupted; then
1478
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482
 
   { (exit 1); exit 1; }; }
1483
 
fi
1484
 
 
1485
 
ac_ext=c
1486
 
ac_cpp='$CPP $CPPFLAGS'
1487
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
SPEEX_MAJOR_VERSION=1
1511
 
SPEEX_MINOR_VERSION=1
1512
 
SPEEX_MICRO_VERSION=4
1513
 
SPEEX_VERSION=1.1.4
1514
 
 
1515
 
SPEEX_LT_CURRENT=2
1516
 
SPEEX_LT_REVISION=0
1517
 
SPEEX_LT_AGE=1
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
# For automake.
1524
 
VERSION=$SPEEX_VERSION
1525
 
PACKAGE=speex
1526
 
 
1527
 
am__api_version="1.6"
1528
 
ac_aux_dir=
1529
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
 
  if test -f $ac_dir/install-sh; then
1531
 
    ac_aux_dir=$ac_dir
1532
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1533
 
    break
1534
 
  elif test -f $ac_dir/install.sh; then
1535
 
    ac_aux_dir=$ac_dir
1536
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1537
 
    break
1538
 
  elif test -f $ac_dir/shtool; then
1539
 
    ac_aux_dir=$ac_dir
1540
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1541
 
    break
1542
 
  fi
1543
 
done
1544
 
if test -z "$ac_aux_dir"; then
1545
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547
 
   { (exit 1); exit 1; }; }
1548
 
fi
1549
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
 
 
1553
 
# Find a good install program.  We prefer a C program (faster),
1554
 
# so one script is as good as another.  But avoid the broken or
1555
 
# incompatible versions:
1556
 
# SysV /etc/install, /usr/sbin/install
1557
 
# SunOS /usr/etc/install
1558
 
# IRIX /sbin/install
1559
 
# AIX /bin/install
1560
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1561
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564
 
# OS/2's system install, which has a completely different semantic
1565
 
# ./install, which can be erroneously created by make from ./install.sh.
1566
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1567
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1568
 
if test -z "$INSTALL"; then
1569
 
if test "${ac_cv_path_install+set}" = set; then
1570
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1571
 
else
1572
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573
 
for as_dir in $PATH
1574
 
do
1575
 
  IFS=$as_save_IFS
1576
 
  test -z "$as_dir" && as_dir=.
1577
 
  # Account for people who put trailing slashes in PATH elements.
1578
 
case $as_dir/ in
1579
 
  ./ | .// | /cC/* | \
1580
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1581
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1582
 
  /usr/ucb/* ) ;;
1583
 
  *)
1584
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1585
 
    # Don't use installbsd from OSF since it installs stuff as root
1586
 
    # by default.
1587
 
    for ac_prog in ginstall scoinst install; do
1588
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1589
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1590
 
          if test $ac_prog = install &&
1591
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592
 
            # AIX install.  It has an incompatible calling convention.
1593
 
            :
1594
 
          elif test $ac_prog = install &&
1595
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596
 
            # program-specific install script used by HP pwplus--don't use.
1597
 
            :
1598
 
          else
1599
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1600
 
            break 3
1601
 
          fi
1602
 
        fi
1603
 
      done
1604
 
    done
1605
 
    ;;
1606
 
esac
1607
 
done
1608
 
 
1609
 
 
1610
 
fi
1611
 
  if test "${ac_cv_path_install+set}" = set; then
1612
 
    INSTALL=$ac_cv_path_install
1613
 
  else
1614
 
    # As a last resort, use the slow shell script.  We don't cache a
1615
 
    # path for INSTALL within a source directory, because that will
1616
 
    # break other packages using the cache if that directory is
1617
 
    # removed, or if the path is relative.
1618
 
    INSTALL=$ac_install_sh
1619
 
  fi
1620
 
fi
1621
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1622
 
echo "${ECHO_T}$INSTALL" >&6
1623
 
 
1624
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1625
 
# It thinks the first close brace ends the variable substitution.
1626
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1627
 
 
1628
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1629
 
 
1630
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1631
 
 
1632
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1633
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1634
 
# Just in case
1635
 
sleep 1
1636
 
echo timestamp > conftest.file
1637
 
# Do `set' in a subshell so we don't clobber the current shell's
1638
 
# arguments.  Must try -L first in case configure is actually a
1639
 
# symlink; some systems play weird games with the mod time of symlinks
1640
 
# (eg FreeBSD returns the mod time of the symlink's containing
1641
 
# directory).
1642
 
if (
1643
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1644
 
   if test "$*" = "X"; then
1645
 
      # -L didn't work.
1646
 
      set X `ls -t $srcdir/configure conftest.file`
1647
 
   fi
1648
 
   rm -f conftest.file
1649
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1650
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
1651
 
 
1652
 
      # If neither matched, then we have a broken ls.  This can happen
1653
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1654
 
      # broken ls alias from the environment.  This has actually
1655
 
      # happened.  Such a system could not be considered "sane".
1656
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1657
 
alias in your environment" >&5
1658
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1659
 
alias in your environment" >&2;}
1660
 
   { (exit 1); exit 1; }; }
1661
 
   fi
1662
 
 
1663
 
   test "$2" = conftest.file
1664
 
   )
1665
 
then
1666
 
   # Ok.
1667
 
   :
1668
 
else
1669
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1670
 
Check your system clock" >&5
1671
 
echo "$as_me: error: newly created file is older than distributed files!
1672
 
Check your system clock" >&2;}
1673
 
   { (exit 1); exit 1; }; }
1674
 
fi
1675
 
echo "$as_me:$LINENO: result: yes" >&5
1676
 
echo "${ECHO_T}yes" >&6
1677
 
test "$program_prefix" != NONE &&
1678
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679
 
# Use a double $ so make ignores it.
1680
 
test "$program_suffix" != NONE &&
1681
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682
 
# Double any \ or $.  echo might interpret backslashes.
1683
 
# By default was `s,x,x', remove it if useless.
1684
 
cat <<\_ACEOF >conftest.sed
1685
 
s/[\\$]/&&/g;s/;s,x,x,$//
1686
 
_ACEOF
1687
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1688
 
rm conftest.sed
1689
 
 
1690
 
 
1691
 
# expand $ac_aux_dir to an absolute path
1692
 
am_aux_dir=`cd $ac_aux_dir && pwd`
1693
 
 
1694
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695
 
# Use eval to expand $SHELL
1696
 
if eval "$MISSING --run true"; then
1697
 
  am_missing_run="$MISSING --run "
1698
 
else
1699
 
  am_missing_run=
1700
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702
 
fi
1703
 
 
1704
 
for ac_prog in gawk mawk nawk awk
1705
 
do
1706
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1707
 
set dummy $ac_prog; ac_word=$2
1708
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1709
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710
 
if test "${ac_cv_prog_AWK+set}" = set; then
1711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1712
 
else
1713
 
  if test -n "$AWK"; then
1714
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1715
 
else
1716
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717
 
for as_dir in $PATH
1718
 
do
1719
 
  IFS=$as_save_IFS
1720
 
  test -z "$as_dir" && as_dir=.
1721
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1722
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723
 
    ac_cv_prog_AWK="$ac_prog"
1724
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725
 
    break 2
1726
 
  fi
1727
 
done
1728
 
done
1729
 
 
1730
 
fi
1731
 
fi
1732
 
AWK=$ac_cv_prog_AWK
1733
 
if test -n "$AWK"; then
1734
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1735
 
echo "${ECHO_T}$AWK" >&6
1736
 
else
1737
 
  echo "$as_me:$LINENO: result: no" >&5
1738
 
echo "${ECHO_T}no" >&6
1739
 
fi
1740
 
 
1741
 
  test -n "$AWK" && break
1742
 
done
1743
 
 
1744
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1745
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1746
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1747
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1748
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1749
 
else
1750
 
  cat >conftest.make <<\_ACEOF
1751
 
all:
1752
 
        @echo 'ac_maketemp="$(MAKE)"'
1753
 
_ACEOF
1754
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1755
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1756
 
if test -n "$ac_maketemp"; then
1757
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1758
 
else
1759
 
  eval ac_cv_prog_make_${ac_make}_set=no
1760
 
fi
1761
 
rm -f conftest.make
1762
 
fi
1763
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1764
 
  echo "$as_me:$LINENO: result: yes" >&5
1765
 
echo "${ECHO_T}yes" >&6
1766
 
  SET_MAKE=
1767
 
else
1768
 
  echo "$as_me:$LINENO: result: no" >&5
1769
 
echo "${ECHO_T}no" >&6
1770
 
  SET_MAKE="MAKE=${MAKE-make}"
1771
 
fi
1772
 
 
1773
 
 # test to see if srcdir already configured
1774
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1775
 
   test -f $srcdir/config.status; then
1776
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1777
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1778
 
   { (exit 1); exit 1; }; }
1779
 
fi
1780
 
 
1781
 
# Define the identity of the package.
1782
 
 PACKAGE=$PACKAGE
1783
 
 VERSION=$VERSION
1784
 
 
1785
 
 
1786
 
# Some tools Automake needs.
1787
 
 
1788
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1789
 
 
1790
 
 
1791
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1792
 
 
1793
 
 
1794
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1795
 
 
1796
 
 
1797
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1798
 
 
1799
 
 
1800
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1801
 
 
1802
 
 
1803
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1804
 
 
1805
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1806
 
 
1807
 
# Installed binaries are usually stripped using `strip' when the user
1808
 
# run `make install-strip'.  However `strip' might not be the right
1809
 
# tool to use in cross-compilation environments, therefore Automake
1810
 
# will honor the `STRIP' environment variable to overrule this program.
1811
 
if test "$cross_compiling" != no; then
1812
 
  if test -n "$ac_tool_prefix"; then
1813
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1814
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1815
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1816
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1818
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1819
 
else
1820
 
  if test -n "$STRIP"; then
1821
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1822
 
else
1823
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824
 
for as_dir in $PATH
1825
 
do
1826
 
  IFS=$as_save_IFS
1827
 
  test -z "$as_dir" && as_dir=.
1828
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1829
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1831
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832
 
    break 2
1833
 
  fi
1834
 
done
1835
 
done
1836
 
 
1837
 
fi
1838
 
fi
1839
 
STRIP=$ac_cv_prog_STRIP
1840
 
if test -n "$STRIP"; then
1841
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1842
 
echo "${ECHO_T}$STRIP" >&6
1843
 
else
1844
 
  echo "$as_me:$LINENO: result: no" >&5
1845
 
echo "${ECHO_T}no" >&6
1846
 
fi
1847
 
 
1848
 
fi
1849
 
if test -z "$ac_cv_prog_STRIP"; then
1850
 
  ac_ct_STRIP=$STRIP
1851
 
  # Extract the first word of "strip", so it can be a program name with args.
1852
 
set dummy strip; ac_word=$2
1853
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1854
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1857
 
else
1858
 
  if test -n "$ac_ct_STRIP"; then
1859
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1860
 
else
1861
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862
 
for as_dir in $PATH
1863
 
do
1864
 
  IFS=$as_save_IFS
1865
 
  test -z "$as_dir" && as_dir=.
1866
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1867
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868
 
    ac_cv_prog_ac_ct_STRIP="strip"
1869
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870
 
    break 2
1871
 
  fi
1872
 
done
1873
 
done
1874
 
 
1875
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1876
 
fi
1877
 
fi
1878
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1879
 
if test -n "$ac_ct_STRIP"; then
1880
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1881
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
1882
 
else
1883
 
  echo "$as_me:$LINENO: result: no" >&5
1884
 
echo "${ECHO_T}no" >&6
1885
 
fi
1886
 
 
1887
 
  STRIP=$ac_ct_STRIP
1888
 
else
1889
 
  STRIP="$ac_cv_prog_STRIP"
1890
 
fi
1891
 
 
1892
 
fi
1893
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1894
 
 
1895
 
# We need awk for the "check" target.  The system "awk" is bad on
1896
 
# some platforms.
1897
 
 
1898
 
 
1899
 
 
1900
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1901
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1902
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1903
 
if test "${enable_maintainer_mode+set}" = set; then
1904
 
  enableval="$enable_maintainer_mode"
1905
 
  USE_MAINTAINER_MODE=$enableval
1906
 
else
1907
 
  USE_MAINTAINER_MODE=no
1908
 
fi;
1909
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1910
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1911
 
 
1912
 
 
1913
 
if test $USE_MAINTAINER_MODE = yes; then
1914
 
  MAINTAINER_MODE_TRUE=
1915
 
  MAINTAINER_MODE_FALSE='#'
1916
 
else
1917
 
  MAINTAINER_MODE_TRUE='#'
1918
 
  MAINTAINER_MODE_FALSE=
1919
 
fi
1920
 
 
1921
 
  MAINT=$MAINTAINER_MODE_TRUE
1922
 
 
1923
 
 
1924
 
 
1925
 
# Make sure we can run config.sub.
1926
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1927
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1928
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1929
 
   { (exit 1); exit 1; }; }
1930
 
 
1931
 
echo "$as_me:$LINENO: checking build system type" >&5
1932
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1933
 
if test "${ac_cv_build+set}" = set; then
1934
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1935
 
else
1936
 
  ac_cv_build_alias=$build_alias
1937
 
test -z "$ac_cv_build_alias" &&
1938
 
  ac_cv_build_alias=`$ac_config_guess`
1939
 
test -z "$ac_cv_build_alias" &&
1940
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942
 
   { (exit 1); exit 1; }; }
1943
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1944
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1945
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1946
 
   { (exit 1); exit 1; }; }
1947
 
 
1948
 
fi
1949
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950
 
echo "${ECHO_T}$ac_cv_build" >&6
1951
 
build=$ac_cv_build
1952
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1953
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1954
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1955
 
 
1956
 
 
1957
 
echo "$as_me:$LINENO: checking host system type" >&5
1958
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1959
 
if test "${ac_cv_host+set}" = set; then
1960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1961
 
else
1962
 
  ac_cv_host_alias=$host_alias
1963
 
test -z "$ac_cv_host_alias" &&
1964
 
  ac_cv_host_alias=$ac_cv_build_alias
1965
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1966
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1967
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1968
 
   { (exit 1); exit 1; }; }
1969
 
 
1970
 
fi
1971
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972
 
echo "${ECHO_T}$ac_cv_host" >&6
1973
 
host=$ac_cv_host
1974
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1975
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1976
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1977
 
 
1978
 
 
1979
 
# Check whether --enable-shared or --disable-shared was given.
1980
 
if test "${enable_shared+set}" = set; then
1981
 
  enableval="$enable_shared"
1982
 
  p=${PACKAGE-default}
1983
 
    case $enableval in
1984
 
    yes) enable_shared=yes ;;
1985
 
    no) enable_shared=no ;;
1986
 
    *)
1987
 
      enable_shared=no
1988
 
      # Look at the argument we got.  We use all the common list separators.
1989
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990
 
      for pkg in $enableval; do
1991
 
        IFS="$lt_save_ifs"
1992
 
        if test "X$pkg" = "X$p"; then
1993
 
          enable_shared=yes
1994
 
        fi
1995
 
      done
1996
 
      IFS="$lt_save_ifs"
1997
 
      ;;
1998
 
    esac
1999
 
else
2000
 
  enable_shared=yes
2001
 
fi;
2002
 
 
2003
 
# Check whether --enable-static or --disable-static was given.
2004
 
if test "${enable_static+set}" = set; then
2005
 
  enableval="$enable_static"
2006
 
  p=${PACKAGE-default}
2007
 
    case $enableval in
2008
 
    yes) enable_static=yes ;;
2009
 
    no) enable_static=no ;;
2010
 
    *)
2011
 
     enable_static=no
2012
 
      # Look at the argument we got.  We use all the common list separators.
2013
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014
 
      for pkg in $enableval; do
2015
 
        IFS="$lt_save_ifs"
2016
 
        if test "X$pkg" = "X$p"; then
2017
 
          enable_static=yes
2018
 
        fi
2019
 
      done
2020
 
      IFS="$lt_save_ifs"
2021
 
      ;;
2022
 
    esac
2023
 
else
2024
 
  enable_static=yes
2025
 
fi;
2026
 
 
2027
 
# Check whether --enable-fast-install or --disable-fast-install was given.
2028
 
if test "${enable_fast_install+set}" = set; then
2029
 
  enableval="$enable_fast_install"
2030
 
  p=${PACKAGE-default}
2031
 
    case $enableval in
2032
 
    yes) enable_fast_install=yes ;;
2033
 
    no) enable_fast_install=no ;;
2034
 
    *)
2035
 
      enable_fast_install=no
2036
 
      # Look at the argument we got.  We use all the common list separators.
2037
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2038
 
      for pkg in $enableval; do
2039
 
        IFS="$lt_save_ifs"
2040
 
        if test "X$pkg" = "X$p"; then
2041
 
          enable_fast_install=yes
2042
 
        fi
2043
 
      done
2044
 
      IFS="$lt_save_ifs"
2045
 
      ;;
2046
 
    esac
2047
 
else
2048
 
  enable_fast_install=yes
2049
 
fi;
2050
 
 
2051
 
rm -f .deps 2>/dev/null
2052
 
mkdir .deps 2>/dev/null
2053
 
if test -d .deps; then
2054
 
  DEPDIR=.deps
2055
 
else
2056
 
  # MS-DOS does not allow filenames that begin with a dot.
2057
 
  DEPDIR=_deps
2058
 
fi
2059
 
rmdir .deps 2>/dev/null
2060
 
 
2061
 
 
2062
 
          ac_config_commands="$ac_config_commands depfiles"
2063
 
 
2064
 
 
2065
 
am_make=${MAKE-make}
2066
 
cat > confinc << 'END'
2067
 
doit:
2068
 
        @echo done
2069
 
END
2070
 
# If we don't find an include directive, just comment out the code.
2071
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2072
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2073
 
am__include="#"
2074
 
am__quote=
2075
 
_am_result=none
2076
 
# First try GNU make style include.
2077
 
echo "include confinc" > confmf
2078
 
# We grep out `Entering directory' and `Leaving directory'
2079
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2080
 
# In particular we don't look at `^make:' because GNU make might
2081
 
# be invoked under some other name (usually "gmake"), in which
2082
 
# case it prints its new name instead of `make'.
2083
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2084
 
   am__include=include
2085
 
   am__quote=
2086
 
   _am_result=GNU
2087
 
fi
2088
 
# Now try BSD make style include.
2089
 
if test "$am__include" = "#"; then
2090
 
   echo '.include "confinc"' > confmf
2091
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2092
 
      am__include=.include
2093
 
      am__quote="\""
2094
 
      _am_result=BSD
2095
 
   fi
2096
 
fi
2097
 
 
2098
 
 
2099
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2100
 
echo "${ECHO_T}$_am_result" >&6
2101
 
rm -f confinc confmf
2102
 
 
2103
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2104
 
if test "${enable_dependency_tracking+set}" = set; then
2105
 
  enableval="$enable_dependency_tracking"
2106
 
 
2107
 
fi;
2108
 
if test "x$enable_dependency_tracking" != xno; then
2109
 
  am_depcomp="$ac_aux_dir/depcomp"
2110
 
  AMDEPBACKSLASH='\'
2111
 
fi
2112
 
 
2113
 
 
2114
 
if test "x$enable_dependency_tracking" != xno; then
2115
 
  AMDEP_TRUE=
2116
 
  AMDEP_FALSE='#'
2117
 
else
2118
 
  AMDEP_TRUE='#'
2119
 
  AMDEP_FALSE=
2120
 
fi
2121
 
 
2122
 
 
2123
 
 
2124
 
ac_ext=c
2125
 
ac_cpp='$CPP $CPPFLAGS'
2126
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129
 
if test -n "$ac_tool_prefix"; then
2130
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2131
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2132
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
 
if test "${ac_cv_prog_CC+set}" = set; then
2135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2136
 
else
2137
 
  if test -n "$CC"; then
2138
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2139
 
else
2140
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
 
for as_dir in $PATH
2142
 
do
2143
 
  IFS=$as_save_IFS
2144
 
  test -z "$as_dir" && as_dir=.
2145
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2146
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2148
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149
 
    break 2
2150
 
  fi
2151
 
done
2152
 
done
2153
 
 
2154
 
fi
2155
 
fi
2156
 
CC=$ac_cv_prog_CC
2157
 
if test -n "$CC"; then
2158
 
  echo "$as_me:$LINENO: result: $CC" >&5
2159
 
echo "${ECHO_T}$CC" >&6
2160
 
else
2161
 
  echo "$as_me:$LINENO: result: no" >&5
2162
 
echo "${ECHO_T}no" >&6
2163
 
fi
2164
 
 
2165
 
fi
2166
 
if test -z "$ac_cv_prog_CC"; then
2167
 
  ac_ct_CC=$CC
2168
 
  # Extract the first word of "gcc", so it can be a program name with args.
2169
 
set dummy gcc; ac_word=$2
2170
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2171
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2174
 
else
2175
 
  if test -n "$ac_ct_CC"; then
2176
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177
 
else
2178
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179
 
for as_dir in $PATH
2180
 
do
2181
 
  IFS=$as_save_IFS
2182
 
  test -z "$as_dir" && as_dir=.
2183
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2184
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185
 
    ac_cv_prog_ac_ct_CC="gcc"
2186
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187
 
    break 2
2188
 
  fi
2189
 
done
2190
 
done
2191
 
 
2192
 
fi
2193
 
fi
2194
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195
 
if test -n "$ac_ct_CC"; then
2196
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197
 
echo "${ECHO_T}$ac_ct_CC" >&6
2198
 
else
2199
 
  echo "$as_me:$LINENO: result: no" >&5
2200
 
echo "${ECHO_T}no" >&6
2201
 
fi
2202
 
 
2203
 
  CC=$ac_ct_CC
2204
 
else
2205
 
  CC="$ac_cv_prog_CC"
2206
 
fi
2207
 
 
2208
 
if test -z "$CC"; then
2209
 
  if test -n "$ac_tool_prefix"; then
2210
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2212
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2213
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214
 
if test "${ac_cv_prog_CC+set}" = set; then
2215
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2216
 
else
2217
 
  if test -n "$CC"; then
2218
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2219
 
else
2220
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221
 
for as_dir in $PATH
2222
 
do
2223
 
  IFS=$as_save_IFS
2224
 
  test -z "$as_dir" && as_dir=.
2225
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2226
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2228
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229
 
    break 2
2230
 
  fi
2231
 
done
2232
 
done
2233
 
 
2234
 
fi
2235
 
fi
2236
 
CC=$ac_cv_prog_CC
2237
 
if test -n "$CC"; then
2238
 
  echo "$as_me:$LINENO: result: $CC" >&5
2239
 
echo "${ECHO_T}$CC" >&6
2240
 
else
2241
 
  echo "$as_me:$LINENO: result: no" >&5
2242
 
echo "${ECHO_T}no" >&6
2243
 
fi
2244
 
 
2245
 
fi
2246
 
if test -z "$ac_cv_prog_CC"; then
2247
 
  ac_ct_CC=$CC
2248
 
  # Extract the first word of "cc", so it can be a program name with args.
2249
 
set dummy cc; ac_word=$2
2250
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2254
 
else
2255
 
  if test -n "$ac_ct_CC"; then
2256
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2257
 
else
2258
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259
 
for as_dir in $PATH
2260
 
do
2261
 
  IFS=$as_save_IFS
2262
 
  test -z "$as_dir" && as_dir=.
2263
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2264
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265
 
    ac_cv_prog_ac_ct_CC="cc"
2266
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267
 
    break 2
2268
 
  fi
2269
 
done
2270
 
done
2271
 
 
2272
 
fi
2273
 
fi
2274
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275
 
if test -n "$ac_ct_CC"; then
2276
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277
 
echo "${ECHO_T}$ac_ct_CC" >&6
2278
 
else
2279
 
  echo "$as_me:$LINENO: result: no" >&5
2280
 
echo "${ECHO_T}no" >&6
2281
 
fi
2282
 
 
2283
 
  CC=$ac_ct_CC
2284
 
else
2285
 
  CC="$ac_cv_prog_CC"
2286
 
fi
2287
 
 
2288
 
fi
2289
 
if test -z "$CC"; then
2290
 
  # Extract the first word of "cc", so it can be a program name with args.
2291
 
set dummy cc; ac_word=$2
2292
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2293
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294
 
if test "${ac_cv_prog_CC+set}" = set; then
2295
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2296
 
else
2297
 
  if test -n "$CC"; then
2298
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2299
 
else
2300
 
  ac_prog_rejected=no
2301
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302
 
for as_dir in $PATH
2303
 
do
2304
 
  IFS=$as_save_IFS
2305
 
  test -z "$as_dir" && as_dir=.
2306
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2307
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309
 
       ac_prog_rejected=yes
2310
 
       continue
2311
 
     fi
2312
 
    ac_cv_prog_CC="cc"
2313
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314
 
    break 2
2315
 
  fi
2316
 
done
2317
 
done
2318
 
 
2319
 
if test $ac_prog_rejected = yes; then
2320
 
  # We found a bogon in the path, so make sure we never use it.
2321
 
  set dummy $ac_cv_prog_CC
2322
 
  shift
2323
 
  if test $# != 0; then
2324
 
    # We chose a different compiler from the bogus one.
2325
 
    # However, it has the same basename, so the bogon will be chosen
2326
 
    # first if we set CC to just the basename; use the full file name.
2327
 
    shift
2328
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2329
 
  fi
2330
 
fi
2331
 
fi
2332
 
fi
2333
 
CC=$ac_cv_prog_CC
2334
 
if test -n "$CC"; then
2335
 
  echo "$as_me:$LINENO: result: $CC" >&5
2336
 
echo "${ECHO_T}$CC" >&6
2337
 
else
2338
 
  echo "$as_me:$LINENO: result: no" >&5
2339
 
echo "${ECHO_T}no" >&6
2340
 
fi
2341
 
 
2342
 
fi
2343
 
if test -z "$CC"; then
2344
 
  if test -n "$ac_tool_prefix"; then
2345
 
  for ac_prog in cl
2346
 
  do
2347
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2348
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2349
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351
 
if test "${ac_cv_prog_CC+set}" = set; then
2352
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2353
 
else
2354
 
  if test -n "$CC"; then
2355
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2356
 
else
2357
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358
 
for as_dir in $PATH
2359
 
do
2360
 
  IFS=$as_save_IFS
2361
 
  test -z "$as_dir" && as_dir=.
2362
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2363
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2365
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366
 
    break 2
2367
 
  fi
2368
 
done
2369
 
done
2370
 
 
2371
 
fi
2372
 
fi
2373
 
CC=$ac_cv_prog_CC
2374
 
if test -n "$CC"; then
2375
 
  echo "$as_me:$LINENO: result: $CC" >&5
2376
 
echo "${ECHO_T}$CC" >&6
2377
 
else
2378
 
  echo "$as_me:$LINENO: result: no" >&5
2379
 
echo "${ECHO_T}no" >&6
2380
 
fi
2381
 
 
2382
 
    test -n "$CC" && break
2383
 
  done
2384
 
fi
2385
 
if test -z "$CC"; then
2386
 
  ac_ct_CC=$CC
2387
 
  for ac_prog in cl
2388
 
do
2389
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2390
 
set dummy $ac_prog; ac_word=$2
2391
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2392
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2395
 
else
2396
 
  if test -n "$ac_ct_CC"; then
2397
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398
 
else
2399
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400
 
for as_dir in $PATH
2401
 
do
2402
 
  IFS=$as_save_IFS
2403
 
  test -z "$as_dir" && as_dir=.
2404
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2405
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2407
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408
 
    break 2
2409
 
  fi
2410
 
done
2411
 
done
2412
 
 
2413
 
fi
2414
 
fi
2415
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416
 
if test -n "$ac_ct_CC"; then
2417
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418
 
echo "${ECHO_T}$ac_ct_CC" >&6
2419
 
else
2420
 
  echo "$as_me:$LINENO: result: no" >&5
2421
 
echo "${ECHO_T}no" >&6
2422
 
fi
2423
 
 
2424
 
  test -n "$ac_ct_CC" && break
2425
 
done
2426
 
 
2427
 
  CC=$ac_ct_CC
2428
 
fi
2429
 
 
2430
 
fi
2431
 
 
2432
 
 
2433
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2434
 
See \`config.log' for more details." >&5
2435
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2436
 
See \`config.log' for more details." >&2;}
2437
 
   { (exit 1); exit 1; }; }
2438
 
 
2439
 
# Provide some information about the compiler.
2440
 
echo "$as_me:$LINENO:" \
2441
 
     "checking for C compiler version" >&5
2442
 
ac_compiler=`set X $ac_compile; echo $2`
2443
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2444
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2445
 
  ac_status=$?
2446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
 
  (exit $ac_status); }
2448
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2449
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2450
 
  ac_status=$?
2451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452
 
  (exit $ac_status); }
2453
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2454
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2455
 
  ac_status=$?
2456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
 
  (exit $ac_status); }
2458
 
 
2459
 
cat >conftest.$ac_ext <<_ACEOF
2460
 
/* confdefs.h.  */
2461
 
_ACEOF
2462
 
cat confdefs.h >>conftest.$ac_ext
2463
 
cat >>conftest.$ac_ext <<_ACEOF
2464
 
/* end confdefs.h.  */
2465
 
 
2466
 
int
2467
 
main ()
2468
 
{
2469
 
 
2470
 
  ;
2471
 
  return 0;
2472
 
}
2473
 
_ACEOF
2474
 
ac_clean_files_save=$ac_clean_files
2475
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2476
 
# Try to create an executable without -o first, disregard a.out.
2477
 
# It will help us diagnose broken compilers, and finding out an intuition
2478
 
# of exeext.
2479
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2481
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2483
 
  (eval $ac_link_default) 2>&5
2484
 
  ac_status=$?
2485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
 
  (exit $ac_status); }; then
2487
 
  # Find the output, starting from the most likely.  This scheme is
2488
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2489
 
# resort.
2490
 
 
2491
 
# Be careful to initialize this variable, since it used to be cached.
2492
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2493
 
ac_cv_exeext=
2494
 
# b.out is created by i960 compilers.
2495
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2496
 
do
2497
 
  test -f "$ac_file" || continue
2498
 
  case $ac_file in
2499
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2500
 
        ;;
2501
 
    conftest.$ac_ext )
2502
 
        # This is the source file.
2503
 
        ;;
2504
 
    [ab].out )
2505
 
        # We found the default executable, but exeext='' is most
2506
 
        # certainly right.
2507
 
        break;;
2508
 
    *.* )
2509
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2511
 
        # but it would be cool to find out if it's true.  Does anybody
2512
 
        # maintain Libtool? --akim.
2513
 
        export ac_cv_exeext
2514
 
        break;;
2515
 
    * )
2516
 
        break;;
2517
 
  esac
2518
 
done
2519
 
else
2520
 
  echo "$as_me: failed program was:" >&5
2521
 
sed 's/^/| /' conftest.$ac_ext >&5
2522
 
 
2523
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524
 
See \`config.log' for more details." >&5
2525
 
echo "$as_me: error: C compiler cannot create executables
2526
 
See \`config.log' for more details." >&2;}
2527
 
   { (exit 77); exit 77; }; }
2528
 
fi
2529
 
 
2530
 
ac_exeext=$ac_cv_exeext
2531
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2532
 
echo "${ECHO_T}$ac_file" >&6
2533
 
 
2534
 
# Check the compiler produces executables we can run.  If not, either
2535
 
# the compiler is broken, or we cross compile.
2536
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2538
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539
 
# If not cross compiling, check that we can run a simple program.
2540
 
if test "$cross_compiling" != yes; then
2541
 
  if { ac_try='./$ac_file'
2542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543
 
  (eval $ac_try) 2>&5
2544
 
  ac_status=$?
2545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546
 
  (exit $ac_status); }; }; then
2547
 
    cross_compiling=no
2548
 
  else
2549
 
    if test "$cross_compiling" = maybe; then
2550
 
        cross_compiling=yes
2551
 
    else
2552
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2553
 
If you meant to cross compile, use \`--host'.
2554
 
See \`config.log' for more details." >&5
2555
 
echo "$as_me: error: cannot run C compiled programs.
2556
 
If you meant to cross compile, use \`--host'.
2557
 
See \`config.log' for more details." >&2;}
2558
 
   { (exit 1); exit 1; }; }
2559
 
    fi
2560
 
  fi
2561
 
fi
2562
 
echo "$as_me:$LINENO: result: yes" >&5
2563
 
echo "${ECHO_T}yes" >&6
2564
 
 
2565
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2566
 
ac_clean_files=$ac_clean_files_save
2567
 
# Check the compiler produces executables we can run.  If not, either
2568
 
# the compiler is broken, or we cross compile.
2569
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2570
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2571
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2572
 
echo "${ECHO_T}$cross_compiling" >&6
2573
 
 
2574
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2575
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2576
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2577
 
  (eval $ac_link) 2>&5
2578
 
  ac_status=$?
2579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
 
  (exit $ac_status); }; then
2581
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2582
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2583
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2584
 
# `rm'.
2585
 
for ac_file in conftest.exe conftest conftest.*; do
2586
 
  test -f "$ac_file" || continue
2587
 
  case $ac_file in
2588
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2589
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590
 
          export ac_cv_exeext
2591
 
          break;;
2592
 
    * ) break;;
2593
 
  esac
2594
 
done
2595
 
else
2596
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2597
 
See \`config.log' for more details." >&5
2598
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2599
 
See \`config.log' for more details." >&2;}
2600
 
   { (exit 1); exit 1; }; }
2601
 
fi
2602
 
 
2603
 
rm -f conftest$ac_cv_exeext
2604
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2605
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2606
 
 
2607
 
rm -f conftest.$ac_ext
2608
 
EXEEXT=$ac_cv_exeext
2609
 
ac_exeext=$EXEEXT
2610
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2611
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2612
 
if test "${ac_cv_objext+set}" = set; then
2613
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2614
 
else
2615
 
  cat >conftest.$ac_ext <<_ACEOF
2616
 
/* confdefs.h.  */
2617
 
_ACEOF
2618
 
cat confdefs.h >>conftest.$ac_ext
2619
 
cat >>conftest.$ac_ext <<_ACEOF
2620
 
/* end confdefs.h.  */
2621
 
 
2622
 
int
2623
 
main ()
2624
 
{
2625
 
 
2626
 
  ;
2627
 
  return 0;
2628
 
}
2629
 
_ACEOF
2630
 
rm -f conftest.o conftest.obj
2631
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632
 
  (eval $ac_compile) 2>&5
2633
 
  ac_status=$?
2634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635
 
  (exit $ac_status); }; then
2636
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2637
 
  case $ac_file in
2638
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2639
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2640
 
       break;;
2641
 
  esac
2642
 
done
2643
 
else
2644
 
  echo "$as_me: failed program was:" >&5
2645
 
sed 's/^/| /' conftest.$ac_ext >&5
2646
 
 
2647
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2648
 
See \`config.log' for more details." >&5
2649
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2650
 
See \`config.log' for more details." >&2;}
2651
 
   { (exit 1); exit 1; }; }
2652
 
fi
2653
 
 
2654
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2655
 
fi
2656
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2657
 
echo "${ECHO_T}$ac_cv_objext" >&6
2658
 
OBJEXT=$ac_cv_objext
2659
 
ac_objext=$OBJEXT
2660
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2661
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2662
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2663
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2664
 
else
2665
 
  cat >conftest.$ac_ext <<_ACEOF
2666
 
/* confdefs.h.  */
2667
 
_ACEOF
2668
 
cat confdefs.h >>conftest.$ac_ext
2669
 
cat >>conftest.$ac_ext <<_ACEOF
2670
 
/* end confdefs.h.  */
2671
 
 
2672
 
int
2673
 
main ()
2674
 
{
2675
 
#ifndef __GNUC__
2676
 
       choke me
2677
 
#endif
2678
 
 
2679
 
  ;
2680
 
  return 0;
2681
 
}
2682
 
_ACEOF
2683
 
rm -f conftest.$ac_objext
2684
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685
 
  (eval $ac_compile) 2>conftest.er1
2686
 
  ac_status=$?
2687
 
  grep -v '^ *+' conftest.er1 >conftest.err
2688
 
  rm -f conftest.er1
2689
 
  cat conftest.err >&5
2690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
 
  (exit $ac_status); } &&
2692
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2693
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694
 
  (eval $ac_try) 2>&5
2695
 
  ac_status=$?
2696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
 
  (exit $ac_status); }; } &&
2698
 
         { ac_try='test -s conftest.$ac_objext'
2699
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700
 
  (eval $ac_try) 2>&5
2701
 
  ac_status=$?
2702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
 
  (exit $ac_status); }; }; then
2704
 
  ac_compiler_gnu=yes
2705
 
else
2706
 
  echo "$as_me: failed program was:" >&5
2707
 
sed 's/^/| /' conftest.$ac_ext >&5
2708
 
 
2709
 
ac_compiler_gnu=no
2710
 
fi
2711
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2713
 
 
2714
 
fi
2715
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2716
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2717
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2718
 
ac_test_CFLAGS=${CFLAGS+set}
2719
 
ac_save_CFLAGS=$CFLAGS
2720
 
CFLAGS="-g"
2721
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2722
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2723
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2725
 
else
2726
 
  cat >conftest.$ac_ext <<_ACEOF
2727
 
/* confdefs.h.  */
2728
 
_ACEOF
2729
 
cat confdefs.h >>conftest.$ac_ext
2730
 
cat >>conftest.$ac_ext <<_ACEOF
2731
 
/* end confdefs.h.  */
2732
 
 
2733
 
int
2734
 
main ()
2735
 
{
2736
 
 
2737
 
  ;
2738
 
  return 0;
2739
 
}
2740
 
_ACEOF
2741
 
rm -f conftest.$ac_objext
2742
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743
 
  (eval $ac_compile) 2>conftest.er1
2744
 
  ac_status=$?
2745
 
  grep -v '^ *+' conftest.er1 >conftest.err
2746
 
  rm -f conftest.er1
2747
 
  cat conftest.err >&5
2748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
 
  (exit $ac_status); } &&
2750
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2751
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752
 
  (eval $ac_try) 2>&5
2753
 
  ac_status=$?
2754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
 
  (exit $ac_status); }; } &&
2756
 
         { ac_try='test -s conftest.$ac_objext'
2757
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
 
  (eval $ac_try) 2>&5
2759
 
  ac_status=$?
2760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
 
  (exit $ac_status); }; }; then
2762
 
  ac_cv_prog_cc_g=yes
2763
 
else
2764
 
  echo "$as_me: failed program was:" >&5
2765
 
sed 's/^/| /' conftest.$ac_ext >&5
2766
 
 
2767
 
ac_cv_prog_cc_g=no
2768
 
fi
2769
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770
 
fi
2771
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2773
 
if test "$ac_test_CFLAGS" = set; then
2774
 
  CFLAGS=$ac_save_CFLAGS
2775
 
elif test $ac_cv_prog_cc_g = yes; then
2776
 
  if test "$GCC" = yes; then
2777
 
    CFLAGS="-g -O2"
2778
 
  else
2779
 
    CFLAGS="-g"
2780
 
  fi
2781
 
else
2782
 
  if test "$GCC" = yes; then
2783
 
    CFLAGS="-O2"
2784
 
  else
2785
 
    CFLAGS=
2786
 
  fi
2787
 
fi
2788
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2789
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2790
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2792
 
else
2793
 
  ac_cv_prog_cc_stdc=no
2794
 
ac_save_CC=$CC
2795
 
cat >conftest.$ac_ext <<_ACEOF
2796
 
/* confdefs.h.  */
2797
 
_ACEOF
2798
 
cat confdefs.h >>conftest.$ac_ext
2799
 
cat >>conftest.$ac_ext <<_ACEOF
2800
 
/* end confdefs.h.  */
2801
 
#include <stdarg.h>
2802
 
#include <stdio.h>
2803
 
#include <sys/types.h>
2804
 
#include <sys/stat.h>
2805
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2806
 
struct buf { int x; };
2807
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808
 
static char *e (p, i)
2809
 
     char **p;
2810
 
     int i;
2811
 
{
2812
 
  return p[i];
2813
 
}
2814
 
static char *f (char * (*g) (char **, int), char **p, ...)
2815
 
{
2816
 
  char *s;
2817
 
  va_list v;
2818
 
  va_start (v,p);
2819
 
  s = g (p, va_arg (v,int));
2820
 
  va_end (v);
2821
 
  return s;
2822
 
}
2823
 
 
2824
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2825
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2826
 
   These don't provoke an error unfortunately, instead are silently treated
2827
 
   as 'x'.  The following induces an error, until -std1 is added to get
2828
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2829
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2830
 
   that's true only with -std1.  */
2831
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2832
 
 
2833
 
int test (int i, double x);
2834
 
struct s1 {int (*f) (int a);};
2835
 
struct s2 {int (*f) (double a);};
2836
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2837
 
int argc;
2838
 
char **argv;
2839
 
int
2840
 
main ()
2841
 
{
2842
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2843
 
  ;
2844
 
  return 0;
2845
 
}
2846
 
_ACEOF
2847
 
# Don't try gcc -ansi; that turns off useful extensions and
2848
 
# breaks some systems' header files.
2849
 
# AIX                   -qlanglvl=ansi
2850
 
# Ultrix and OSF/1      -std1
2851
 
# HP-UX 10.20 and later -Ae
2852
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2853
 
# SVR4                  -Xc -D__EXTENSIONS__
2854
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855
 
do
2856
 
  CC="$ac_save_CC $ac_arg"
2857
 
  rm -f conftest.$ac_objext
2858
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859
 
  (eval $ac_compile) 2>conftest.er1
2860
 
  ac_status=$?
2861
 
  grep -v '^ *+' conftest.er1 >conftest.err
2862
 
  rm -f conftest.er1
2863
 
  cat conftest.err >&5
2864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865
 
  (exit $ac_status); } &&
2866
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2867
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868
 
  (eval $ac_try) 2>&5
2869
 
  ac_status=$?
2870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
 
  (exit $ac_status); }; } &&
2872
 
         { ac_try='test -s conftest.$ac_objext'
2873
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874
 
  (eval $ac_try) 2>&5
2875
 
  ac_status=$?
2876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
 
  (exit $ac_status); }; }; then
2878
 
  ac_cv_prog_cc_stdc=$ac_arg
2879
 
break
2880
 
else
2881
 
  echo "$as_me: failed program was:" >&5
2882
 
sed 's/^/| /' conftest.$ac_ext >&5
2883
 
 
2884
 
fi
2885
 
rm -f conftest.err conftest.$ac_objext
2886
 
done
2887
 
rm -f conftest.$ac_ext conftest.$ac_objext
2888
 
CC=$ac_save_CC
2889
 
 
2890
 
fi
2891
 
 
2892
 
case "x$ac_cv_prog_cc_stdc" in
2893
 
  x|xno)
2894
 
    echo "$as_me:$LINENO: result: none needed" >&5
2895
 
echo "${ECHO_T}none needed" >&6 ;;
2896
 
  *)
2897
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2898
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2899
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2900
 
esac
2901
 
 
2902
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2903
 
# in C++ we need to declare it.  In case someone uses the same compiler
2904
 
# for both compiling C and C++ we need to have the C++ compiler decide
2905
 
# the declaration of exit, since it's the most demanding environment.
2906
 
cat >conftest.$ac_ext <<_ACEOF
2907
 
#ifndef __cplusplus
2908
 
  choke me
2909
 
#endif
2910
 
_ACEOF
2911
 
rm -f conftest.$ac_objext
2912
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913
 
  (eval $ac_compile) 2>conftest.er1
2914
 
  ac_status=$?
2915
 
  grep -v '^ *+' conftest.er1 >conftest.err
2916
 
  rm -f conftest.er1
2917
 
  cat conftest.err >&5
2918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
 
  (exit $ac_status); } &&
2920
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922
 
  (eval $ac_try) 2>&5
2923
 
  ac_status=$?
2924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
 
  (exit $ac_status); }; } &&
2926
 
         { ac_try='test -s conftest.$ac_objext'
2927
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
 
  (eval $ac_try) 2>&5
2929
 
  ac_status=$?
2930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
 
  (exit $ac_status); }; }; then
2932
 
  for ac_declaration in \
2933
 
   '' \
2934
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2935
 
   'extern "C" void std::exit (int); using std::exit;' \
2936
 
   'extern "C" void exit (int) throw ();' \
2937
 
   'extern "C" void exit (int);' \
2938
 
   'void exit (int);'
2939
 
do
2940
 
  cat >conftest.$ac_ext <<_ACEOF
2941
 
/* confdefs.h.  */
2942
 
_ACEOF
2943
 
cat confdefs.h >>conftest.$ac_ext
2944
 
cat >>conftest.$ac_ext <<_ACEOF
2945
 
/* end confdefs.h.  */
2946
 
$ac_declaration
2947
 
#include <stdlib.h>
2948
 
int
2949
 
main ()
2950
 
{
2951
 
exit (42);
2952
 
  ;
2953
 
  return 0;
2954
 
}
2955
 
_ACEOF
2956
 
rm -f conftest.$ac_objext
2957
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958
 
  (eval $ac_compile) 2>conftest.er1
2959
 
  ac_status=$?
2960
 
  grep -v '^ *+' conftest.er1 >conftest.err
2961
 
  rm -f conftest.er1
2962
 
  cat conftest.err >&5
2963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964
 
  (exit $ac_status); } &&
2965
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2966
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967
 
  (eval $ac_try) 2>&5
2968
 
  ac_status=$?
2969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970
 
  (exit $ac_status); }; } &&
2971
 
         { ac_try='test -s conftest.$ac_objext'
2972
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973
 
  (eval $ac_try) 2>&5
2974
 
  ac_status=$?
2975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976
 
  (exit $ac_status); }; }; then
2977
 
  :
2978
 
else
2979
 
  echo "$as_me: failed program was:" >&5
2980
 
sed 's/^/| /' conftest.$ac_ext >&5
2981
 
 
2982
 
continue
2983
 
fi
2984
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985
 
  cat >conftest.$ac_ext <<_ACEOF
2986
 
/* confdefs.h.  */
2987
 
_ACEOF
2988
 
cat confdefs.h >>conftest.$ac_ext
2989
 
cat >>conftest.$ac_ext <<_ACEOF
2990
 
/* end confdefs.h.  */
2991
 
$ac_declaration
2992
 
int
2993
 
main ()
2994
 
{
2995
 
exit (42);
2996
 
  ;
2997
 
  return 0;
2998
 
}
2999
 
_ACEOF
3000
 
rm -f conftest.$ac_objext
3001
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002
 
  (eval $ac_compile) 2>conftest.er1
3003
 
  ac_status=$?
3004
 
  grep -v '^ *+' conftest.er1 >conftest.err
3005
 
  rm -f conftest.er1
3006
 
  cat conftest.err >&5
3007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
 
  (exit $ac_status); } &&
3009
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3010
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011
 
  (eval $ac_try) 2>&5
3012
 
  ac_status=$?
3013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
 
  (exit $ac_status); }; } &&
3015
 
         { ac_try='test -s conftest.$ac_objext'
3016
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017
 
  (eval $ac_try) 2>&5
3018
 
  ac_status=$?
3019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
 
  (exit $ac_status); }; }; then
3021
 
  break
3022
 
else
3023
 
  echo "$as_me: failed program was:" >&5
3024
 
sed 's/^/| /' conftest.$ac_ext >&5
3025
 
 
3026
 
fi
3027
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028
 
done
3029
 
rm -f conftest*
3030
 
if test -n "$ac_declaration"; then
3031
 
  echo '#ifdef __cplusplus' >>confdefs.h
3032
 
  echo $ac_declaration      >>confdefs.h
3033
 
  echo '#endif'             >>confdefs.h
3034
 
fi
3035
 
 
3036
 
else
3037
 
  echo "$as_me: failed program was:" >&5
3038
 
sed 's/^/| /' conftest.$ac_ext >&5
3039
 
 
3040
 
fi
3041
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042
 
ac_ext=c
3043
 
ac_cpp='$CPP $CPPFLAGS'
3044
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
 
 
3048
 
depcc="$CC"   am_compiler_list=
3049
 
 
3050
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3051
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3052
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3053
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3054
 
else
3055
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3056
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3057
 
  # making bogus files that we don't know about and never remove.  For
3058
 
  # instance it was reported that on HP-UX the gcc test will end up
3059
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3060
 
  # in D'.
3061
 
  mkdir conftest.dir
3062
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3063
 
  # using a relative directory.
3064
 
  cp "$am_depcomp" conftest.dir
3065
 
  cd conftest.dir
3066
 
 
3067
 
  am_cv_CC_dependencies_compiler_type=none
3068
 
  if test "$am_compiler_list" = ""; then
3069
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3070
 
  fi
3071
 
  for depmode in $am_compiler_list; do
3072
 
    # We need to recreate these files for each test, as the compiler may
3073
 
    # overwrite some of them when testing with obscure command lines.
3074
 
    # This happens at least with the AIX C compiler.
3075
 
    echo '#include "conftest.h"' > conftest.c
3076
 
    echo 'int i;' > conftest.h
3077
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3078
 
 
3079
 
    case $depmode in
3080
 
    nosideeffect)
3081
 
      # after this tag, mechanisms are not by side-effect, so they'll
3082
 
      # only be used when explicitly requested
3083
 
      if test "x$enable_dependency_tracking" = xyes; then
3084
 
        continue
3085
 
      else
3086
 
        break
3087
 
      fi
3088
 
      ;;
3089
 
    none) break ;;
3090
 
    esac
3091
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3092
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3093
 
    # handle `-M -o', and we need to detect this.
3094
 
    if depmode=$depmode \
3095
 
       source=conftest.c object=conftest.o \
3096
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3097
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3098
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3099
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3100
 
      am_cv_CC_dependencies_compiler_type=$depmode
3101
 
      break
3102
 
    fi
3103
 
  done
3104
 
 
3105
 
  cd ..
3106
 
  rm -rf conftest.dir
3107
 
else
3108
 
  am_cv_CC_dependencies_compiler_type=none
3109
 
fi
3110
 
 
3111
 
fi
3112
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3113
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3114
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3115
 
 
3116
 
 
3117
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3118
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3119
 
if test "${lt_cv_path_SED+set}" = set; then
3120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3121
 
else
3122
 
  # Loop through the user's path and test for sed and gsed.
3123
 
# Then use that list of sed's as ones to test for truncation.
3124
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125
 
for as_dir in $PATH
3126
 
do
3127
 
  IFS=$as_save_IFS
3128
 
  test -z "$as_dir" && as_dir=.
3129
 
  for lt_ac_prog in sed gsed; do
3130
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3131
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3132
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3133
 
      fi
3134
 
    done
3135
 
  done
3136
 
done
3137
 
lt_ac_max=0
3138
 
lt_ac_count=0
3139
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3140
 
# along with /bin/sed that truncates output.
3141
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3142
 
  test ! -f $lt_ac_sed && break
3143
 
  cat /dev/null > conftest.in
3144
 
  lt_ac_count=0
3145
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3146
 
  # Check for GNU sed and select it if it is found.
3147
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3148
 
    lt_cv_path_SED=$lt_ac_sed
3149
 
    break
3150
 
  fi
3151
 
  while true; do
3152
 
    cat conftest.in conftest.in >conftest.tmp
3153
 
    mv conftest.tmp conftest.in
3154
 
    cp conftest.in conftest.nl
3155
 
    echo >>conftest.nl
3156
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3157
 
    cmp -s conftest.out conftest.nl || break
3158
 
    # 10000 chars as input seems more than enough
3159
 
    test $lt_ac_count -gt 10 && break
3160
 
    lt_ac_count=`expr $lt_ac_count + 1`
3161
 
    if test $lt_ac_count -gt $lt_ac_max; then
3162
 
      lt_ac_max=$lt_ac_count
3163
 
      lt_cv_path_SED=$lt_ac_sed
3164
 
    fi
3165
 
  done
3166
 
done
3167
 
SED=$lt_cv_path_SED
3168
 
 
3169
 
fi
3170
 
 
3171
 
echo "$as_me:$LINENO: result: $SED" >&5
3172
 
echo "${ECHO_T}$SED" >&6
3173
 
 
3174
 
echo "$as_me:$LINENO: checking for egrep" >&5
3175
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3176
 
if test "${ac_cv_prog_egrep+set}" = set; then
3177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3178
 
else
3179
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3180
 
    then ac_cv_prog_egrep='grep -E'
3181
 
    else ac_cv_prog_egrep='egrep'
3182
 
    fi
3183
 
fi
3184
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3185
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3186
 
 EGREP=$ac_cv_prog_egrep
3187
 
 
3188
 
 
3189
 
 
3190
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3191
 
if test "${with_gnu_ld+set}" = set; then
3192
 
  withval="$with_gnu_ld"
3193
 
  test "$withval" = no || with_gnu_ld=yes
3194
 
else
3195
 
  with_gnu_ld=no
3196
 
fi;
3197
 
ac_prog=ld
3198
 
if test "$GCC" = yes; then
3199
 
  # Check if gcc -print-prog-name=ld gives a path.
3200
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3201
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3202
 
  case $host in
3203
 
  *-*-mingw*)
3204
 
    # gcc leaves a trailing carriage return which upsets mingw
3205
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3206
 
  *)
3207
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3208
 
  esac
3209
 
  case $ac_prog in
3210
 
    # Accept absolute paths.
3211
 
    [\\/]* | ?:[\\/]*)
3212
 
      re_direlt='/[^/][^/]*/\.\./'
3213
 
      # Canonicalize the pathname of ld
3214
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3215
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3216
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3217
 
      done
3218
 
      test -z "$LD" && LD="$ac_prog"
3219
 
      ;;
3220
 
  "")
3221
 
    # If it fails, then pretend we aren't using GCC.
3222
 
    ac_prog=ld
3223
 
    ;;
3224
 
  *)
3225
 
    # If it is relative, then search for the first ld in PATH.
3226
 
    with_gnu_ld=unknown
3227
 
    ;;
3228
 
  esac
3229
 
elif test "$with_gnu_ld" = yes; then
3230
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3231
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3232
 
else
3233
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3234
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3235
 
fi
3236
 
if test "${lt_cv_path_LD+set}" = set; then
3237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3238
 
else
3239
 
  if test -z "$LD"; then
3240
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3241
 
  for ac_dir in $PATH; do
3242
 
    IFS="$lt_save_ifs"
3243
 
    test -z "$ac_dir" && ac_dir=.
3244
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3245
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3246
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3247
 
      # but apparently some GNU ld's only accept -v.
3248
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3249
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3250
 
      *GNU* | *'with BFD'*)
3251
 
        test "$with_gnu_ld" != no && break
3252
 
        ;;
3253
 
      *)
3254
 
        test "$with_gnu_ld" != yes && break
3255
 
        ;;
3256
 
      esac
3257
 
    fi
3258
 
  done
3259
 
  IFS="$lt_save_ifs"
3260
 
else
3261
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3262
 
fi
3263
 
fi
3264
 
 
3265
 
LD="$lt_cv_path_LD"
3266
 
if test -n "$LD"; then
3267
 
  echo "$as_me:$LINENO: result: $LD" >&5
3268
 
echo "${ECHO_T}$LD" >&6
3269
 
else
3270
 
  echo "$as_me:$LINENO: result: no" >&5
3271
 
echo "${ECHO_T}no" >&6
3272
 
fi
3273
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3274
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3275
 
   { (exit 1); exit 1; }; }
3276
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3277
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3278
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3280
 
else
3281
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3282
 
case `$LD -v 2>&1 </dev/null` in
3283
 
*GNU* | *'with BFD'*)
3284
 
  lt_cv_prog_gnu_ld=yes
3285
 
  ;;
3286
 
*)
3287
 
  lt_cv_prog_gnu_ld=no
3288
 
  ;;
3289
 
esac
3290
 
fi
3291
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3292
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3293
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3294
 
 
3295
 
 
3296
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3297
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3298
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3300
 
else
3301
 
  lt_cv_ld_reload_flag='-r'
3302
 
fi
3303
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3304
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3305
 
reload_flag=$lt_cv_ld_reload_flag
3306
 
case $reload_flag in
3307
 
"" | " "*) ;;
3308
 
*) reload_flag=" $reload_flag" ;;
3309
 
esac
3310
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3311
 
 
3312
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3313
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3314
 
if test "${lt_cv_path_NM+set}" = set; then
3315
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3316
 
else
3317
 
  if test -n "$NM"; then
3318
 
  # Let the user override the test.
3319
 
  lt_cv_path_NM="$NM"
3320
 
else
3321
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3322
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3323
 
    IFS="$lt_save_ifs"
3324
 
    test -z "$ac_dir" && ac_dir=.
3325
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3326
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3327
 
      # Check to see if the nm accepts a BSD-compat flag.
3328
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3329
 
      #   nm: unknown option "B" ignored
3330
 
      # Tru64's nm complains that /dev/null is an invalid object file
3331
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3332
 
      */dev/null* | *'Invalid file or object type'*)
3333
 
        lt_cv_path_NM="$tmp_nm -B"
3334
 
        break
3335
 
        ;;
3336
 
      *)
3337
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3338
 
        */dev/null*)
3339
 
          lt_cv_path_NM="$tmp_nm -p"
3340
 
          break
3341
 
          ;;
3342
 
        *)
3343
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3344
 
          continue # so that we can try to find one that supports BSD flags
3345
 
          ;;
3346
 
        esac
3347
 
      esac
3348
 
    fi
3349
 
  done
3350
 
  IFS="$lt_save_ifs"
3351
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3352
 
fi
3353
 
fi
3354
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3355
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
3356
 
NM="$lt_cv_path_NM"
3357
 
 
3358
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3359
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3360
 
LN_S=$as_ln_s
3361
 
if test "$LN_S" = "ln -s"; then
3362
 
  echo "$as_me:$LINENO: result: yes" >&5
3363
 
echo "${ECHO_T}yes" >&6
3364
 
else
3365
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3366
 
echo "${ECHO_T}no, using $LN_S" >&6
3367
 
fi
3368
 
 
3369
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3370
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3371
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
3372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3373
 
else
3374
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3375
 
lt_cv_file_magic_test_file=
3376
 
lt_cv_deplibs_check_method='unknown'
3377
 
# Need to set the preceding variable on all platforms that support
3378
 
# interlibrary dependencies.
3379
 
# 'none' -- dependencies not supported.
3380
 
# `unknown' -- same as none, but documents that we really don't know.
3381
 
# 'pass_all' -- all dependencies passed with no checks.
3382
 
# 'test_compile' -- check by making test program.
3383
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3384
 
# which responds to the $file_magic_cmd with a given extended regex.
3385
 
# If you have `file' or equivalent on your system and you're not sure
3386
 
# whether `pass_all' will *always* work, you probably want this one.
3387
 
 
3388
 
case $host_os in
3389
 
aix4* | aix5*)
3390
 
  lt_cv_deplibs_check_method=pass_all
3391
 
  ;;
3392
 
 
3393
 
beos*)
3394
 
  lt_cv_deplibs_check_method=pass_all
3395
 
  ;;
3396
 
 
3397
 
bsdi4*)
3398
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3399
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3400
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3401
 
  ;;
3402
 
 
3403
 
cygwin*)
3404
 
  # win32_libid is a shell function defined in ltmain.sh
3405
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3406
 
  lt_cv_file_magic_cmd='win32_libid'
3407
 
  ;;
3408
 
 
3409
 
mingw* | pw32*)
3410
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
3411
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
3412
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3413
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3414
 
  ;;
3415
 
 
3416
 
darwin* | rhapsody*)
3417
 
  lt_cv_deplibs_check_method=pass_all
3418
 
  ;;
3419
 
 
3420
 
freebsd* | kfreebsd*-gnu)
3421
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3422
 
    case $host_cpu in
3423
 
    i*86 )
3424
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3425
 
      # Let's accept both of them until this is cleared up.
3426
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3427
 
      lt_cv_file_magic_cmd=/usr/bin/file
3428
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3429
 
      ;;
3430
 
    esac
3431
 
  else
3432
 
    lt_cv_deplibs_check_method=pass_all
3433
 
  fi
3434
 
  ;;
3435
 
 
3436
 
gnu*)
3437
 
  lt_cv_deplibs_check_method=pass_all
3438
 
  ;;
3439
 
 
3440
 
hpux10.20* | hpux11*)
3441
 
  lt_cv_file_magic_cmd=/usr/bin/file
3442
 
  case "$host_cpu" in
3443
 
  ia64*)
3444
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3445
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3446
 
    ;;
3447
 
  hppa*64*)
3448
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3449
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3450
 
    ;;
3451
 
  *)
3452
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3453
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3454
 
    ;;
3455
 
  esac
3456
 
  ;;
3457
 
 
3458
 
irix5* | irix6* | nonstopux*)
3459
 
  case $LD in
3460
 
  *-32|*"-32 ") libmagic=32-bit;;
3461
 
  *-n32|*"-n32 ") libmagic=N32;;
3462
 
  *-64|*"-64 ") libmagic=64-bit;;
3463
 
  *) libmagic=never-match;;
3464
 
  esac
3465
 
  lt_cv_deplibs_check_method=pass_all
3466
 
  ;;
3467
 
 
3468
 
# This must be Linux ELF.
3469
 
linux*)
3470
 
  lt_cv_deplibs_check_method=pass_all
3471
 
  ;;
3472
 
 
3473
 
netbsd* | knetbsd*-gnu)
3474
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3475
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3476
 
  else
3477
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3478
 
  fi
3479
 
  ;;
3480
 
 
3481
 
newos6*)
3482
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3483
 
  lt_cv_file_magic_cmd=/usr/bin/file
3484
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3485
 
  ;;
3486
 
 
3487
 
nto-qnx*)
3488
 
  lt_cv_deplibs_check_method=unknown
3489
 
  ;;
3490
 
 
3491
 
openbsd*)
3492
 
  lt_cv_file_magic_cmd=/usr/bin/file
3493
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3494
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3495
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3496
 
  else
3497
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3498
 
  fi
3499
 
  ;;
3500
 
 
3501
 
osf3* | osf4* | osf5*)
3502
 
  lt_cv_deplibs_check_method=pass_all
3503
 
  ;;
3504
 
 
3505
 
sco3.2v5*)
3506
 
  lt_cv_deplibs_check_method=pass_all
3507
 
  ;;
3508
 
 
3509
 
solaris*)
3510
 
  lt_cv_deplibs_check_method=pass_all
3511
 
  ;;
3512
 
 
3513
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3514
 
  case $host_vendor in
3515
 
  motorola)
3516
 
    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]'
3517
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3518
 
    ;;
3519
 
  ncr)
3520
 
    lt_cv_deplibs_check_method=pass_all
3521
 
    ;;
3522
 
  sequent)
3523
 
    lt_cv_file_magic_cmd='/bin/file'
3524
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3525
 
    ;;
3526
 
  sni)
3527
 
    lt_cv_file_magic_cmd='/bin/file'
3528
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3529
 
    lt_cv_file_magic_test_file=/lib/libc.so
3530
 
    ;;
3531
 
  siemens)
3532
 
    lt_cv_deplibs_check_method=pass_all
3533
 
    ;;
3534
 
  esac
3535
 
  ;;
3536
 
 
3537
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3538
 
  lt_cv_deplibs_check_method=pass_all
3539
 
  ;;
3540
 
esac
3541
 
 
3542
 
fi
3543
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3544
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3545
 
file_magic_cmd=$lt_cv_file_magic_cmd
3546
 
deplibs_check_method=$lt_cv_deplibs_check_method
3547
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3548
 
 
3549
 
 
3550
 
 
3551
 
 
3552
 
# If no C compiler was specified, use CC.
3553
 
LTCC=${LTCC-"$CC"}
3554
 
 
3555
 
# Allow CC to be a program name with arguments.
3556
 
compiler=$CC
3557
 
 
3558
 
 
3559
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3560
 
if test "${enable_libtool_lock+set}" = set; then
3561
 
  enableval="$enable_libtool_lock"
3562
 
 
3563
 
fi;
3564
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3565
 
 
3566
 
# Some flags need to be propagated to the compiler or linker for good
3567
 
# libtool support.
3568
 
case $host in
3569
 
ia64-*-hpux*)
3570
 
  # Find out which ABI we are using.
3571
 
  echo 'int i;' > conftest.$ac_ext
3572
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573
 
  (eval $ac_compile) 2>&5
3574
 
  ac_status=$?
3575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576
 
  (exit $ac_status); }; then
3577
 
    case `/usr/bin/file conftest.$ac_objext` in
3578
 
    *ELF-32*)
3579
 
      HPUX_IA64_MODE="32"
3580
 
      ;;
3581
 
    *ELF-64*)
3582
 
      HPUX_IA64_MODE="64"
3583
 
      ;;
3584
 
    esac
3585
 
  fi
3586
 
  rm -rf conftest*
3587
 
  ;;
3588
 
*-*-irix6*)
3589
 
  # Find out which ABI we are using.
3590
 
  echo '#line 3590 "configure"' > conftest.$ac_ext
3591
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592
 
  (eval $ac_compile) 2>&5
3593
 
  ac_status=$?
3594
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595
 
  (exit $ac_status); }; then
3596
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
3597
 
    case `/usr/bin/file conftest.$ac_objext` in
3598
 
    *32-bit*)
3599
 
      LD="${LD-ld} -melf32bsmip"
3600
 
      ;;
3601
 
    *N32*)
3602
 
      LD="${LD-ld} -melf32bmipn32"
3603
 
      ;;
3604
 
    *64-bit*)
3605
 
      LD="${LD-ld} -melf64bmip"
3606
 
      ;;
3607
 
    esac
3608
 
   else
3609
 
    case `/usr/bin/file conftest.$ac_objext` in
3610
 
    *32-bit*)
3611
 
      LD="${LD-ld} -32"
3612
 
      ;;
3613
 
    *N32*)
3614
 
      LD="${LD-ld} -n32"
3615
 
      ;;
3616
 
    *64-bit*)
3617
 
      LD="${LD-ld} -64"
3618
 
      ;;
3619
 
    esac
3620
 
   fi
3621
 
  fi
3622
 
  rm -rf conftest*
3623
 
  ;;
3624
 
 
3625
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3626
 
  # Find out which ABI we are using.
3627
 
  echo 'int i;' > conftest.$ac_ext
3628
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629
 
  (eval $ac_compile) 2>&5
3630
 
  ac_status=$?
3631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
 
  (exit $ac_status); }; then
3633
 
    case "`/usr/bin/file conftest.o`" in
3634
 
    *32-bit*)
3635
 
      case $host in
3636
 
        x86_64-*linux*)
3637
 
          LD="${LD-ld} -m elf_i386"
3638
 
          ;;
3639
 
        ppc64-*linux*|powerpc64-*linux*)
3640
 
          LD="${LD-ld} -m elf32ppclinux"
3641
 
          ;;
3642
 
        s390x-*linux*)
3643
 
          LD="${LD-ld} -m elf_s390"
3644
 
          ;;
3645
 
        sparc64-*linux*)
3646
 
          LD="${LD-ld} -m elf32_sparc"
3647
 
          ;;
3648
 
      esac
3649
 
      ;;
3650
 
    *64-bit*)
3651
 
      case $host in
3652
 
        x86_64-*linux*)
3653
 
          LD="${LD-ld} -m elf_x86_64"
3654
 
          ;;
3655
 
        ppc*-*linux*|powerpc*-*linux*)
3656
 
          LD="${LD-ld} -m elf64ppc"
3657
 
          ;;
3658
 
        s390*-*linux*)
3659
 
          LD="${LD-ld} -m elf64_s390"
3660
 
          ;;
3661
 
        sparc*-*linux*)
3662
 
          LD="${LD-ld} -m elf64_sparc"
3663
 
          ;;
3664
 
      esac
3665
 
      ;;
3666
 
    esac
3667
 
  fi
3668
 
  rm -rf conftest*
3669
 
  ;;
3670
 
 
3671
 
*-*-sco3.2v5*)
3672
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3673
 
  SAVE_CFLAGS="$CFLAGS"
3674
 
  CFLAGS="$CFLAGS -belf"
3675
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3676
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3677
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
3678
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3679
 
else
3680
 
  ac_ext=c
3681
 
ac_cpp='$CPP $CPPFLAGS'
3682
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
 
 
3686
 
     cat >conftest.$ac_ext <<_ACEOF
3687
 
/* confdefs.h.  */
3688
 
_ACEOF
3689
 
cat confdefs.h >>conftest.$ac_ext
3690
 
cat >>conftest.$ac_ext <<_ACEOF
3691
 
/* end confdefs.h.  */
3692
 
 
3693
 
int
3694
 
main ()
3695
 
{
3696
 
 
3697
 
  ;
3698
 
  return 0;
3699
 
}
3700
 
_ACEOF
3701
 
rm -f conftest.$ac_objext conftest$ac_exeext
3702
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703
 
  (eval $ac_link) 2>conftest.er1
3704
 
  ac_status=$?
3705
 
  grep -v '^ *+' conftest.er1 >conftest.err
3706
 
  rm -f conftest.er1
3707
 
  cat conftest.err >&5
3708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
 
  (exit $ac_status); } &&
3710
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712
 
  (eval $ac_try) 2>&5
3713
 
  ac_status=$?
3714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
 
  (exit $ac_status); }; } &&
3716
 
         { ac_try='test -s conftest$ac_exeext'
3717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
 
  (eval $ac_try) 2>&5
3719
 
  ac_status=$?
3720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721
 
  (exit $ac_status); }; }; then
3722
 
  lt_cv_cc_needs_belf=yes
3723
 
else
3724
 
  echo "$as_me: failed program was:" >&5
3725
 
sed 's/^/| /' conftest.$ac_ext >&5
3726
 
 
3727
 
lt_cv_cc_needs_belf=no
3728
 
fi
3729
 
rm -f conftest.err conftest.$ac_objext \
3730
 
      conftest$ac_exeext conftest.$ac_ext
3731
 
     ac_ext=c
3732
 
ac_cpp='$CPP $CPPFLAGS'
3733
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
 
 
3737
 
fi
3738
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3739
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3740
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3741
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3742
 
    CFLAGS="$SAVE_CFLAGS"
3743
 
  fi
3744
 
  ;;
3745
 
 
3746
 
esac
3747
 
 
3748
 
need_locks="$enable_libtool_lock"
3749
 
 
3750
 
 
3751
 
ac_ext=c
3752
 
ac_cpp='$CPP $CPPFLAGS'
3753
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3757
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3758
 
# On Suns, sometimes $CPP names a directory.
3759
 
if test -n "$CPP" && test -d "$CPP"; then
3760
 
  CPP=
3761
 
fi
3762
 
if test -z "$CPP"; then
3763
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3764
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3765
 
else
3766
 
      # Double quotes because CPP needs to be expanded
3767
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768
 
    do
3769
 
      ac_preproc_ok=false
3770
 
for ac_c_preproc_warn_flag in '' yes
3771
 
do
3772
 
  # Use a header file that comes with gcc, so configuring glibc
3773
 
  # with a fresh cross-compiler works.
3774
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775
 
  # <limits.h> exists even on freestanding compilers.
3776
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3777
 
  # not just through cpp. "Syntax error" is here to catch this case.
3778
 
  cat >conftest.$ac_ext <<_ACEOF
3779
 
/* confdefs.h.  */
3780
 
_ACEOF
3781
 
cat confdefs.h >>conftest.$ac_ext
3782
 
cat >>conftest.$ac_ext <<_ACEOF
3783
 
/* end confdefs.h.  */
3784
 
#ifdef __STDC__
3785
 
# include <limits.h>
3786
 
#else
3787
 
# include <assert.h>
3788
 
#endif
3789
 
                     Syntax error
3790
 
_ACEOF
3791
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3792
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3793
 
  ac_status=$?
3794
 
  grep -v '^ *+' conftest.er1 >conftest.err
3795
 
  rm -f conftest.er1
3796
 
  cat conftest.err >&5
3797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
 
  (exit $ac_status); } >/dev/null; then
3799
 
  if test -s conftest.err; then
3800
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3801
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3802
 
  else
3803
 
    ac_cpp_err=
3804
 
  fi
3805
 
else
3806
 
  ac_cpp_err=yes
3807
 
fi
3808
 
if test -z "$ac_cpp_err"; then
3809
 
  :
3810
 
else
3811
 
  echo "$as_me: failed program was:" >&5
3812
 
sed 's/^/| /' conftest.$ac_ext >&5
3813
 
 
3814
 
  # Broken: fails on valid input.
3815
 
continue
3816
 
fi
3817
 
rm -f conftest.err conftest.$ac_ext
3818
 
 
3819
 
  # OK, works on sane cases.  Now check whether non-existent headers
3820
 
  # can be detected and how.
3821
 
  cat >conftest.$ac_ext <<_ACEOF
3822
 
/* confdefs.h.  */
3823
 
_ACEOF
3824
 
cat confdefs.h >>conftest.$ac_ext
3825
 
cat >>conftest.$ac_ext <<_ACEOF
3826
 
/* end confdefs.h.  */
3827
 
#include <ac_nonexistent.h>
3828
 
_ACEOF
3829
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831
 
  ac_status=$?
3832
 
  grep -v '^ *+' conftest.er1 >conftest.err
3833
 
  rm -f conftest.er1
3834
 
  cat conftest.err >&5
3835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
 
  (exit $ac_status); } >/dev/null; then
3837
 
  if test -s conftest.err; then
3838
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3839
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3840
 
  else
3841
 
    ac_cpp_err=
3842
 
  fi
3843
 
else
3844
 
  ac_cpp_err=yes
3845
 
fi
3846
 
if test -z "$ac_cpp_err"; then
3847
 
  # Broken: success on invalid input.
3848
 
continue
3849
 
else
3850
 
  echo "$as_me: failed program was:" >&5
3851
 
sed 's/^/| /' conftest.$ac_ext >&5
3852
 
 
3853
 
  # Passes both tests.
3854
 
ac_preproc_ok=:
3855
 
break
3856
 
fi
3857
 
rm -f conftest.err conftest.$ac_ext
3858
 
 
3859
 
done
3860
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861
 
rm -f conftest.err conftest.$ac_ext
3862
 
if $ac_preproc_ok; then
3863
 
  break
3864
 
fi
3865
 
 
3866
 
    done
3867
 
    ac_cv_prog_CPP=$CPP
3868
 
 
3869
 
fi
3870
 
  CPP=$ac_cv_prog_CPP
3871
 
else
3872
 
  ac_cv_prog_CPP=$CPP
3873
 
fi
3874
 
echo "$as_me:$LINENO: result: $CPP" >&5
3875
 
echo "${ECHO_T}$CPP" >&6
3876
 
ac_preproc_ok=false
3877
 
for ac_c_preproc_warn_flag in '' yes
3878
 
do
3879
 
  # Use a header file that comes with gcc, so configuring glibc
3880
 
  # with a fresh cross-compiler works.
3881
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882
 
  # <limits.h> exists even on freestanding compilers.
3883
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3884
 
  # not just through cpp. "Syntax error" is here to catch this case.
3885
 
  cat >conftest.$ac_ext <<_ACEOF
3886
 
/* confdefs.h.  */
3887
 
_ACEOF
3888
 
cat confdefs.h >>conftest.$ac_ext
3889
 
cat >>conftest.$ac_ext <<_ACEOF
3890
 
/* end confdefs.h.  */
3891
 
#ifdef __STDC__
3892
 
# include <limits.h>
3893
 
#else
3894
 
# include <assert.h>
3895
 
#endif
3896
 
                     Syntax error
3897
 
_ACEOF
3898
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3899
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3900
 
  ac_status=$?
3901
 
  grep -v '^ *+' conftest.er1 >conftest.err
3902
 
  rm -f conftest.er1
3903
 
  cat conftest.err >&5
3904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905
 
  (exit $ac_status); } >/dev/null; then
3906
 
  if test -s conftest.err; then
3907
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3908
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909
 
  else
3910
 
    ac_cpp_err=
3911
 
  fi
3912
 
else
3913
 
  ac_cpp_err=yes
3914
 
fi
3915
 
if test -z "$ac_cpp_err"; then
3916
 
  :
3917
 
else
3918
 
  echo "$as_me: failed program was:" >&5
3919
 
sed 's/^/| /' conftest.$ac_ext >&5
3920
 
 
3921
 
  # Broken: fails on valid input.
3922
 
continue
3923
 
fi
3924
 
rm -f conftest.err conftest.$ac_ext
3925
 
 
3926
 
  # OK, works on sane cases.  Now check whether non-existent headers
3927
 
  # can be detected and how.
3928
 
  cat >conftest.$ac_ext <<_ACEOF
3929
 
/* confdefs.h.  */
3930
 
_ACEOF
3931
 
cat confdefs.h >>conftest.$ac_ext
3932
 
cat >>conftest.$ac_ext <<_ACEOF
3933
 
/* end confdefs.h.  */
3934
 
#include <ac_nonexistent.h>
3935
 
_ACEOF
3936
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938
 
  ac_status=$?
3939
 
  grep -v '^ *+' conftest.er1 >conftest.err
3940
 
  rm -f conftest.er1
3941
 
  cat conftest.err >&5
3942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
 
  (exit $ac_status); } >/dev/null; then
3944
 
  if test -s conftest.err; then
3945
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3946
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947
 
  else
3948
 
    ac_cpp_err=
3949
 
  fi
3950
 
else
3951
 
  ac_cpp_err=yes
3952
 
fi
3953
 
if test -z "$ac_cpp_err"; then
3954
 
  # Broken: success on invalid input.
3955
 
continue
3956
 
else
3957
 
  echo "$as_me: failed program was:" >&5
3958
 
sed 's/^/| /' conftest.$ac_ext >&5
3959
 
 
3960
 
  # Passes both tests.
3961
 
ac_preproc_ok=:
3962
 
break
3963
 
fi
3964
 
rm -f conftest.err conftest.$ac_ext
3965
 
 
3966
 
done
3967
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968
 
rm -f conftest.err conftest.$ac_ext
3969
 
if $ac_preproc_ok; then
3970
 
  :
3971
 
else
3972
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3973
 
See \`config.log' for more details." >&5
3974
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3975
 
See \`config.log' for more details." >&2;}
3976
 
   { (exit 1); exit 1; }; }
3977
 
fi
3978
 
 
3979
 
ac_ext=c
3980
 
ac_cpp='$CPP $CPPFLAGS'
3981
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
 
 
3985
 
 
3986
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3987
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3988
 
if test "${ac_cv_header_stdc+set}" = set; then
3989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3990
 
else
3991
 
  cat >conftest.$ac_ext <<_ACEOF
3992
 
/* confdefs.h.  */
3993
 
_ACEOF
3994
 
cat confdefs.h >>conftest.$ac_ext
3995
 
cat >>conftest.$ac_ext <<_ACEOF
3996
 
/* end confdefs.h.  */
3997
 
#include <stdlib.h>
3998
 
#include <stdarg.h>
3999
 
#include <string.h>
4000
 
#include <float.h>
4001
 
 
4002
 
int
4003
 
main ()
4004
 
{
4005
 
 
4006
 
  ;
4007
 
  return 0;
4008
 
}
4009
 
_ACEOF
4010
 
rm -f conftest.$ac_objext
4011
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012
 
  (eval $ac_compile) 2>conftest.er1
4013
 
  ac_status=$?
4014
 
  grep -v '^ *+' conftest.er1 >conftest.err
4015
 
  rm -f conftest.er1
4016
 
  cat conftest.err >&5
4017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018
 
  (exit $ac_status); } &&
4019
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021
 
  (eval $ac_try) 2>&5
4022
 
  ac_status=$?
4023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
 
  (exit $ac_status); }; } &&
4025
 
         { ac_try='test -s conftest.$ac_objext'
4026
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027
 
  (eval $ac_try) 2>&5
4028
 
  ac_status=$?
4029
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
 
  (exit $ac_status); }; }; then
4031
 
  ac_cv_header_stdc=yes
4032
 
else
4033
 
  echo "$as_me: failed program was:" >&5
4034
 
sed 's/^/| /' conftest.$ac_ext >&5
4035
 
 
4036
 
ac_cv_header_stdc=no
4037
 
fi
4038
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4039
 
 
4040
 
if test $ac_cv_header_stdc = yes; then
4041
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4042
 
  cat >conftest.$ac_ext <<_ACEOF
4043
 
/* confdefs.h.  */
4044
 
_ACEOF
4045
 
cat confdefs.h >>conftest.$ac_ext
4046
 
cat >>conftest.$ac_ext <<_ACEOF
4047
 
/* end confdefs.h.  */
4048
 
#include <string.h>
4049
 
 
4050
 
_ACEOF
4051
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052
 
  $EGREP "memchr" >/dev/null 2>&1; then
4053
 
  :
4054
 
else
4055
 
  ac_cv_header_stdc=no
4056
 
fi
4057
 
rm -f conftest*
4058
 
 
4059
 
fi
4060
 
 
4061
 
if test $ac_cv_header_stdc = yes; then
4062
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4063
 
  cat >conftest.$ac_ext <<_ACEOF
4064
 
/* confdefs.h.  */
4065
 
_ACEOF
4066
 
cat confdefs.h >>conftest.$ac_ext
4067
 
cat >>conftest.$ac_ext <<_ACEOF
4068
 
/* end confdefs.h.  */
4069
 
#include <stdlib.h>
4070
 
 
4071
 
_ACEOF
4072
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073
 
  $EGREP "free" >/dev/null 2>&1; then
4074
 
  :
4075
 
else
4076
 
  ac_cv_header_stdc=no
4077
 
fi
4078
 
rm -f conftest*
4079
 
 
4080
 
fi
4081
 
 
4082
 
if test $ac_cv_header_stdc = yes; then
4083
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4084
 
  if test "$cross_compiling" = yes; then
4085
 
  :
4086
 
else
4087
 
  cat >conftest.$ac_ext <<_ACEOF
4088
 
/* confdefs.h.  */
4089
 
_ACEOF
4090
 
cat confdefs.h >>conftest.$ac_ext
4091
 
cat >>conftest.$ac_ext <<_ACEOF
4092
 
/* end confdefs.h.  */
4093
 
#include <ctype.h>
4094
 
#if ((' ' & 0x0FF) == 0x020)
4095
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4097
 
#else
4098
 
# define ISLOWER(c) \
4099
 
                   (('a' <= (c) && (c) <= 'i') \
4100
 
                     || ('j' <= (c) && (c) <= 'r') \
4101
 
                     || ('s' <= (c) && (c) <= 'z'))
4102
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4103
 
#endif
4104
 
 
4105
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4106
 
int
4107
 
main ()
4108
 
{
4109
 
  int i;
4110
 
  for (i = 0; i < 256; i++)
4111
 
    if (XOR (islower (i), ISLOWER (i))
4112
 
        || toupper (i) != TOUPPER (i))
4113
 
      exit(2);
4114
 
  exit (0);
4115
 
}
4116
 
_ACEOF
4117
 
rm -f conftest$ac_exeext
4118
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119
 
  (eval $ac_link) 2>&5
4120
 
  ac_status=$?
4121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124
 
  (eval $ac_try) 2>&5
4125
 
  ac_status=$?
4126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127
 
  (exit $ac_status); }; }; then
4128
 
  :
4129
 
else
4130
 
  echo "$as_me: program exited with status $ac_status" >&5
4131
 
echo "$as_me: failed program was:" >&5
4132
 
sed 's/^/| /' conftest.$ac_ext >&5
4133
 
 
4134
 
( exit $ac_status )
4135
 
ac_cv_header_stdc=no
4136
 
fi
4137
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4138
 
fi
4139
 
fi
4140
 
fi
4141
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143
 
if test $ac_cv_header_stdc = yes; then
4144
 
 
4145
 
cat >>confdefs.h <<\_ACEOF
4146
 
#define STDC_HEADERS 1
4147
 
_ACEOF
4148
 
 
4149
 
fi
4150
 
 
4151
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4152
 
 
4153
 
 
4154
 
 
4155
 
 
4156
 
 
4157
 
 
4158
 
 
4159
 
 
4160
 
 
4161
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4162
 
                  inttypes.h stdint.h unistd.h
4163
 
do
4164
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4166
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4169
 
else
4170
 
  cat >conftest.$ac_ext <<_ACEOF
4171
 
/* confdefs.h.  */
4172
 
_ACEOF
4173
 
cat confdefs.h >>conftest.$ac_ext
4174
 
cat >>conftest.$ac_ext <<_ACEOF
4175
 
/* end confdefs.h.  */
4176
 
$ac_includes_default
4177
 
 
4178
 
#include <$ac_header>
4179
 
_ACEOF
4180
 
rm -f conftest.$ac_objext
4181
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182
 
  (eval $ac_compile) 2>conftest.er1
4183
 
  ac_status=$?
4184
 
  grep -v '^ *+' conftest.er1 >conftest.err
4185
 
  rm -f conftest.er1
4186
 
  cat conftest.err >&5
4187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
 
  (exit $ac_status); } &&
4189
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4190
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191
 
  (eval $ac_try) 2>&5
4192
 
  ac_status=$?
4193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
 
  (exit $ac_status); }; } &&
4195
 
         { ac_try='test -s conftest.$ac_objext'
4196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197
 
  (eval $ac_try) 2>&5
4198
 
  ac_status=$?
4199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
 
  (exit $ac_status); }; }; then
4201
 
  eval "$as_ac_Header=yes"
4202
 
else
4203
 
  echo "$as_me: failed program was:" >&5
4204
 
sed 's/^/| /' conftest.$ac_ext >&5
4205
 
 
4206
 
eval "$as_ac_Header=no"
4207
 
fi
4208
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209
 
fi
4210
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4211
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4212
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213
 
  cat >>confdefs.h <<_ACEOF
4214
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4215
 
_ACEOF
4216
 
 
4217
 
fi
4218
 
 
4219
 
done
4220
 
 
4221
 
 
4222
 
 
4223
 
for ac_header in dlfcn.h
4224
 
do
4225
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4226
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4227
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4228
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4229
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4230
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4231
 
fi
4232
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4233
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4234
 
else
4235
 
  # Is the header compilable?
4236
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4237
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4238
 
cat >conftest.$ac_ext <<_ACEOF
4239
 
/* confdefs.h.  */
4240
 
_ACEOF
4241
 
cat confdefs.h >>conftest.$ac_ext
4242
 
cat >>conftest.$ac_ext <<_ACEOF
4243
 
/* end confdefs.h.  */
4244
 
$ac_includes_default
4245
 
#include <$ac_header>
4246
 
_ACEOF
4247
 
rm -f conftest.$ac_objext
4248
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
 
  (eval $ac_compile) 2>conftest.er1
4250
 
  ac_status=$?
4251
 
  grep -v '^ *+' conftest.er1 >conftest.err
4252
 
  rm -f conftest.er1
4253
 
  cat conftest.err >&5
4254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
 
  (exit $ac_status); } &&
4256
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258
 
  (eval $ac_try) 2>&5
4259
 
  ac_status=$?
4260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
 
  (exit $ac_status); }; } &&
4262
 
         { ac_try='test -s conftest.$ac_objext'
4263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264
 
  (eval $ac_try) 2>&5
4265
 
  ac_status=$?
4266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
 
  (exit $ac_status); }; }; then
4268
 
  ac_header_compiler=yes
4269
 
else
4270
 
  echo "$as_me: failed program was:" >&5
4271
 
sed 's/^/| /' conftest.$ac_ext >&5
4272
 
 
4273
 
ac_header_compiler=no
4274
 
fi
4275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4277
 
echo "${ECHO_T}$ac_header_compiler" >&6
4278
 
 
4279
 
# Is the header present?
4280
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4281
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4282
 
cat >conftest.$ac_ext <<_ACEOF
4283
 
/* confdefs.h.  */
4284
 
_ACEOF
4285
 
cat confdefs.h >>conftest.$ac_ext
4286
 
cat >>conftest.$ac_ext <<_ACEOF
4287
 
/* end confdefs.h.  */
4288
 
#include <$ac_header>
4289
 
_ACEOF
4290
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4291
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4292
 
  ac_status=$?
4293
 
  grep -v '^ *+' conftest.er1 >conftest.err
4294
 
  rm -f conftest.er1
4295
 
  cat conftest.err >&5
4296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
 
  (exit $ac_status); } >/dev/null; then
4298
 
  if test -s conftest.err; then
4299
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4300
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4301
 
  else
4302
 
    ac_cpp_err=
4303
 
  fi
4304
 
else
4305
 
  ac_cpp_err=yes
4306
 
fi
4307
 
if test -z "$ac_cpp_err"; then
4308
 
  ac_header_preproc=yes
4309
 
else
4310
 
  echo "$as_me: failed program was:" >&5
4311
 
sed 's/^/| /' conftest.$ac_ext >&5
4312
 
 
4313
 
  ac_header_preproc=no
4314
 
fi
4315
 
rm -f conftest.err conftest.$ac_ext
4316
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4317
 
echo "${ECHO_T}$ac_header_preproc" >&6
4318
 
 
4319
 
# So?  What about this header?
4320
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4321
 
  yes:no: )
4322
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4323
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4324
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4325
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4326
 
    ac_header_preproc=yes
4327
 
    ;;
4328
 
  no:yes:* )
4329
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4330
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4331
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4332
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4333
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4334
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4335
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4336
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4337
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4338
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4339
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4340
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4341
 
    (
4342
 
      cat <<\_ASBOX
4343
 
## ------------------------------------------ ##
4344
 
## Report this to the AC_PACKAGE_NAME lists.  ##
4345
 
## ------------------------------------------ ##
4346
 
_ASBOX
4347
 
    ) |
4348
 
      sed "s/^/$as_me: WARNING:     /" >&2
4349
 
    ;;
4350
 
esac
4351
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4352
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4355
 
else
4356
 
  eval "$as_ac_Header=\$ac_header_preproc"
4357
 
fi
4358
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360
 
 
4361
 
fi
4362
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4363
 
  cat >>confdefs.h <<_ACEOF
4364
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365
 
_ACEOF
4366
 
 
4367
 
fi
4368
 
 
4369
 
done
4370
 
 
4371
 
ac_ext=cc
4372
 
ac_cpp='$CXXCPP $CPPFLAGS'
4373
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376
 
if test -n "$ac_tool_prefix"; then
4377
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4378
 
  do
4379
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4382
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383
 
if test "${ac_cv_prog_CXX+set}" = set; then
4384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4385
 
else
4386
 
  if test -n "$CXX"; then
4387
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4388
 
else
4389
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390
 
for as_dir in $PATH
4391
 
do
4392
 
  IFS=$as_save_IFS
4393
 
  test -z "$as_dir" && as_dir=.
4394
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4395
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398
 
    break 2
4399
 
  fi
4400
 
done
4401
 
done
4402
 
 
4403
 
fi
4404
 
fi
4405
 
CXX=$ac_cv_prog_CXX
4406
 
if test -n "$CXX"; then
4407
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4408
 
echo "${ECHO_T}$CXX" >&6
4409
 
else
4410
 
  echo "$as_me:$LINENO: result: no" >&5
4411
 
echo "${ECHO_T}no" >&6
4412
 
fi
4413
 
 
4414
 
    test -n "$CXX" && break
4415
 
  done
4416
 
fi
4417
 
if test -z "$CXX"; then
4418
 
  ac_ct_CXX=$CXX
4419
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4420
 
do
4421
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4422
 
set dummy $ac_prog; ac_word=$2
4423
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4424
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4427
 
else
4428
 
  if test -n "$ac_ct_CXX"; then
4429
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4430
 
else
4431
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432
 
for as_dir in $PATH
4433
 
do
4434
 
  IFS=$as_save_IFS
4435
 
  test -z "$as_dir" && as_dir=.
4436
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4437
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4439
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440
 
    break 2
4441
 
  fi
4442
 
done
4443
 
done
4444
 
 
4445
 
fi
4446
 
fi
4447
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4448
 
if test -n "$ac_ct_CXX"; then
4449
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4450
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4451
 
else
4452
 
  echo "$as_me:$LINENO: result: no" >&5
4453
 
echo "${ECHO_T}no" >&6
4454
 
fi
4455
 
 
4456
 
  test -n "$ac_ct_CXX" && break
4457
 
done
4458
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4459
 
 
4460
 
  CXX=$ac_ct_CXX
4461
 
fi
4462
 
 
4463
 
 
4464
 
# Provide some information about the compiler.
4465
 
echo "$as_me:$LINENO:" \
4466
 
     "checking for C++ compiler version" >&5
4467
 
ac_compiler=`set X $ac_compile; echo $2`
4468
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4469
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4470
 
  ac_status=$?
4471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
 
  (exit $ac_status); }
4473
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4474
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4475
 
  ac_status=$?
4476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
 
  (exit $ac_status); }
4478
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4479
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4480
 
  ac_status=$?
4481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482
 
  (exit $ac_status); }
4483
 
 
4484
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4485
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4486
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4487
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4488
 
else
4489
 
  cat >conftest.$ac_ext <<_ACEOF
4490
 
/* confdefs.h.  */
4491
 
_ACEOF
4492
 
cat confdefs.h >>conftest.$ac_ext
4493
 
cat >>conftest.$ac_ext <<_ACEOF
4494
 
/* end confdefs.h.  */
4495
 
 
4496
 
int
4497
 
main ()
4498
 
{
4499
 
#ifndef __GNUC__
4500
 
       choke me
4501
 
#endif
4502
 
 
4503
 
  ;
4504
 
  return 0;
4505
 
}
4506
 
_ACEOF
4507
 
rm -f conftest.$ac_objext
4508
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509
 
  (eval $ac_compile) 2>conftest.er1
4510
 
  ac_status=$?
4511
 
  grep -v '^ *+' conftest.er1 >conftest.err
4512
 
  rm -f conftest.er1
4513
 
  cat conftest.err >&5
4514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
 
  (exit $ac_status); } &&
4516
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518
 
  (eval $ac_try) 2>&5
4519
 
  ac_status=$?
4520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
 
  (exit $ac_status); }; } &&
4522
 
         { ac_try='test -s conftest.$ac_objext'
4523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524
 
  (eval $ac_try) 2>&5
4525
 
  ac_status=$?
4526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527
 
  (exit $ac_status); }; }; then
4528
 
  ac_compiler_gnu=yes
4529
 
else
4530
 
  echo "$as_me: failed program was:" >&5
4531
 
sed 's/^/| /' conftest.$ac_ext >&5
4532
 
 
4533
 
ac_compiler_gnu=no
4534
 
fi
4535
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
 
 
4538
 
fi
4539
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4540
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4541
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4542
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4543
 
ac_save_CXXFLAGS=$CXXFLAGS
4544
 
CXXFLAGS="-g"
4545
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4546
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4547
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4549
 
else
4550
 
  cat >conftest.$ac_ext <<_ACEOF
4551
 
/* confdefs.h.  */
4552
 
_ACEOF
4553
 
cat confdefs.h >>conftest.$ac_ext
4554
 
cat >>conftest.$ac_ext <<_ACEOF
4555
 
/* end confdefs.h.  */
4556
 
 
4557
 
int
4558
 
main ()
4559
 
{
4560
 
 
4561
 
  ;
4562
 
  return 0;
4563
 
}
4564
 
_ACEOF
4565
 
rm -f conftest.$ac_objext
4566
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567
 
  (eval $ac_compile) 2>conftest.er1
4568
 
  ac_status=$?
4569
 
  grep -v '^ *+' conftest.er1 >conftest.err
4570
 
  rm -f conftest.er1
4571
 
  cat conftest.err >&5
4572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
 
  (exit $ac_status); } &&
4574
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
 
  (eval $ac_try) 2>&5
4577
 
  ac_status=$?
4578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
 
  (exit $ac_status); }; } &&
4580
 
         { ac_try='test -s conftest.$ac_objext'
4581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582
 
  (eval $ac_try) 2>&5
4583
 
  ac_status=$?
4584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
 
  (exit $ac_status); }; }; then
4586
 
  ac_cv_prog_cxx_g=yes
4587
 
else
4588
 
  echo "$as_me: failed program was:" >&5
4589
 
sed 's/^/| /' conftest.$ac_ext >&5
4590
 
 
4591
 
ac_cv_prog_cxx_g=no
4592
 
fi
4593
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594
 
fi
4595
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4596
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4597
 
if test "$ac_test_CXXFLAGS" = set; then
4598
 
  CXXFLAGS=$ac_save_CXXFLAGS
4599
 
elif test $ac_cv_prog_cxx_g = yes; then
4600
 
  if test "$GXX" = yes; then
4601
 
    CXXFLAGS="-g -O2"
4602
 
  else
4603
 
    CXXFLAGS="-g"
4604
 
  fi
4605
 
else
4606
 
  if test "$GXX" = yes; then
4607
 
    CXXFLAGS="-O2"
4608
 
  else
4609
 
    CXXFLAGS=
4610
 
  fi
4611
 
fi
4612
 
for ac_declaration in \
4613
 
   '' \
4614
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4615
 
   'extern "C" void std::exit (int); using std::exit;' \
4616
 
   'extern "C" void exit (int) throw ();' \
4617
 
   'extern "C" void exit (int);' \
4618
 
   'void exit (int);'
4619
 
do
4620
 
  cat >conftest.$ac_ext <<_ACEOF
4621
 
/* confdefs.h.  */
4622
 
_ACEOF
4623
 
cat confdefs.h >>conftest.$ac_ext
4624
 
cat >>conftest.$ac_ext <<_ACEOF
4625
 
/* end confdefs.h.  */
4626
 
$ac_declaration
4627
 
#include <stdlib.h>
4628
 
int
4629
 
main ()
4630
 
{
4631
 
exit (42);
4632
 
  ;
4633
 
  return 0;
4634
 
}
4635
 
_ACEOF
4636
 
rm -f conftest.$ac_objext
4637
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638
 
  (eval $ac_compile) 2>conftest.er1
4639
 
  ac_status=$?
4640
 
  grep -v '^ *+' conftest.er1 >conftest.err
4641
 
  rm -f conftest.er1
4642
 
  cat conftest.err >&5
4643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
 
  (exit $ac_status); } &&
4645
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647
 
  (eval $ac_try) 2>&5
4648
 
  ac_status=$?
4649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650
 
  (exit $ac_status); }; } &&
4651
 
         { ac_try='test -s conftest.$ac_objext'
4652
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653
 
  (eval $ac_try) 2>&5
4654
 
  ac_status=$?
4655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
 
  (exit $ac_status); }; }; then
4657
 
  :
4658
 
else
4659
 
  echo "$as_me: failed program was:" >&5
4660
 
sed 's/^/| /' conftest.$ac_ext >&5
4661
 
 
4662
 
continue
4663
 
fi
4664
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665
 
  cat >conftest.$ac_ext <<_ACEOF
4666
 
/* confdefs.h.  */
4667
 
_ACEOF
4668
 
cat confdefs.h >>conftest.$ac_ext
4669
 
cat >>conftest.$ac_ext <<_ACEOF
4670
 
/* end confdefs.h.  */
4671
 
$ac_declaration
4672
 
int
4673
 
main ()
4674
 
{
4675
 
exit (42);
4676
 
  ;
4677
 
  return 0;
4678
 
}
4679
 
_ACEOF
4680
 
rm -f conftest.$ac_objext
4681
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682
 
  (eval $ac_compile) 2>conftest.er1
4683
 
  ac_status=$?
4684
 
  grep -v '^ *+' conftest.er1 >conftest.err
4685
 
  rm -f conftest.er1
4686
 
  cat conftest.err >&5
4687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
 
  (exit $ac_status); } &&
4689
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691
 
  (eval $ac_try) 2>&5
4692
 
  ac_status=$?
4693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
 
  (exit $ac_status); }; } &&
4695
 
         { ac_try='test -s conftest.$ac_objext'
4696
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697
 
  (eval $ac_try) 2>&5
4698
 
  ac_status=$?
4699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
 
  (exit $ac_status); }; }; then
4701
 
  break
4702
 
else
4703
 
  echo "$as_me: failed program was:" >&5
4704
 
sed 's/^/| /' conftest.$ac_ext >&5
4705
 
 
4706
 
fi
4707
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708
 
done
4709
 
rm -f conftest*
4710
 
if test -n "$ac_declaration"; then
4711
 
  echo '#ifdef __cplusplus' >>confdefs.h
4712
 
  echo $ac_declaration      >>confdefs.h
4713
 
  echo '#endif'             >>confdefs.h
4714
 
fi
4715
 
 
4716
 
ac_ext=cc
4717
 
ac_cpp='$CXXCPP $CPPFLAGS'
4718
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4721
 
 
4722
 
depcc="$CXX"  am_compiler_list=
4723
 
 
4724
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4725
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4726
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4728
 
else
4729
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4730
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4731
 
  # making bogus files that we don't know about and never remove.  For
4732
 
  # instance it was reported that on HP-UX the gcc test will end up
4733
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4734
 
  # in D'.
4735
 
  mkdir conftest.dir
4736
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4737
 
  # using a relative directory.
4738
 
  cp "$am_depcomp" conftest.dir
4739
 
  cd conftest.dir
4740
 
 
4741
 
  am_cv_CXX_dependencies_compiler_type=none
4742
 
  if test "$am_compiler_list" = ""; then
4743
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4744
 
  fi
4745
 
  for depmode in $am_compiler_list; do
4746
 
    # We need to recreate these files for each test, as the compiler may
4747
 
    # overwrite some of them when testing with obscure command lines.
4748
 
    # This happens at least with the AIX C compiler.
4749
 
    echo '#include "conftest.h"' > conftest.c
4750
 
    echo 'int i;' > conftest.h
4751
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4752
 
 
4753
 
    case $depmode in
4754
 
    nosideeffect)
4755
 
      # after this tag, mechanisms are not by side-effect, so they'll
4756
 
      # only be used when explicitly requested
4757
 
      if test "x$enable_dependency_tracking" = xyes; then
4758
 
        continue
4759
 
      else
4760
 
        break
4761
 
      fi
4762
 
      ;;
4763
 
    none) break ;;
4764
 
    esac
4765
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4766
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4767
 
    # handle `-M -o', and we need to detect this.
4768
 
    if depmode=$depmode \
4769
 
       source=conftest.c object=conftest.o \
4770
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
4771
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4772
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
4773
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4774
 
      am_cv_CXX_dependencies_compiler_type=$depmode
4775
 
      break
4776
 
    fi
4777
 
  done
4778
 
 
4779
 
  cd ..
4780
 
  rm -rf conftest.dir
4781
 
else
4782
 
  am_cv_CXX_dependencies_compiler_type=none
4783
 
fi
4784
 
 
4785
 
fi
4786
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4787
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4788
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4789
 
 
4790
 
 
4791
 
ac_ext=cc
4792
 
ac_cpp='$CXXCPP $CPPFLAGS'
4793
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4797
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4798
 
if test -z "$CXXCPP"; then
4799
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4801
 
else
4802
 
      # Double quotes because CXXCPP needs to be expanded
4803
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4804
 
    do
4805
 
      ac_preproc_ok=false
4806
 
for ac_cxx_preproc_warn_flag in '' yes
4807
 
do
4808
 
  # Use a header file that comes with gcc, so configuring glibc
4809
 
  # with a fresh cross-compiler works.
4810
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811
 
  # <limits.h> exists even on freestanding compilers.
4812
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4813
 
  # not just through cpp. "Syntax error" is here to catch this case.
4814
 
  cat >conftest.$ac_ext <<_ACEOF
4815
 
/* confdefs.h.  */
4816
 
_ACEOF
4817
 
cat confdefs.h >>conftest.$ac_ext
4818
 
cat >>conftest.$ac_ext <<_ACEOF
4819
 
/* end confdefs.h.  */
4820
 
#ifdef __STDC__
4821
 
# include <limits.h>
4822
 
#else
4823
 
# include <assert.h>
4824
 
#endif
4825
 
                     Syntax error
4826
 
_ACEOF
4827
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829
 
  ac_status=$?
4830
 
  grep -v '^ *+' conftest.er1 >conftest.err
4831
 
  rm -f conftest.er1
4832
 
  cat conftest.err >&5
4833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834
 
  (exit $ac_status); } >/dev/null; then
4835
 
  if test -s conftest.err; then
4836
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4837
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4838
 
  else
4839
 
    ac_cpp_err=
4840
 
  fi
4841
 
else
4842
 
  ac_cpp_err=yes
4843
 
fi
4844
 
if test -z "$ac_cpp_err"; then
4845
 
  :
4846
 
else
4847
 
  echo "$as_me: failed program was:" >&5
4848
 
sed 's/^/| /' conftest.$ac_ext >&5
4849
 
 
4850
 
  # Broken: fails on valid input.
4851
 
continue
4852
 
fi
4853
 
rm -f conftest.err conftest.$ac_ext
4854
 
 
4855
 
  # OK, works on sane cases.  Now check whether non-existent headers
4856
 
  # can be detected and how.
4857
 
  cat >conftest.$ac_ext <<_ACEOF
4858
 
/* confdefs.h.  */
4859
 
_ACEOF
4860
 
cat confdefs.h >>conftest.$ac_ext
4861
 
cat >>conftest.$ac_ext <<_ACEOF
4862
 
/* end confdefs.h.  */
4863
 
#include <ac_nonexistent.h>
4864
 
_ACEOF
4865
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867
 
  ac_status=$?
4868
 
  grep -v '^ *+' conftest.er1 >conftest.err
4869
 
  rm -f conftest.er1
4870
 
  cat conftest.err >&5
4871
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872
 
  (exit $ac_status); } >/dev/null; then
4873
 
  if test -s conftest.err; then
4874
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4875
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4876
 
  else
4877
 
    ac_cpp_err=
4878
 
  fi
4879
 
else
4880
 
  ac_cpp_err=yes
4881
 
fi
4882
 
if test -z "$ac_cpp_err"; then
4883
 
  # Broken: success on invalid input.
4884
 
continue
4885
 
else
4886
 
  echo "$as_me: failed program was:" >&5
4887
 
sed 's/^/| /' conftest.$ac_ext >&5
4888
 
 
4889
 
  # Passes both tests.
4890
 
ac_preproc_ok=:
4891
 
break
4892
 
fi
4893
 
rm -f conftest.err conftest.$ac_ext
4894
 
 
4895
 
done
4896
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897
 
rm -f conftest.err conftest.$ac_ext
4898
 
if $ac_preproc_ok; then
4899
 
  break
4900
 
fi
4901
 
 
4902
 
    done
4903
 
    ac_cv_prog_CXXCPP=$CXXCPP
4904
 
 
4905
 
fi
4906
 
  CXXCPP=$ac_cv_prog_CXXCPP
4907
 
else
4908
 
  ac_cv_prog_CXXCPP=$CXXCPP
4909
 
fi
4910
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4911
 
echo "${ECHO_T}$CXXCPP" >&6
4912
 
ac_preproc_ok=false
4913
 
for ac_cxx_preproc_warn_flag in '' yes
4914
 
do
4915
 
  # Use a header file that comes with gcc, so configuring glibc
4916
 
  # with a fresh cross-compiler works.
4917
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918
 
  # <limits.h> exists even on freestanding compilers.
4919
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4920
 
  # not just through cpp. "Syntax error" is here to catch this case.
4921
 
  cat >conftest.$ac_ext <<_ACEOF
4922
 
/* confdefs.h.  */
4923
 
_ACEOF
4924
 
cat confdefs.h >>conftest.$ac_ext
4925
 
cat >>conftest.$ac_ext <<_ACEOF
4926
 
/* end confdefs.h.  */
4927
 
#ifdef __STDC__
4928
 
# include <limits.h>
4929
 
#else
4930
 
# include <assert.h>
4931
 
#endif
4932
 
                     Syntax error
4933
 
_ACEOF
4934
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936
 
  ac_status=$?
4937
 
  grep -v '^ *+' conftest.er1 >conftest.err
4938
 
  rm -f conftest.er1
4939
 
  cat conftest.err >&5
4940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
 
  (exit $ac_status); } >/dev/null; then
4942
 
  if test -s conftest.err; then
4943
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4944
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4945
 
  else
4946
 
    ac_cpp_err=
4947
 
  fi
4948
 
else
4949
 
  ac_cpp_err=yes
4950
 
fi
4951
 
if test -z "$ac_cpp_err"; then
4952
 
  :
4953
 
else
4954
 
  echo "$as_me: failed program was:" >&5
4955
 
sed 's/^/| /' conftest.$ac_ext >&5
4956
 
 
4957
 
  # Broken: fails on valid input.
4958
 
continue
4959
 
fi
4960
 
rm -f conftest.err conftest.$ac_ext
4961
 
 
4962
 
  # OK, works on sane cases.  Now check whether non-existent headers
4963
 
  # can be detected and how.
4964
 
  cat >conftest.$ac_ext <<_ACEOF
4965
 
/* confdefs.h.  */
4966
 
_ACEOF
4967
 
cat confdefs.h >>conftest.$ac_ext
4968
 
cat >>conftest.$ac_ext <<_ACEOF
4969
 
/* end confdefs.h.  */
4970
 
#include <ac_nonexistent.h>
4971
 
_ACEOF
4972
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974
 
  ac_status=$?
4975
 
  grep -v '^ *+' conftest.er1 >conftest.err
4976
 
  rm -f conftest.er1
4977
 
  cat conftest.err >&5
4978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
 
  (exit $ac_status); } >/dev/null; then
4980
 
  if test -s conftest.err; then
4981
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4982
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983
 
  else
4984
 
    ac_cpp_err=
4985
 
  fi
4986
 
else
4987
 
  ac_cpp_err=yes
4988
 
fi
4989
 
if test -z "$ac_cpp_err"; then
4990
 
  # Broken: success on invalid input.
4991
 
continue
4992
 
else
4993
 
  echo "$as_me: failed program was:" >&5
4994
 
sed 's/^/| /' conftest.$ac_ext >&5
4995
 
 
4996
 
  # Passes both tests.
4997
 
ac_preproc_ok=:
4998
 
break
4999
 
fi
5000
 
rm -f conftest.err conftest.$ac_ext
5001
 
 
5002
 
done
5003
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004
 
rm -f conftest.err conftest.$ac_ext
5005
 
if $ac_preproc_ok; then
5006
 
  :
5007
 
else
5008
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5009
 
See \`config.log' for more details." >&5
5010
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5011
 
See \`config.log' for more details." >&2;}
5012
 
   { (exit 1); exit 1; }; }
5013
 
fi
5014
 
 
5015
 
ac_ext=cc
5016
 
ac_cpp='$CXXCPP $CPPFLAGS'
5017
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5020
 
 
5021
 
 
5022
 
ac_ext=f
5023
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5024
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5026
 
if test -n "$ac_tool_prefix"; then
5027
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5028
 
  do
5029
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5030
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5031
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5032
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033
 
if test "${ac_cv_prog_F77+set}" = set; then
5034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5035
 
else
5036
 
  if test -n "$F77"; then
5037
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5038
 
else
5039
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040
 
for as_dir in $PATH
5041
 
do
5042
 
  IFS=$as_save_IFS
5043
 
  test -z "$as_dir" && as_dir=.
5044
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5045
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5047
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048
 
    break 2
5049
 
  fi
5050
 
done
5051
 
done
5052
 
 
5053
 
fi
5054
 
fi
5055
 
F77=$ac_cv_prog_F77
5056
 
if test -n "$F77"; then
5057
 
  echo "$as_me:$LINENO: result: $F77" >&5
5058
 
echo "${ECHO_T}$F77" >&6
5059
 
else
5060
 
  echo "$as_me:$LINENO: result: no" >&5
5061
 
echo "${ECHO_T}no" >&6
5062
 
fi
5063
 
 
5064
 
    test -n "$F77" && break
5065
 
  done
5066
 
fi
5067
 
if test -z "$F77"; then
5068
 
  ac_ct_F77=$F77
5069
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5070
 
do
5071
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5072
 
set dummy $ac_prog; ac_word=$2
5073
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5074
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5076
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5077
 
else
5078
 
  if test -n "$ac_ct_F77"; then
5079
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5089
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090
 
    break 2
5091
 
  fi
5092
 
done
5093
 
done
5094
 
 
5095
 
fi
5096
 
fi
5097
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5098
 
if test -n "$ac_ct_F77"; then
5099
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5100
 
echo "${ECHO_T}$ac_ct_F77" >&6
5101
 
else
5102
 
  echo "$as_me:$LINENO: result: no" >&5
5103
 
echo "${ECHO_T}no" >&6
5104
 
fi
5105
 
 
5106
 
  test -n "$ac_ct_F77" && break
5107
 
done
5108
 
 
5109
 
  F77=$ac_ct_F77
5110
 
fi
5111
 
 
5112
 
 
5113
 
# Provide some information about the compiler.
5114
 
echo "$as_me:5114:" \
5115
 
     "checking for Fortran 77 compiler version" >&5
5116
 
ac_compiler=`set X $ac_compile; echo $2`
5117
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5118
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5119
 
  ac_status=$?
5120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
 
  (exit $ac_status); }
5122
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5123
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5124
 
  ac_status=$?
5125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
 
  (exit $ac_status); }
5127
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5128
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5129
 
  ac_status=$?
5130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131
 
  (exit $ac_status); }
5132
 
rm -f a.out
5133
 
 
5134
 
# If we don't use `.F' as extension, the preprocessor is not run on the
5135
 
# input file.  (Note that this only needs to work for GNU compilers.)
5136
 
ac_save_ext=$ac_ext
5137
 
ac_ext=F
5138
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5139
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5140
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5141
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5142
 
else
5143
 
  cat >conftest.$ac_ext <<_ACEOF
5144
 
      program main
5145
 
#ifndef __GNUC__
5146
 
       choke me
5147
 
#endif
5148
 
 
5149
 
      end
5150
 
_ACEOF
5151
 
rm -f conftest.$ac_objext
5152
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153
 
  (eval $ac_compile) 2>conftest.er1
5154
 
  ac_status=$?
5155
 
  grep -v '^ *+' conftest.er1 >conftest.err
5156
 
  rm -f conftest.er1
5157
 
  cat conftest.err >&5
5158
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
 
  (exit $ac_status); } &&
5160
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5161
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162
 
  (eval $ac_try) 2>&5
5163
 
  ac_status=$?
5164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
 
  (exit $ac_status); }; } &&
5166
 
         { ac_try='test -s conftest.$ac_objext'
5167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168
 
  (eval $ac_try) 2>&5
5169
 
  ac_status=$?
5170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171
 
  (exit $ac_status); }; }; then
5172
 
  ac_compiler_gnu=yes
5173
 
else
5174
 
  echo "$as_me: failed program was:" >&5
5175
 
sed 's/^/| /' conftest.$ac_ext >&5
5176
 
 
5177
 
ac_compiler_gnu=no
5178
 
fi
5179
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5181
 
 
5182
 
fi
5183
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5184
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5185
 
ac_ext=$ac_save_ext
5186
 
ac_test_FFLAGS=${FFLAGS+set}
5187
 
ac_save_FFLAGS=$FFLAGS
5188
 
FFLAGS=
5189
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5190
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5191
 
if test "${ac_cv_prog_f77_g+set}" = set; then
5192
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5193
 
else
5194
 
  FFLAGS=-g
5195
 
cat >conftest.$ac_ext <<_ACEOF
5196
 
      program main
5197
 
 
5198
 
      end
5199
 
_ACEOF
5200
 
rm -f conftest.$ac_objext
5201
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202
 
  (eval $ac_compile) 2>conftest.er1
5203
 
  ac_status=$?
5204
 
  grep -v '^ *+' conftest.er1 >conftest.err
5205
 
  rm -f conftest.er1
5206
 
  cat conftest.err >&5
5207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
 
  (exit $ac_status); } &&
5209
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5210
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211
 
  (eval $ac_try) 2>&5
5212
 
  ac_status=$?
5213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
 
  (exit $ac_status); }; } &&
5215
 
         { ac_try='test -s conftest.$ac_objext'
5216
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217
 
  (eval $ac_try) 2>&5
5218
 
  ac_status=$?
5219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220
 
  (exit $ac_status); }; }; then
5221
 
  ac_cv_prog_f77_g=yes
5222
 
else
5223
 
  echo "$as_me: failed program was:" >&5
5224
 
sed 's/^/| /' conftest.$ac_ext >&5
5225
 
 
5226
 
ac_cv_prog_f77_g=no
5227
 
fi
5228
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229
 
 
5230
 
fi
5231
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5232
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5233
 
if test "$ac_test_FFLAGS" = set; then
5234
 
  FFLAGS=$ac_save_FFLAGS
5235
 
elif test $ac_cv_prog_f77_g = yes; then
5236
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5237
 
    FFLAGS="-g -O2"
5238
 
  else
5239
 
    FFLAGS="-g"
5240
 
  fi
5241
 
else
5242
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5243
 
    FFLAGS="-O2"
5244
 
  else
5245
 
    FFLAGS=
5246
 
  fi
5247
 
fi
5248
 
 
5249
 
G77=`test $ac_compiler_gnu = yes && echo yes`
5250
 
ac_ext=c
5251
 
ac_cpp='$CPP $CPPFLAGS'
5252
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255
 
 
5256
 
 
5257
 
 
5258
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5259
 
 
5260
 
# find the maximum length of command line arguments
5261
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5262
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5263
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5264
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5265
 
else
5266
 
    i=0
5267
 
  testring="ABCD"
5268
 
 
5269
 
  case $build_os in
5270
 
  msdosdjgpp*)
5271
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5272
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5273
 
    # during glob expansion).  Even if it were fixed, the result of this
5274
 
    # check would be larger than it should be.
5275
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5276
 
    ;;
5277
 
 
5278
 
  gnu*)
5279
 
    # Under GNU Hurd, this test is not required because there is
5280
 
    # no limit to the length of command line arguments.
5281
 
    # Libtool will interpret -1 as no limit whatsoever
5282
 
    lt_cv_sys_max_cmd_len=-1;
5283
 
    ;;
5284
 
 
5285
 
  cygwin* | mingw*)
5286
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5287
 
    # about 5 minutes as the teststring grows exponentially.
5288
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5289
 
    # you end up with a "frozen" computer, even though with patience
5290
 
    # the test eventually succeeds (with a max line length of 256k).
5291
 
    # Instead, let's just punt: use the minimum linelength reported by
5292
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5293
 
    lt_cv_sys_max_cmd_len=8192;
5294
 
    ;;
5295
 
 
5296
 
  amigaos*)
5297
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5298
 
    # So we just punt and use a minimum line length of 8192.
5299
 
    lt_cv_sys_max_cmd_len=8192;
5300
 
    ;;
5301
 
 
5302
 
 *)
5303
 
    # If test is not a shell built-in, we'll probably end up computing a
5304
 
    # maximum length that is only half of the actual maximum length, but
5305
 
    # we can't tell.
5306
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5307
 
               = "XX$testring") >/dev/null 2>&1 &&
5308
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
5309
 
            lt_cv_sys_max_cmd_len=$new_result &&
5310
 
            test $i != 17 # 1/2 MB should be enough
5311
 
    do
5312
 
      i=`expr $i + 1`
5313
 
      testring=$testring$testring
5314
 
    done
5315
 
    testring=
5316
 
    # Add a significant safety factor because C++ compilers can tack on massive
5317
 
    # amounts of additional arguments before passing them to the linker.
5318
 
    # It appears as though 1/2 is a usable value.
5319
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5320
 
    ;;
5321
 
  esac
5322
 
 
5323
 
fi
5324
 
 
5325
 
if test -n $lt_cv_sys_max_cmd_len ; then
5326
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5327
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5328
 
else
5329
 
  echo "$as_me:$LINENO: result: none" >&5
5330
 
echo "${ECHO_T}none" >&6
5331
 
fi
5332
 
 
5333
 
 
5334
 
 
5335
 
 
5336
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5337
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5338
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5339
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5340
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5341
 
else
5342
 
 
5343
 
# These are sane defaults that work on at least a few old systems.
5344
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5345
 
 
5346
 
# Character class describing NM global symbol codes.
5347
 
symcode='[BCDEGRST]'
5348
 
 
5349
 
# Regexp to match symbols that can be accessed directly from C.
5350
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5351
 
 
5352
 
# Transform the above into a raw symbol and a C symbol.
5353
 
symxfrm='\1 \2\3 \3'
5354
 
 
5355
 
# Transform an extracted symbol line into a proper C declaration
5356
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5357
 
 
5358
 
# Transform an extracted symbol line into symbol name and symbol address
5359
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5360
 
 
5361
 
# Define system-specific variables.
5362
 
case $host_os in
5363
 
aix*)
5364
 
  symcode='[BCDT]'
5365
 
  ;;
5366
 
cygwin* | mingw* | pw32*)
5367
 
  symcode='[ABCDGISTW]'
5368
 
  ;;
5369
 
hpux*) # Its linker distinguishes data from code symbols
5370
 
  if test "$host_cpu" = ia64; then
5371
 
    symcode='[ABCDEGRST]'
5372
 
  fi
5373
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5374
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5375
 
  ;;
5376
 
irix* | nonstopux*)
5377
 
  symcode='[BCDEGRST]'
5378
 
  ;;
5379
 
osf*)
5380
 
  symcode='[BCDEGQRST]'
5381
 
  ;;
5382
 
solaris* | sysv5*)
5383
 
  symcode='[BDRT]'
5384
 
  ;;
5385
 
sysv4)
5386
 
  symcode='[DFNSTU]'
5387
 
  ;;
5388
 
esac
5389
 
 
5390
 
# Handle CRLF in mingw tool chain
5391
 
opt_cr=
5392
 
case $build_os in
5393
 
mingw*)
5394
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5395
 
  ;;
5396
 
esac
5397
 
 
5398
 
# If we're using GNU nm, then use its standard symbol codes.
5399
 
case `$NM -V 2>&1` in
5400
 
*GNU* | *'with BFD'*)
5401
 
  symcode='[ABCDGIRSTW]' ;;
5402
 
esac
5403
 
 
5404
 
# Try without a prefix undercore, then with it.
5405
 
for ac_symprfx in "" "_"; do
5406
 
 
5407
 
  # Write the raw and C identifiers.
5408
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5409
 
 
5410
 
  # Check to see that the pipe works correctly.
5411
 
  pipe_works=no
5412
 
 
5413
 
  rm -f conftest*
5414
 
  cat > conftest.$ac_ext <<EOF
5415
 
#ifdef __cplusplus
5416
 
extern "C" {
5417
 
#endif
5418
 
char nm_test_var;
5419
 
void nm_test_func(){}
5420
 
#ifdef __cplusplus
5421
 
}
5422
 
#endif
5423
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5424
 
EOF
5425
 
 
5426
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427
 
  (eval $ac_compile) 2>&5
5428
 
  ac_status=$?
5429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
 
  (exit $ac_status); }; then
5431
 
    # Now try to grab the symbols.
5432
 
    nlist=conftest.nm
5433
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5434
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5435
 
  ac_status=$?
5436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
 
  (exit $ac_status); } && test -s "$nlist"; then
5438
 
      # Try sorting and uniquifying the output.
5439
 
      if sort "$nlist" | uniq > "$nlist"T; then
5440
 
        mv -f "$nlist"T "$nlist"
5441
 
      else
5442
 
        rm -f "$nlist"T
5443
 
      fi
5444
 
 
5445
 
      # Make sure that we snagged all the symbols we need.
5446
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5447
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5448
 
          cat <<EOF > conftest.$ac_ext
5449
 
#ifdef __cplusplus
5450
 
extern "C" {
5451
 
#endif
5452
 
 
5453
 
EOF
5454
 
          # Now generate the symbol file.
5455
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5456
 
 
5457
 
          cat <<EOF >> conftest.$ac_ext
5458
 
#if defined (__STDC__) && __STDC__
5459
 
# define lt_ptr_t void *
5460
 
#else
5461
 
# define lt_ptr_t char *
5462
 
# define const
5463
 
#endif
5464
 
 
5465
 
/* The mapping between symbol names and symbols. */
5466
 
const struct {
5467
 
  const char *name;
5468
 
  lt_ptr_t address;
5469
 
}
5470
 
lt_preloaded_symbols[] =
5471
 
{
5472
 
EOF
5473
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5474
 
          cat <<\EOF >> conftest.$ac_ext
5475
 
  {0, (lt_ptr_t) 0}
5476
 
};
5477
 
 
5478
 
#ifdef __cplusplus
5479
 
}
5480
 
#endif
5481
 
EOF
5482
 
          # Now try linking the two files.
5483
 
          mv conftest.$ac_objext conftstm.$ac_objext
5484
 
          lt_save_LIBS="$LIBS"
5485
 
          lt_save_CFLAGS="$CFLAGS"
5486
 
          LIBS="conftstm.$ac_objext"
5487
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5488
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5489
 
  (eval $ac_link) 2>&5
5490
 
  ac_status=$?
5491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5493
 
            pipe_works=yes
5494
 
          fi
5495
 
          LIBS="$lt_save_LIBS"
5496
 
          CFLAGS="$lt_save_CFLAGS"
5497
 
        else
5498
 
          echo "cannot find nm_test_func in $nlist" >&5
5499
 
        fi
5500
 
      else
5501
 
        echo "cannot find nm_test_var in $nlist" >&5
5502
 
      fi
5503
 
    else
5504
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5505
 
    fi
5506
 
  else
5507
 
    echo "$progname: failed program was:" >&5
5508
 
    cat conftest.$ac_ext >&5
5509
 
  fi
5510
 
  rm -f conftest* conftst*
5511
 
 
5512
 
  # Do not use the global_symbol_pipe unless it works.
5513
 
  if test "$pipe_works" = yes; then
5514
 
    break
5515
 
  else
5516
 
    lt_cv_sys_global_symbol_pipe=
5517
 
  fi
5518
 
done
5519
 
 
5520
 
fi
5521
 
 
5522
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5523
 
  lt_cv_sys_global_symbol_to_cdecl=
5524
 
fi
5525
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5526
 
  echo "$as_me:$LINENO: result: failed" >&5
5527
 
echo "${ECHO_T}failed" >&6
5528
 
else
5529
 
  echo "$as_me:$LINENO: result: ok" >&5
5530
 
echo "${ECHO_T}ok" >&6
5531
 
fi
5532
 
 
5533
 
echo "$as_me:$LINENO: checking for objdir" >&5
5534
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5535
 
if test "${lt_cv_objdir+set}" = set; then
5536
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5537
 
else
5538
 
  rm -f .libs 2>/dev/null
5539
 
mkdir .libs 2>/dev/null
5540
 
if test -d .libs; then
5541
 
  lt_cv_objdir=.libs
5542
 
else
5543
 
  # MS-DOS does not allow filenames that begin with a dot.
5544
 
  lt_cv_objdir=_libs
5545
 
fi
5546
 
rmdir .libs 2>/dev/null
5547
 
fi
5548
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5549
 
echo "${ECHO_T}$lt_cv_objdir" >&6
5550
 
objdir=$lt_cv_objdir
5551
 
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
case $host_os in
5557
 
aix3*)
5558
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
5559
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5560
 
  # vanish in a puff of smoke.
5561
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
5562
 
    COLLECT_NAMES=
5563
 
    export COLLECT_NAMES
5564
 
  fi
5565
 
  ;;
5566
 
esac
5567
 
 
5568
 
# Sed substitution that helps us do robust quoting.  It backslashifies
5569
 
# metacharacters that are still active within double-quoted strings.
5570
 
Xsed='sed -e s/^X//'
5571
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5572
 
 
5573
 
# Same as above, but do not quote variable references.
5574
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5575
 
 
5576
 
# Sed substitution to delay expansion of an escaped shell variable in a
5577
 
# double_quote_subst'ed string.
5578
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5579
 
 
5580
 
# Sed substitution to avoid accidental globbing in evaled expressions
5581
 
no_glob_subst='s/\*/\\\*/g'
5582
 
 
5583
 
# Constants:
5584
 
rm="rm -f"
5585
 
 
5586
 
# Global variables:
5587
 
default_ofile=libtool
5588
 
can_build_shared=yes
5589
 
 
5590
 
# All known linkers require a `.a' archive for static linking (except M$VC,
5591
 
# which needs '.lib').
5592
 
libext=a
5593
 
ltmain="$ac_aux_dir/ltmain.sh"
5594
 
ofile="$default_ofile"
5595
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
5596
 
 
5597
 
if test -n "$ac_tool_prefix"; then
5598
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5599
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5600
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5601
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602
 
if test "${ac_cv_prog_AR+set}" = set; then
5603
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5604
 
else
5605
 
  if test -n "$AR"; then
5606
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5607
 
else
5608
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609
 
for as_dir in $PATH
5610
 
do
5611
 
  IFS=$as_save_IFS
5612
 
  test -z "$as_dir" && as_dir=.
5613
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5614
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5616
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617
 
    break 2
5618
 
  fi
5619
 
done
5620
 
done
5621
 
 
5622
 
fi
5623
 
fi
5624
 
AR=$ac_cv_prog_AR
5625
 
if test -n "$AR"; then
5626
 
  echo "$as_me:$LINENO: result: $AR" >&5
5627
 
echo "${ECHO_T}$AR" >&6
5628
 
else
5629
 
  echo "$as_me:$LINENO: result: no" >&5
5630
 
echo "${ECHO_T}no" >&6
5631
 
fi
5632
 
 
5633
 
fi
5634
 
if test -z "$ac_cv_prog_AR"; then
5635
 
  ac_ct_AR=$AR
5636
 
  # Extract the first word of "ar", so it can be a program name with args.
5637
 
set dummy ar; ac_word=$2
5638
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5639
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5641
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5642
 
else
5643
 
  if test -n "$ac_ct_AR"; then
5644
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5645
 
else
5646
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647
 
for as_dir in $PATH
5648
 
do
5649
 
  IFS=$as_save_IFS
5650
 
  test -z "$as_dir" && as_dir=.
5651
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5652
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653
 
    ac_cv_prog_ac_ct_AR="ar"
5654
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655
 
    break 2
5656
 
  fi
5657
 
done
5658
 
done
5659
 
 
5660
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5661
 
fi
5662
 
fi
5663
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5664
 
if test -n "$ac_ct_AR"; then
5665
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5666
 
echo "${ECHO_T}$ac_ct_AR" >&6
5667
 
else
5668
 
  echo "$as_me:$LINENO: result: no" >&5
5669
 
echo "${ECHO_T}no" >&6
5670
 
fi
5671
 
 
5672
 
  AR=$ac_ct_AR
5673
 
else
5674
 
  AR="$ac_cv_prog_AR"
5675
 
fi
5676
 
 
5677
 
if test -n "$ac_tool_prefix"; then
5678
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5679
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5680
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5681
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5682
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5683
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5684
 
else
5685
 
  if test -n "$RANLIB"; then
5686
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5687
 
else
5688
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689
 
for as_dir in $PATH
5690
 
do
5691
 
  IFS=$as_save_IFS
5692
 
  test -z "$as_dir" && as_dir=.
5693
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5694
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5696
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697
 
    break 2
5698
 
  fi
5699
 
done
5700
 
done
5701
 
 
5702
 
fi
5703
 
fi
5704
 
RANLIB=$ac_cv_prog_RANLIB
5705
 
if test -n "$RANLIB"; then
5706
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5707
 
echo "${ECHO_T}$RANLIB" >&6
5708
 
else
5709
 
  echo "$as_me:$LINENO: result: no" >&5
5710
 
echo "${ECHO_T}no" >&6
5711
 
fi
5712
 
 
5713
 
fi
5714
 
if test -z "$ac_cv_prog_RANLIB"; then
5715
 
  ac_ct_RANLIB=$RANLIB
5716
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5717
 
set dummy ranlib; ac_word=$2
5718
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5719
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5721
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5722
 
else
5723
 
  if test -n "$ac_ct_RANLIB"; then
5724
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5725
 
else
5726
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727
 
for as_dir in $PATH
5728
 
do
5729
 
  IFS=$as_save_IFS
5730
 
  test -z "$as_dir" && as_dir=.
5731
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5732
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5734
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735
 
    break 2
5736
 
  fi
5737
 
done
5738
 
done
5739
 
 
5740
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5741
 
fi
5742
 
fi
5743
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744
 
if test -n "$ac_ct_RANLIB"; then
5745
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5746
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5747
 
else
5748
 
  echo "$as_me:$LINENO: result: no" >&5
5749
 
echo "${ECHO_T}no" >&6
5750
 
fi
5751
 
 
5752
 
  RANLIB=$ac_ct_RANLIB
5753
 
else
5754
 
  RANLIB="$ac_cv_prog_RANLIB"
5755
 
fi
5756
 
 
5757
 
if test -n "$ac_tool_prefix"; then
5758
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5760
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5761
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5763
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5764
 
else
5765
 
  if test -n "$STRIP"; then
5766
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5767
 
else
5768
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769
 
for as_dir in $PATH
5770
 
do
5771
 
  IFS=$as_save_IFS
5772
 
  test -z "$as_dir" && as_dir=.
5773
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5774
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777
 
    break 2
5778
 
  fi
5779
 
done
5780
 
done
5781
 
 
5782
 
fi
5783
 
fi
5784
 
STRIP=$ac_cv_prog_STRIP
5785
 
if test -n "$STRIP"; then
5786
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5787
 
echo "${ECHO_T}$STRIP" >&6
5788
 
else
5789
 
  echo "$as_me:$LINENO: result: no" >&5
5790
 
echo "${ECHO_T}no" >&6
5791
 
fi
5792
 
 
5793
 
fi
5794
 
if test -z "$ac_cv_prog_STRIP"; then
5795
 
  ac_ct_STRIP=$STRIP
5796
 
  # Extract the first word of "strip", so it can be a program name with args.
5797
 
set dummy strip; ac_word=$2
5798
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5799
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5802
 
else
5803
 
  if test -n "$ac_ct_STRIP"; then
5804
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5805
 
else
5806
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807
 
for as_dir in $PATH
5808
 
do
5809
 
  IFS=$as_save_IFS
5810
 
  test -z "$as_dir" && as_dir=.
5811
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5812
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813
 
    ac_cv_prog_ac_ct_STRIP="strip"
5814
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815
 
    break 2
5816
 
  fi
5817
 
done
5818
 
done
5819
 
 
5820
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5821
 
fi
5822
 
fi
5823
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5824
 
if test -n "$ac_ct_STRIP"; then
5825
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5826
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
5827
 
else
5828
 
  echo "$as_me:$LINENO: result: no" >&5
5829
 
echo "${ECHO_T}no" >&6
5830
 
fi
5831
 
 
5832
 
  STRIP=$ac_ct_STRIP
5833
 
else
5834
 
  STRIP="$ac_cv_prog_STRIP"
5835
 
fi
5836
 
 
5837
 
 
5838
 
old_CC="$CC"
5839
 
old_CFLAGS="$CFLAGS"
5840
 
 
5841
 
# Set sane defaults for various variables
5842
 
test -z "$AR" && AR=ar
5843
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5844
 
test -z "$AS" && AS=as
5845
 
test -z "$CC" && CC=cc
5846
 
test -z "$LTCC" && LTCC=$CC
5847
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
5848
 
test -z "$LD" && LD=ld
5849
 
test -z "$LN_S" && LN_S="ln -s"
5850
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5851
 
test -z "$NM" && NM=nm
5852
 
test -z "$SED" && SED=sed
5853
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5854
 
test -z "$RANLIB" && RANLIB=:
5855
 
test -z "$STRIP" && STRIP=:
5856
 
test -z "$ac_objext" && ac_objext=o
5857
 
 
5858
 
# Determine commands to create old-style static archives.
5859
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5860
 
old_postinstall_cmds='chmod 644 $oldlib'
5861
 
old_postuninstall_cmds=
5862
 
 
5863
 
if test -n "$RANLIB"; then
5864
 
  case $host_os in
5865
 
  openbsd*)
5866
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5867
 
    ;;
5868
 
  *)
5869
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5870
 
    ;;
5871
 
  esac
5872
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5873
 
fi
5874
 
 
5875
 
# Only perform the check for file, if the check method requires it
5876
 
case $deplibs_check_method in
5877
 
file_magic*)
5878
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5879
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5880
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5881
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5882
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5883
 
else
5884
 
  case $MAGIC_CMD in
5885
 
[\\/*] |  ?:[\\/]*)
5886
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5887
 
  ;;
5888
 
*)
5889
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
5890
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5892
 
  for ac_dir in $ac_dummy; do
5893
 
    IFS="$lt_save_ifs"
5894
 
    test -z "$ac_dir" && ac_dir=.
5895
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
5896
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5897
 
      if test -n "$file_magic_test_file"; then
5898
 
        case $deplibs_check_method in
5899
 
        "file_magic "*)
5900
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5901
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5903
 
            $EGREP "$file_magic_regex" > /dev/null; then
5904
 
            :
5905
 
          else
5906
 
            cat <<EOF 1>&2
5907
 
 
5908
 
*** Warning: the command libtool uses to detect shared libraries,
5909
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5910
 
*** The result is that libtool may fail to recognize shared libraries
5911
 
*** as such.  This will affect the creation of libtool libraries that
5912
 
*** depend on shared libraries, but programs linked with such libtool
5913
 
*** libraries will work regardless of this problem.  Nevertheless, you
5914
 
*** may want to report the problem to your system manager and/or to
5915
 
*** bug-libtool@gnu.org
5916
 
 
5917
 
EOF
5918
 
          fi ;;
5919
 
        esac
5920
 
      fi
5921
 
      break
5922
 
    fi
5923
 
  done
5924
 
  IFS="$lt_save_ifs"
5925
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
5926
 
  ;;
5927
 
esac
5928
 
fi
5929
 
 
5930
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931
 
if test -n "$MAGIC_CMD"; then
5932
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5933
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5934
 
else
5935
 
  echo "$as_me:$LINENO: result: no" >&5
5936
 
echo "${ECHO_T}no" >&6
5937
 
fi
5938
 
 
5939
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
5940
 
  if test -n "$ac_tool_prefix"; then
5941
 
    echo "$as_me:$LINENO: checking for file" >&5
5942
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
5943
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5945
 
else
5946
 
  case $MAGIC_CMD in
5947
 
[\\/*] |  ?:[\\/]*)
5948
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5949
 
  ;;
5950
 
*)
5951
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
5952
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5953
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5954
 
  for ac_dir in $ac_dummy; do
5955
 
    IFS="$lt_save_ifs"
5956
 
    test -z "$ac_dir" && ac_dir=.
5957
 
    if test -f $ac_dir/file; then
5958
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5959
 
      if test -n "$file_magic_test_file"; then
5960
 
        case $deplibs_check_method in
5961
 
        "file_magic "*)
5962
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5963
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5965
 
            $EGREP "$file_magic_regex" > /dev/null; then
5966
 
            :
5967
 
          else
5968
 
            cat <<EOF 1>&2
5969
 
 
5970
 
*** Warning: the command libtool uses to detect shared libraries,
5971
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5972
 
*** The result is that libtool may fail to recognize shared libraries
5973
 
*** as such.  This will affect the creation of libtool libraries that
5974
 
*** depend on shared libraries, but programs linked with such libtool
5975
 
*** libraries will work regardless of this problem.  Nevertheless, you
5976
 
*** may want to report the problem to your system manager and/or to
5977
 
*** bug-libtool@gnu.org
5978
 
 
5979
 
EOF
5980
 
          fi ;;
5981
 
        esac
5982
 
      fi
5983
 
      break
5984
 
    fi
5985
 
  done
5986
 
  IFS="$lt_save_ifs"
5987
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
5988
 
  ;;
5989
 
esac
5990
 
fi
5991
 
 
5992
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993
 
if test -n "$MAGIC_CMD"; then
5994
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5995
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5996
 
else
5997
 
  echo "$as_me:$LINENO: result: no" >&5
5998
 
echo "${ECHO_T}no" >&6
5999
 
fi
6000
 
 
6001
 
  else
6002
 
    MAGIC_CMD=:
6003
 
  fi
6004
 
fi
6005
 
 
6006
 
  fi
6007
 
  ;;
6008
 
esac
6009
 
 
6010
 
enable_dlopen=no
6011
 
enable_win32_dll=no
6012
 
 
6013
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6014
 
if test "${enable_libtool_lock+set}" = set; then
6015
 
  enableval="$enable_libtool_lock"
6016
 
 
6017
 
fi;
6018
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6019
 
 
6020
 
 
6021
 
# Check whether --with-pic or --without-pic was given.
6022
 
if test "${with_pic+set}" = set; then
6023
 
  withval="$with_pic"
6024
 
  pic_mode="$withval"
6025
 
else
6026
 
  pic_mode=default
6027
 
fi;
6028
 
test -z "$pic_mode" && pic_mode=default
6029
 
 
6030
 
# Use C for the default configuration in the libtool script
6031
 
tagname=
6032
 
lt_save_CC="$CC"
6033
 
ac_ext=c
6034
 
ac_cpp='$CPP $CPPFLAGS'
6035
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
 
 
6039
 
 
6040
 
# Source file extension for C test sources.
6041
 
ac_ext=c
6042
 
 
6043
 
# Object file extension for compiled C test sources.
6044
 
objext=o
6045
 
objext=$objext
6046
 
 
6047
 
# Code to be used in simple compile tests
6048
 
lt_simple_compile_test_code="int some_variable = 0;\n"
6049
 
 
6050
 
# Code to be used in simple link tests
6051
 
lt_simple_link_test_code='int main(){return(0);}\n'
6052
 
 
6053
 
 
6054
 
# If no C compiler was specified, use CC.
6055
 
LTCC=${LTCC-"$CC"}
6056
 
 
6057
 
# Allow CC to be a program name with arguments.
6058
 
compiler=$CC
6059
 
 
6060
 
 
6061
 
#
6062
 
# Check for any special shared library compilation flags.
6063
 
#
6064
 
lt_prog_cc_shlib=
6065
 
if test "$GCC" = no; then
6066
 
  case $host_os in
6067
 
  sco3.2v5*)
6068
 
    lt_prog_cc_shlib='-belf'
6069
 
    ;;
6070
 
  esac
6071
 
fi
6072
 
if test -n "$lt_prog_cc_shlib"; then
6073
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6074
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6075
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6076
 
  else
6077
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6078
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6079
 
    lt_cv_prog_cc_can_build_shared=no
6080
 
  fi
6081
 
fi
6082
 
 
6083
 
 
6084
 
#
6085
 
# Check to make sure the static flag actually works.
6086
 
#
6087
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6088
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6089
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6091
 
else
6092
 
  lt_prog_compiler_static_works=no
6093
 
   save_LDFLAGS="$LDFLAGS"
6094
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6095
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6096
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6097
 
     # The compiler can only warn and ignore the option if not recognized
6098
 
     # So say no if there are warnings
6099
 
     if test -s conftest.err; then
6100
 
       # Append any errors to the config.log.
6101
 
       cat conftest.err 1>&5
6102
 
     else
6103
 
       lt_prog_compiler_static_works=yes
6104
 
     fi
6105
 
   fi
6106
 
   $rm conftest*
6107
 
   LDFLAGS="$save_LDFLAGS"
6108
 
 
6109
 
fi
6110
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6111
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6112
 
 
6113
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6114
 
    :
6115
 
else
6116
 
    lt_prog_compiler_static=
6117
 
fi
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
lt_prog_compiler_no_builtin_flag=
6123
 
 
6124
 
if test "$GCC" = yes; then
6125
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6126
 
 
6127
 
 
6128
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6129
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6130
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6132
 
else
6133
 
  lt_cv_prog_compiler_rtti_exceptions=no
6134
 
  ac_outfile=conftest.$ac_objext
6135
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6136
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6137
 
   # Insert the option either (1) after the last *FLAGS variable, or
6138
 
   # (2) before a word containing "conftest.", or (3) at the end.
6139
 
   # Note that $ac_compile itself does not contain backslashes and begins
6140
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6141
 
   # The option is referenced via a variable to avoid confusing sed.
6142
 
   lt_compile=`echo "$ac_compile" | $SED \
6143
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6144
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6145
 
   -e 's:$: $lt_compiler_flag:'`
6146
 
   (eval echo "\"\$as_me:6146: $lt_compile\"" >&5)
6147
 
   (eval "$lt_compile" 2>conftest.err)
6148
 
   ac_status=$?
6149
 
   cat conftest.err >&5
6150
 
   echo "$as_me:6150: \$? = $ac_status" >&5
6151
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
6152
 
     # The compiler can only warn and ignore the option if not recognized
6153
 
     # So say no if there are warnings
6154
 
     if test ! -s conftest.err; then
6155
 
       lt_cv_prog_compiler_rtti_exceptions=yes
6156
 
     fi
6157
 
   fi
6158
 
   $rm conftest*
6159
 
 
6160
 
fi
6161
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6162
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6163
 
 
6164
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6165
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6166
 
else
6167
 
    :
6168
 
fi
6169
 
 
6170
 
fi
6171
 
 
6172
 
lt_prog_compiler_wl=
6173
 
lt_prog_compiler_pic=
6174
 
lt_prog_compiler_static=
6175
 
 
6176
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6177
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6178
 
 
6179
 
  if test "$GCC" = yes; then
6180
 
    lt_prog_compiler_wl='-Wl,'
6181
 
    lt_prog_compiler_static='-static'
6182
 
 
6183
 
    case $host_os in
6184
 
      aix*)
6185
 
      # All AIX code is PIC.
6186
 
      if test "$host_cpu" = ia64; then
6187
 
        # AIX 5 now supports IA64 processor
6188
 
        lt_prog_compiler_static='-Bstatic'
6189
 
      fi
6190
 
      ;;
6191
 
 
6192
 
    amigaos*)
6193
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6194
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6195
 
      # like `-m68040'.
6196
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6197
 
      ;;
6198
 
 
6199
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6200
 
      # PIC is the default for these OSes.
6201
 
      ;;
6202
 
 
6203
 
    mingw* | pw32* | os2*)
6204
 
      # This hack is so that the source file can tell whether it is being
6205
 
      # built for inclusion in a dll (and should export symbols for example).
6206
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
6207
 
      ;;
6208
 
 
6209
 
    darwin* | rhapsody*)
6210
 
      # PIC is the default on this platform
6211
 
      # Common symbols not allowed in MH_DYLIB files
6212
 
      lt_prog_compiler_pic='-fno-common'
6213
 
      ;;
6214
 
 
6215
 
    msdosdjgpp*)
6216
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6217
 
      # on systems that don't support them.
6218
 
      lt_prog_compiler_can_build_shared=no
6219
 
      enable_shared=no
6220
 
      ;;
6221
 
 
6222
 
    sysv4*MP*)
6223
 
      if test -d /usr/nec; then
6224
 
        lt_prog_compiler_pic=-Kconform_pic
6225
 
      fi
6226
 
      ;;
6227
 
 
6228
 
    hpux*)
6229
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6230
 
      # not for PA HP-UX.
6231
 
      case "$host_cpu" in
6232
 
      hppa*64*|ia64*)
6233
 
        # +Z the default
6234
 
        ;;
6235
 
      *)
6236
 
        lt_prog_compiler_pic='-fPIC'
6237
 
        ;;
6238
 
      esac
6239
 
      ;;
6240
 
 
6241
 
    *)
6242
 
      lt_prog_compiler_pic='-fPIC'
6243
 
      ;;
6244
 
    esac
6245
 
  else
6246
 
    # PORTME Check for flag to pass linker flags through the system compiler.
6247
 
    case $host_os in
6248
 
    aix*)
6249
 
      lt_prog_compiler_wl='-Wl,'
6250
 
      if test "$host_cpu" = ia64; then
6251
 
        # AIX 5 now supports IA64 processor
6252
 
        lt_prog_compiler_static='-Bstatic'
6253
 
      else
6254
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6255
 
      fi
6256
 
      ;;
6257
 
 
6258
 
    mingw* | pw32* | os2*)
6259
 
      # This hack is so that the source file can tell whether it is being
6260
 
      # built for inclusion in a dll (and should export symbols for example).
6261
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
6262
 
      ;;
6263
 
 
6264
 
    hpux9* | hpux10* | hpux11*)
6265
 
      lt_prog_compiler_wl='-Wl,'
6266
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6267
 
      # not for PA HP-UX.
6268
 
      case "$host_cpu" in
6269
 
      hppa*64*|ia64*)
6270
 
        # +Z the default
6271
 
        ;;
6272
 
      *)
6273
 
        lt_prog_compiler_pic='+Z'
6274
 
        ;;
6275
 
      esac
6276
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6277
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6278
 
      ;;
6279
 
 
6280
 
    irix5* | irix6* | nonstopux*)
6281
 
      lt_prog_compiler_wl='-Wl,'
6282
 
      # PIC (with -KPIC) is the default.
6283
 
      lt_prog_compiler_static='-non_shared'
6284
 
      ;;
6285
 
 
6286
 
    newsos6)
6287
 
      lt_prog_compiler_pic='-KPIC'
6288
 
      lt_prog_compiler_static='-Bstatic'
6289
 
      ;;
6290
 
 
6291
 
    linux*)
6292
 
      case $CC in
6293
 
      icc* | ecc*)
6294
 
        lt_prog_compiler_wl='-Wl,'
6295
 
        lt_prog_compiler_pic='-KPIC'
6296
 
        lt_prog_compiler_static='-static'
6297
 
        ;;
6298
 
      ccc*)
6299
 
        lt_prog_compiler_wl='-Wl,'
6300
 
        # All Alpha code is PIC.
6301
 
        lt_prog_compiler_static='-non_shared'
6302
 
        ;;
6303
 
      esac
6304
 
      ;;
6305
 
 
6306
 
    osf3* | osf4* | osf5*)
6307
 
      lt_prog_compiler_wl='-Wl,'
6308
 
      # All OSF/1 code is PIC.
6309
 
      lt_prog_compiler_static='-non_shared'
6310
 
      ;;
6311
 
 
6312
 
    sco3.2v5*)
6313
 
      lt_prog_compiler_pic='-Kpic'
6314
 
      lt_prog_compiler_static='-dn'
6315
 
      ;;
6316
 
 
6317
 
    solaris*)
6318
 
      lt_prog_compiler_wl='-Wl,'
6319
 
      lt_prog_compiler_pic='-KPIC'
6320
 
      lt_prog_compiler_static='-Bstatic'
6321
 
      ;;
6322
 
 
6323
 
    sunos4*)
6324
 
      lt_prog_compiler_wl='-Qoption ld '
6325
 
      lt_prog_compiler_pic='-PIC'
6326
 
      lt_prog_compiler_static='-Bstatic'
6327
 
      ;;
6328
 
 
6329
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6330
 
      lt_prog_compiler_wl='-Wl,'
6331
 
      lt_prog_compiler_pic='-KPIC'
6332
 
      lt_prog_compiler_static='-Bstatic'
6333
 
      ;;
6334
 
 
6335
 
    sysv4*MP*)
6336
 
      if test -d /usr/nec ;then
6337
 
        lt_prog_compiler_pic='-Kconform_pic'
6338
 
        lt_prog_compiler_static='-Bstatic'
6339
 
      fi
6340
 
      ;;
6341
 
 
6342
 
    uts4*)
6343
 
      lt_prog_compiler_pic='-pic'
6344
 
      lt_prog_compiler_static='-Bstatic'
6345
 
      ;;
6346
 
 
6347
 
    *)
6348
 
      lt_prog_compiler_can_build_shared=no
6349
 
      ;;
6350
 
    esac
6351
 
  fi
6352
 
 
6353
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6354
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6355
 
 
6356
 
#
6357
 
# Check to make sure the PIC flag actually works.
6358
 
#
6359
 
if test -n "$lt_prog_compiler_pic"; then
6360
 
 
6361
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6362
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6363
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
6364
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6365
 
else
6366
 
  lt_prog_compiler_pic_works=no
6367
 
  ac_outfile=conftest.$ac_objext
6368
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6369
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6370
 
   # Insert the option either (1) after the last *FLAGS variable, or
6371
 
   # (2) before a word containing "conftest.", or (3) at the end.
6372
 
   # Note that $ac_compile itself does not contain backslashes and begins
6373
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6374
 
   # The option is referenced via a variable to avoid confusing sed.
6375
 
   lt_compile=`echo "$ac_compile" | $SED \
6376
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6377
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6378
 
   -e 's:$: $lt_compiler_flag:'`
6379
 
   (eval echo "\"\$as_me:6379: $lt_compile\"" >&5)
6380
 
   (eval "$lt_compile" 2>conftest.err)
6381
 
   ac_status=$?
6382
 
   cat conftest.err >&5
6383
 
   echo "$as_me:6383: \$? = $ac_status" >&5
6384
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
6385
 
     # The compiler can only warn and ignore the option if not recognized
6386
 
     # So say no if there are warnings
6387
 
     if test ! -s conftest.err; then
6388
 
       lt_prog_compiler_pic_works=yes
6389
 
     fi
6390
 
   fi
6391
 
   $rm conftest*
6392
 
 
6393
 
fi
6394
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6395
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6396
 
 
6397
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
6398
 
    case $lt_prog_compiler_pic in
6399
 
     "" | " "*) ;;
6400
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6401
 
     esac
6402
 
else
6403
 
    lt_prog_compiler_pic=
6404
 
     lt_prog_compiler_can_build_shared=no
6405
 
fi
6406
 
 
6407
 
fi
6408
 
case "$host_os" in
6409
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6410
 
  *djgpp*)
6411
 
    lt_prog_compiler_pic=
6412
 
    ;;
6413
 
  *)
6414
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6415
 
    ;;
6416
 
esac
6417
 
 
6418
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6419
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6420
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6421
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6422
 
else
6423
 
  lt_cv_prog_compiler_c_o=no
6424
 
   $rm -r conftest 2>/dev/null
6425
 
   mkdir conftest
6426
 
   cd conftest
6427
 
   mkdir out
6428
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6429
 
 
6430
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6431
 
   # Insert the option either (1) after the last *FLAGS variable, or
6432
 
   # (2) before a word containing "conftest.", or (3) at the end.
6433
 
   # Note that $ac_compile itself does not contain backslashes and begins
6434
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6435
 
   lt_compile=`echo "$ac_compile" | $SED \
6436
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6437
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6438
 
   -e 's:$: $lt_compiler_flag:'`
6439
 
   (eval echo "\"\$as_me:6439: $lt_compile\"" >&5)
6440
 
   (eval "$lt_compile" 2>out/conftest.err)
6441
 
   ac_status=$?
6442
 
   cat out/conftest.err >&5
6443
 
   echo "$as_me:6443: \$? = $ac_status" >&5
6444
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6445
 
   then
6446
 
     # The compiler can only warn and ignore the option if not recognized
6447
 
     # So say no if there are warnings
6448
 
     if test ! -s out/conftest.err; then
6449
 
       lt_cv_prog_compiler_c_o=yes
6450
 
     fi
6451
 
   fi
6452
 
   chmod u+w .
6453
 
   $rm conftest*
6454
 
   # SGI C++ compiler will create directory out/ii_files/ for
6455
 
   # template instantiation
6456
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6457
 
   $rm out/* && rmdir out
6458
 
   cd ..
6459
 
   rmdir conftest
6460
 
   $rm conftest*
6461
 
 
6462
 
fi
6463
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6464
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6465
 
 
6466
 
 
6467
 
hard_links="nottested"
6468
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6469
 
  # do not overwrite the value of need_locks provided by the user
6470
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6471
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6472
 
  hard_links=yes
6473
 
  $rm conftest*
6474
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6475
 
  touch conftest.a
6476
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
6477
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6478
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6479
 
echo "${ECHO_T}$hard_links" >&6
6480
 
  if test "$hard_links" = no; then
6481
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6482
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6483
 
    need_locks=warn
6484
 
  fi
6485
 
else
6486
 
  need_locks=no
6487
 
fi
6488
 
 
6489
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6490
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6491
 
 
6492
 
  runpath_var=
6493
 
  allow_undefined_flag=
6494
 
  enable_shared_with_static_runtimes=no
6495
 
  archive_cmds=
6496
 
  archive_expsym_cmds=
6497
 
  old_archive_From_new_cmds=
6498
 
  old_archive_from_expsyms_cmds=
6499
 
  export_dynamic_flag_spec=
6500
 
  whole_archive_flag_spec=
6501
 
  thread_safe_flag_spec=
6502
 
  hardcode_libdir_flag_spec=
6503
 
  hardcode_libdir_flag_spec_ld=
6504
 
  hardcode_libdir_separator=
6505
 
  hardcode_direct=no
6506
 
  hardcode_minus_L=no
6507
 
  hardcode_shlibpath_var=unsupported
6508
 
  link_all_deplibs=unknown
6509
 
  hardcode_automatic=no
6510
 
  module_cmds=
6511
 
  module_expsym_cmds=
6512
 
  always_export_symbols=no
6513
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6514
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6515
 
  # included in the symbol list
6516
 
  include_expsyms=
6517
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6518
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6519
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6520
 
  # as well as any symbol that contains `d'.
6521
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6522
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6523
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6524
 
  # the symbol is explicitly referenced.  Since portable code cannot
6525
 
  # rely on this symbol name, it's probably fine to never include it in
6526
 
  # preloaded symbol tables.
6527
 
  extract_expsyms_cmds=
6528
 
 
6529
 
  case $host_os in
6530
 
  cygwin* | mingw* | pw32*)
6531
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6532
 
    # When not using gcc, we currently assume that we are using
6533
 
    # Microsoft Visual C++.
6534
 
    if test "$GCC" != yes; then
6535
 
      with_gnu_ld=no
6536
 
    fi
6537
 
    ;;
6538
 
  openbsd*)
6539
 
    with_gnu_ld=no
6540
 
    ;;
6541
 
  esac
6542
 
 
6543
 
  ld_shlibs=yes
6544
 
  if test "$with_gnu_ld" = yes; then
6545
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6546
 
    wlarc='${wl}'
6547
 
 
6548
 
    # See if GNU ld supports shared libraries.
6549
 
    case $host_os in
6550
 
    aix3* | aix4* | aix5*)
6551
 
      # On AIX/PPC, the GNU linker is very broken
6552
 
      if test "$host_cpu" != ia64; then
6553
 
        ld_shlibs=no
6554
 
        cat <<EOF 1>&2
6555
 
 
6556
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6557
 
*** to be unable to reliably create shared libraries on AIX.
6558
 
*** Therefore, libtool is disabling shared libraries support.  If you
6559
 
*** really care for shared libraries, you may want to modify your PATH
6560
 
*** so that a non-GNU linker is found, and then restart.
6561
 
 
6562
 
EOF
6563
 
      fi
6564
 
      ;;
6565
 
 
6566
 
    amigaos*)
6567
 
      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)'
6568
 
      hardcode_libdir_flag_spec='-L$libdir'
6569
 
      hardcode_minus_L=yes
6570
 
 
6571
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6572
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6573
 
      # to version 4, is to share data among multiple programs linked
6574
 
      # with the same dynamic library.  Since this doesn't match the
6575
 
      # behavior of shared libraries on other platforms, we can't use
6576
 
      # them.
6577
 
      ld_shlibs=no
6578
 
      ;;
6579
 
 
6580
 
    beos*)
6581
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6582
 
        allow_undefined_flag=unsupported
6583
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6584
 
        # support --undefined.  This deserves some investigation.  FIXME
6585
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6586
 
      else
6587
 
        ld_shlibs=no
6588
 
      fi
6589
 
      ;;
6590
 
 
6591
 
    cygwin* | mingw* | pw32*)
6592
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6593
 
      # as there is no search path for DLLs.
6594
 
      hardcode_libdir_flag_spec='-L$libdir'
6595
 
      allow_undefined_flag=unsupported
6596
 
      always_export_symbols=no
6597
 
      enable_shared_with_static_runtimes=yes
6598
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6599
 
 
6600
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6601
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6602
 
        # If the export-symbols file already is a .def file (1st line
6603
 
        # is EXPORTS), use it as is; otherwise, prepend...
6604
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6605
 
          cp $export_symbols $output_objdir/$soname.def;
6606
 
        else
6607
 
          echo EXPORTS > $output_objdir/$soname.def;
6608
 
          cat $export_symbols >> $output_objdir/$soname.def;
6609
 
        fi~
6610
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6611
 
      else
6612
 
        ld_shlibs=no
6613
 
      fi
6614
 
      ;;
6615
 
 
6616
 
    netbsd* | knetbsd*-gnu)
6617
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6618
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6619
 
        wlarc=
6620
 
      else
6621
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6623
 
      fi
6624
 
      ;;
6625
 
 
6626
 
    solaris* | sysv5*)
6627
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6628
 
        ld_shlibs=no
6629
 
        cat <<EOF 1>&2
6630
 
 
6631
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6632
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6633
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6634
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6635
 
*** your PATH or compiler configuration so that the native linker is
6636
 
*** used, and then restart.
6637
 
 
6638
 
EOF
6639
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6642
 
      else
6643
 
        ld_shlibs=no
6644
 
      fi
6645
 
      ;;
6646
 
 
6647
 
    sunos4*)
6648
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6649
 
      wlarc=
6650
 
      hardcode_direct=yes
6651
 
      hardcode_shlibpath_var=no
6652
 
      ;;
6653
 
 
6654
 
  linux*)
6655
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6656
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6657
 
        archive_cmds="$tmp_archive_cmds"
6658
 
      supports_anon_versioning=no
6659
 
      case `$LD -v 2>/dev/null` in
6660
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6661
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6662
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6663
 
        *\ 2.11.*) ;; # other 2.11 versions
6664
 
        *) supports_anon_versioning=yes ;;
6665
 
      esac
6666
 
      if test $supports_anon_versioning = yes; then
6667
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6668
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6669
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6670
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6671
 
      else
6672
 
        archive_expsym_cmds="$tmp_archive_cmds"
6673
 
      fi
6674
 
    else
6675
 
      ld_shlibs=no
6676
 
    fi
6677
 
    ;;
6678
 
 
6679
 
    *)
6680
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6681
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6683
 
      else
6684
 
        ld_shlibs=no
6685
 
      fi
6686
 
      ;;
6687
 
    esac
6688
 
 
6689
 
    if test "$ld_shlibs" = yes; then
6690
 
      runpath_var=LD_RUN_PATH
6691
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6692
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6693
 
      # ancient GNU ld didn't support --whole-archive et. al.
6694
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6695
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6696
 
      else
6697
 
        whole_archive_flag_spec=
6698
 
      fi
6699
 
    fi
6700
 
  else
6701
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6702
 
    case $host_os in
6703
 
    aix3*)
6704
 
      allow_undefined_flag=unsupported
6705
 
      always_export_symbols=yes
6706
 
      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'
6707
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6708
 
      # are no directories specified by -L.
6709
 
      hardcode_minus_L=yes
6710
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
6711
 
        # Neither direct hardcoding nor static linking is supported with a
6712
 
        # broken collect2.
6713
 
        hardcode_direct=unsupported
6714
 
      fi
6715
 
      ;;
6716
 
 
6717
 
    aix4* | aix5*)
6718
 
      if test "$host_cpu" = ia64; then
6719
 
        # On IA64, the linker does run time linking by default, so we don't
6720
 
        # have to do anything special.
6721
 
        aix_use_runtimelinking=no
6722
 
        exp_sym_flag='-Bexport'
6723
 
        no_entry_flag=""
6724
 
      else
6725
 
        # If we're using GNU nm, then we don't want the "-C" option.
6726
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6727
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6728
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6729
 
        else
6730
 
          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'
6731
 
        fi
6732
 
        aix_use_runtimelinking=no
6733
 
 
6734
 
        # Test if we are trying to use run time linking or normal
6735
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6736
 
        # need to do runtime linking.
6737
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6738
 
          for ld_flag in $LDFLAGS; do
6739
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6740
 
            aix_use_runtimelinking=yes
6741
 
            break
6742
 
          fi
6743
 
          done
6744
 
        esac
6745
 
 
6746
 
        exp_sym_flag='-bexport'
6747
 
        no_entry_flag='-bnoentry'
6748
 
      fi
6749
 
 
6750
 
      # When large executables or shared objects are built, AIX ld can
6751
 
      # have problems creating the table of contents.  If linking a library
6752
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6753
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6754
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6755
 
 
6756
 
      archive_cmds=''
6757
 
      hardcode_direct=yes
6758
 
      hardcode_libdir_separator=':'
6759
 
      link_all_deplibs=yes
6760
 
 
6761
 
      if test "$GCC" = yes; then
6762
 
        case $host_os in aix4.012|aix4.012.*)
6763
 
        # We only want to do this on AIX 4.2 and lower, the check
6764
 
        # below for broken collect2 doesn't work under 4.3+
6765
 
          collect2name=`${CC} -print-prog-name=collect2`
6766
 
          if test -f "$collect2name" && \
6767
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6768
 
          then
6769
 
          # We have reworked collect2
6770
 
          hardcode_direct=yes
6771
 
          else
6772
 
          # We have old collect2
6773
 
          hardcode_direct=unsupported
6774
 
          # It fails to find uninstalled libraries when the uninstalled
6775
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6776
 
          # to unsupported forces relinking
6777
 
          hardcode_minus_L=yes
6778
 
          hardcode_libdir_flag_spec='-L$libdir'
6779
 
          hardcode_libdir_separator=
6780
 
          fi
6781
 
        esac
6782
 
        shared_flag='-shared'
6783
 
      else
6784
 
        # not using gcc
6785
 
        if test "$host_cpu" = ia64; then
6786
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6787
 
        # chokes on -Wl,-G. The following line is correct:
6788
 
          shared_flag='-G'
6789
 
        else
6790
 
        if test "$aix_use_runtimelinking" = yes; then
6791
 
            shared_flag='${wl}-G'
6792
 
          else
6793
 
            shared_flag='${wl}-bM:SRE'
6794
 
        fi
6795
 
        fi
6796
 
      fi
6797
 
 
6798
 
      # It seems that -bexpall does not export symbols beginning with
6799
 
      # underscore (_), so it is better to generate a list of symbols to export.
6800
 
      always_export_symbols=yes
6801
 
      if test "$aix_use_runtimelinking" = yes; then
6802
 
        # Warning - without using the other runtime loading flags (-brtl),
6803
 
        # -berok will link without error, but may produce a broken library.
6804
 
        allow_undefined_flag='-berok'
6805
 
       # Determine the default libpath from the value encoded in an empty executable.
6806
 
       cat >conftest.$ac_ext <<_ACEOF
6807
 
/* confdefs.h.  */
6808
 
_ACEOF
6809
 
cat confdefs.h >>conftest.$ac_ext
6810
 
cat >>conftest.$ac_ext <<_ACEOF
6811
 
/* end confdefs.h.  */
6812
 
 
6813
 
int
6814
 
main ()
6815
 
{
6816
 
 
6817
 
  ;
6818
 
  return 0;
6819
 
}
6820
 
_ACEOF
6821
 
rm -f conftest.$ac_objext conftest$ac_exeext
6822
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823
 
  (eval $ac_link) 2>conftest.er1
6824
 
  ac_status=$?
6825
 
  grep -v '^ *+' conftest.er1 >conftest.err
6826
 
  rm -f conftest.er1
6827
 
  cat conftest.err >&5
6828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829
 
  (exit $ac_status); } &&
6830
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832
 
  (eval $ac_try) 2>&5
6833
 
  ac_status=$?
6834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
 
  (exit $ac_status); }; } &&
6836
 
         { ac_try='test -s conftest$ac_exeext'
6837
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838
 
  (eval $ac_try) 2>&5
6839
 
  ac_status=$?
6840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841
 
  (exit $ac_status); }; }; then
6842
 
 
6843
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6844
 
}'`
6845
 
# Check for a 64-bit object if we didn't find anything.
6846
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6847
 
}'`; fi
6848
 
else
6849
 
  echo "$as_me: failed program was:" >&5
6850
 
sed 's/^/| /' conftest.$ac_ext >&5
6851
 
 
6852
 
fi
6853
 
rm -f conftest.err conftest.$ac_objext \
6854
 
      conftest$ac_exeext conftest.$ac_ext
6855
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6856
 
 
6857
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6858
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6859
 
       else
6860
 
        if test "$host_cpu" = ia64; then
6861
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6862
 
          allow_undefined_flag="-z nodefs"
6863
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6864
 
        else
6865
 
         # Determine the default libpath from the value encoded in an empty executable.
6866
 
         cat >conftest.$ac_ext <<_ACEOF
6867
 
/* confdefs.h.  */
6868
 
_ACEOF
6869
 
cat confdefs.h >>conftest.$ac_ext
6870
 
cat >>conftest.$ac_ext <<_ACEOF
6871
 
/* end confdefs.h.  */
6872
 
 
6873
 
int
6874
 
main ()
6875
 
{
6876
 
 
6877
 
  ;
6878
 
  return 0;
6879
 
}
6880
 
_ACEOF
6881
 
rm -f conftest.$ac_objext conftest$ac_exeext
6882
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883
 
  (eval $ac_link) 2>conftest.er1
6884
 
  ac_status=$?
6885
 
  grep -v '^ *+' conftest.er1 >conftest.err
6886
 
  rm -f conftest.er1
6887
 
  cat conftest.err >&5
6888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
 
  (exit $ac_status); } &&
6890
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892
 
  (eval $ac_try) 2>&5
6893
 
  ac_status=$?
6894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
 
  (exit $ac_status); }; } &&
6896
 
         { ac_try='test -s conftest$ac_exeext'
6897
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898
 
  (eval $ac_try) 2>&5
6899
 
  ac_status=$?
6900
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901
 
  (exit $ac_status); }; }; then
6902
 
 
6903
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6904
 
}'`
6905
 
# Check for a 64-bit object if we didn't find anything.
6906
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6907
 
}'`; fi
6908
 
else
6909
 
  echo "$as_me: failed program was:" >&5
6910
 
sed 's/^/| /' conftest.$ac_ext >&5
6911
 
 
6912
 
fi
6913
 
rm -f conftest.err conftest.$ac_objext \
6914
 
      conftest$ac_exeext conftest.$ac_ext
6915
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6916
 
 
6917
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6918
 
          # Warning - without using the other run time loading flags,
6919
 
          # -berok will link without error, but may produce a broken library.
6920
 
          no_undefined_flag=' ${wl}-bernotok'
6921
 
          allow_undefined_flag=' ${wl}-berok'
6922
 
          # -bexpall does not export symbols beginning with underscore (_)
6923
 
          always_export_symbols=yes
6924
 
          # Exported symbols can be pulled into shared objects from archives
6925
 
          whole_archive_flag_spec=' '
6926
 
          archive_cmds_need_lc=yes
6927
 
          # This is similar to how AIX traditionally builds it's shared libraries.
6928
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6929
 
        fi
6930
 
      fi
6931
 
      ;;
6932
 
 
6933
 
    amigaos*)
6934
 
      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)'
6935
 
      hardcode_libdir_flag_spec='-L$libdir'
6936
 
      hardcode_minus_L=yes
6937
 
      # see comment about different semantics on the GNU ld section
6938
 
      ld_shlibs=no
6939
 
      ;;
6940
 
 
6941
 
    bsdi4*)
6942
 
      export_dynamic_flag_spec=-rdynamic
6943
 
      ;;
6944
 
 
6945
 
    cygwin* | mingw* | pw32*)
6946
 
      # When not using gcc, we currently assume that we are using
6947
 
      # Microsoft Visual C++.
6948
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6949
 
      # no search path for DLLs.
6950
 
      hardcode_libdir_flag_spec=' '
6951
 
      allow_undefined_flag=unsupported
6952
 
      # Tell ltmain to make .lib files, not .a files.
6953
 
      libext=lib
6954
 
      # Tell ltmain to make .dll files, not .so files.
6955
 
      shrext=".dll"
6956
 
      # FIXME: Setting linknames here is a bad hack.
6957
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6958
 
      # The linker will automatically build a .lib file if we build a DLL.
6959
 
      old_archive_From_new_cmds='true'
6960
 
      # FIXME: Should let the user specify the lib program.
6961
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6962
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
6963
 
      enable_shared_with_static_runtimes=yes
6964
 
      ;;
6965
 
 
6966
 
    darwin* | rhapsody*)
6967
 
    if test "$GXX" = yes ; then
6968
 
      archive_cmds_need_lc=no
6969
 
      case "$host_os" in
6970
 
      rhapsody* | darwin1.[012])
6971
 
        allow_undefined_flag='-undefined suppress'
6972
 
        ;;
6973
 
      *) # Darwin 1.3 on
6974
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6975
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
6976
 
      else
6977
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6978
 
          10.[012])
6979
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
6980
 
            ;;
6981
 
          10.*)
6982
 
            allow_undefined_flag='-undefined dynamic_lookup'
6983
 
            ;;
6984
 
        esac
6985
 
      fi
6986
 
        ;;
6987
 
      esac
6988
 
        lt_int_apple_cc_single_mod=no
6989
 
        output_verbose_link_cmd='echo'
6990
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6991
 
          lt_int_apple_cc_single_mod=yes
6992
 
        fi
6993
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6994
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6995
 
        else
6996
 
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
6997
 
      fi
6998
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6999
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7000
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7001
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7002
 
        else
7003
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7004
 
        fi
7005
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7006
 
      hardcode_direct=no
7007
 
      hardcode_automatic=yes
7008
 
      hardcode_shlibpath_var=unsupported
7009
 
      whole_archive_flag_spec='-all_load $convenience'
7010
 
      link_all_deplibs=yes
7011
 
    else
7012
 
      ld_shlibs=no
7013
 
    fi
7014
 
      ;;
7015
 
 
7016
 
    dgux*)
7017
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018
 
      hardcode_libdir_flag_spec='-L$libdir'
7019
 
      hardcode_shlibpath_var=no
7020
 
      ;;
7021
 
 
7022
 
    freebsd1*)
7023
 
      ld_shlibs=no
7024
 
      ;;
7025
 
 
7026
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7027
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7028
 
    # does not break anything, and helps significantly (at the cost of a little
7029
 
    # extra space).
7030
 
    freebsd2.2*)
7031
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7032
 
      hardcode_libdir_flag_spec='-R$libdir'
7033
 
      hardcode_direct=yes
7034
 
      hardcode_shlibpath_var=no
7035
 
      ;;
7036
 
 
7037
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7038
 
    freebsd2*)
7039
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7040
 
      hardcode_direct=yes
7041
 
      hardcode_minus_L=yes
7042
 
      hardcode_shlibpath_var=no
7043
 
      ;;
7044
 
 
7045
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7046
 
    freebsd* | kfreebsd*-gnu)
7047
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7048
 
      hardcode_libdir_flag_spec='-R$libdir'
7049
 
      hardcode_direct=yes
7050
 
      hardcode_shlibpath_var=no
7051
 
      ;;
7052
 
 
7053
 
    hpux9*)
7054
 
      if test "$GCC" = yes; then
7055
 
        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'
7056
 
      else
7057
 
        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'
7058
 
      fi
7059
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7060
 
      hardcode_libdir_separator=:
7061
 
      hardcode_direct=yes
7062
 
 
7063
 
      # hardcode_minus_L: Not really in the search PATH,
7064
 
      # but as the default location of the library.
7065
 
      hardcode_minus_L=yes
7066
 
      export_dynamic_flag_spec='${wl}-E'
7067
 
      ;;
7068
 
 
7069
 
    hpux10* | hpux11*)
7070
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7071
 
        case "$host_cpu" in
7072
 
        hppa*64*|ia64*)
7073
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7074
 
          ;;
7075
 
        *)
7076
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7077
 
          ;;
7078
 
        esac
7079
 
      else
7080
 
        case "$host_cpu" in
7081
 
        hppa*64*|ia64*)
7082
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7083
 
          ;;
7084
 
        *)
7085
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7086
 
          ;;
7087
 
        esac
7088
 
      fi
7089
 
      if test "$with_gnu_ld" = no; then
7090
 
        case "$host_cpu" in
7091
 
        hppa*64*)
7092
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7093
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
7094
 
          hardcode_libdir_separator=:
7095
 
          hardcode_direct=no
7096
 
          hardcode_shlibpath_var=no
7097
 
          ;;
7098
 
        ia64*)
7099
 
          hardcode_libdir_flag_spec='-L$libdir'
7100
 
          hardcode_direct=no
7101
 
          hardcode_shlibpath_var=no
7102
 
 
7103
 
          # hardcode_minus_L: Not really in the search PATH,
7104
 
          # but as the default location of the library.
7105
 
          hardcode_minus_L=yes
7106
 
          ;;
7107
 
        *)
7108
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109
 
          hardcode_libdir_separator=:
7110
 
          hardcode_direct=yes
7111
 
          export_dynamic_flag_spec='${wl}-E'
7112
 
 
7113
 
          # hardcode_minus_L: Not really in the search PATH,
7114
 
          # but as the default location of the library.
7115
 
          hardcode_minus_L=yes
7116
 
          ;;
7117
 
        esac
7118
 
      fi
7119
 
      ;;
7120
 
 
7121
 
    irix5* | irix6* | nonstopux*)
7122
 
      if test "$GCC" = yes; then
7123
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7124
 
      else
7125
 
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7126
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7127
 
      fi
7128
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7129
 
      hardcode_libdir_separator=:
7130
 
      link_all_deplibs=yes
7131
 
      ;;
7132
 
 
7133
 
    netbsd* | knetbsd*-gnu)
7134
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7135
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7136
 
      else
7137
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7138
 
      fi
7139
 
      hardcode_libdir_flag_spec='-R$libdir'
7140
 
      hardcode_direct=yes
7141
 
      hardcode_shlibpath_var=no
7142
 
      ;;
7143
 
 
7144
 
    newsos6)
7145
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146
 
      hardcode_direct=yes
7147
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7148
 
      hardcode_libdir_separator=:
7149
 
      hardcode_shlibpath_var=no
7150
 
      ;;
7151
 
 
7152
 
    openbsd*)
7153
 
      hardcode_direct=yes
7154
 
      hardcode_shlibpath_var=no
7155
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7157
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7158
 
        export_dynamic_flag_spec='${wl}-E'
7159
 
      else
7160
 
       case $host_os in
7161
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7162
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7163
 
           hardcode_libdir_flag_spec='-R$libdir'
7164
 
           ;;
7165
 
         *)
7166
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7167
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7168
 
           ;;
7169
 
       esac
7170
 
      fi
7171
 
      ;;
7172
 
 
7173
 
    os2*)
7174
 
      hardcode_libdir_flag_spec='-L$libdir'
7175
 
      hardcode_minus_L=yes
7176
 
      allow_undefined_flag=unsupported
7177
 
      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'
7178
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7179
 
      ;;
7180
 
 
7181
 
    osf3*)
7182
 
      if test "$GCC" = yes; then
7183
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7184
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7185
 
      else
7186
 
        allow_undefined_flag=' -expect_unresolved \*'
7187
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7188
 
      fi
7189
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7190
 
      hardcode_libdir_separator=:
7191
 
      ;;
7192
 
 
7193
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7194
 
      if test "$GCC" = yes; then
7195
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7196
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7197
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7198
 
      else
7199
 
        allow_undefined_flag=' -expect_unresolved \*'
7200
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7201
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7202
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7203
 
 
7204
 
        # Both c and cxx compiler support -rpath directly
7205
 
        hardcode_libdir_flag_spec='-rpath $libdir'
7206
 
      fi
7207
 
      hardcode_libdir_separator=:
7208
 
      ;;
7209
 
 
7210
 
    sco3.2v5*)
7211
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212
 
      hardcode_shlibpath_var=no
7213
 
      export_dynamic_flag_spec='${wl}-Bexport'
7214
 
      runpath_var=LD_RUN_PATH
7215
 
      hardcode_runpath_var=yes
7216
 
      ;;
7217
 
 
7218
 
    solaris*)
7219
 
      no_undefined_flag=' -z text'
7220
 
      if test "$GCC" = yes; then
7221
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7223
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7224
 
      else
7225
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7227
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7228
 
      fi
7229
 
      hardcode_libdir_flag_spec='-R$libdir'
7230
 
      hardcode_shlibpath_var=no
7231
 
      case $host_os in
7232
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7233
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7234
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7235
 
      esac
7236
 
      link_all_deplibs=yes
7237
 
      ;;
7238
 
 
7239
 
    sunos4*)
7240
 
      if test "x$host_vendor" = xsequent; then
7241
 
        # Use $CC to link under sequent, because it throws in some extra .o
7242
 
        # files that make .init and .fini sections work.
7243
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7244
 
      else
7245
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7246
 
      fi
7247
 
      hardcode_libdir_flag_spec='-L$libdir'
7248
 
      hardcode_direct=yes
7249
 
      hardcode_minus_L=yes
7250
 
      hardcode_shlibpath_var=no
7251
 
      ;;
7252
 
 
7253
 
    sysv4)
7254
 
      case $host_vendor in
7255
 
        sni)
7256
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257
 
          hardcode_direct=yes # is this really true???
7258
 
        ;;
7259
 
        siemens)
7260
 
          ## LD is ld it makes a PLAMLIB
7261
 
          ## CC just makes a GrossModule.
7262
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7263
 
          reload_cmds='$CC -r -o $output$reload_objs'
7264
 
          hardcode_direct=no
7265
 
        ;;
7266
 
        motorola)
7267
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7269
 
        ;;
7270
 
      esac
7271
 
      runpath_var='LD_RUN_PATH'
7272
 
      hardcode_shlibpath_var=no
7273
 
      ;;
7274
 
 
7275
 
    sysv4.3*)
7276
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277
 
      hardcode_shlibpath_var=no
7278
 
      export_dynamic_flag_spec='-Bexport'
7279
 
      ;;
7280
 
 
7281
 
    sysv4*MP*)
7282
 
      if test -d /usr/nec; then
7283
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284
 
        hardcode_shlibpath_var=no
7285
 
        runpath_var=LD_RUN_PATH
7286
 
        hardcode_runpath_var=yes
7287
 
        ld_shlibs=yes
7288
 
      fi
7289
 
      ;;
7290
 
 
7291
 
    sysv4.2uw2*)
7292
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7293
 
      hardcode_direct=yes
7294
 
      hardcode_minus_L=no
7295
 
      hardcode_shlibpath_var=no
7296
 
      hardcode_runpath_var=yes
7297
 
      runpath_var=LD_RUN_PATH
7298
 
      ;;
7299
 
 
7300
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7301
 
      no_undefined_flag='${wl}-z ${wl}text'
7302
 
      if test "$GCC" = yes; then
7303
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7304
 
      else
7305
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7306
 
      fi
7307
 
      runpath_var='LD_RUN_PATH'
7308
 
      hardcode_shlibpath_var=no
7309
 
      ;;
7310
 
 
7311
 
    sysv5*)
7312
 
      no_undefined_flag=' -z text'
7313
 
      # $CC -shared without GNU ld will not create a library from C++
7314
 
      # object files and a static libstdc++, better avoid it by now
7315
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7317
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7318
 
      hardcode_libdir_flag_spec=
7319
 
      hardcode_shlibpath_var=no
7320
 
      runpath_var='LD_RUN_PATH'
7321
 
      ;;
7322
 
 
7323
 
    uts4*)
7324
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325
 
      hardcode_libdir_flag_spec='-L$libdir'
7326
 
      hardcode_shlibpath_var=no
7327
 
      ;;
7328
 
 
7329
 
    *)
7330
 
      ld_shlibs=no
7331
 
      ;;
7332
 
    esac
7333
 
  fi
7334
 
 
7335
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7336
 
echo "${ECHO_T}$ld_shlibs" >&6
7337
 
test "$ld_shlibs" = no && can_build_shared=no
7338
 
 
7339
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7340
 
if test "$GCC" = yes; then
7341
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7342
 
fi
7343
 
 
7344
 
#
7345
 
# Do we need to explicitly link libc?
7346
 
#
7347
 
case "x$archive_cmds_need_lc" in
7348
 
x|xyes)
7349
 
  # Assume -lc should be added
7350
 
  archive_cmds_need_lc=yes
7351
 
 
7352
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7353
 
    case $archive_cmds in
7354
 
    *'~'*)
7355
 
      # FIXME: we may have to deal with multi-command sequences.
7356
 
      ;;
7357
 
    '$CC '*)
7358
 
      # Test whether the compiler implicitly links with -lc since on some
7359
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7360
 
      # to ld, don't add -lc before -lgcc.
7361
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7362
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7363
 
      $rm conftest*
7364
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7365
 
 
7366
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367
 
  (eval $ac_compile) 2>&5
7368
 
  ac_status=$?
7369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370
 
  (exit $ac_status); } 2>conftest.err; then
7371
 
        soname=conftest
7372
 
        lib=conftest
7373
 
        libobjs=conftest.$ac_objext
7374
 
        deplibs=
7375
 
        wl=$lt_prog_compiler_wl
7376
 
        compiler_flags=-v
7377
 
        linker_flags=-v
7378
 
        verstring=
7379
 
        output_objdir=.
7380
 
        libname=conftest
7381
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
7382
 
        allow_undefined_flag=
7383
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7384
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7385
 
  ac_status=$?
7386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387
 
  (exit $ac_status); }
7388
 
        then
7389
 
          archive_cmds_need_lc=no
7390
 
        else
7391
 
          archive_cmds_need_lc=yes
7392
 
        fi
7393
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
7394
 
      else
7395
 
        cat conftest.err 1>&5
7396
 
      fi
7397
 
      $rm conftest*
7398
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7399
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7400
 
      ;;
7401
 
    esac
7402
 
  fi
7403
 
  ;;
7404
 
esac
7405
 
 
7406
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7407
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7408
 
library_names_spec=
7409
 
libname_spec='lib$name'
7410
 
soname_spec=
7411
 
shrext=".so"
7412
 
postinstall_cmds=
7413
 
postuninstall_cmds=
7414
 
finish_cmds=
7415
 
finish_eval=
7416
 
shlibpath_var=
7417
 
shlibpath_overrides_runpath=unknown
7418
 
version_type=none
7419
 
dynamic_linker="$host_os ld.so"
7420
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7421
 
if test "$GCC" = yes; then
7422
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7423
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7424
 
    # if the path contains ";" then we assume it to be the separator
7425
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7426
 
    # assumed that no part of a normal pathname contains ";" but that should
7427
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7428
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7429
 
  else
7430
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7431
 
  fi
7432
 
else
7433
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7434
 
fi
7435
 
need_lib_prefix=unknown
7436
 
hardcode_into_libs=no
7437
 
 
7438
 
# when you set need_version to no, make sure it does not cause -set_version
7439
 
# flags to be left without arguments
7440
 
need_version=unknown
7441
 
 
7442
 
case $host_os in
7443
 
aix3*)
7444
 
  version_type=linux
7445
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7446
 
  shlibpath_var=LIBPATH
7447
 
 
7448
 
  # AIX 3 has no versioning support, so we append a major version to the name.
7449
 
  soname_spec='${libname}${release}${shared_ext}$major'
7450
 
  ;;
7451
 
 
7452
 
aix4* | aix5*)
7453
 
  version_type=linux
7454
 
  need_lib_prefix=no
7455
 
  need_version=no
7456
 
  hardcode_into_libs=yes
7457
 
  if test "$host_cpu" = ia64; then
7458
 
    # AIX 5 supports IA64
7459
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7460
 
    shlibpath_var=LD_LIBRARY_PATH
7461
 
  else
7462
 
    # With GCC up to 2.95.x, collect2 would create an import file
7463
 
    # for dependence libraries.  The import file would start with
7464
 
    # the line `#! .'.  This would cause the generated library to
7465
 
    # depend on `.', always an invalid library.  This was fixed in
7466
 
    # development snapshots of GCC prior to 3.0.
7467
 
    case $host_os in
7468
 
      aix4 | aix4.[01] | aix4.[01].*)
7469
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7470
 
           echo ' yes '
7471
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7472
 
        :
7473
 
      else
7474
 
        can_build_shared=no
7475
 
      fi
7476
 
      ;;
7477
 
    esac
7478
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7479
 
    # soname into executable. Probably we can add versioning support to
7480
 
    # collect2, so additional links can be useful in future.
7481
 
    if test "$aix_use_runtimelinking" = yes; then
7482
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7483
 
      # instead of lib<name>.a to let people know that these are not
7484
 
      # typical AIX shared libraries.
7485
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7486
 
    else
7487
 
      # We preserve .a as extension for shared libraries through AIX4.2
7488
 
      # and later when we are not doing run time linking.
7489
 
      library_names_spec='${libname}${release}.a $libname.a'
7490
 
      soname_spec='${libname}${release}${shared_ext}$major'
7491
 
    fi
7492
 
    shlibpath_var=LIBPATH
7493
 
  fi
7494
 
  ;;
7495
 
 
7496
 
amigaos*)
7497
 
  library_names_spec='$libname.ixlibrary $libname.a'
7498
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7499
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7500
 
  ;;
7501
 
 
7502
 
beos*)
7503
 
  library_names_spec='${libname}${shared_ext}'
7504
 
  dynamic_linker="$host_os ld.so"
7505
 
  shlibpath_var=LIBRARY_PATH
7506
 
  ;;
7507
 
 
7508
 
bsdi4*)
7509
 
  version_type=linux
7510
 
  need_version=no
7511
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7512
 
  soname_spec='${libname}${release}${shared_ext}$major'
7513
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7514
 
  shlibpath_var=LD_LIBRARY_PATH
7515
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7516
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7517
 
  # the default ld.so.conf also contains /usr/contrib/lib and
7518
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7519
 
  # libtool to hard-code these into programs
7520
 
  ;;
7521
 
 
7522
 
cygwin* | mingw* | pw32*)
7523
 
  version_type=windows
7524
 
  shrext=".dll"
7525
 
  need_version=no
7526
 
  need_lib_prefix=no
7527
 
 
7528
 
  case $GCC,$host_os in
7529
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
7530
 
    library_names_spec='$libname.dll.a'
7531
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7532
 
    postinstall_cmds='base_file=`basename \${file}`~
7533
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7534
 
      dldir=$destdir/`dirname \$dlpath`~
7535
 
      test -d \$dldir || mkdir -p \$dldir~
7536
 
      $install_prog $dir/$dlname \$dldir/$dlname'
7537
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7538
 
      dlpath=$dir/\$dldll~
7539
 
       $rm \$dlpath'
7540
 
    shlibpath_overrides_runpath=yes
7541
 
 
7542
 
    case $host_os in
7543
 
    cygwin*)
7544
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7545
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7546
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7547
 
      ;;
7548
 
    mingw*)
7549
 
      # MinGW DLLs use traditional 'lib' prefix
7550
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7551
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7552
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7553
 
        # It is most probably a Windows format PATH printed by
7554
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7555
 
        # path with ; separators, and with drive letters. We can handle the
7556
 
        # drive letters (cygwin fileutils understands them), so leave them,
7557
 
        # especially as we might pass files found there to a mingw objdump,
7558
 
        # which wouldn't understand a cygwinified path. Ahh.
7559
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7560
 
      else
7561
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7562
 
      fi
7563
 
      ;;
7564
 
    pw32*)
7565
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7566
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7567
 
      ;;
7568
 
    esac
7569
 
    ;;
7570
 
 
7571
 
  *)
7572
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7573
 
    ;;
7574
 
  esac
7575
 
  dynamic_linker='Win32 ld.exe'
7576
 
  # FIXME: first we should search . and the directory the executable is in
7577
 
  shlibpath_var=PATH
7578
 
  ;;
7579
 
 
7580
 
darwin* | rhapsody*)
7581
 
  dynamic_linker="$host_os dyld"
7582
 
  version_type=darwin
7583
 
  need_lib_prefix=no
7584
 
  need_version=no
7585
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7586
 
  soname_spec='${libname}${release}${major}$shared_ext'
7587
 
  shlibpath_overrides_runpath=yes
7588
 
  shlibpath_var=DYLD_LIBRARY_PATH
7589
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7590
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7591
 
  if test "$GCC" = yes; then
7592
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7593
 
  else
7594
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7595
 
  fi
7596
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7597
 
  ;;
7598
 
 
7599
 
dgux*)
7600
 
  version_type=linux
7601
 
  need_lib_prefix=no
7602
 
  need_version=no
7603
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7604
 
  soname_spec='${libname}${release}${shared_ext}$major'
7605
 
  shlibpath_var=LD_LIBRARY_PATH
7606
 
  ;;
7607
 
 
7608
 
freebsd1*)
7609
 
  dynamic_linker=no
7610
 
  ;;
7611
 
 
7612
 
kfreebsd*-gnu)
7613
 
  version_type=linux
7614
 
  need_lib_prefix=no
7615
 
  need_version=no
7616
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7617
 
  soname_spec='${libname}${release}${shared_ext}$major'
7618
 
  shlibpath_var=LD_LIBRARY_PATH
7619
 
  shlibpath_overrides_runpath=no
7620
 
  hardcode_into_libs=yes
7621
 
  dynamic_linker='GNU ld.so'
7622
 
  ;;
7623
 
 
7624
 
freebsd*)
7625
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7626
 
  version_type=freebsd-$objformat
7627
 
  case $version_type in
7628
 
    freebsd-elf*)
7629
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7630
 
      need_version=no
7631
 
      need_lib_prefix=no
7632
 
      ;;
7633
 
    freebsd-*)
7634
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7635
 
      need_version=yes
7636
 
      ;;
7637
 
  esac
7638
 
  shlibpath_var=LD_LIBRARY_PATH
7639
 
  case $host_os in
7640
 
  freebsd2*)
7641
 
    shlibpath_overrides_runpath=yes
7642
 
    ;;
7643
 
  freebsd3.01* | freebsdelf3.01*)
7644
 
    shlibpath_overrides_runpath=yes
7645
 
    hardcode_into_libs=yes
7646
 
    ;;
7647
 
  *) # from 3.2 on
7648
 
    shlibpath_overrides_runpath=no
7649
 
    hardcode_into_libs=yes
7650
 
    ;;
7651
 
  esac
7652
 
  ;;
7653
 
 
7654
 
gnu*)
7655
 
  version_type=linux
7656
 
  need_lib_prefix=no
7657
 
  need_version=no
7658
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7659
 
  soname_spec='${libname}${release}${shared_ext}$major'
7660
 
  shlibpath_var=LD_LIBRARY_PATH
7661
 
  hardcode_into_libs=yes
7662
 
  ;;
7663
 
 
7664
 
hpux9* | hpux10* | hpux11*)
7665
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
7666
 
  # link against other versions.
7667
 
  version_type=sunos
7668
 
  need_lib_prefix=no
7669
 
  need_version=no
7670
 
  case "$host_cpu" in
7671
 
  ia64*)
7672
 
    shrext='.so'
7673
 
    hardcode_into_libs=yes
7674
 
    dynamic_linker="$host_os dld.so"
7675
 
    shlibpath_var=LD_LIBRARY_PATH
7676
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7677
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678
 
    soname_spec='${libname}${release}${shared_ext}$major'
7679
 
    if test "X$HPUX_IA64_MODE" = X32; then
7680
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7681
 
    else
7682
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7683
 
    fi
7684
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7685
 
    ;;
7686
 
   hppa*64*)
7687
 
     shrext='.sl'
7688
 
     hardcode_into_libs=yes
7689
 
     dynamic_linker="$host_os dld.sl"
7690
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7691
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7692
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7693
 
     soname_spec='${libname}${release}${shared_ext}$major'
7694
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7695
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7696
 
     ;;
7697
 
   *)
7698
 
    shrext='.sl'
7699
 
    dynamic_linker="$host_os dld.sl"
7700
 
    shlibpath_var=SHLIB_PATH
7701
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7702
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703
 
    soname_spec='${libname}${release}${shared_ext}$major'
7704
 
    ;;
7705
 
  esac
7706
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7707
 
  postinstall_cmds='chmod 555 $lib'
7708
 
  ;;
7709
 
 
7710
 
irix5* | irix6* | nonstopux*)
7711
 
  case $host_os in
7712
 
    nonstopux*) version_type=nonstopux ;;
7713
 
    *)
7714
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
7715
 
                version_type=linux
7716
 
        else
7717
 
                version_type=irix
7718
 
        fi ;;
7719
 
  esac
7720
 
  need_lib_prefix=no
7721
 
  need_version=no
7722
 
  soname_spec='${libname}${release}${shared_ext}$major'
7723
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7724
 
  case $host_os in
7725
 
  irix5* | nonstopux*)
7726
 
    libsuff= shlibsuff=
7727
 
    ;;
7728
 
  *)
7729
 
    case $LD in # libtool.m4 will add one of these switches to LD
7730
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7731
 
      libsuff= shlibsuff= libmagic=32-bit;;
7732
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7733
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
7734
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7735
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7736
 
    *) libsuff= shlibsuff= libmagic=never-match;;
7737
 
    esac
7738
 
    ;;
7739
 
  esac
7740
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7741
 
  shlibpath_overrides_runpath=no
7742
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7743
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7744
 
  hardcode_into_libs=yes
7745
 
  ;;
7746
 
 
7747
 
# No shared lib support for Linux oldld, aout, or coff.
7748
 
linux*oldld* | linux*aout* | linux*coff*)
7749
 
  dynamic_linker=no
7750
 
  ;;
7751
 
 
7752
 
# This must be Linux ELF.
7753
 
linux*)
7754
 
  version_type=linux
7755
 
  need_lib_prefix=no
7756
 
  need_version=no
7757
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7758
 
  soname_spec='${libname}${release}${shared_ext}$major'
7759
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7760
 
  shlibpath_var=LD_LIBRARY_PATH
7761
 
  shlibpath_overrides_runpath=no
7762
 
  # This implies no fast_install, which is unacceptable.
7763
 
  # Some rework will be needed to allow for fast_install
7764
 
  # before this can be enabled.
7765
 
  hardcode_into_libs=yes
7766
 
 
7767
 
  # Append ld.so.conf contents to the search path
7768
 
  if test -f /etc/ld.so.conf; then
7769
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7770
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7771
 
  fi
7772
 
 
7773
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7774
 
  # powerpc, because MkLinux only supported shared libraries with the
7775
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
7776
 
  # most powerpc-linux boxes support dynamic linking these days and
7777
 
  # people can always --disable-shared, the test was removed, and we
7778
 
  # assume the GNU/Linux dynamic linker is in use.
7779
 
  dynamic_linker='GNU/Linux ld.so'
7780
 
  ;;
7781
 
 
7782
 
knetbsd*-gnu)
7783
 
  version_type=linux
7784
 
  need_lib_prefix=no
7785
 
  need_version=no
7786
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7787
 
  soname_spec='${libname}${release}${shared_ext}$major'
7788
 
  shlibpath_var=LD_LIBRARY_PATH
7789
 
  shlibpath_overrides_runpath=no
7790
 
  hardcode_into_libs=yes
7791
 
  dynamic_linker='GNU ld.so'
7792
 
  ;;
7793
 
 
7794
 
netbsd*)
7795
 
  version_type=sunos
7796
 
  need_lib_prefix=no
7797
 
  need_version=no
7798
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7799
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7800
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7801
 
    dynamic_linker='NetBSD (a.out) ld.so'
7802
 
  else
7803
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7804
 
    soname_spec='${libname}${release}${shared_ext}$major'
7805
 
    dynamic_linker='NetBSD ld.elf_so'
7806
 
  fi
7807
 
  shlibpath_var=LD_LIBRARY_PATH
7808
 
  shlibpath_overrides_runpath=yes
7809
 
  hardcode_into_libs=yes
7810
 
  ;;
7811
 
 
7812
 
newsos6)
7813
 
  version_type=linux
7814
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815
 
  shlibpath_var=LD_LIBRARY_PATH
7816
 
  shlibpath_overrides_runpath=yes
7817
 
  ;;
7818
 
 
7819
 
nto-qnx*)
7820
 
  version_type=linux
7821
 
  need_lib_prefix=no
7822
 
  need_version=no
7823
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824
 
  soname_spec='${libname}${release}${shared_ext}$major'
7825
 
  shlibpath_var=LD_LIBRARY_PATH
7826
 
  shlibpath_overrides_runpath=yes
7827
 
  ;;
7828
 
 
7829
 
openbsd*)
7830
 
  version_type=sunos
7831
 
  need_lib_prefix=no
7832
 
  need_version=yes
7833
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7834
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7835
 
  shlibpath_var=LD_LIBRARY_PATH
7836
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7837
 
    case $host_os in
7838
 
      openbsd2.[89] | openbsd2.[89].*)
7839
 
        shlibpath_overrides_runpath=no
7840
 
        ;;
7841
 
      *)
7842
 
        shlibpath_overrides_runpath=yes
7843
 
        ;;
7844
 
      esac
7845
 
  else
7846
 
    shlibpath_overrides_runpath=yes
7847
 
  fi
7848
 
  ;;
7849
 
 
7850
 
os2*)
7851
 
  libname_spec='$name'
7852
 
  shrext=".dll"
7853
 
  need_lib_prefix=no
7854
 
  library_names_spec='$libname${shared_ext} $libname.a'
7855
 
  dynamic_linker='OS/2 ld.exe'
7856
 
  shlibpath_var=LIBPATH
7857
 
  ;;
7858
 
 
7859
 
osf3* | osf4* | osf5*)
7860
 
  version_type=osf
7861
 
  need_lib_prefix=no
7862
 
  need_version=no
7863
 
  soname_spec='${libname}${release}${shared_ext}$major'
7864
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865
 
  shlibpath_var=LD_LIBRARY_PATH
7866
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7867
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7868
 
  ;;
7869
 
 
7870
 
sco3.2v5*)
7871
 
  version_type=osf
7872
 
  soname_spec='${libname}${release}${shared_ext}$major'
7873
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874
 
  shlibpath_var=LD_LIBRARY_PATH
7875
 
  ;;
7876
 
 
7877
 
solaris*)
7878
 
  version_type=linux
7879
 
  need_lib_prefix=no
7880
 
  need_version=no
7881
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882
 
  soname_spec='${libname}${release}${shared_ext}$major'
7883
 
  shlibpath_var=LD_LIBRARY_PATH
7884
 
  shlibpath_overrides_runpath=yes
7885
 
  hardcode_into_libs=yes
7886
 
  # ldd complains unless libraries are executable
7887
 
  postinstall_cmds='chmod +x $lib'
7888
 
  ;;
7889
 
 
7890
 
sunos4*)
7891
 
  version_type=sunos
7892
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7893
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7894
 
  shlibpath_var=LD_LIBRARY_PATH
7895
 
  shlibpath_overrides_runpath=yes
7896
 
  if test "$with_gnu_ld" = yes; then
7897
 
    need_lib_prefix=no
7898
 
  fi
7899
 
  need_version=yes
7900
 
  ;;
7901
 
 
7902
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7903
 
  version_type=linux
7904
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905
 
  soname_spec='${libname}${release}${shared_ext}$major'
7906
 
  shlibpath_var=LD_LIBRARY_PATH
7907
 
  case $host_vendor in
7908
 
    sni)
7909
 
      shlibpath_overrides_runpath=no
7910
 
      need_lib_prefix=no
7911
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
7912
 
      runpath_var=LD_RUN_PATH
7913
 
      ;;
7914
 
    siemens)
7915
 
      need_lib_prefix=no
7916
 
      ;;
7917
 
    motorola)
7918
 
      need_lib_prefix=no
7919
 
      need_version=no
7920
 
      shlibpath_overrides_runpath=no
7921
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7922
 
      ;;
7923
 
  esac
7924
 
  ;;
7925
 
 
7926
 
sysv4*MP*)
7927
 
  if test -d /usr/nec ;then
7928
 
    version_type=linux
7929
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7930
 
    soname_spec='$libname${shared_ext}.$major'
7931
 
    shlibpath_var=LD_LIBRARY_PATH
7932
 
  fi
7933
 
  ;;
7934
 
 
7935
 
uts4*)
7936
 
  version_type=linux
7937
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7938
 
  soname_spec='${libname}${release}${shared_ext}$major'
7939
 
  shlibpath_var=LD_LIBRARY_PATH
7940
 
  ;;
7941
 
 
7942
 
*)
7943
 
  dynamic_linker=no
7944
 
  ;;
7945
 
esac
7946
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7947
 
echo "${ECHO_T}$dynamic_linker" >&6
7948
 
test "$dynamic_linker" = no && can_build_shared=no
7949
 
 
7950
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7951
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7952
 
hardcode_action=
7953
 
if test -n "$hardcode_libdir_flag_spec" || \
7954
 
   test -n "$runpath_var " || \
7955
 
   test "X$hardcode_automatic"="Xyes" ; then
7956
 
 
7957
 
  # We can hardcode non-existant directories.
7958
 
  if test "$hardcode_direct" != no &&
7959
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7960
 
     # have to relink, otherwise we might link with an installed library
7961
 
     # when we should be linking with a yet-to-be-installed one
7962
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7963
 
     test "$hardcode_minus_L" != no; then
7964
 
    # Linking always hardcodes the temporary library directory.
7965
 
    hardcode_action=relink
7966
 
  else
7967
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7968
 
    hardcode_action=immediate
7969
 
  fi
7970
 
else
7971
 
  # We cannot hardcode anything, or else we can only hardcode existing
7972
 
  # directories.
7973
 
  hardcode_action=unsupported
7974
 
fi
7975
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7976
 
echo "${ECHO_T}$hardcode_action" >&6
7977
 
 
7978
 
if test "$hardcode_action" = relink; then
7979
 
  # Fast installation is not supported
7980
 
  enable_fast_install=no
7981
 
elif test "$shlibpath_overrides_runpath" = yes ||
7982
 
     test "$enable_shared" = no; then
7983
 
  # Fast installation is not necessary
7984
 
  enable_fast_install=needless
7985
 
fi
7986
 
 
7987
 
striplib=
7988
 
old_striplib=
7989
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7990
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7991
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7992
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7993
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7994
 
  echo "$as_me:$LINENO: result: yes" >&5
7995
 
echo "${ECHO_T}yes" >&6
7996
 
else
7997
 
# FIXME - insert some real tests, host_os isn't really good enough
7998
 
  case $host_os in
7999
 
   darwin*)
8000
 
       if test -n "$STRIP" ; then
8001
 
         striplib="$STRIP -x"
8002
 
         echo "$as_me:$LINENO: result: yes" >&5
8003
 
echo "${ECHO_T}yes" >&6
8004
 
       else
8005
 
  echo "$as_me:$LINENO: result: no" >&5
8006
 
echo "${ECHO_T}no" >&6
8007
 
fi
8008
 
       ;;
8009
 
   *)
8010
 
  echo "$as_me:$LINENO: result: no" >&5
8011
 
echo "${ECHO_T}no" >&6
8012
 
    ;;
8013
 
  esac
8014
 
fi
8015
 
 
8016
 
if test "x$enable_dlopen" != xyes; then
8017
 
  enable_dlopen=unknown
8018
 
  enable_dlopen_self=unknown
8019
 
  enable_dlopen_self_static=unknown
8020
 
else
8021
 
  lt_cv_dlopen=no
8022
 
  lt_cv_dlopen_libs=
8023
 
 
8024
 
  case $host_os in
8025
 
  beos*)
8026
 
    lt_cv_dlopen="load_add_on"
8027
 
    lt_cv_dlopen_libs=
8028
 
    lt_cv_dlopen_self=yes
8029
 
    ;;
8030
 
 
8031
 
  mingw* | pw32*)
8032
 
    lt_cv_dlopen="LoadLibrary"
8033
 
    lt_cv_dlopen_libs=
8034
 
   ;;
8035
 
 
8036
 
  cygwin*)
8037
 
    lt_cv_dlopen="dlopen"
8038
 
    lt_cv_dlopen_libs=
8039
 
   ;;
8040
 
 
8041
 
  darwin*)
8042
 
  # if libdl is installed we need to link against it
8043
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8044
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8045
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8046
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8047
 
else
8048
 
  ac_check_lib_save_LIBS=$LIBS
8049
 
LIBS="-ldl  $LIBS"
8050
 
cat >conftest.$ac_ext <<_ACEOF
8051
 
/* confdefs.h.  */
8052
 
_ACEOF
8053
 
cat confdefs.h >>conftest.$ac_ext
8054
 
cat >>conftest.$ac_ext <<_ACEOF
8055
 
/* end confdefs.h.  */
8056
 
 
8057
 
/* Override any gcc2 internal prototype to avoid an error.  */
8058
 
#ifdef __cplusplus
8059
 
extern "C"
8060
 
#endif
8061
 
/* We use char because int might match the return type of a gcc2
8062
 
   builtin and then its argument prototype would still apply.  */
8063
 
char dlopen ();
8064
 
int
8065
 
main ()
8066
 
{
8067
 
dlopen ();
8068
 
  ;
8069
 
  return 0;
8070
 
}
8071
 
_ACEOF
8072
 
rm -f conftest.$ac_objext conftest$ac_exeext
8073
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074
 
  (eval $ac_link) 2>conftest.er1
8075
 
  ac_status=$?
8076
 
  grep -v '^ *+' conftest.er1 >conftest.err
8077
 
  rm -f conftest.er1
8078
 
  cat conftest.err >&5
8079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080
 
  (exit $ac_status); } &&
8081
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083
 
  (eval $ac_try) 2>&5
8084
 
  ac_status=$?
8085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086
 
  (exit $ac_status); }; } &&
8087
 
         { ac_try='test -s conftest$ac_exeext'
8088
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089
 
  (eval $ac_try) 2>&5
8090
 
  ac_status=$?
8091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092
 
  (exit $ac_status); }; }; then
8093
 
  ac_cv_lib_dl_dlopen=yes
8094
 
else
8095
 
  echo "$as_me: failed program was:" >&5
8096
 
sed 's/^/| /' conftest.$ac_ext >&5
8097
 
 
8098
 
ac_cv_lib_dl_dlopen=no
8099
 
fi
8100
 
rm -f conftest.err conftest.$ac_objext \
8101
 
      conftest$ac_exeext conftest.$ac_ext
8102
 
LIBS=$ac_check_lib_save_LIBS
8103
 
fi
8104
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8105
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8106
 
if test $ac_cv_lib_dl_dlopen = yes; then
8107
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8108
 
else
8109
 
 
8110
 
    lt_cv_dlopen="dyld"
8111
 
    lt_cv_dlopen_libs=
8112
 
    lt_cv_dlopen_self=yes
8113
 
 
8114
 
fi
8115
 
 
8116
 
   ;;
8117
 
 
8118
 
  *)
8119
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8120
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8121
 
if test "${ac_cv_func_shl_load+set}" = set; then
8122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8123
 
else
8124
 
  cat >conftest.$ac_ext <<_ACEOF
8125
 
/* confdefs.h.  */
8126
 
_ACEOF
8127
 
cat confdefs.h >>conftest.$ac_ext
8128
 
cat >>conftest.$ac_ext <<_ACEOF
8129
 
/* end confdefs.h.  */
8130
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8131
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8132
 
#define shl_load innocuous_shl_load
8133
 
 
8134
 
/* System header to define __stub macros and hopefully few prototypes,
8135
 
    which can conflict with char shl_load (); below.
8136
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137
 
    <limits.h> exists even on freestanding compilers.  */
8138
 
 
8139
 
#ifdef __STDC__
8140
 
# include <limits.h>
8141
 
#else
8142
 
# include <assert.h>
8143
 
#endif
8144
 
 
8145
 
#undef shl_load
8146
 
 
8147
 
/* Override any gcc2 internal prototype to avoid an error.  */
8148
 
#ifdef __cplusplus
8149
 
extern "C"
8150
 
{
8151
 
#endif
8152
 
/* We use char because int might match the return type of a gcc2
8153
 
   builtin and then its argument prototype would still apply.  */
8154
 
char shl_load ();
8155
 
/* The GNU C library defines this for functions which it implements
8156
 
    to always fail with ENOSYS.  Some functions are actually named
8157
 
    something starting with __ and the normal name is an alias.  */
8158
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8159
 
choke me
8160
 
#else
8161
 
char (*f) () = shl_load;
8162
 
#endif
8163
 
#ifdef __cplusplus
8164
 
}
8165
 
#endif
8166
 
 
8167
 
int
8168
 
main ()
8169
 
{
8170
 
return f != shl_load;
8171
 
  ;
8172
 
  return 0;
8173
 
}
8174
 
_ACEOF
8175
 
rm -f conftest.$ac_objext conftest$ac_exeext
8176
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177
 
  (eval $ac_link) 2>conftest.er1
8178
 
  ac_status=$?
8179
 
  grep -v '^ *+' conftest.er1 >conftest.err
8180
 
  rm -f conftest.er1
8181
 
  cat conftest.err >&5
8182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183
 
  (exit $ac_status); } &&
8184
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186
 
  (eval $ac_try) 2>&5
8187
 
  ac_status=$?
8188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
 
  (exit $ac_status); }; } &&
8190
 
         { ac_try='test -s conftest$ac_exeext'
8191
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192
 
  (eval $ac_try) 2>&5
8193
 
  ac_status=$?
8194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195
 
  (exit $ac_status); }; }; then
8196
 
  ac_cv_func_shl_load=yes
8197
 
else
8198
 
  echo "$as_me: failed program was:" >&5
8199
 
sed 's/^/| /' conftest.$ac_ext >&5
8200
 
 
8201
 
ac_cv_func_shl_load=no
8202
 
fi
8203
 
rm -f conftest.err conftest.$ac_objext \
8204
 
      conftest$ac_exeext conftest.$ac_ext
8205
 
fi
8206
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8207
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8208
 
if test $ac_cv_func_shl_load = yes; then
8209
 
  lt_cv_dlopen="shl_load"
8210
 
else
8211
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8212
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8213
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8215
 
else
8216
 
  ac_check_lib_save_LIBS=$LIBS
8217
 
LIBS="-ldld  $LIBS"
8218
 
cat >conftest.$ac_ext <<_ACEOF
8219
 
/* confdefs.h.  */
8220
 
_ACEOF
8221
 
cat confdefs.h >>conftest.$ac_ext
8222
 
cat >>conftest.$ac_ext <<_ACEOF
8223
 
/* end confdefs.h.  */
8224
 
 
8225
 
/* Override any gcc2 internal prototype to avoid an error.  */
8226
 
#ifdef __cplusplus
8227
 
extern "C"
8228
 
#endif
8229
 
/* We use char because int might match the return type of a gcc2
8230
 
   builtin and then its argument prototype would still apply.  */
8231
 
char shl_load ();
8232
 
int
8233
 
main ()
8234
 
{
8235
 
shl_load ();
8236
 
  ;
8237
 
  return 0;
8238
 
}
8239
 
_ACEOF
8240
 
rm -f conftest.$ac_objext conftest$ac_exeext
8241
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242
 
  (eval $ac_link) 2>conftest.er1
8243
 
  ac_status=$?
8244
 
  grep -v '^ *+' conftest.er1 >conftest.err
8245
 
  rm -f conftest.er1
8246
 
  cat conftest.err >&5
8247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
 
  (exit $ac_status); } &&
8249
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251
 
  (eval $ac_try) 2>&5
8252
 
  ac_status=$?
8253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
 
  (exit $ac_status); }; } &&
8255
 
         { ac_try='test -s conftest$ac_exeext'
8256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257
 
  (eval $ac_try) 2>&5
8258
 
  ac_status=$?
8259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
 
  (exit $ac_status); }; }; then
8261
 
  ac_cv_lib_dld_shl_load=yes
8262
 
else
8263
 
  echo "$as_me: failed program was:" >&5
8264
 
sed 's/^/| /' conftest.$ac_ext >&5
8265
 
 
8266
 
ac_cv_lib_dld_shl_load=no
8267
 
fi
8268
 
rm -f conftest.err conftest.$ac_objext \
8269
 
      conftest$ac_exeext conftest.$ac_ext
8270
 
LIBS=$ac_check_lib_save_LIBS
8271
 
fi
8272
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8273
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8274
 
if test $ac_cv_lib_dld_shl_load = yes; then
8275
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8276
 
else
8277
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8278
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8279
 
if test "${ac_cv_func_dlopen+set}" = set; then
8280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8281
 
else
8282
 
  cat >conftest.$ac_ext <<_ACEOF
8283
 
/* confdefs.h.  */
8284
 
_ACEOF
8285
 
cat confdefs.h >>conftest.$ac_ext
8286
 
cat >>conftest.$ac_ext <<_ACEOF
8287
 
/* end confdefs.h.  */
8288
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8289
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8290
 
#define dlopen innocuous_dlopen
8291
 
 
8292
 
/* System header to define __stub macros and hopefully few prototypes,
8293
 
    which can conflict with char dlopen (); below.
8294
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295
 
    <limits.h> exists even on freestanding compilers.  */
8296
 
 
8297
 
#ifdef __STDC__
8298
 
# include <limits.h>
8299
 
#else
8300
 
# include <assert.h>
8301
 
#endif
8302
 
 
8303
 
#undef dlopen
8304
 
 
8305
 
/* Override any gcc2 internal prototype to avoid an error.  */
8306
 
#ifdef __cplusplus
8307
 
extern "C"
8308
 
{
8309
 
#endif
8310
 
/* We use char because int might match the return type of a gcc2
8311
 
   builtin and then its argument prototype would still apply.  */
8312
 
char dlopen ();
8313
 
/* The GNU C library defines this for functions which it implements
8314
 
    to always fail with ENOSYS.  Some functions are actually named
8315
 
    something starting with __ and the normal name is an alias.  */
8316
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8317
 
choke me
8318
 
#else
8319
 
char (*f) () = dlopen;
8320
 
#endif
8321
 
#ifdef __cplusplus
8322
 
}
8323
 
#endif
8324
 
 
8325
 
int
8326
 
main ()
8327
 
{
8328
 
return f != dlopen;
8329
 
  ;
8330
 
  return 0;
8331
 
}
8332
 
_ACEOF
8333
 
rm -f conftest.$ac_objext conftest$ac_exeext
8334
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335
 
  (eval $ac_link) 2>conftest.er1
8336
 
  ac_status=$?
8337
 
  grep -v '^ *+' conftest.er1 >conftest.err
8338
 
  rm -f conftest.er1
8339
 
  cat conftest.err >&5
8340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
 
  (exit $ac_status); } &&
8342
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344
 
  (eval $ac_try) 2>&5
8345
 
  ac_status=$?
8346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347
 
  (exit $ac_status); }; } &&
8348
 
         { ac_try='test -s conftest$ac_exeext'
8349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350
 
  (eval $ac_try) 2>&5
8351
 
  ac_status=$?
8352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
 
  (exit $ac_status); }; }; then
8354
 
  ac_cv_func_dlopen=yes
8355
 
else
8356
 
  echo "$as_me: failed program was:" >&5
8357
 
sed 's/^/| /' conftest.$ac_ext >&5
8358
 
 
8359
 
ac_cv_func_dlopen=no
8360
 
fi
8361
 
rm -f conftest.err conftest.$ac_objext \
8362
 
      conftest$ac_exeext conftest.$ac_ext
8363
 
fi
8364
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8365
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8366
 
if test $ac_cv_func_dlopen = yes; then
8367
 
  lt_cv_dlopen="dlopen"
8368
 
else
8369
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8370
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8371
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8373
 
else
8374
 
  ac_check_lib_save_LIBS=$LIBS
8375
 
LIBS="-ldl  $LIBS"
8376
 
cat >conftest.$ac_ext <<_ACEOF
8377
 
/* confdefs.h.  */
8378
 
_ACEOF
8379
 
cat confdefs.h >>conftest.$ac_ext
8380
 
cat >>conftest.$ac_ext <<_ACEOF
8381
 
/* end confdefs.h.  */
8382
 
 
8383
 
/* Override any gcc2 internal prototype to avoid an error.  */
8384
 
#ifdef __cplusplus
8385
 
extern "C"
8386
 
#endif
8387
 
/* We use char because int might match the return type of a gcc2
8388
 
   builtin and then its argument prototype would still apply.  */
8389
 
char dlopen ();
8390
 
int
8391
 
main ()
8392
 
{
8393
 
dlopen ();
8394
 
  ;
8395
 
  return 0;
8396
 
}
8397
 
_ACEOF
8398
 
rm -f conftest.$ac_objext conftest$ac_exeext
8399
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400
 
  (eval $ac_link) 2>conftest.er1
8401
 
  ac_status=$?
8402
 
  grep -v '^ *+' conftest.er1 >conftest.err
8403
 
  rm -f conftest.er1
8404
 
  cat conftest.err >&5
8405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406
 
  (exit $ac_status); } &&
8407
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8408
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409
 
  (eval $ac_try) 2>&5
8410
 
  ac_status=$?
8411
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412
 
  (exit $ac_status); }; } &&
8413
 
         { ac_try='test -s conftest$ac_exeext'
8414
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415
 
  (eval $ac_try) 2>&5
8416
 
  ac_status=$?
8417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418
 
  (exit $ac_status); }; }; then
8419
 
  ac_cv_lib_dl_dlopen=yes
8420
 
else
8421
 
  echo "$as_me: failed program was:" >&5
8422
 
sed 's/^/| /' conftest.$ac_ext >&5
8423
 
 
8424
 
ac_cv_lib_dl_dlopen=no
8425
 
fi
8426
 
rm -f conftest.err conftest.$ac_objext \
8427
 
      conftest$ac_exeext conftest.$ac_ext
8428
 
LIBS=$ac_check_lib_save_LIBS
8429
 
fi
8430
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8431
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8432
 
if test $ac_cv_lib_dl_dlopen = yes; then
8433
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8434
 
else
8435
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8436
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8437
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8438
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8439
 
else
8440
 
  ac_check_lib_save_LIBS=$LIBS
8441
 
LIBS="-lsvld  $LIBS"
8442
 
cat >conftest.$ac_ext <<_ACEOF
8443
 
/* confdefs.h.  */
8444
 
_ACEOF
8445
 
cat confdefs.h >>conftest.$ac_ext
8446
 
cat >>conftest.$ac_ext <<_ACEOF
8447
 
/* end confdefs.h.  */
8448
 
 
8449
 
/* Override any gcc2 internal prototype to avoid an error.  */
8450
 
#ifdef __cplusplus
8451
 
extern "C"
8452
 
#endif
8453
 
/* We use char because int might match the return type of a gcc2
8454
 
   builtin and then its argument prototype would still apply.  */
8455
 
char dlopen ();
8456
 
int
8457
 
main ()
8458
 
{
8459
 
dlopen ();
8460
 
  ;
8461
 
  return 0;
8462
 
}
8463
 
_ACEOF
8464
 
rm -f conftest.$ac_objext conftest$ac_exeext
8465
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466
 
  (eval $ac_link) 2>conftest.er1
8467
 
  ac_status=$?
8468
 
  grep -v '^ *+' conftest.er1 >conftest.err
8469
 
  rm -f conftest.er1
8470
 
  cat conftest.err >&5
8471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472
 
  (exit $ac_status); } &&
8473
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475
 
  (eval $ac_try) 2>&5
8476
 
  ac_status=$?
8477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478
 
  (exit $ac_status); }; } &&
8479
 
         { ac_try='test -s conftest$ac_exeext'
8480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481
 
  (eval $ac_try) 2>&5
8482
 
  ac_status=$?
8483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
 
  (exit $ac_status); }; }; then
8485
 
  ac_cv_lib_svld_dlopen=yes
8486
 
else
8487
 
  echo "$as_me: failed program was:" >&5
8488
 
sed 's/^/| /' conftest.$ac_ext >&5
8489
 
 
8490
 
ac_cv_lib_svld_dlopen=no
8491
 
fi
8492
 
rm -f conftest.err conftest.$ac_objext \
8493
 
      conftest$ac_exeext conftest.$ac_ext
8494
 
LIBS=$ac_check_lib_save_LIBS
8495
 
fi
8496
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8497
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8498
 
if test $ac_cv_lib_svld_dlopen = yes; then
8499
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8500
 
else
8501
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8502
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8503
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8504
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8505
 
else
8506
 
  ac_check_lib_save_LIBS=$LIBS
8507
 
LIBS="-ldld  $LIBS"
8508
 
cat >conftest.$ac_ext <<_ACEOF
8509
 
/* confdefs.h.  */
8510
 
_ACEOF
8511
 
cat confdefs.h >>conftest.$ac_ext
8512
 
cat >>conftest.$ac_ext <<_ACEOF
8513
 
/* end confdefs.h.  */
8514
 
 
8515
 
/* Override any gcc2 internal prototype to avoid an error.  */
8516
 
#ifdef __cplusplus
8517
 
extern "C"
8518
 
#endif
8519
 
/* We use char because int might match the return type of a gcc2
8520
 
   builtin and then its argument prototype would still apply.  */
8521
 
char dld_link ();
8522
 
int
8523
 
main ()
8524
 
{
8525
 
dld_link ();
8526
 
  ;
8527
 
  return 0;
8528
 
}
8529
 
_ACEOF
8530
 
rm -f conftest.$ac_objext conftest$ac_exeext
8531
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532
 
  (eval $ac_link) 2>conftest.er1
8533
 
  ac_status=$?
8534
 
  grep -v '^ *+' conftest.er1 >conftest.err
8535
 
  rm -f conftest.er1
8536
 
  cat conftest.err >&5
8537
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538
 
  (exit $ac_status); } &&
8539
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8540
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541
 
  (eval $ac_try) 2>&5
8542
 
  ac_status=$?
8543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544
 
  (exit $ac_status); }; } &&
8545
 
         { ac_try='test -s conftest$ac_exeext'
8546
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547
 
  (eval $ac_try) 2>&5
8548
 
  ac_status=$?
8549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550
 
  (exit $ac_status); }; }; then
8551
 
  ac_cv_lib_dld_dld_link=yes
8552
 
else
8553
 
  echo "$as_me: failed program was:" >&5
8554
 
sed 's/^/| /' conftest.$ac_ext >&5
8555
 
 
8556
 
ac_cv_lib_dld_dld_link=no
8557
 
fi
8558
 
rm -f conftest.err conftest.$ac_objext \
8559
 
      conftest$ac_exeext conftest.$ac_ext
8560
 
LIBS=$ac_check_lib_save_LIBS
8561
 
fi
8562
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8563
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8564
 
if test $ac_cv_lib_dld_dld_link = yes; then
8565
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8566
 
fi
8567
 
 
8568
 
 
8569
 
fi
8570
 
 
8571
 
 
8572
 
fi
8573
 
 
8574
 
 
8575
 
fi
8576
 
 
8577
 
 
8578
 
fi
8579
 
 
8580
 
 
8581
 
fi
8582
 
 
8583
 
    ;;
8584
 
  esac
8585
 
 
8586
 
  if test "x$lt_cv_dlopen" != xno; then
8587
 
    enable_dlopen=yes
8588
 
  else
8589
 
    enable_dlopen=no
8590
 
  fi
8591
 
 
8592
 
  case $lt_cv_dlopen in
8593
 
  dlopen)
8594
 
    save_CPPFLAGS="$CPPFLAGS"
8595
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8596
 
 
8597
 
    save_LDFLAGS="$LDFLAGS"
8598
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8599
 
 
8600
 
    save_LIBS="$LIBS"
8601
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
8602
 
 
8603
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8604
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8605
 
if test "${lt_cv_dlopen_self+set}" = set; then
8606
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8607
 
else
8608
 
          if test "$cross_compiling" = yes; then :
8609
 
  lt_cv_dlopen_self=cross
8610
 
else
8611
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8612
 
  lt_status=$lt_dlunknown
8613
 
  cat > conftest.$ac_ext <<EOF
8614
 
#line 8614 "configure"
8615
 
#include "confdefs.h"
8616
 
 
8617
 
#if HAVE_DLFCN_H
8618
 
#include <dlfcn.h>
8619
 
#endif
8620
 
 
8621
 
#include <stdio.h>
8622
 
 
8623
 
#ifdef RTLD_GLOBAL
8624
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
8625
 
#else
8626
 
#  ifdef DL_GLOBAL
8627
 
#    define LT_DLGLOBAL         DL_GLOBAL
8628
 
#  else
8629
 
#    define LT_DLGLOBAL         0
8630
 
#  endif
8631
 
#endif
8632
 
 
8633
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8634
 
   find out it does not work in some platform. */
8635
 
#ifndef LT_DLLAZY_OR_NOW
8636
 
#  ifdef RTLD_LAZY
8637
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8638
 
#  else
8639
 
#    ifdef DL_LAZY
8640
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
8641
 
#    else
8642
 
#      ifdef RTLD_NOW
8643
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8644
 
#      else
8645
 
#        ifdef DL_NOW
8646
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
8647
 
#        else
8648
 
#          define LT_DLLAZY_OR_NOW      0
8649
 
#        endif
8650
 
#      endif
8651
 
#    endif
8652
 
#  endif
8653
 
#endif
8654
 
 
8655
 
#ifdef __cplusplus
8656
 
extern "C" void exit (int);
8657
 
#endif
8658
 
 
8659
 
void fnord() { int i=42;}
8660
 
int main ()
8661
 
{
8662
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8663
 
  int status = $lt_dlunknown;
8664
 
 
8665
 
  if (self)
8666
 
    {
8667
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8668
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8669
 
      /* dlclose (self); */
8670
 
    }
8671
 
 
8672
 
    exit (status);
8673
 
}
8674
 
EOF
8675
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676
 
  (eval $ac_link) 2>&5
8677
 
  ac_status=$?
8678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8680
 
    (./conftest; exit; ) 2>/dev/null
8681
 
    lt_status=$?
8682
 
    case x$lt_status in
8683
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8684
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8685
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8686
 
    esac
8687
 
  else :
8688
 
    # compilation failed
8689
 
    lt_cv_dlopen_self=no
8690
 
  fi
8691
 
fi
8692
 
rm -fr conftest*
8693
 
 
8694
 
 
8695
 
fi
8696
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8697
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8698
 
 
8699
 
    if test "x$lt_cv_dlopen_self" = xyes; then
8700
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8701
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8702
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8703
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
8704
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8705
 
else
8706
 
          if test "$cross_compiling" = yes; then :
8707
 
  lt_cv_dlopen_self_static=cross
8708
 
else
8709
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8710
 
  lt_status=$lt_dlunknown
8711
 
  cat > conftest.$ac_ext <<EOF
8712
 
#line 8712 "configure"
8713
 
#include "confdefs.h"
8714
 
 
8715
 
#if HAVE_DLFCN_H
8716
 
#include <dlfcn.h>
8717
 
#endif
8718
 
 
8719
 
#include <stdio.h>
8720
 
 
8721
 
#ifdef RTLD_GLOBAL
8722
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
8723
 
#else
8724
 
#  ifdef DL_GLOBAL
8725
 
#    define LT_DLGLOBAL         DL_GLOBAL
8726
 
#  else
8727
 
#    define LT_DLGLOBAL         0
8728
 
#  endif
8729
 
#endif
8730
 
 
8731
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8732
 
   find out it does not work in some platform. */
8733
 
#ifndef LT_DLLAZY_OR_NOW
8734
 
#  ifdef RTLD_LAZY
8735
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8736
 
#  else
8737
 
#    ifdef DL_LAZY
8738
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
8739
 
#    else
8740
 
#      ifdef RTLD_NOW
8741
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8742
 
#      else
8743
 
#        ifdef DL_NOW
8744
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
8745
 
#        else
8746
 
#          define LT_DLLAZY_OR_NOW      0
8747
 
#        endif
8748
 
#      endif
8749
 
#    endif
8750
 
#  endif
8751
 
#endif
8752
 
 
8753
 
#ifdef __cplusplus
8754
 
extern "C" void exit (int);
8755
 
#endif
8756
 
 
8757
 
void fnord() { int i=42;}
8758
 
int main ()
8759
 
{
8760
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8761
 
  int status = $lt_dlunknown;
8762
 
 
8763
 
  if (self)
8764
 
    {
8765
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8766
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8767
 
      /* dlclose (self); */
8768
 
    }
8769
 
 
8770
 
    exit (status);
8771
 
}
8772
 
EOF
8773
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774
 
  (eval $ac_link) 2>&5
8775
 
  ac_status=$?
8776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8778
 
    (./conftest; exit; ) 2>/dev/null
8779
 
    lt_status=$?
8780
 
    case x$lt_status in
8781
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8782
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8783
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8784
 
    esac
8785
 
  else :
8786
 
    # compilation failed
8787
 
    lt_cv_dlopen_self_static=no
8788
 
  fi
8789
 
fi
8790
 
rm -fr conftest*
8791
 
 
8792
 
 
8793
 
fi
8794
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8795
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8796
 
    fi
8797
 
 
8798
 
    CPPFLAGS="$save_CPPFLAGS"
8799
 
    LDFLAGS="$save_LDFLAGS"
8800
 
    LIBS="$save_LIBS"
8801
 
    ;;
8802
 
  esac
8803
 
 
8804
 
  case $lt_cv_dlopen_self in
8805
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8806
 
  *) enable_dlopen_self=unknown ;;
8807
 
  esac
8808
 
 
8809
 
  case $lt_cv_dlopen_self_static in
8810
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8811
 
  *) enable_dlopen_self_static=unknown ;;
8812
 
  esac
8813
 
fi
8814
 
 
8815
 
 
8816
 
# Report which librarie types wil actually be built
8817
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8818
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8819
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8820
 
echo "${ECHO_T}$can_build_shared" >&6
8821
 
 
8822
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8823
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8824
 
test "$can_build_shared" = "no" && enable_shared=no
8825
 
 
8826
 
# On AIX, shared libraries and static libraries use the same namespace, and
8827
 
# are all built from PIC.
8828
 
case "$host_os" in
8829
 
aix3*)
8830
 
  test "$enable_shared" = yes && enable_static=no
8831
 
  if test -n "$RANLIB"; then
8832
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8833
 
    postinstall_cmds='$RANLIB $lib'
8834
 
  fi
8835
 
  ;;
8836
 
 
8837
 
aix4*)
8838
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8839
 
    test "$enable_shared" = yes && enable_static=no
8840
 
  fi
8841
 
  ;;
8842
 
  darwin* | rhapsody*)
8843
 
  if test "$GCC" = yes; then
8844
 
    archive_cmds_need_lc=no
8845
 
    case "$host_os" in
8846
 
    rhapsody* | darwin1.[012])
8847
 
      allow_undefined_flag='-undefined suppress'
8848
 
      ;;
8849
 
    *) # Darwin 1.3 on
8850
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8851
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8852
 
      else
8853
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8854
 
          10.[012])
8855
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8856
 
            ;;
8857
 
          10.*)
8858
 
            allow_undefined_flag='-undefined dynamic_lookup'
8859
 
            ;;
8860
 
        esac
8861
 
      fi
8862
 
      ;;
8863
 
    esac
8864
 
    output_verbose_link_cmd='echo'
8865
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8866
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8867
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8868
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8869
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8870
 
    hardcode_direct=no
8871
 
    hardcode_automatic=yes
8872
 
    hardcode_shlibpath_var=unsupported
8873
 
    whole_archive_flag_spec='-all_load $convenience'
8874
 
    link_all_deplibs=yes
8875
 
  else
8876
 
    ld_shlibs=no
8877
 
  fi
8878
 
    ;;
8879
 
esac
8880
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
8881
 
echo "${ECHO_T}$enable_shared" >&6
8882
 
 
8883
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8884
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8885
 
# Make sure either enable_shared or enable_static is yes.
8886
 
test "$enable_shared" = yes || enable_static=yes
8887
 
echo "$as_me:$LINENO: result: $enable_static" >&5
8888
 
echo "${ECHO_T}$enable_static" >&6
8889
 
 
8890
 
# The else clause should only fire when bootstrapping the
8891
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
8892
 
# with your package, and you will get complaints that there are
8893
 
# no rules to generate ltmain.sh.
8894
 
if test -f "$ltmain"; then
8895
 
  # See if we are running on zsh, and set the options which allow our commands through
8896
 
  # without removal of \ escapes.
8897
 
  if test -n "${ZSH_VERSION+set}" ; then
8898
 
    setopt NO_GLOB_SUBST
8899
 
  fi
8900
 
  # Now quote all the things that may contain metacharacters while being
8901
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8902
 
  # variables and quote the copies for generation of the libtool script.
8903
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8904
 
    SED SHELL STRIP \
8905
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8906
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8907
 
    deplibs_check_method reload_flag reload_cmds need_locks \
8908
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8909
 
    lt_cv_sys_global_symbol_to_c_name_address \
8910
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8911
 
    old_postinstall_cmds old_postuninstall_cmds \
8912
 
    compiler \
8913
 
    CC \
8914
 
    LD \
8915
 
    lt_prog_compiler_wl \
8916
 
    lt_prog_compiler_pic \
8917
 
    lt_prog_compiler_static \
8918
 
    lt_prog_compiler_no_builtin_flag \
8919
 
    export_dynamic_flag_spec \
8920
 
    thread_safe_flag_spec \
8921
 
    whole_archive_flag_spec \
8922
 
    enable_shared_with_static_runtimes \
8923
 
    old_archive_cmds \
8924
 
    old_archive_from_new_cmds \
8925
 
    predep_objects \
8926
 
    postdep_objects \
8927
 
    predeps \
8928
 
    postdeps \
8929
 
    compiler_lib_search_path \
8930
 
    archive_cmds \
8931
 
    archive_expsym_cmds \
8932
 
    postinstall_cmds \
8933
 
    postuninstall_cmds \
8934
 
    old_archive_from_expsyms_cmds \
8935
 
    allow_undefined_flag \
8936
 
    no_undefined_flag \
8937
 
    export_symbols_cmds \
8938
 
    hardcode_libdir_flag_spec \
8939
 
    hardcode_libdir_flag_spec_ld \
8940
 
    hardcode_libdir_separator \
8941
 
    hardcode_automatic \
8942
 
    module_cmds \
8943
 
    module_expsym_cmds \
8944
 
    lt_cv_prog_compiler_c_o \
8945
 
    exclude_expsyms \
8946
 
    include_expsyms; do
8947
 
 
8948
 
    case $var in
8949
 
    old_archive_cmds | \
8950
 
    old_archive_from_new_cmds | \
8951
 
    archive_cmds | \
8952
 
    archive_expsym_cmds | \
8953
 
    module_cmds | \
8954
 
    module_expsym_cmds | \
8955
 
    old_archive_from_expsyms_cmds | \
8956
 
    export_symbols_cmds | \
8957
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8958
 
    postinstall_cmds | postuninstall_cmds | \
8959
 
    old_postinstall_cmds | old_postuninstall_cmds | \
8960
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8961
 
      # Double-quote double-evaled strings.
8962
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8963
 
      ;;
8964
 
    *)
8965
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8966
 
      ;;
8967
 
    esac
8968
 
  done
8969
 
 
8970
 
  case $lt_echo in
8971
 
  *'\$0 --fallback-echo"')
8972
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8973
 
    ;;
8974
 
  esac
8975
 
 
8976
 
cfgfile="${ofile}T"
8977
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8978
 
  $rm -f "$cfgfile"
8979
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
8980
 
echo "$as_me: creating $ofile" >&6;}
8981
 
 
8982
 
  cat <<__EOF__ >> "$cfgfile"
8983
 
#! $SHELL
8984
 
 
8985
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8986
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8987
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8988
 
#
8989
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8990
 
# Free Software Foundation, Inc.
8991
 
#
8992
 
# This file is part of GNU Libtool:
8993
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8994
 
#
8995
 
# This program is free software; you can redistribute it and/or modify
8996
 
# it under the terms of the GNU General Public License as published by
8997
 
# the Free Software Foundation; either version 2 of the License, or
8998
 
# (at your option) any later version.
8999
 
#
9000
 
# This program is distributed in the hope that it will be useful, but
9001
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9002
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9003
 
# General Public License for more details.
9004
 
#
9005
 
# You should have received a copy of the GNU General Public License
9006
 
# along with this program; if not, write to the Free Software
9007
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9008
 
#
9009
 
# As a special exception to the GNU General Public License, if you
9010
 
# distribute this file as part of a program that contains a
9011
 
# configuration script generated by Autoconf, you may include it under
9012
 
# the same distribution terms that you use for the rest of that program.
9013
 
 
9014
 
# A sed program that does not truncate output.
9015
 
SED=$lt_SED
9016
 
 
9017
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9018
 
Xsed="$SED -e s/^X//"
9019
 
 
9020
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
9021
 
# if CDPATH is set.
9022
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9023
 
 
9024
 
# The names of the tagged configurations supported by this script.
9025
 
available_tags=
9026
 
 
9027
 
# ### BEGIN LIBTOOL CONFIG
9028
 
 
9029
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9030
 
 
9031
 
# Shell to use when invoking shell scripts.
9032
 
SHELL=$lt_SHELL
9033
 
 
9034
 
# Whether or not to build shared libraries.
9035
 
build_libtool_libs=$enable_shared
9036
 
 
9037
 
# Whether or not to build static libraries.
9038
 
build_old_libs=$enable_static
9039
 
 
9040
 
# Whether or not to add -lc for building shared libraries.
9041
 
build_libtool_need_lc=$archive_cmds_need_lc
9042
 
 
9043
 
# Whether or not to disallow shared libs when runtime libs are static
9044
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9045
 
 
9046
 
# Whether or not to optimize for fast installation.
9047
 
fast_install=$enable_fast_install
9048
 
 
9049
 
# The host system.
9050
 
host_alias=$host_alias
9051
 
host=$host
9052
 
 
9053
 
# An echo program that does not interpret backslashes.
9054
 
echo=$lt_echo
9055
 
 
9056
 
# The archiver.
9057
 
AR=$lt_AR
9058
 
AR_FLAGS=$lt_AR_FLAGS
9059
 
 
9060
 
# A C compiler.
9061
 
LTCC=$lt_LTCC
9062
 
 
9063
 
# A language-specific compiler.
9064
 
CC=$lt_compiler
9065
 
 
9066
 
# Is the compiler the GNU C compiler?
9067
 
with_gcc=$GCC
9068
 
 
9069
 
# An ERE matcher.
9070
 
EGREP=$lt_EGREP
9071
 
 
9072
 
# The linker used to build libraries.
9073
 
LD=$lt_LD
9074
 
 
9075
 
# Whether we need hard or soft links.
9076
 
LN_S=$lt_LN_S
9077
 
 
9078
 
# A BSD-compatible nm program.
9079
 
NM=$lt_NM
9080
 
 
9081
 
# A symbol stripping program
9082
 
STRIP=$lt_STRIP
9083
 
 
9084
 
# Used to examine libraries when file_magic_cmd begins "file"
9085
 
MAGIC_CMD=$MAGIC_CMD
9086
 
 
9087
 
# Used on cygwin: DLL creation program.
9088
 
DLLTOOL="$DLLTOOL"
9089
 
 
9090
 
# Used on cygwin: object dumper.
9091
 
OBJDUMP="$OBJDUMP"
9092
 
 
9093
 
# Used on cygwin: assembler.
9094
 
AS="$AS"
9095
 
 
9096
 
# The name of the directory that contains temporary libtool files.
9097
 
objdir=$objdir
9098
 
 
9099
 
# How to create reloadable object files.
9100
 
reload_flag=$lt_reload_flag
9101
 
reload_cmds=$lt_reload_cmds
9102
 
 
9103
 
# How to pass a linker flag through the compiler.
9104
 
wl=$lt_lt_prog_compiler_wl
9105
 
 
9106
 
# Object file suffix (normally "o").
9107
 
objext="$ac_objext"
9108
 
 
9109
 
# Old archive suffix (normally "a").
9110
 
libext="$libext"
9111
 
 
9112
 
# Shared library suffix (normally ".so").
9113
 
shrext='$shrext'
9114
 
 
9115
 
# Executable file suffix (normally "").
9116
 
exeext="$exeext"
9117
 
 
9118
 
# Additional compiler flags for building library objects.
9119
 
pic_flag=$lt_lt_prog_compiler_pic
9120
 
pic_mode=$pic_mode
9121
 
 
9122
 
# What is the maximum length of a command?
9123
 
max_cmd_len=$lt_cv_sys_max_cmd_len
9124
 
 
9125
 
# Does compiler simultaneously support -c and -o options?
9126
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9127
 
 
9128
 
# Must we lock files when doing compilation ?
9129
 
need_locks=$lt_need_locks
9130
 
 
9131
 
# Do we need the lib prefix for modules?
9132
 
need_lib_prefix=$need_lib_prefix
9133
 
 
9134
 
# Do we need a version for libraries?
9135
 
need_version=$need_version
9136
 
 
9137
 
# Whether dlopen is supported.
9138
 
dlopen_support=$enable_dlopen
9139
 
 
9140
 
# Whether dlopen of programs is supported.
9141
 
dlopen_self=$enable_dlopen_self
9142
 
 
9143
 
# Whether dlopen of statically linked programs is supported.
9144
 
dlopen_self_static=$enable_dlopen_self_static
9145
 
 
9146
 
# Compiler flag to prevent dynamic linking.
9147
 
link_static_flag=$lt_lt_prog_compiler_static
9148
 
 
9149
 
# Compiler flag to turn off builtin functions.
9150
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9151
 
 
9152
 
# Compiler flag to allow reflexive dlopens.
9153
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9154
 
 
9155
 
# Compiler flag to generate shared objects directly from archives.
9156
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9157
 
 
9158
 
# Compiler flag to generate thread-safe objects.
9159
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9160
 
 
9161
 
# Library versioning type.
9162
 
version_type=$version_type
9163
 
 
9164
 
# Format of library name prefix.
9165
 
libname_spec=$lt_libname_spec
9166
 
 
9167
 
# List of archive names.  First name is the real one, the rest are links.
9168
 
# The last name is the one that the linker finds with -lNAME.
9169
 
library_names_spec=$lt_library_names_spec
9170
 
 
9171
 
# The coded name of the library, if different from the real name.
9172
 
soname_spec=$lt_soname_spec
9173
 
 
9174
 
# Commands used to build and install an old-style archive.
9175
 
RANLIB=$lt_RANLIB
9176
 
old_archive_cmds=$lt_old_archive_cmds
9177
 
old_postinstall_cmds=$lt_old_postinstall_cmds
9178
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9179
 
 
9180
 
# Create an old-style archive from a shared archive.
9181
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9182
 
 
9183
 
# Create a temporary old-style archive to link instead of a shared archive.
9184
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9185
 
 
9186
 
# Commands used to build and install a shared archive.
9187
 
archive_cmds=$lt_archive_cmds
9188
 
archive_expsym_cmds=$lt_archive_expsym_cmds
9189
 
postinstall_cmds=$lt_postinstall_cmds
9190
 
postuninstall_cmds=$lt_postuninstall_cmds
9191
 
 
9192
 
# Commands used to build a loadable module (assumed same as above if empty)
9193
 
module_cmds=$lt_module_cmds
9194
 
module_expsym_cmds=$lt_module_expsym_cmds
9195
 
 
9196
 
# Commands to strip libraries.
9197
 
old_striplib=$lt_old_striplib
9198
 
striplib=$lt_striplib
9199
 
 
9200
 
# Dependencies to place before the objects being linked to create a
9201
 
# shared library.
9202
 
predep_objects=$lt_predep_objects
9203
 
 
9204
 
# Dependencies to place after the objects being linked to create a
9205
 
# shared library.
9206
 
postdep_objects=$lt_postdep_objects
9207
 
 
9208
 
# Dependencies to place before the objects being linked to create a
9209
 
# shared library.
9210
 
predeps=$lt_predeps
9211
 
 
9212
 
# Dependencies to place after the objects being linked to create a
9213
 
# shared library.
9214
 
postdeps=$lt_postdeps
9215
 
 
9216
 
# The library search path used internally by the compiler when linking
9217
 
# a shared library.
9218
 
compiler_lib_search_path=$lt_compiler_lib_search_path
9219
 
 
9220
 
# Method to check whether dependent libraries are shared objects.
9221
 
deplibs_check_method=$lt_deplibs_check_method
9222
 
 
9223
 
# Command to use when deplibs_check_method == file_magic.
9224
 
file_magic_cmd=$lt_file_magic_cmd
9225
 
 
9226
 
# Flag that allows shared libraries with undefined symbols to be built.
9227
 
allow_undefined_flag=$lt_allow_undefined_flag
9228
 
 
9229
 
# Flag that forces no undefined symbols.
9230
 
no_undefined_flag=$lt_no_undefined_flag
9231
 
 
9232
 
# Commands used to finish a libtool library installation in a directory.
9233
 
finish_cmds=$lt_finish_cmds
9234
 
 
9235
 
# Same as above, but a single script fragment to be evaled but not shown.
9236
 
finish_eval=$lt_finish_eval
9237
 
 
9238
 
# Take the output of nm and produce a listing of raw symbols and C names.
9239
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9240
 
 
9241
 
# Transform the output of nm in a proper C declaration
9242
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9243
 
 
9244
 
# Transform the output of nm in a C name address pair
9245
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9246
 
 
9247
 
# This is the shared library runtime path variable.
9248
 
runpath_var=$runpath_var
9249
 
 
9250
 
# This is the shared library path variable.
9251
 
shlibpath_var=$shlibpath_var
9252
 
 
9253
 
# Is shlibpath searched before the hard-coded library search path?
9254
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9255
 
 
9256
 
# How to hardcode a shared library path into an executable.
9257
 
hardcode_action=$hardcode_action
9258
 
 
9259
 
# Whether we should hardcode library paths into libraries.
9260
 
hardcode_into_libs=$hardcode_into_libs
9261
 
 
9262
 
# Flag to hardcode \$libdir into a binary during linking.
9263
 
# This must work even if \$libdir does not exist.
9264
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9265
 
 
9266
 
# If ld is used when linking, flag to hardcode \$libdir into
9267
 
# a binary during linking. This must work even if \$libdir does
9268
 
# not exist.
9269
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9270
 
 
9271
 
# Whether we need a single -rpath flag with a separated argument.
9272
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9273
 
 
9274
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9275
 
# resulting binary.
9276
 
hardcode_direct=$hardcode_direct
9277
 
 
9278
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9279
 
# resulting binary.
9280
 
hardcode_minus_L=$hardcode_minus_L
9281
 
 
9282
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9283
 
# the resulting binary.
9284
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
9285
 
 
9286
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
9287
 
# and all subsequent libraries and executables linked against it.
9288
 
hardcode_automatic=$hardcode_automatic
9289
 
 
9290
 
# Variables whose values should be saved in libtool wrapper scripts and
9291
 
# restored at relink time.
9292
 
variables_saved_for_relink="$variables_saved_for_relink"
9293
 
 
9294
 
# Whether libtool must link a program against all its dependency libraries.
9295
 
link_all_deplibs=$link_all_deplibs
9296
 
 
9297
 
# Compile-time system search path for libraries
9298
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9299
 
 
9300
 
# Run-time system search path for libraries
9301
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9302
 
 
9303
 
# Fix the shell variable \$srcfile for the compiler.
9304
 
fix_srcfile_path="$fix_srcfile_path"
9305
 
 
9306
 
# Set to yes if exported symbols are required.
9307
 
always_export_symbols=$always_export_symbols
9308
 
 
9309
 
# The commands to list exported symbols.
9310
 
export_symbols_cmds=$lt_export_symbols_cmds
9311
 
 
9312
 
# The commands to extract the exported symbol list from a shared archive.
9313
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9314
 
 
9315
 
# Symbols that should not be listed in the preloaded symbols.
9316
 
exclude_expsyms=$lt_exclude_expsyms
9317
 
 
9318
 
# Symbols that must always be exported.
9319
 
include_expsyms=$lt_include_expsyms
9320
 
 
9321
 
# ### END LIBTOOL CONFIG
9322
 
 
9323
 
__EOF__
9324
 
 
9325
 
 
9326
 
  case $host_os in
9327
 
  aix3*)
9328
 
    cat <<\EOF >> "$cfgfile"
9329
 
 
9330
 
# AIX sometimes has problems with the GCC collect2 program.  For some
9331
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
9332
 
# vanish in a puff of smoke.
9333
 
if test "X${COLLECT_NAMES+set}" != Xset; then
9334
 
  COLLECT_NAMES=
9335
 
  export COLLECT_NAMES
9336
 
fi
9337
 
EOF
9338
 
    ;;
9339
 
  esac
9340
 
 
9341
 
  # We use sed instead of cat because bash on DJGPP gets confused if
9342
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9343
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
9344
 
  # is reportedly fixed, but why not run on old versions too?
9345
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9346
 
 
9347
 
  mv -f "$cfgfile" "$ofile" || \
9348
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9349
 
  chmod +x "$ofile"
9350
 
 
9351
 
else
9352
 
  # If there is no Makefile yet, we rely on a make rule to execute
9353
 
  # `config.status --recheck' to rerun these tests and create the
9354
 
  # libtool script then.
9355
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9356
 
  if test -f "$ltmain_in"; then
9357
 
    test -f Makefile && make "$ltmain"
9358
 
  fi
9359
 
fi
9360
 
 
9361
 
 
9362
 
ac_ext=c
9363
 
ac_cpp='$CPP $CPPFLAGS'
9364
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
 
 
9368
 
CC="$lt_save_CC"
9369
 
 
9370
 
 
9371
 
# Check whether --with-tags or --without-tags was given.
9372
 
if test "${with_tags+set}" = set; then
9373
 
  withval="$with_tags"
9374
 
  tagnames="$withval"
9375
 
fi;
9376
 
 
9377
 
if test -f "$ltmain" && test -n "$tagnames"; then
9378
 
  if test ! -f "${ofile}"; then
9379
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9380
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9381
 
  fi
9382
 
 
9383
 
  if test -z "$LTCC"; then
9384
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9385
 
    if test -z "$LTCC"; then
9386
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9387
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9388
 
    else
9389
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9390
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9391
 
    fi
9392
 
  fi
9393
 
 
9394
 
  # Extract list of available tagged configurations in $ofile.
9395
 
  # Note that this assumes the entire list is on one line.
9396
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9397
 
 
9398
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9399
 
  for tagname in $tagnames; do
9400
 
    IFS="$lt_save_ifs"
9401
 
    # Check whether tagname contains only valid characters
9402
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9403
 
    "") ;;
9404
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9405
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9406
 
   { (exit 1); exit 1; }; }
9407
 
        ;;
9408
 
    esac
9409
 
 
9410
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9411
 
    then
9412
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9413
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9414
 
   { (exit 1); exit 1; }; }
9415
 
    fi
9416
 
 
9417
 
    # Update the list of available tags.
9418
 
    if test -n "$tagname"; then
9419
 
      echo appending configuration tag \"$tagname\" to $ofile
9420
 
 
9421
 
      case $tagname in
9422
 
      CXX)
9423
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9424
 
          ac_ext=cc
9425
 
ac_cpp='$CXXCPP $CPPFLAGS'
9426
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9427
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9428
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9429
 
 
9430
 
 
9431
 
 
9432
 
 
9433
 
archive_cmds_need_lc_CXX=no
9434
 
allow_undefined_flag_CXX=
9435
 
always_export_symbols_CXX=no
9436
 
archive_expsym_cmds_CXX=
9437
 
export_dynamic_flag_spec_CXX=
9438
 
hardcode_direct_CXX=no
9439
 
hardcode_libdir_flag_spec_CXX=
9440
 
hardcode_libdir_flag_spec_ld_CXX=
9441
 
hardcode_libdir_separator_CXX=
9442
 
hardcode_minus_L_CXX=no
9443
 
hardcode_automatic_CXX=no
9444
 
module_cmds_CXX=
9445
 
module_expsym_cmds_CXX=
9446
 
link_all_deplibs_CXX=unknown
9447
 
old_archive_cmds_CXX=$old_archive_cmds
9448
 
no_undefined_flag_CXX=
9449
 
whole_archive_flag_spec_CXX=
9450
 
enable_shared_with_static_runtimes_CXX=no
9451
 
 
9452
 
# Dependencies to place before and after the object being linked:
9453
 
predep_objects_CXX=
9454
 
postdep_objects_CXX=
9455
 
predeps_CXX=
9456
 
postdeps_CXX=
9457
 
compiler_lib_search_path_CXX=
9458
 
 
9459
 
# Source file extension for C++ test sources.
9460
 
ac_ext=cc
9461
 
 
9462
 
# Object file extension for compiled C++ test sources.
9463
 
objext=o
9464
 
objext_CXX=$objext
9465
 
 
9466
 
# Code to be used in simple compile tests
9467
 
lt_simple_compile_test_code="int some_variable = 0;\n"
9468
 
 
9469
 
# Code to be used in simple link tests
9470
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9471
 
 
9472
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9473
 
 
9474
 
# If no C compiler was specified, use CC.
9475
 
LTCC=${LTCC-"$CC"}
9476
 
 
9477
 
# Allow CC to be a program name with arguments.
9478
 
compiler=$CC
9479
 
 
9480
 
 
9481
 
# Allow CC to be a program name with arguments.
9482
 
lt_save_CC=$CC
9483
 
lt_save_LD=$LD
9484
 
lt_save_GCC=$GCC
9485
 
GCC=$GXX
9486
 
lt_save_with_gnu_ld=$with_gnu_ld
9487
 
lt_save_path_LD=$lt_cv_path_LD
9488
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9489
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9490
 
else
9491
 
  unset lt_cv_prog_gnu_ld
9492
 
fi
9493
 
if test -n "${lt_cv_path_LDCXX+set}"; then
9494
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
9495
 
else
9496
 
  unset lt_cv_path_LD
9497
 
fi
9498
 
test -z "${LDCXX+set}" || LD=$LDCXX
9499
 
CC=${CXX-"c++"}
9500
 
compiler=$CC
9501
 
compiler_CXX=$CC
9502
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9503
 
 
9504
 
# We don't want -fno-exception wen compiling C++ code, so set the
9505
 
# no_builtin_flag separately
9506
 
if test "$GXX" = yes; then
9507
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9508
 
else
9509
 
  lt_prog_compiler_no_builtin_flag_CXX=
9510
 
fi
9511
 
 
9512
 
if test "$GXX" = yes; then
9513
 
  # Set up default GNU C++ configuration
9514
 
 
9515
 
 
9516
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9517
 
if test "${with_gnu_ld+set}" = set; then
9518
 
  withval="$with_gnu_ld"
9519
 
  test "$withval" = no || with_gnu_ld=yes
9520
 
else
9521
 
  with_gnu_ld=no
9522
 
fi;
9523
 
ac_prog=ld
9524
 
if test "$GCC" = yes; then
9525
 
  # Check if gcc -print-prog-name=ld gives a path.
9526
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9527
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9528
 
  case $host in
9529
 
  *-*-mingw*)
9530
 
    # gcc leaves a trailing carriage return which upsets mingw
9531
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9532
 
  *)
9533
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9534
 
  esac
9535
 
  case $ac_prog in
9536
 
    # Accept absolute paths.
9537
 
    [\\/]* | ?:[\\/]*)
9538
 
      re_direlt='/[^/][^/]*/\.\./'
9539
 
      # Canonicalize the pathname of ld
9540
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9541
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9542
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9543
 
      done
9544
 
      test -z "$LD" && LD="$ac_prog"
9545
 
      ;;
9546
 
  "")
9547
 
    # If it fails, then pretend we aren't using GCC.
9548
 
    ac_prog=ld
9549
 
    ;;
9550
 
  *)
9551
 
    # If it is relative, then search for the first ld in PATH.
9552
 
    with_gnu_ld=unknown
9553
 
    ;;
9554
 
  esac
9555
 
elif test "$with_gnu_ld" = yes; then
9556
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9557
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9558
 
else
9559
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9560
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9561
 
fi
9562
 
if test "${lt_cv_path_LD+set}" = set; then
9563
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9564
 
else
9565
 
  if test -z "$LD"; then
9566
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9567
 
  for ac_dir in $PATH; do
9568
 
    IFS="$lt_save_ifs"
9569
 
    test -z "$ac_dir" && ac_dir=.
9570
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9571
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
9572
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
9573
 
      # but apparently some GNU ld's only accept -v.
9574
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
9575
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9576
 
      *GNU* | *'with BFD'*)
9577
 
        test "$with_gnu_ld" != no && break
9578
 
        ;;
9579
 
      *)
9580
 
        test "$with_gnu_ld" != yes && break
9581
 
        ;;
9582
 
      esac
9583
 
    fi
9584
 
  done
9585
 
  IFS="$lt_save_ifs"
9586
 
else
9587
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9588
 
fi
9589
 
fi
9590
 
 
9591
 
LD="$lt_cv_path_LD"
9592
 
if test -n "$LD"; then
9593
 
  echo "$as_me:$LINENO: result: $LD" >&5
9594
 
echo "${ECHO_T}$LD" >&6
9595
 
else
9596
 
  echo "$as_me:$LINENO: result: no" >&5
9597
 
echo "${ECHO_T}no" >&6
9598
 
fi
9599
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9600
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9601
 
   { (exit 1); exit 1; }; }
9602
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9603
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9604
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9606
 
else
9607
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9608
 
case `$LD -v 2>&1 </dev/null` in
9609
 
*GNU* | *'with BFD'*)
9610
 
  lt_cv_prog_gnu_ld=yes
9611
 
  ;;
9612
 
*)
9613
 
  lt_cv_prog_gnu_ld=no
9614
 
  ;;
9615
 
esac
9616
 
fi
9617
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9618
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9619
 
with_gnu_ld=$lt_cv_prog_gnu_ld
9620
 
 
9621
 
 
9622
 
 
9623
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9624
 
  # archiving commands below assume that GNU ld is being used.
9625
 
  if test "$with_gnu_ld" = yes; then
9626
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627
 
    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'
9628
 
 
9629
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9630
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9631
 
 
9632
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9633
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9634
 
    #     investigate it a little bit more. (MM)
9635
 
    wlarc='${wl}'
9636
 
 
9637
 
    # ancient GNU ld didn't support --whole-archive et. al.
9638
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9639
 
        grep 'no-whole-archive' > /dev/null; then
9640
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9641
 
    else
9642
 
      whole_archive_flag_spec_CXX=
9643
 
    fi
9644
 
  else
9645
 
    with_gnu_ld=no
9646
 
    wlarc=
9647
 
 
9648
 
    # A generic and very simple default shared library creation
9649
 
    # command for GNU C++ for the case where it uses the native
9650
 
    # linker, instead of GNU ld.  If possible, this setting should
9651
 
    # overridden to take advantage of the native linker features on
9652
 
    # the platform it is being used on.
9653
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9654
 
  fi
9655
 
 
9656
 
  # Commands to make compiler produce verbose output that lists
9657
 
  # what "hidden" libraries, object files and flags are used when
9658
 
  # linking a shared library.
9659
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9660
 
 
9661
 
else
9662
 
  GXX=no
9663
 
  with_gnu_ld=no
9664
 
  wlarc=
9665
 
fi
9666
 
 
9667
 
# PORTME: fill in a description of your system's C++ link characteristics
9668
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9669
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9670
 
ld_shlibs_CXX=yes
9671
 
case $host_os in
9672
 
  aix3*)
9673
 
    # FIXME: insert proper C++ library support
9674
 
    ld_shlibs_CXX=no
9675
 
    ;;
9676
 
  aix4* | aix5*)
9677
 
    if test "$host_cpu" = ia64; then
9678
 
      # On IA64, the linker does run time linking by default, so we don't
9679
 
      # have to do anything special.
9680
 
      aix_use_runtimelinking=no
9681
 
      exp_sym_flag='-Bexport'
9682
 
      no_entry_flag=""
9683
 
    else
9684
 
      aix_use_runtimelinking=no
9685
 
 
9686
 
      # Test if we are trying to use run time linking or normal
9687
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9688
 
      # need to do runtime linking.
9689
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9690
 
        for ld_flag in $LDFLAGS; do
9691
 
          case $ld_flag in
9692
 
          *-brtl*)
9693
 
            aix_use_runtimelinking=yes
9694
 
            break
9695
 
            ;;
9696
 
          esac
9697
 
        done
9698
 
      esac
9699
 
 
9700
 
      exp_sym_flag='-bexport'
9701
 
      no_entry_flag='-bnoentry'
9702
 
    fi
9703
 
 
9704
 
    # When large executables or shared objects are built, AIX ld can
9705
 
    # have problems creating the table of contents.  If linking a library
9706
 
    # or program results in "error TOC overflow" add -mminimal-toc to
9707
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9708
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9709
 
 
9710
 
    archive_cmds_CXX=''
9711
 
    hardcode_direct_CXX=yes
9712
 
    hardcode_libdir_separator_CXX=':'
9713
 
    link_all_deplibs_CXX=yes
9714
 
 
9715
 
    if test "$GXX" = yes; then
9716
 
      case $host_os in aix4.012|aix4.012.*)
9717
 
      # We only want to do this on AIX 4.2 and lower, the check
9718
 
      # below for broken collect2 doesn't work under 4.3+
9719
 
        collect2name=`${CC} -print-prog-name=collect2`
9720
 
        if test -f "$collect2name" && \
9721
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
9722
 
        then
9723
 
          # We have reworked collect2
9724
 
          hardcode_direct_CXX=yes
9725
 
        else
9726
 
          # We have old collect2
9727
 
          hardcode_direct_CXX=unsupported
9728
 
          # It fails to find uninstalled libraries when the uninstalled
9729
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9730
 
          # to unsupported forces relinking
9731
 
          hardcode_minus_L_CXX=yes
9732
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9733
 
          hardcode_libdir_separator_CXX=
9734
 
        fi
9735
 
      esac
9736
 
      shared_flag='-shared'
9737
 
    else
9738
 
      # not using gcc
9739
 
      if test "$host_cpu" = ia64; then
9740
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9741
 
        # chokes on -Wl,-G. The following line is correct:
9742
 
        shared_flag='-G'
9743
 
      else
9744
 
        if test "$aix_use_runtimelinking" = yes; then
9745
 
          shared_flag='${wl}-G'
9746
 
        else
9747
 
          shared_flag='${wl}-bM:SRE'
9748
 
        fi
9749
 
      fi
9750
 
    fi
9751
 
 
9752
 
    # It seems that -bexpall does not export symbols beginning with
9753
 
    # underscore (_), so it is better to generate a list of symbols to export.
9754
 
    always_export_symbols_CXX=yes
9755
 
    if test "$aix_use_runtimelinking" = yes; then
9756
 
      # Warning - without using the other runtime loading flags (-brtl),
9757
 
      # -berok will link without error, but may produce a broken library.
9758
 
      allow_undefined_flag_CXX='-berok'
9759
 
      # Determine the default libpath from the value encoded in an empty executable.
9760
 
      cat >conftest.$ac_ext <<_ACEOF
9761
 
/* confdefs.h.  */
9762
 
_ACEOF
9763
 
cat confdefs.h >>conftest.$ac_ext
9764
 
cat >>conftest.$ac_ext <<_ACEOF
9765
 
/* end confdefs.h.  */
9766
 
 
9767
 
int
9768
 
main ()
9769
 
{
9770
 
 
9771
 
  ;
9772
 
  return 0;
9773
 
}
9774
 
_ACEOF
9775
 
rm -f conftest.$ac_objext conftest$ac_exeext
9776
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777
 
  (eval $ac_link) 2>conftest.er1
9778
 
  ac_status=$?
9779
 
  grep -v '^ *+' conftest.er1 >conftest.err
9780
 
  rm -f conftest.er1
9781
 
  cat conftest.err >&5
9782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783
 
  (exit $ac_status); } &&
9784
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9785
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786
 
  (eval $ac_try) 2>&5
9787
 
  ac_status=$?
9788
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789
 
  (exit $ac_status); }; } &&
9790
 
         { ac_try='test -s conftest$ac_exeext'
9791
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792
 
  (eval $ac_try) 2>&5
9793
 
  ac_status=$?
9794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795
 
  (exit $ac_status); }; }; then
9796
 
 
9797
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9798
 
}'`
9799
 
# Check for a 64-bit object if we didn't find anything.
9800
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9801
 
}'`; fi
9802
 
else
9803
 
  echo "$as_me: failed program was:" >&5
9804
 
sed 's/^/| /' conftest.$ac_ext >&5
9805
 
 
9806
 
fi
9807
 
rm -f conftest.err conftest.$ac_objext \
9808
 
      conftest$ac_exeext conftest.$ac_ext
9809
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810
 
 
9811
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9812
 
 
9813
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9814
 
     else
9815
 
      if test "$host_cpu" = ia64; then
9816
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9817
 
        allow_undefined_flag_CXX="-z nodefs"
9818
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9819
 
      else
9820
 
        # Determine the default libpath from the value encoded in an empty executable.
9821
 
        cat >conftest.$ac_ext <<_ACEOF
9822
 
/* confdefs.h.  */
9823
 
_ACEOF
9824
 
cat confdefs.h >>conftest.$ac_ext
9825
 
cat >>conftest.$ac_ext <<_ACEOF
9826
 
/* end confdefs.h.  */
9827
 
 
9828
 
int
9829
 
main ()
9830
 
{
9831
 
 
9832
 
  ;
9833
 
  return 0;
9834
 
}
9835
 
_ACEOF
9836
 
rm -f conftest.$ac_objext conftest$ac_exeext
9837
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838
 
  (eval $ac_link) 2>conftest.er1
9839
 
  ac_status=$?
9840
 
  grep -v '^ *+' conftest.er1 >conftest.err
9841
 
  rm -f conftest.er1
9842
 
  cat conftest.err >&5
9843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844
 
  (exit $ac_status); } &&
9845
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9846
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847
 
  (eval $ac_try) 2>&5
9848
 
  ac_status=$?
9849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850
 
  (exit $ac_status); }; } &&
9851
 
         { ac_try='test -s conftest$ac_exeext'
9852
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853
 
  (eval $ac_try) 2>&5
9854
 
  ac_status=$?
9855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
 
  (exit $ac_status); }; }; then
9857
 
 
9858
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9859
 
}'`
9860
 
# Check for a 64-bit object if we didn't find anything.
9861
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9862
 
}'`; fi
9863
 
else
9864
 
  echo "$as_me: failed program was:" >&5
9865
 
sed 's/^/| /' conftest.$ac_ext >&5
9866
 
 
9867
 
fi
9868
 
rm -f conftest.err conftest.$ac_objext \
9869
 
      conftest$ac_exeext conftest.$ac_ext
9870
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9871
 
 
9872
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9873
 
        # Warning - without using the other run time loading flags,
9874
 
        # -berok will link without error, but may produce a broken library.
9875
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
9876
 
        allow_undefined_flag_CXX=' ${wl}-berok'
9877
 
        # -bexpall does not export symbols beginning with underscore (_)
9878
 
        always_export_symbols_CXX=yes
9879
 
        # Exported symbols can be pulled into shared objects from archives
9880
 
        whole_archive_flag_spec_CXX=' '
9881
 
        archive_cmds_need_lc_CXX=yes
9882
 
        # This is similar to how AIX traditionally builds it's shared libraries.
9883
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9884
 
      fi
9885
 
    fi
9886
 
    ;;
9887
 
  chorus*)
9888
 
    case $cc_basename in
9889
 
      *)
9890
 
        # FIXME: insert proper C++ library support
9891
 
        ld_shlibs_CXX=no
9892
 
        ;;
9893
 
    esac
9894
 
    ;;
9895
 
 
9896
 
  cygwin* | mingw* | pw32*)
9897
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9898
 
    # as there is no search path for DLLs.
9899
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
9900
 
    allow_undefined_flag_CXX=unsupported
9901
 
    always_export_symbols_CXX=no
9902
 
    enable_shared_with_static_runtimes_CXX=yes
9903
 
 
9904
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9905
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9906
 
      # If the export-symbols file already is a .def file (1st line
9907
 
      # is EXPORTS), use it as is; otherwise, prepend...
9908
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9909
 
        cp $export_symbols $output_objdir/$soname.def;
9910
 
      else
9911
 
        echo EXPORTS > $output_objdir/$soname.def;
9912
 
        cat $export_symbols >> $output_objdir/$soname.def;
9913
 
      fi~
9914
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9915
 
    else
9916
 
      ld_shlibs_CXX=no
9917
 
    fi
9918
 
  ;;
9919
 
 
9920
 
  darwin* | rhapsody*)
9921
 
  if test "$GXX" = yes; then
9922
 
    archive_cmds_need_lc_CXX=no
9923
 
    case "$host_os" in
9924
 
    rhapsody* | darwin1.[012])
9925
 
      allow_undefined_flag_CXX='-undefined suppress'
9926
 
      ;;
9927
 
    *) # Darwin 1.3 on
9928
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9929
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9930
 
      else
9931
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9932
 
          10.[012])
9933
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9934
 
            ;;
9935
 
          10.*)
9936
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
9937
 
            ;;
9938
 
        esac
9939
 
      fi
9940
 
      ;;
9941
 
    esac
9942
 
    lt_int_apple_cc_single_mod=no
9943
 
    output_verbose_link_cmd='echo'
9944
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9945
 
      lt_int_apple_cc_single_mod=yes
9946
 
    fi
9947
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9948
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9949
 
    else
9950
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9951
 
    fi
9952
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9953
 
 
9954
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9955
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9956
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9957
 
    else
9958
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9959
 
    fi
9960
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9961
 
    hardcode_direct_CXX=no
9962
 
    hardcode_automatic_CXX=yes
9963
 
    hardcode_shlibpath_var_CXX=unsupported
9964
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
9965
 
    link_all_deplibs_CXX=yes
9966
 
  else
9967
 
    ld_shlibs_CXX=no
9968
 
  fi
9969
 
    ;;
9970
 
 
9971
 
  dgux*)
9972
 
    case $cc_basename in
9973
 
      ec++)
9974
 
        # FIXME: insert proper C++ library support
9975
 
        ld_shlibs_CXX=no
9976
 
        ;;
9977
 
      ghcx)
9978
 
        # Green Hills C++ Compiler
9979
 
        # FIXME: insert proper C++ library support
9980
 
        ld_shlibs_CXX=no
9981
 
        ;;
9982
 
      *)
9983
 
        # FIXME: insert proper C++ library support
9984
 
        ld_shlibs_CXX=no
9985
 
        ;;
9986
 
    esac
9987
 
    ;;
9988
 
  freebsd12*)
9989
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
9990
 
    ld_shlibs_CXX=no
9991
 
    ;;
9992
 
  freebsd-elf*)
9993
 
    archive_cmds_need_lc_CXX=no
9994
 
    ;;
9995
 
  freebsd* | kfreebsd*-gnu)
9996
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9997
 
    # conventions
9998
 
    ld_shlibs_CXX=yes
9999
 
    ;;
10000
 
  gnu*)
10001
 
    ;;
10002
 
  hpux9*)
10003
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10004
 
    hardcode_libdir_separator_CXX=:
10005
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10006
 
    hardcode_direct_CXX=yes
10007
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10008
 
                                # but as the default
10009
 
                                # location of the library.
10010
 
 
10011
 
    case $cc_basename in
10012
 
    CC)
10013
 
      # FIXME: insert proper C++ library support
10014
 
      ld_shlibs_CXX=no
10015
 
      ;;
10016
 
    aCC)
10017
 
      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'
10018
 
      # Commands to make compiler produce verbose output that lists
10019
 
      # what "hidden" libraries, object files and flags are used when
10020
 
      # linking a shared library.
10021
 
      #
10022
 
      # There doesn't appear to be a way to prevent this compiler from
10023
 
      # explicitly linking system object files so we need to strip them
10024
 
      # from the output so that they don't get included in the library
10025
 
      # dependencies.
10026
 
      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; echo $list'
10027
 
      ;;
10028
 
    *)
10029
 
      if test "$GXX" = yes; then
10030
 
        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'
10031
 
      else
10032
 
        # FIXME: insert proper C++ library support
10033
 
        ld_shlibs_CXX=no
10034
 
      fi
10035
 
      ;;
10036
 
    esac
10037
 
    ;;
10038
 
  hpux10*|hpux11*)
10039
 
    if test $with_gnu_ld = no; then
10040
 
      case "$host_cpu" in
10041
 
      hppa*64*)
10042
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10043
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10044
 
        hardcode_libdir_separator_CXX=:
10045
 
        ;;
10046
 
      ia64*)
10047
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10048
 
        ;;
10049
 
      *)
10050
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10051
 
        hardcode_libdir_separator_CXX=:
10052
 
        export_dynamic_flag_spec_CXX='${wl}-E'
10053
 
        ;;
10054
 
      esac
10055
 
    fi
10056
 
    case "$host_cpu" in
10057
 
    hppa*64*)
10058
 
      hardcode_direct_CXX=no
10059
 
      hardcode_shlibpath_var_CXX=no
10060
 
      ;;
10061
 
    ia64*)
10062
 
      hardcode_direct_CXX=no
10063
 
      hardcode_shlibpath_var_CXX=no
10064
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10065
 
                                              # but as the default
10066
 
                                              # location of the library.
10067
 
      ;;
10068
 
    *)
10069
 
      hardcode_direct_CXX=yes
10070
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10071
 
                                              # but as the default
10072
 
                                              # location of the library.
10073
 
      ;;
10074
 
    esac
10075
 
 
10076
 
    case $cc_basename in
10077
 
      CC)
10078
 
        # FIXME: insert proper C++ library support
10079
 
        ld_shlibs_CXX=no
10080
 
        ;;
10081
 
      aCC)
10082
 
        case "$host_cpu" in
10083
 
        hppa*64*|ia64*)
10084
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10085
 
          ;;
10086
 
        *)
10087
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10088
 
          ;;
10089
 
        esac
10090
 
        # Commands to make compiler produce verbose output that lists
10091
 
        # what "hidden" libraries, object files and flags are used when
10092
 
        # linking a shared library.
10093
 
        #
10094
 
        # There doesn't appear to be a way to prevent this compiler from
10095
 
        # explicitly linking system object files so we need to strip them
10096
 
        # from the output so that they don't get included in the library
10097
 
        # dependencies.
10098
 
        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; echo $list'
10099
 
        ;;
10100
 
      *)
10101
 
        if test "$GXX" = yes; then
10102
 
          if test $with_gnu_ld = no; then
10103
 
            case "$host_cpu" in
10104
 
            ia64*|hppa*64*)
10105
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10106
 
              ;;
10107
 
            *)
10108
 
              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'
10109
 
              ;;
10110
 
            esac
10111
 
          fi
10112
 
        else
10113
 
          # FIXME: insert proper C++ library support
10114
 
          ld_shlibs_CXX=no
10115
 
        fi
10116
 
        ;;
10117
 
    esac
10118
 
    ;;
10119
 
  irix5* | irix6*)
10120
 
    case $cc_basename in
10121
 
      CC)
10122
 
        # SGI C++
10123
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10124
 
 
10125
 
        # Archives containing C++ object files must be created using
10126
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10127
 
        # necessary to make sure instantiated templates are included
10128
 
        # in the archive.
10129
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10130
 
        ;;
10131
 
      *)
10132
 
        if test "$GXX" = yes; then
10133
 
          if test "$with_gnu_ld" = no; then
10134
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10135
 
          else
10136
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10137
 
          fi
10138
 
        fi
10139
 
        link_all_deplibs_CXX=yes
10140
 
        ;;
10141
 
    esac
10142
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10143
 
    hardcode_libdir_separator_CXX=:
10144
 
    ;;
10145
 
  linux*)
10146
 
    case $cc_basename in
10147
 
      KCC)
10148
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10149
 
 
10150
 
        # KCC will only create a shared library if the output file
10151
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10152
 
        # to its proper name (with version) after linking.
10153
 
        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'
10154
 
        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'
10155
 
        # Commands to make compiler produce verbose output that lists
10156
 
        # what "hidden" libraries, object files and flags are used when
10157
 
        # linking a shared library.
10158
 
        #
10159
 
        # There doesn't appear to be a way to prevent this compiler from
10160
 
        # explicitly linking system object files so we need to strip them
10161
 
        # from the output so that they don't get included in the library
10162
 
        # dependencies.
10163
 
        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; echo $list'
10164
 
 
10165
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10166
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10167
 
 
10168
 
        # Archives containing C++ object files must be created using
10169
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10170
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10171
 
        ;;
10172
 
      icpc)
10173
 
        # Intel C++
10174
 
        with_gnu_ld=yes
10175
 
        archive_cmds_need_lc_CXX=no
10176
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177
 
        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'
10178
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10179
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10180
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10181
 
        ;;
10182
 
      cxx)
10183
 
        # Compaq C++
10184
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185
 
        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'
10186
 
 
10187
 
        runpath_var=LD_RUN_PATH
10188
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10189
 
        hardcode_libdir_separator_CXX=:
10190
 
 
10191
 
        # Commands to make compiler produce verbose output that lists
10192
 
        # what "hidden" libraries, object files and flags are used when
10193
 
        # linking a shared library.
10194
 
        #
10195
 
        # There doesn't appear to be a way to prevent this compiler from
10196
 
        # explicitly linking system object files so we need to strip them
10197
 
        # from the output so that they don't get included in the library
10198
 
        # dependencies.
10199
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
10200
 
        ;;
10201
 
    esac
10202
 
    ;;
10203
 
  lynxos*)
10204
 
    # FIXME: insert proper C++ library support
10205
 
    ld_shlibs_CXX=no
10206
 
    ;;
10207
 
  m88k*)
10208
 
    # FIXME: insert proper C++ library support
10209
 
    ld_shlibs_CXX=no
10210
 
    ;;
10211
 
  mvs*)
10212
 
    case $cc_basename in
10213
 
      cxx)
10214
 
        # FIXME: insert proper C++ library support
10215
 
        ld_shlibs_CXX=no
10216
 
        ;;
10217
 
      *)
10218
 
        # FIXME: insert proper C++ library support
10219
 
        ld_shlibs_CXX=no
10220
 
        ;;
10221
 
    esac
10222
 
    ;;
10223
 
  netbsd* | knetbsd*-gnu)
10224
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10225
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10226
 
      wlarc=
10227
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10228
 
      hardcode_direct_CXX=yes
10229
 
      hardcode_shlibpath_var_CXX=no
10230
 
    fi
10231
 
    # Workaround some broken pre-1.5 toolchains
10232
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10233
 
    ;;
10234
 
  osf3*)
10235
 
    case $cc_basename in
10236
 
      KCC)
10237
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10238
 
 
10239
 
        # KCC will only create a shared library if the output file
10240
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10241
 
        # to its proper name (with version) after linking.
10242
 
        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'
10243
 
 
10244
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10245
 
        hardcode_libdir_separator_CXX=:
10246
 
 
10247
 
        # Archives containing C++ object files must be created using
10248
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10249
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10250
 
 
10251
 
        ;;
10252
 
      RCC)
10253
 
        # Rational C++ 2.4.1
10254
 
        # FIXME: insert proper C++ library support
10255
 
        ld_shlibs_CXX=no
10256
 
        ;;
10257
 
      cxx)
10258
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10259
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10260
 
 
10261
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262
 
        hardcode_libdir_separator_CXX=:
10263
 
 
10264
 
        # Commands to make compiler produce verbose output that lists
10265
 
        # what "hidden" libraries, object files and flags are used when
10266
 
        # linking a shared library.
10267
 
        #
10268
 
        # There doesn't appear to be a way to prevent this compiler from
10269
 
        # explicitly linking system object files so we need to strip them
10270
 
        # from the output so that they don't get included in the library
10271
 
        # dependencies.
10272
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10273
 
        ;;
10274
 
      *)
10275
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10276
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10277
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10278
 
 
10279
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10280
 
          hardcode_libdir_separator_CXX=:
10281
 
 
10282
 
          # Commands to make compiler produce verbose output that lists
10283
 
          # what "hidden" libraries, object files and flags are used when
10284
 
          # linking a shared library.
10285
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10286
 
 
10287
 
        else
10288
 
          # FIXME: insert proper C++ library support
10289
 
          ld_shlibs_CXX=no
10290
 
        fi
10291
 
        ;;
10292
 
    esac
10293
 
    ;;
10294
 
  osf4* | osf5*)
10295
 
    case $cc_basename in
10296
 
      KCC)
10297
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10298
 
 
10299
 
        # KCC will only create a shared library if the output file
10300
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10301
 
        # to its proper name (with version) after linking.
10302
 
        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'
10303
 
 
10304
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10305
 
        hardcode_libdir_separator_CXX=:
10306
 
 
10307
 
        # Archives containing C++ object files must be created using
10308
 
        # the KAI C++ compiler.
10309
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10310
 
        ;;
10311
 
      RCC)
10312
 
        # Rational C++ 2.4.1
10313
 
        # FIXME: insert proper C++ library support
10314
 
        ld_shlibs_CXX=no
10315
 
        ;;
10316
 
      cxx)
10317
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10318
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10319
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10320
 
          echo "-hidden">> $lib.exp~
10321
 
          $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 $objdir/so_locations -o $lib~
10322
 
          $rm $lib.exp'
10323
 
 
10324
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10325
 
        hardcode_libdir_separator_CXX=:
10326
 
 
10327
 
        # Commands to make compiler produce verbose output that lists
10328
 
        # what "hidden" libraries, object files and flags are used when
10329
 
        # linking a shared library.
10330
 
        #
10331
 
        # There doesn't appear to be a way to prevent this compiler from
10332
 
        # explicitly linking system object files so we need to strip them
10333
 
        # from the output so that they don't get included in the library
10334
 
        # dependencies.
10335
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10336
 
        ;;
10337
 
      *)
10338
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10339
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10340
 
         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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10341
 
 
10342
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10343
 
          hardcode_libdir_separator_CXX=:
10344
 
 
10345
 
          # Commands to make compiler produce verbose output that lists
10346
 
          # what "hidden" libraries, object files and flags are used when
10347
 
          # linking a shared library.
10348
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10349
 
 
10350
 
        else
10351
 
          # FIXME: insert proper C++ library support
10352
 
          ld_shlibs_CXX=no
10353
 
        fi
10354
 
        ;;
10355
 
    esac
10356
 
    ;;
10357
 
  psos*)
10358
 
    # FIXME: insert proper C++ library support
10359
 
    ld_shlibs_CXX=no
10360
 
    ;;
10361
 
  sco*)
10362
 
    archive_cmds_need_lc_CXX=no
10363
 
    case $cc_basename in
10364
 
      CC)
10365
 
        # FIXME: insert proper C++ library support
10366
 
        ld_shlibs_CXX=no
10367
 
        ;;
10368
 
      *)
10369
 
        # FIXME: insert proper C++ library support
10370
 
        ld_shlibs_CXX=no
10371
 
        ;;
10372
 
    esac
10373
 
    ;;
10374
 
  sunos4*)
10375
 
    case $cc_basename in
10376
 
      CC)
10377
 
        # Sun C++ 4.x
10378
 
        # FIXME: insert proper C++ library support
10379
 
        ld_shlibs_CXX=no
10380
 
        ;;
10381
 
      lcc)
10382
 
        # Lucid
10383
 
        # FIXME: insert proper C++ library support
10384
 
        ld_shlibs_CXX=no
10385
 
        ;;
10386
 
      *)
10387
 
        # FIXME: insert proper C++ library support
10388
 
        ld_shlibs_CXX=no
10389
 
        ;;
10390
 
    esac
10391
 
    ;;
10392
 
  solaris*)
10393
 
    case $cc_basename in
10394
 
      CC)
10395
 
        # Sun C++ 4.2, 5.x and Centerline C++
10396
 
        no_undefined_flag_CXX=' -zdefs'
10397
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10398
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10399
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10400
 
 
10401
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10402
 
        hardcode_shlibpath_var_CXX=no
10403
 
        case $host_os in
10404
 
          solaris2.0-5 | solaris2.0-5.*) ;;
10405
 
          *)
10406
 
            # The C++ compiler is used as linker so we must use $wl
10407
 
            # flag to pass the commands to the underlying system
10408
 
            # linker.
10409
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10410
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10411
 
            ;;
10412
 
        esac
10413
 
        link_all_deplibs_CXX=yes
10414
 
 
10415
 
        # Commands to make compiler produce verbose output that lists
10416
 
        # what "hidden" libraries, object files and flags are used when
10417
 
        # linking a shared library.
10418
 
        #
10419
 
        # There doesn't appear to be a way to prevent this compiler from
10420
 
        # explicitly linking system object files so we need to strip them
10421
 
        # from the output so that they don't get included in the library
10422
 
        # dependencies.
10423
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10424
 
 
10425
 
        # Archives containing C++ object files must be created using
10426
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10427
 
        # necessary to make sure instantiated templates are included
10428
 
        # in the archive.
10429
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10430
 
        ;;
10431
 
      gcx)
10432
 
        # Green Hills C++ Compiler
10433
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10434
 
 
10435
 
        # The C++ compiler must be used to create the archive.
10436
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10437
 
        ;;
10438
 
      *)
10439
 
        # GNU C++ compiler with Solaris linker
10440
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10441
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10442
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
10443
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10444
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10445
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10446
 
 
10447
 
            # Commands to make compiler produce verbose output that lists
10448
 
            # what "hidden" libraries, object files and flags are used when
10449
 
            # linking a shared library.
10450
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10451
 
          else
10452
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10453
 
            # platform.
10454
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10455
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10456
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10457
 
 
10458
 
            # Commands to make compiler produce verbose output that lists
10459
 
            # what "hidden" libraries, object files and flags are used when
10460
 
            # linking a shared library.
10461
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10462
 
          fi
10463
 
 
10464
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10465
 
        fi
10466
 
        ;;
10467
 
    esac
10468
 
    ;;
10469
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10470
 
    archive_cmds_need_lc_CXX=no
10471
 
    ;;
10472
 
  tandem*)
10473
 
    case $cc_basename in
10474
 
      NCC)
10475
 
        # NonStop-UX NCC 3.20
10476
 
        # FIXME: insert proper C++ library support
10477
 
        ld_shlibs_CXX=no
10478
 
        ;;
10479
 
      *)
10480
 
        # FIXME: insert proper C++ library support
10481
 
        ld_shlibs_CXX=no
10482
 
        ;;
10483
 
    esac
10484
 
    ;;
10485
 
  vxworks*)
10486
 
    # FIXME: insert proper C++ library support
10487
 
    ld_shlibs_CXX=no
10488
 
    ;;
10489
 
  *)
10490
 
    # FIXME: insert proper C++ library support
10491
 
    ld_shlibs_CXX=no
10492
 
    ;;
10493
 
esac
10494
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10495
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10496
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
10497
 
 
10498
 
GCC_CXX="$GXX"
10499
 
LD_CXX="$LD"
10500
 
 
10501
 
 
10502
 
cat > conftest.$ac_ext <<EOF
10503
 
class Foo
10504
 
{
10505
 
public:
10506
 
  Foo (void) { a = 0; }
10507
 
private:
10508
 
  int a;
10509
 
};
10510
 
EOF
10511
 
 
10512
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513
 
  (eval $ac_compile) 2>&5
10514
 
  ac_status=$?
10515
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516
 
  (exit $ac_status); }; then
10517
 
  # Parse the compiler output and extract the necessary
10518
 
  # objects, libraries and library flags.
10519
 
 
10520
 
  # Sentinel used to keep track of whether or not we are before
10521
 
  # the conftest object file.
10522
 
  pre_test_object_deps_done=no
10523
 
 
10524
 
  # The `*' in the case matches for architectures that use `case' in
10525
 
  # $output_verbose_cmd can trigger glob expansion during the loop
10526
 
  # eval without this substitution.
10527
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10528
 
 
10529
 
  for p in `eval $output_verbose_link_cmd`; do
10530
 
    case $p in
10531
 
 
10532
 
    -L* | -R* | -l*)
10533
 
       # Some compilers place space between "-{L,R}" and the path.
10534
 
       # Remove the space.
10535
 
       if test $p = "-L" \
10536
 
          || test $p = "-R"; then
10537
 
         prev=$p
10538
 
         continue
10539
 
       else
10540
 
         prev=
10541
 
       fi
10542
 
 
10543
 
       if test "$pre_test_object_deps_done" = no; then
10544
 
         case $p in
10545
 
         -L* | -R*)
10546
 
           # Internal compiler library paths should come after those
10547
 
           # provided the user.  The postdeps already come after the
10548
 
           # user supplied libs so there is no need to process them.
10549
 
           if test -z "$compiler_lib_search_path_CXX"; then
10550
 
             compiler_lib_search_path_CXX="${prev}${p}"
10551
 
           else
10552
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10553
 
           fi
10554
 
           ;;
10555
 
         # The "-l" case would never come before the object being
10556
 
         # linked, so don't bother handling this case.
10557
 
         esac
10558
 
       else
10559
 
         if test -z "$postdeps_CXX"; then
10560
 
           postdeps_CXX="${prev}${p}"
10561
 
         else
10562
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10563
 
         fi
10564
 
       fi
10565
 
       ;;
10566
 
 
10567
 
    *.$objext)
10568
 
       # This assumes that the test object file only shows up
10569
 
       # once in the compiler output.
10570
 
       if test "$p" = "conftest.$objext"; then
10571
 
         pre_test_object_deps_done=yes
10572
 
         continue
10573
 
       fi
10574
 
 
10575
 
       if test "$pre_test_object_deps_done" = no; then
10576
 
         if test -z "$predep_objects_CXX"; then
10577
 
           predep_objects_CXX="$p"
10578
 
         else
10579
 
           predep_objects_CXX="$predep_objects_CXX $p"
10580
 
         fi
10581
 
       else
10582
 
         if test -z "$postdep_objects_CXX"; then
10583
 
           postdep_objects_CXX="$p"
10584
 
         else
10585
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
10586
 
         fi
10587
 
       fi
10588
 
       ;;
10589
 
 
10590
 
    *) ;; # Ignore the rest.
10591
 
 
10592
 
    esac
10593
 
  done
10594
 
 
10595
 
  # Clean up.
10596
 
  rm -f a.out a.exe
10597
 
else
10598
 
  echo "libtool.m4: error: problem compiling CXX test program"
10599
 
fi
10600
 
 
10601
 
$rm -f confest.$objext
10602
 
 
10603
 
case " $postdeps_CXX " in
10604
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10605
 
esac
10606
 
 
10607
 
lt_prog_compiler_wl_CXX=
10608
 
lt_prog_compiler_pic_CXX=
10609
 
lt_prog_compiler_static_CXX=
10610
 
 
10611
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10612
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10613
 
 
10614
 
  # C++ specific cases for pic, static, wl, etc.
10615
 
  if test "$GXX" = yes; then
10616
 
    lt_prog_compiler_wl_CXX='-Wl,'
10617
 
    lt_prog_compiler_static_CXX='-static'
10618
 
 
10619
 
    case $host_os in
10620
 
    aix*)
10621
 
      # All AIX code is PIC.
10622
 
      if test "$host_cpu" = ia64; then
10623
 
        # AIX 5 now supports IA64 processor
10624
 
        lt_prog_compiler_static_CXX='-Bstatic'
10625
 
      fi
10626
 
      ;;
10627
 
    amigaos*)
10628
 
      # FIXME: we need at least 68020 code to build shared libraries, but
10629
 
      # adding the `-m68020' flag to GCC prevents building anything better,
10630
 
      # like `-m68040'.
10631
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10632
 
      ;;
10633
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10634
 
      # PIC is the default for these OSes.
10635
 
      ;;
10636
 
    mingw* | os2* | pw32*)
10637
 
      # This hack is so that the source file can tell whether it is being
10638
 
      # built for inclusion in a dll (and should export symbols for example).
10639
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10640
 
      ;;
10641
 
    darwin* | rhapsody*)
10642
 
      # PIC is the default on this platform
10643
 
      # Common symbols not allowed in MH_DYLIB files
10644
 
      lt_prog_compiler_pic_CXX='-fno-common'
10645
 
      ;;
10646
 
    *djgpp*)
10647
 
      # DJGPP does not support shared libraries at all
10648
 
      lt_prog_compiler_pic_CXX=
10649
 
      ;;
10650
 
    sysv4*MP*)
10651
 
      if test -d /usr/nec; then
10652
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
10653
 
      fi
10654
 
      ;;
10655
 
    hpux*)
10656
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10657
 
      # not for PA HP-UX.
10658
 
      case "$host_cpu" in
10659
 
      hppa*64*|ia64*)
10660
 
        ;;
10661
 
      *)
10662
 
        lt_prog_compiler_pic_CXX='-fPIC'
10663
 
        ;;
10664
 
      esac
10665
 
      ;;
10666
 
    *)
10667
 
      lt_prog_compiler_pic_CXX='-fPIC'
10668
 
      ;;
10669
 
    esac
10670
 
  else
10671
 
    case $host_os in
10672
 
      aix4* | aix5*)
10673
 
        # All AIX code is PIC.
10674
 
        if test "$host_cpu" = ia64; then
10675
 
          # AIX 5 now supports IA64 processor
10676
 
          lt_prog_compiler_static_CXX='-Bstatic'
10677
 
        else
10678
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10679
 
        fi
10680
 
        ;;
10681
 
      chorus*)
10682
 
        case $cc_basename in
10683
 
        cxch68)
10684
 
          # Green Hills C++ Compiler
10685
 
          # _LT_AC_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"
10686
 
          ;;
10687
 
        esac
10688
 
        ;;
10689
 
      dgux*)
10690
 
        case $cc_basename in
10691
 
          ec++)
10692
 
            lt_prog_compiler_pic_CXX='-KPIC'
10693
 
            ;;
10694
 
          ghcx)
10695
 
            # Green Hills C++ Compiler
10696
 
            lt_prog_compiler_pic_CXX='-pic'
10697
 
            ;;
10698
 
          *)
10699
 
            ;;
10700
 
        esac
10701
 
        ;;
10702
 
      freebsd* | kfreebsd*-gnu)
10703
 
        # FreeBSD uses GNU C++
10704
 
        ;;
10705
 
      hpux9* | hpux10* | hpux11*)
10706
 
        case $cc_basename in
10707
 
          CC)
10708
 
            lt_prog_compiler_wl_CXX='-Wl,'
10709
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10710
 
            if test "$host_cpu" != ia64; then
10711
 
              lt_prog_compiler_pic_CXX='+Z'
10712
 
            fi
10713
 
            ;;
10714
 
          aCC)
10715
 
            lt_prog_compiler_wl_CXX='-Wl,'
10716
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717
 
            case "$host_cpu" in
10718
 
            hppa*64*|ia64*)
10719
 
              # +Z the default
10720
 
              ;;
10721
 
            *)
10722
 
              lt_prog_compiler_pic_CXX='+Z'
10723
 
              ;;
10724
 
            esac
10725
 
            ;;
10726
 
          *)
10727
 
            ;;
10728
 
        esac
10729
 
        ;;
10730
 
      irix5* | irix6* | nonstopux*)
10731
 
        case $cc_basename in
10732
 
          CC)
10733
 
            lt_prog_compiler_wl_CXX='-Wl,'
10734
 
            lt_prog_compiler_static_CXX='-non_shared'
10735
 
            # CC pic flag -KPIC is the default.
10736
 
            ;;
10737
 
          *)
10738
 
            ;;
10739
 
        esac
10740
 
        ;;
10741
 
      linux*)
10742
 
        case $cc_basename in
10743
 
          KCC)
10744
 
            # KAI C++ Compiler
10745
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10746
 
            lt_prog_compiler_pic_CXX='-fPIC'
10747
 
            ;;
10748
 
          icpc)
10749
 
            # Intel C++
10750
 
            lt_prog_compiler_wl_CXX='-Wl,'
10751
 
            lt_prog_compiler_pic_CXX='-KPIC'
10752
 
            lt_prog_compiler_static_CXX='-static'
10753
 
            ;;
10754
 
          cxx)
10755
 
            # Compaq C++
10756
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
10757
 
            # Linux and Compaq Tru64 Unix objects are PIC.
10758
 
            lt_prog_compiler_pic_CXX=
10759
 
            lt_prog_compiler_static_CXX='-non_shared'
10760
 
            ;;
10761
 
          *)
10762
 
            ;;
10763
 
        esac
10764
 
        ;;
10765
 
      lynxos*)
10766
 
        ;;
10767
 
      m88k*)
10768
 
        ;;
10769
 
      mvs*)
10770
 
        case $cc_basename in
10771
 
          cxx)
10772
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
10773
 
            ;;
10774
 
          *)
10775
 
            ;;
10776
 
        esac
10777
 
        ;;
10778
 
      netbsd* | knetbsd*-gnu)
10779
 
        ;;
10780
 
      osf3* | osf4* | osf5*)
10781
 
        case $cc_basename in
10782
 
          KCC)
10783
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10784
 
            ;;
10785
 
          RCC)
10786
 
            # Rational C++ 2.4.1
10787
 
            lt_prog_compiler_pic_CXX='-pic'
10788
 
            ;;
10789
 
          cxx)
10790
 
            # Digital/Compaq C++
10791
 
            lt_prog_compiler_wl_CXX='-Wl,'
10792
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
10793
 
            # Linux and Compaq Tru64 Unix objects are PIC.
10794
 
            lt_prog_compiler_pic_CXX=
10795
 
            lt_prog_compiler_static_CXX='-non_shared'
10796
 
            ;;
10797
 
          *)
10798
 
            ;;
10799
 
        esac
10800
 
        ;;
10801
 
      psos*)
10802
 
        ;;
10803
 
      sco*)
10804
 
        case $cc_basename in
10805
 
          CC)
10806
 
            lt_prog_compiler_pic_CXX='-fPIC'
10807
 
            ;;
10808
 
          *)
10809
 
            ;;
10810
 
        esac
10811
 
        ;;
10812
 
      solaris*)
10813
 
        case $cc_basename in
10814
 
          CC)
10815
 
            # Sun C++ 4.2, 5.x and Centerline C++
10816
 
            lt_prog_compiler_pic_CXX='-KPIC'
10817
 
            lt_prog_compiler_static_CXX='-Bstatic'
10818
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
10819
 
            ;;
10820
 
          gcx)
10821
 
            # Green Hills C++ Compiler
10822
 
            lt_prog_compiler_pic_CXX='-PIC'
10823
 
            ;;
10824
 
          *)
10825
 
            ;;
10826
 
        esac
10827
 
        ;;
10828
 
      sunos4*)
10829
 
        case $cc_basename in
10830
 
          CC)
10831
 
            # Sun C++ 4.x
10832
 
            lt_prog_compiler_pic_CXX='-pic'
10833
 
            lt_prog_compiler_static_CXX='-Bstatic'
10834
 
            ;;
10835
 
          lcc)
10836
 
            # Lucid
10837
 
            lt_prog_compiler_pic_CXX='-pic'
10838
 
            ;;
10839
 
          *)
10840
 
            ;;
10841
 
        esac
10842
 
        ;;
10843
 
      tandem*)
10844
 
        case $cc_basename in
10845
 
          NCC)
10846
 
            # NonStop-UX NCC 3.20
10847
 
            lt_prog_compiler_pic_CXX='-KPIC'
10848
 
            ;;
10849
 
          *)
10850
 
            ;;
10851
 
        esac
10852
 
        ;;
10853
 
      unixware*)
10854
 
        ;;
10855
 
      vxworks*)
10856
 
        ;;
10857
 
      *)
10858
 
        lt_prog_compiler_can_build_shared_CXX=no
10859
 
        ;;
10860
 
    esac
10861
 
  fi
10862
 
 
10863
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10864
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10865
 
 
10866
 
#
10867
 
# Check to make sure the PIC flag actually works.
10868
 
#
10869
 
if test -n "$lt_prog_compiler_pic_CXX"; then
10870
 
 
10871
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10872
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10873
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10874
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10875
 
else
10876
 
  lt_prog_compiler_pic_works_CXX=no
10877
 
  ac_outfile=conftest.$ac_objext
10878
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10879
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10880
 
   # Insert the option either (1) after the last *FLAGS variable, or
10881
 
   # (2) before a word containing "conftest.", or (3) at the end.
10882
 
   # Note that $ac_compile itself does not contain backslashes and begins
10883
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10884
 
   # The option is referenced via a variable to avoid confusing sed.
10885
 
   lt_compile=`echo "$ac_compile" | $SED \
10886
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10887
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10888
 
   -e 's:$: $lt_compiler_flag:'`
10889
 
   (eval echo "\"\$as_me:10889: $lt_compile\"" >&5)
10890
 
   (eval "$lt_compile" 2>conftest.err)
10891
 
   ac_status=$?
10892
 
   cat conftest.err >&5
10893
 
   echo "$as_me:10893: \$? = $ac_status" >&5
10894
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
10895
 
     # The compiler can only warn and ignore the option if not recognized
10896
 
     # So say no if there are warnings
10897
 
     if test ! -s conftest.err; then
10898
 
       lt_prog_compiler_pic_works_CXX=yes
10899
 
     fi
10900
 
   fi
10901
 
   $rm conftest*
10902
 
 
10903
 
fi
10904
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10905
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10906
 
 
10907
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10908
 
    case $lt_prog_compiler_pic_CXX in
10909
 
     "" | " "*) ;;
10910
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10911
 
     esac
10912
 
else
10913
 
    lt_prog_compiler_pic_CXX=
10914
 
     lt_prog_compiler_can_build_shared_CXX=no
10915
 
fi
10916
 
 
10917
 
fi
10918
 
case "$host_os" in
10919
 
  # For platforms which do not support PIC, -DPIC is meaningless:
10920
 
  *djgpp*)
10921
 
    lt_prog_compiler_pic_CXX=
10922
 
    ;;
10923
 
  *)
10924
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10925
 
    ;;
10926
 
esac
10927
 
 
10928
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10929
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10930
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10931
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10932
 
else
10933
 
  lt_cv_prog_compiler_c_o_CXX=no
10934
 
   $rm -r conftest 2>/dev/null
10935
 
   mkdir conftest
10936
 
   cd conftest
10937
 
   mkdir out
10938
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10939
 
 
10940
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10941
 
   # Insert the option either (1) after the last *FLAGS variable, or
10942
 
   # (2) before a word containing "conftest.", or (3) at the end.
10943
 
   # Note that $ac_compile itself does not contain backslashes and begins
10944
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10945
 
   lt_compile=`echo "$ac_compile" | $SED \
10946
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10947
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10948
 
   -e 's:$: $lt_compiler_flag:'`
10949
 
   (eval echo "\"\$as_me:10949: $lt_compile\"" >&5)
10950
 
   (eval "$lt_compile" 2>out/conftest.err)
10951
 
   ac_status=$?
10952
 
   cat out/conftest.err >&5
10953
 
   echo "$as_me:10953: \$? = $ac_status" >&5
10954
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10955
 
   then
10956
 
     # The compiler can only warn and ignore the option if not recognized
10957
 
     # So say no if there are warnings
10958
 
     if test ! -s out/conftest.err; then
10959
 
       lt_cv_prog_compiler_c_o_CXX=yes
10960
 
     fi
10961
 
   fi
10962
 
   chmod u+w .
10963
 
   $rm conftest*
10964
 
   # SGI C++ compiler will create directory out/ii_files/ for
10965
 
   # template instantiation
10966
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10967
 
   $rm out/* && rmdir out
10968
 
   cd ..
10969
 
   rmdir conftest
10970
 
   $rm conftest*
10971
 
 
10972
 
fi
10973
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10974
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10975
 
 
10976
 
 
10977
 
hard_links="nottested"
10978
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10979
 
  # do not overwrite the value of need_locks provided by the user
10980
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10981
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10982
 
  hard_links=yes
10983
 
  $rm conftest*
10984
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10985
 
  touch conftest.a
10986
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
10987
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10988
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
10989
 
echo "${ECHO_T}$hard_links" >&6
10990
 
  if test "$hard_links" = no; then
10991
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10992
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10993
 
    need_locks=warn
10994
 
  fi
10995
 
else
10996
 
  need_locks=no
10997
 
fi
10998
 
 
10999
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11000
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11001
 
 
11002
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11003
 
  case $host_os in
11004
 
  aix4* | aix5*)
11005
 
    # If we're using GNU nm, then we don't want the "-C" option.
11006
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11007
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11008
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11009
 
    else
11010
 
      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'
11011
 
    fi
11012
 
    ;;
11013
 
  pw32*)
11014
 
    export_symbols_cmds_CXX="$ltdll_cmds"
11015
 
  ;;
11016
 
  cygwin* | mingw*)
11017
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11018
 
  ;;
11019
 
  *)
11020
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11021
 
  ;;
11022
 
  esac
11023
 
 
11024
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11025
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11026
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11027
 
 
11028
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11029
 
if test "$GCC" = yes; then
11030
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11031
 
fi
11032
 
 
11033
 
#
11034
 
# Do we need to explicitly link libc?
11035
 
#
11036
 
case "x$archive_cmds_need_lc_CXX" in
11037
 
x|xyes)
11038
 
  # Assume -lc should be added
11039
 
  archive_cmds_need_lc_CXX=yes
11040
 
 
11041
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11042
 
    case $archive_cmds_CXX in
11043
 
    *'~'*)
11044
 
      # FIXME: we may have to deal with multi-command sequences.
11045
 
      ;;
11046
 
    '$CC '*)
11047
 
      # Test whether the compiler implicitly links with -lc since on some
11048
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11049
 
      # to ld, don't add -lc before -lgcc.
11050
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11051
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11052
 
      $rm conftest*
11053
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11054
 
 
11055
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11056
 
  (eval $ac_compile) 2>&5
11057
 
  ac_status=$?
11058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059
 
  (exit $ac_status); } 2>conftest.err; then
11060
 
        soname=conftest
11061
 
        lib=conftest
11062
 
        libobjs=conftest.$ac_objext
11063
 
        deplibs=
11064
 
        wl=$lt_prog_compiler_wl_CXX
11065
 
        compiler_flags=-v
11066
 
        linker_flags=-v
11067
 
        verstring=
11068
 
        output_objdir=.
11069
 
        libname=conftest
11070
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11071
 
        allow_undefined_flag_CXX=
11072
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11073
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11074
 
  ac_status=$?
11075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076
 
  (exit $ac_status); }
11077
 
        then
11078
 
          archive_cmds_need_lc_CXX=no
11079
 
        else
11080
 
          archive_cmds_need_lc_CXX=yes
11081
 
        fi
11082
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11083
 
      else
11084
 
        cat conftest.err 1>&5
11085
 
      fi
11086
 
      $rm conftest*
11087
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11088
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11089
 
      ;;
11090
 
    esac
11091
 
  fi
11092
 
  ;;
11093
 
esac
11094
 
 
11095
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11096
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11097
 
library_names_spec=
11098
 
libname_spec='lib$name'
11099
 
soname_spec=
11100
 
shrext=".so"
11101
 
postinstall_cmds=
11102
 
postuninstall_cmds=
11103
 
finish_cmds=
11104
 
finish_eval=
11105
 
shlibpath_var=
11106
 
shlibpath_overrides_runpath=unknown
11107
 
version_type=none
11108
 
dynamic_linker="$host_os ld.so"
11109
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11110
 
if test "$GCC" = yes; then
11111
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11112
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11113
 
    # if the path contains ";" then we assume it to be the separator
11114
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11115
 
    # assumed that no part of a normal pathname contains ";" but that should
11116
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11117
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11118
 
  else
11119
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11120
 
  fi
11121
 
else
11122
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11123
 
fi
11124
 
need_lib_prefix=unknown
11125
 
hardcode_into_libs=no
11126
 
 
11127
 
# when you set need_version to no, make sure it does not cause -set_version
11128
 
# flags to be left without arguments
11129
 
need_version=unknown
11130
 
 
11131
 
case $host_os in
11132
 
aix3*)
11133
 
  version_type=linux
11134
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11135
 
  shlibpath_var=LIBPATH
11136
 
 
11137
 
  # AIX 3 has no versioning support, so we append a major version to the name.
11138
 
  soname_spec='${libname}${release}${shared_ext}$major'
11139
 
  ;;
11140
 
 
11141
 
aix4* | aix5*)
11142
 
  version_type=linux
11143
 
  need_lib_prefix=no
11144
 
  need_version=no
11145
 
  hardcode_into_libs=yes
11146
 
  if test "$host_cpu" = ia64; then
11147
 
    # AIX 5 supports IA64
11148
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11149
 
    shlibpath_var=LD_LIBRARY_PATH
11150
 
  else
11151
 
    # With GCC up to 2.95.x, collect2 would create an import file
11152
 
    # for dependence libraries.  The import file would start with
11153
 
    # the line `#! .'.  This would cause the generated library to
11154
 
    # depend on `.', always an invalid library.  This was fixed in
11155
 
    # development snapshots of GCC prior to 3.0.
11156
 
    case $host_os in
11157
 
      aix4 | aix4.[01] | aix4.[01].*)
11158
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11159
 
           echo ' yes '
11160
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11161
 
        :
11162
 
      else
11163
 
        can_build_shared=no
11164
 
      fi
11165
 
      ;;
11166
 
    esac
11167
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11168
 
    # soname into executable. Probably we can add versioning support to
11169
 
    # collect2, so additional links can be useful in future.
11170
 
    if test "$aix_use_runtimelinking" = yes; then
11171
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11172
 
      # instead of lib<name>.a to let people know that these are not
11173
 
      # typical AIX shared libraries.
11174
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175
 
    else
11176
 
      # We preserve .a as extension for shared libraries through AIX4.2
11177
 
      # and later when we are not doing run time linking.
11178
 
      library_names_spec='${libname}${release}.a $libname.a'
11179
 
      soname_spec='${libname}${release}${shared_ext}$major'
11180
 
    fi
11181
 
    shlibpath_var=LIBPATH
11182
 
  fi
11183
 
  ;;
11184
 
 
11185
 
amigaos*)
11186
 
  library_names_spec='$libname.ixlibrary $libname.a'
11187
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11188
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11189
 
  ;;
11190
 
 
11191
 
beos*)
11192
 
  library_names_spec='${libname}${shared_ext}'
11193
 
  dynamic_linker="$host_os ld.so"
11194
 
  shlibpath_var=LIBRARY_PATH
11195
 
  ;;
11196
 
 
11197
 
bsdi4*)
11198
 
  version_type=linux
11199
 
  need_version=no
11200
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201
 
  soname_spec='${libname}${release}${shared_ext}$major'
11202
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11203
 
  shlibpath_var=LD_LIBRARY_PATH
11204
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11205
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11206
 
  # the default ld.so.conf also contains /usr/contrib/lib and
11207
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11208
 
  # libtool to hard-code these into programs
11209
 
  ;;
11210
 
 
11211
 
cygwin* | mingw* | pw32*)
11212
 
  version_type=windows
11213
 
  shrext=".dll"
11214
 
  need_version=no
11215
 
  need_lib_prefix=no
11216
 
 
11217
 
  case $GCC,$host_os in
11218
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
11219
 
    library_names_spec='$libname.dll.a'
11220
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11221
 
    postinstall_cmds='base_file=`basename \${file}`~
11222
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11223
 
      dldir=$destdir/`dirname \$dlpath`~
11224
 
      test -d \$dldir || mkdir -p \$dldir~
11225
 
      $install_prog $dir/$dlname \$dldir/$dlname'
11226
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227
 
      dlpath=$dir/\$dldll~
11228
 
       $rm \$dlpath'
11229
 
    shlibpath_overrides_runpath=yes
11230
 
 
11231
 
    case $host_os in
11232
 
    cygwin*)
11233
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11234
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11236
 
      ;;
11237
 
    mingw*)
11238
 
      # MinGW DLLs use traditional 'lib' prefix
11239
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11241
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11242
 
        # It is most probably a Windows format PATH printed by
11243
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11244
 
        # path with ; separators, and with drive letters. We can handle the
11245
 
        # drive letters (cygwin fileutils understands them), so leave them,
11246
 
        # especially as we might pass files found there to a mingw objdump,
11247
 
        # which wouldn't understand a cygwinified path. Ahh.
11248
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11249
 
      else
11250
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11251
 
      fi
11252
 
      ;;
11253
 
    pw32*)
11254
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11255
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11256
 
      ;;
11257
 
    esac
11258
 
    ;;
11259
 
 
11260
 
  *)
11261
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11262
 
    ;;
11263
 
  esac
11264
 
  dynamic_linker='Win32 ld.exe'
11265
 
  # FIXME: first we should search . and the directory the executable is in
11266
 
  shlibpath_var=PATH
11267
 
  ;;
11268
 
 
11269
 
darwin* | rhapsody*)
11270
 
  dynamic_linker="$host_os dyld"
11271
 
  version_type=darwin
11272
 
  need_lib_prefix=no
11273
 
  need_version=no
11274
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275
 
  soname_spec='${libname}${release}${major}$shared_ext'
11276
 
  shlibpath_overrides_runpath=yes
11277
 
  shlibpath_var=DYLD_LIBRARY_PATH
11278
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11279
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11280
 
  if test "$GCC" = yes; then
11281
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11282
 
  else
11283
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11284
 
  fi
11285
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11286
 
  ;;
11287
 
 
11288
 
dgux*)
11289
 
  version_type=linux
11290
 
  need_lib_prefix=no
11291
 
  need_version=no
11292
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11293
 
  soname_spec='${libname}${release}${shared_ext}$major'
11294
 
  shlibpath_var=LD_LIBRARY_PATH
11295
 
  ;;
11296
 
 
11297
 
freebsd1*)
11298
 
  dynamic_linker=no
11299
 
  ;;
11300
 
 
11301
 
kfreebsd*-gnu)
11302
 
  version_type=linux
11303
 
  need_lib_prefix=no
11304
 
  need_version=no
11305
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306
 
  soname_spec='${libname}${release}${shared_ext}$major'
11307
 
  shlibpath_var=LD_LIBRARY_PATH
11308
 
  shlibpath_overrides_runpath=no
11309
 
  hardcode_into_libs=yes
11310
 
  dynamic_linker='GNU ld.so'
11311
 
  ;;
11312
 
 
11313
 
freebsd*)
11314
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11315
 
  version_type=freebsd-$objformat
11316
 
  case $version_type in
11317
 
    freebsd-elf*)
11318
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11319
 
      need_version=no
11320
 
      need_lib_prefix=no
11321
 
      ;;
11322
 
    freebsd-*)
11323
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11324
 
      need_version=yes
11325
 
      ;;
11326
 
  esac
11327
 
  shlibpath_var=LD_LIBRARY_PATH
11328
 
  case $host_os in
11329
 
  freebsd2*)
11330
 
    shlibpath_overrides_runpath=yes
11331
 
    ;;
11332
 
  freebsd3.01* | freebsdelf3.01*)
11333
 
    shlibpath_overrides_runpath=yes
11334
 
    hardcode_into_libs=yes
11335
 
    ;;
11336
 
  *) # from 3.2 on
11337
 
    shlibpath_overrides_runpath=no
11338
 
    hardcode_into_libs=yes
11339
 
    ;;
11340
 
  esac
11341
 
  ;;
11342
 
 
11343
 
gnu*)
11344
 
  version_type=linux
11345
 
  need_lib_prefix=no
11346
 
  need_version=no
11347
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11348
 
  soname_spec='${libname}${release}${shared_ext}$major'
11349
 
  shlibpath_var=LD_LIBRARY_PATH
11350
 
  hardcode_into_libs=yes
11351
 
  ;;
11352
 
 
11353
 
hpux9* | hpux10* | hpux11*)
11354
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
11355
 
  # link against other versions.
11356
 
  version_type=sunos
11357
 
  need_lib_prefix=no
11358
 
  need_version=no
11359
 
  case "$host_cpu" in
11360
 
  ia64*)
11361
 
    shrext='.so'
11362
 
    hardcode_into_libs=yes
11363
 
    dynamic_linker="$host_os dld.so"
11364
 
    shlibpath_var=LD_LIBRARY_PATH
11365
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367
 
    soname_spec='${libname}${release}${shared_ext}$major'
11368
 
    if test "X$HPUX_IA64_MODE" = X32; then
11369
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11370
 
    else
11371
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11372
 
    fi
11373
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374
 
    ;;
11375
 
   hppa*64*)
11376
 
     shrext='.sl'
11377
 
     hardcode_into_libs=yes
11378
 
     dynamic_linker="$host_os dld.sl"
11379
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11380
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382
 
     soname_spec='${libname}${release}${shared_ext}$major'
11383
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11384
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385
 
     ;;
11386
 
   *)
11387
 
    shrext='.sl'
11388
 
    dynamic_linker="$host_os dld.sl"
11389
 
    shlibpath_var=SHLIB_PATH
11390
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11391
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392
 
    soname_spec='${libname}${release}${shared_ext}$major'
11393
 
    ;;
11394
 
  esac
11395
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11396
 
  postinstall_cmds='chmod 555 $lib'
11397
 
  ;;
11398
 
 
11399
 
irix5* | irix6* | nonstopux*)
11400
 
  case $host_os in
11401
 
    nonstopux*) version_type=nonstopux ;;
11402
 
    *)
11403
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
11404
 
                version_type=linux
11405
 
        else
11406
 
                version_type=irix
11407
 
        fi ;;
11408
 
  esac
11409
 
  need_lib_prefix=no
11410
 
  need_version=no
11411
 
  soname_spec='${libname}${release}${shared_ext}$major'
11412
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11413
 
  case $host_os in
11414
 
  irix5* | nonstopux*)
11415
 
    libsuff= shlibsuff=
11416
 
    ;;
11417
 
  *)
11418
 
    case $LD in # libtool.m4 will add one of these switches to LD
11419
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11420
 
      libsuff= shlibsuff= libmagic=32-bit;;
11421
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11422
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11423
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11424
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11425
 
    *) libsuff= shlibsuff= libmagic=never-match;;
11426
 
    esac
11427
 
    ;;
11428
 
  esac
11429
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11430
 
  shlibpath_overrides_runpath=no
11431
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11432
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11433
 
  hardcode_into_libs=yes
11434
 
  ;;
11435
 
 
11436
 
# No shared lib support for Linux oldld, aout, or coff.
11437
 
linux*oldld* | linux*aout* | linux*coff*)
11438
 
  dynamic_linker=no
11439
 
  ;;
11440
 
 
11441
 
# This must be Linux ELF.
11442
 
linux*)
11443
 
  version_type=linux
11444
 
  need_lib_prefix=no
11445
 
  need_version=no
11446
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447
 
  soname_spec='${libname}${release}${shared_ext}$major'
11448
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11449
 
  shlibpath_var=LD_LIBRARY_PATH
11450
 
  shlibpath_overrides_runpath=no
11451
 
  # This implies no fast_install, which is unacceptable.
11452
 
  # Some rework will be needed to allow for fast_install
11453
 
  # before this can be enabled.
11454
 
  hardcode_into_libs=yes
11455
 
 
11456
 
  # Append ld.so.conf contents to the search path
11457
 
  if test -f /etc/ld.so.conf; then
11458
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11459
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11460
 
  fi
11461
 
 
11462
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11463
 
  # powerpc, because MkLinux only supported shared libraries with the
11464
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11465
 
  # most powerpc-linux boxes support dynamic linking these days and
11466
 
  # people can always --disable-shared, the test was removed, and we
11467
 
  # assume the GNU/Linux dynamic linker is in use.
11468
 
  dynamic_linker='GNU/Linux ld.so'
11469
 
  ;;
11470
 
 
11471
 
knetbsd*-gnu)
11472
 
  version_type=linux
11473
 
  need_lib_prefix=no
11474
 
  need_version=no
11475
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476
 
  soname_spec='${libname}${release}${shared_ext}$major'
11477
 
  shlibpath_var=LD_LIBRARY_PATH
11478
 
  shlibpath_overrides_runpath=no
11479
 
  hardcode_into_libs=yes
11480
 
  dynamic_linker='GNU ld.so'
11481
 
  ;;
11482
 
 
11483
 
netbsd*)
11484
 
  version_type=sunos
11485
 
  need_lib_prefix=no
11486
 
  need_version=no
11487
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11488
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11489
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490
 
    dynamic_linker='NetBSD (a.out) ld.so'
11491
 
  else
11492
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493
 
    soname_spec='${libname}${release}${shared_ext}$major'
11494
 
    dynamic_linker='NetBSD ld.elf_so'
11495
 
  fi
11496
 
  shlibpath_var=LD_LIBRARY_PATH
11497
 
  shlibpath_overrides_runpath=yes
11498
 
  hardcode_into_libs=yes
11499
 
  ;;
11500
 
 
11501
 
newsos6)
11502
 
  version_type=linux
11503
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504
 
  shlibpath_var=LD_LIBRARY_PATH
11505
 
  shlibpath_overrides_runpath=yes
11506
 
  ;;
11507
 
 
11508
 
nto-qnx*)
11509
 
  version_type=linux
11510
 
  need_lib_prefix=no
11511
 
  need_version=no
11512
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513
 
  soname_spec='${libname}${release}${shared_ext}$major'
11514
 
  shlibpath_var=LD_LIBRARY_PATH
11515
 
  shlibpath_overrides_runpath=yes
11516
 
  ;;
11517
 
 
11518
 
openbsd*)
11519
 
  version_type=sunos
11520
 
  need_lib_prefix=no
11521
 
  need_version=yes
11522
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11523
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11524
 
  shlibpath_var=LD_LIBRARY_PATH
11525
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11526
 
    case $host_os in
11527
 
      openbsd2.[89] | openbsd2.[89].*)
11528
 
        shlibpath_overrides_runpath=no
11529
 
        ;;
11530
 
      *)
11531
 
        shlibpath_overrides_runpath=yes
11532
 
        ;;
11533
 
      esac
11534
 
  else
11535
 
    shlibpath_overrides_runpath=yes
11536
 
  fi
11537
 
  ;;
11538
 
 
11539
 
os2*)
11540
 
  libname_spec='$name'
11541
 
  shrext=".dll"
11542
 
  need_lib_prefix=no
11543
 
  library_names_spec='$libname${shared_ext} $libname.a'
11544
 
  dynamic_linker='OS/2 ld.exe'
11545
 
  shlibpath_var=LIBPATH
11546
 
  ;;
11547
 
 
11548
 
osf3* | osf4* | osf5*)
11549
 
  version_type=osf
11550
 
  need_lib_prefix=no
11551
 
  need_version=no
11552
 
  soname_spec='${libname}${release}${shared_ext}$major'
11553
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554
 
  shlibpath_var=LD_LIBRARY_PATH
11555
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11556
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11557
 
  ;;
11558
 
 
11559
 
sco3.2v5*)
11560
 
  version_type=osf
11561
 
  soname_spec='${libname}${release}${shared_ext}$major'
11562
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563
 
  shlibpath_var=LD_LIBRARY_PATH
11564
 
  ;;
11565
 
 
11566
 
solaris*)
11567
 
  version_type=linux
11568
 
  need_lib_prefix=no
11569
 
  need_version=no
11570
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571
 
  soname_spec='${libname}${release}${shared_ext}$major'
11572
 
  shlibpath_var=LD_LIBRARY_PATH
11573
 
  shlibpath_overrides_runpath=yes
11574
 
  hardcode_into_libs=yes
11575
 
  # ldd complains unless libraries are executable
11576
 
  postinstall_cmds='chmod +x $lib'
11577
 
  ;;
11578
 
 
11579
 
sunos4*)
11580
 
  version_type=sunos
11581
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11582
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11583
 
  shlibpath_var=LD_LIBRARY_PATH
11584
 
  shlibpath_overrides_runpath=yes
11585
 
  if test "$with_gnu_ld" = yes; then
11586
 
    need_lib_prefix=no
11587
 
  fi
11588
 
  need_version=yes
11589
 
  ;;
11590
 
 
11591
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11592
 
  version_type=linux
11593
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594
 
  soname_spec='${libname}${release}${shared_ext}$major'
11595
 
  shlibpath_var=LD_LIBRARY_PATH
11596
 
  case $host_vendor in
11597
 
    sni)
11598
 
      shlibpath_overrides_runpath=no
11599
 
      need_lib_prefix=no
11600
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
11601
 
      runpath_var=LD_RUN_PATH
11602
 
      ;;
11603
 
    siemens)
11604
 
      need_lib_prefix=no
11605
 
      ;;
11606
 
    motorola)
11607
 
      need_lib_prefix=no
11608
 
      need_version=no
11609
 
      shlibpath_overrides_runpath=no
11610
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11611
 
      ;;
11612
 
  esac
11613
 
  ;;
11614
 
 
11615
 
sysv4*MP*)
11616
 
  if test -d /usr/nec ;then
11617
 
    version_type=linux
11618
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11619
 
    soname_spec='$libname${shared_ext}.$major'
11620
 
    shlibpath_var=LD_LIBRARY_PATH
11621
 
  fi
11622
 
  ;;
11623
 
 
11624
 
uts4*)
11625
 
  version_type=linux
11626
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627
 
  soname_spec='${libname}${release}${shared_ext}$major'
11628
 
  shlibpath_var=LD_LIBRARY_PATH
11629
 
  ;;
11630
 
 
11631
 
*)
11632
 
  dynamic_linker=no
11633
 
  ;;
11634
 
esac
11635
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11636
 
echo "${ECHO_T}$dynamic_linker" >&6
11637
 
test "$dynamic_linker" = no && can_build_shared=no
11638
 
 
11639
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11640
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11641
 
hardcode_action_CXX=
11642
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11643
 
   test -n "$runpath_var CXX" || \
11644
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
11645
 
 
11646
 
  # We can hardcode non-existant directories.
11647
 
  if test "$hardcode_direct_CXX" != no &&
11648
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11649
 
     # have to relink, otherwise we might link with an installed library
11650
 
     # when we should be linking with a yet-to-be-installed one
11651
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11652
 
     test "$hardcode_minus_L_CXX" != no; then
11653
 
    # Linking always hardcodes the temporary library directory.
11654
 
    hardcode_action_CXX=relink
11655
 
  else
11656
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11657
 
    hardcode_action_CXX=immediate
11658
 
  fi
11659
 
else
11660
 
  # We cannot hardcode anything, or else we can only hardcode existing
11661
 
  # directories.
11662
 
  hardcode_action_CXX=unsupported
11663
 
fi
11664
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11665
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
11666
 
 
11667
 
if test "$hardcode_action_CXX" = relink; then
11668
 
  # Fast installation is not supported
11669
 
  enable_fast_install=no
11670
 
elif test "$shlibpath_overrides_runpath" = yes ||
11671
 
     test "$enable_shared" = no; then
11672
 
  # Fast installation is not necessary
11673
 
  enable_fast_install=needless
11674
 
fi
11675
 
 
11676
 
striplib=
11677
 
old_striplib=
11678
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11679
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11680
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11681
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11682
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11683
 
  echo "$as_me:$LINENO: result: yes" >&5
11684
 
echo "${ECHO_T}yes" >&6
11685
 
else
11686
 
# FIXME - insert some real tests, host_os isn't really good enough
11687
 
  case $host_os in
11688
 
   darwin*)
11689
 
       if test -n "$STRIP" ; then
11690
 
         striplib="$STRIP -x"
11691
 
         echo "$as_me:$LINENO: result: yes" >&5
11692
 
echo "${ECHO_T}yes" >&6
11693
 
       else
11694
 
  echo "$as_me:$LINENO: result: no" >&5
11695
 
echo "${ECHO_T}no" >&6
11696
 
fi
11697
 
       ;;
11698
 
   *)
11699
 
  echo "$as_me:$LINENO: result: no" >&5
11700
 
echo "${ECHO_T}no" >&6
11701
 
    ;;
11702
 
  esac
11703
 
fi
11704
 
 
11705
 
if test "x$enable_dlopen" != xyes; then
11706
 
  enable_dlopen=unknown
11707
 
  enable_dlopen_self=unknown
11708
 
  enable_dlopen_self_static=unknown
11709
 
else
11710
 
  lt_cv_dlopen=no
11711
 
  lt_cv_dlopen_libs=
11712
 
 
11713
 
  case $host_os in
11714
 
  beos*)
11715
 
    lt_cv_dlopen="load_add_on"
11716
 
    lt_cv_dlopen_libs=
11717
 
    lt_cv_dlopen_self=yes
11718
 
    ;;
11719
 
 
11720
 
  mingw* | pw32*)
11721
 
    lt_cv_dlopen="LoadLibrary"
11722
 
    lt_cv_dlopen_libs=
11723
 
   ;;
11724
 
 
11725
 
  cygwin*)
11726
 
    lt_cv_dlopen="dlopen"
11727
 
    lt_cv_dlopen_libs=
11728
 
   ;;
11729
 
 
11730
 
  darwin*)
11731
 
  # if libdl is installed we need to link against it
11732
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11733
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11734
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11735
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11736
 
else
11737
 
  ac_check_lib_save_LIBS=$LIBS
11738
 
LIBS="-ldl  $LIBS"
11739
 
cat >conftest.$ac_ext <<_ACEOF
11740
 
/* confdefs.h.  */
11741
 
_ACEOF
11742
 
cat confdefs.h >>conftest.$ac_ext
11743
 
cat >>conftest.$ac_ext <<_ACEOF
11744
 
/* end confdefs.h.  */
11745
 
 
11746
 
/* Override any gcc2 internal prototype to avoid an error.  */
11747
 
#ifdef __cplusplus
11748
 
extern "C"
11749
 
#endif
11750
 
/* We use char because int might match the return type of a gcc2
11751
 
   builtin and then its argument prototype would still apply.  */
11752
 
char dlopen ();
11753
 
int
11754
 
main ()
11755
 
{
11756
 
dlopen ();
11757
 
  ;
11758
 
  return 0;
11759
 
}
11760
 
_ACEOF
11761
 
rm -f conftest.$ac_objext conftest$ac_exeext
11762
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763
 
  (eval $ac_link) 2>conftest.er1
11764
 
  ac_status=$?
11765
 
  grep -v '^ *+' conftest.er1 >conftest.err
11766
 
  rm -f conftest.er1
11767
 
  cat conftest.err >&5
11768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769
 
  (exit $ac_status); } &&
11770
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772
 
  (eval $ac_try) 2>&5
11773
 
  ac_status=$?
11774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775
 
  (exit $ac_status); }; } &&
11776
 
         { ac_try='test -s conftest$ac_exeext'
11777
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778
 
  (eval $ac_try) 2>&5
11779
 
  ac_status=$?
11780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
 
  (exit $ac_status); }; }; then
11782
 
  ac_cv_lib_dl_dlopen=yes
11783
 
else
11784
 
  echo "$as_me: failed program was:" >&5
11785
 
sed 's/^/| /' conftest.$ac_ext >&5
11786
 
 
11787
 
ac_cv_lib_dl_dlopen=no
11788
 
fi
11789
 
rm -f conftest.err conftest.$ac_objext \
11790
 
      conftest$ac_exeext conftest.$ac_ext
11791
 
LIBS=$ac_check_lib_save_LIBS
11792
 
fi
11793
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11794
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11795
 
if test $ac_cv_lib_dl_dlopen = yes; then
11796
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11797
 
else
11798
 
 
11799
 
    lt_cv_dlopen="dyld"
11800
 
    lt_cv_dlopen_libs=
11801
 
    lt_cv_dlopen_self=yes
11802
 
 
11803
 
fi
11804
 
 
11805
 
   ;;
11806
 
 
11807
 
  *)
11808
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11809
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11810
 
if test "${ac_cv_func_shl_load+set}" = set; then
11811
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11812
 
else
11813
 
  cat >conftest.$ac_ext <<_ACEOF
11814
 
/* confdefs.h.  */
11815
 
_ACEOF
11816
 
cat confdefs.h >>conftest.$ac_ext
11817
 
cat >>conftest.$ac_ext <<_ACEOF
11818
 
/* end confdefs.h.  */
11819
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11820
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11821
 
#define shl_load innocuous_shl_load
11822
 
 
11823
 
/* System header to define __stub macros and hopefully few prototypes,
11824
 
    which can conflict with char shl_load (); below.
11825
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826
 
    <limits.h> exists even on freestanding compilers.  */
11827
 
 
11828
 
#ifdef __STDC__
11829
 
# include <limits.h>
11830
 
#else
11831
 
# include <assert.h>
11832
 
#endif
11833
 
 
11834
 
#undef shl_load
11835
 
 
11836
 
/* Override any gcc2 internal prototype to avoid an error.  */
11837
 
#ifdef __cplusplus
11838
 
extern "C"
11839
 
{
11840
 
#endif
11841
 
/* We use char because int might match the return type of a gcc2
11842
 
   builtin and then its argument prototype would still apply.  */
11843
 
char shl_load ();
11844
 
/* The GNU C library defines this for functions which it implements
11845
 
    to always fail with ENOSYS.  Some functions are actually named
11846
 
    something starting with __ and the normal name is an alias.  */
11847
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11848
 
choke me
11849
 
#else
11850
 
char (*f) () = shl_load;
11851
 
#endif
11852
 
#ifdef __cplusplus
11853
 
}
11854
 
#endif
11855
 
 
11856
 
int
11857
 
main ()
11858
 
{
11859
 
return f != shl_load;
11860
 
  ;
11861
 
  return 0;
11862
 
}
11863
 
_ACEOF
11864
 
rm -f conftest.$ac_objext conftest$ac_exeext
11865
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866
 
  (eval $ac_link) 2>conftest.er1
11867
 
  ac_status=$?
11868
 
  grep -v '^ *+' conftest.er1 >conftest.err
11869
 
  rm -f conftest.er1
11870
 
  cat conftest.err >&5
11871
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872
 
  (exit $ac_status); } &&
11873
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11874
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875
 
  (eval $ac_try) 2>&5
11876
 
  ac_status=$?
11877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
 
  (exit $ac_status); }; } &&
11879
 
         { ac_try='test -s conftest$ac_exeext'
11880
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881
 
  (eval $ac_try) 2>&5
11882
 
  ac_status=$?
11883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884
 
  (exit $ac_status); }; }; then
11885
 
  ac_cv_func_shl_load=yes
11886
 
else
11887
 
  echo "$as_me: failed program was:" >&5
11888
 
sed 's/^/| /' conftest.$ac_ext >&5
11889
 
 
11890
 
ac_cv_func_shl_load=no
11891
 
fi
11892
 
rm -f conftest.err conftest.$ac_objext \
11893
 
      conftest$ac_exeext conftest.$ac_ext
11894
 
fi
11895
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11896
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11897
 
if test $ac_cv_func_shl_load = yes; then
11898
 
  lt_cv_dlopen="shl_load"
11899
 
else
11900
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11901
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11902
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11903
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11904
 
else
11905
 
  ac_check_lib_save_LIBS=$LIBS
11906
 
LIBS="-ldld  $LIBS"
11907
 
cat >conftest.$ac_ext <<_ACEOF
11908
 
/* confdefs.h.  */
11909
 
_ACEOF
11910
 
cat confdefs.h >>conftest.$ac_ext
11911
 
cat >>conftest.$ac_ext <<_ACEOF
11912
 
/* end confdefs.h.  */
11913
 
 
11914
 
/* Override any gcc2 internal prototype to avoid an error.  */
11915
 
#ifdef __cplusplus
11916
 
extern "C"
11917
 
#endif
11918
 
/* We use char because int might match the return type of a gcc2
11919
 
   builtin and then its argument prototype would still apply.  */
11920
 
char shl_load ();
11921
 
int
11922
 
main ()
11923
 
{
11924
 
shl_load ();
11925
 
  ;
11926
 
  return 0;
11927
 
}
11928
 
_ACEOF
11929
 
rm -f conftest.$ac_objext conftest$ac_exeext
11930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931
 
  (eval $ac_link) 2>conftest.er1
11932
 
  ac_status=$?
11933
 
  grep -v '^ *+' conftest.er1 >conftest.err
11934
 
  rm -f conftest.er1
11935
 
  cat conftest.err >&5
11936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937
 
  (exit $ac_status); } &&
11938
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940
 
  (eval $ac_try) 2>&5
11941
 
  ac_status=$?
11942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943
 
  (exit $ac_status); }; } &&
11944
 
         { ac_try='test -s conftest$ac_exeext'
11945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946
 
  (eval $ac_try) 2>&5
11947
 
  ac_status=$?
11948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949
 
  (exit $ac_status); }; }; then
11950
 
  ac_cv_lib_dld_shl_load=yes
11951
 
else
11952
 
  echo "$as_me: failed program was:" >&5
11953
 
sed 's/^/| /' conftest.$ac_ext >&5
11954
 
 
11955
 
ac_cv_lib_dld_shl_load=no
11956
 
fi
11957
 
rm -f conftest.err conftest.$ac_objext \
11958
 
      conftest$ac_exeext conftest.$ac_ext
11959
 
LIBS=$ac_check_lib_save_LIBS
11960
 
fi
11961
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11962
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11963
 
if test $ac_cv_lib_dld_shl_load = yes; then
11964
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11965
 
else
11966
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
11967
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11968
 
if test "${ac_cv_func_dlopen+set}" = set; then
11969
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11970
 
else
11971
 
  cat >conftest.$ac_ext <<_ACEOF
11972
 
/* confdefs.h.  */
11973
 
_ACEOF
11974
 
cat confdefs.h >>conftest.$ac_ext
11975
 
cat >>conftest.$ac_ext <<_ACEOF
11976
 
/* end confdefs.h.  */
11977
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11978
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11979
 
#define dlopen innocuous_dlopen
11980
 
 
11981
 
/* System header to define __stub macros and hopefully few prototypes,
11982
 
    which can conflict with char dlopen (); below.
11983
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11984
 
    <limits.h> exists even on freestanding compilers.  */
11985
 
 
11986
 
#ifdef __STDC__
11987
 
# include <limits.h>
11988
 
#else
11989
 
# include <assert.h>
11990
 
#endif
11991
 
 
11992
 
#undef dlopen
11993
 
 
11994
 
/* Override any gcc2 internal prototype to avoid an error.  */
11995
 
#ifdef __cplusplus
11996
 
extern "C"
11997
 
{
11998
 
#endif
11999
 
/* We use char because int might match the return type of a gcc2
12000
 
   builtin and then its argument prototype would still apply.  */
12001
 
char dlopen ();
12002
 
/* The GNU C library defines this for functions which it implements
12003
 
    to always fail with ENOSYS.  Some functions are actually named
12004
 
    something starting with __ and the normal name is an alias.  */
12005
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12006
 
choke me
12007
 
#else
12008
 
char (*f) () = dlopen;
12009
 
#endif
12010
 
#ifdef __cplusplus
12011
 
}
12012
 
#endif
12013
 
 
12014
 
int
12015
 
main ()
12016
 
{
12017
 
return f != dlopen;
12018
 
  ;
12019
 
  return 0;
12020
 
}
12021
 
_ACEOF
12022
 
rm -f conftest.$ac_objext conftest$ac_exeext
12023
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024
 
  (eval $ac_link) 2>conftest.er1
12025
 
  ac_status=$?
12026
 
  grep -v '^ *+' conftest.er1 >conftest.err
12027
 
  rm -f conftest.er1
12028
 
  cat conftest.err >&5
12029
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030
 
  (exit $ac_status); } &&
12031
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12032
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033
 
  (eval $ac_try) 2>&5
12034
 
  ac_status=$?
12035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036
 
  (exit $ac_status); }; } &&
12037
 
         { ac_try='test -s conftest$ac_exeext'
12038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039
 
  (eval $ac_try) 2>&5
12040
 
  ac_status=$?
12041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
 
  (exit $ac_status); }; }; then
12043
 
  ac_cv_func_dlopen=yes
12044
 
else
12045
 
  echo "$as_me: failed program was:" >&5
12046
 
sed 's/^/| /' conftest.$ac_ext >&5
12047
 
 
12048
 
ac_cv_func_dlopen=no
12049
 
fi
12050
 
rm -f conftest.err conftest.$ac_objext \
12051
 
      conftest$ac_exeext conftest.$ac_ext
12052
 
fi
12053
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12054
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12055
 
if test $ac_cv_func_dlopen = yes; then
12056
 
  lt_cv_dlopen="dlopen"
12057
 
else
12058
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12059
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12060
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12061
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12062
 
else
12063
 
  ac_check_lib_save_LIBS=$LIBS
12064
 
LIBS="-ldl  $LIBS"
12065
 
cat >conftest.$ac_ext <<_ACEOF
12066
 
/* confdefs.h.  */
12067
 
_ACEOF
12068
 
cat confdefs.h >>conftest.$ac_ext
12069
 
cat >>conftest.$ac_ext <<_ACEOF
12070
 
/* end confdefs.h.  */
12071
 
 
12072
 
/* Override any gcc2 internal prototype to avoid an error.  */
12073
 
#ifdef __cplusplus
12074
 
extern "C"
12075
 
#endif
12076
 
/* We use char because int might match the return type of a gcc2
12077
 
   builtin and then its argument prototype would still apply.  */
12078
 
char dlopen ();
12079
 
int
12080
 
main ()
12081
 
{
12082
 
dlopen ();
12083
 
  ;
12084
 
  return 0;
12085
 
}
12086
 
_ACEOF
12087
 
rm -f conftest.$ac_objext conftest$ac_exeext
12088
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089
 
  (eval $ac_link) 2>conftest.er1
12090
 
  ac_status=$?
12091
 
  grep -v '^ *+' conftest.er1 >conftest.err
12092
 
  rm -f conftest.er1
12093
 
  cat conftest.err >&5
12094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095
 
  (exit $ac_status); } &&
12096
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12097
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098
 
  (eval $ac_try) 2>&5
12099
 
  ac_status=$?
12100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101
 
  (exit $ac_status); }; } &&
12102
 
         { ac_try='test -s conftest$ac_exeext'
12103
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104
 
  (eval $ac_try) 2>&5
12105
 
  ac_status=$?
12106
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107
 
  (exit $ac_status); }; }; then
12108
 
  ac_cv_lib_dl_dlopen=yes
12109
 
else
12110
 
  echo "$as_me: failed program was:" >&5
12111
 
sed 's/^/| /' conftest.$ac_ext >&5
12112
 
 
12113
 
ac_cv_lib_dl_dlopen=no
12114
 
fi
12115
 
rm -f conftest.err conftest.$ac_objext \
12116
 
      conftest$ac_exeext conftest.$ac_ext
12117
 
LIBS=$ac_check_lib_save_LIBS
12118
 
fi
12119
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12120
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12121
 
if test $ac_cv_lib_dl_dlopen = yes; then
12122
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12123
 
else
12124
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12125
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12126
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12127
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12128
 
else
12129
 
  ac_check_lib_save_LIBS=$LIBS
12130
 
LIBS="-lsvld  $LIBS"
12131
 
cat >conftest.$ac_ext <<_ACEOF
12132
 
/* confdefs.h.  */
12133
 
_ACEOF
12134
 
cat confdefs.h >>conftest.$ac_ext
12135
 
cat >>conftest.$ac_ext <<_ACEOF
12136
 
/* end confdefs.h.  */
12137
 
 
12138
 
/* Override any gcc2 internal prototype to avoid an error.  */
12139
 
#ifdef __cplusplus
12140
 
extern "C"
12141
 
#endif
12142
 
/* We use char because int might match the return type of a gcc2
12143
 
   builtin and then its argument prototype would still apply.  */
12144
 
char dlopen ();
12145
 
int
12146
 
main ()
12147
 
{
12148
 
dlopen ();
12149
 
  ;
12150
 
  return 0;
12151
 
}
12152
 
_ACEOF
12153
 
rm -f conftest.$ac_objext conftest$ac_exeext
12154
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155
 
  (eval $ac_link) 2>conftest.er1
12156
 
  ac_status=$?
12157
 
  grep -v '^ *+' conftest.er1 >conftest.err
12158
 
  rm -f conftest.er1
12159
 
  cat conftest.err >&5
12160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
 
  (exit $ac_status); } &&
12162
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164
 
  (eval $ac_try) 2>&5
12165
 
  ac_status=$?
12166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
 
  (exit $ac_status); }; } &&
12168
 
         { ac_try='test -s conftest$ac_exeext'
12169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170
 
  (eval $ac_try) 2>&5
12171
 
  ac_status=$?
12172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173
 
  (exit $ac_status); }; }; then
12174
 
  ac_cv_lib_svld_dlopen=yes
12175
 
else
12176
 
  echo "$as_me: failed program was:" >&5
12177
 
sed 's/^/| /' conftest.$ac_ext >&5
12178
 
 
12179
 
ac_cv_lib_svld_dlopen=no
12180
 
fi
12181
 
rm -f conftest.err conftest.$ac_objext \
12182
 
      conftest$ac_exeext conftest.$ac_ext
12183
 
LIBS=$ac_check_lib_save_LIBS
12184
 
fi
12185
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12186
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12187
 
if test $ac_cv_lib_svld_dlopen = yes; then
12188
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12189
 
else
12190
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12191
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12192
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12193
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12194
 
else
12195
 
  ac_check_lib_save_LIBS=$LIBS
12196
 
LIBS="-ldld  $LIBS"
12197
 
cat >conftest.$ac_ext <<_ACEOF
12198
 
/* confdefs.h.  */
12199
 
_ACEOF
12200
 
cat confdefs.h >>conftest.$ac_ext
12201
 
cat >>conftest.$ac_ext <<_ACEOF
12202
 
/* end confdefs.h.  */
12203
 
 
12204
 
/* Override any gcc2 internal prototype to avoid an error.  */
12205
 
#ifdef __cplusplus
12206
 
extern "C"
12207
 
#endif
12208
 
/* We use char because int might match the return type of a gcc2
12209
 
   builtin and then its argument prototype would still apply.  */
12210
 
char dld_link ();
12211
 
int
12212
 
main ()
12213
 
{
12214
 
dld_link ();
12215
 
  ;
12216
 
  return 0;
12217
 
}
12218
 
_ACEOF
12219
 
rm -f conftest.$ac_objext conftest$ac_exeext
12220
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221
 
  (eval $ac_link) 2>conftest.er1
12222
 
  ac_status=$?
12223
 
  grep -v '^ *+' conftest.er1 >conftest.err
12224
 
  rm -f conftest.er1
12225
 
  cat conftest.err >&5
12226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227
 
  (exit $ac_status); } &&
12228
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12229
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230
 
  (eval $ac_try) 2>&5
12231
 
  ac_status=$?
12232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
 
  (exit $ac_status); }; } &&
12234
 
         { ac_try='test -s conftest$ac_exeext'
12235
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236
 
  (eval $ac_try) 2>&5
12237
 
  ac_status=$?
12238
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239
 
  (exit $ac_status); }; }; then
12240
 
  ac_cv_lib_dld_dld_link=yes
12241
 
else
12242
 
  echo "$as_me: failed program was:" >&5
12243
 
sed 's/^/| /' conftest.$ac_ext >&5
12244
 
 
12245
 
ac_cv_lib_dld_dld_link=no
12246
 
fi
12247
 
rm -f conftest.err conftest.$ac_objext \
12248
 
      conftest$ac_exeext conftest.$ac_ext
12249
 
LIBS=$ac_check_lib_save_LIBS
12250
 
fi
12251
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12252
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12253
 
if test $ac_cv_lib_dld_dld_link = yes; then
12254
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12255
 
fi
12256
 
 
12257
 
 
12258
 
fi
12259
 
 
12260
 
 
12261
 
fi
12262
 
 
12263
 
 
12264
 
fi
12265
 
 
12266
 
 
12267
 
fi
12268
 
 
12269
 
 
12270
 
fi
12271
 
 
12272
 
    ;;
12273
 
  esac
12274
 
 
12275
 
  if test "x$lt_cv_dlopen" != xno; then
12276
 
    enable_dlopen=yes
12277
 
  else
12278
 
    enable_dlopen=no
12279
 
  fi
12280
 
 
12281
 
  case $lt_cv_dlopen in
12282
 
  dlopen)
12283
 
    save_CPPFLAGS="$CPPFLAGS"
12284
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12285
 
 
12286
 
    save_LDFLAGS="$LDFLAGS"
12287
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12288
 
 
12289
 
    save_LIBS="$LIBS"
12290
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12291
 
 
12292
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12293
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12294
 
if test "${lt_cv_dlopen_self+set}" = set; then
12295
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12296
 
else
12297
 
          if test "$cross_compiling" = yes; then :
12298
 
  lt_cv_dlopen_self=cross
12299
 
else
12300
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12301
 
  lt_status=$lt_dlunknown
12302
 
  cat > conftest.$ac_ext <<EOF
12303
 
#line 12303 "configure"
12304
 
#include "confdefs.h"
12305
 
 
12306
 
#if HAVE_DLFCN_H
12307
 
#include <dlfcn.h>
12308
 
#endif
12309
 
 
12310
 
#include <stdio.h>
12311
 
 
12312
 
#ifdef RTLD_GLOBAL
12313
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12314
 
#else
12315
 
#  ifdef DL_GLOBAL
12316
 
#    define LT_DLGLOBAL         DL_GLOBAL
12317
 
#  else
12318
 
#    define LT_DLGLOBAL         0
12319
 
#  endif
12320
 
#endif
12321
 
 
12322
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12323
 
   find out it does not work in some platform. */
12324
 
#ifndef LT_DLLAZY_OR_NOW
12325
 
#  ifdef RTLD_LAZY
12326
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12327
 
#  else
12328
 
#    ifdef DL_LAZY
12329
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12330
 
#    else
12331
 
#      ifdef RTLD_NOW
12332
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12333
 
#      else
12334
 
#        ifdef DL_NOW
12335
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12336
 
#        else
12337
 
#          define LT_DLLAZY_OR_NOW      0
12338
 
#        endif
12339
 
#      endif
12340
 
#    endif
12341
 
#  endif
12342
 
#endif
12343
 
 
12344
 
#ifdef __cplusplus
12345
 
extern "C" void exit (int);
12346
 
#endif
12347
 
 
12348
 
void fnord() { int i=42;}
12349
 
int main ()
12350
 
{
12351
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12352
 
  int status = $lt_dlunknown;
12353
 
 
12354
 
  if (self)
12355
 
    {
12356
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12357
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12358
 
      /* dlclose (self); */
12359
 
    }
12360
 
 
12361
 
    exit (status);
12362
 
}
12363
 
EOF
12364
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365
 
  (eval $ac_link) 2>&5
12366
 
  ac_status=$?
12367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12369
 
    (./conftest; exit; ) 2>/dev/null
12370
 
    lt_status=$?
12371
 
    case x$lt_status in
12372
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12373
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12374
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12375
 
    esac
12376
 
  else :
12377
 
    # compilation failed
12378
 
    lt_cv_dlopen_self=no
12379
 
  fi
12380
 
fi
12381
 
rm -fr conftest*
12382
 
 
12383
 
 
12384
 
fi
12385
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12386
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12387
 
 
12388
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12389
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12390
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12391
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12392
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12393
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12394
 
else
12395
 
          if test "$cross_compiling" = yes; then :
12396
 
  lt_cv_dlopen_self_static=cross
12397
 
else
12398
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12399
 
  lt_status=$lt_dlunknown
12400
 
  cat > conftest.$ac_ext <<EOF
12401
 
#line 12401 "configure"
12402
 
#include "confdefs.h"
12403
 
 
12404
 
#if HAVE_DLFCN_H
12405
 
#include <dlfcn.h>
12406
 
#endif
12407
 
 
12408
 
#include <stdio.h>
12409
 
 
12410
 
#ifdef RTLD_GLOBAL
12411
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12412
 
#else
12413
 
#  ifdef DL_GLOBAL
12414
 
#    define LT_DLGLOBAL         DL_GLOBAL
12415
 
#  else
12416
 
#    define LT_DLGLOBAL         0
12417
 
#  endif
12418
 
#endif
12419
 
 
12420
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12421
 
   find out it does not work in some platform. */
12422
 
#ifndef LT_DLLAZY_OR_NOW
12423
 
#  ifdef RTLD_LAZY
12424
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12425
 
#  else
12426
 
#    ifdef DL_LAZY
12427
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12428
 
#    else
12429
 
#      ifdef RTLD_NOW
12430
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12431
 
#      else
12432
 
#        ifdef DL_NOW
12433
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12434
 
#        else
12435
 
#          define LT_DLLAZY_OR_NOW      0
12436
 
#        endif
12437
 
#      endif
12438
 
#    endif
12439
 
#  endif
12440
 
#endif
12441
 
 
12442
 
#ifdef __cplusplus
12443
 
extern "C" void exit (int);
12444
 
#endif
12445
 
 
12446
 
void fnord() { int i=42;}
12447
 
int main ()
12448
 
{
12449
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12450
 
  int status = $lt_dlunknown;
12451
 
 
12452
 
  if (self)
12453
 
    {
12454
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12455
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12456
 
      /* dlclose (self); */
12457
 
    }
12458
 
 
12459
 
    exit (status);
12460
 
}
12461
 
EOF
12462
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12463
 
  (eval $ac_link) 2>&5
12464
 
  ac_status=$?
12465
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12467
 
    (./conftest; exit; ) 2>/dev/null
12468
 
    lt_status=$?
12469
 
    case x$lt_status in
12470
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12471
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12472
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12473
 
    esac
12474
 
  else :
12475
 
    # compilation failed
12476
 
    lt_cv_dlopen_self_static=no
12477
 
  fi
12478
 
fi
12479
 
rm -fr conftest*
12480
 
 
12481
 
 
12482
 
fi
12483
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12484
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12485
 
    fi
12486
 
 
12487
 
    CPPFLAGS="$save_CPPFLAGS"
12488
 
    LDFLAGS="$save_LDFLAGS"
12489
 
    LIBS="$save_LIBS"
12490
 
    ;;
12491
 
  esac
12492
 
 
12493
 
  case $lt_cv_dlopen_self in
12494
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12495
 
  *) enable_dlopen_self=unknown ;;
12496
 
  esac
12497
 
 
12498
 
  case $lt_cv_dlopen_self_static in
12499
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12500
 
  *) enable_dlopen_self_static=unknown ;;
12501
 
  esac
12502
 
fi
12503
 
 
12504
 
 
12505
 
# The else clause should only fire when bootstrapping the
12506
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
12507
 
# with your package, and you will get complaints that there are
12508
 
# no rules to generate ltmain.sh.
12509
 
if test -f "$ltmain"; then
12510
 
  # See if we are running on zsh, and set the options which allow our commands through
12511
 
  # without removal of \ escapes.
12512
 
  if test -n "${ZSH_VERSION+set}" ; then
12513
 
    setopt NO_GLOB_SUBST
12514
 
  fi
12515
 
  # Now quote all the things that may contain metacharacters while being
12516
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12517
 
  # variables and quote the copies for generation of the libtool script.
12518
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12519
 
    SED SHELL STRIP \
12520
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12521
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12522
 
    deplibs_check_method reload_flag reload_cmds need_locks \
12523
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12524
 
    lt_cv_sys_global_symbol_to_c_name_address \
12525
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12526
 
    old_postinstall_cmds old_postuninstall_cmds \
12527
 
    compiler_CXX \
12528
 
    CC_CXX \
12529
 
    LD_CXX \
12530
 
    lt_prog_compiler_wl_CXX \
12531
 
    lt_prog_compiler_pic_CXX \
12532
 
    lt_prog_compiler_static_CXX \
12533
 
    lt_prog_compiler_no_builtin_flag_CXX \
12534
 
    export_dynamic_flag_spec_CXX \
12535
 
    thread_safe_flag_spec_CXX \
12536
 
    whole_archive_flag_spec_CXX \
12537
 
    enable_shared_with_static_runtimes_CXX \
12538
 
    old_archive_cmds_CXX \
12539
 
    old_archive_from_new_cmds_CXX \
12540
 
    predep_objects_CXX \
12541
 
    postdep_objects_CXX \
12542
 
    predeps_CXX \
12543
 
    postdeps_CXX \
12544
 
    compiler_lib_search_path_CXX \
12545
 
    archive_cmds_CXX \
12546
 
    archive_expsym_cmds_CXX \
12547
 
    postinstall_cmds_CXX \
12548
 
    postuninstall_cmds_CXX \
12549
 
    old_archive_from_expsyms_cmds_CXX \
12550
 
    allow_undefined_flag_CXX \
12551
 
    no_undefined_flag_CXX \
12552
 
    export_symbols_cmds_CXX \
12553
 
    hardcode_libdir_flag_spec_CXX \
12554
 
    hardcode_libdir_flag_spec_ld_CXX \
12555
 
    hardcode_libdir_separator_CXX \
12556
 
    hardcode_automatic_CXX \
12557
 
    module_cmds_CXX \
12558
 
    module_expsym_cmds_CXX \
12559
 
    lt_cv_prog_compiler_c_o_CXX \
12560
 
    exclude_expsyms_CXX \
12561
 
    include_expsyms_CXX; do
12562
 
 
12563
 
    case $var in
12564
 
    old_archive_cmds_CXX | \
12565
 
    old_archive_from_new_cmds_CXX | \
12566
 
    archive_cmds_CXX | \
12567
 
    archive_expsym_cmds_CXX | \
12568
 
    module_cmds_CXX | \
12569
 
    module_expsym_cmds_CXX | \
12570
 
    old_archive_from_expsyms_cmds_CXX | \
12571
 
    export_symbols_cmds_CXX | \
12572
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12573
 
    postinstall_cmds | postuninstall_cmds | \
12574
 
    old_postinstall_cmds | old_postuninstall_cmds | \
12575
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12576
 
      # Double-quote double-evaled strings.
12577
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12578
 
      ;;
12579
 
    *)
12580
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12581
 
      ;;
12582
 
    esac
12583
 
  done
12584
 
 
12585
 
  case $lt_echo in
12586
 
  *'\$0 --fallback-echo"')
12587
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12588
 
    ;;
12589
 
  esac
12590
 
 
12591
 
cfgfile="$ofile"
12592
 
 
12593
 
  cat <<__EOF__ >> "$cfgfile"
12594
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12595
 
 
12596
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12597
 
 
12598
 
# Shell to use when invoking shell scripts.
12599
 
SHELL=$lt_SHELL
12600
 
 
12601
 
# Whether or not to build shared libraries.
12602
 
build_libtool_libs=$enable_shared
12603
 
 
12604
 
# Whether or not to build static libraries.
12605
 
build_old_libs=$enable_static
12606
 
 
12607
 
# Whether or not to add -lc for building shared libraries.
12608
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12609
 
 
12610
 
# Whether or not to disallow shared libs when runtime libs are static
12611
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12612
 
 
12613
 
# Whether or not to optimize for fast installation.
12614
 
fast_install=$enable_fast_install
12615
 
 
12616
 
# The host system.
12617
 
host_alias=$host_alias
12618
 
host=$host
12619
 
 
12620
 
# An echo program that does not interpret backslashes.
12621
 
echo=$lt_echo
12622
 
 
12623
 
# The archiver.
12624
 
AR=$lt_AR
12625
 
AR_FLAGS=$lt_AR_FLAGS
12626
 
 
12627
 
# A C compiler.
12628
 
LTCC=$lt_LTCC
12629
 
 
12630
 
# A language-specific compiler.
12631
 
CC=$lt_compiler_CXX
12632
 
 
12633
 
# Is the compiler the GNU C compiler?
12634
 
with_gcc=$GCC_CXX
12635
 
 
12636
 
# An ERE matcher.
12637
 
EGREP=$lt_EGREP
12638
 
 
12639
 
# The linker used to build libraries.
12640
 
LD=$lt_LD_CXX
12641
 
 
12642
 
# Whether we need hard or soft links.
12643
 
LN_S=$lt_LN_S
12644
 
 
12645
 
# A BSD-compatible nm program.
12646
 
NM=$lt_NM
12647
 
 
12648
 
# A symbol stripping program
12649
 
STRIP=$lt_STRIP
12650
 
 
12651
 
# Used to examine libraries when file_magic_cmd begins "file"
12652
 
MAGIC_CMD=$MAGIC_CMD
12653
 
 
12654
 
# Used on cygwin: DLL creation program.
12655
 
DLLTOOL="$DLLTOOL"
12656
 
 
12657
 
# Used on cygwin: object dumper.
12658
 
OBJDUMP="$OBJDUMP"
12659
 
 
12660
 
# Used on cygwin: assembler.
12661
 
AS="$AS"
12662
 
 
12663
 
# The name of the directory that contains temporary libtool files.
12664
 
objdir=$objdir
12665
 
 
12666
 
# How to create reloadable object files.
12667
 
reload_flag=$lt_reload_flag
12668
 
reload_cmds=$lt_reload_cmds
12669
 
 
12670
 
# How to pass a linker flag through the compiler.
12671
 
wl=$lt_lt_prog_compiler_wl_CXX
12672
 
 
12673
 
# Object file suffix (normally "o").
12674
 
objext="$ac_objext"
12675
 
 
12676
 
# Old archive suffix (normally "a").
12677
 
libext="$libext"
12678
 
 
12679
 
# Shared library suffix (normally ".so").
12680
 
shrext='$shrext'
12681
 
 
12682
 
# Executable file suffix (normally "").
12683
 
exeext="$exeext"
12684
 
 
12685
 
# Additional compiler flags for building library objects.
12686
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
12687
 
pic_mode=$pic_mode
12688
 
 
12689
 
# What is the maximum length of a command?
12690
 
max_cmd_len=$lt_cv_sys_max_cmd_len
12691
 
 
12692
 
# Does compiler simultaneously support -c and -o options?
12693
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12694
 
 
12695
 
# Must we lock files when doing compilation ?
12696
 
need_locks=$lt_need_locks
12697
 
 
12698
 
# Do we need the lib prefix for modules?
12699
 
need_lib_prefix=$need_lib_prefix
12700
 
 
12701
 
# Do we need a version for libraries?
12702
 
need_version=$need_version
12703
 
 
12704
 
# Whether dlopen is supported.
12705
 
dlopen_support=$enable_dlopen
12706
 
 
12707
 
# Whether dlopen of programs is supported.
12708
 
dlopen_self=$enable_dlopen_self
12709
 
 
12710
 
# Whether dlopen of statically linked programs is supported.
12711
 
dlopen_self_static=$enable_dlopen_self_static
12712
 
 
12713
 
# Compiler flag to prevent dynamic linking.
12714
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
12715
 
 
12716
 
# Compiler flag to turn off builtin functions.
12717
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12718
 
 
12719
 
# Compiler flag to allow reflexive dlopens.
12720
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12721
 
 
12722
 
# Compiler flag to generate shared objects directly from archives.
12723
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12724
 
 
12725
 
# Compiler flag to generate thread-safe objects.
12726
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12727
 
 
12728
 
# Library versioning type.
12729
 
version_type=$version_type
12730
 
 
12731
 
# Format of library name prefix.
12732
 
libname_spec=$lt_libname_spec
12733
 
 
12734
 
# List of archive names.  First name is the real one, the rest are links.
12735
 
# The last name is the one that the linker finds with -lNAME.
12736
 
library_names_spec=$lt_library_names_spec
12737
 
 
12738
 
# The coded name of the library, if different from the real name.
12739
 
soname_spec=$lt_soname_spec
12740
 
 
12741
 
# Commands used to build and install an old-style archive.
12742
 
RANLIB=$lt_RANLIB
12743
 
old_archive_cmds=$lt_old_archive_cmds_CXX
12744
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12745
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12746
 
 
12747
 
# Create an old-style archive from a shared archive.
12748
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12749
 
 
12750
 
# Create a temporary old-style archive to link instead of a shared archive.
12751
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12752
 
 
12753
 
# Commands used to build and install a shared archive.
12754
 
archive_cmds=$lt_archive_cmds_CXX
12755
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12756
 
postinstall_cmds=$lt_postinstall_cmds
12757
 
postuninstall_cmds=$lt_postuninstall_cmds
12758
 
 
12759
 
# Commands used to build a loadable module (assumed same as above if empty)
12760
 
module_cmds=$lt_module_cmds_CXX
12761
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12762
 
 
12763
 
# Commands to strip libraries.
12764
 
old_striplib=$lt_old_striplib
12765
 
striplib=$lt_striplib
12766
 
 
12767
 
# Dependencies to place before the objects being linked to create a
12768
 
# shared library.
12769
 
predep_objects=$lt_predep_objects_CXX
12770
 
 
12771
 
# Dependencies to place after the objects being linked to create a
12772
 
# shared library.
12773
 
postdep_objects=$lt_postdep_objects_CXX
12774
 
 
12775
 
# Dependencies to place before the objects being linked to create a
12776
 
# shared library.
12777
 
predeps=$lt_predeps_CXX
12778
 
 
12779
 
# Dependencies to place after the objects being linked to create a
12780
 
# shared library.
12781
 
postdeps=$lt_postdeps_CXX
12782
 
 
12783
 
# The library search path used internally by the compiler when linking
12784
 
# a shared library.
12785
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12786
 
 
12787
 
# Method to check whether dependent libraries are shared objects.
12788
 
deplibs_check_method=$lt_deplibs_check_method
12789
 
 
12790
 
# Command to use when deplibs_check_method == file_magic.
12791
 
file_magic_cmd=$lt_file_magic_cmd
12792
 
 
12793
 
# Flag that allows shared libraries with undefined symbols to be built.
12794
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12795
 
 
12796
 
# Flag that forces no undefined symbols.
12797
 
no_undefined_flag=$lt_no_undefined_flag_CXX
12798
 
 
12799
 
# Commands used to finish a libtool library installation in a directory.
12800
 
finish_cmds=$lt_finish_cmds
12801
 
 
12802
 
# Same as above, but a single script fragment to be evaled but not shown.
12803
 
finish_eval=$lt_finish_eval
12804
 
 
12805
 
# Take the output of nm and produce a listing of raw symbols and C names.
12806
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12807
 
 
12808
 
# Transform the output of nm in a proper C declaration
12809
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12810
 
 
12811
 
# Transform the output of nm in a C name address pair
12812
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12813
 
 
12814
 
# This is the shared library runtime path variable.
12815
 
runpath_var=$runpath_var
12816
 
 
12817
 
# This is the shared library path variable.
12818
 
shlibpath_var=$shlibpath_var
12819
 
 
12820
 
# Is shlibpath searched before the hard-coded library search path?
12821
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12822
 
 
12823
 
# How to hardcode a shared library path into an executable.
12824
 
hardcode_action=$hardcode_action_CXX
12825
 
 
12826
 
# Whether we should hardcode library paths into libraries.
12827
 
hardcode_into_libs=$hardcode_into_libs
12828
 
 
12829
 
# Flag to hardcode \$libdir into a binary during linking.
12830
 
# This must work even if \$libdir does not exist.
12831
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12832
 
 
12833
 
# If ld is used when linking, flag to hardcode \$libdir into
12834
 
# a binary during linking. This must work even if \$libdir does
12835
 
# not exist.
12836
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12837
 
 
12838
 
# Whether we need a single -rpath flag with a separated argument.
12839
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12840
 
 
12841
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12842
 
# resulting binary.
12843
 
hardcode_direct=$hardcode_direct_CXX
12844
 
 
12845
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12846
 
# resulting binary.
12847
 
hardcode_minus_L=$hardcode_minus_L_CXX
12848
 
 
12849
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12850
 
# the resulting binary.
12851
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12852
 
 
12853
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12854
 
# and all subsequent libraries and executables linked against it.
12855
 
hardcode_automatic=$hardcode_automatic_CXX
12856
 
 
12857
 
# Variables whose values should be saved in libtool wrapper scripts and
12858
 
# restored at relink time.
12859
 
variables_saved_for_relink="$variables_saved_for_relink"
12860
 
 
12861
 
# Whether libtool must link a program against all its dependency libraries.
12862
 
link_all_deplibs=$link_all_deplibs_CXX
12863
 
 
12864
 
# Compile-time system search path for libraries
12865
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12866
 
 
12867
 
# Run-time system search path for libraries
12868
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12869
 
 
12870
 
# Fix the shell variable \$srcfile for the compiler.
12871
 
fix_srcfile_path="$fix_srcfile_path_CXX"
12872
 
 
12873
 
# Set to yes if exported symbols are required.
12874
 
always_export_symbols=$always_export_symbols_CXX
12875
 
 
12876
 
# The commands to list exported symbols.
12877
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12878
 
 
12879
 
# The commands to extract the exported symbol list from a shared archive.
12880
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12881
 
 
12882
 
# Symbols that should not be listed in the preloaded symbols.
12883
 
exclude_expsyms=$lt_exclude_expsyms_CXX
12884
 
 
12885
 
# Symbols that must always be exported.
12886
 
include_expsyms=$lt_include_expsyms_CXX
12887
 
 
12888
 
# ### END LIBTOOL TAG CONFIG: $tagname
12889
 
 
12890
 
__EOF__
12891
 
 
12892
 
 
12893
 
else
12894
 
  # If there is no Makefile yet, we rely on a make rule to execute
12895
 
  # `config.status --recheck' to rerun these tests and create the
12896
 
  # libtool script then.
12897
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12898
 
  if test -f "$ltmain_in"; then
12899
 
    test -f Makefile && make "$ltmain"
12900
 
  fi
12901
 
fi
12902
 
 
12903
 
 
12904
 
ac_ext=c
12905
 
ac_cpp='$CPP $CPPFLAGS'
12906
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12909
 
 
12910
 
CC=$lt_save_CC
12911
 
LDCXX=$LD
12912
 
LD=$lt_save_LD
12913
 
GCC=$lt_save_GCC
12914
 
with_gnu_ldcxx=$with_gnu_ld
12915
 
with_gnu_ld=$lt_save_with_gnu_ld
12916
 
lt_cv_path_LDCXX=$lt_cv_path_LD
12917
 
lt_cv_path_LD=$lt_save_path_LD
12918
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12919
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12920
 
 
12921
 
        else
12922
 
          tagname=""
12923
 
        fi
12924
 
        ;;
12925
 
 
12926
 
      F77)
12927
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
12928
 
 
12929
 
ac_ext=f
12930
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12931
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12933
 
 
12934
 
 
12935
 
archive_cmds_need_lc_F77=no
12936
 
allow_undefined_flag_F77=
12937
 
always_export_symbols_F77=no
12938
 
archive_expsym_cmds_F77=
12939
 
export_dynamic_flag_spec_F77=
12940
 
hardcode_direct_F77=no
12941
 
hardcode_libdir_flag_spec_F77=
12942
 
hardcode_libdir_flag_spec_ld_F77=
12943
 
hardcode_libdir_separator_F77=
12944
 
hardcode_minus_L_F77=no
12945
 
hardcode_automatic_F77=no
12946
 
module_cmds_F77=
12947
 
module_expsym_cmds_F77=
12948
 
link_all_deplibs_F77=unknown
12949
 
old_archive_cmds_F77=$old_archive_cmds
12950
 
no_undefined_flag_F77=
12951
 
whole_archive_flag_spec_F77=
12952
 
enable_shared_with_static_runtimes_F77=no
12953
 
 
12954
 
# Source file extension for f77 test sources.
12955
 
ac_ext=f
12956
 
 
12957
 
# Object file extension for compiled f77 test sources.
12958
 
objext=o
12959
 
objext_F77=$objext
12960
 
 
12961
 
# Code to be used in simple compile tests
12962
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12963
 
 
12964
 
# Code to be used in simple link tests
12965
 
lt_simple_link_test_code="      program t\n      end\n"
12966
 
 
12967
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12968
 
 
12969
 
# If no C compiler was specified, use CC.
12970
 
LTCC=${LTCC-"$CC"}
12971
 
 
12972
 
# Allow CC to be a program name with arguments.
12973
 
compiler=$CC
12974
 
 
12975
 
 
12976
 
# Allow CC to be a program name with arguments.
12977
 
lt_save_CC="$CC"
12978
 
CC=${F77-"f77"}
12979
 
compiler=$CC
12980
 
compiler_F77=$CC
12981
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12982
 
 
12983
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12984
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12985
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12986
 
echo "${ECHO_T}$can_build_shared" >&6
12987
 
 
12988
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12989
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12990
 
test "$can_build_shared" = "no" && enable_shared=no
12991
 
 
12992
 
# On AIX, shared libraries and static libraries use the same namespace, and
12993
 
# are all built from PIC.
12994
 
case "$host_os" in
12995
 
aix3*)
12996
 
  test "$enable_shared" = yes && enable_static=no
12997
 
  if test -n "$RANLIB"; then
12998
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12999
 
    postinstall_cmds='$RANLIB $lib'
13000
 
  fi
13001
 
  ;;
13002
 
aix4*)
13003
 
  test "$enable_shared" = yes && enable_static=no
13004
 
  ;;
13005
 
esac
13006
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13007
 
echo "${ECHO_T}$enable_shared" >&6
13008
 
 
13009
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13010
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13011
 
# Make sure either enable_shared or enable_static is yes.
13012
 
test "$enable_shared" = yes || enable_static=yes
13013
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13014
 
echo "${ECHO_T}$enable_static" >&6
13015
 
 
13016
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13017
 
 
13018
 
GCC_F77="$G77"
13019
 
LD_F77="$LD"
13020
 
 
13021
 
lt_prog_compiler_wl_F77=
13022
 
lt_prog_compiler_pic_F77=
13023
 
lt_prog_compiler_static_F77=
13024
 
 
13025
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13026
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13027
 
 
13028
 
  if test "$GCC" = yes; then
13029
 
    lt_prog_compiler_wl_F77='-Wl,'
13030
 
    lt_prog_compiler_static_F77='-static'
13031
 
 
13032
 
    case $host_os in
13033
 
      aix*)
13034
 
      # All AIX code is PIC.
13035
 
      if test "$host_cpu" = ia64; then
13036
 
        # AIX 5 now supports IA64 processor
13037
 
        lt_prog_compiler_static_F77='-Bstatic'
13038
 
      fi
13039
 
      ;;
13040
 
 
13041
 
    amigaos*)
13042
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13043
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13044
 
      # like `-m68040'.
13045
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13046
 
      ;;
13047
 
 
13048
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13049
 
      # PIC is the default for these OSes.
13050
 
      ;;
13051
 
 
13052
 
    mingw* | pw32* | os2*)
13053
 
      # This hack is so that the source file can tell whether it is being
13054
 
      # built for inclusion in a dll (and should export symbols for example).
13055
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13056
 
      ;;
13057
 
 
13058
 
    darwin* | rhapsody*)
13059
 
      # PIC is the default on this platform
13060
 
      # Common symbols not allowed in MH_DYLIB files
13061
 
      lt_prog_compiler_pic_F77='-fno-common'
13062
 
      ;;
13063
 
 
13064
 
    msdosdjgpp*)
13065
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13066
 
      # on systems that don't support them.
13067
 
      lt_prog_compiler_can_build_shared_F77=no
13068
 
      enable_shared=no
13069
 
      ;;
13070
 
 
13071
 
    sysv4*MP*)
13072
 
      if test -d /usr/nec; then
13073
 
        lt_prog_compiler_pic_F77=-Kconform_pic
13074
 
      fi
13075
 
      ;;
13076
 
 
13077
 
    hpux*)
13078
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13079
 
      # not for PA HP-UX.
13080
 
      case "$host_cpu" in
13081
 
      hppa*64*|ia64*)
13082
 
        # +Z the default
13083
 
        ;;
13084
 
      *)
13085
 
        lt_prog_compiler_pic_F77='-fPIC'
13086
 
        ;;
13087
 
      esac
13088
 
      ;;
13089
 
 
13090
 
    *)
13091
 
      lt_prog_compiler_pic_F77='-fPIC'
13092
 
      ;;
13093
 
    esac
13094
 
  else
13095
 
    # PORTME Check for flag to pass linker flags through the system compiler.
13096
 
    case $host_os in
13097
 
    aix*)
13098
 
      lt_prog_compiler_wl_F77='-Wl,'
13099
 
      if test "$host_cpu" = ia64; then
13100
 
        # AIX 5 now supports IA64 processor
13101
 
        lt_prog_compiler_static_F77='-Bstatic'
13102
 
      else
13103
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13104
 
      fi
13105
 
      ;;
13106
 
 
13107
 
    mingw* | pw32* | os2*)
13108
 
      # This hack is so that the source file can tell whether it is being
13109
 
      # built for inclusion in a dll (and should export symbols for example).
13110
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13111
 
      ;;
13112
 
 
13113
 
    hpux9* | hpux10* | hpux11*)
13114
 
      lt_prog_compiler_wl_F77='-Wl,'
13115
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13116
 
      # not for PA HP-UX.
13117
 
      case "$host_cpu" in
13118
 
      hppa*64*|ia64*)
13119
 
        # +Z the default
13120
 
        ;;
13121
 
      *)
13122
 
        lt_prog_compiler_pic_F77='+Z'
13123
 
        ;;
13124
 
      esac
13125
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13126
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13127
 
      ;;
13128
 
 
13129
 
    irix5* | irix6* | nonstopux*)
13130
 
      lt_prog_compiler_wl_F77='-Wl,'
13131
 
      # PIC (with -KPIC) is the default.
13132
 
      lt_prog_compiler_static_F77='-non_shared'
13133
 
      ;;
13134
 
 
13135
 
    newsos6)
13136
 
      lt_prog_compiler_pic_F77='-KPIC'
13137
 
      lt_prog_compiler_static_F77='-Bstatic'
13138
 
      ;;
13139
 
 
13140
 
    linux*)
13141
 
      case $CC in
13142
 
      icc* | ecc*)
13143
 
        lt_prog_compiler_wl_F77='-Wl,'
13144
 
        lt_prog_compiler_pic_F77='-KPIC'
13145
 
        lt_prog_compiler_static_F77='-static'
13146
 
        ;;
13147
 
      ccc*)
13148
 
        lt_prog_compiler_wl_F77='-Wl,'
13149
 
        # All Alpha code is PIC.
13150
 
        lt_prog_compiler_static_F77='-non_shared'
13151
 
        ;;
13152
 
      esac
13153
 
      ;;
13154
 
 
13155
 
    osf3* | osf4* | osf5*)
13156
 
      lt_prog_compiler_wl_F77='-Wl,'
13157
 
      # All OSF/1 code is PIC.
13158
 
      lt_prog_compiler_static_F77='-non_shared'
13159
 
      ;;
13160
 
 
13161
 
    sco3.2v5*)
13162
 
      lt_prog_compiler_pic_F77='-Kpic'
13163
 
      lt_prog_compiler_static_F77='-dn'
13164
 
      ;;
13165
 
 
13166
 
    solaris*)
13167
 
      lt_prog_compiler_wl_F77='-Wl,'
13168
 
      lt_prog_compiler_pic_F77='-KPIC'
13169
 
      lt_prog_compiler_static_F77='-Bstatic'
13170
 
      ;;
13171
 
 
13172
 
    sunos4*)
13173
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13174
 
      lt_prog_compiler_pic_F77='-PIC'
13175
 
      lt_prog_compiler_static_F77='-Bstatic'
13176
 
      ;;
13177
 
 
13178
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13179
 
      lt_prog_compiler_wl_F77='-Wl,'
13180
 
      lt_prog_compiler_pic_F77='-KPIC'
13181
 
      lt_prog_compiler_static_F77='-Bstatic'
13182
 
      ;;
13183
 
 
13184
 
    sysv4*MP*)
13185
 
      if test -d /usr/nec ;then
13186
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13187
 
        lt_prog_compiler_static_F77='-Bstatic'
13188
 
      fi
13189
 
      ;;
13190
 
 
13191
 
    uts4*)
13192
 
      lt_prog_compiler_pic_F77='-pic'
13193
 
      lt_prog_compiler_static_F77='-Bstatic'
13194
 
      ;;
13195
 
 
13196
 
    *)
13197
 
      lt_prog_compiler_can_build_shared_F77=no
13198
 
      ;;
13199
 
    esac
13200
 
  fi
13201
 
 
13202
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13203
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13204
 
 
13205
 
#
13206
 
# Check to make sure the PIC flag actually works.
13207
 
#
13208
 
if test -n "$lt_prog_compiler_pic_F77"; then
13209
 
 
13210
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13211
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13212
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13214
 
else
13215
 
  lt_prog_compiler_pic_works_F77=no
13216
 
  ac_outfile=conftest.$ac_objext
13217
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13218
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13219
 
   # Insert the option either (1) after the last *FLAGS variable, or
13220
 
   # (2) before a word containing "conftest.", or (3) at the end.
13221
 
   # Note that $ac_compile itself does not contain backslashes and begins
13222
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13223
 
   # The option is referenced via a variable to avoid confusing sed.
13224
 
   lt_compile=`echo "$ac_compile" | $SED \
13225
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13226
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13227
 
   -e 's:$: $lt_compiler_flag:'`
13228
 
   (eval echo "\"\$as_me:13228: $lt_compile\"" >&5)
13229
 
   (eval "$lt_compile" 2>conftest.err)
13230
 
   ac_status=$?
13231
 
   cat conftest.err >&5
13232
 
   echo "$as_me:13232: \$? = $ac_status" >&5
13233
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13234
 
     # The compiler can only warn and ignore the option if not recognized
13235
 
     # So say no if there are warnings
13236
 
     if test ! -s conftest.err; then
13237
 
       lt_prog_compiler_pic_works_F77=yes
13238
 
     fi
13239
 
   fi
13240
 
   $rm conftest*
13241
 
 
13242
 
fi
13243
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13244
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13245
 
 
13246
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13247
 
    case $lt_prog_compiler_pic_F77 in
13248
 
     "" | " "*) ;;
13249
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13250
 
     esac
13251
 
else
13252
 
    lt_prog_compiler_pic_F77=
13253
 
     lt_prog_compiler_can_build_shared_F77=no
13254
 
fi
13255
 
 
13256
 
fi
13257
 
case "$host_os" in
13258
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13259
 
  *djgpp*)
13260
 
    lt_prog_compiler_pic_F77=
13261
 
    ;;
13262
 
  *)
13263
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13264
 
    ;;
13265
 
esac
13266
 
 
13267
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13268
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13269
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13270
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13271
 
else
13272
 
  lt_cv_prog_compiler_c_o_F77=no
13273
 
   $rm -r conftest 2>/dev/null
13274
 
   mkdir conftest
13275
 
   cd conftest
13276
 
   mkdir out
13277
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13278
 
 
13279
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13280
 
   # Insert the option either (1) after the last *FLAGS variable, or
13281
 
   # (2) before a word containing "conftest.", or (3) at the end.
13282
 
   # Note that $ac_compile itself does not contain backslashes and begins
13283
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13284
 
   lt_compile=`echo "$ac_compile" | $SED \
13285
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13286
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13287
 
   -e 's:$: $lt_compiler_flag:'`
13288
 
   (eval echo "\"\$as_me:13288: $lt_compile\"" >&5)
13289
 
   (eval "$lt_compile" 2>out/conftest.err)
13290
 
   ac_status=$?
13291
 
   cat out/conftest.err >&5
13292
 
   echo "$as_me:13292: \$? = $ac_status" >&5
13293
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13294
 
   then
13295
 
     # The compiler can only warn and ignore the option if not recognized
13296
 
     # So say no if there are warnings
13297
 
     if test ! -s out/conftest.err; then
13298
 
       lt_cv_prog_compiler_c_o_F77=yes
13299
 
     fi
13300
 
   fi
13301
 
   chmod u+w .
13302
 
   $rm conftest*
13303
 
   # SGI C++ compiler will create directory out/ii_files/ for
13304
 
   # template instantiation
13305
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13306
 
   $rm out/* && rmdir out
13307
 
   cd ..
13308
 
   rmdir conftest
13309
 
   $rm conftest*
13310
 
 
13311
 
fi
13312
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13313
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13314
 
 
13315
 
 
13316
 
hard_links="nottested"
13317
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13318
 
  # do not overwrite the value of need_locks provided by the user
13319
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13320
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13321
 
  hard_links=yes
13322
 
  $rm conftest*
13323
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13324
 
  touch conftest.a
13325
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13326
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13328
 
echo "${ECHO_T}$hard_links" >&6
13329
 
  if test "$hard_links" = no; then
13330
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13331
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13332
 
    need_locks=warn
13333
 
  fi
13334
 
else
13335
 
  need_locks=no
13336
 
fi
13337
 
 
13338
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13339
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13340
 
 
13341
 
  runpath_var=
13342
 
  allow_undefined_flag_F77=
13343
 
  enable_shared_with_static_runtimes_F77=no
13344
 
  archive_cmds_F77=
13345
 
  archive_expsym_cmds_F77=
13346
 
  old_archive_From_new_cmds_F77=
13347
 
  old_archive_from_expsyms_cmds_F77=
13348
 
  export_dynamic_flag_spec_F77=
13349
 
  whole_archive_flag_spec_F77=
13350
 
  thread_safe_flag_spec_F77=
13351
 
  hardcode_libdir_flag_spec_F77=
13352
 
  hardcode_libdir_flag_spec_ld_F77=
13353
 
  hardcode_libdir_separator_F77=
13354
 
  hardcode_direct_F77=no
13355
 
  hardcode_minus_L_F77=no
13356
 
  hardcode_shlibpath_var_F77=unsupported
13357
 
  link_all_deplibs_F77=unknown
13358
 
  hardcode_automatic_F77=no
13359
 
  module_cmds_F77=
13360
 
  module_expsym_cmds_F77=
13361
 
  always_export_symbols_F77=no
13362
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13363
 
  # include_expsyms should be a list of space-separated symbols to be *always*
13364
 
  # included in the symbol list
13365
 
  include_expsyms_F77=
13366
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
13367
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13368
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13369
 
  # as well as any symbol that contains `d'.
13370
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13371
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13372
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
13373
 
  # the symbol is explicitly referenced.  Since portable code cannot
13374
 
  # rely on this symbol name, it's probably fine to never include it in
13375
 
  # preloaded symbol tables.
13376
 
  extract_expsyms_cmds=
13377
 
 
13378
 
  case $host_os in
13379
 
  cygwin* | mingw* | pw32*)
13380
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13381
 
    # When not using gcc, we currently assume that we are using
13382
 
    # Microsoft Visual C++.
13383
 
    if test "$GCC" != yes; then
13384
 
      with_gnu_ld=no
13385
 
    fi
13386
 
    ;;
13387
 
  openbsd*)
13388
 
    with_gnu_ld=no
13389
 
    ;;
13390
 
  esac
13391
 
 
13392
 
  ld_shlibs_F77=yes
13393
 
  if test "$with_gnu_ld" = yes; then
13394
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
13395
 
    wlarc='${wl}'
13396
 
 
13397
 
    # See if GNU ld supports shared libraries.
13398
 
    case $host_os in
13399
 
    aix3* | aix4* | aix5*)
13400
 
      # On AIX/PPC, the GNU linker is very broken
13401
 
      if test "$host_cpu" != ia64; then
13402
 
        ld_shlibs_F77=no
13403
 
        cat <<EOF 1>&2
13404
 
 
13405
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13406
 
*** to be unable to reliably create shared libraries on AIX.
13407
 
*** Therefore, libtool is disabling shared libraries support.  If you
13408
 
*** really care for shared libraries, you may want to modify your PATH
13409
 
*** so that a non-GNU linker is found, and then restart.
13410
 
 
13411
 
EOF
13412
 
      fi
13413
 
      ;;
13414
 
 
13415
 
    amigaos*)
13416
 
      archive_cmds_F77='$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)'
13417
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13418
 
      hardcode_minus_L_F77=yes
13419
 
 
13420
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13421
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
13422
 
      # to version 4, is to share data among multiple programs linked
13423
 
      # with the same dynamic library.  Since this doesn't match the
13424
 
      # behavior of shared libraries on other platforms, we can't use
13425
 
      # them.
13426
 
      ld_shlibs_F77=no
13427
 
      ;;
13428
 
 
13429
 
    beos*)
13430
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13431
 
        allow_undefined_flag_F77=unsupported
13432
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13433
 
        # support --undefined.  This deserves some investigation.  FIXME
13434
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13435
 
      else
13436
 
        ld_shlibs_F77=no
13437
 
      fi
13438
 
      ;;
13439
 
 
13440
 
    cygwin* | mingw* | pw32*)
13441
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13442
 
      # as there is no search path for DLLs.
13443
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13444
 
      allow_undefined_flag_F77=unsupported
13445
 
      always_export_symbols_F77=no
13446
 
      enable_shared_with_static_runtimes_F77=yes
13447
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13448
 
 
13449
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13450
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13451
 
        # If the export-symbols file already is a .def file (1st line
13452
 
        # is EXPORTS), use it as is; otherwise, prepend...
13453
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13454
 
          cp $export_symbols $output_objdir/$soname.def;
13455
 
        else
13456
 
          echo EXPORTS > $output_objdir/$soname.def;
13457
 
          cat $export_symbols >> $output_objdir/$soname.def;
13458
 
        fi~
13459
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13460
 
      else
13461
 
        ld_shlibs=no
13462
 
      fi
13463
 
      ;;
13464
 
 
13465
 
    netbsd* | knetbsd*-gnu)
13466
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13467
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13468
 
        wlarc=
13469
 
      else
13470
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13472
 
      fi
13473
 
      ;;
13474
 
 
13475
 
    solaris* | sysv5*)
13476
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13477
 
        ld_shlibs_F77=no
13478
 
        cat <<EOF 1>&2
13479
 
 
13480
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13481
 
*** create shared libraries on Solaris systems.  Therefore, libtool
13482
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13483
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
13484
 
*** your PATH or compiler configuration so that the native linker is
13485
 
*** used, and then restart.
13486
 
 
13487
 
EOF
13488
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13489
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13491
 
      else
13492
 
        ld_shlibs_F77=no
13493
 
      fi
13494
 
      ;;
13495
 
 
13496
 
    sunos4*)
13497
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13498
 
      wlarc=
13499
 
      hardcode_direct_F77=yes
13500
 
      hardcode_shlibpath_var_F77=no
13501
 
      ;;
13502
 
 
13503
 
  linux*)
13504
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13505
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13506
 
        archive_cmds_F77="$tmp_archive_cmds"
13507
 
      supports_anon_versioning=no
13508
 
      case `$LD -v 2>/dev/null` in
13509
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13510
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13511
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13512
 
        *\ 2.11.*) ;; # other 2.11 versions
13513
 
        *) supports_anon_versioning=yes ;;
13514
 
      esac
13515
 
      if test $supports_anon_versioning = yes; then
13516
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13517
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13518
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13519
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520
 
      else
13521
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13522
 
      fi
13523
 
    else
13524
 
      ld_shlibs_F77=no
13525
 
    fi
13526
 
    ;;
13527
 
 
13528
 
    *)
13529
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13532
 
      else
13533
 
        ld_shlibs_F77=no
13534
 
      fi
13535
 
      ;;
13536
 
    esac
13537
 
 
13538
 
    if test "$ld_shlibs_F77" = yes; then
13539
 
      runpath_var=LD_RUN_PATH
13540
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542
 
      # ancient GNU ld didn't support --whole-archive et. al.
13543
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13545
 
      else
13546
 
        whole_archive_flag_spec_F77=
13547
 
      fi
13548
 
    fi
13549
 
  else
13550
 
    # PORTME fill in a description of your system's linker (not GNU ld)
13551
 
    case $host_os in
13552
 
    aix3*)
13553
 
      allow_undefined_flag_F77=unsupported
13554
 
      always_export_symbols_F77=yes
13555
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13556
 
      # Note: this linker hardcodes the directories in LIBPATH if there
13557
 
      # are no directories specified by -L.
13558
 
      hardcode_minus_L_F77=yes
13559
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
13560
 
        # Neither direct hardcoding nor static linking is supported with a
13561
 
        # broken collect2.
13562
 
        hardcode_direct_F77=unsupported
13563
 
      fi
13564
 
      ;;
13565
 
 
13566
 
    aix4* | aix5*)
13567
 
      if test "$host_cpu" = ia64; then
13568
 
        # On IA64, the linker does run time linking by default, so we don't
13569
 
        # have to do anything special.
13570
 
        aix_use_runtimelinking=no
13571
 
        exp_sym_flag='-Bexport'
13572
 
        no_entry_flag=""
13573
 
      else
13574
 
        # If we're using GNU nm, then we don't want the "-C" option.
13575
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13578
 
        else
13579
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13580
 
        fi
13581
 
        aix_use_runtimelinking=no
13582
 
 
13583
 
        # Test if we are trying to use run time linking or normal
13584
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585
 
        # need to do runtime linking.
13586
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587
 
          for ld_flag in $LDFLAGS; do
13588
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589
 
            aix_use_runtimelinking=yes
13590
 
            break
13591
 
          fi
13592
 
          done
13593
 
        esac
13594
 
 
13595
 
        exp_sym_flag='-bexport'
13596
 
        no_entry_flag='-bnoentry'
13597
 
      fi
13598
 
 
13599
 
      # When large executables or shared objects are built, AIX ld can
13600
 
      # have problems creating the table of contents.  If linking a library
13601
 
      # or program results in "error TOC overflow" add -mminimal-toc to
13602
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13603
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13604
 
 
13605
 
      archive_cmds_F77=''
13606
 
      hardcode_direct_F77=yes
13607
 
      hardcode_libdir_separator_F77=':'
13608
 
      link_all_deplibs_F77=yes
13609
 
 
13610
 
      if test "$GCC" = yes; then
13611
 
        case $host_os in aix4.012|aix4.012.*)
13612
 
        # We only want to do this on AIX 4.2 and lower, the check
13613
 
        # below for broken collect2 doesn't work under 4.3+
13614
 
          collect2name=`${CC} -print-prog-name=collect2`
13615
 
          if test -f "$collect2name" && \
13616
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13617
 
          then
13618
 
          # We have reworked collect2
13619
 
          hardcode_direct_F77=yes
13620
 
          else
13621
 
          # We have old collect2
13622
 
          hardcode_direct_F77=unsupported
13623
 
          # It fails to find uninstalled libraries when the uninstalled
13624
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
13625
 
          # to unsupported forces relinking
13626
 
          hardcode_minus_L_F77=yes
13627
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13628
 
          hardcode_libdir_separator_F77=
13629
 
          fi
13630
 
        esac
13631
 
        shared_flag='-shared'
13632
 
      else
13633
 
        # not using gcc
13634
 
        if test "$host_cpu" = ia64; then
13635
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636
 
        # chokes on -Wl,-G. The following line is correct:
13637
 
          shared_flag='-G'
13638
 
        else
13639
 
        if test "$aix_use_runtimelinking" = yes; then
13640
 
            shared_flag='${wl}-G'
13641
 
          else
13642
 
            shared_flag='${wl}-bM:SRE'
13643
 
        fi
13644
 
        fi
13645
 
      fi
13646
 
 
13647
 
      # It seems that -bexpall does not export symbols beginning with
13648
 
      # underscore (_), so it is better to generate a list of symbols to export.
13649
 
      always_export_symbols_F77=yes
13650
 
      if test "$aix_use_runtimelinking" = yes; then
13651
 
        # Warning - without using the other runtime loading flags (-brtl),
13652
 
        # -berok will link without error, but may produce a broken library.
13653
 
        allow_undefined_flag_F77='-berok'
13654
 
       # Determine the default libpath from the value encoded in an empty executable.
13655
 
       cat >conftest.$ac_ext <<_ACEOF
13656
 
      program main
13657
 
 
13658
 
      end
13659
 
_ACEOF
13660
 
rm -f conftest.$ac_objext conftest$ac_exeext
13661
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662
 
  (eval $ac_link) 2>conftest.er1
13663
 
  ac_status=$?
13664
 
  grep -v '^ *+' conftest.er1 >conftest.err
13665
 
  rm -f conftest.er1
13666
 
  cat conftest.err >&5
13667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668
 
  (exit $ac_status); } &&
13669
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671
 
  (eval $ac_try) 2>&5
13672
 
  ac_status=$?
13673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674
 
  (exit $ac_status); }; } &&
13675
 
         { ac_try='test -s conftest$ac_exeext'
13676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677
 
  (eval $ac_try) 2>&5
13678
 
  ac_status=$?
13679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680
 
  (exit $ac_status); }; }; then
13681
 
 
13682
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13683
 
}'`
13684
 
# Check for a 64-bit object if we didn't find anything.
13685
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13686
 
}'`; fi
13687
 
else
13688
 
  echo "$as_me: failed program was:" >&5
13689
 
sed 's/^/| /' conftest.$ac_ext >&5
13690
 
 
13691
 
fi
13692
 
rm -f conftest.err conftest.$ac_objext \
13693
 
      conftest$ac_exeext conftest.$ac_ext
13694
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13695
 
 
13696
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13697
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13698
 
       else
13699
 
        if test "$host_cpu" = ia64; then
13700
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13701
 
          allow_undefined_flag_F77="-z nodefs"
13702
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13703
 
        else
13704
 
         # Determine the default libpath from the value encoded in an empty executable.
13705
 
         cat >conftest.$ac_ext <<_ACEOF
13706
 
      program main
13707
 
 
13708
 
      end
13709
 
_ACEOF
13710
 
rm -f conftest.$ac_objext conftest$ac_exeext
13711
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712
 
  (eval $ac_link) 2>conftest.er1
13713
 
  ac_status=$?
13714
 
  grep -v '^ *+' conftest.er1 >conftest.err
13715
 
  rm -f conftest.er1
13716
 
  cat conftest.err >&5
13717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
 
  (exit $ac_status); } &&
13719
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13720
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721
 
  (eval $ac_try) 2>&5
13722
 
  ac_status=$?
13723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724
 
  (exit $ac_status); }; } &&
13725
 
         { ac_try='test -s conftest$ac_exeext'
13726
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727
 
  (eval $ac_try) 2>&5
13728
 
  ac_status=$?
13729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730
 
  (exit $ac_status); }; }; then
13731
 
 
13732
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13733
 
}'`
13734
 
# Check for a 64-bit object if we didn't find anything.
13735
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13736
 
}'`; fi
13737
 
else
13738
 
  echo "$as_me: failed program was:" >&5
13739
 
sed 's/^/| /' conftest.$ac_ext >&5
13740
 
 
13741
 
fi
13742
 
rm -f conftest.err conftest.$ac_objext \
13743
 
      conftest$ac_exeext conftest.$ac_ext
13744
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13745
 
 
13746
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13747
 
          # Warning - without using the other run time loading flags,
13748
 
          # -berok will link without error, but may produce a broken library.
13749
 
          no_undefined_flag_F77=' ${wl}-bernotok'
13750
 
          allow_undefined_flag_F77=' ${wl}-berok'
13751
 
          # -bexpall does not export symbols beginning with underscore (_)
13752
 
          always_export_symbols_F77=yes
13753
 
          # Exported symbols can be pulled into shared objects from archives
13754
 
          whole_archive_flag_spec_F77=' '
13755
 
          archive_cmds_need_lc_F77=yes
13756
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13757
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13758
 
        fi
13759
 
      fi
13760
 
      ;;
13761
 
 
13762
 
    amigaos*)
13763
 
      archive_cmds_F77='$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)'
13764
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13765
 
      hardcode_minus_L_F77=yes
13766
 
      # see comment about different semantics on the GNU ld section
13767
 
      ld_shlibs_F77=no
13768
 
      ;;
13769
 
 
13770
 
    bsdi4*)
13771
 
      export_dynamic_flag_spec_F77=-rdynamic
13772
 
      ;;
13773
 
 
13774
 
    cygwin* | mingw* | pw32*)
13775
 
      # When not using gcc, we currently assume that we are using
13776
 
      # Microsoft Visual C++.
13777
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13778
 
      # no search path for DLLs.
13779
 
      hardcode_libdir_flag_spec_F77=' '
13780
 
      allow_undefined_flag_F77=unsupported
13781
 
      # Tell ltmain to make .lib files, not .a files.
13782
 
      libext=lib
13783
 
      # Tell ltmain to make .dll files, not .so files.
13784
 
      shrext=".dll"
13785
 
      # FIXME: Setting linknames here is a bad hack.
13786
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13787
 
      # The linker will automatically build a .lib file if we build a DLL.
13788
 
      old_archive_From_new_cmds_F77='true'
13789
 
      # FIXME: Should let the user specify the lib program.
13790
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13791
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
13792
 
      enable_shared_with_static_runtimes_F77=yes
13793
 
      ;;
13794
 
 
13795
 
    darwin* | rhapsody*)
13796
 
    if test "$GXX" = yes ; then
13797
 
      archive_cmds_need_lc_F77=no
13798
 
      case "$host_os" in
13799
 
      rhapsody* | darwin1.[012])
13800
 
        allow_undefined_flag_F77='-undefined suppress'
13801
 
        ;;
13802
 
      *) # Darwin 1.3 on
13803
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13804
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13805
 
      else
13806
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13807
 
          10.[012])
13808
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13809
 
            ;;
13810
 
          10.*)
13811
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13812
 
            ;;
13813
 
        esac
13814
 
      fi
13815
 
        ;;
13816
 
      esac
13817
 
        lt_int_apple_cc_single_mod=no
13818
 
        output_verbose_link_cmd='echo'
13819
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13820
 
          lt_int_apple_cc_single_mod=yes
13821
 
        fi
13822
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13823
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13824
 
        else
13825
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13826
 
      fi
13827
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13828
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13829
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13830
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13831
 
        else
13832
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13833
 
        fi
13834
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13835
 
      hardcode_direct_F77=no
13836
 
      hardcode_automatic_F77=yes
13837
 
      hardcode_shlibpath_var_F77=unsupported
13838
 
      whole_archive_flag_spec_F77='-all_load $convenience'
13839
 
      link_all_deplibs_F77=yes
13840
 
    else
13841
 
      ld_shlibs_F77=no
13842
 
    fi
13843
 
      ;;
13844
 
 
13845
 
    dgux*)
13846
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13848
 
      hardcode_shlibpath_var_F77=no
13849
 
      ;;
13850
 
 
13851
 
    freebsd1*)
13852
 
      ld_shlibs_F77=no
13853
 
      ;;
13854
 
 
13855
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13856
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13857
 
    # does not break anything, and helps significantly (at the cost of a little
13858
 
    # extra space).
13859
 
    freebsd2.2*)
13860
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13861
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13862
 
      hardcode_direct_F77=yes
13863
 
      hardcode_shlibpath_var_F77=no
13864
 
      ;;
13865
 
 
13866
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13867
 
    freebsd2*)
13868
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13869
 
      hardcode_direct_F77=yes
13870
 
      hardcode_minus_L_F77=yes
13871
 
      hardcode_shlibpath_var_F77=no
13872
 
      ;;
13873
 
 
13874
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13875
 
    freebsd* | kfreebsd*-gnu)
13876
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13877
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13878
 
      hardcode_direct_F77=yes
13879
 
      hardcode_shlibpath_var_F77=no
13880
 
      ;;
13881
 
 
13882
 
    hpux9*)
13883
 
      if test "$GCC" = yes; then
13884
 
        archive_cmds_F77='$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'
13885
 
      else
13886
 
        archive_cmds_F77='$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'
13887
 
      fi
13888
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13889
 
      hardcode_libdir_separator_F77=:
13890
 
      hardcode_direct_F77=yes
13891
 
 
13892
 
      # hardcode_minus_L: Not really in the search PATH,
13893
 
      # but as the default location of the library.
13894
 
      hardcode_minus_L_F77=yes
13895
 
      export_dynamic_flag_spec_F77='${wl}-E'
13896
 
      ;;
13897
 
 
13898
 
    hpux10* | hpux11*)
13899
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13900
 
        case "$host_cpu" in
13901
 
        hppa*64*|ia64*)
13902
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13903
 
          ;;
13904
 
        *)
13905
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13906
 
          ;;
13907
 
        esac
13908
 
      else
13909
 
        case "$host_cpu" in
13910
 
        hppa*64*|ia64*)
13911
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13912
 
          ;;
13913
 
        *)
13914
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13915
 
          ;;
13916
 
        esac
13917
 
      fi
13918
 
      if test "$with_gnu_ld" = no; then
13919
 
        case "$host_cpu" in
13920
 
        hppa*64*)
13921
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13922
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13923
 
          hardcode_libdir_separator_F77=:
13924
 
          hardcode_direct_F77=no
13925
 
          hardcode_shlibpath_var_F77=no
13926
 
          ;;
13927
 
        ia64*)
13928
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13929
 
          hardcode_direct_F77=no
13930
 
          hardcode_shlibpath_var_F77=no
13931
 
 
13932
 
          # hardcode_minus_L: Not really in the search PATH,
13933
 
          # but as the default location of the library.
13934
 
          hardcode_minus_L_F77=yes
13935
 
          ;;
13936
 
        *)
13937
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13938
 
          hardcode_libdir_separator_F77=:
13939
 
          hardcode_direct_F77=yes
13940
 
          export_dynamic_flag_spec_F77='${wl}-E'
13941
 
 
13942
 
          # hardcode_minus_L: Not really in the search PATH,
13943
 
          # but as the default location of the library.
13944
 
          hardcode_minus_L_F77=yes
13945
 
          ;;
13946
 
        esac
13947
 
      fi
13948
 
      ;;
13949
 
 
13950
 
    irix5* | irix6* | nonstopux*)
13951
 
      if test "$GCC" = yes; then
13952
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13953
 
      else
13954
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13955
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13956
 
      fi
13957
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13958
 
      hardcode_libdir_separator_F77=:
13959
 
      link_all_deplibs_F77=yes
13960
 
      ;;
13961
 
 
13962
 
    netbsd* | knetbsd*-gnu)
13963
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13964
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13965
 
      else
13966
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13967
 
      fi
13968
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13969
 
      hardcode_direct_F77=yes
13970
 
      hardcode_shlibpath_var_F77=no
13971
 
      ;;
13972
 
 
13973
 
    newsos6)
13974
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13975
 
      hardcode_direct_F77=yes
13976
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13977
 
      hardcode_libdir_separator_F77=:
13978
 
      hardcode_shlibpath_var_F77=no
13979
 
      ;;
13980
 
 
13981
 
    openbsd*)
13982
 
      hardcode_direct_F77=yes
13983
 
      hardcode_shlibpath_var_F77=no
13984
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13985
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13986
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13987
 
        export_dynamic_flag_spec_F77='${wl}-E'
13988
 
      else
13989
 
       case $host_os in
13990
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13991
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13992
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
13993
 
           ;;
13994
 
         *)
13995
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13996
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13997
 
           ;;
13998
 
       esac
13999
 
      fi
14000
 
      ;;
14001
 
 
14002
 
    os2*)
14003
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14004
 
      hardcode_minus_L_F77=yes
14005
 
      allow_undefined_flag_F77=unsupported
14006
 
      archive_cmds_F77='$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'
14007
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14008
 
      ;;
14009
 
 
14010
 
    osf3*)
14011
 
      if test "$GCC" = yes; then
14012
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14013
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14014
 
      else
14015
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14016
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14017
 
      fi
14018
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14019
 
      hardcode_libdir_separator_F77=:
14020
 
      ;;
14021
 
 
14022
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14023
 
      if test "$GCC" = yes; then
14024
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14025
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14026
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14027
 
      else
14028
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14029
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14030
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14031
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14032
 
 
14033
 
        # Both c and cxx compiler support -rpath directly
14034
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14035
 
      fi
14036
 
      hardcode_libdir_separator_F77=:
14037
 
      ;;
14038
 
 
14039
 
    sco3.2v5*)
14040
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041
 
      hardcode_shlibpath_var_F77=no
14042
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14043
 
      runpath_var=LD_RUN_PATH
14044
 
      hardcode_runpath_var=yes
14045
 
      ;;
14046
 
 
14047
 
    solaris*)
14048
 
      no_undefined_flag_F77=' -z text'
14049
 
      if test "$GCC" = yes; then
14050
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14051
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14052
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14053
 
      else
14054
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14055
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14056
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14057
 
      fi
14058
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14059
 
      hardcode_shlibpath_var_F77=no
14060
 
      case $host_os in
14061
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14062
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14063
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14064
 
      esac
14065
 
      link_all_deplibs_F77=yes
14066
 
      ;;
14067
 
 
14068
 
    sunos4*)
14069
 
      if test "x$host_vendor" = xsequent; then
14070
 
        # Use $CC to link under sequent, because it throws in some extra .o
14071
 
        # files that make .init and .fini sections work.
14072
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14073
 
      else
14074
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14075
 
      fi
14076
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14077
 
      hardcode_direct_F77=yes
14078
 
      hardcode_minus_L_F77=yes
14079
 
      hardcode_shlibpath_var_F77=no
14080
 
      ;;
14081
 
 
14082
 
    sysv4)
14083
 
      case $host_vendor in
14084
 
        sni)
14085
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14086
 
          hardcode_direct_F77=yes # is this really true???
14087
 
        ;;
14088
 
        siemens)
14089
 
          ## LD is ld it makes a PLAMLIB
14090
 
          ## CC just makes a GrossModule.
14091
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14092
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14093
 
          hardcode_direct_F77=no
14094
 
        ;;
14095
 
        motorola)
14096
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14097
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14098
 
        ;;
14099
 
      esac
14100
 
      runpath_var='LD_RUN_PATH'
14101
 
      hardcode_shlibpath_var_F77=no
14102
 
      ;;
14103
 
 
14104
 
    sysv4.3*)
14105
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106
 
      hardcode_shlibpath_var_F77=no
14107
 
      export_dynamic_flag_spec_F77='-Bexport'
14108
 
      ;;
14109
 
 
14110
 
    sysv4*MP*)
14111
 
      if test -d /usr/nec; then
14112
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113
 
        hardcode_shlibpath_var_F77=no
14114
 
        runpath_var=LD_RUN_PATH
14115
 
        hardcode_runpath_var=yes
14116
 
        ld_shlibs_F77=yes
14117
 
      fi
14118
 
      ;;
14119
 
 
14120
 
    sysv4.2uw2*)
14121
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14122
 
      hardcode_direct_F77=yes
14123
 
      hardcode_minus_L_F77=no
14124
 
      hardcode_shlibpath_var_F77=no
14125
 
      hardcode_runpath_var=yes
14126
 
      runpath_var=LD_RUN_PATH
14127
 
      ;;
14128
 
 
14129
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14130
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14131
 
      if test "$GCC" = yes; then
14132
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14133
 
      else
14134
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14135
 
      fi
14136
 
      runpath_var='LD_RUN_PATH'
14137
 
      hardcode_shlibpath_var_F77=no
14138
 
      ;;
14139
 
 
14140
 
    sysv5*)
14141
 
      no_undefined_flag_F77=' -z text'
14142
 
      # $CC -shared without GNU ld will not create a library from C++
14143
 
      # object files and a static libstdc++, better avoid it by now
14144
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14146
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14147
 
      hardcode_libdir_flag_spec_F77=
14148
 
      hardcode_shlibpath_var_F77=no
14149
 
      runpath_var='LD_RUN_PATH'
14150
 
      ;;
14151
 
 
14152
 
    uts4*)
14153
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14155
 
      hardcode_shlibpath_var_F77=no
14156
 
      ;;
14157
 
 
14158
 
    *)
14159
 
      ld_shlibs_F77=no
14160
 
      ;;
14161
 
    esac
14162
 
  fi
14163
 
 
14164
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14165
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
14166
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14167
 
 
14168
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14169
 
if test "$GCC" = yes; then
14170
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14171
 
fi
14172
 
 
14173
 
#
14174
 
# Do we need to explicitly link libc?
14175
 
#
14176
 
case "x$archive_cmds_need_lc_F77" in
14177
 
x|xyes)
14178
 
  # Assume -lc should be added
14179
 
  archive_cmds_need_lc_F77=yes
14180
 
 
14181
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14182
 
    case $archive_cmds_F77 in
14183
 
    *'~'*)
14184
 
      # FIXME: we may have to deal with multi-command sequences.
14185
 
      ;;
14186
 
    '$CC '*)
14187
 
      # Test whether the compiler implicitly links with -lc since on some
14188
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14189
 
      # to ld, don't add -lc before -lgcc.
14190
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14191
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14192
 
      $rm conftest*
14193
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194
 
 
14195
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196
 
  (eval $ac_compile) 2>&5
14197
 
  ac_status=$?
14198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199
 
  (exit $ac_status); } 2>conftest.err; then
14200
 
        soname=conftest
14201
 
        lib=conftest
14202
 
        libobjs=conftest.$ac_objext
14203
 
        deplibs=
14204
 
        wl=$lt_prog_compiler_wl_F77
14205
 
        compiler_flags=-v
14206
 
        linker_flags=-v
14207
 
        verstring=
14208
 
        output_objdir=.
14209
 
        libname=conftest
14210
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14211
 
        allow_undefined_flag_F77=
14212
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14213
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214
 
  ac_status=$?
14215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216
 
  (exit $ac_status); }
14217
 
        then
14218
 
          archive_cmds_need_lc_F77=no
14219
 
        else
14220
 
          archive_cmds_need_lc_F77=yes
14221
 
        fi
14222
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14223
 
      else
14224
 
        cat conftest.err 1>&5
14225
 
      fi
14226
 
      $rm conftest*
14227
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14228
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14229
 
      ;;
14230
 
    esac
14231
 
  fi
14232
 
  ;;
14233
 
esac
14234
 
 
14235
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14236
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14237
 
library_names_spec=
14238
 
libname_spec='lib$name'
14239
 
soname_spec=
14240
 
shrext=".so"
14241
 
postinstall_cmds=
14242
 
postuninstall_cmds=
14243
 
finish_cmds=
14244
 
finish_eval=
14245
 
shlibpath_var=
14246
 
shlibpath_overrides_runpath=unknown
14247
 
version_type=none
14248
 
dynamic_linker="$host_os ld.so"
14249
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14250
 
if test "$GCC" = yes; then
14251
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14252
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14253
 
    # if the path contains ";" then we assume it to be the separator
14254
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14255
 
    # assumed that no part of a normal pathname contains ";" but that should
14256
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14257
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258
 
  else
14259
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14260
 
  fi
14261
 
else
14262
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14263
 
fi
14264
 
need_lib_prefix=unknown
14265
 
hardcode_into_libs=no
14266
 
 
14267
 
# when you set need_version to no, make sure it does not cause -set_version
14268
 
# flags to be left without arguments
14269
 
need_version=unknown
14270
 
 
14271
 
case $host_os in
14272
 
aix3*)
14273
 
  version_type=linux
14274
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14275
 
  shlibpath_var=LIBPATH
14276
 
 
14277
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14278
 
  soname_spec='${libname}${release}${shared_ext}$major'
14279
 
  ;;
14280
 
 
14281
 
aix4* | aix5*)
14282
 
  version_type=linux
14283
 
  need_lib_prefix=no
14284
 
  need_version=no
14285
 
  hardcode_into_libs=yes
14286
 
  if test "$host_cpu" = ia64; then
14287
 
    # AIX 5 supports IA64
14288
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14289
 
    shlibpath_var=LD_LIBRARY_PATH
14290
 
  else
14291
 
    # With GCC up to 2.95.x, collect2 would create an import file
14292
 
    # for dependence libraries.  The import file would start with
14293
 
    # the line `#! .'.  This would cause the generated library to
14294
 
    # depend on `.', always an invalid library.  This was fixed in
14295
 
    # development snapshots of GCC prior to 3.0.
14296
 
    case $host_os in
14297
 
      aix4 | aix4.[01] | aix4.[01].*)
14298
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14299
 
           echo ' yes '
14300
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14301
 
        :
14302
 
      else
14303
 
        can_build_shared=no
14304
 
      fi
14305
 
      ;;
14306
 
    esac
14307
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14308
 
    # soname into executable. Probably we can add versioning support to
14309
 
    # collect2, so additional links can be useful in future.
14310
 
    if test "$aix_use_runtimelinking" = yes; then
14311
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14312
 
      # instead of lib<name>.a to let people know that these are not
14313
 
      # typical AIX shared libraries.
14314
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315
 
    else
14316
 
      # We preserve .a as extension for shared libraries through AIX4.2
14317
 
      # and later when we are not doing run time linking.
14318
 
      library_names_spec='${libname}${release}.a $libname.a'
14319
 
      soname_spec='${libname}${release}${shared_ext}$major'
14320
 
    fi
14321
 
    shlibpath_var=LIBPATH
14322
 
  fi
14323
 
  ;;
14324
 
 
14325
 
amigaos*)
14326
 
  library_names_spec='$libname.ixlibrary $libname.a'
14327
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14328
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14329
 
  ;;
14330
 
 
14331
 
beos*)
14332
 
  library_names_spec='${libname}${shared_ext}'
14333
 
  dynamic_linker="$host_os ld.so"
14334
 
  shlibpath_var=LIBRARY_PATH
14335
 
  ;;
14336
 
 
14337
 
bsdi4*)
14338
 
  version_type=linux
14339
 
  need_version=no
14340
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341
 
  soname_spec='${libname}${release}${shared_ext}$major'
14342
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343
 
  shlibpath_var=LD_LIBRARY_PATH
14344
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14347
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348
 
  # libtool to hard-code these into programs
14349
 
  ;;
14350
 
 
14351
 
cygwin* | mingw* | pw32*)
14352
 
  version_type=windows
14353
 
  shrext=".dll"
14354
 
  need_version=no
14355
 
  need_lib_prefix=no
14356
 
 
14357
 
  case $GCC,$host_os in
14358
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14359
 
    library_names_spec='$libname.dll.a'
14360
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14361
 
    postinstall_cmds='base_file=`basename \${file}`~
14362
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14363
 
      dldir=$destdir/`dirname \$dlpath`~
14364
 
      test -d \$dldir || mkdir -p \$dldir~
14365
 
      $install_prog $dir/$dlname \$dldir/$dlname'
14366
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14367
 
      dlpath=$dir/\$dldll~
14368
 
       $rm \$dlpath'
14369
 
    shlibpath_overrides_runpath=yes
14370
 
 
14371
 
    case $host_os in
14372
 
    cygwin*)
14373
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14374
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14376
 
      ;;
14377
 
    mingw*)
14378
 
      # MinGW DLLs use traditional 'lib' prefix
14379
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14382
 
        # It is most probably a Windows format PATH printed by
14383
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14384
 
        # path with ; separators, and with drive letters. We can handle the
14385
 
        # drive letters (cygwin fileutils understands them), so leave them,
14386
 
        # especially as we might pass files found there to a mingw objdump,
14387
 
        # which wouldn't understand a cygwinified path. Ahh.
14388
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14389
 
      else
14390
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14391
 
      fi
14392
 
      ;;
14393
 
    pw32*)
14394
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14395
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14396
 
      ;;
14397
 
    esac
14398
 
    ;;
14399
 
 
14400
 
  *)
14401
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14402
 
    ;;
14403
 
  esac
14404
 
  dynamic_linker='Win32 ld.exe'
14405
 
  # FIXME: first we should search . and the directory the executable is in
14406
 
  shlibpath_var=PATH
14407
 
  ;;
14408
 
 
14409
 
darwin* | rhapsody*)
14410
 
  dynamic_linker="$host_os dyld"
14411
 
  version_type=darwin
14412
 
  need_lib_prefix=no
14413
 
  need_version=no
14414
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14415
 
  soname_spec='${libname}${release}${major}$shared_ext'
14416
 
  shlibpath_overrides_runpath=yes
14417
 
  shlibpath_var=DYLD_LIBRARY_PATH
14418
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14419
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14420
 
  if test "$GCC" = yes; then
14421
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14422
 
  else
14423
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14424
 
  fi
14425
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14426
 
  ;;
14427
 
 
14428
 
dgux*)
14429
 
  version_type=linux
14430
 
  need_lib_prefix=no
14431
 
  need_version=no
14432
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14433
 
  soname_spec='${libname}${release}${shared_ext}$major'
14434
 
  shlibpath_var=LD_LIBRARY_PATH
14435
 
  ;;
14436
 
 
14437
 
freebsd1*)
14438
 
  dynamic_linker=no
14439
 
  ;;
14440
 
 
14441
 
kfreebsd*-gnu)
14442
 
  version_type=linux
14443
 
  need_lib_prefix=no
14444
 
  need_version=no
14445
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446
 
  soname_spec='${libname}${release}${shared_ext}$major'
14447
 
  shlibpath_var=LD_LIBRARY_PATH
14448
 
  shlibpath_overrides_runpath=no
14449
 
  hardcode_into_libs=yes
14450
 
  dynamic_linker='GNU ld.so'
14451
 
  ;;
14452
 
 
14453
 
freebsd*)
14454
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14455
 
  version_type=freebsd-$objformat
14456
 
  case $version_type in
14457
 
    freebsd-elf*)
14458
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14459
 
      need_version=no
14460
 
      need_lib_prefix=no
14461
 
      ;;
14462
 
    freebsd-*)
14463
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14464
 
      need_version=yes
14465
 
      ;;
14466
 
  esac
14467
 
  shlibpath_var=LD_LIBRARY_PATH
14468
 
  case $host_os in
14469
 
  freebsd2*)
14470
 
    shlibpath_overrides_runpath=yes
14471
 
    ;;
14472
 
  freebsd3.01* | freebsdelf3.01*)
14473
 
    shlibpath_overrides_runpath=yes
14474
 
    hardcode_into_libs=yes
14475
 
    ;;
14476
 
  *) # from 3.2 on
14477
 
    shlibpath_overrides_runpath=no
14478
 
    hardcode_into_libs=yes
14479
 
    ;;
14480
 
  esac
14481
 
  ;;
14482
 
 
14483
 
gnu*)
14484
 
  version_type=linux
14485
 
  need_lib_prefix=no
14486
 
  need_version=no
14487
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488
 
  soname_spec='${libname}${release}${shared_ext}$major'
14489
 
  shlibpath_var=LD_LIBRARY_PATH
14490
 
  hardcode_into_libs=yes
14491
 
  ;;
14492
 
 
14493
 
hpux9* | hpux10* | hpux11*)
14494
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14495
 
  # link against other versions.
14496
 
  version_type=sunos
14497
 
  need_lib_prefix=no
14498
 
  need_version=no
14499
 
  case "$host_cpu" in
14500
 
  ia64*)
14501
 
    shrext='.so'
14502
 
    hardcode_into_libs=yes
14503
 
    dynamic_linker="$host_os dld.so"
14504
 
    shlibpath_var=LD_LIBRARY_PATH
14505
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507
 
    soname_spec='${libname}${release}${shared_ext}$major'
14508
 
    if test "X$HPUX_IA64_MODE" = X32; then
14509
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510
 
    else
14511
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512
 
    fi
14513
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514
 
    ;;
14515
 
   hppa*64*)
14516
 
     shrext='.sl'
14517
 
     hardcode_into_libs=yes
14518
 
     dynamic_linker="$host_os dld.sl"
14519
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522
 
     soname_spec='${libname}${release}${shared_ext}$major'
14523
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525
 
     ;;
14526
 
   *)
14527
 
    shrext='.sl'
14528
 
    dynamic_linker="$host_os dld.sl"
14529
 
    shlibpath_var=SHLIB_PATH
14530
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532
 
    soname_spec='${libname}${release}${shared_ext}$major'
14533
 
    ;;
14534
 
  esac
14535
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14536
 
  postinstall_cmds='chmod 555 $lib'
14537
 
  ;;
14538
 
 
14539
 
irix5* | irix6* | nonstopux*)
14540
 
  case $host_os in
14541
 
    nonstopux*) version_type=nonstopux ;;
14542
 
    *)
14543
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14544
 
                version_type=linux
14545
 
        else
14546
 
                version_type=irix
14547
 
        fi ;;
14548
 
  esac
14549
 
  need_lib_prefix=no
14550
 
  need_version=no
14551
 
  soname_spec='${libname}${release}${shared_ext}$major'
14552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553
 
  case $host_os in
14554
 
  irix5* | nonstopux*)
14555
 
    libsuff= shlibsuff=
14556
 
    ;;
14557
 
  *)
14558
 
    case $LD in # libtool.m4 will add one of these switches to LD
14559
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560
 
      libsuff= shlibsuff= libmagic=32-bit;;
14561
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14563
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14566
 
    esac
14567
 
    ;;
14568
 
  esac
14569
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570
 
  shlibpath_overrides_runpath=no
14571
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14572
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14573
 
  hardcode_into_libs=yes
14574
 
  ;;
14575
 
 
14576
 
# No shared lib support for Linux oldld, aout, or coff.
14577
 
linux*oldld* | linux*aout* | linux*coff*)
14578
 
  dynamic_linker=no
14579
 
  ;;
14580
 
 
14581
 
# This must be Linux ELF.
14582
 
linux*)
14583
 
  version_type=linux
14584
 
  need_lib_prefix=no
14585
 
  need_version=no
14586
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587
 
  soname_spec='${libname}${release}${shared_ext}$major'
14588
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14589
 
  shlibpath_var=LD_LIBRARY_PATH
14590
 
  shlibpath_overrides_runpath=no
14591
 
  # This implies no fast_install, which is unacceptable.
14592
 
  # Some rework will be needed to allow for fast_install
14593
 
  # before this can be enabled.
14594
 
  hardcode_into_libs=yes
14595
 
 
14596
 
  # Append ld.so.conf contents to the search path
14597
 
  if test -f /etc/ld.so.conf; then
14598
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14599
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14600
 
  fi
14601
 
 
14602
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14603
 
  # powerpc, because MkLinux only supported shared libraries with the
14604
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14605
 
  # most powerpc-linux boxes support dynamic linking these days and
14606
 
  # people can always --disable-shared, the test was removed, and we
14607
 
  # assume the GNU/Linux dynamic linker is in use.
14608
 
  dynamic_linker='GNU/Linux ld.so'
14609
 
  ;;
14610
 
 
14611
 
knetbsd*-gnu)
14612
 
  version_type=linux
14613
 
  need_lib_prefix=no
14614
 
  need_version=no
14615
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616
 
  soname_spec='${libname}${release}${shared_ext}$major'
14617
 
  shlibpath_var=LD_LIBRARY_PATH
14618
 
  shlibpath_overrides_runpath=no
14619
 
  hardcode_into_libs=yes
14620
 
  dynamic_linker='GNU ld.so'
14621
 
  ;;
14622
 
 
14623
 
netbsd*)
14624
 
  version_type=sunos
14625
 
  need_lib_prefix=no
14626
 
  need_version=no
14627
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14628
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630
 
    dynamic_linker='NetBSD (a.out) ld.so'
14631
 
  else
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
 
    dynamic_linker='NetBSD ld.elf_so'
14635
 
  fi
14636
 
  shlibpath_var=LD_LIBRARY_PATH
14637
 
  shlibpath_overrides_runpath=yes
14638
 
  hardcode_into_libs=yes
14639
 
  ;;
14640
 
 
14641
 
newsos6)
14642
 
  version_type=linux
14643
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644
 
  shlibpath_var=LD_LIBRARY_PATH
14645
 
  shlibpath_overrides_runpath=yes
14646
 
  ;;
14647
 
 
14648
 
nto-qnx*)
14649
 
  version_type=linux
14650
 
  need_lib_prefix=no
14651
 
  need_version=no
14652
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653
 
  soname_spec='${libname}${release}${shared_ext}$major'
14654
 
  shlibpath_var=LD_LIBRARY_PATH
14655
 
  shlibpath_overrides_runpath=yes
14656
 
  ;;
14657
 
 
14658
 
openbsd*)
14659
 
  version_type=sunos
14660
 
  need_lib_prefix=no
14661
 
  need_version=yes
14662
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664
 
  shlibpath_var=LD_LIBRARY_PATH
14665
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14666
 
    case $host_os in
14667
 
      openbsd2.[89] | openbsd2.[89].*)
14668
 
        shlibpath_overrides_runpath=no
14669
 
        ;;
14670
 
      *)
14671
 
        shlibpath_overrides_runpath=yes
14672
 
        ;;
14673
 
      esac
14674
 
  else
14675
 
    shlibpath_overrides_runpath=yes
14676
 
  fi
14677
 
  ;;
14678
 
 
14679
 
os2*)
14680
 
  libname_spec='$name'
14681
 
  shrext=".dll"
14682
 
  need_lib_prefix=no
14683
 
  library_names_spec='$libname${shared_ext} $libname.a'
14684
 
  dynamic_linker='OS/2 ld.exe'
14685
 
  shlibpath_var=LIBPATH
14686
 
  ;;
14687
 
 
14688
 
osf3* | osf4* | osf5*)
14689
 
  version_type=osf
14690
 
  need_lib_prefix=no
14691
 
  need_version=no
14692
 
  soname_spec='${libname}${release}${shared_ext}$major'
14693
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694
 
  shlibpath_var=LD_LIBRARY_PATH
14695
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14696
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14697
 
  ;;
14698
 
 
14699
 
sco3.2v5*)
14700
 
  version_type=osf
14701
 
  soname_spec='${libname}${release}${shared_ext}$major'
14702
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703
 
  shlibpath_var=LD_LIBRARY_PATH
14704
 
  ;;
14705
 
 
14706
 
solaris*)
14707
 
  version_type=linux
14708
 
  need_lib_prefix=no
14709
 
  need_version=no
14710
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711
 
  soname_spec='${libname}${release}${shared_ext}$major'
14712
 
  shlibpath_var=LD_LIBRARY_PATH
14713
 
  shlibpath_overrides_runpath=yes
14714
 
  hardcode_into_libs=yes
14715
 
  # ldd complains unless libraries are executable
14716
 
  postinstall_cmds='chmod +x $lib'
14717
 
  ;;
14718
 
 
14719
 
sunos4*)
14720
 
  version_type=sunos
14721
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14723
 
  shlibpath_var=LD_LIBRARY_PATH
14724
 
  shlibpath_overrides_runpath=yes
14725
 
  if test "$with_gnu_ld" = yes; then
14726
 
    need_lib_prefix=no
14727
 
  fi
14728
 
  need_version=yes
14729
 
  ;;
14730
 
 
14731
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14732
 
  version_type=linux
14733
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734
 
  soname_spec='${libname}${release}${shared_ext}$major'
14735
 
  shlibpath_var=LD_LIBRARY_PATH
14736
 
  case $host_vendor in
14737
 
    sni)
14738
 
      shlibpath_overrides_runpath=no
14739
 
      need_lib_prefix=no
14740
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14741
 
      runpath_var=LD_RUN_PATH
14742
 
      ;;
14743
 
    siemens)
14744
 
      need_lib_prefix=no
14745
 
      ;;
14746
 
    motorola)
14747
 
      need_lib_prefix=no
14748
 
      need_version=no
14749
 
      shlibpath_overrides_runpath=no
14750
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14751
 
      ;;
14752
 
  esac
14753
 
  ;;
14754
 
 
14755
 
sysv4*MP*)
14756
 
  if test -d /usr/nec ;then
14757
 
    version_type=linux
14758
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14759
 
    soname_spec='$libname${shared_ext}.$major'
14760
 
    shlibpath_var=LD_LIBRARY_PATH
14761
 
  fi
14762
 
  ;;
14763
 
 
14764
 
uts4*)
14765
 
  version_type=linux
14766
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767
 
  soname_spec='${libname}${release}${shared_ext}$major'
14768
 
  shlibpath_var=LD_LIBRARY_PATH
14769
 
  ;;
14770
 
 
14771
 
*)
14772
 
  dynamic_linker=no
14773
 
  ;;
14774
 
esac
14775
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14776
 
echo "${ECHO_T}$dynamic_linker" >&6
14777
 
test "$dynamic_linker" = no && can_build_shared=no
14778
 
 
14779
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14780
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14781
 
hardcode_action_F77=
14782
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
14783
 
   test -n "$runpath_var F77" || \
14784
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
14785
 
 
14786
 
  # We can hardcode non-existant directories.
14787
 
  if test "$hardcode_direct_F77" != no &&
14788
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789
 
     # have to relink, otherwise we might link with an installed library
14790
 
     # when we should be linking with a yet-to-be-installed one
14791
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14792
 
     test "$hardcode_minus_L_F77" != no; then
14793
 
    # Linking always hardcodes the temporary library directory.
14794
 
    hardcode_action_F77=relink
14795
 
  else
14796
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797
 
    hardcode_action_F77=immediate
14798
 
  fi
14799
 
else
14800
 
  # We cannot hardcode anything, or else we can only hardcode existing
14801
 
  # directories.
14802
 
  hardcode_action_F77=unsupported
14803
 
fi
14804
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14805
 
echo "${ECHO_T}$hardcode_action_F77" >&6
14806
 
 
14807
 
if test "$hardcode_action_F77" = relink; then
14808
 
  # Fast installation is not supported
14809
 
  enable_fast_install=no
14810
 
elif test "$shlibpath_overrides_runpath" = yes ||
14811
 
     test "$enable_shared" = no; then
14812
 
  # Fast installation is not necessary
14813
 
  enable_fast_install=needless
14814
 
fi
14815
 
 
14816
 
striplib=
14817
 
old_striplib=
14818
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14819
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14820
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14821
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14822
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14823
 
  echo "$as_me:$LINENO: result: yes" >&5
14824
 
echo "${ECHO_T}yes" >&6
14825
 
else
14826
 
# FIXME - insert some real tests, host_os isn't really good enough
14827
 
  case $host_os in
14828
 
   darwin*)
14829
 
       if test -n "$STRIP" ; then
14830
 
         striplib="$STRIP -x"
14831
 
         echo "$as_me:$LINENO: result: yes" >&5
14832
 
echo "${ECHO_T}yes" >&6
14833
 
       else
14834
 
  echo "$as_me:$LINENO: result: no" >&5
14835
 
echo "${ECHO_T}no" >&6
14836
 
fi
14837
 
       ;;
14838
 
   *)
14839
 
  echo "$as_me:$LINENO: result: no" >&5
14840
 
echo "${ECHO_T}no" >&6
14841
 
    ;;
14842
 
  esac
14843
 
fi
14844
 
 
14845
 
 
14846
 
 
14847
 
# The else clause should only fire when bootstrapping the
14848
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14849
 
# with your package, and you will get complaints that there are
14850
 
# no rules to generate ltmain.sh.
14851
 
if test -f "$ltmain"; then
14852
 
  # See if we are running on zsh, and set the options which allow our commands through
14853
 
  # without removal of \ escapes.
14854
 
  if test -n "${ZSH_VERSION+set}" ; then
14855
 
    setopt NO_GLOB_SUBST
14856
 
  fi
14857
 
  # Now quote all the things that may contain metacharacters while being
14858
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14859
 
  # variables and quote the copies for generation of the libtool script.
14860
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14861
 
    SED SHELL STRIP \
14862
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14863
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14864
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14865
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14866
 
    lt_cv_sys_global_symbol_to_c_name_address \
14867
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14868
 
    old_postinstall_cmds old_postuninstall_cmds \
14869
 
    compiler_F77 \
14870
 
    CC_F77 \
14871
 
    LD_F77 \
14872
 
    lt_prog_compiler_wl_F77 \
14873
 
    lt_prog_compiler_pic_F77 \
14874
 
    lt_prog_compiler_static_F77 \
14875
 
    lt_prog_compiler_no_builtin_flag_F77 \
14876
 
    export_dynamic_flag_spec_F77 \
14877
 
    thread_safe_flag_spec_F77 \
14878
 
    whole_archive_flag_spec_F77 \
14879
 
    enable_shared_with_static_runtimes_F77 \
14880
 
    old_archive_cmds_F77 \
14881
 
    old_archive_from_new_cmds_F77 \
14882
 
    predep_objects_F77 \
14883
 
    postdep_objects_F77 \
14884
 
    predeps_F77 \
14885
 
    postdeps_F77 \
14886
 
    compiler_lib_search_path_F77 \
14887
 
    archive_cmds_F77 \
14888
 
    archive_expsym_cmds_F77 \
14889
 
    postinstall_cmds_F77 \
14890
 
    postuninstall_cmds_F77 \
14891
 
    old_archive_from_expsyms_cmds_F77 \
14892
 
    allow_undefined_flag_F77 \
14893
 
    no_undefined_flag_F77 \
14894
 
    export_symbols_cmds_F77 \
14895
 
    hardcode_libdir_flag_spec_F77 \
14896
 
    hardcode_libdir_flag_spec_ld_F77 \
14897
 
    hardcode_libdir_separator_F77 \
14898
 
    hardcode_automatic_F77 \
14899
 
    module_cmds_F77 \
14900
 
    module_expsym_cmds_F77 \
14901
 
    lt_cv_prog_compiler_c_o_F77 \
14902
 
    exclude_expsyms_F77 \
14903
 
    include_expsyms_F77; do
14904
 
 
14905
 
    case $var in
14906
 
    old_archive_cmds_F77 | \
14907
 
    old_archive_from_new_cmds_F77 | \
14908
 
    archive_cmds_F77 | \
14909
 
    archive_expsym_cmds_F77 | \
14910
 
    module_cmds_F77 | \
14911
 
    module_expsym_cmds_F77 | \
14912
 
    old_archive_from_expsyms_cmds_F77 | \
14913
 
    export_symbols_cmds_F77 | \
14914
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14915
 
    postinstall_cmds | postuninstall_cmds | \
14916
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14917
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14918
 
      # Double-quote double-evaled strings.
14919
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14920
 
      ;;
14921
 
    *)
14922
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14923
 
      ;;
14924
 
    esac
14925
 
  done
14926
 
 
14927
 
  case $lt_echo in
14928
 
  *'\$0 --fallback-echo"')
14929
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14930
 
    ;;
14931
 
  esac
14932
 
 
14933
 
cfgfile="$ofile"
14934
 
 
14935
 
  cat <<__EOF__ >> "$cfgfile"
14936
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14937
 
 
14938
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14939
 
 
14940
 
# Shell to use when invoking shell scripts.
14941
 
SHELL=$lt_SHELL
14942
 
 
14943
 
# Whether or not to build shared libraries.
14944
 
build_libtool_libs=$enable_shared
14945
 
 
14946
 
# Whether or not to build static libraries.
14947
 
build_old_libs=$enable_static
14948
 
 
14949
 
# Whether or not to add -lc for building shared libraries.
14950
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
14951
 
 
14952
 
# Whether or not to disallow shared libs when runtime libs are static
14953
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14954
 
 
14955
 
# Whether or not to optimize for fast installation.
14956
 
fast_install=$enable_fast_install
14957
 
 
14958
 
# The host system.
14959
 
host_alias=$host_alias
14960
 
host=$host
14961
 
 
14962
 
# An echo program that does not interpret backslashes.
14963
 
echo=$lt_echo
14964
 
 
14965
 
# The archiver.
14966
 
AR=$lt_AR
14967
 
AR_FLAGS=$lt_AR_FLAGS
14968
 
 
14969
 
# A C compiler.
14970
 
LTCC=$lt_LTCC
14971
 
 
14972
 
# A language-specific compiler.
14973
 
CC=$lt_compiler_F77
14974
 
 
14975
 
# Is the compiler the GNU C compiler?
14976
 
with_gcc=$GCC_F77
14977
 
 
14978
 
# An ERE matcher.
14979
 
EGREP=$lt_EGREP
14980
 
 
14981
 
# The linker used to build libraries.
14982
 
LD=$lt_LD_F77
14983
 
 
14984
 
# Whether we need hard or soft links.
14985
 
LN_S=$lt_LN_S
14986
 
 
14987
 
# A BSD-compatible nm program.
14988
 
NM=$lt_NM
14989
 
 
14990
 
# A symbol stripping program
14991
 
STRIP=$lt_STRIP
14992
 
 
14993
 
# Used to examine libraries when file_magic_cmd begins "file"
14994
 
MAGIC_CMD=$MAGIC_CMD
14995
 
 
14996
 
# Used on cygwin: DLL creation program.
14997
 
DLLTOOL="$DLLTOOL"
14998
 
 
14999
 
# Used on cygwin: object dumper.
15000
 
OBJDUMP="$OBJDUMP"
15001
 
 
15002
 
# Used on cygwin: assembler.
15003
 
AS="$AS"
15004
 
 
15005
 
# The name of the directory that contains temporary libtool files.
15006
 
objdir=$objdir
15007
 
 
15008
 
# How to create reloadable object files.
15009
 
reload_flag=$lt_reload_flag
15010
 
reload_cmds=$lt_reload_cmds
15011
 
 
15012
 
# How to pass a linker flag through the compiler.
15013
 
wl=$lt_lt_prog_compiler_wl_F77
15014
 
 
15015
 
# Object file suffix (normally "o").
15016
 
objext="$ac_objext"
15017
 
 
15018
 
# Old archive suffix (normally "a").
15019
 
libext="$libext"
15020
 
 
15021
 
# Shared library suffix (normally ".so").
15022
 
shrext='$shrext'
15023
 
 
15024
 
# Executable file suffix (normally "").
15025
 
exeext="$exeext"
15026
 
 
15027
 
# Additional compiler flags for building library objects.
15028
 
pic_flag=$lt_lt_prog_compiler_pic_F77
15029
 
pic_mode=$pic_mode
15030
 
 
15031
 
# What is the maximum length of a command?
15032
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15033
 
 
15034
 
# Does compiler simultaneously support -c and -o options?
15035
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15036
 
 
15037
 
# Must we lock files when doing compilation ?
15038
 
need_locks=$lt_need_locks
15039
 
 
15040
 
# Do we need the lib prefix for modules?
15041
 
need_lib_prefix=$need_lib_prefix
15042
 
 
15043
 
# Do we need a version for libraries?
15044
 
need_version=$need_version
15045
 
 
15046
 
# Whether dlopen is supported.
15047
 
dlopen_support=$enable_dlopen
15048
 
 
15049
 
# Whether dlopen of programs is supported.
15050
 
dlopen_self=$enable_dlopen_self
15051
 
 
15052
 
# Whether dlopen of statically linked programs is supported.
15053
 
dlopen_self_static=$enable_dlopen_self_static
15054
 
 
15055
 
# Compiler flag to prevent dynamic linking.
15056
 
link_static_flag=$lt_lt_prog_compiler_static_F77
15057
 
 
15058
 
# Compiler flag to turn off builtin functions.
15059
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15060
 
 
15061
 
# Compiler flag to allow reflexive dlopens.
15062
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15063
 
 
15064
 
# Compiler flag to generate shared objects directly from archives.
15065
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15066
 
 
15067
 
# Compiler flag to generate thread-safe objects.
15068
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15069
 
 
15070
 
# Library versioning type.
15071
 
version_type=$version_type
15072
 
 
15073
 
# Format of library name prefix.
15074
 
libname_spec=$lt_libname_spec
15075
 
 
15076
 
# List of archive names.  First name is the real one, the rest are links.
15077
 
# The last name is the one that the linker finds with -lNAME.
15078
 
library_names_spec=$lt_library_names_spec
15079
 
 
15080
 
# The coded name of the library, if different from the real name.
15081
 
soname_spec=$lt_soname_spec
15082
 
 
15083
 
# Commands used to build and install an old-style archive.
15084
 
RANLIB=$lt_RANLIB
15085
 
old_archive_cmds=$lt_old_archive_cmds_F77
15086
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15087
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15088
 
 
15089
 
# Create an old-style archive from a shared archive.
15090
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15091
 
 
15092
 
# Create a temporary old-style archive to link instead of a shared archive.
15093
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15094
 
 
15095
 
# Commands used to build and install a shared archive.
15096
 
archive_cmds=$lt_archive_cmds_F77
15097
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15098
 
postinstall_cmds=$lt_postinstall_cmds
15099
 
postuninstall_cmds=$lt_postuninstall_cmds
15100
 
 
15101
 
# Commands used to build a loadable module (assumed same as above if empty)
15102
 
module_cmds=$lt_module_cmds_F77
15103
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
15104
 
 
15105
 
# Commands to strip libraries.
15106
 
old_striplib=$lt_old_striplib
15107
 
striplib=$lt_striplib
15108
 
 
15109
 
# Dependencies to place before the objects being linked to create a
15110
 
# shared library.
15111
 
predep_objects=$lt_predep_objects_F77
15112
 
 
15113
 
# Dependencies to place after the objects being linked to create a
15114
 
# shared library.
15115
 
postdep_objects=$lt_postdep_objects_F77
15116
 
 
15117
 
# Dependencies to place before the objects being linked to create a
15118
 
# shared library.
15119
 
predeps=$lt_predeps_F77
15120
 
 
15121
 
# Dependencies to place after the objects being linked to create a
15122
 
# shared library.
15123
 
postdeps=$lt_postdeps_F77
15124
 
 
15125
 
# The library search path used internally by the compiler when linking
15126
 
# a shared library.
15127
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15128
 
 
15129
 
# Method to check whether dependent libraries are shared objects.
15130
 
deplibs_check_method=$lt_deplibs_check_method
15131
 
 
15132
 
# Command to use when deplibs_check_method == file_magic.
15133
 
file_magic_cmd=$lt_file_magic_cmd
15134
 
 
15135
 
# Flag that allows shared libraries with undefined symbols to be built.
15136
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
15137
 
 
15138
 
# Flag that forces no undefined symbols.
15139
 
no_undefined_flag=$lt_no_undefined_flag_F77
15140
 
 
15141
 
# Commands used to finish a libtool library installation in a directory.
15142
 
finish_cmds=$lt_finish_cmds
15143
 
 
15144
 
# Same as above, but a single script fragment to be evaled but not shown.
15145
 
finish_eval=$lt_finish_eval
15146
 
 
15147
 
# Take the output of nm and produce a listing of raw symbols and C names.
15148
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15149
 
 
15150
 
# Transform the output of nm in a proper C declaration
15151
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15152
 
 
15153
 
# Transform the output of nm in a C name address pair
15154
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15155
 
 
15156
 
# This is the shared library runtime path variable.
15157
 
runpath_var=$runpath_var
15158
 
 
15159
 
# This is the shared library path variable.
15160
 
shlibpath_var=$shlibpath_var
15161
 
 
15162
 
# Is shlibpath searched before the hard-coded library search path?
15163
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15164
 
 
15165
 
# How to hardcode a shared library path into an executable.
15166
 
hardcode_action=$hardcode_action_F77
15167
 
 
15168
 
# Whether we should hardcode library paths into libraries.
15169
 
hardcode_into_libs=$hardcode_into_libs
15170
 
 
15171
 
# Flag to hardcode \$libdir into a binary during linking.
15172
 
# This must work even if \$libdir does not exist.
15173
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15174
 
 
15175
 
# If ld is used when linking, flag to hardcode \$libdir into
15176
 
# a binary during linking. This must work even if \$libdir does
15177
 
# not exist.
15178
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15179
 
 
15180
 
# Whether we need a single -rpath flag with a separated argument.
15181
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15182
 
 
15183
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15184
 
# resulting binary.
15185
 
hardcode_direct=$hardcode_direct_F77
15186
 
 
15187
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15188
 
# resulting binary.
15189
 
hardcode_minus_L=$hardcode_minus_L_F77
15190
 
 
15191
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15192
 
# the resulting binary.
15193
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15194
 
 
15195
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15196
 
# and all subsequent libraries and executables linked against it.
15197
 
hardcode_automatic=$hardcode_automatic_F77
15198
 
 
15199
 
# Variables whose values should be saved in libtool wrapper scripts and
15200
 
# restored at relink time.
15201
 
variables_saved_for_relink="$variables_saved_for_relink"
15202
 
 
15203
 
# Whether libtool must link a program against all its dependency libraries.
15204
 
link_all_deplibs=$link_all_deplibs_F77
15205
 
 
15206
 
# Compile-time system search path for libraries
15207
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15208
 
 
15209
 
# Run-time system search path for libraries
15210
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15211
 
 
15212
 
# Fix the shell variable \$srcfile for the compiler.
15213
 
fix_srcfile_path="$fix_srcfile_path_F77"
15214
 
 
15215
 
# Set to yes if exported symbols are required.
15216
 
always_export_symbols=$always_export_symbols_F77
15217
 
 
15218
 
# The commands to list exported symbols.
15219
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
15220
 
 
15221
 
# The commands to extract the exported symbol list from a shared archive.
15222
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15223
 
 
15224
 
# Symbols that should not be listed in the preloaded symbols.
15225
 
exclude_expsyms=$lt_exclude_expsyms_F77
15226
 
 
15227
 
# Symbols that must always be exported.
15228
 
include_expsyms=$lt_include_expsyms_F77
15229
 
 
15230
 
# ### END LIBTOOL TAG CONFIG: $tagname
15231
 
 
15232
 
__EOF__
15233
 
 
15234
 
 
15235
 
else
15236
 
  # If there is no Makefile yet, we rely on a make rule to execute
15237
 
  # `config.status --recheck' to rerun these tests and create the
15238
 
  # libtool script then.
15239
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15240
 
  if test -f "$ltmain_in"; then
15241
 
    test -f Makefile && make "$ltmain"
15242
 
  fi
15243
 
fi
15244
 
 
15245
 
 
15246
 
ac_ext=c
15247
 
ac_cpp='$CPP $CPPFLAGS'
15248
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15251
 
 
15252
 
CC="$lt_save_CC"
15253
 
 
15254
 
        else
15255
 
          tagname=""
15256
 
        fi
15257
 
        ;;
15258
 
 
15259
 
      GCJ)
15260
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15261
 
 
15262
 
 
15263
 
 
15264
 
# Source file extension for Java test sources.
15265
 
ac_ext=java
15266
 
 
15267
 
# Object file extension for compiled Java test sources.
15268
 
objext=o
15269
 
objext_GCJ=$objext
15270
 
 
15271
 
# Code to be used in simple compile tests
15272
 
lt_simple_compile_test_code="class foo {}\n"
15273
 
 
15274
 
# Code to be used in simple link tests
15275
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15276
 
 
15277
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15278
 
 
15279
 
# If no C compiler was specified, use CC.
15280
 
LTCC=${LTCC-"$CC"}
15281
 
 
15282
 
# Allow CC to be a program name with arguments.
15283
 
compiler=$CC
15284
 
 
15285
 
 
15286
 
# Allow CC to be a program name with arguments.
15287
 
lt_save_CC="$CC"
15288
 
CC=${GCJ-"gcj"}
15289
 
compiler=$CC
15290
 
compiler_GCJ=$CC
15291
 
 
15292
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15293
 
archive_cmds_need_lc_GCJ=no
15294
 
 
15295
 
 
15296
 
lt_prog_compiler_no_builtin_flag_GCJ=
15297
 
 
15298
 
if test "$GCC" = yes; then
15299
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15300
 
 
15301
 
 
15302
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15303
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15304
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15306
 
else
15307
 
  lt_cv_prog_compiler_rtti_exceptions=no
15308
 
  ac_outfile=conftest.$ac_objext
15309
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15311
 
   # Insert the option either (1) after the last *FLAGS variable, or
15312
 
   # (2) before a word containing "conftest.", or (3) at the end.
15313
 
   # Note that $ac_compile itself does not contain backslashes and begins
15314
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15315
 
   # The option is referenced via a variable to avoid confusing sed.
15316
 
   lt_compile=`echo "$ac_compile" | $SED \
15317
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15318
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319
 
   -e 's:$: $lt_compiler_flag:'`
15320
 
   (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321
 
   (eval "$lt_compile" 2>conftest.err)
15322
 
   ac_status=$?
15323
 
   cat conftest.err >&5
15324
 
   echo "$as_me:15324: \$? = $ac_status" >&5
15325
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15326
 
     # The compiler can only warn and ignore the option if not recognized
15327
 
     # So say no if there are warnings
15328
 
     if test ! -s conftest.err; then
15329
 
       lt_cv_prog_compiler_rtti_exceptions=yes
15330
 
     fi
15331
 
   fi
15332
 
   $rm conftest*
15333
 
 
15334
 
fi
15335
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15336
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15337
 
 
15338
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15339
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15340
 
else
15341
 
    :
15342
 
fi
15343
 
 
15344
 
fi
15345
 
 
15346
 
lt_prog_compiler_wl_GCJ=
15347
 
lt_prog_compiler_pic_GCJ=
15348
 
lt_prog_compiler_static_GCJ=
15349
 
 
15350
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15351
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15352
 
 
15353
 
  if test "$GCC" = yes; then
15354
 
    lt_prog_compiler_wl_GCJ='-Wl,'
15355
 
    lt_prog_compiler_static_GCJ='-static'
15356
 
 
15357
 
    case $host_os in
15358
 
      aix*)
15359
 
      # All AIX code is PIC.
15360
 
      if test "$host_cpu" = ia64; then
15361
 
        # AIX 5 now supports IA64 processor
15362
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15363
 
      fi
15364
 
      ;;
15365
 
 
15366
 
    amigaos*)
15367
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15368
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15369
 
      # like `-m68040'.
15370
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15371
 
      ;;
15372
 
 
15373
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15374
 
      # PIC is the default for these OSes.
15375
 
      ;;
15376
 
 
15377
 
    mingw* | pw32* | os2*)
15378
 
      # This hack is so that the source file can tell whether it is being
15379
 
      # built for inclusion in a dll (and should export symbols for example).
15380
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15381
 
      ;;
15382
 
 
15383
 
    darwin* | rhapsody*)
15384
 
      # PIC is the default on this platform
15385
 
      # Common symbols not allowed in MH_DYLIB files
15386
 
      lt_prog_compiler_pic_GCJ='-fno-common'
15387
 
      ;;
15388
 
 
15389
 
    msdosdjgpp*)
15390
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15391
 
      # on systems that don't support them.
15392
 
      lt_prog_compiler_can_build_shared_GCJ=no
15393
 
      enable_shared=no
15394
 
      ;;
15395
 
 
15396
 
    sysv4*MP*)
15397
 
      if test -d /usr/nec; then
15398
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15399
 
      fi
15400
 
      ;;
15401
 
 
15402
 
    hpux*)
15403
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15404
 
      # not for PA HP-UX.
15405
 
      case "$host_cpu" in
15406
 
      hppa*64*|ia64*)
15407
 
        # +Z the default
15408
 
        ;;
15409
 
      *)
15410
 
        lt_prog_compiler_pic_GCJ='-fPIC'
15411
 
        ;;
15412
 
      esac
15413
 
      ;;
15414
 
 
15415
 
    *)
15416
 
      lt_prog_compiler_pic_GCJ='-fPIC'
15417
 
      ;;
15418
 
    esac
15419
 
  else
15420
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15421
 
    case $host_os in
15422
 
    aix*)
15423
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15424
 
      if test "$host_cpu" = ia64; then
15425
 
        # AIX 5 now supports IA64 processor
15426
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15427
 
      else
15428
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15429
 
      fi
15430
 
      ;;
15431
 
 
15432
 
    mingw* | pw32* | os2*)
15433
 
      # This hack is so that the source file can tell whether it is being
15434
 
      # built for inclusion in a dll (and should export symbols for example).
15435
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15436
 
      ;;
15437
 
 
15438
 
    hpux9* | hpux10* | hpux11*)
15439
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15440
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15441
 
      # not for PA HP-UX.
15442
 
      case "$host_cpu" in
15443
 
      hppa*64*|ia64*)
15444
 
        # +Z the default
15445
 
        ;;
15446
 
      *)
15447
 
        lt_prog_compiler_pic_GCJ='+Z'
15448
 
        ;;
15449
 
      esac
15450
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15451
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15452
 
      ;;
15453
 
 
15454
 
    irix5* | irix6* | nonstopux*)
15455
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15456
 
      # PIC (with -KPIC) is the default.
15457
 
      lt_prog_compiler_static_GCJ='-non_shared'
15458
 
      ;;
15459
 
 
15460
 
    newsos6)
15461
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15462
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15463
 
      ;;
15464
 
 
15465
 
    linux*)
15466
 
      case $CC in
15467
 
      icc* | ecc*)
15468
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15469
 
        lt_prog_compiler_pic_GCJ='-KPIC'
15470
 
        lt_prog_compiler_static_GCJ='-static'
15471
 
        ;;
15472
 
      ccc*)
15473
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15474
 
        # All Alpha code is PIC.
15475
 
        lt_prog_compiler_static_GCJ='-non_shared'
15476
 
        ;;
15477
 
      esac
15478
 
      ;;
15479
 
 
15480
 
    osf3* | osf4* | osf5*)
15481
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15482
 
      # All OSF/1 code is PIC.
15483
 
      lt_prog_compiler_static_GCJ='-non_shared'
15484
 
      ;;
15485
 
 
15486
 
    sco3.2v5*)
15487
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15488
 
      lt_prog_compiler_static_GCJ='-dn'
15489
 
      ;;
15490
 
 
15491
 
    solaris*)
15492
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15493
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15494
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15495
 
      ;;
15496
 
 
15497
 
    sunos4*)
15498
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15499
 
      lt_prog_compiler_pic_GCJ='-PIC'
15500
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15501
 
      ;;
15502
 
 
15503
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15504
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15505
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15506
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15507
 
      ;;
15508
 
 
15509
 
    sysv4*MP*)
15510
 
      if test -d /usr/nec ;then
15511
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15512
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15513
 
      fi
15514
 
      ;;
15515
 
 
15516
 
    uts4*)
15517
 
      lt_prog_compiler_pic_GCJ='-pic'
15518
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15519
 
      ;;
15520
 
 
15521
 
    *)
15522
 
      lt_prog_compiler_can_build_shared_GCJ=no
15523
 
      ;;
15524
 
    esac
15525
 
  fi
15526
 
 
15527
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15528
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15529
 
 
15530
 
#
15531
 
# Check to make sure the PIC flag actually works.
15532
 
#
15533
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
15534
 
 
15535
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15536
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15537
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15538
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15539
 
else
15540
 
  lt_prog_compiler_pic_works_GCJ=no
15541
 
  ac_outfile=conftest.$ac_objext
15542
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15543
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15544
 
   # Insert the option either (1) after the last *FLAGS variable, or
15545
 
   # (2) before a word containing "conftest.", or (3) at the end.
15546
 
   # Note that $ac_compile itself does not contain backslashes and begins
15547
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15548
 
   # The option is referenced via a variable to avoid confusing sed.
15549
 
   lt_compile=`echo "$ac_compile" | $SED \
15550
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15551
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552
 
   -e 's:$: $lt_compiler_flag:'`
15553
 
   (eval echo "\"\$as_me:15553: $lt_compile\"" >&5)
15554
 
   (eval "$lt_compile" 2>conftest.err)
15555
 
   ac_status=$?
15556
 
   cat conftest.err >&5
15557
 
   echo "$as_me:15557: \$? = $ac_status" >&5
15558
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15559
 
     # The compiler can only warn and ignore the option if not recognized
15560
 
     # So say no if there are warnings
15561
 
     if test ! -s conftest.err; then
15562
 
       lt_prog_compiler_pic_works_GCJ=yes
15563
 
     fi
15564
 
   fi
15565
 
   $rm conftest*
15566
 
 
15567
 
fi
15568
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15569
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15570
 
 
15571
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15572
 
    case $lt_prog_compiler_pic_GCJ in
15573
 
     "" | " "*) ;;
15574
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15575
 
     esac
15576
 
else
15577
 
    lt_prog_compiler_pic_GCJ=
15578
 
     lt_prog_compiler_can_build_shared_GCJ=no
15579
 
fi
15580
 
 
15581
 
fi
15582
 
case "$host_os" in
15583
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15584
 
  *djgpp*)
15585
 
    lt_prog_compiler_pic_GCJ=
15586
 
    ;;
15587
 
  *)
15588
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15589
 
    ;;
15590
 
esac
15591
 
 
15592
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15593
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15594
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15595
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15596
 
else
15597
 
  lt_cv_prog_compiler_c_o_GCJ=no
15598
 
   $rm -r conftest 2>/dev/null
15599
 
   mkdir conftest
15600
 
   cd conftest
15601
 
   mkdir out
15602
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15603
 
 
15604
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15605
 
   # Insert the option either (1) after the last *FLAGS variable, or
15606
 
   # (2) before a word containing "conftest.", or (3) at the end.
15607
 
   # Note that $ac_compile itself does not contain backslashes and begins
15608
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15609
 
   lt_compile=`echo "$ac_compile" | $SED \
15610
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15611
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15612
 
   -e 's:$: $lt_compiler_flag:'`
15613
 
   (eval echo "\"\$as_me:15613: $lt_compile\"" >&5)
15614
 
   (eval "$lt_compile" 2>out/conftest.err)
15615
 
   ac_status=$?
15616
 
   cat out/conftest.err >&5
15617
 
   echo "$as_me:15617: \$? = $ac_status" >&5
15618
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15619
 
   then
15620
 
     # The compiler can only warn and ignore the option if not recognized
15621
 
     # So say no if there are warnings
15622
 
     if test ! -s out/conftest.err; then
15623
 
       lt_cv_prog_compiler_c_o_GCJ=yes
15624
 
     fi
15625
 
   fi
15626
 
   chmod u+w .
15627
 
   $rm conftest*
15628
 
   # SGI C++ compiler will create directory out/ii_files/ for
15629
 
   # template instantiation
15630
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15631
 
   $rm out/* && rmdir out
15632
 
   cd ..
15633
 
   rmdir conftest
15634
 
   $rm conftest*
15635
 
 
15636
 
fi
15637
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15638
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15639
 
 
15640
 
 
15641
 
hard_links="nottested"
15642
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15643
 
  # do not overwrite the value of need_locks provided by the user
15644
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15645
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15646
 
  hard_links=yes
15647
 
  $rm conftest*
15648
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15649
 
  touch conftest.a
15650
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15651
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15653
 
echo "${ECHO_T}$hard_links" >&6
15654
 
  if test "$hard_links" = no; then
15655
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15656
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15657
 
    need_locks=warn
15658
 
  fi
15659
 
else
15660
 
  need_locks=no
15661
 
fi
15662
 
 
15663
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15664
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15665
 
 
15666
 
  runpath_var=
15667
 
  allow_undefined_flag_GCJ=
15668
 
  enable_shared_with_static_runtimes_GCJ=no
15669
 
  archive_cmds_GCJ=
15670
 
  archive_expsym_cmds_GCJ=
15671
 
  old_archive_From_new_cmds_GCJ=
15672
 
  old_archive_from_expsyms_cmds_GCJ=
15673
 
  export_dynamic_flag_spec_GCJ=
15674
 
  whole_archive_flag_spec_GCJ=
15675
 
  thread_safe_flag_spec_GCJ=
15676
 
  hardcode_libdir_flag_spec_GCJ=
15677
 
  hardcode_libdir_flag_spec_ld_GCJ=
15678
 
  hardcode_libdir_separator_GCJ=
15679
 
  hardcode_direct_GCJ=no
15680
 
  hardcode_minus_L_GCJ=no
15681
 
  hardcode_shlibpath_var_GCJ=unsupported
15682
 
  link_all_deplibs_GCJ=unknown
15683
 
  hardcode_automatic_GCJ=no
15684
 
  module_cmds_GCJ=
15685
 
  module_expsym_cmds_GCJ=
15686
 
  always_export_symbols_GCJ=no
15687
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15688
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15689
 
  # included in the symbol list
15690
 
  include_expsyms_GCJ=
15691
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15692
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15693
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15694
 
  # as well as any symbol that contains `d'.
15695
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15696
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15697
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15698
 
  # the symbol is explicitly referenced.  Since portable code cannot
15699
 
  # rely on this symbol name, it's probably fine to never include it in
15700
 
  # preloaded symbol tables.
15701
 
  extract_expsyms_cmds=
15702
 
 
15703
 
  case $host_os in
15704
 
  cygwin* | mingw* | pw32*)
15705
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15706
 
    # When not using gcc, we currently assume that we are using
15707
 
    # Microsoft Visual C++.
15708
 
    if test "$GCC" != yes; then
15709
 
      with_gnu_ld=no
15710
 
    fi
15711
 
    ;;
15712
 
  openbsd*)
15713
 
    with_gnu_ld=no
15714
 
    ;;
15715
 
  esac
15716
 
 
15717
 
  ld_shlibs_GCJ=yes
15718
 
  if test "$with_gnu_ld" = yes; then
15719
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15720
 
    wlarc='${wl}'
15721
 
 
15722
 
    # See if GNU ld supports shared libraries.
15723
 
    case $host_os in
15724
 
    aix3* | aix4* | aix5*)
15725
 
      # On AIX/PPC, the GNU linker is very broken
15726
 
      if test "$host_cpu" != ia64; then
15727
 
        ld_shlibs_GCJ=no
15728
 
        cat <<EOF 1>&2
15729
 
 
15730
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15731
 
*** to be unable to reliably create shared libraries on AIX.
15732
 
*** Therefore, libtool is disabling shared libraries support.  If you
15733
 
*** really care for shared libraries, you may want to modify your PATH
15734
 
*** so that a non-GNU linker is found, and then restart.
15735
 
 
15736
 
EOF
15737
 
      fi
15738
 
      ;;
15739
 
 
15740
 
    amigaos*)
15741
 
      archive_cmds_GCJ='$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)'
15742
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15743
 
      hardcode_minus_L_GCJ=yes
15744
 
 
15745
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15746
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15747
 
      # to version 4, is to share data among multiple programs linked
15748
 
      # with the same dynamic library.  Since this doesn't match the
15749
 
      # behavior of shared libraries on other platforms, we can't use
15750
 
      # them.
15751
 
      ld_shlibs_GCJ=no
15752
 
      ;;
15753
 
 
15754
 
    beos*)
15755
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15756
 
        allow_undefined_flag_GCJ=unsupported
15757
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15758
 
        # support --undefined.  This deserves some investigation.  FIXME
15759
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760
 
      else
15761
 
        ld_shlibs_GCJ=no
15762
 
      fi
15763
 
      ;;
15764
 
 
15765
 
    cygwin* | mingw* | pw32*)
15766
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15767
 
      # as there is no search path for DLLs.
15768
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15769
 
      allow_undefined_flag_GCJ=unsupported
15770
 
      always_export_symbols_GCJ=no
15771
 
      enable_shared_with_static_runtimes_GCJ=yes
15772
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15773
 
 
15774
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15775
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15776
 
        # If the export-symbols file already is a .def file (1st line
15777
 
        # is EXPORTS), use it as is; otherwise, prepend...
15778
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15779
 
          cp $export_symbols $output_objdir/$soname.def;
15780
 
        else
15781
 
          echo EXPORTS > $output_objdir/$soname.def;
15782
 
          cat $export_symbols >> $output_objdir/$soname.def;
15783
 
        fi~
15784
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15785
 
      else
15786
 
        ld_shlibs=no
15787
 
      fi
15788
 
      ;;
15789
 
 
15790
 
    netbsd* | knetbsd*-gnu)
15791
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15792
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15793
 
        wlarc=
15794
 
      else
15795
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797
 
      fi
15798
 
      ;;
15799
 
 
15800
 
    solaris* | sysv5*)
15801
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15802
 
        ld_shlibs_GCJ=no
15803
 
        cat <<EOF 1>&2
15804
 
 
15805
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15806
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15807
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15808
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15809
 
*** your PATH or compiler configuration so that the native linker is
15810
 
*** used, and then restart.
15811
 
 
15812
 
EOF
15813
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15814
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15815
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15816
 
      else
15817
 
        ld_shlibs_GCJ=no
15818
 
      fi
15819
 
      ;;
15820
 
 
15821
 
    sunos4*)
15822
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15823
 
      wlarc=
15824
 
      hardcode_direct_GCJ=yes
15825
 
      hardcode_shlibpath_var_GCJ=no
15826
 
      ;;
15827
 
 
15828
 
  linux*)
15829
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15830
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831
 
        archive_cmds_GCJ="$tmp_archive_cmds"
15832
 
      supports_anon_versioning=no
15833
 
      case `$LD -v 2>/dev/null` in
15834
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15835
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15836
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15837
 
        *\ 2.11.*) ;; # other 2.11 versions
15838
 
        *) supports_anon_versioning=yes ;;
15839
 
      esac
15840
 
      if test $supports_anon_versioning = yes; then
15841
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15842
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15843
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15844
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15845
 
      else
15846
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15847
 
      fi
15848
 
    else
15849
 
      ld_shlibs_GCJ=no
15850
 
    fi
15851
 
    ;;
15852
 
 
15853
 
    *)
15854
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857
 
      else
15858
 
        ld_shlibs_GCJ=no
15859
 
      fi
15860
 
      ;;
15861
 
    esac
15862
 
 
15863
 
    if test "$ld_shlibs_GCJ" = yes; then
15864
 
      runpath_var=LD_RUN_PATH
15865
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15866
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15867
 
      # ancient GNU ld didn't support --whole-archive et. al.
15868
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15869
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15870
 
      else
15871
 
        whole_archive_flag_spec_GCJ=
15872
 
      fi
15873
 
    fi
15874
 
  else
15875
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15876
 
    case $host_os in
15877
 
    aix3*)
15878
 
      allow_undefined_flag_GCJ=unsupported
15879
 
      always_export_symbols_GCJ=yes
15880
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15881
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15882
 
      # are no directories specified by -L.
15883
 
      hardcode_minus_L_GCJ=yes
15884
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15885
 
        # Neither direct hardcoding nor static linking is supported with a
15886
 
        # broken collect2.
15887
 
        hardcode_direct_GCJ=unsupported
15888
 
      fi
15889
 
      ;;
15890
 
 
15891
 
    aix4* | aix5*)
15892
 
      if test "$host_cpu" = ia64; then
15893
 
        # On IA64, the linker does run time linking by default, so we don't
15894
 
        # have to do anything special.
15895
 
        aix_use_runtimelinking=no
15896
 
        exp_sym_flag='-Bexport'
15897
 
        no_entry_flag=""
15898
 
      else
15899
 
        # If we're using GNU nm, then we don't want the "-C" option.
15900
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15901
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15902
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15903
 
        else
15904
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15905
 
        fi
15906
 
        aix_use_runtimelinking=no
15907
 
 
15908
 
        # Test if we are trying to use run time linking or normal
15909
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15910
 
        # need to do runtime linking.
15911
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15912
 
          for ld_flag in $LDFLAGS; do
15913
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15914
 
            aix_use_runtimelinking=yes
15915
 
            break
15916
 
          fi
15917
 
          done
15918
 
        esac
15919
 
 
15920
 
        exp_sym_flag='-bexport'
15921
 
        no_entry_flag='-bnoentry'
15922
 
      fi
15923
 
 
15924
 
      # When large executables or shared objects are built, AIX ld can
15925
 
      # have problems creating the table of contents.  If linking a library
15926
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15927
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15928
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15929
 
 
15930
 
      archive_cmds_GCJ=''
15931
 
      hardcode_direct_GCJ=yes
15932
 
      hardcode_libdir_separator_GCJ=':'
15933
 
      link_all_deplibs_GCJ=yes
15934
 
 
15935
 
      if test "$GCC" = yes; then
15936
 
        case $host_os in aix4.012|aix4.012.*)
15937
 
        # We only want to do this on AIX 4.2 and lower, the check
15938
 
        # below for broken collect2 doesn't work under 4.3+
15939
 
          collect2name=`${CC} -print-prog-name=collect2`
15940
 
          if test -f "$collect2name" && \
15941
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15942
 
          then
15943
 
          # We have reworked collect2
15944
 
          hardcode_direct_GCJ=yes
15945
 
          else
15946
 
          # We have old collect2
15947
 
          hardcode_direct_GCJ=unsupported
15948
 
          # It fails to find uninstalled libraries when the uninstalled
15949
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15950
 
          # to unsupported forces relinking
15951
 
          hardcode_minus_L_GCJ=yes
15952
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
15953
 
          hardcode_libdir_separator_GCJ=
15954
 
          fi
15955
 
        esac
15956
 
        shared_flag='-shared'
15957
 
      else
15958
 
        # not using gcc
15959
 
        if test "$host_cpu" = ia64; then
15960
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15961
 
        # chokes on -Wl,-G. The following line is correct:
15962
 
          shared_flag='-G'
15963
 
        else
15964
 
        if test "$aix_use_runtimelinking" = yes; then
15965
 
            shared_flag='${wl}-G'
15966
 
          else
15967
 
            shared_flag='${wl}-bM:SRE'
15968
 
        fi
15969
 
        fi
15970
 
      fi
15971
 
 
15972
 
      # It seems that -bexpall does not export symbols beginning with
15973
 
      # underscore (_), so it is better to generate a list of symbols to export.
15974
 
      always_export_symbols_GCJ=yes
15975
 
      if test "$aix_use_runtimelinking" = yes; then
15976
 
        # Warning - without using the other runtime loading flags (-brtl),
15977
 
        # -berok will link without error, but may produce a broken library.
15978
 
        allow_undefined_flag_GCJ='-berok'
15979
 
       # Determine the default libpath from the value encoded in an empty executable.
15980
 
       cat >conftest.$ac_ext <<_ACEOF
15981
 
/* confdefs.h.  */
15982
 
_ACEOF
15983
 
cat confdefs.h >>conftest.$ac_ext
15984
 
cat >>conftest.$ac_ext <<_ACEOF
15985
 
/* end confdefs.h.  */
15986
 
 
15987
 
int
15988
 
main ()
15989
 
{
15990
 
 
15991
 
  ;
15992
 
  return 0;
15993
 
}
15994
 
_ACEOF
15995
 
rm -f conftest.$ac_objext conftest$ac_exeext
15996
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997
 
  (eval $ac_link) 2>conftest.er1
15998
 
  ac_status=$?
15999
 
  grep -v '^ *+' conftest.er1 >conftest.err
16000
 
  rm -f conftest.er1
16001
 
  cat conftest.err >&5
16002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003
 
  (exit $ac_status); } &&
16004
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006
 
  (eval $ac_try) 2>&5
16007
 
  ac_status=$?
16008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009
 
  (exit $ac_status); }; } &&
16010
 
         { ac_try='test -s conftest$ac_exeext'
16011
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012
 
  (eval $ac_try) 2>&5
16013
 
  ac_status=$?
16014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015
 
  (exit $ac_status); }; }; then
16016
 
 
16017
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16018
 
}'`
16019
 
# Check for a 64-bit object if we didn't find anything.
16020
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16021
 
}'`; fi
16022
 
else
16023
 
  echo "$as_me: failed program was:" >&5
16024
 
sed 's/^/| /' conftest.$ac_ext >&5
16025
 
 
16026
 
fi
16027
 
rm -f conftest.err conftest.$ac_objext \
16028
 
      conftest$ac_exeext conftest.$ac_ext
16029
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16030
 
 
16031
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16032
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16033
 
       else
16034
 
        if test "$host_cpu" = ia64; then
16035
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16036
 
          allow_undefined_flag_GCJ="-z nodefs"
16037
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16038
 
        else
16039
 
         # Determine the default libpath from the value encoded in an empty executable.
16040
 
         cat >conftest.$ac_ext <<_ACEOF
16041
 
/* confdefs.h.  */
16042
 
_ACEOF
16043
 
cat confdefs.h >>conftest.$ac_ext
16044
 
cat >>conftest.$ac_ext <<_ACEOF
16045
 
/* end confdefs.h.  */
16046
 
 
16047
 
int
16048
 
main ()
16049
 
{
16050
 
 
16051
 
  ;
16052
 
  return 0;
16053
 
}
16054
 
_ACEOF
16055
 
rm -f conftest.$ac_objext conftest$ac_exeext
16056
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057
 
  (eval $ac_link) 2>conftest.er1
16058
 
  ac_status=$?
16059
 
  grep -v '^ *+' conftest.er1 >conftest.err
16060
 
  rm -f conftest.er1
16061
 
  cat conftest.err >&5
16062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063
 
  (exit $ac_status); } &&
16064
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066
 
  (eval $ac_try) 2>&5
16067
 
  ac_status=$?
16068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069
 
  (exit $ac_status); }; } &&
16070
 
         { ac_try='test -s conftest$ac_exeext'
16071
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072
 
  (eval $ac_try) 2>&5
16073
 
  ac_status=$?
16074
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075
 
  (exit $ac_status); }; }; then
16076
 
 
16077
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16078
 
}'`
16079
 
# Check for a 64-bit object if we didn't find anything.
16080
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16081
 
}'`; fi
16082
 
else
16083
 
  echo "$as_me: failed program was:" >&5
16084
 
sed 's/^/| /' conftest.$ac_ext >&5
16085
 
 
16086
 
fi
16087
 
rm -f conftest.err conftest.$ac_objext \
16088
 
      conftest$ac_exeext conftest.$ac_ext
16089
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16090
 
 
16091
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16092
 
          # Warning - without using the other run time loading flags,
16093
 
          # -berok will link without error, but may produce a broken library.
16094
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16095
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
16096
 
          # -bexpall does not export symbols beginning with underscore (_)
16097
 
          always_export_symbols_GCJ=yes
16098
 
          # Exported symbols can be pulled into shared objects from archives
16099
 
          whole_archive_flag_spec_GCJ=' '
16100
 
          archive_cmds_need_lc_GCJ=yes
16101
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16102
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16103
 
        fi
16104
 
      fi
16105
 
      ;;
16106
 
 
16107
 
    amigaos*)
16108
 
      archive_cmds_GCJ='$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)'
16109
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110
 
      hardcode_minus_L_GCJ=yes
16111
 
      # see comment about different semantics on the GNU ld section
16112
 
      ld_shlibs_GCJ=no
16113
 
      ;;
16114
 
 
16115
 
    bsdi4*)
16116
 
      export_dynamic_flag_spec_GCJ=-rdynamic
16117
 
      ;;
16118
 
 
16119
 
    cygwin* | mingw* | pw32*)
16120
 
      # When not using gcc, we currently assume that we are using
16121
 
      # Microsoft Visual C++.
16122
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16123
 
      # no search path for DLLs.
16124
 
      hardcode_libdir_flag_spec_GCJ=' '
16125
 
      allow_undefined_flag_GCJ=unsupported
16126
 
      # Tell ltmain to make .lib files, not .a files.
16127
 
      libext=lib
16128
 
      # Tell ltmain to make .dll files, not .so files.
16129
 
      shrext=".dll"
16130
 
      # FIXME: Setting linknames here is a bad hack.
16131
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16132
 
      # The linker will automatically build a .lib file if we build a DLL.
16133
 
      old_archive_From_new_cmds_GCJ='true'
16134
 
      # FIXME: Should let the user specify the lib program.
16135
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16136
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
16137
 
      enable_shared_with_static_runtimes_GCJ=yes
16138
 
      ;;
16139
 
 
16140
 
    darwin* | rhapsody*)
16141
 
    if test "$GXX" = yes ; then
16142
 
      archive_cmds_need_lc_GCJ=no
16143
 
      case "$host_os" in
16144
 
      rhapsody* | darwin1.[012])
16145
 
        allow_undefined_flag_GCJ='-undefined suppress'
16146
 
        ;;
16147
 
      *) # Darwin 1.3 on
16148
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16149
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16150
 
      else
16151
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16152
 
          10.[012])
16153
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16154
 
            ;;
16155
 
          10.*)
16156
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16157
 
            ;;
16158
 
        esac
16159
 
      fi
16160
 
        ;;
16161
 
      esac
16162
 
        lt_int_apple_cc_single_mod=no
16163
 
        output_verbose_link_cmd='echo'
16164
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16165
 
          lt_int_apple_cc_single_mod=yes
16166
 
        fi
16167
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16168
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16169
 
        else
16170
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16171
 
      fi
16172
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16173
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16174
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16175
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16176
 
        else
16177
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16178
 
        fi
16179
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16180
 
      hardcode_direct_GCJ=no
16181
 
      hardcode_automatic_GCJ=yes
16182
 
      hardcode_shlibpath_var_GCJ=unsupported
16183
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
16184
 
      link_all_deplibs_GCJ=yes
16185
 
    else
16186
 
      ld_shlibs_GCJ=no
16187
 
    fi
16188
 
      ;;
16189
 
 
16190
 
    dgux*)
16191
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16193
 
      hardcode_shlibpath_var_GCJ=no
16194
 
      ;;
16195
 
 
16196
 
    freebsd1*)
16197
 
      ld_shlibs_GCJ=no
16198
 
      ;;
16199
 
 
16200
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16201
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16202
 
    # does not break anything, and helps significantly (at the cost of a little
16203
 
    # extra space).
16204
 
    freebsd2.2*)
16205
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16206
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16207
 
      hardcode_direct_GCJ=yes
16208
 
      hardcode_shlibpath_var_GCJ=no
16209
 
      ;;
16210
 
 
16211
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16212
 
    freebsd2*)
16213
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16214
 
      hardcode_direct_GCJ=yes
16215
 
      hardcode_minus_L_GCJ=yes
16216
 
      hardcode_shlibpath_var_GCJ=no
16217
 
      ;;
16218
 
 
16219
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16220
 
    freebsd* | kfreebsd*-gnu)
16221
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16222
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16223
 
      hardcode_direct_GCJ=yes
16224
 
      hardcode_shlibpath_var_GCJ=no
16225
 
      ;;
16226
 
 
16227
 
    hpux9*)
16228
 
      if test "$GCC" = yes; then
16229
 
        archive_cmds_GCJ='$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'
16230
 
      else
16231
 
        archive_cmds_GCJ='$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'
16232
 
      fi
16233
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16234
 
      hardcode_libdir_separator_GCJ=:
16235
 
      hardcode_direct_GCJ=yes
16236
 
 
16237
 
      # hardcode_minus_L: Not really in the search PATH,
16238
 
      # but as the default location of the library.
16239
 
      hardcode_minus_L_GCJ=yes
16240
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16241
 
      ;;
16242
 
 
16243
 
    hpux10* | hpux11*)
16244
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16245
 
        case "$host_cpu" in
16246
 
        hppa*64*|ia64*)
16247
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16248
 
          ;;
16249
 
        *)
16250
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16251
 
          ;;
16252
 
        esac
16253
 
      else
16254
 
        case "$host_cpu" in
16255
 
        hppa*64*|ia64*)
16256
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16257
 
          ;;
16258
 
        *)
16259
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16260
 
          ;;
16261
 
        esac
16262
 
      fi
16263
 
      if test "$with_gnu_ld" = no; then
16264
 
        case "$host_cpu" in
16265
 
        hppa*64*)
16266
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16267
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16268
 
          hardcode_libdir_separator_GCJ=:
16269
 
          hardcode_direct_GCJ=no
16270
 
          hardcode_shlibpath_var_GCJ=no
16271
 
          ;;
16272
 
        ia64*)
16273
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16274
 
          hardcode_direct_GCJ=no
16275
 
          hardcode_shlibpath_var_GCJ=no
16276
 
 
16277
 
          # hardcode_minus_L: Not really in the search PATH,
16278
 
          # but as the default location of the library.
16279
 
          hardcode_minus_L_GCJ=yes
16280
 
          ;;
16281
 
        *)
16282
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16283
 
          hardcode_libdir_separator_GCJ=:
16284
 
          hardcode_direct_GCJ=yes
16285
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
16286
 
 
16287
 
          # hardcode_minus_L: Not really in the search PATH,
16288
 
          # but as the default location of the library.
16289
 
          hardcode_minus_L_GCJ=yes
16290
 
          ;;
16291
 
        esac
16292
 
      fi
16293
 
      ;;
16294
 
 
16295
 
    irix5* | irix6* | nonstopux*)
16296
 
      if test "$GCC" = yes; then
16297
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16298
 
      else
16299
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16300
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16301
 
      fi
16302
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16303
 
      hardcode_libdir_separator_GCJ=:
16304
 
      link_all_deplibs_GCJ=yes
16305
 
      ;;
16306
 
 
16307
 
    netbsd* | knetbsd*-gnu)
16308
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16310
 
      else
16311
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16312
 
      fi
16313
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16314
 
      hardcode_direct_GCJ=yes
16315
 
      hardcode_shlibpath_var_GCJ=no
16316
 
      ;;
16317
 
 
16318
 
    newsos6)
16319
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16320
 
      hardcode_direct_GCJ=yes
16321
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16322
 
      hardcode_libdir_separator_GCJ=:
16323
 
      hardcode_shlibpath_var_GCJ=no
16324
 
      ;;
16325
 
 
16326
 
    openbsd*)
16327
 
      hardcode_direct_GCJ=yes
16328
 
      hardcode_shlibpath_var_GCJ=no
16329
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16330
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16331
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16332
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16333
 
      else
16334
 
       case $host_os in
16335
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16336
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16337
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16338
 
           ;;
16339
 
         *)
16340
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16341
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16342
 
           ;;
16343
 
       esac
16344
 
      fi
16345
 
      ;;
16346
 
 
16347
 
    os2*)
16348
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16349
 
      hardcode_minus_L_GCJ=yes
16350
 
      allow_undefined_flag_GCJ=unsupported
16351
 
      archive_cmds_GCJ='$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'
16352
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16353
 
      ;;
16354
 
 
16355
 
    osf3*)
16356
 
      if test "$GCC" = yes; then
16357
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16358
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16359
 
      else
16360
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16361
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16362
 
      fi
16363
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364
 
      hardcode_libdir_separator_GCJ=:
16365
 
      ;;
16366
 
 
16367
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16368
 
      if test "$GCC" = yes; then
16369
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16370
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16371
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16372
 
      else
16373
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16374
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16375
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16376
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16377
 
 
16378
 
        # Both c and cxx compiler support -rpath directly
16379
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16380
 
      fi
16381
 
      hardcode_libdir_separator_GCJ=:
16382
 
      ;;
16383
 
 
16384
 
    sco3.2v5*)
16385
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16386
 
      hardcode_shlibpath_var_GCJ=no
16387
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16388
 
      runpath_var=LD_RUN_PATH
16389
 
      hardcode_runpath_var=yes
16390
 
      ;;
16391
 
 
16392
 
    solaris*)
16393
 
      no_undefined_flag_GCJ=' -z text'
16394
 
      if test "$GCC" = yes; then
16395
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16397
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16398
 
      else
16399
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16401
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16402
 
      fi
16403
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404
 
      hardcode_shlibpath_var_GCJ=no
16405
 
      case $host_os in
16406
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16407
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16408
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16409
 
      esac
16410
 
      link_all_deplibs_GCJ=yes
16411
 
      ;;
16412
 
 
16413
 
    sunos4*)
16414
 
      if test "x$host_vendor" = xsequent; then
16415
 
        # Use $CC to link under sequent, because it throws in some extra .o
16416
 
        # files that make .init and .fini sections work.
16417
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16418
 
      else
16419
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16420
 
      fi
16421
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16422
 
      hardcode_direct_GCJ=yes
16423
 
      hardcode_minus_L_GCJ=yes
16424
 
      hardcode_shlibpath_var_GCJ=no
16425
 
      ;;
16426
 
 
16427
 
    sysv4)
16428
 
      case $host_vendor in
16429
 
        sni)
16430
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431
 
          hardcode_direct_GCJ=yes # is this really true???
16432
 
        ;;
16433
 
        siemens)
16434
 
          ## LD is ld it makes a PLAMLIB
16435
 
          ## CC just makes a GrossModule.
16436
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16437
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16438
 
          hardcode_direct_GCJ=no
16439
 
        ;;
16440
 
        motorola)
16441
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16442
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16443
 
        ;;
16444
 
      esac
16445
 
      runpath_var='LD_RUN_PATH'
16446
 
      hardcode_shlibpath_var_GCJ=no
16447
 
      ;;
16448
 
 
16449
 
    sysv4.3*)
16450
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451
 
      hardcode_shlibpath_var_GCJ=no
16452
 
      export_dynamic_flag_spec_GCJ='-Bexport'
16453
 
      ;;
16454
 
 
16455
 
    sysv4*MP*)
16456
 
      if test -d /usr/nec; then
16457
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458
 
        hardcode_shlibpath_var_GCJ=no
16459
 
        runpath_var=LD_RUN_PATH
16460
 
        hardcode_runpath_var=yes
16461
 
        ld_shlibs_GCJ=yes
16462
 
      fi
16463
 
      ;;
16464
 
 
16465
 
    sysv4.2uw2*)
16466
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16467
 
      hardcode_direct_GCJ=yes
16468
 
      hardcode_minus_L_GCJ=no
16469
 
      hardcode_shlibpath_var_GCJ=no
16470
 
      hardcode_runpath_var=yes
16471
 
      runpath_var=LD_RUN_PATH
16472
 
      ;;
16473
 
 
16474
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16475
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16476
 
      if test "$GCC" = yes; then
16477
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16478
 
      else
16479
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16480
 
      fi
16481
 
      runpath_var='LD_RUN_PATH'
16482
 
      hardcode_shlibpath_var_GCJ=no
16483
 
      ;;
16484
 
 
16485
 
    sysv5*)
16486
 
      no_undefined_flag_GCJ=' -z text'
16487
 
      # $CC -shared without GNU ld will not create a library from C++
16488
 
      # object files and a static libstdc++, better avoid it by now
16489
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16491
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16492
 
      hardcode_libdir_flag_spec_GCJ=
16493
 
      hardcode_shlibpath_var_GCJ=no
16494
 
      runpath_var='LD_RUN_PATH'
16495
 
      ;;
16496
 
 
16497
 
    uts4*)
16498
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16500
 
      hardcode_shlibpath_var_GCJ=no
16501
 
      ;;
16502
 
 
16503
 
    *)
16504
 
      ld_shlibs_GCJ=no
16505
 
      ;;
16506
 
    esac
16507
 
  fi
16508
 
 
16509
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16510
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16511
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16512
 
 
16513
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16514
 
if test "$GCC" = yes; then
16515
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16516
 
fi
16517
 
 
16518
 
#
16519
 
# Do we need to explicitly link libc?
16520
 
#
16521
 
case "x$archive_cmds_need_lc_GCJ" in
16522
 
x|xyes)
16523
 
  # Assume -lc should be added
16524
 
  archive_cmds_need_lc_GCJ=yes
16525
 
 
16526
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16527
 
    case $archive_cmds_GCJ in
16528
 
    *'~'*)
16529
 
      # FIXME: we may have to deal with multi-command sequences.
16530
 
      ;;
16531
 
    '$CC '*)
16532
 
      # Test whether the compiler implicitly links with -lc since on some
16533
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16534
 
      # to ld, don't add -lc before -lgcc.
16535
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16536
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16537
 
      $rm conftest*
16538
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16539
 
 
16540
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16541
 
  (eval $ac_compile) 2>&5
16542
 
  ac_status=$?
16543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544
 
  (exit $ac_status); } 2>conftest.err; then
16545
 
        soname=conftest
16546
 
        lib=conftest
16547
 
        libobjs=conftest.$ac_objext
16548
 
        deplibs=
16549
 
        wl=$lt_prog_compiler_wl_GCJ
16550
 
        compiler_flags=-v
16551
 
        linker_flags=-v
16552
 
        verstring=
16553
 
        output_objdir=.
16554
 
        libname=conftest
16555
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16556
 
        allow_undefined_flag_GCJ=
16557
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16558
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16559
 
  ac_status=$?
16560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561
 
  (exit $ac_status); }
16562
 
        then
16563
 
          archive_cmds_need_lc_GCJ=no
16564
 
        else
16565
 
          archive_cmds_need_lc_GCJ=yes
16566
 
        fi
16567
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16568
 
      else
16569
 
        cat conftest.err 1>&5
16570
 
      fi
16571
 
      $rm conftest*
16572
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16573
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16574
 
      ;;
16575
 
    esac
16576
 
  fi
16577
 
  ;;
16578
 
esac
16579
 
 
16580
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16581
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16582
 
library_names_spec=
16583
 
libname_spec='lib$name'
16584
 
soname_spec=
16585
 
shrext=".so"
16586
 
postinstall_cmds=
16587
 
postuninstall_cmds=
16588
 
finish_cmds=
16589
 
finish_eval=
16590
 
shlibpath_var=
16591
 
shlibpath_overrides_runpath=unknown
16592
 
version_type=none
16593
 
dynamic_linker="$host_os ld.so"
16594
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16595
 
if test "$GCC" = yes; then
16596
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16597
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16598
 
    # if the path contains ";" then we assume it to be the separator
16599
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16600
 
    # assumed that no part of a normal pathname contains ";" but that should
16601
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16602
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16603
 
  else
16604
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16605
 
  fi
16606
 
else
16607
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16608
 
fi
16609
 
need_lib_prefix=unknown
16610
 
hardcode_into_libs=no
16611
 
 
16612
 
# when you set need_version to no, make sure it does not cause -set_version
16613
 
# flags to be left without arguments
16614
 
need_version=unknown
16615
 
 
16616
 
case $host_os in
16617
 
aix3*)
16618
 
  version_type=linux
16619
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16620
 
  shlibpath_var=LIBPATH
16621
 
 
16622
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16623
 
  soname_spec='${libname}${release}${shared_ext}$major'
16624
 
  ;;
16625
 
 
16626
 
aix4* | aix5*)
16627
 
  version_type=linux
16628
 
  need_lib_prefix=no
16629
 
  need_version=no
16630
 
  hardcode_into_libs=yes
16631
 
  if test "$host_cpu" = ia64; then
16632
 
    # AIX 5 supports IA64
16633
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16634
 
    shlibpath_var=LD_LIBRARY_PATH
16635
 
  else
16636
 
    # With GCC up to 2.95.x, collect2 would create an import file
16637
 
    # for dependence libraries.  The import file would start with
16638
 
    # the line `#! .'.  This would cause the generated library to
16639
 
    # depend on `.', always an invalid library.  This was fixed in
16640
 
    # development snapshots of GCC prior to 3.0.
16641
 
    case $host_os in
16642
 
      aix4 | aix4.[01] | aix4.[01].*)
16643
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16644
 
           echo ' yes '
16645
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16646
 
        :
16647
 
      else
16648
 
        can_build_shared=no
16649
 
      fi
16650
 
      ;;
16651
 
    esac
16652
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16653
 
    # soname into executable. Probably we can add versioning support to
16654
 
    # collect2, so additional links can be useful in future.
16655
 
    if test "$aix_use_runtimelinking" = yes; then
16656
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16657
 
      # instead of lib<name>.a to let people know that these are not
16658
 
      # typical AIX shared libraries.
16659
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
 
    else
16661
 
      # We preserve .a as extension for shared libraries through AIX4.2
16662
 
      # and later when we are not doing run time linking.
16663
 
      library_names_spec='${libname}${release}.a $libname.a'
16664
 
      soname_spec='${libname}${release}${shared_ext}$major'
16665
 
    fi
16666
 
    shlibpath_var=LIBPATH
16667
 
  fi
16668
 
  ;;
16669
 
 
16670
 
amigaos*)
16671
 
  library_names_spec='$libname.ixlibrary $libname.a'
16672
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16673
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16674
 
  ;;
16675
 
 
16676
 
beos*)
16677
 
  library_names_spec='${libname}${shared_ext}'
16678
 
  dynamic_linker="$host_os ld.so"
16679
 
  shlibpath_var=LIBRARY_PATH
16680
 
  ;;
16681
 
 
16682
 
bsdi4*)
16683
 
  version_type=linux
16684
 
  need_version=no
16685
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686
 
  soname_spec='${libname}${release}${shared_ext}$major'
16687
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16688
 
  shlibpath_var=LD_LIBRARY_PATH
16689
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16690
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16691
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16692
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16693
 
  # libtool to hard-code these into programs
16694
 
  ;;
16695
 
 
16696
 
cygwin* | mingw* | pw32*)
16697
 
  version_type=windows
16698
 
  shrext=".dll"
16699
 
  need_version=no
16700
 
  need_lib_prefix=no
16701
 
 
16702
 
  case $GCC,$host_os in
16703
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16704
 
    library_names_spec='$libname.dll.a'
16705
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16706
 
    postinstall_cmds='base_file=`basename \${file}`~
16707
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16708
 
      dldir=$destdir/`dirname \$dlpath`~
16709
 
      test -d \$dldir || mkdir -p \$dldir~
16710
 
      $install_prog $dir/$dlname \$dldir/$dlname'
16711
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712
 
      dlpath=$dir/\$dldll~
16713
 
       $rm \$dlpath'
16714
 
    shlibpath_overrides_runpath=yes
16715
 
 
16716
 
    case $host_os in
16717
 
    cygwin*)
16718
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16721
 
      ;;
16722
 
    mingw*)
16723
 
      # MinGW DLLs use traditional 'lib' prefix
16724
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16725
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16726
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16727
 
        # It is most probably a Windows format PATH printed by
16728
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16729
 
        # path with ; separators, and with drive letters. We can handle the
16730
 
        # drive letters (cygwin fileutils understands them), so leave them,
16731
 
        # especially as we might pass files found there to a mingw objdump,
16732
 
        # which wouldn't understand a cygwinified path. Ahh.
16733
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16734
 
      else
16735
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16736
 
      fi
16737
 
      ;;
16738
 
    pw32*)
16739
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16740
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16741
 
      ;;
16742
 
    esac
16743
 
    ;;
16744
 
 
16745
 
  *)
16746
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16747
 
    ;;
16748
 
  esac
16749
 
  dynamic_linker='Win32 ld.exe'
16750
 
  # FIXME: first we should search . and the directory the executable is in
16751
 
  shlibpath_var=PATH
16752
 
  ;;
16753
 
 
16754
 
darwin* | rhapsody*)
16755
 
  dynamic_linker="$host_os dyld"
16756
 
  version_type=darwin
16757
 
  need_lib_prefix=no
16758
 
  need_version=no
16759
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16760
 
  soname_spec='${libname}${release}${major}$shared_ext'
16761
 
  shlibpath_overrides_runpath=yes
16762
 
  shlibpath_var=DYLD_LIBRARY_PATH
16763
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16764
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16765
 
  if test "$GCC" = yes; then
16766
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16767
 
  else
16768
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16769
 
  fi
16770
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16771
 
  ;;
16772
 
 
16773
 
dgux*)
16774
 
  version_type=linux
16775
 
  need_lib_prefix=no
16776
 
  need_version=no
16777
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16778
 
  soname_spec='${libname}${release}${shared_ext}$major'
16779
 
  shlibpath_var=LD_LIBRARY_PATH
16780
 
  ;;
16781
 
 
16782
 
freebsd1*)
16783
 
  dynamic_linker=no
16784
 
  ;;
16785
 
 
16786
 
kfreebsd*-gnu)
16787
 
  version_type=linux
16788
 
  need_lib_prefix=no
16789
 
  need_version=no
16790
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791
 
  soname_spec='${libname}${release}${shared_ext}$major'
16792
 
  shlibpath_var=LD_LIBRARY_PATH
16793
 
  shlibpath_overrides_runpath=no
16794
 
  hardcode_into_libs=yes
16795
 
  dynamic_linker='GNU ld.so'
16796
 
  ;;
16797
 
 
16798
 
freebsd*)
16799
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16800
 
  version_type=freebsd-$objformat
16801
 
  case $version_type in
16802
 
    freebsd-elf*)
16803
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16804
 
      need_version=no
16805
 
      need_lib_prefix=no
16806
 
      ;;
16807
 
    freebsd-*)
16808
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16809
 
      need_version=yes
16810
 
      ;;
16811
 
  esac
16812
 
  shlibpath_var=LD_LIBRARY_PATH
16813
 
  case $host_os in
16814
 
  freebsd2*)
16815
 
    shlibpath_overrides_runpath=yes
16816
 
    ;;
16817
 
  freebsd3.01* | freebsdelf3.01*)
16818
 
    shlibpath_overrides_runpath=yes
16819
 
    hardcode_into_libs=yes
16820
 
    ;;
16821
 
  *) # from 3.2 on
16822
 
    shlibpath_overrides_runpath=no
16823
 
    hardcode_into_libs=yes
16824
 
    ;;
16825
 
  esac
16826
 
  ;;
16827
 
 
16828
 
gnu*)
16829
 
  version_type=linux
16830
 
  need_lib_prefix=no
16831
 
  need_version=no
16832
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16833
 
  soname_spec='${libname}${release}${shared_ext}$major'
16834
 
  shlibpath_var=LD_LIBRARY_PATH
16835
 
  hardcode_into_libs=yes
16836
 
  ;;
16837
 
 
16838
 
hpux9* | hpux10* | hpux11*)
16839
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16840
 
  # link against other versions.
16841
 
  version_type=sunos
16842
 
  need_lib_prefix=no
16843
 
  need_version=no
16844
 
  case "$host_cpu" in
16845
 
  ia64*)
16846
 
    shrext='.so'
16847
 
    hardcode_into_libs=yes
16848
 
    dynamic_linker="$host_os dld.so"
16849
 
    shlibpath_var=LD_LIBRARY_PATH
16850
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16851
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852
 
    soname_spec='${libname}${release}${shared_ext}$major'
16853
 
    if test "X$HPUX_IA64_MODE" = X32; then
16854
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16855
 
    else
16856
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16857
 
    fi
16858
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16859
 
    ;;
16860
 
   hppa*64*)
16861
 
     shrext='.sl'
16862
 
     hardcode_into_libs=yes
16863
 
     dynamic_linker="$host_os dld.sl"
16864
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16865
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16866
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867
 
     soname_spec='${libname}${release}${shared_ext}$major'
16868
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16869
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16870
 
     ;;
16871
 
   *)
16872
 
    shrext='.sl'
16873
 
    dynamic_linker="$host_os dld.sl"
16874
 
    shlibpath_var=SHLIB_PATH
16875
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16876
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877
 
    soname_spec='${libname}${release}${shared_ext}$major'
16878
 
    ;;
16879
 
  esac
16880
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16881
 
  postinstall_cmds='chmod 555 $lib'
16882
 
  ;;
16883
 
 
16884
 
irix5* | irix6* | nonstopux*)
16885
 
  case $host_os in
16886
 
    nonstopux*) version_type=nonstopux ;;
16887
 
    *)
16888
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16889
 
                version_type=linux
16890
 
        else
16891
 
                version_type=irix
16892
 
        fi ;;
16893
 
  esac
16894
 
  need_lib_prefix=no
16895
 
  need_version=no
16896
 
  soname_spec='${libname}${release}${shared_ext}$major'
16897
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16898
 
  case $host_os in
16899
 
  irix5* | nonstopux*)
16900
 
    libsuff= shlibsuff=
16901
 
    ;;
16902
 
  *)
16903
 
    case $LD in # libtool.m4 will add one of these switches to LD
16904
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16905
 
      libsuff= shlibsuff= libmagic=32-bit;;
16906
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16907
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16908
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16909
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16910
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16911
 
    esac
16912
 
    ;;
16913
 
  esac
16914
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16915
 
  shlibpath_overrides_runpath=no
16916
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16917
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16918
 
  hardcode_into_libs=yes
16919
 
  ;;
16920
 
 
16921
 
# No shared lib support for Linux oldld, aout, or coff.
16922
 
linux*oldld* | linux*aout* | linux*coff*)
16923
 
  dynamic_linker=no
16924
 
  ;;
16925
 
 
16926
 
# This must be Linux ELF.
16927
 
linux*)
16928
 
  version_type=linux
16929
 
  need_lib_prefix=no
16930
 
  need_version=no
16931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932
 
  soname_spec='${libname}${release}${shared_ext}$major'
16933
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16934
 
  shlibpath_var=LD_LIBRARY_PATH
16935
 
  shlibpath_overrides_runpath=no
16936
 
  # This implies no fast_install, which is unacceptable.
16937
 
  # Some rework will be needed to allow for fast_install
16938
 
  # before this can be enabled.
16939
 
  hardcode_into_libs=yes
16940
 
 
16941
 
  # Append ld.so.conf contents to the search path
16942
 
  if test -f /etc/ld.so.conf; then
16943
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16944
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16945
 
  fi
16946
 
 
16947
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16948
 
  # powerpc, because MkLinux only supported shared libraries with the
16949
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16950
 
  # most powerpc-linux boxes support dynamic linking these days and
16951
 
  # people can always --disable-shared, the test was removed, and we
16952
 
  # assume the GNU/Linux dynamic linker is in use.
16953
 
  dynamic_linker='GNU/Linux ld.so'
16954
 
  ;;
16955
 
 
16956
 
knetbsd*-gnu)
16957
 
  version_type=linux
16958
 
  need_lib_prefix=no
16959
 
  need_version=no
16960
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16961
 
  soname_spec='${libname}${release}${shared_ext}$major'
16962
 
  shlibpath_var=LD_LIBRARY_PATH
16963
 
  shlibpath_overrides_runpath=no
16964
 
  hardcode_into_libs=yes
16965
 
  dynamic_linker='GNU ld.so'
16966
 
  ;;
16967
 
 
16968
 
netbsd*)
16969
 
  version_type=sunos
16970
 
  need_lib_prefix=no
16971
 
  need_version=no
16972
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16973
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16974
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16975
 
    dynamic_linker='NetBSD (a.out) ld.so'
16976
 
  else
16977
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978
 
    soname_spec='${libname}${release}${shared_ext}$major'
16979
 
    dynamic_linker='NetBSD ld.elf_so'
16980
 
  fi
16981
 
  shlibpath_var=LD_LIBRARY_PATH
16982
 
  shlibpath_overrides_runpath=yes
16983
 
  hardcode_into_libs=yes
16984
 
  ;;
16985
 
 
16986
 
newsos6)
16987
 
  version_type=linux
16988
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989
 
  shlibpath_var=LD_LIBRARY_PATH
16990
 
  shlibpath_overrides_runpath=yes
16991
 
  ;;
16992
 
 
16993
 
nto-qnx*)
16994
 
  version_type=linux
16995
 
  need_lib_prefix=no
16996
 
  need_version=no
16997
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998
 
  soname_spec='${libname}${release}${shared_ext}$major'
16999
 
  shlibpath_var=LD_LIBRARY_PATH
17000
 
  shlibpath_overrides_runpath=yes
17001
 
  ;;
17002
 
 
17003
 
openbsd*)
17004
 
  version_type=sunos
17005
 
  need_lib_prefix=no
17006
 
  need_version=yes
17007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17008
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17009
 
  shlibpath_var=LD_LIBRARY_PATH
17010
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17011
 
    case $host_os in
17012
 
      openbsd2.[89] | openbsd2.[89].*)
17013
 
        shlibpath_overrides_runpath=no
17014
 
        ;;
17015
 
      *)
17016
 
        shlibpath_overrides_runpath=yes
17017
 
        ;;
17018
 
      esac
17019
 
  else
17020
 
    shlibpath_overrides_runpath=yes
17021
 
  fi
17022
 
  ;;
17023
 
 
17024
 
os2*)
17025
 
  libname_spec='$name'
17026
 
  shrext=".dll"
17027
 
  need_lib_prefix=no
17028
 
  library_names_spec='$libname${shared_ext} $libname.a'
17029
 
  dynamic_linker='OS/2 ld.exe'
17030
 
  shlibpath_var=LIBPATH
17031
 
  ;;
17032
 
 
17033
 
osf3* | osf4* | osf5*)
17034
 
  version_type=osf
17035
 
  need_lib_prefix=no
17036
 
  need_version=no
17037
 
  soname_spec='${libname}${release}${shared_ext}$major'
17038
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039
 
  shlibpath_var=LD_LIBRARY_PATH
17040
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17041
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17042
 
  ;;
17043
 
 
17044
 
sco3.2v5*)
17045
 
  version_type=osf
17046
 
  soname_spec='${libname}${release}${shared_ext}$major'
17047
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048
 
  shlibpath_var=LD_LIBRARY_PATH
17049
 
  ;;
17050
 
 
17051
 
solaris*)
17052
 
  version_type=linux
17053
 
  need_lib_prefix=no
17054
 
  need_version=no
17055
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056
 
  soname_spec='${libname}${release}${shared_ext}$major'
17057
 
  shlibpath_var=LD_LIBRARY_PATH
17058
 
  shlibpath_overrides_runpath=yes
17059
 
  hardcode_into_libs=yes
17060
 
  # ldd complains unless libraries are executable
17061
 
  postinstall_cmds='chmod +x $lib'
17062
 
  ;;
17063
 
 
17064
 
sunos4*)
17065
 
  version_type=sunos
17066
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17067
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17068
 
  shlibpath_var=LD_LIBRARY_PATH
17069
 
  shlibpath_overrides_runpath=yes
17070
 
  if test "$with_gnu_ld" = yes; then
17071
 
    need_lib_prefix=no
17072
 
  fi
17073
 
  need_version=yes
17074
 
  ;;
17075
 
 
17076
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17077
 
  version_type=linux
17078
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079
 
  soname_spec='${libname}${release}${shared_ext}$major'
17080
 
  shlibpath_var=LD_LIBRARY_PATH
17081
 
  case $host_vendor in
17082
 
    sni)
17083
 
      shlibpath_overrides_runpath=no
17084
 
      need_lib_prefix=no
17085
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17086
 
      runpath_var=LD_RUN_PATH
17087
 
      ;;
17088
 
    siemens)
17089
 
      need_lib_prefix=no
17090
 
      ;;
17091
 
    motorola)
17092
 
      need_lib_prefix=no
17093
 
      need_version=no
17094
 
      shlibpath_overrides_runpath=no
17095
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17096
 
      ;;
17097
 
  esac
17098
 
  ;;
17099
 
 
17100
 
sysv4*MP*)
17101
 
  if test -d /usr/nec ;then
17102
 
    version_type=linux
17103
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17104
 
    soname_spec='$libname${shared_ext}.$major'
17105
 
    shlibpath_var=LD_LIBRARY_PATH
17106
 
  fi
17107
 
  ;;
17108
 
 
17109
 
uts4*)
17110
 
  version_type=linux
17111
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112
 
  soname_spec='${libname}${release}${shared_ext}$major'
17113
 
  shlibpath_var=LD_LIBRARY_PATH
17114
 
  ;;
17115
 
 
17116
 
*)
17117
 
  dynamic_linker=no
17118
 
  ;;
17119
 
esac
17120
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17121
 
echo "${ECHO_T}$dynamic_linker" >&6
17122
 
test "$dynamic_linker" = no && can_build_shared=no
17123
 
 
17124
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17125
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17126
 
hardcode_action_GCJ=
17127
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17128
 
   test -n "$runpath_var GCJ" || \
17129
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17130
 
 
17131
 
  # We can hardcode non-existant directories.
17132
 
  if test "$hardcode_direct_GCJ" != no &&
17133
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17134
 
     # have to relink, otherwise we might link with an installed library
17135
 
     # when we should be linking with a yet-to-be-installed one
17136
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17137
 
     test "$hardcode_minus_L_GCJ" != no; then
17138
 
    # Linking always hardcodes the temporary library directory.
17139
 
    hardcode_action_GCJ=relink
17140
 
  else
17141
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17142
 
    hardcode_action_GCJ=immediate
17143
 
  fi
17144
 
else
17145
 
  # We cannot hardcode anything, or else we can only hardcode existing
17146
 
  # directories.
17147
 
  hardcode_action_GCJ=unsupported
17148
 
fi
17149
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17150
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17151
 
 
17152
 
if test "$hardcode_action_GCJ" = relink; then
17153
 
  # Fast installation is not supported
17154
 
  enable_fast_install=no
17155
 
elif test "$shlibpath_overrides_runpath" = yes ||
17156
 
     test "$enable_shared" = no; then
17157
 
  # Fast installation is not necessary
17158
 
  enable_fast_install=needless
17159
 
fi
17160
 
 
17161
 
striplib=
17162
 
old_striplib=
17163
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17164
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17165
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17166
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17167
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17168
 
  echo "$as_me:$LINENO: result: yes" >&5
17169
 
echo "${ECHO_T}yes" >&6
17170
 
else
17171
 
# FIXME - insert some real tests, host_os isn't really good enough
17172
 
  case $host_os in
17173
 
   darwin*)
17174
 
       if test -n "$STRIP" ; then
17175
 
         striplib="$STRIP -x"
17176
 
         echo "$as_me:$LINENO: result: yes" >&5
17177
 
echo "${ECHO_T}yes" >&6
17178
 
       else
17179
 
  echo "$as_me:$LINENO: result: no" >&5
17180
 
echo "${ECHO_T}no" >&6
17181
 
fi
17182
 
       ;;
17183
 
   *)
17184
 
  echo "$as_me:$LINENO: result: no" >&5
17185
 
echo "${ECHO_T}no" >&6
17186
 
    ;;
17187
 
  esac
17188
 
fi
17189
 
 
17190
 
if test "x$enable_dlopen" != xyes; then
17191
 
  enable_dlopen=unknown
17192
 
  enable_dlopen_self=unknown
17193
 
  enable_dlopen_self_static=unknown
17194
 
else
17195
 
  lt_cv_dlopen=no
17196
 
  lt_cv_dlopen_libs=
17197
 
 
17198
 
  case $host_os in
17199
 
  beos*)
17200
 
    lt_cv_dlopen="load_add_on"
17201
 
    lt_cv_dlopen_libs=
17202
 
    lt_cv_dlopen_self=yes
17203
 
    ;;
17204
 
 
17205
 
  mingw* | pw32*)
17206
 
    lt_cv_dlopen="LoadLibrary"
17207
 
    lt_cv_dlopen_libs=
17208
 
   ;;
17209
 
 
17210
 
  cygwin*)
17211
 
    lt_cv_dlopen="dlopen"
17212
 
    lt_cv_dlopen_libs=
17213
 
   ;;
17214
 
 
17215
 
  darwin*)
17216
 
  # if libdl is installed we need to link against it
17217
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17218
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17219
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17221
 
else
17222
 
  ac_check_lib_save_LIBS=$LIBS
17223
 
LIBS="-ldl  $LIBS"
17224
 
cat >conftest.$ac_ext <<_ACEOF
17225
 
/* confdefs.h.  */
17226
 
_ACEOF
17227
 
cat confdefs.h >>conftest.$ac_ext
17228
 
cat >>conftest.$ac_ext <<_ACEOF
17229
 
/* end confdefs.h.  */
17230
 
 
17231
 
/* Override any gcc2 internal prototype to avoid an error.  */
17232
 
#ifdef __cplusplus
17233
 
extern "C"
17234
 
#endif
17235
 
/* We use char because int might match the return type of a gcc2
17236
 
   builtin and then its argument prototype would still apply.  */
17237
 
char dlopen ();
17238
 
int
17239
 
main ()
17240
 
{
17241
 
dlopen ();
17242
 
  ;
17243
 
  return 0;
17244
 
}
17245
 
_ACEOF
17246
 
rm -f conftest.$ac_objext conftest$ac_exeext
17247
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248
 
  (eval $ac_link) 2>conftest.er1
17249
 
  ac_status=$?
17250
 
  grep -v '^ *+' conftest.er1 >conftest.err
17251
 
  rm -f conftest.er1
17252
 
  cat conftest.err >&5
17253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254
 
  (exit $ac_status); } &&
17255
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257
 
  (eval $ac_try) 2>&5
17258
 
  ac_status=$?
17259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260
 
  (exit $ac_status); }; } &&
17261
 
         { ac_try='test -s conftest$ac_exeext'
17262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263
 
  (eval $ac_try) 2>&5
17264
 
  ac_status=$?
17265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266
 
  (exit $ac_status); }; }; then
17267
 
  ac_cv_lib_dl_dlopen=yes
17268
 
else
17269
 
  echo "$as_me: failed program was:" >&5
17270
 
sed 's/^/| /' conftest.$ac_ext >&5
17271
 
 
17272
 
ac_cv_lib_dl_dlopen=no
17273
 
fi
17274
 
rm -f conftest.err conftest.$ac_objext \
17275
 
      conftest$ac_exeext conftest.$ac_ext
17276
 
LIBS=$ac_check_lib_save_LIBS
17277
 
fi
17278
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17279
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17280
 
if test $ac_cv_lib_dl_dlopen = yes; then
17281
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17282
 
else
17283
 
 
17284
 
    lt_cv_dlopen="dyld"
17285
 
    lt_cv_dlopen_libs=
17286
 
    lt_cv_dlopen_self=yes
17287
 
 
17288
 
fi
17289
 
 
17290
 
   ;;
17291
 
 
17292
 
  *)
17293
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17294
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17295
 
if test "${ac_cv_func_shl_load+set}" = set; then
17296
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17297
 
else
17298
 
  cat >conftest.$ac_ext <<_ACEOF
17299
 
/* confdefs.h.  */
17300
 
_ACEOF
17301
 
cat confdefs.h >>conftest.$ac_ext
17302
 
cat >>conftest.$ac_ext <<_ACEOF
17303
 
/* end confdefs.h.  */
17304
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17305
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17306
 
#define shl_load innocuous_shl_load
17307
 
 
17308
 
/* System header to define __stub macros and hopefully few prototypes,
17309
 
    which can conflict with char shl_load (); below.
17310
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311
 
    <limits.h> exists even on freestanding compilers.  */
17312
 
 
17313
 
#ifdef __STDC__
17314
 
# include <limits.h>
17315
 
#else
17316
 
# include <assert.h>
17317
 
#endif
17318
 
 
17319
 
#undef shl_load
17320
 
 
17321
 
/* Override any gcc2 internal prototype to avoid an error.  */
17322
 
#ifdef __cplusplus
17323
 
extern "C"
17324
 
{
17325
 
#endif
17326
 
/* We use char because int might match the return type of a gcc2
17327
 
   builtin and then its argument prototype would still apply.  */
17328
 
char shl_load ();
17329
 
/* The GNU C library defines this for functions which it implements
17330
 
    to always fail with ENOSYS.  Some functions are actually named
17331
 
    something starting with __ and the normal name is an alias.  */
17332
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17333
 
choke me
17334
 
#else
17335
 
char (*f) () = shl_load;
17336
 
#endif
17337
 
#ifdef __cplusplus
17338
 
}
17339
 
#endif
17340
 
 
17341
 
int
17342
 
main ()
17343
 
{
17344
 
return f != shl_load;
17345
 
  ;
17346
 
  return 0;
17347
 
}
17348
 
_ACEOF
17349
 
rm -f conftest.$ac_objext conftest$ac_exeext
17350
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351
 
  (eval $ac_link) 2>conftest.er1
17352
 
  ac_status=$?
17353
 
  grep -v '^ *+' conftest.er1 >conftest.err
17354
 
  rm -f conftest.er1
17355
 
  cat conftest.err >&5
17356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357
 
  (exit $ac_status); } &&
17358
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17359
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360
 
  (eval $ac_try) 2>&5
17361
 
  ac_status=$?
17362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363
 
  (exit $ac_status); }; } &&
17364
 
         { ac_try='test -s conftest$ac_exeext'
17365
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366
 
  (eval $ac_try) 2>&5
17367
 
  ac_status=$?
17368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369
 
  (exit $ac_status); }; }; then
17370
 
  ac_cv_func_shl_load=yes
17371
 
else
17372
 
  echo "$as_me: failed program was:" >&5
17373
 
sed 's/^/| /' conftest.$ac_ext >&5
17374
 
 
17375
 
ac_cv_func_shl_load=no
17376
 
fi
17377
 
rm -f conftest.err conftest.$ac_objext \
17378
 
      conftest$ac_exeext conftest.$ac_ext
17379
 
fi
17380
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17381
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17382
 
if test $ac_cv_func_shl_load = yes; then
17383
 
  lt_cv_dlopen="shl_load"
17384
 
else
17385
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17386
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17387
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17388
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17389
 
else
17390
 
  ac_check_lib_save_LIBS=$LIBS
17391
 
LIBS="-ldld  $LIBS"
17392
 
cat >conftest.$ac_ext <<_ACEOF
17393
 
/* confdefs.h.  */
17394
 
_ACEOF
17395
 
cat confdefs.h >>conftest.$ac_ext
17396
 
cat >>conftest.$ac_ext <<_ACEOF
17397
 
/* end confdefs.h.  */
17398
 
 
17399
 
/* Override any gcc2 internal prototype to avoid an error.  */
17400
 
#ifdef __cplusplus
17401
 
extern "C"
17402
 
#endif
17403
 
/* We use char because int might match the return type of a gcc2
17404
 
   builtin and then its argument prototype would still apply.  */
17405
 
char shl_load ();
17406
 
int
17407
 
main ()
17408
 
{
17409
 
shl_load ();
17410
 
  ;
17411
 
  return 0;
17412
 
}
17413
 
_ACEOF
17414
 
rm -f conftest.$ac_objext conftest$ac_exeext
17415
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416
 
  (eval $ac_link) 2>conftest.er1
17417
 
  ac_status=$?
17418
 
  grep -v '^ *+' conftest.er1 >conftest.err
17419
 
  rm -f conftest.er1
17420
 
  cat conftest.err >&5
17421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422
 
  (exit $ac_status); } &&
17423
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17424
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425
 
  (eval $ac_try) 2>&5
17426
 
  ac_status=$?
17427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428
 
  (exit $ac_status); }; } &&
17429
 
         { ac_try='test -s conftest$ac_exeext'
17430
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431
 
  (eval $ac_try) 2>&5
17432
 
  ac_status=$?
17433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434
 
  (exit $ac_status); }; }; then
17435
 
  ac_cv_lib_dld_shl_load=yes
17436
 
else
17437
 
  echo "$as_me: failed program was:" >&5
17438
 
sed 's/^/| /' conftest.$ac_ext >&5
17439
 
 
17440
 
ac_cv_lib_dld_shl_load=no
17441
 
fi
17442
 
rm -f conftest.err conftest.$ac_objext \
17443
 
      conftest$ac_exeext conftest.$ac_ext
17444
 
LIBS=$ac_check_lib_save_LIBS
17445
 
fi
17446
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17447
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17448
 
if test $ac_cv_lib_dld_shl_load = yes; then
17449
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17450
 
else
17451
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17452
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17453
 
if test "${ac_cv_func_dlopen+set}" = set; then
17454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17455
 
else
17456
 
  cat >conftest.$ac_ext <<_ACEOF
17457
 
/* confdefs.h.  */
17458
 
_ACEOF
17459
 
cat confdefs.h >>conftest.$ac_ext
17460
 
cat >>conftest.$ac_ext <<_ACEOF
17461
 
/* end confdefs.h.  */
17462
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17463
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17464
 
#define dlopen innocuous_dlopen
17465
 
 
17466
 
/* System header to define __stub macros and hopefully few prototypes,
17467
 
    which can conflict with char dlopen (); below.
17468
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17469
 
    <limits.h> exists even on freestanding compilers.  */
17470
 
 
17471
 
#ifdef __STDC__
17472
 
# include <limits.h>
17473
 
#else
17474
 
# include <assert.h>
17475
 
#endif
17476
 
 
17477
 
#undef dlopen
17478
 
 
17479
 
/* Override any gcc2 internal prototype to avoid an error.  */
17480
 
#ifdef __cplusplus
17481
 
extern "C"
17482
 
{
17483
 
#endif
17484
 
/* We use char because int might match the return type of a gcc2
17485
 
   builtin and then its argument prototype would still apply.  */
17486
 
char dlopen ();
17487
 
/* The GNU C library defines this for functions which it implements
17488
 
    to always fail with ENOSYS.  Some functions are actually named
17489
 
    something starting with __ and the normal name is an alias.  */
17490
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17491
 
choke me
17492
 
#else
17493
 
char (*f) () = dlopen;
17494
 
#endif
17495
 
#ifdef __cplusplus
17496
 
}
17497
 
#endif
17498
 
 
17499
 
int
17500
 
main ()
17501
 
{
17502
 
return f != dlopen;
17503
 
  ;
17504
 
  return 0;
17505
 
}
17506
 
_ACEOF
17507
 
rm -f conftest.$ac_objext conftest$ac_exeext
17508
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509
 
  (eval $ac_link) 2>conftest.er1
17510
 
  ac_status=$?
17511
 
  grep -v '^ *+' conftest.er1 >conftest.err
17512
 
  rm -f conftest.er1
17513
 
  cat conftest.err >&5
17514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515
 
  (exit $ac_status); } &&
17516
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518
 
  (eval $ac_try) 2>&5
17519
 
  ac_status=$?
17520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521
 
  (exit $ac_status); }; } &&
17522
 
         { ac_try='test -s conftest$ac_exeext'
17523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524
 
  (eval $ac_try) 2>&5
17525
 
  ac_status=$?
17526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527
 
  (exit $ac_status); }; }; then
17528
 
  ac_cv_func_dlopen=yes
17529
 
else
17530
 
  echo "$as_me: failed program was:" >&5
17531
 
sed 's/^/| /' conftest.$ac_ext >&5
17532
 
 
17533
 
ac_cv_func_dlopen=no
17534
 
fi
17535
 
rm -f conftest.err conftest.$ac_objext \
17536
 
      conftest$ac_exeext conftest.$ac_ext
17537
 
fi
17538
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17539
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17540
 
if test $ac_cv_func_dlopen = yes; then
17541
 
  lt_cv_dlopen="dlopen"
17542
 
else
17543
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17544
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17545
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17546
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17547
 
else
17548
 
  ac_check_lib_save_LIBS=$LIBS
17549
 
LIBS="-ldl  $LIBS"
17550
 
cat >conftest.$ac_ext <<_ACEOF
17551
 
/* confdefs.h.  */
17552
 
_ACEOF
17553
 
cat confdefs.h >>conftest.$ac_ext
17554
 
cat >>conftest.$ac_ext <<_ACEOF
17555
 
/* end confdefs.h.  */
17556
 
 
17557
 
/* Override any gcc2 internal prototype to avoid an error.  */
17558
 
#ifdef __cplusplus
17559
 
extern "C"
17560
 
#endif
17561
 
/* We use char because int might match the return type of a gcc2
17562
 
   builtin and then its argument prototype would still apply.  */
17563
 
char dlopen ();
17564
 
int
17565
 
main ()
17566
 
{
17567
 
dlopen ();
17568
 
  ;
17569
 
  return 0;
17570
 
}
17571
 
_ACEOF
17572
 
rm -f conftest.$ac_objext conftest$ac_exeext
17573
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574
 
  (eval $ac_link) 2>conftest.er1
17575
 
  ac_status=$?
17576
 
  grep -v '^ *+' conftest.er1 >conftest.err
17577
 
  rm -f conftest.er1
17578
 
  cat conftest.err >&5
17579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580
 
  (exit $ac_status); } &&
17581
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17582
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583
 
  (eval $ac_try) 2>&5
17584
 
  ac_status=$?
17585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
 
  (exit $ac_status); }; } &&
17587
 
         { ac_try='test -s conftest$ac_exeext'
17588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589
 
  (eval $ac_try) 2>&5
17590
 
  ac_status=$?
17591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592
 
  (exit $ac_status); }; }; then
17593
 
  ac_cv_lib_dl_dlopen=yes
17594
 
else
17595
 
  echo "$as_me: failed program was:" >&5
17596
 
sed 's/^/| /' conftest.$ac_ext >&5
17597
 
 
17598
 
ac_cv_lib_dl_dlopen=no
17599
 
fi
17600
 
rm -f conftest.err conftest.$ac_objext \
17601
 
      conftest$ac_exeext conftest.$ac_ext
17602
 
LIBS=$ac_check_lib_save_LIBS
17603
 
fi
17604
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17605
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17606
 
if test $ac_cv_lib_dl_dlopen = yes; then
17607
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17608
 
else
17609
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17610
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17611
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17612
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17613
 
else
17614
 
  ac_check_lib_save_LIBS=$LIBS
17615
 
LIBS="-lsvld  $LIBS"
17616
 
cat >conftest.$ac_ext <<_ACEOF
17617
 
/* confdefs.h.  */
17618
 
_ACEOF
17619
 
cat confdefs.h >>conftest.$ac_ext
17620
 
cat >>conftest.$ac_ext <<_ACEOF
17621
 
/* end confdefs.h.  */
17622
 
 
17623
 
/* Override any gcc2 internal prototype to avoid an error.  */
17624
 
#ifdef __cplusplus
17625
 
extern "C"
17626
 
#endif
17627
 
/* We use char because int might match the return type of a gcc2
17628
 
   builtin and then its argument prototype would still apply.  */
17629
 
char dlopen ();
17630
 
int
17631
 
main ()
17632
 
{
17633
 
dlopen ();
17634
 
  ;
17635
 
  return 0;
17636
 
}
17637
 
_ACEOF
17638
 
rm -f conftest.$ac_objext conftest$ac_exeext
17639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640
 
  (eval $ac_link) 2>conftest.er1
17641
 
  ac_status=$?
17642
 
  grep -v '^ *+' conftest.er1 >conftest.err
17643
 
  rm -f conftest.er1
17644
 
  cat conftest.err >&5
17645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646
 
  (exit $ac_status); } &&
17647
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649
 
  (eval $ac_try) 2>&5
17650
 
  ac_status=$?
17651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652
 
  (exit $ac_status); }; } &&
17653
 
         { ac_try='test -s conftest$ac_exeext'
17654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655
 
  (eval $ac_try) 2>&5
17656
 
  ac_status=$?
17657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658
 
  (exit $ac_status); }; }; then
17659
 
  ac_cv_lib_svld_dlopen=yes
17660
 
else
17661
 
  echo "$as_me: failed program was:" >&5
17662
 
sed 's/^/| /' conftest.$ac_ext >&5
17663
 
 
17664
 
ac_cv_lib_svld_dlopen=no
17665
 
fi
17666
 
rm -f conftest.err conftest.$ac_objext \
17667
 
      conftest$ac_exeext conftest.$ac_ext
17668
 
LIBS=$ac_check_lib_save_LIBS
17669
 
fi
17670
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17671
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17672
 
if test $ac_cv_lib_svld_dlopen = yes; then
17673
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17674
 
else
17675
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17676
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17677
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17678
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17679
 
else
17680
 
  ac_check_lib_save_LIBS=$LIBS
17681
 
LIBS="-ldld  $LIBS"
17682
 
cat >conftest.$ac_ext <<_ACEOF
17683
 
/* confdefs.h.  */
17684
 
_ACEOF
17685
 
cat confdefs.h >>conftest.$ac_ext
17686
 
cat >>conftest.$ac_ext <<_ACEOF
17687
 
/* end confdefs.h.  */
17688
 
 
17689
 
/* Override any gcc2 internal prototype to avoid an error.  */
17690
 
#ifdef __cplusplus
17691
 
extern "C"
17692
 
#endif
17693
 
/* We use char because int might match the return type of a gcc2
17694
 
   builtin and then its argument prototype would still apply.  */
17695
 
char dld_link ();
17696
 
int
17697
 
main ()
17698
 
{
17699
 
dld_link ();
17700
 
  ;
17701
 
  return 0;
17702
 
}
17703
 
_ACEOF
17704
 
rm -f conftest.$ac_objext conftest$ac_exeext
17705
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706
 
  (eval $ac_link) 2>conftest.er1
17707
 
  ac_status=$?
17708
 
  grep -v '^ *+' conftest.er1 >conftest.err
17709
 
  rm -f conftest.er1
17710
 
  cat conftest.err >&5
17711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712
 
  (exit $ac_status); } &&
17713
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17714
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715
 
  (eval $ac_try) 2>&5
17716
 
  ac_status=$?
17717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718
 
  (exit $ac_status); }; } &&
17719
 
         { ac_try='test -s conftest$ac_exeext'
17720
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721
 
  (eval $ac_try) 2>&5
17722
 
  ac_status=$?
17723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724
 
  (exit $ac_status); }; }; then
17725
 
  ac_cv_lib_dld_dld_link=yes
17726
 
else
17727
 
  echo "$as_me: failed program was:" >&5
17728
 
sed 's/^/| /' conftest.$ac_ext >&5
17729
 
 
17730
 
ac_cv_lib_dld_dld_link=no
17731
 
fi
17732
 
rm -f conftest.err conftest.$ac_objext \
17733
 
      conftest$ac_exeext conftest.$ac_ext
17734
 
LIBS=$ac_check_lib_save_LIBS
17735
 
fi
17736
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17737
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17738
 
if test $ac_cv_lib_dld_dld_link = yes; then
17739
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17740
 
fi
17741
 
 
17742
 
 
17743
 
fi
17744
 
 
17745
 
 
17746
 
fi
17747
 
 
17748
 
 
17749
 
fi
17750
 
 
17751
 
 
17752
 
fi
17753
 
 
17754
 
 
17755
 
fi
17756
 
 
17757
 
    ;;
17758
 
  esac
17759
 
 
17760
 
  if test "x$lt_cv_dlopen" != xno; then
17761
 
    enable_dlopen=yes
17762
 
  else
17763
 
    enable_dlopen=no
17764
 
  fi
17765
 
 
17766
 
  case $lt_cv_dlopen in
17767
 
  dlopen)
17768
 
    save_CPPFLAGS="$CPPFLAGS"
17769
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17770
 
 
17771
 
    save_LDFLAGS="$LDFLAGS"
17772
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17773
 
 
17774
 
    save_LIBS="$LIBS"
17775
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17776
 
 
17777
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17778
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17779
 
if test "${lt_cv_dlopen_self+set}" = set; then
17780
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17781
 
else
17782
 
          if test "$cross_compiling" = yes; then :
17783
 
  lt_cv_dlopen_self=cross
17784
 
else
17785
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17786
 
  lt_status=$lt_dlunknown
17787
 
  cat > conftest.$ac_ext <<EOF
17788
 
#line 17788 "configure"
17789
 
#include "confdefs.h"
17790
 
 
17791
 
#if HAVE_DLFCN_H
17792
 
#include <dlfcn.h>
17793
 
#endif
17794
 
 
17795
 
#include <stdio.h>
17796
 
 
17797
 
#ifdef RTLD_GLOBAL
17798
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17799
 
#else
17800
 
#  ifdef DL_GLOBAL
17801
 
#    define LT_DLGLOBAL         DL_GLOBAL
17802
 
#  else
17803
 
#    define LT_DLGLOBAL         0
17804
 
#  endif
17805
 
#endif
17806
 
 
17807
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17808
 
   find out it does not work in some platform. */
17809
 
#ifndef LT_DLLAZY_OR_NOW
17810
 
#  ifdef RTLD_LAZY
17811
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17812
 
#  else
17813
 
#    ifdef DL_LAZY
17814
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17815
 
#    else
17816
 
#      ifdef RTLD_NOW
17817
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17818
 
#      else
17819
 
#        ifdef DL_NOW
17820
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17821
 
#        else
17822
 
#          define LT_DLLAZY_OR_NOW      0
17823
 
#        endif
17824
 
#      endif
17825
 
#    endif
17826
 
#  endif
17827
 
#endif
17828
 
 
17829
 
#ifdef __cplusplus
17830
 
extern "C" void exit (int);
17831
 
#endif
17832
 
 
17833
 
void fnord() { int i=42;}
17834
 
int main ()
17835
 
{
17836
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17837
 
  int status = $lt_dlunknown;
17838
 
 
17839
 
  if (self)
17840
 
    {
17841
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17842
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17843
 
      /* dlclose (self); */
17844
 
    }
17845
 
 
17846
 
    exit (status);
17847
 
}
17848
 
EOF
17849
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17850
 
  (eval $ac_link) 2>&5
17851
 
  ac_status=$?
17852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17854
 
    (./conftest; exit; ) 2>/dev/null
17855
 
    lt_status=$?
17856
 
    case x$lt_status in
17857
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17858
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17859
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17860
 
    esac
17861
 
  else :
17862
 
    # compilation failed
17863
 
    lt_cv_dlopen_self=no
17864
 
  fi
17865
 
fi
17866
 
rm -fr conftest*
17867
 
 
17868
 
 
17869
 
fi
17870
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17871
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17872
 
 
17873
 
    if test "x$lt_cv_dlopen_self" = xyes; then
17874
 
      LDFLAGS="$LDFLAGS $link_static_flag"
17875
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17876
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17877
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
17878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17879
 
else
17880
 
          if test "$cross_compiling" = yes; then :
17881
 
  lt_cv_dlopen_self_static=cross
17882
 
else
17883
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17884
 
  lt_status=$lt_dlunknown
17885
 
  cat > conftest.$ac_ext <<EOF
17886
 
#line 17886 "configure"
17887
 
#include "confdefs.h"
17888
 
 
17889
 
#if HAVE_DLFCN_H
17890
 
#include <dlfcn.h>
17891
 
#endif
17892
 
 
17893
 
#include <stdio.h>
17894
 
 
17895
 
#ifdef RTLD_GLOBAL
17896
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17897
 
#else
17898
 
#  ifdef DL_GLOBAL
17899
 
#    define LT_DLGLOBAL         DL_GLOBAL
17900
 
#  else
17901
 
#    define LT_DLGLOBAL         0
17902
 
#  endif
17903
 
#endif
17904
 
 
17905
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17906
 
   find out it does not work in some platform. */
17907
 
#ifndef LT_DLLAZY_OR_NOW
17908
 
#  ifdef RTLD_LAZY
17909
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17910
 
#  else
17911
 
#    ifdef DL_LAZY
17912
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17913
 
#    else
17914
 
#      ifdef RTLD_NOW
17915
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17916
 
#      else
17917
 
#        ifdef DL_NOW
17918
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17919
 
#        else
17920
 
#          define LT_DLLAZY_OR_NOW      0
17921
 
#        endif
17922
 
#      endif
17923
 
#    endif
17924
 
#  endif
17925
 
#endif
17926
 
 
17927
 
#ifdef __cplusplus
17928
 
extern "C" void exit (int);
17929
 
#endif
17930
 
 
17931
 
void fnord() { int i=42;}
17932
 
int main ()
17933
 
{
17934
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17935
 
  int status = $lt_dlunknown;
17936
 
 
17937
 
  if (self)
17938
 
    {
17939
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17940
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17941
 
      /* dlclose (self); */
17942
 
    }
17943
 
 
17944
 
    exit (status);
17945
 
}
17946
 
EOF
17947
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948
 
  (eval $ac_link) 2>&5
17949
 
  ac_status=$?
17950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17952
 
    (./conftest; exit; ) 2>/dev/null
17953
 
    lt_status=$?
17954
 
    case x$lt_status in
17955
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17956
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17957
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17958
 
    esac
17959
 
  else :
17960
 
    # compilation failed
17961
 
    lt_cv_dlopen_self_static=no
17962
 
  fi
17963
 
fi
17964
 
rm -fr conftest*
17965
 
 
17966
 
 
17967
 
fi
17968
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17969
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17970
 
    fi
17971
 
 
17972
 
    CPPFLAGS="$save_CPPFLAGS"
17973
 
    LDFLAGS="$save_LDFLAGS"
17974
 
    LIBS="$save_LIBS"
17975
 
    ;;
17976
 
  esac
17977
 
 
17978
 
  case $lt_cv_dlopen_self in
17979
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17980
 
  *) enable_dlopen_self=unknown ;;
17981
 
  esac
17982
 
 
17983
 
  case $lt_cv_dlopen_self_static in
17984
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17985
 
  *) enable_dlopen_self_static=unknown ;;
17986
 
  esac
17987
 
fi
17988
 
 
17989
 
 
17990
 
# The else clause should only fire when bootstrapping the
17991
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17992
 
# with your package, and you will get complaints that there are
17993
 
# no rules to generate ltmain.sh.
17994
 
if test -f "$ltmain"; then
17995
 
  # See if we are running on zsh, and set the options which allow our commands through
17996
 
  # without removal of \ escapes.
17997
 
  if test -n "${ZSH_VERSION+set}" ; then
17998
 
    setopt NO_GLOB_SUBST
17999
 
  fi
18000
 
  # Now quote all the things that may contain metacharacters while being
18001
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18002
 
  # variables and quote the copies for generation of the libtool script.
18003
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18004
 
    SED SHELL STRIP \
18005
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18006
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18007
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18008
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18009
 
    lt_cv_sys_global_symbol_to_c_name_address \
18010
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18011
 
    old_postinstall_cmds old_postuninstall_cmds \
18012
 
    compiler_GCJ \
18013
 
    CC_GCJ \
18014
 
    LD_GCJ \
18015
 
    lt_prog_compiler_wl_GCJ \
18016
 
    lt_prog_compiler_pic_GCJ \
18017
 
    lt_prog_compiler_static_GCJ \
18018
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18019
 
    export_dynamic_flag_spec_GCJ \
18020
 
    thread_safe_flag_spec_GCJ \
18021
 
    whole_archive_flag_spec_GCJ \
18022
 
    enable_shared_with_static_runtimes_GCJ \
18023
 
    old_archive_cmds_GCJ \
18024
 
    old_archive_from_new_cmds_GCJ \
18025
 
    predep_objects_GCJ \
18026
 
    postdep_objects_GCJ \
18027
 
    predeps_GCJ \
18028
 
    postdeps_GCJ \
18029
 
    compiler_lib_search_path_GCJ \
18030
 
    archive_cmds_GCJ \
18031
 
    archive_expsym_cmds_GCJ \
18032
 
    postinstall_cmds_GCJ \
18033
 
    postuninstall_cmds_GCJ \
18034
 
    old_archive_from_expsyms_cmds_GCJ \
18035
 
    allow_undefined_flag_GCJ \
18036
 
    no_undefined_flag_GCJ \
18037
 
    export_symbols_cmds_GCJ \
18038
 
    hardcode_libdir_flag_spec_GCJ \
18039
 
    hardcode_libdir_flag_spec_ld_GCJ \
18040
 
    hardcode_libdir_separator_GCJ \
18041
 
    hardcode_automatic_GCJ \
18042
 
    module_cmds_GCJ \
18043
 
    module_expsym_cmds_GCJ \
18044
 
    lt_cv_prog_compiler_c_o_GCJ \
18045
 
    exclude_expsyms_GCJ \
18046
 
    include_expsyms_GCJ; do
18047
 
 
18048
 
    case $var in
18049
 
    old_archive_cmds_GCJ | \
18050
 
    old_archive_from_new_cmds_GCJ | \
18051
 
    archive_cmds_GCJ | \
18052
 
    archive_expsym_cmds_GCJ | \
18053
 
    module_cmds_GCJ | \
18054
 
    module_expsym_cmds_GCJ | \
18055
 
    old_archive_from_expsyms_cmds_GCJ | \
18056
 
    export_symbols_cmds_GCJ | \
18057
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18058
 
    postinstall_cmds | postuninstall_cmds | \
18059
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18060
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18061
 
      # Double-quote double-evaled strings.
18062
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18063
 
      ;;
18064
 
    *)
18065
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18066
 
      ;;
18067
 
    esac
18068
 
  done
18069
 
 
18070
 
  case $lt_echo in
18071
 
  *'\$0 --fallback-echo"')
18072
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18073
 
    ;;
18074
 
  esac
18075
 
 
18076
 
cfgfile="$ofile"
18077
 
 
18078
 
  cat <<__EOF__ >> "$cfgfile"
18079
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18080
 
 
18081
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18082
 
 
18083
 
# Shell to use when invoking shell scripts.
18084
 
SHELL=$lt_SHELL
18085
 
 
18086
 
# Whether or not to build shared libraries.
18087
 
build_libtool_libs=$enable_shared
18088
 
 
18089
 
# Whether or not to build static libraries.
18090
 
build_old_libs=$enable_static
18091
 
 
18092
 
# Whether or not to add -lc for building shared libraries.
18093
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18094
 
 
18095
 
# Whether or not to disallow shared libs when runtime libs are static
18096
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18097
 
 
18098
 
# Whether or not to optimize for fast installation.
18099
 
fast_install=$enable_fast_install
18100
 
 
18101
 
# The host system.
18102
 
host_alias=$host_alias
18103
 
host=$host
18104
 
 
18105
 
# An echo program that does not interpret backslashes.
18106
 
echo=$lt_echo
18107
 
 
18108
 
# The archiver.
18109
 
AR=$lt_AR
18110
 
AR_FLAGS=$lt_AR_FLAGS
18111
 
 
18112
 
# A C compiler.
18113
 
LTCC=$lt_LTCC
18114
 
 
18115
 
# A language-specific compiler.
18116
 
CC=$lt_compiler_GCJ
18117
 
 
18118
 
# Is the compiler the GNU C compiler?
18119
 
with_gcc=$GCC_GCJ
18120
 
 
18121
 
# An ERE matcher.
18122
 
EGREP=$lt_EGREP
18123
 
 
18124
 
# The linker used to build libraries.
18125
 
LD=$lt_LD_GCJ
18126
 
 
18127
 
# Whether we need hard or soft links.
18128
 
LN_S=$lt_LN_S
18129
 
 
18130
 
# A BSD-compatible nm program.
18131
 
NM=$lt_NM
18132
 
 
18133
 
# A symbol stripping program
18134
 
STRIP=$lt_STRIP
18135
 
 
18136
 
# Used to examine libraries when file_magic_cmd begins "file"
18137
 
MAGIC_CMD=$MAGIC_CMD
18138
 
 
18139
 
# Used on cygwin: DLL creation program.
18140
 
DLLTOOL="$DLLTOOL"
18141
 
 
18142
 
# Used on cygwin: object dumper.
18143
 
OBJDUMP="$OBJDUMP"
18144
 
 
18145
 
# Used on cygwin: assembler.
18146
 
AS="$AS"
18147
 
 
18148
 
# The name of the directory that contains temporary libtool files.
18149
 
objdir=$objdir
18150
 
 
18151
 
# How to create reloadable object files.
18152
 
reload_flag=$lt_reload_flag
18153
 
reload_cmds=$lt_reload_cmds
18154
 
 
18155
 
# How to pass a linker flag through the compiler.
18156
 
wl=$lt_lt_prog_compiler_wl_GCJ
18157
 
 
18158
 
# Object file suffix (normally "o").
18159
 
objext="$ac_objext"
18160
 
 
18161
 
# Old archive suffix (normally "a").
18162
 
libext="$libext"
18163
 
 
18164
 
# Shared library suffix (normally ".so").
18165
 
shrext='$shrext'
18166
 
 
18167
 
# Executable file suffix (normally "").
18168
 
exeext="$exeext"
18169
 
 
18170
 
# Additional compiler flags for building library objects.
18171
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18172
 
pic_mode=$pic_mode
18173
 
 
18174
 
# What is the maximum length of a command?
18175
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18176
 
 
18177
 
# Does compiler simultaneously support -c and -o options?
18178
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18179
 
 
18180
 
# Must we lock files when doing compilation ?
18181
 
need_locks=$lt_need_locks
18182
 
 
18183
 
# Do we need the lib prefix for modules?
18184
 
need_lib_prefix=$need_lib_prefix
18185
 
 
18186
 
# Do we need a version for libraries?
18187
 
need_version=$need_version
18188
 
 
18189
 
# Whether dlopen is supported.
18190
 
dlopen_support=$enable_dlopen
18191
 
 
18192
 
# Whether dlopen of programs is supported.
18193
 
dlopen_self=$enable_dlopen_self
18194
 
 
18195
 
# Whether dlopen of statically linked programs is supported.
18196
 
dlopen_self_static=$enable_dlopen_self_static
18197
 
 
18198
 
# Compiler flag to prevent dynamic linking.
18199
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18200
 
 
18201
 
# Compiler flag to turn off builtin functions.
18202
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18203
 
 
18204
 
# Compiler flag to allow reflexive dlopens.
18205
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18206
 
 
18207
 
# Compiler flag to generate shared objects directly from archives.
18208
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18209
 
 
18210
 
# Compiler flag to generate thread-safe objects.
18211
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18212
 
 
18213
 
# Library versioning type.
18214
 
version_type=$version_type
18215
 
 
18216
 
# Format of library name prefix.
18217
 
libname_spec=$lt_libname_spec
18218
 
 
18219
 
# List of archive names.  First name is the real one, the rest are links.
18220
 
# The last name is the one that the linker finds with -lNAME.
18221
 
library_names_spec=$lt_library_names_spec
18222
 
 
18223
 
# The coded name of the library, if different from the real name.
18224
 
soname_spec=$lt_soname_spec
18225
 
 
18226
 
# Commands used to build and install an old-style archive.
18227
 
RANLIB=$lt_RANLIB
18228
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
18229
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18230
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
 
 
18232
 
# Create an old-style archive from a shared archive.
18233
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18234
 
 
18235
 
# Create a temporary old-style archive to link instead of a shared archive.
18236
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18237
 
 
18238
 
# Commands used to build and install a shared archive.
18239
 
archive_cmds=$lt_archive_cmds_GCJ
18240
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18241
 
postinstall_cmds=$lt_postinstall_cmds
18242
 
postuninstall_cmds=$lt_postuninstall_cmds
18243
 
 
18244
 
# Commands used to build a loadable module (assumed same as above if empty)
18245
 
module_cmds=$lt_module_cmds_GCJ
18246
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18247
 
 
18248
 
# Commands to strip libraries.
18249
 
old_striplib=$lt_old_striplib
18250
 
striplib=$lt_striplib
18251
 
 
18252
 
# Dependencies to place before the objects being linked to create a
18253
 
# shared library.
18254
 
predep_objects=$lt_predep_objects_GCJ
18255
 
 
18256
 
# Dependencies to place after the objects being linked to create a
18257
 
# shared library.
18258
 
postdep_objects=$lt_postdep_objects_GCJ
18259
 
 
18260
 
# Dependencies to place before the objects being linked to create a
18261
 
# shared library.
18262
 
predeps=$lt_predeps_GCJ
18263
 
 
18264
 
# Dependencies to place after the objects being linked to create a
18265
 
# shared library.
18266
 
postdeps=$lt_postdeps_GCJ
18267
 
 
18268
 
# The library search path used internally by the compiler when linking
18269
 
# a shared library.
18270
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18271
 
 
18272
 
# Method to check whether dependent libraries are shared objects.
18273
 
deplibs_check_method=$lt_deplibs_check_method
18274
 
 
18275
 
# Command to use when deplibs_check_method == file_magic.
18276
 
file_magic_cmd=$lt_file_magic_cmd
18277
 
 
18278
 
# Flag that allows shared libraries with undefined symbols to be built.
18279
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18280
 
 
18281
 
# Flag that forces no undefined symbols.
18282
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
18283
 
 
18284
 
# Commands used to finish a libtool library installation in a directory.
18285
 
finish_cmds=$lt_finish_cmds
18286
 
 
18287
 
# Same as above, but a single script fragment to be evaled but not shown.
18288
 
finish_eval=$lt_finish_eval
18289
 
 
18290
 
# Take the output of nm and produce a listing of raw symbols and C names.
18291
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18292
 
 
18293
 
# Transform the output of nm in a proper C declaration
18294
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18295
 
 
18296
 
# Transform the output of nm in a C name address pair
18297
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18298
 
 
18299
 
# This is the shared library runtime path variable.
18300
 
runpath_var=$runpath_var
18301
 
 
18302
 
# This is the shared library path variable.
18303
 
shlibpath_var=$shlibpath_var
18304
 
 
18305
 
# Is shlibpath searched before the hard-coded library search path?
18306
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18307
 
 
18308
 
# How to hardcode a shared library path into an executable.
18309
 
hardcode_action=$hardcode_action_GCJ
18310
 
 
18311
 
# Whether we should hardcode library paths into libraries.
18312
 
hardcode_into_libs=$hardcode_into_libs
18313
 
 
18314
 
# Flag to hardcode \$libdir into a binary during linking.
18315
 
# This must work even if \$libdir does not exist.
18316
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18317
 
 
18318
 
# If ld is used when linking, flag to hardcode \$libdir into
18319
 
# a binary during linking. This must work even if \$libdir does
18320
 
# not exist.
18321
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18322
 
 
18323
 
# Whether we need a single -rpath flag with a separated argument.
18324
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18325
 
 
18326
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327
 
# resulting binary.
18328
 
hardcode_direct=$hardcode_direct_GCJ
18329
 
 
18330
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331
 
# resulting binary.
18332
 
hardcode_minus_L=$hardcode_minus_L_GCJ
18333
 
 
18334
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335
 
# the resulting binary.
18336
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18337
 
 
18338
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18339
 
# and all subsequent libraries and executables linked against it.
18340
 
hardcode_automatic=$hardcode_automatic_GCJ
18341
 
 
18342
 
# Variables whose values should be saved in libtool wrapper scripts and
18343
 
# restored at relink time.
18344
 
variables_saved_for_relink="$variables_saved_for_relink"
18345
 
 
18346
 
# Whether libtool must link a program against all its dependency libraries.
18347
 
link_all_deplibs=$link_all_deplibs_GCJ
18348
 
 
18349
 
# Compile-time system search path for libraries
18350
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18351
 
 
18352
 
# Run-time system search path for libraries
18353
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18354
 
 
18355
 
# Fix the shell variable \$srcfile for the compiler.
18356
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
18357
 
 
18358
 
# Set to yes if exported symbols are required.
18359
 
always_export_symbols=$always_export_symbols_GCJ
18360
 
 
18361
 
# The commands to list exported symbols.
18362
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18363
 
 
18364
 
# The commands to extract the exported symbol list from a shared archive.
18365
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18366
 
 
18367
 
# Symbols that should not be listed in the preloaded symbols.
18368
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
18369
 
 
18370
 
# Symbols that must always be exported.
18371
 
include_expsyms=$lt_include_expsyms_GCJ
18372
 
 
18373
 
# ### END LIBTOOL TAG CONFIG: $tagname
18374
 
 
18375
 
__EOF__
18376
 
 
18377
 
 
18378
 
else
18379
 
  # If there is no Makefile yet, we rely on a make rule to execute
18380
 
  # `config.status --recheck' to rerun these tests and create the
18381
 
  # libtool script then.
18382
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18383
 
  if test -f "$ltmain_in"; then
18384
 
    test -f Makefile && make "$ltmain"
18385
 
  fi
18386
 
fi
18387
 
 
18388
 
 
18389
 
ac_ext=c
18390
 
ac_cpp='$CPP $CPPFLAGS'
18391
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
 
 
18395
 
CC="$lt_save_CC"
18396
 
 
18397
 
        else
18398
 
          tagname=""
18399
 
        fi
18400
 
        ;;
18401
 
 
18402
 
      RC)
18403
 
 
18404
 
 
18405
 
 
18406
 
# Source file extension for RC test sources.
18407
 
ac_ext=rc
18408
 
 
18409
 
# Object file extension for compiled RC test sources.
18410
 
objext=o
18411
 
objext_RC=$objext
18412
 
 
18413
 
# Code to be used in simple compile tests
18414
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18415
 
 
18416
 
# Code to be used in simple link tests
18417
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18418
 
 
18419
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18420
 
 
18421
 
# If no C compiler was specified, use CC.
18422
 
LTCC=${LTCC-"$CC"}
18423
 
 
18424
 
# Allow CC to be a program name with arguments.
18425
 
compiler=$CC
18426
 
 
18427
 
 
18428
 
# Allow CC to be a program name with arguments.
18429
 
lt_save_CC="$CC"
18430
 
CC=${RC-"windres"}
18431
 
compiler=$CC
18432
 
compiler_RC=$CC
18433
 
lt_cv_prog_compiler_c_o_RC=yes
18434
 
 
18435
 
# The else clause should only fire when bootstrapping the
18436
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18437
 
# with your package, and you will get complaints that there are
18438
 
# no rules to generate ltmain.sh.
18439
 
if test -f "$ltmain"; then
18440
 
  # See if we are running on zsh, and set the options which allow our commands through
18441
 
  # without removal of \ escapes.
18442
 
  if test -n "${ZSH_VERSION+set}" ; then
18443
 
    setopt NO_GLOB_SUBST
18444
 
  fi
18445
 
  # Now quote all the things that may contain metacharacters while being
18446
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18447
 
  # variables and quote the copies for generation of the libtool script.
18448
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18449
 
    SED SHELL STRIP \
18450
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18451
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18452
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18453
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18454
 
    lt_cv_sys_global_symbol_to_c_name_address \
18455
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18456
 
    old_postinstall_cmds old_postuninstall_cmds \
18457
 
    compiler_RC \
18458
 
    CC_RC \
18459
 
    LD_RC \
18460
 
    lt_prog_compiler_wl_RC \
18461
 
    lt_prog_compiler_pic_RC \
18462
 
    lt_prog_compiler_static_RC \
18463
 
    lt_prog_compiler_no_builtin_flag_RC \
18464
 
    export_dynamic_flag_spec_RC \
18465
 
    thread_safe_flag_spec_RC \
18466
 
    whole_archive_flag_spec_RC \
18467
 
    enable_shared_with_static_runtimes_RC \
18468
 
    old_archive_cmds_RC \
18469
 
    old_archive_from_new_cmds_RC \
18470
 
    predep_objects_RC \
18471
 
    postdep_objects_RC \
18472
 
    predeps_RC \
18473
 
    postdeps_RC \
18474
 
    compiler_lib_search_path_RC \
18475
 
    archive_cmds_RC \
18476
 
    archive_expsym_cmds_RC \
18477
 
    postinstall_cmds_RC \
18478
 
    postuninstall_cmds_RC \
18479
 
    old_archive_from_expsyms_cmds_RC \
18480
 
    allow_undefined_flag_RC \
18481
 
    no_undefined_flag_RC \
18482
 
    export_symbols_cmds_RC \
18483
 
    hardcode_libdir_flag_spec_RC \
18484
 
    hardcode_libdir_flag_spec_ld_RC \
18485
 
    hardcode_libdir_separator_RC \
18486
 
    hardcode_automatic_RC \
18487
 
    module_cmds_RC \
18488
 
    module_expsym_cmds_RC \
18489
 
    lt_cv_prog_compiler_c_o_RC \
18490
 
    exclude_expsyms_RC \
18491
 
    include_expsyms_RC; do
18492
 
 
18493
 
    case $var in
18494
 
    old_archive_cmds_RC | \
18495
 
    old_archive_from_new_cmds_RC | \
18496
 
    archive_cmds_RC | \
18497
 
    archive_expsym_cmds_RC | \
18498
 
    module_cmds_RC | \
18499
 
    module_expsym_cmds_RC | \
18500
 
    old_archive_from_expsyms_cmds_RC | \
18501
 
    export_symbols_cmds_RC | \
18502
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18503
 
    postinstall_cmds | postuninstall_cmds | \
18504
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18505
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18506
 
      # Double-quote double-evaled strings.
18507
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18508
 
      ;;
18509
 
    *)
18510
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18511
 
      ;;
18512
 
    esac
18513
 
  done
18514
 
 
18515
 
  case $lt_echo in
18516
 
  *'\$0 --fallback-echo"')
18517
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18518
 
    ;;
18519
 
  esac
18520
 
 
18521
 
cfgfile="$ofile"
18522
 
 
18523
 
  cat <<__EOF__ >> "$cfgfile"
18524
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18525
 
 
18526
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18527
 
 
18528
 
# Shell to use when invoking shell scripts.
18529
 
SHELL=$lt_SHELL
18530
 
 
18531
 
# Whether or not to build shared libraries.
18532
 
build_libtool_libs=$enable_shared
18533
 
 
18534
 
# Whether or not to build static libraries.
18535
 
build_old_libs=$enable_static
18536
 
 
18537
 
# Whether or not to add -lc for building shared libraries.
18538
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18539
 
 
18540
 
# Whether or not to disallow shared libs when runtime libs are static
18541
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18542
 
 
18543
 
# Whether or not to optimize for fast installation.
18544
 
fast_install=$enable_fast_install
18545
 
 
18546
 
# The host system.
18547
 
host_alias=$host_alias
18548
 
host=$host
18549
 
 
18550
 
# An echo program that does not interpret backslashes.
18551
 
echo=$lt_echo
18552
 
 
18553
 
# The archiver.
18554
 
AR=$lt_AR
18555
 
AR_FLAGS=$lt_AR_FLAGS
18556
 
 
18557
 
# A C compiler.
18558
 
LTCC=$lt_LTCC
18559
 
 
18560
 
# A language-specific compiler.
18561
 
CC=$lt_compiler_RC
18562
 
 
18563
 
# Is the compiler the GNU C compiler?
18564
 
with_gcc=$GCC_RC
18565
 
 
18566
 
# An ERE matcher.
18567
 
EGREP=$lt_EGREP
18568
 
 
18569
 
# The linker used to build libraries.
18570
 
LD=$lt_LD_RC
18571
 
 
18572
 
# Whether we need hard or soft links.
18573
 
LN_S=$lt_LN_S
18574
 
 
18575
 
# A BSD-compatible nm program.
18576
 
NM=$lt_NM
18577
 
 
18578
 
# A symbol stripping program
18579
 
STRIP=$lt_STRIP
18580
 
 
18581
 
# Used to examine libraries when file_magic_cmd begins "file"
18582
 
MAGIC_CMD=$MAGIC_CMD
18583
 
 
18584
 
# Used on cygwin: DLL creation program.
18585
 
DLLTOOL="$DLLTOOL"
18586
 
 
18587
 
# Used on cygwin: object dumper.
18588
 
OBJDUMP="$OBJDUMP"
18589
 
 
18590
 
# Used on cygwin: assembler.
18591
 
AS="$AS"
18592
 
 
18593
 
# The name of the directory that contains temporary libtool files.
18594
 
objdir=$objdir
18595
 
 
18596
 
# How to create reloadable object files.
18597
 
reload_flag=$lt_reload_flag
18598
 
reload_cmds=$lt_reload_cmds
18599
 
 
18600
 
# How to pass a linker flag through the compiler.
18601
 
wl=$lt_lt_prog_compiler_wl_RC
18602
 
 
18603
 
# Object file suffix (normally "o").
18604
 
objext="$ac_objext"
18605
 
 
18606
 
# Old archive suffix (normally "a").
18607
 
libext="$libext"
18608
 
 
18609
 
# Shared library suffix (normally ".so").
18610
 
shrext='$shrext'
18611
 
 
18612
 
# Executable file suffix (normally "").
18613
 
exeext="$exeext"
18614
 
 
18615
 
# Additional compiler flags for building library objects.
18616
 
pic_flag=$lt_lt_prog_compiler_pic_RC
18617
 
pic_mode=$pic_mode
18618
 
 
18619
 
# What is the maximum length of a command?
18620
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18621
 
 
18622
 
# Does compiler simultaneously support -c and -o options?
18623
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18624
 
 
18625
 
# Must we lock files when doing compilation ?
18626
 
need_locks=$lt_need_locks
18627
 
 
18628
 
# Do we need the lib prefix for modules?
18629
 
need_lib_prefix=$need_lib_prefix
18630
 
 
18631
 
# Do we need a version for libraries?
18632
 
need_version=$need_version
18633
 
 
18634
 
# Whether dlopen is supported.
18635
 
dlopen_support=$enable_dlopen
18636
 
 
18637
 
# Whether dlopen of programs is supported.
18638
 
dlopen_self=$enable_dlopen_self
18639
 
 
18640
 
# Whether dlopen of statically linked programs is supported.
18641
 
dlopen_self_static=$enable_dlopen_self_static
18642
 
 
18643
 
# Compiler flag to prevent dynamic linking.
18644
 
link_static_flag=$lt_lt_prog_compiler_static_RC
18645
 
 
18646
 
# Compiler flag to turn off builtin functions.
18647
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18648
 
 
18649
 
# Compiler flag to allow reflexive dlopens.
18650
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18651
 
 
18652
 
# Compiler flag to generate shared objects directly from archives.
18653
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18654
 
 
18655
 
# Compiler flag to generate thread-safe objects.
18656
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18657
 
 
18658
 
# Library versioning type.
18659
 
version_type=$version_type
18660
 
 
18661
 
# Format of library name prefix.
18662
 
libname_spec=$lt_libname_spec
18663
 
 
18664
 
# List of archive names.  First name is the real one, the rest are links.
18665
 
# The last name is the one that the linker finds with -lNAME.
18666
 
library_names_spec=$lt_library_names_spec
18667
 
 
18668
 
# The coded name of the library, if different from the real name.
18669
 
soname_spec=$lt_soname_spec
18670
 
 
18671
 
# Commands used to build and install an old-style archive.
18672
 
RANLIB=$lt_RANLIB
18673
 
old_archive_cmds=$lt_old_archive_cmds_RC
18674
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18675
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18676
 
 
18677
 
# Create an old-style archive from a shared archive.
18678
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18679
 
 
18680
 
# Create a temporary old-style archive to link instead of a shared archive.
18681
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18682
 
 
18683
 
# Commands used to build and install a shared archive.
18684
 
archive_cmds=$lt_archive_cmds_RC
18685
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18686
 
postinstall_cmds=$lt_postinstall_cmds
18687
 
postuninstall_cmds=$lt_postuninstall_cmds
18688
 
 
18689
 
# Commands used to build a loadable module (assumed same as above if empty)
18690
 
module_cmds=$lt_module_cmds_RC
18691
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
18692
 
 
18693
 
# Commands to strip libraries.
18694
 
old_striplib=$lt_old_striplib
18695
 
striplib=$lt_striplib
18696
 
 
18697
 
# Dependencies to place before the objects being linked to create a
18698
 
# shared library.
18699
 
predep_objects=$lt_predep_objects_RC
18700
 
 
18701
 
# Dependencies to place after the objects being linked to create a
18702
 
# shared library.
18703
 
postdep_objects=$lt_postdep_objects_RC
18704
 
 
18705
 
# Dependencies to place before the objects being linked to create a
18706
 
# shared library.
18707
 
predeps=$lt_predeps_RC
18708
 
 
18709
 
# Dependencies to place after the objects being linked to create a
18710
 
# shared library.
18711
 
postdeps=$lt_postdeps_RC
18712
 
 
18713
 
# The library search path used internally by the compiler when linking
18714
 
# a shared library.
18715
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18716
 
 
18717
 
# Method to check whether dependent libraries are shared objects.
18718
 
deplibs_check_method=$lt_deplibs_check_method
18719
 
 
18720
 
# Command to use when deplibs_check_method == file_magic.
18721
 
file_magic_cmd=$lt_file_magic_cmd
18722
 
 
18723
 
# Flag that allows shared libraries with undefined symbols to be built.
18724
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
18725
 
 
18726
 
# Flag that forces no undefined symbols.
18727
 
no_undefined_flag=$lt_no_undefined_flag_RC
18728
 
 
18729
 
# Commands used to finish a libtool library installation in a directory.
18730
 
finish_cmds=$lt_finish_cmds
18731
 
 
18732
 
# Same as above, but a single script fragment to be evaled but not shown.
18733
 
finish_eval=$lt_finish_eval
18734
 
 
18735
 
# Take the output of nm and produce a listing of raw symbols and C names.
18736
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18737
 
 
18738
 
# Transform the output of nm in a proper C declaration
18739
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18740
 
 
18741
 
# Transform the output of nm in a C name address pair
18742
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18743
 
 
18744
 
# This is the shared library runtime path variable.
18745
 
runpath_var=$runpath_var
18746
 
 
18747
 
# This is the shared library path variable.
18748
 
shlibpath_var=$shlibpath_var
18749
 
 
18750
 
# Is shlibpath searched before the hard-coded library search path?
18751
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18752
 
 
18753
 
# How to hardcode a shared library path into an executable.
18754
 
hardcode_action=$hardcode_action_RC
18755
 
 
18756
 
# Whether we should hardcode library paths into libraries.
18757
 
hardcode_into_libs=$hardcode_into_libs
18758
 
 
18759
 
# Flag to hardcode \$libdir into a binary during linking.
18760
 
# This must work even if \$libdir does not exist.
18761
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18762
 
 
18763
 
# If ld is used when linking, flag to hardcode \$libdir into
18764
 
# a binary during linking. This must work even if \$libdir does
18765
 
# not exist.
18766
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18767
 
 
18768
 
# Whether we need a single -rpath flag with a separated argument.
18769
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18770
 
 
18771
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18772
 
# resulting binary.
18773
 
hardcode_direct=$hardcode_direct_RC
18774
 
 
18775
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18776
 
# resulting binary.
18777
 
hardcode_minus_L=$hardcode_minus_L_RC
18778
 
 
18779
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18780
 
# the resulting binary.
18781
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18782
 
 
18783
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18784
 
# and all subsequent libraries and executables linked against it.
18785
 
hardcode_automatic=$hardcode_automatic_RC
18786
 
 
18787
 
# Variables whose values should be saved in libtool wrapper scripts and
18788
 
# restored at relink time.
18789
 
variables_saved_for_relink="$variables_saved_for_relink"
18790
 
 
18791
 
# Whether libtool must link a program against all its dependency libraries.
18792
 
link_all_deplibs=$link_all_deplibs_RC
18793
 
 
18794
 
# Compile-time system search path for libraries
18795
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18796
 
 
18797
 
# Run-time system search path for libraries
18798
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18799
 
 
18800
 
# Fix the shell variable \$srcfile for the compiler.
18801
 
fix_srcfile_path="$fix_srcfile_path_RC"
18802
 
 
18803
 
# Set to yes if exported symbols are required.
18804
 
always_export_symbols=$always_export_symbols_RC
18805
 
 
18806
 
# The commands to list exported symbols.
18807
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
18808
 
 
18809
 
# The commands to extract the exported symbol list from a shared archive.
18810
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18811
 
 
18812
 
# Symbols that should not be listed in the preloaded symbols.
18813
 
exclude_expsyms=$lt_exclude_expsyms_RC
18814
 
 
18815
 
# Symbols that must always be exported.
18816
 
include_expsyms=$lt_include_expsyms_RC
18817
 
 
18818
 
# ### END LIBTOOL TAG CONFIG: $tagname
18819
 
 
18820
 
__EOF__
18821
 
 
18822
 
 
18823
 
else
18824
 
  # If there is no Makefile yet, we rely on a make rule to execute
18825
 
  # `config.status --recheck' to rerun these tests and create the
18826
 
  # libtool script then.
18827
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18828
 
  if test -f "$ltmain_in"; then
18829
 
    test -f Makefile && make "$ltmain"
18830
 
  fi
18831
 
fi
18832
 
 
18833
 
 
18834
 
ac_ext=c
18835
 
ac_cpp='$CPP $CPPFLAGS'
18836
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18839
 
 
18840
 
CC="$lt_save_CC"
18841
 
 
18842
 
        ;;
18843
 
 
18844
 
      *)
18845
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18846
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18847
 
   { (exit 1); exit 1; }; }
18848
 
        ;;
18849
 
      esac
18850
 
 
18851
 
      # Append the new tag name to the list of available tags.
18852
 
      if test -n "$tagname" ; then
18853
 
      available_tags="$available_tags $tagname"
18854
 
    fi
18855
 
    fi
18856
 
  done
18857
 
  IFS="$lt_save_ifs"
18858
 
 
18859
 
  # Now substitute the updated list of available tags.
18860
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18861
 
    mv "${ofile}T" "$ofile"
18862
 
    chmod +x "$ofile"
18863
 
  else
18864
 
    rm -f "${ofile}T"
18865
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18866
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18867
 
   { (exit 1); exit 1; }; }
18868
 
  fi
18869
 
fi
18870
 
 
18871
 
 
18872
 
 
18873
 
# This can be used to rebuild libtool when needed
18874
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18875
 
 
18876
 
# Always use our own libtool.
18877
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18878
 
 
18879
 
# Prevent multiple expansion
18880
 
 
18881
 
 
18882
 
 
18883
 
 
18884
 
 
18885
 
 
18886
 
 
18887
 
 
18888
 
 
18889
 
 
18890
 
 
18891
 
 
18892
 
 
18893
 
 
18894
 
 
18895
 
 
18896
 
 
18897
 
 
18898
 
 
18899
 
 
18900
 
 
18901
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18902
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18903
 
if test "${ac_cv_c_bigendian+set}" = set; then
18904
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18905
 
else
18906
 
  # See if sys/param.h defines the BYTE_ORDER macro.
18907
 
cat >conftest.$ac_ext <<_ACEOF
18908
 
/* confdefs.h.  */
18909
 
_ACEOF
18910
 
cat confdefs.h >>conftest.$ac_ext
18911
 
cat >>conftest.$ac_ext <<_ACEOF
18912
 
/* end confdefs.h.  */
18913
 
#include <sys/types.h>
18914
 
#include <sys/param.h>
18915
 
 
18916
 
int
18917
 
main ()
18918
 
{
18919
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18920
 
 bogus endian macros
18921
 
#endif
18922
 
 
18923
 
  ;
18924
 
  return 0;
18925
 
}
18926
 
_ACEOF
18927
 
rm -f conftest.$ac_objext
18928
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929
 
  (eval $ac_compile) 2>conftest.er1
18930
 
  ac_status=$?
18931
 
  grep -v '^ *+' conftest.er1 >conftest.err
18932
 
  rm -f conftest.er1
18933
 
  cat conftest.err >&5
18934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935
 
  (exit $ac_status); } &&
18936
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18937
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938
 
  (eval $ac_try) 2>&5
18939
 
  ac_status=$?
18940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941
 
  (exit $ac_status); }; } &&
18942
 
         { ac_try='test -s conftest.$ac_objext'
18943
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944
 
  (eval $ac_try) 2>&5
18945
 
  ac_status=$?
18946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947
 
  (exit $ac_status); }; }; then
18948
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
18949
 
cat >conftest.$ac_ext <<_ACEOF
18950
 
/* confdefs.h.  */
18951
 
_ACEOF
18952
 
cat confdefs.h >>conftest.$ac_ext
18953
 
cat >>conftest.$ac_ext <<_ACEOF
18954
 
/* end confdefs.h.  */
18955
 
#include <sys/types.h>
18956
 
#include <sys/param.h>
18957
 
 
18958
 
int
18959
 
main ()
18960
 
{
18961
 
#if BYTE_ORDER != BIG_ENDIAN
18962
 
 not big endian
18963
 
#endif
18964
 
 
18965
 
  ;
18966
 
  return 0;
18967
 
}
18968
 
_ACEOF
18969
 
rm -f conftest.$ac_objext
18970
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18971
 
  (eval $ac_compile) 2>conftest.er1
18972
 
  ac_status=$?
18973
 
  grep -v '^ *+' conftest.er1 >conftest.err
18974
 
  rm -f conftest.er1
18975
 
  cat conftest.err >&5
18976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977
 
  (exit $ac_status); } &&
18978
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18979
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980
 
  (eval $ac_try) 2>&5
18981
 
  ac_status=$?
18982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983
 
  (exit $ac_status); }; } &&
18984
 
         { ac_try='test -s conftest.$ac_objext'
18985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986
 
  (eval $ac_try) 2>&5
18987
 
  ac_status=$?
18988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989
 
  (exit $ac_status); }; }; then
18990
 
  ac_cv_c_bigendian=yes
18991
 
else
18992
 
  echo "$as_me: failed program was:" >&5
18993
 
sed 's/^/| /' conftest.$ac_ext >&5
18994
 
 
18995
 
ac_cv_c_bigendian=no
18996
 
fi
18997
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18998
 
else
18999
 
  echo "$as_me: failed program was:" >&5
19000
 
sed 's/^/| /' conftest.$ac_ext >&5
19001
 
 
19002
 
# It does not; compile a test program.
19003
 
if test "$cross_compiling" = yes; then
19004
 
  # try to guess the endianness by grepping values into an object file
19005
 
  ac_cv_c_bigendian=unknown
19006
 
  cat >conftest.$ac_ext <<_ACEOF
19007
 
/* confdefs.h.  */
19008
 
_ACEOF
19009
 
cat confdefs.h >>conftest.$ac_ext
19010
 
cat >>conftest.$ac_ext <<_ACEOF
19011
 
/* end confdefs.h.  */
19012
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19013
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19014
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19015
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19016
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19017
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19018
 
int
19019
 
main ()
19020
 
{
19021
 
 _ascii (); _ebcdic ();
19022
 
  ;
19023
 
  return 0;
19024
 
}
19025
 
_ACEOF
19026
 
rm -f conftest.$ac_objext
19027
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028
 
  (eval $ac_compile) 2>conftest.er1
19029
 
  ac_status=$?
19030
 
  grep -v '^ *+' conftest.er1 >conftest.err
19031
 
  rm -f conftest.er1
19032
 
  cat conftest.err >&5
19033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034
 
  (exit $ac_status); } &&
19035
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19036
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037
 
  (eval $ac_try) 2>&5
19038
 
  ac_status=$?
19039
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040
 
  (exit $ac_status); }; } &&
19041
 
         { ac_try='test -s conftest.$ac_objext'
19042
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043
 
  (eval $ac_try) 2>&5
19044
 
  ac_status=$?
19045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046
 
  (exit $ac_status); }; }; then
19047
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19048
 
  ac_cv_c_bigendian=yes
19049
 
fi
19050
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19051
 
  if test "$ac_cv_c_bigendian" = unknown; then
19052
 
    ac_cv_c_bigendian=no
19053
 
  else
19054
 
    # finding both strings is unlikely to happen, but who knows?
19055
 
    ac_cv_c_bigendian=unknown
19056
 
  fi
19057
 
fi
19058
 
else
19059
 
  echo "$as_me: failed program was:" >&5
19060
 
sed 's/^/| /' conftest.$ac_ext >&5
19061
 
 
19062
 
fi
19063
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19064
 
else
19065
 
  cat >conftest.$ac_ext <<_ACEOF
19066
 
/* confdefs.h.  */
19067
 
_ACEOF
19068
 
cat confdefs.h >>conftest.$ac_ext
19069
 
cat >>conftest.$ac_ext <<_ACEOF
19070
 
/* end confdefs.h.  */
19071
 
int
19072
 
main ()
19073
 
{
19074
 
  /* Are we little or big endian?  From Harbison&Steele.  */
19075
 
  union
19076
 
  {
19077
 
    long l;
19078
 
    char c[sizeof (long)];
19079
 
  } u;
19080
 
  u.l = 1;
19081
 
  exit (u.c[sizeof (long) - 1] == 1);
19082
 
}
19083
 
_ACEOF
19084
 
rm -f conftest$ac_exeext
19085
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086
 
  (eval $ac_link) 2>&5
19087
 
  ac_status=$?
19088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091
 
  (eval $ac_try) 2>&5
19092
 
  ac_status=$?
19093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
 
  (exit $ac_status); }; }; then
19095
 
  ac_cv_c_bigendian=no
19096
 
else
19097
 
  echo "$as_me: program exited with status $ac_status" >&5
19098
 
echo "$as_me: failed program was:" >&5
19099
 
sed 's/^/| /' conftest.$ac_ext >&5
19100
 
 
19101
 
( exit $ac_status )
19102
 
ac_cv_c_bigendian=yes
19103
 
fi
19104
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19105
 
fi
19106
 
fi
19107
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19108
 
fi
19109
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19110
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19111
 
case $ac_cv_c_bigendian in
19112
 
  yes)
19113
 
 
19114
 
cat >>confdefs.h <<\_ACEOF
19115
 
#define WORDS_BIGENDIAN 1
19116
 
_ACEOF
19117
 
 ;;
19118
 
  no)
19119
 
     ;;
19120
 
  *)
19121
 
    { { echo "$as_me:$LINENO: error: unknown endianness
19122
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19123
 
echo "$as_me: error: unknown endianness
19124
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19125
 
   { (exit 1); exit 1; }; } ;;
19126
 
esac
19127
 
 
19128
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19129
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19130
 
if test "${ac_cv_c_const+set}" = set; then
19131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19132
 
else
19133
 
  cat >conftest.$ac_ext <<_ACEOF
19134
 
/* confdefs.h.  */
19135
 
_ACEOF
19136
 
cat confdefs.h >>conftest.$ac_ext
19137
 
cat >>conftest.$ac_ext <<_ACEOF
19138
 
/* end confdefs.h.  */
19139
 
 
19140
 
int
19141
 
main ()
19142
 
{
19143
 
/* FIXME: Include the comments suggested by Paul. */
19144
 
#ifndef __cplusplus
19145
 
  /* Ultrix mips cc rejects this.  */
19146
 
  typedef int charset[2];
19147
 
  const charset x;
19148
 
  /* SunOS 4.1.1 cc rejects this.  */
19149
 
  char const *const *ccp;
19150
 
  char **p;
19151
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
19152
 
  struct point {int x, y;};
19153
 
  static struct point const zero = {0,0};
19154
 
  /* AIX XL C 1.02.0.0 rejects this.
19155
 
     It does not let you subtract one const X* pointer from another in
19156
 
     an arm of an if-expression whose if-part is not a constant
19157
 
     expression */
19158
 
  const char *g = "string";
19159
 
  ccp = &g + (g ? g-g : 0);
19160
 
  /* HPUX 7.0 cc rejects these. */
19161
 
  ++ccp;
19162
 
  p = (char**) ccp;
19163
 
  ccp = (char const *const *) p;
19164
 
  { /* SCO 3.2v4 cc rejects this.  */
19165
 
    char *t;
19166
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
19167
 
 
19168
 
    *t++ = 0;
19169
 
  }
19170
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19171
 
    int x[] = {25, 17};
19172
 
    const int *foo = &x[0];
19173
 
    ++foo;
19174
 
  }
19175
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19176
 
    typedef const int *iptr;
19177
 
    iptr p = 0;
19178
 
    ++p;
19179
 
  }
19180
 
  { /* AIX XL C 1.02.0.0 rejects this saying
19181
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19182
 
    struct s { int j; const int *ap[3]; };
19183
 
    struct s *b; b->j = 5;
19184
 
  }
19185
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19186
 
    const int foo = 10;
19187
 
  }
19188
 
#endif
19189
 
 
19190
 
  ;
19191
 
  return 0;
19192
 
}
19193
 
_ACEOF
19194
 
rm -f conftest.$ac_objext
19195
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196
 
  (eval $ac_compile) 2>conftest.er1
19197
 
  ac_status=$?
19198
 
  grep -v '^ *+' conftest.er1 >conftest.err
19199
 
  rm -f conftest.er1
19200
 
  cat conftest.err >&5
19201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202
 
  (exit $ac_status); } &&
19203
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19204
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205
 
  (eval $ac_try) 2>&5
19206
 
  ac_status=$?
19207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208
 
  (exit $ac_status); }; } &&
19209
 
         { ac_try='test -s conftest.$ac_objext'
19210
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211
 
  (eval $ac_try) 2>&5
19212
 
  ac_status=$?
19213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214
 
  (exit $ac_status); }; }; then
19215
 
  ac_cv_c_const=yes
19216
 
else
19217
 
  echo "$as_me: failed program was:" >&5
19218
 
sed 's/^/| /' conftest.$ac_ext >&5
19219
 
 
19220
 
ac_cv_c_const=no
19221
 
fi
19222
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19223
 
fi
19224
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19225
 
echo "${ECHO_T}$ac_cv_c_const" >&6
19226
 
if test $ac_cv_c_const = no; then
19227
 
 
19228
 
cat >>confdefs.h <<\_ACEOF
19229
 
#define const
19230
 
_ACEOF
19231
 
 
19232
 
fi
19233
 
 
19234
 
echo "$as_me:$LINENO: checking for inline" >&5
19235
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
19236
 
if test "${ac_cv_c_inline+set}" = set; then
19237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19238
 
else
19239
 
  ac_cv_c_inline=no
19240
 
for ac_kw in inline __inline__ __inline; do
19241
 
  cat >conftest.$ac_ext <<_ACEOF
19242
 
/* confdefs.h.  */
19243
 
_ACEOF
19244
 
cat confdefs.h >>conftest.$ac_ext
19245
 
cat >>conftest.$ac_ext <<_ACEOF
19246
 
/* end confdefs.h.  */
19247
 
#ifndef __cplusplus
19248
 
typedef int foo_t;
19249
 
static $ac_kw foo_t static_foo () {return 0; }
19250
 
$ac_kw foo_t foo () {return 0; }
19251
 
#endif
19252
 
 
19253
 
_ACEOF
19254
 
rm -f conftest.$ac_objext
19255
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256
 
  (eval $ac_compile) 2>conftest.er1
19257
 
  ac_status=$?
19258
 
  grep -v '^ *+' conftest.er1 >conftest.err
19259
 
  rm -f conftest.er1
19260
 
  cat conftest.err >&5
19261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262
 
  (exit $ac_status); } &&
19263
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19264
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265
 
  (eval $ac_try) 2>&5
19266
 
  ac_status=$?
19267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268
 
  (exit $ac_status); }; } &&
19269
 
         { ac_try='test -s conftest.$ac_objext'
19270
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271
 
  (eval $ac_try) 2>&5
19272
 
  ac_status=$?
19273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274
 
  (exit $ac_status); }; }; then
19275
 
  ac_cv_c_inline=$ac_kw; break
19276
 
else
19277
 
  echo "$as_me: failed program was:" >&5
19278
 
sed 's/^/| /' conftest.$ac_ext >&5
19279
 
 
19280
 
fi
19281
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19282
 
done
19283
 
 
19284
 
fi
19285
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19286
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
19287
 
 
19288
 
 
19289
 
case $ac_cv_c_inline in
19290
 
  inline | yes) ;;
19291
 
  *)
19292
 
    case $ac_cv_c_inline in
19293
 
      no) ac_val=;;
19294
 
      *) ac_val=$ac_cv_c_inline;;
19295
 
    esac
19296
 
    cat >>confdefs.h <<_ACEOF
19297
 
#ifndef __cplusplus
19298
 
#define inline $ac_val
19299
 
#endif
19300
 
_ACEOF
19301
 
    ;;
19302
 
esac
19303
 
 
19304
 
 
19305
 
 
19306
 
 
19307
 
for ac_header in sys/soundcard.h sys/audioio.h
19308
 
do
19309
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19310
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19312
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19315
 
fi
19316
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19317
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19318
 
else
19319
 
  # Is the header compilable?
19320
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19321
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19322
 
cat >conftest.$ac_ext <<_ACEOF
19323
 
/* confdefs.h.  */
19324
 
_ACEOF
19325
 
cat confdefs.h >>conftest.$ac_ext
19326
 
cat >>conftest.$ac_ext <<_ACEOF
19327
 
/* end confdefs.h.  */
19328
 
$ac_includes_default
19329
 
#include <$ac_header>
19330
 
_ACEOF
19331
 
rm -f conftest.$ac_objext
19332
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333
 
  (eval $ac_compile) 2>conftest.er1
19334
 
  ac_status=$?
19335
 
  grep -v '^ *+' conftest.er1 >conftest.err
19336
 
  rm -f conftest.er1
19337
 
  cat conftest.err >&5
19338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339
 
  (exit $ac_status); } &&
19340
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19341
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342
 
  (eval $ac_try) 2>&5
19343
 
  ac_status=$?
19344
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345
 
  (exit $ac_status); }; } &&
19346
 
         { ac_try='test -s conftest.$ac_objext'
19347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348
 
  (eval $ac_try) 2>&5
19349
 
  ac_status=$?
19350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351
 
  (exit $ac_status); }; }; then
19352
 
  ac_header_compiler=yes
19353
 
else
19354
 
  echo "$as_me: failed program was:" >&5
19355
 
sed 's/^/| /' conftest.$ac_ext >&5
19356
 
 
19357
 
ac_header_compiler=no
19358
 
fi
19359
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19361
 
echo "${ECHO_T}$ac_header_compiler" >&6
19362
 
 
19363
 
# Is the header present?
19364
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19365
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19366
 
cat >conftest.$ac_ext <<_ACEOF
19367
 
/* confdefs.h.  */
19368
 
_ACEOF
19369
 
cat confdefs.h >>conftest.$ac_ext
19370
 
cat >>conftest.$ac_ext <<_ACEOF
19371
 
/* end confdefs.h.  */
19372
 
#include <$ac_header>
19373
 
_ACEOF
19374
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19375
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19376
 
  ac_status=$?
19377
 
  grep -v '^ *+' conftest.er1 >conftest.err
19378
 
  rm -f conftest.er1
19379
 
  cat conftest.err >&5
19380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381
 
  (exit $ac_status); } >/dev/null; then
19382
 
  if test -s conftest.err; then
19383
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19384
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19385
 
  else
19386
 
    ac_cpp_err=
19387
 
  fi
19388
 
else
19389
 
  ac_cpp_err=yes
19390
 
fi
19391
 
if test -z "$ac_cpp_err"; then
19392
 
  ac_header_preproc=yes
19393
 
else
19394
 
  echo "$as_me: failed program was:" >&5
19395
 
sed 's/^/| /' conftest.$ac_ext >&5
19396
 
 
19397
 
  ac_header_preproc=no
19398
 
fi
19399
 
rm -f conftest.err conftest.$ac_ext
19400
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19401
 
echo "${ECHO_T}$ac_header_preproc" >&6
19402
 
 
19403
 
# So?  What about this header?
19404
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19405
 
  yes:no: )
19406
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19407
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19408
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19409
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19410
 
    ac_header_preproc=yes
19411
 
    ;;
19412
 
  no:yes:* )
19413
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19414
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19415
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19416
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19417
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19418
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19419
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19420
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19421
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19422
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19423
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19424
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19425
 
    (
19426
 
      cat <<\_ASBOX
19427
 
## ------------------------------------------ ##
19428
 
## Report this to the AC_PACKAGE_NAME lists.  ##
19429
 
## ------------------------------------------ ##
19430
 
_ASBOX
19431
 
    ) |
19432
 
      sed "s/^/$as_me: WARNING:     /" >&2
19433
 
    ;;
19434
 
esac
19435
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19436
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19437
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19438
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19439
 
else
19440
 
  eval "$as_ac_Header=\$ac_header_preproc"
19441
 
fi
19442
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19443
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19444
 
 
19445
 
fi
19446
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19447
 
  cat >>confdefs.h <<_ACEOF
19448
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19449
 
_ACEOF
19450
 
 
19451
 
fi
19452
 
 
19453
 
done
19454
 
 
19455
 
 
19456
 
# Check whether --enable-ogg or --disable-ogg was given.
19457
 
if test "${enable_ogg+set}" = set; then
19458
 
  enableval="$enable_ogg"
19459
 
  case "${enableval}" in
19460
 
        yes) useogg=true ;;
19461
 
        no)  useogg=false ;;
19462
 
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ogg" >&5
19463
 
echo "$as_me: error: bad value ${enableval} for --enable-ogg" >&2;}
19464
 
   { (exit 1); exit 1; }; } ;;
19465
 
      esac
19466
 
else
19467
 
  useogg=true
19468
 
fi;
19469
 
 
19470
 
if test x$useogg = xtrue; then
19471
 
 
19472
 
OGG_LIBS="-logg"
19473
 
 
19474
 
echo "$as_me:$LINENO: checking for libogg" >&5
19475
 
echo $ECHO_N "checking for libogg... $ECHO_C" >&6
19476
 
 
19477
 
ac_ogg_includes=NONE ac_ogg_libraries=NONE ac_ogg_bindir=NONE
19478
 
ogg_libraries=""
19479
 
ogg_includes=""
19480
 
 
19481
 
# Check whether --with-ogg-dir or --without-ogg-dir was given.
19482
 
if test "${with_ogg_dir+set}" = set; then
19483
 
  withval="$with_ogg_dir"
19484
 
    ac_ogg_includes="$withval"/include
19485
 
       ac_ogg_libraries="$withval"/lib
19486
 
 
19487
 
fi;
19488
 
 
19489
 
 
19490
 
# Check whether --with-ogg-includes or --without-ogg-includes was given.
19491
 
if test "${with_ogg_includes+set}" = set; then
19492
 
  withval="$with_ogg_includes"
19493
 
 
19494
 
       ac_ogg_includes="$withval"
19495
 
 
19496
 
fi;
19497
 
 
19498
 
ogg_libs_given=no
19499
 
 
19500
 
 
19501
 
# Check whether --with-ogg-libraries or --without-ogg-libraries was given.
19502
 
if test "${with_ogg_libraries+set}" = set; then
19503
 
  withval="$with_ogg_libraries"
19504
 
    ac_ogg_libraries="$withval"
19505
 
       ogg_libs_given=yes
19506
 
 
19507
 
fi;
19508
 
 
19509
 
ogg_incdirs="/usr/include /usr/lib/ogg/include /opt/include /usr/local/ogg/include /usr/include/ogg /usr/include /usr/local/include"
19510
 
if test ! "$ac_ogg_includes" = "NONE"; then
19511
 
  ogg_incdirs="$ac_ogg_includes $ac_ogg_includes/.. $ogg_incdirs"
19512
 
fi
19513
 
 
19514
 
ogg_incdir=NONE
19515
 
for i in $ogg_incdirs;
19516
 
do
19517
 
  for j in ogg/ogg.h;
19518
 
  do
19519
 
    if test -r "$i/$j"; then
19520
 
      ogg_incdir=$i
19521
 
      break 2
19522
 
    fi
19523
 
  done
19524
 
done
19525
 
 
19526
 
echo "Ogg includes in $ogg_incdir"
19527
 
 
19528
 
 
19529
 
ogg_libdirs="$ac_ogg_libraries /usr/lib/ogg/lib /usr/lib /opt/lib /usr/local/ogg/lib /usr/local/lib /usr/lib/ogg /usr/local/lib"
19530
 
test -n "$OGGDIR" && ogg_libdirs="$OGGDIR/lib $OGGDIR $ogg_libdirs"
19531
 
if test ! "$ac_ogg_libraries" = "NONE"; then
19532
 
  ogg_libdirs="$ac_ogg_libraries $ogg_libdirs"
19533
 
fi
19534
 
 
19535
 
test=NONE
19536
 
ogg_libdir=NONE
19537
 
for dir in $ogg_libdirs; do
19538
 
  try="ls -1 $dir/libogg*"
19539
 
  if test=`eval $try 2> /dev/null`; then ogg_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
19540
 
done
19541
 
 
19542
 
echo "Ogg libraries in $ogg_libdir"
19543
 
 
19544
 
if test "$ogg_libdir" = "NONE" || test "$ogg_incdir" = "NONE"; then
19545
 
   have_libogg=no
19546
 
else
19547
 
   have_libogg=yes
19548
 
   cat >>confdefs.h <<\_ACEOF
19549
 
#define HAVE_LIBOGG 1
19550
 
_ACEOF
19551
 
 
19552
 
fi
19553
 
 
19554
 
OGG_INCLUDES="-I$ogg_incdir"
19555
 
OGG_LDFLAGS="-L$ogg_libdir"
19556
 
 
19557
 
 
19558
 
 
19559
 
 
19560
 
 
19561
 
 
19562
 
 
19563
 
fi
19564
 
 
19565
 
if test "$have_libogg" = yes; then
19566
 
   src=src
19567
 
else
19568
 
   src=
19569
 
fi
19570
 
 
19571
 
 
19572
 
 
19573
 
echo "$as_me:$LINENO: checking for sin in -lm" >&5
19574
 
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19575
 
if test "${ac_cv_lib_m_sin+set}" = set; then
19576
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19577
 
else
19578
 
  ac_check_lib_save_LIBS=$LIBS
19579
 
LIBS="-lm  $LIBS"
19580
 
cat >conftest.$ac_ext <<_ACEOF
19581
 
/* confdefs.h.  */
19582
 
_ACEOF
19583
 
cat confdefs.h >>conftest.$ac_ext
19584
 
cat >>conftest.$ac_ext <<_ACEOF
19585
 
/* end confdefs.h.  */
19586
 
 
19587
 
/* Override any gcc2 internal prototype to avoid an error.  */
19588
 
#ifdef __cplusplus
19589
 
extern "C"
19590
 
#endif
19591
 
/* We use char because int might match the return type of a gcc2
19592
 
   builtin and then its argument prototype would still apply.  */
19593
 
char sin ();
19594
 
int
19595
 
main ()
19596
 
{
19597
 
sin ();
19598
 
  ;
19599
 
  return 0;
19600
 
}
19601
 
_ACEOF
19602
 
rm -f conftest.$ac_objext conftest$ac_exeext
19603
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19604
 
  (eval $ac_link) 2>conftest.er1
19605
 
  ac_status=$?
19606
 
  grep -v '^ *+' conftest.er1 >conftest.err
19607
 
  rm -f conftest.er1
19608
 
  cat conftest.err >&5
19609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610
 
  (exit $ac_status); } &&
19611
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19612
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613
 
  (eval $ac_try) 2>&5
19614
 
  ac_status=$?
19615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616
 
  (exit $ac_status); }; } &&
19617
 
         { ac_try='test -s conftest$ac_exeext'
19618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619
 
  (eval $ac_try) 2>&5
19620
 
  ac_status=$?
19621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622
 
  (exit $ac_status); }; }; then
19623
 
  ac_cv_lib_m_sin=yes
19624
 
else
19625
 
  echo "$as_me: failed program was:" >&5
19626
 
sed 's/^/| /' conftest.$ac_ext >&5
19627
 
 
19628
 
ac_cv_lib_m_sin=no
19629
 
fi
19630
 
rm -f conftest.err conftest.$ac_objext \
19631
 
      conftest$ac_exeext conftest.$ac_ext
19632
 
LIBS=$ac_check_lib_save_LIBS
19633
 
fi
19634
 
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19635
 
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19636
 
if test $ac_cv_lib_m_sin = yes; then
19637
 
  cat >>confdefs.h <<_ACEOF
19638
 
#define HAVE_LIBM 1
19639
 
_ACEOF
19640
 
 
19641
 
  LIBS="-lm $LIBS"
19642
 
 
19643
 
fi
19644
 
 
19645
 
 
19646
 
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
19647
 
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
19648
 
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
19649
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19650
 
else
19651
 
  ac_check_lib_save_LIBS=$LIBS
19652
 
LIBS="-lgnugetopt  $LIBS"
19653
 
cat >conftest.$ac_ext <<_ACEOF
19654
 
/* confdefs.h.  */
19655
 
_ACEOF
19656
 
cat confdefs.h >>conftest.$ac_ext
19657
 
cat >>conftest.$ac_ext <<_ACEOF
19658
 
/* end confdefs.h.  */
19659
 
 
19660
 
/* Override any gcc2 internal prototype to avoid an error.  */
19661
 
#ifdef __cplusplus
19662
 
extern "C"
19663
 
#endif
19664
 
/* We use char because int might match the return type of a gcc2
19665
 
   builtin and then its argument prototype would still apply.  */
19666
 
char getopt_long ();
19667
 
int
19668
 
main ()
19669
 
{
19670
 
getopt_long ();
19671
 
  ;
19672
 
  return 0;
19673
 
}
19674
 
_ACEOF
19675
 
rm -f conftest.$ac_objext conftest$ac_exeext
19676
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677
 
  (eval $ac_link) 2>conftest.er1
19678
 
  ac_status=$?
19679
 
  grep -v '^ *+' conftest.er1 >conftest.err
19680
 
  rm -f conftest.er1
19681
 
  cat conftest.err >&5
19682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
 
  (exit $ac_status); } &&
19684
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
 
  (eval $ac_try) 2>&5
19687
 
  ac_status=$?
19688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
 
  (exit $ac_status); }; } &&
19690
 
         { ac_try='test -s conftest$ac_exeext'
19691
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692
 
  (eval $ac_try) 2>&5
19693
 
  ac_status=$?
19694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
 
  (exit $ac_status); }; }; then
19696
 
  ac_cv_lib_gnugetopt_getopt_long=yes
19697
 
else
19698
 
  echo "$as_me: failed program was:" >&5
19699
 
sed 's/^/| /' conftest.$ac_ext >&5
19700
 
 
19701
 
ac_cv_lib_gnugetopt_getopt_long=no
19702
 
fi
19703
 
rm -f conftest.err conftest.$ac_objext \
19704
 
      conftest$ac_exeext conftest.$ac_ext
19705
 
LIBS=$ac_check_lib_save_LIBS
19706
 
fi
19707
 
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
19708
 
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
19709
 
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
19710
 
  cat >>confdefs.h <<_ACEOF
19711
 
#define HAVE_LIBGNUGETOPT 1
19712
 
_ACEOF
19713
 
 
19714
 
  LIBS="-lgnugetopt $LIBS"
19715
 
 
19716
 
fi
19717
 
 
19718
 
 
19719
 
cat >>confdefs.h <<_ACEOF
19720
 
#define VERSION "${VERSION}"
19721
 
_ACEOF
19722
 
 
19723
 
 
19724
 
# Check whether --enable-sse or --disable-sse was given.
19725
 
if test "${enable_sse+set}" = set; then
19726
 
  enableval="$enable_sse"
19727
 
  if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19728
 
#define _USE_SSE 1
19729
 
_ACEOF
19730
 
 fi
19731
 
fi;
19732
 
# Check whether --enable-fixed-point or --disable-fixed-point was given.
19733
 
if test "${enable_fixed_point+set}" = set; then
19734
 
  enableval="$enable_fixed_point"
19735
 
  if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19736
 
#define FIXED_POINT 1
19737
 
_ACEOF
19738
 
 fi
19739
 
fi;
19740
 
# Check whether --enable-arm-asm or --disable-arm-asm was given.
19741
 
if test "${enable_arm_asm+set}" = set; then
19742
 
  enableval="$enable_arm_asm"
19743
 
  if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19744
 
#define ARM_ASM 1
19745
 
_ACEOF
19746
 
 fi
19747
 
fi;
19748
 
# Check whether --enable-fixed-point-debug or --disable-fixed-point-debug was given.
19749
 
if test "${enable_fixed_point_debug+set}" = set; then
19750
 
  enableval="$enable_fixed_point_debug"
19751
 
  if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19752
 
#define FIXED_DEBUG 1
19753
 
_ACEOF
19754
 
 fi
19755
 
fi;
19756
 
 
19757
 
# Check whether --enable-epic-48k or --disable-epic-48k was given.
19758
 
if test "${enable_epic_48k+set}" = set; then
19759
 
  enableval="$enable_epic_48k"
19760
 
  if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19761
 
#define EPIC_48K 1
19762
 
_ACEOF
19763
 
 fi
19764
 
fi;
19765
 
 
19766
 
 
19767
 
                                                                                          ac_config_files="$ac_config_files Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile win32/speexdec/Makefile"
19768
 
cat >confcache <<\_ACEOF
19769
 
# This file is a shell script that caches the results of configure
19770
 
# tests run on this system so they can be shared between configure
19771
 
# scripts and configure runs, see configure's option --config-cache.
19772
 
# It is not useful on other systems.  If it contains results you don't
19773
 
# want to keep, you may remove or edit it.
19774
 
#
19775
 
# config.status only pays attention to the cache file if you give it
19776
 
# the --recheck option to rerun configure.
19777
 
#
19778
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19779
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19780
 
# following values.
19781
 
 
19782
 
_ACEOF
19783
 
 
19784
 
# The following way of writing the cache mishandles newlines in values,
19785
 
# but we know of no workaround that is simple, portable, and efficient.
19786
 
# So, don't put newlines in cache variables' values.
19787
 
# Ultrix sh set writes to stderr and can't be redirected directly,
19788
 
# and sets the high bit in the cache file unless we assign to the vars.
19789
 
{
19790
 
  (set) 2>&1 |
19791
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19792
 
    *ac_space=\ *)
19793
 
      # `set' does not quote correctly, so add quotes (double-quote
19794
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
19795
 
      sed -n \
19796
 
        "s/'/'\\\\''/g;
19797
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19798
 
      ;;
19799
 
    *)
19800
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
19801
 
      sed -n \
19802
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19803
 
      ;;
19804
 
    esac;
19805
 
} |
19806
 
  sed '
19807
 
     t clear
19808
 
     : clear
19809
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19810
 
     t end
19811
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19812
 
     : end' >>confcache
19813
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
19814
 
  if test -w $cache_file; then
19815
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19816
 
    cat confcache >$cache_file
19817
 
  else
19818
 
    echo "not updating unwritable cache $cache_file"
19819
 
  fi
19820
 
fi
19821
 
rm -f confcache
19822
 
 
19823
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19824
 
# Let make expand exec_prefix.
19825
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19826
 
 
19827
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19828
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19829
 
# trailing colons and then remove the whole line if VPATH becomes empty
19830
 
# (actually we leave an empty line to preserve line numbers).
19831
 
if test "x$srcdir" = x.; then
19832
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
19833
 
s/:*\$(srcdir):*/:/;
19834
 
s/:*\${srcdir}:*/:/;
19835
 
s/:*@srcdir@:*/:/;
19836
 
s/^\([^=]*=[     ]*\):*/\1/;
19837
 
s/:*$//;
19838
 
s/^[^=]*=[       ]*$//;
19839
 
}'
19840
 
fi
19841
 
 
19842
 
# Transform confdefs.h into DEFS.
19843
 
# Protect against shell expansion while executing Makefile rules.
19844
 
# Protect against Makefile macro expansion.
19845
 
#
19846
 
# If the first sed substitution is executed (which looks for macros that
19847
 
# take arguments), then we branch to the quote section.  Otherwise,
19848
 
# look for a macro that doesn't take arguments.
19849
 
cat >confdef2opt.sed <<\_ACEOF
19850
 
t clear
19851
 
: clear
19852
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
19853
 
t quote
19854
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
19855
 
t quote
19856
 
d
19857
 
: quote
19858
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
19859
 
s,\[,\\&,g
19860
 
s,\],\\&,g
19861
 
s,\$,$$,g
19862
 
p
19863
 
_ACEOF
19864
 
# We use echo to avoid assuming a particular line-breaking character.
19865
 
# The extra dot is to prevent the shell from consuming trailing
19866
 
# line-breaks from the sub-command output.  A line-break within
19867
 
# single-quotes doesn't work because, if this script is created in a
19868
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
19869
 
# would break.
19870
 
ac_LF_and_DOT=`echo; echo .`
19871
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19872
 
rm -f confdef2opt.sed
19873
 
 
19874
 
 
19875
 
ac_libobjs=
19876
 
ac_ltlibobjs=
19877
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19878
 
  # 1. Remove the extension, and $U if already installed.
19879
 
  ac_i=`echo "$ac_i" |
19880
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19881
 
  # 2. Add them.
19882
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19883
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19884
 
done
19885
 
LIBOBJS=$ac_libobjs
19886
 
 
19887
 
LTLIBOBJS=$ac_ltlibobjs
19888
 
 
19889
 
 
19890
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19891
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19892
 
Usually this means the macro was only invoked conditionally." >&5
19893
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19894
 
Usually this means the macro was only invoked conditionally." >&2;}
19895
 
   { (exit 1); exit 1; }; }
19896
 
fi
19897
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19898
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19899
 
Usually this means the macro was only invoked conditionally." >&5
19900
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19901
 
Usually this means the macro was only invoked conditionally." >&2;}
19902
 
   { (exit 1); exit 1; }; }
19903
 
fi
19904
 
 
19905
 
: ${CONFIG_STATUS=./config.status}
19906
 
ac_clean_files_save=$ac_clean_files
19907
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19908
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19909
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19910
 
cat >$CONFIG_STATUS <<_ACEOF
19911
 
#! $SHELL
19912
 
# Generated by $as_me.
19913
 
# Run this file to recreate the current configuration.
19914
 
# Compiler output produced by configure, useful for debugging
19915
 
# configure, is in config.log if it exists.
19916
 
 
19917
 
debug=false
19918
 
ac_cs_recheck=false
19919
 
ac_cs_silent=false
19920
 
SHELL=\${CONFIG_SHELL-$SHELL}
19921
 
_ACEOF
19922
 
 
19923
 
cat >>$CONFIG_STATUS <<\_ACEOF
19924
 
## --------------------- ##
19925
 
## M4sh Initialization.  ##
19926
 
## --------------------- ##
19927
 
 
19928
 
# Be Bourne compatible
19929
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19930
 
  emulate sh
19931
 
  NULLCMD=:
19932
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19933
 
  # is contrary to our usage.  Disable this feature.
19934
 
  alias -g '${1+"$@"}'='"$@"'
19935
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19936
 
  set -o posix
19937
 
fi
19938
 
DUALCASE=1; export DUALCASE # for MKS sh
19939
 
 
19940
 
# Support unset when possible.
19941
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19942
 
  as_unset=unset
19943
 
else
19944
 
  as_unset=false
19945
 
fi
19946
 
 
19947
 
 
19948
 
# Work around bugs in pre-3.0 UWIN ksh.
19949
 
$as_unset ENV MAIL MAILPATH
19950
 
PS1='$ '
19951
 
PS2='> '
19952
 
PS4='+ '
19953
 
 
19954
 
# NLS nuisances.
19955
 
for as_var in \
19956
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19957
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19958
 
  LC_TELEPHONE LC_TIME
19959
 
do
19960
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19961
 
    eval $as_var=C; export $as_var
19962
 
  else
19963
 
    $as_unset $as_var
19964
 
  fi
19965
 
done
19966
 
 
19967
 
# Required to use basename.
19968
 
if expr a : '\(a\)' >/dev/null 2>&1; then
19969
 
  as_expr=expr
19970
 
else
19971
 
  as_expr=false
19972
 
fi
19973
 
 
19974
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19975
 
  as_basename=basename
19976
 
else
19977
 
  as_basename=false
19978
 
fi
19979
 
 
19980
 
 
19981
 
# Name of the executable.
19982
 
as_me=`$as_basename "$0" ||
19983
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19984
 
         X"$0" : 'X\(//\)$' \| \
19985
 
         X"$0" : 'X\(/\)$' \| \
19986
 
         .     : '\(.\)' 2>/dev/null ||
19987
 
echo X/"$0" |
19988
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19989
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
19990
 
          /^X\/\(\/\).*/{ s//\1/; q; }
19991
 
          s/.*/./; q'`
19992
 
 
19993
 
 
19994
 
# PATH needs CR, and LINENO needs CR and PATH.
19995
 
# Avoid depending upon Character Ranges.
19996
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19997
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19998
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19999
 
as_cr_digits='0123456789'
20000
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20001
 
 
20002
 
# The user is always right.
20003
 
if test "${PATH_SEPARATOR+set}" != set; then
20004
 
  echo "#! /bin/sh" >conf$$.sh
20005
 
  echo  "exit 0"   >>conf$$.sh
20006
 
  chmod +x conf$$.sh
20007
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20008
 
    PATH_SEPARATOR=';'
20009
 
  else
20010
 
    PATH_SEPARATOR=:
20011
 
  fi
20012
 
  rm -f conf$$.sh
20013
 
fi
20014
 
 
20015
 
 
20016
 
  as_lineno_1=$LINENO
20017
 
  as_lineno_2=$LINENO
20018
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20019
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20020
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20021
 
  # Find who we are.  Look in the path if we contain no path at all
20022
 
  # relative or not.
20023
 
  case $0 in
20024
 
    *[\\/]* ) as_myself=$0 ;;
20025
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20026
 
for as_dir in $PATH
20027
 
do
20028
 
  IFS=$as_save_IFS
20029
 
  test -z "$as_dir" && as_dir=.
20030
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20031
 
done
20032
 
 
20033
 
       ;;
20034
 
  esac
20035
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20036
 
  # in which case we are not to be found in the path.
20037
 
  if test "x$as_myself" = x; then
20038
 
    as_myself=$0
20039
 
  fi
20040
 
  if test ! -f "$as_myself"; then
20041
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20042
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20043
 
   { (exit 1); exit 1; }; }
20044
 
  fi
20045
 
  case $CONFIG_SHELL in
20046
 
  '')
20047
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20048
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20049
 
do
20050
 
  IFS=$as_save_IFS
20051
 
  test -z "$as_dir" && as_dir=.
20052
 
  for as_base in sh bash ksh sh5; do
20053
 
         case $as_dir in
20054
 
         /*)
20055
 
           if ("$as_dir/$as_base" -c '
20056
 
  as_lineno_1=$LINENO
20057
 
  as_lineno_2=$LINENO
20058
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20059
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20060
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20061
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20062
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20063
 
             CONFIG_SHELL=$as_dir/$as_base
20064
 
             export CONFIG_SHELL
20065
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20066
 
           fi;;
20067
 
         esac
20068
 
       done
20069
 
done
20070
 
;;
20071
 
  esac
20072
 
 
20073
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20074
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
20075
 
  # line-number line before each line; the second 'sed' does the real
20076
 
  # work.  The second script uses 'N' to pair each line-number line
20077
 
  # with the numbered line, and appends trailing '-' during
20078
 
  # substitution so that $LINENO is not a special case at line end.
20079
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20080
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20081
 
  sed '=' <$as_myself |
20082
 
    sed '
20083
 
      N
20084
 
      s,$,-,
20085
 
      : loop
20086
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20087
 
      t loop
20088
 
      s,-$,,
20089
 
      s,^['$as_cr_digits']*\n,,
20090
 
    ' >$as_me.lineno &&
20091
 
  chmod +x $as_me.lineno ||
20092
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20093
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20094
 
   { (exit 1); exit 1; }; }
20095
 
 
20096
 
  # Don't try to exec as it changes $[0], causing all sort of problems
20097
 
  # (the dirname of $[0] is not the place where we might find the
20098
 
  # original and so on.  Autoconf is especially sensible to this).
20099
 
  . ./$as_me.lineno
20100
 
  # Exit status is that of the last command.
20101
 
  exit
20102
 
}
20103
 
 
20104
 
 
20105
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20106
 
  *c*,-n*) ECHO_N= ECHO_C='
20107
 
' ECHO_T='      ' ;;
20108
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20109
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20110
 
esac
20111
 
 
20112
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20113
 
  as_expr=expr
20114
 
else
20115
 
  as_expr=false
20116
 
fi
20117
 
 
20118
 
rm -f conf$$ conf$$.exe conf$$.file
20119
 
echo >conf$$.file
20120
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
20121
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20122
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20123
 
  if test -f conf$$.exe; then
20124
 
    # Don't use ln at all; we don't have any links
20125
 
    as_ln_s='cp -p'
20126
 
  else
20127
 
    as_ln_s='ln -s'
20128
 
  fi
20129
 
elif ln conf$$.file conf$$ 2>/dev/null; then
20130
 
  as_ln_s=ln
20131
 
else
20132
 
  as_ln_s='cp -p'
20133
 
fi
20134
 
rm -f conf$$ conf$$.exe conf$$.file
20135
 
 
20136
 
if mkdir -p . 2>/dev/null; then
20137
 
  as_mkdir_p=:
20138
 
else
20139
 
  test -d ./-p && rmdir ./-p
20140
 
  as_mkdir_p=false
20141
 
fi
20142
 
 
20143
 
as_executable_p="test -f"
20144
 
 
20145
 
# Sed expression to map a string onto a valid CPP name.
20146
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20147
 
 
20148
 
# Sed expression to map a string onto a valid variable name.
20149
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20150
 
 
20151
 
 
20152
 
# IFS
20153
 
# We need space, tab and new line, in precisely that order.
20154
 
as_nl='
20155
 
'
20156
 
IFS="   $as_nl"
20157
 
 
20158
 
# CDPATH.
20159
 
$as_unset CDPATH
20160
 
 
20161
 
exec 6>&1
20162
 
 
20163
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20164
 
# report actual input values of CONFIG_FILES etc. instead of their
20165
 
# values after options handling.  Logging --version etc. is OK.
20166
 
exec 5>>config.log
20167
 
{
20168
 
  echo
20169
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20170
 
## Running $as_me. ##
20171
 
_ASBOX
20172
 
} >&5
20173
 
cat >&5 <<_CSEOF
20174
 
 
20175
 
This file was extended by $as_me, which was
20176
 
generated by GNU Autoconf 2.59.  Invocation command line was
20177
 
 
20178
 
  CONFIG_FILES    = $CONFIG_FILES
20179
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
20180
 
  CONFIG_LINKS    = $CONFIG_LINKS
20181
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20182
 
  $ $0 $@
20183
 
 
20184
 
_CSEOF
20185
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20186
 
echo >&5
20187
 
_ACEOF
20188
 
 
20189
 
# Files that config.status was made for.
20190
 
if test -n "$ac_config_files"; then
20191
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20192
 
fi
20193
 
 
20194
 
if test -n "$ac_config_headers"; then
20195
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20196
 
fi
20197
 
 
20198
 
if test -n "$ac_config_links"; then
20199
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20200
 
fi
20201
 
 
20202
 
if test -n "$ac_config_commands"; then
20203
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20204
 
fi
20205
 
 
20206
 
cat >>$CONFIG_STATUS <<\_ACEOF
20207
 
 
20208
 
ac_cs_usage="\
20209
 
\`$as_me' instantiates files from templates according to the
20210
 
current configuration.
20211
 
 
20212
 
Usage: $0 [OPTIONS] [FILE]...
20213
 
 
20214
 
  -h, --help       print this help, then exit
20215
 
  -V, --version    print version number, then exit
20216
 
  -q, --quiet      do not print progress messages
20217
 
  -d, --debug      don't remove temporary files
20218
 
      --recheck    update $as_me by reconfiguring in the same conditions
20219
 
  --file=FILE[:TEMPLATE]
20220
 
                   instantiate the configuration file FILE
20221
 
 
20222
 
Configuration files:
20223
 
$config_files
20224
 
 
20225
 
Configuration commands:
20226
 
$config_commands
20227
 
 
20228
 
Report bugs to <bug-autoconf@gnu.org>."
20229
 
_ACEOF
20230
 
 
20231
 
cat >>$CONFIG_STATUS <<_ACEOF
20232
 
ac_cs_version="\\
20233
 
config.status
20234
 
configured by $0, generated by GNU Autoconf 2.59,
20235
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20236
 
 
20237
 
Copyright (C) 2003 Free Software Foundation, Inc.
20238
 
This config.status script is free software; the Free Software Foundation
20239
 
gives unlimited permission to copy, distribute and modify it."
20240
 
srcdir=$srcdir
20241
 
INSTALL="$INSTALL"
20242
 
_ACEOF
20243
 
 
20244
 
cat >>$CONFIG_STATUS <<\_ACEOF
20245
 
# If no file are specified by the user, then we need to provide default
20246
 
# value.  By we need to know if files were specified by the user.
20247
 
ac_need_defaults=:
20248
 
while test $# != 0
20249
 
do
20250
 
  case $1 in
20251
 
  --*=*)
20252
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20253
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20254
 
    ac_shift=:
20255
 
    ;;
20256
 
  -*)
20257
 
    ac_option=$1
20258
 
    ac_optarg=$2
20259
 
    ac_shift=shift
20260
 
    ;;
20261
 
  *) # This is not an option, so the user has probably given explicit
20262
 
     # arguments.
20263
 
     ac_option=$1
20264
 
     ac_need_defaults=false;;
20265
 
  esac
20266
 
 
20267
 
  case $ac_option in
20268
 
  # Handling of the options.
20269
 
_ACEOF
20270
 
cat >>$CONFIG_STATUS <<\_ACEOF
20271
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20272
 
    ac_cs_recheck=: ;;
20273
 
  --version | --vers* | -V )
20274
 
    echo "$ac_cs_version"; exit 0 ;;
20275
 
  --he | --h)
20276
 
    # Conflict between --help and --header
20277
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20278
 
Try \`$0 --help' for more information." >&5
20279
 
echo "$as_me: error: ambiguous option: $1
20280
 
Try \`$0 --help' for more information." >&2;}
20281
 
   { (exit 1); exit 1; }; };;
20282
 
  --help | --hel | -h )
20283
 
    echo "$ac_cs_usage"; exit 0 ;;
20284
 
  --debug | --d* | -d )
20285
 
    debug=: ;;
20286
 
  --file | --fil | --fi | --f )
20287
 
    $ac_shift
20288
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20289
 
    ac_need_defaults=false;;
20290
 
  --header | --heade | --head | --hea )
20291
 
    $ac_shift
20292
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20293
 
    ac_need_defaults=false;;
20294
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20295
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20296
 
    ac_cs_silent=: ;;
20297
 
 
20298
 
  # This is an error.
20299
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20300
 
Try \`$0 --help' for more information." >&5
20301
 
echo "$as_me: error: unrecognized option: $1
20302
 
Try \`$0 --help' for more information." >&2;}
20303
 
   { (exit 1); exit 1; }; } ;;
20304
 
 
20305
 
  *) ac_config_targets="$ac_config_targets $1" ;;
20306
 
 
20307
 
  esac
20308
 
  shift
20309
 
done
20310
 
 
20311
 
ac_configure_extra_args=
20312
 
 
20313
 
if $ac_cs_silent; then
20314
 
  exec 6>/dev/null
20315
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
20316
 
fi
20317
 
 
20318
 
_ACEOF
20319
 
cat >>$CONFIG_STATUS <<_ACEOF
20320
 
if \$ac_cs_recheck; then
20321
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20322
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20323
 
fi
20324
 
 
20325
 
_ACEOF
20326
 
 
20327
 
cat >>$CONFIG_STATUS <<_ACEOF
20328
 
#
20329
 
# INIT-COMMANDS section.
20330
 
#
20331
 
 
20332
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20333
 
 
20334
 
_ACEOF
20335
 
 
20336
 
 
20337
 
 
20338
 
cat >>$CONFIG_STATUS <<\_ACEOF
20339
 
for ac_config_target in $ac_config_targets
20340
 
do
20341
 
  case "$ac_config_target" in
20342
 
  # Handling of arguments.
20343
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20344
 
  "libspeex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libspeex/Makefile" ;;
20345
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20346
 
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20347
 
  "Speex.spec" ) CONFIG_FILES="$CONFIG_FILES Speex.spec" ;;
20348
 
  "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20349
 
  "win32/libspeex/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/libspeex/Makefile" ;;
20350
 
  "win32/speexenc/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/speexenc/Makefile" ;;
20351
 
  "win32/speexdec/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/speexdec/Makefile" ;;
20352
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20353
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20354
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20355
 
   { (exit 1); exit 1; }; };;
20356
 
  esac
20357
 
done
20358
 
 
20359
 
# If the user did not use the arguments to specify the items to instantiate,
20360
 
# then the envvar interface is used.  Set only those that are not.
20361
 
# We use the long form for the default assignment because of an extremely
20362
 
# bizarre bug on SunOS 4.1.3.
20363
 
if $ac_need_defaults; then
20364
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20365
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20366
 
fi
20367
 
 
20368
 
# Have a temporary directory for convenience.  Make it in the build tree
20369
 
# simply because there is no reason to put it here, and in addition,
20370
 
# creating and moving files from /tmp can sometimes cause problems.
20371
 
# Create a temporary directory, and hook for its removal unless debugging.
20372
 
$debug ||
20373
 
{
20374
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20375
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
20376
 
}
20377
 
 
20378
 
# Create a (secure) tmp directory for tmp files.
20379
 
 
20380
 
{
20381
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20382
 
  test -n "$tmp" && test -d "$tmp"
20383
 
}  ||
20384
 
{
20385
 
  tmp=./confstat$$-$RANDOM
20386
 
  (umask 077 && mkdir $tmp)
20387
 
} ||
20388
 
{
20389
 
   echo "$me: cannot create a temporary directory in ." >&2
20390
 
   { (exit 1); exit 1; }
20391
 
}
20392
 
 
20393
 
_ACEOF
20394
 
 
20395
 
cat >>$CONFIG_STATUS <<_ACEOF
20396
 
 
20397
 
#
20398
 
# CONFIG_FILES section.
20399
 
#
20400
 
 
20401
 
# No need to generate the scripts if there are no CONFIG_FILES.
20402
 
# This happens for instance when ./config.status config.h
20403
 
if test -n "\$CONFIG_FILES"; then
20404
 
  # Protect against being on the right side of a sed subst in config.status.
20405
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20406
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20407
 
s,@SHELL@,$SHELL,;t t
20408
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20409
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20410
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20411
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20412
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20413
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20414
 
s,@exec_prefix@,$exec_prefix,;t t
20415
 
s,@prefix@,$prefix,;t t
20416
 
s,@program_transform_name@,$program_transform_name,;t t
20417
 
s,@bindir@,$bindir,;t t
20418
 
s,@sbindir@,$sbindir,;t t
20419
 
s,@libexecdir@,$libexecdir,;t t
20420
 
s,@datadir@,$datadir,;t t
20421
 
s,@sysconfdir@,$sysconfdir,;t t
20422
 
s,@sharedstatedir@,$sharedstatedir,;t t
20423
 
s,@localstatedir@,$localstatedir,;t t
20424
 
s,@libdir@,$libdir,;t t
20425
 
s,@includedir@,$includedir,;t t
20426
 
s,@oldincludedir@,$oldincludedir,;t t
20427
 
s,@infodir@,$infodir,;t t
20428
 
s,@mandir@,$mandir,;t t
20429
 
s,@build_alias@,$build_alias,;t t
20430
 
s,@host_alias@,$host_alias,;t t
20431
 
s,@target_alias@,$target_alias,;t t
20432
 
s,@DEFS@,$DEFS,;t t
20433
 
s,@ECHO_C@,$ECHO_C,;t t
20434
 
s,@ECHO_N@,$ECHO_N,;t t
20435
 
s,@ECHO_T@,$ECHO_T,;t t
20436
 
s,@LIBS@,$LIBS,;t t
20437
 
s,@SPEEX_LT_CURRENT@,$SPEEX_LT_CURRENT,;t t
20438
 
s,@SPEEX_LT_REVISION@,$SPEEX_LT_REVISION,;t t
20439
 
s,@SPEEX_LT_AGE@,$SPEEX_LT_AGE,;t t
20440
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20441
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20442
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20443
 
s,@PACKAGE@,$PACKAGE,;t t
20444
 
s,@VERSION@,$VERSION,;t t
20445
 
s,@ACLOCAL@,$ACLOCAL,;t t
20446
 
s,@AUTOCONF@,$AUTOCONF,;t t
20447
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
20448
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
20449
 
s,@MAKEINFO@,$MAKEINFO,;t t
20450
 
s,@AMTAR@,$AMTAR,;t t
20451
 
s,@install_sh@,$install_sh,;t t
20452
 
s,@STRIP@,$STRIP,;t t
20453
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20454
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20455
 
s,@AWK@,$AWK,;t t
20456
 
s,@SET_MAKE@,$SET_MAKE,;t t
20457
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20458
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20459
 
s,@MAINT@,$MAINT,;t t
20460
 
s,@build@,$build,;t t
20461
 
s,@build_cpu@,$build_cpu,;t t
20462
 
s,@build_vendor@,$build_vendor,;t t
20463
 
s,@build_os@,$build_os,;t t
20464
 
s,@host@,$host,;t t
20465
 
s,@host_cpu@,$host_cpu,;t t
20466
 
s,@host_vendor@,$host_vendor,;t t
20467
 
s,@host_os@,$host_os,;t t
20468
 
s,@CC@,$CC,;t t
20469
 
s,@CFLAGS@,$CFLAGS,;t t
20470
 
s,@LDFLAGS@,$LDFLAGS,;t t
20471
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
20472
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
20473
 
s,@EXEEXT@,$EXEEXT,;t t
20474
 
s,@OBJEXT@,$OBJEXT,;t t
20475
 
s,@DEPDIR@,$DEPDIR,;t t
20476
 
s,@am__include@,$am__include,;t t
20477
 
s,@am__quote@,$am__quote,;t t
20478
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20479
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20480
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20481
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
20482
 
s,@EGREP@,$EGREP,;t t
20483
 
s,@LN_S@,$LN_S,;t t
20484
 
s,@ECHO@,$ECHO,;t t
20485
 
s,@AR@,$AR,;t t
20486
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
20487
 
s,@RANLIB@,$RANLIB,;t t
20488
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20489
 
s,@CPP@,$CPP,;t t
20490
 
s,@CXX@,$CXX,;t t
20491
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
20492
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20493
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20494
 
s,@CXXCPP@,$CXXCPP,;t t
20495
 
s,@F77@,$F77,;t t
20496
 
s,@FFLAGS@,$FFLAGS,;t t
20497
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
20498
 
s,@LIBTOOL@,$LIBTOOL,;t t
20499
 
s,@OGG_LIBS@,$OGG_LIBS,;t t
20500
 
s,@OGG_INCLUDES@,$OGG_INCLUDES,;t t
20501
 
s,@OGG_LDFLAGS@,$OGG_LDFLAGS,;t t
20502
 
s,@src@,$src,;t t
20503
 
s,@LIBOBJS@,$LIBOBJS,;t t
20504
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20505
 
CEOF
20506
 
 
20507
 
_ACEOF
20508
 
 
20509
 
  cat >>$CONFIG_STATUS <<\_ACEOF
20510
 
  # Split the substitutions into bite-sized pieces for seds with
20511
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
20512
 
  ac_max_sed_lines=48
20513
 
  ac_sed_frag=1 # Number of current file.
20514
 
  ac_beg=1 # First line for current file.
20515
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
20516
 
  ac_more_lines=:
20517
 
  ac_sed_cmds=
20518
 
  while $ac_more_lines; do
20519
 
    if test $ac_beg -gt 1; then
20520
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20521
 
    else
20522
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20523
 
    fi
20524
 
    if test ! -s $tmp/subs.frag; then
20525
 
      ac_more_lines=false
20526
 
    else
20527
 
      # The purpose of the label and of the branching condition is to
20528
 
      # speed up the sed processing (if there are no `@' at all, there
20529
 
      # is no need to browse any of the substitutions).
20530
 
      # These are the two extra sed commands mentioned above.
20531
 
      (echo ':t
20532
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20533
 
      if test -z "$ac_sed_cmds"; then
20534
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20535
 
      else
20536
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20537
 
      fi
20538
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
20539
 
      ac_beg=$ac_end
20540
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
20541
 
    fi
20542
 
  done
20543
 
  if test -z "$ac_sed_cmds"; then
20544
 
    ac_sed_cmds=cat
20545
 
  fi
20546
 
fi # test -n "$CONFIG_FILES"
20547
 
 
20548
 
_ACEOF
20549
 
cat >>$CONFIG_STATUS <<\_ACEOF
20550
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20551
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20552
 
  case $ac_file in
20553
 
  - | *:- | *:-:* ) # input from stdin
20554
 
        cat >$tmp/stdin
20555
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20556
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20557
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20558
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20559
 
  * )   ac_file_in=$ac_file.in ;;
20560
 
  esac
20561
 
 
20562
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20563
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20564
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20565
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
20566
 
         X"$ac_file" : 'X\(//\)$' \| \
20567
 
         X"$ac_file" : 'X\(/\)' \| \
20568
 
         .     : '\(.\)' 2>/dev/null ||
20569
 
echo X"$ac_file" |
20570
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20571
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20572
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20573
 
          /^X\(\/\).*/{ s//\1/; q; }
20574
 
          s/.*/./; q'`
20575
 
  { if $as_mkdir_p; then
20576
 
    mkdir -p "$ac_dir"
20577
 
  else
20578
 
    as_dir="$ac_dir"
20579
 
    as_dirs=
20580
 
    while test ! -d "$as_dir"; do
20581
 
      as_dirs="$as_dir $as_dirs"
20582
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20583
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20584
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
20585
 
         X"$as_dir" : 'X\(//\)$' \| \
20586
 
         X"$as_dir" : 'X\(/\)' \| \
20587
 
         .     : '\(.\)' 2>/dev/null ||
20588
 
echo X"$as_dir" |
20589
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20590
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20591
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20592
 
          /^X\(\/\).*/{ s//\1/; q; }
20593
 
          s/.*/./; q'`
20594
 
    done
20595
 
    test ! -n "$as_dirs" || mkdir $as_dirs
20596
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20597
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20598
 
   { (exit 1); exit 1; }; }; }
20599
 
 
20600
 
  ac_builddir=.
20601
 
 
20602
 
if test "$ac_dir" != .; then
20603
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20604
 
  # A "../" for each directory in $ac_dir_suffix.
20605
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20606
 
else
20607
 
  ac_dir_suffix= ac_top_builddir=
20608
 
fi
20609
 
 
20610
 
case $srcdir in
20611
 
  .)  # No --srcdir option.  We are building in place.
20612
 
    ac_srcdir=.
20613
 
    if test -z "$ac_top_builddir"; then
20614
 
       ac_top_srcdir=.
20615
 
    else
20616
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20617
 
    fi ;;
20618
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
20619
 
    ac_srcdir=$srcdir$ac_dir_suffix;
20620
 
    ac_top_srcdir=$srcdir ;;
20621
 
  *) # Relative path.
20622
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20623
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20624
 
esac
20625
 
 
20626
 
# Do not use `cd foo && pwd` to compute absolute paths, because
20627
 
# the directories may not exist.
20628
 
case `pwd` in
20629
 
.) ac_abs_builddir="$ac_dir";;
20630
 
*)
20631
 
  case "$ac_dir" in
20632
 
  .) ac_abs_builddir=`pwd`;;
20633
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20634
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20635
 
  esac;;
20636
 
esac
20637
 
case $ac_abs_builddir in
20638
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20639
 
*)
20640
 
  case ${ac_top_builddir}. in
20641
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
20642
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20643
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20644
 
  esac;;
20645
 
esac
20646
 
case $ac_abs_builddir in
20647
 
.) ac_abs_srcdir=$ac_srcdir;;
20648
 
*)
20649
 
  case $ac_srcdir in
20650
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
20651
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20652
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20653
 
  esac;;
20654
 
esac
20655
 
case $ac_abs_builddir in
20656
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20657
 
*)
20658
 
  case $ac_top_srcdir in
20659
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20660
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20661
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20662
 
  esac;;
20663
 
esac
20664
 
 
20665
 
 
20666
 
  case $INSTALL in
20667
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20668
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20669
 
  esac
20670
 
 
20671
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
20672
 
  # use $as_me), people would be surprised to read:
20673
 
  #    /* config.h.  Generated by config.status.  */
20674
 
  if test x"$ac_file" = x-; then
20675
 
    configure_input=
20676
 
  else
20677
 
    configure_input="$ac_file.  "
20678
 
  fi
20679
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
20680
 
                                     sed 's,.*/,,'` by configure."
20681
 
 
20682
 
  # First look for the input files in the build tree, otherwise in the
20683
 
  # src tree.
20684
 
  ac_file_inputs=`IFS=:
20685
 
    for f in $ac_file_in; do
20686
 
      case $f in
20687
 
      -) echo $tmp/stdin ;;
20688
 
      [\\/$]*)
20689
 
         # Absolute (can't be DOS-style, as IFS=:)
20690
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20691
 
echo "$as_me: error: cannot find input file: $f" >&2;}
20692
 
   { (exit 1); exit 1; }; }
20693
 
         echo "$f";;
20694
 
      *) # Relative
20695
 
         if test -f "$f"; then
20696
 
           # Build tree
20697
 
           echo "$f"
20698
 
         elif test -f "$srcdir/$f"; then
20699
 
           # Source tree
20700
 
           echo "$srcdir/$f"
20701
 
         else
20702
 
           # /dev/null tree
20703
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20704
 
echo "$as_me: error: cannot find input file: $f" >&2;}
20705
 
   { (exit 1); exit 1; }; }
20706
 
         fi;;
20707
 
      esac
20708
 
    done` || { (exit 1); exit 1; }
20709
 
 
20710
 
  if test x"$ac_file" != x-; then
20711
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
20712
 
echo "$as_me: creating $ac_file" >&6;}
20713
 
    rm -f "$ac_file"
20714
 
  fi
20715
 
_ACEOF
20716
 
cat >>$CONFIG_STATUS <<_ACEOF
20717
 
  sed "$ac_vpsub
20718
 
$extrasub
20719
 
_ACEOF
20720
 
cat >>$CONFIG_STATUS <<\_ACEOF
20721
 
:t
20722
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20723
 
s,@configure_input@,$configure_input,;t t
20724
 
s,@srcdir@,$ac_srcdir,;t t
20725
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20726
 
s,@top_srcdir@,$ac_top_srcdir,;t t
20727
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20728
 
s,@builddir@,$ac_builddir,;t t
20729
 
s,@abs_builddir@,$ac_abs_builddir,;t t
20730
 
s,@top_builddir@,$ac_top_builddir,;t t
20731
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20732
 
s,@INSTALL@,$ac_INSTALL,;t t
20733
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20734
 
  rm -f $tmp/stdin
20735
 
  if test x"$ac_file" != x-; then
20736
 
    mv $tmp/out $ac_file
20737
 
  else
20738
 
    cat $tmp/out
20739
 
    rm -f $tmp/out
20740
 
  fi
20741
 
 
20742
 
done
20743
 
_ACEOF
20744
 
cat >>$CONFIG_STATUS <<\_ACEOF
20745
 
 
20746
 
#
20747
 
# CONFIG_COMMANDS section.
20748
 
#
20749
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20750
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20751
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20752
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20753
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
20755
 
         X"$ac_dest" : 'X\(//\)$' \| \
20756
 
         X"$ac_dest" : 'X\(/\)' \| \
20757
 
         .     : '\(.\)' 2>/dev/null ||
20758
 
echo X"$ac_dest" |
20759
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20762
 
          /^X\(\/\).*/{ s//\1/; q; }
20763
 
          s/.*/./; q'`
20764
 
  { if $as_mkdir_p; then
20765
 
    mkdir -p "$ac_dir"
20766
 
  else
20767
 
    as_dir="$ac_dir"
20768
 
    as_dirs=
20769
 
    while test ! -d "$as_dir"; do
20770
 
      as_dirs="$as_dir $as_dirs"
20771
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20772
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
20774
 
         X"$as_dir" : 'X\(//\)$' \| \
20775
 
         X"$as_dir" : 'X\(/\)' \| \
20776
 
         .     : '\(.\)' 2>/dev/null ||
20777
 
echo X"$as_dir" |
20778
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20779
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20780
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20781
 
          /^X\(\/\).*/{ s//\1/; q; }
20782
 
          s/.*/./; q'`
20783
 
    done
20784
 
    test ! -n "$as_dirs" || mkdir $as_dirs
20785
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20786
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20787
 
   { (exit 1); exit 1; }; }; }
20788
 
 
20789
 
  ac_builddir=.
20790
 
 
20791
 
if test "$ac_dir" != .; then
20792
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20793
 
  # A "../" for each directory in $ac_dir_suffix.
20794
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20795
 
else
20796
 
  ac_dir_suffix= ac_top_builddir=
20797
 
fi
20798
 
 
20799
 
case $srcdir in
20800
 
  .)  # No --srcdir option.  We are building in place.
20801
 
    ac_srcdir=.
20802
 
    if test -z "$ac_top_builddir"; then
20803
 
       ac_top_srcdir=.
20804
 
    else
20805
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20806
 
    fi ;;
20807
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
20808
 
    ac_srcdir=$srcdir$ac_dir_suffix;
20809
 
    ac_top_srcdir=$srcdir ;;
20810
 
  *) # Relative path.
20811
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20812
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20813
 
esac
20814
 
 
20815
 
# Do not use `cd foo && pwd` to compute absolute paths, because
20816
 
# the directories may not exist.
20817
 
case `pwd` in
20818
 
.) ac_abs_builddir="$ac_dir";;
20819
 
*)
20820
 
  case "$ac_dir" in
20821
 
  .) ac_abs_builddir=`pwd`;;
20822
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20823
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20824
 
  esac;;
20825
 
esac
20826
 
case $ac_abs_builddir in
20827
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20828
 
*)
20829
 
  case ${ac_top_builddir}. in
20830
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
20831
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20832
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20833
 
  esac;;
20834
 
esac
20835
 
case $ac_abs_builddir in
20836
 
.) ac_abs_srcdir=$ac_srcdir;;
20837
 
*)
20838
 
  case $ac_srcdir in
20839
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
20840
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20841
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20842
 
  esac;;
20843
 
esac
20844
 
case $ac_abs_builddir in
20845
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20846
 
*)
20847
 
  case $ac_top_srcdir in
20848
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20849
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20850
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20851
 
  esac;;
20852
 
esac
20853
 
 
20854
 
 
20855
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20856
 
echo "$as_me: executing $ac_dest commands" >&6;}
20857
 
  case $ac_dest in
20858
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20859
 
  # Strip MF so we end up with the name of the file.
20860
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
20861
 
  # Check whether this is an Automake generated Makefile or not.
20862
 
  # We used to match only the files named `Makefile.in', but
20863
 
  # some people rename them; so instead we look at the file content.
20864
 
  # Grep'ing the first line is not enough: some people post-process
20865
 
  # each Makefile.in and add a new line on top of each file to say so.
20866
 
  # So let's grep whole file.
20867
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20868
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
20869
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20870
 
         X"$mf" : 'X\(//\)[^/]' \| \
20871
 
         X"$mf" : 'X\(//\)$' \| \
20872
 
         X"$mf" : 'X\(/\)' \| \
20873
 
         .     : '\(.\)' 2>/dev/null ||
20874
 
echo X"$mf" |
20875
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20876
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20877
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20878
 
          /^X\(\/\).*/{ s//\1/; q; }
20879
 
          s/.*/./; q'`
20880
 
  else
20881
 
    continue
20882
 
  fi
20883
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20884
 
  # Extract the definition of DEP_FILES from the Makefile without
20885
 
  # running `make'.
20886
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20887
 
  test -z "$DEPDIR" && continue
20888
 
  # When using ansi2knr, U may be empty or an underscore; expand it
20889
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
20890
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20891
 
  # We invoke sed twice because it is the simplest approach to
20892
 
  # changing $(DEPDIR) to its actual value in the expansion.
20893
 
  for file in `sed -n -e '
20894
 
    /^DEP_FILES = .*\\\\$/ {
20895
 
      s/^DEP_FILES = //
20896
 
      :loop
20897
 
        s/\\\\$//
20898
 
        p
20899
 
        n
20900
 
        /\\\\$/ b loop
20901
 
      p
20902
 
    }
20903
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20904
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20905
 
    # Make sure the directory exists.
20906
 
    test -f "$dirpart/$file" && continue
20907
 
    fdir=`(dirname "$file") 2>/dev/null ||
20908
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909
 
         X"$file" : 'X\(//\)[^/]' \| \
20910
 
         X"$file" : 'X\(//\)$' \| \
20911
 
         X"$file" : 'X\(/\)' \| \
20912
 
         .     : '\(.\)' 2>/dev/null ||
20913
 
echo X"$file" |
20914
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20917
 
          /^X\(\/\).*/{ s//\1/; q; }
20918
 
          s/.*/./; q'`
20919
 
    { if $as_mkdir_p; then
20920
 
    mkdir -p $dirpart/$fdir
20921
 
  else
20922
 
    as_dir=$dirpart/$fdir
20923
 
    as_dirs=
20924
 
    while test ! -d "$as_dir"; do
20925
 
      as_dirs="$as_dir $as_dirs"
20926
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20927
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20928
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
20929
 
         X"$as_dir" : 'X\(//\)$' \| \
20930
 
         X"$as_dir" : 'X\(/\)' \| \
20931
 
         .     : '\(.\)' 2>/dev/null ||
20932
 
echo X"$as_dir" |
20933
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20934
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20935
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20936
 
          /^X\(\/\).*/{ s//\1/; q; }
20937
 
          s/.*/./; q'`
20938
 
    done
20939
 
    test ! -n "$as_dirs" || mkdir $as_dirs
20940
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20941
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20942
 
   { (exit 1); exit 1; }; }; }
20943
 
 
20944
 
    # echo "creating $dirpart/$file"
20945
 
    echo '# dummy' > "$dirpart/$file"
20946
 
  done
20947
 
done
20948
 
 ;;
20949
 
  esac
20950
 
done
20951
 
_ACEOF
20952
 
 
20953
 
cat >>$CONFIG_STATUS <<\_ACEOF
20954
 
 
20955
 
{ (exit 0); exit 0; }
20956
 
_ACEOF
20957
 
chmod +x $CONFIG_STATUS
20958
 
ac_clean_files=$ac_clean_files_save
20959
 
 
20960
 
 
20961
 
# configure is writing to config.log, and then calls config.status.
20962
 
# config.status does its own redirection, appending to config.log.
20963
 
# Unfortunately, on DOS this fails, as config.log is still kept open
20964
 
# by configure, so config.status won't be able to write to it; its
20965
 
# output is simply discarded.  So we exec the FD to /dev/null,
20966
 
# effectively closing config.log, so it can be properly (re)opened and
20967
 
# appended to by config.status.  When coming back to configure, we
20968
 
# need to make the FD available again.
20969
 
if test "$no_create" != yes; then
20970
 
  ac_cs_success=:
20971
 
  ac_config_status_args=
20972
 
  test "$silent" = yes &&
20973
 
    ac_config_status_args="$ac_config_status_args --quiet"
20974
 
  exec 5>/dev/null
20975
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20976
 
  exec 5>>config.log
20977
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20978
 
  # would make configure fail if this is the last instruction.
20979
 
  $ac_cs_success || { (exit 1); exit 1; }
20980
 
fi
20981
 
 
20982
 
 
20983
 
if test "x$src" = "x"; then
20984
 
echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
20985
 
echo "You can download libogg from http://www.ogg.org/ogg/index.html"
20986
 
fi
20987
 
 
20988
 
echo "Type \"make; make install\" to compile and install Speex";