~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr-util/xml/expat/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh
 
2
dnl edits here will be lost
 
3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
5
## Free Software Foundation, Inc.
 
6
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7
##
 
8
## This file is free software; the Free Software Foundation gives
 
9
## unlimited permission to copy and/or distribute it, with or without
 
10
## modifications, as long as this notice is preserved.
 
11
 
 
12
# serial 47 AC_PROG_LIBTOOL
 
13
 
 
14
 
 
15
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
16
# -----------------------------------------------------------
 
17
# If this macro is not defined by Autoconf, define it here.
 
18
m4_ifdef([AC_PROVIDE_IFELSE],
 
19
         [],
 
20
         [m4_define([AC_PROVIDE_IFELSE],
 
21
                 [m4_ifdef([AC_PROVIDE_$1],
 
22
                           [$2], [$3])])])
 
23
 
 
24
 
 
25
# AC_PROG_LIBTOOL
 
26
# ---------------
 
27
AC_DEFUN([AC_PROG_LIBTOOL],
 
28
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
29
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
30
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
31
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
32
    [AC_LIBTOOL_CXX],
 
33
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
34
  ])])
 
35
dnl And a similar setup for Fortran 77 support
 
36
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
37
    [AC_LIBTOOL_F77],
 
38
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
39
])])
 
40
 
 
41
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
42
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
43
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
44
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
45
    [AC_LIBTOOL_GCJ],
 
46
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
47
      [AC_LIBTOOL_GCJ],
 
48
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
49
        [AC_LIBTOOL_GCJ],
 
50
      [ifdef([AC_PROG_GCJ],
 
51
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
52
       ifdef([A][M_PROG_GCJ],
 
53
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
54
       ifdef([LT_AC_PROG_GCJ],
 
55
             [define([LT_AC_PROG_GCJ],
 
56
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
57
])])# AC_PROG_LIBTOOL
 
58
 
 
59
 
 
60
# _AC_PROG_LIBTOOL
 
61
# ----------------
 
62
AC_DEFUN([_AC_PROG_LIBTOOL],
 
63
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
64
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
65
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
66
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
67
 
 
68
# This can be used to rebuild libtool when needed
 
69
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
70
 
 
71
# Always use our own libtool.
 
72
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
73
AC_SUBST(LIBTOOL)dnl
 
74
 
 
75
# Prevent multiple expansion
 
76
define([AC_PROG_LIBTOOL], [])
 
77
])# _AC_PROG_LIBTOOL
 
78
 
 
79
 
 
80
# AC_LIBTOOL_SETUP
 
81
# ----------------
 
82
AC_DEFUN([AC_LIBTOOL_SETUP],
 
83
[AC_PREREQ(2.50)dnl
 
84
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
85
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
86
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
87
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
88
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
89
AC_REQUIRE([AC_PROG_CC])dnl
 
90
AC_REQUIRE([AC_PROG_LD])dnl
 
91
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
92
AC_REQUIRE([AC_PROG_NM])dnl
 
93
 
 
94
AC_REQUIRE([AC_PROG_LN_S])dnl
 
95
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
96
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
97
AC_REQUIRE([AC_OBJEXT])dnl
 
98
AC_REQUIRE([AC_EXEEXT])dnl
 
99
dnl
 
100
 
 
101
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
102
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
103
AC_LIBTOOL_OBJDIR
 
104
 
 
105
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
106
_LT_AC_PROG_ECHO_BACKSLASH
 
107
 
 
108
case $host_os in
 
109
aix3*)
 
110
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
111
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
112
  # vanish in a puff of smoke.
 
113
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
114
    COLLECT_NAMES=
 
115
    export COLLECT_NAMES
 
116
  fi
 
117
  ;;
 
118
esac
 
119
 
 
120
# Sed substitution that helps us do robust quoting.  It backslashifies
 
121
# metacharacters that are still active within double-quoted strings.
 
122
Xsed='sed -e 1s/^X//'
 
123
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
124
 
 
125
# Same as above, but do not quote variable references.
 
126
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
127
 
 
128
# Sed substitution to delay expansion of an escaped shell variable in a
 
129
# double_quote_subst'ed string.
 
130
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
131
 
 
132
# Sed substitution to avoid accidental globbing in evaled expressions
 
133
no_glob_subst='s/\*/\\\*/g'
 
134
 
 
135
# Constants:
 
136
rm="rm -f"
 
137
 
 
138
# Global variables:
 
139
default_ofile=libtool
 
140
can_build_shared=yes
 
141
 
 
142
# All known linkers require a `.a' archive for static linking (except MSVC,
 
143
# which needs '.lib').
 
144
libext=a
 
145
ltmain="$ac_aux_dir/ltmain.sh"
 
146
ofile="$default_ofile"
 
147
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
148
 
 
149
AC_CHECK_TOOL(AR, ar, false)
 
150
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
151
AC_CHECK_TOOL(STRIP, strip, :)
 
152
 
 
153
old_CC="$CC"
 
154
old_CFLAGS="$CFLAGS"
 
155
 
 
156
# Set sane defaults for various variables
 
157
test -z "$AR" && AR=ar
 
158
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
159
test -z "$AS" && AS=as
 
160
test -z "$CC" && CC=cc
 
161
test -z "$LTCC" && LTCC=$CC
 
162
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
163
test -z "$LD" && LD=ld
 
164
test -z "$LN_S" && LN_S="ln -s"
 
165
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
166
test -z "$NM" && NM=nm
 
167
test -z "$SED" && SED=sed
 
168
test -z "$OBJDUMP" && OBJDUMP=objdump
 
169
test -z "$RANLIB" && RANLIB=:
 
170
test -z "$STRIP" && STRIP=:
 
171
test -z "$ac_objext" && ac_objext=o
 
172
 
 
173
# Determine commands to create old-style static archives.
 
174
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
175
old_postinstall_cmds='chmod 644 $oldlib'
 
176
old_postuninstall_cmds=
 
177
 
 
178
if test -n "$RANLIB"; then
 
179
  case $host_os in
 
180
  openbsd*)
 
181
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
182
    ;;
 
183
  *)
 
184
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
185
    ;;
 
186
  esac
 
187
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
188
fi
 
189
 
 
190
_LT_CC_BASENAME([$compiler])
 
191
 
 
192
# Only perform the check for file, if the check method requires it
 
193
case $deplibs_check_method in
 
194
file_magic*)
 
195
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
196
    AC_PATH_MAGIC
 
197
  fi
 
198
  ;;
 
199
esac
 
200
 
 
201
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
202
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
203
enable_win32_dll=yes, enable_win32_dll=no)
 
204
 
 
205
AC_ARG_ENABLE([libtool-lock],
 
206
    [AC_HELP_STRING([--disable-libtool-lock],
 
207
        [avoid locking (might break parallel builds)])])
 
208
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
209
 
 
210
AC_ARG_WITH([pic],
 
211
    [AC_HELP_STRING([--with-pic],
 
212
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
213
    [pic_mode="$withval"],
 
214
    [pic_mode=default])
 
215
test -z "$pic_mode" && pic_mode=default
 
216
 
 
217
# Use C for the default configuration in the libtool script
 
218
tagname=
 
219
AC_LIBTOOL_LANG_C_CONFIG
 
220
_LT_AC_TAGCONFIG
 
221
])# AC_LIBTOOL_SETUP
 
222
 
 
223
 
 
224
# _LT_AC_SYS_COMPILER
 
225
# -------------------
 
226
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
227
[AC_REQUIRE([AC_PROG_CC])dnl
 
228
 
 
229
# If no C compiler was specified, use CC.
 
230
LTCC=${LTCC-"$CC"}
 
231
 
 
232
# Allow CC to be a program name with arguments.
 
233
compiler=$CC
 
234
])# _LT_AC_SYS_COMPILER
 
235
 
 
236
 
 
237
# _LT_CC_BASENAME(CC)
 
238
# -------------------
 
239
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
240
AC_DEFUN([_LT_CC_BASENAME],
 
241
[for cc_temp in $1""; do
 
242
  case $cc_temp in
 
243
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
244
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
245
    \-*) ;;
 
246
    *) break;;
 
247
  esac
 
248
done
 
249
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
250
])
 
251
 
 
252
 
 
253
# _LT_COMPILER_BOILERPLATE
 
254
# ------------------------
 
255
# Check for compiler boilerplate output or warnings with
 
256
# the simple compiler test code.
 
257
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
258
[ac_outfile=conftest.$ac_objext
 
259
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
260
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
261
_lt_compiler_boilerplate=`cat conftest.err`
 
262
$rm conftest*
 
263
])# _LT_COMPILER_BOILERPLATE
 
264
 
 
265
 
 
266
# _LT_LINKER_BOILERPLATE
 
267
# ----------------------
 
268
# Check for linker boilerplate output or warnings with
 
269
# the simple link test code.
 
270
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
271
[ac_outfile=conftest.$ac_objext
 
272
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
273
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
274
_lt_linker_boilerplate=`cat conftest.err`
 
275
$rm conftest*
 
276
])# _LT_LINKER_BOILERPLATE
 
277
 
 
278
 
 
279
# _LT_AC_SYS_LIBPATH_AIX
 
280
# ----------------------
 
281
# Links a minimal program and checks the executable
 
282
# for the system default hardcoded library path. In most cases,
 
283
# this is /usr/lib:/lib, but when the MPI compilers are used
 
284
# the location of the communication and MPI libs are included too.
 
285
# If we don't find anything, use the default library path according
 
286
# to the aix ld manual.
 
287
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
288
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
290
}'`
 
291
# Check for a 64-bit object if we didn't find anything.
 
292
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; }
 
293
}'`; fi],[])
 
294
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
295
])# _LT_AC_SYS_LIBPATH_AIX
 
296
 
 
297
 
 
298
# _LT_AC_SHELL_INIT(ARG)
 
299
# ----------------------
 
300
AC_DEFUN([_LT_AC_SHELL_INIT],
 
301
[ifdef([AC_DIVERSION_NOTICE],
 
302
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
303
         [AC_DIVERT_PUSH(NOTICE)])
 
304
$1
 
305
AC_DIVERT_POP
 
306
])# _LT_AC_SHELL_INIT
 
307
 
 
308
 
 
309
# _LT_AC_PROG_ECHO_BACKSLASH
 
310
# --------------------------
 
311
# Add some code to the start of the generated configure script which
 
312
# will find an echo command which doesn't interpret backslashes.
 
313
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
314
[_LT_AC_SHELL_INIT([
 
315
# Check that we are running under the correct shell.
 
316
SHELL=${CONFIG_SHELL-/bin/sh}
 
317
 
 
318
case X$ECHO in
 
319
X*--fallback-echo)
 
320
  # Remove one level of quotation (which was required for Make).
 
321
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
322
  ;;
 
323
esac
 
324
 
 
325
echo=${ECHO-echo}
 
326
if test "X[$]1" = X--no-reexec; then
 
327
  # Discard the --no-reexec flag, and continue.
 
328
  shift
 
329
elif test "X[$]1" = X--fallback-echo; then
 
330
  # Avoid inline document here, it may be left over
 
331
  :
 
332
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
333
  # Yippee, $echo works!
 
334
  :
 
335
else
 
336
  # Restart under the correct shell.
 
337
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
338
fi
 
339
 
 
340
if test "X[$]1" = X--fallback-echo; then
 
341
  # used as fallback echo
 
342
  shift
 
343
  cat <<EOF
 
344
[$]*
 
345
EOF
 
346
  exit 0
 
347
fi
 
348
 
 
349
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
350
# if CDPATH is set.
 
351
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
352
 
 
353
if test -z "$ECHO"; then
 
354
if test "X${echo_test_string+set}" != Xset; then
 
355
# find a string as large as possible, as long as the shell can cope with it
 
356
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
357
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
358
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
359
       echo_test_string=`eval $cmd` &&
 
360
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
361
    then
 
362
      break
 
363
    fi
 
364
  done
 
365
fi
 
366
 
 
367
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
368
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
369
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
370
  :
 
371
else
 
372
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
373
  # backslashes.  This makes it impossible to quote backslashes using
 
374
  #   echo "$something" | sed 's/\\/\\\\/g'
 
375
  #
 
376
  # So, first we look for a working echo in the user's PATH.
 
377
 
 
378
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
379
  for dir in $PATH /usr/ucb; do
 
380
    IFS="$lt_save_ifs"
 
381
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
382
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
383
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
384
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
385
      echo="$dir/echo"
 
386
      break
 
387
    fi
 
388
  done
 
389
  IFS="$lt_save_ifs"
 
390
 
 
391
  if test "X$echo" = Xecho; then
 
392
    # We didn't find a better echo, so look for alternatives.
 
393
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
394
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
395
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
396
      # This shell has a builtin print -r that does the trick.
 
397
      echo='print -r'
 
398
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
399
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
400
      # If we have ksh, try running configure again with it.
 
401
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
402
      export ORIGINAL_CONFIG_SHELL
 
403
      CONFIG_SHELL=/bin/ksh
 
404
      export CONFIG_SHELL
 
405
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
406
    else
 
407
      # Try using printf.
 
408
      echo='printf %s\n'
 
409
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
410
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
411
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
412
        # Cool, printf works
 
413
        :
 
414
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
415
           test "X$echo_testing_string" = 'X\t' &&
 
416
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
417
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
418
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
419
        export CONFIG_SHELL
 
420
        SHELL="$CONFIG_SHELL"
 
421
        export SHELL
 
422
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
423
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
424
           test "X$echo_testing_string" = 'X\t' &&
 
425
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
426
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
427
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
428
      else
 
429
        # maybe with a smaller string...
 
430
        prev=:
 
431
 
 
432
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
433
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
434
          then
 
435
            break
 
436
          fi
 
437
          prev="$cmd"
 
438
        done
 
439
 
 
440
        if test "$prev" != 'sed 50q "[$]0"'; then
 
441
          echo_test_string=`eval $prev`
 
442
          export echo_test_string
 
443
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
444
        else
 
445
          # Oops.  We lost completely, so just stick with echo.
 
446
          echo=echo
 
447
        fi
 
448
      fi
 
449
    fi
 
450
  fi
 
451
fi
 
452
fi
 
453
 
 
454
# Copy echo and quote the copy suitably for passing to libtool from
 
455
# the Makefile, instead of quoting the original, which is used later.
 
456
ECHO=$echo
 
457
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
458
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
459
fi
 
460
 
 
461
AC_SUBST(ECHO)
 
462
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
463
 
 
464
 
 
465
# _LT_AC_LOCK
 
466
# -----------
 
467
AC_DEFUN([_LT_AC_LOCK],
 
468
[AC_ARG_ENABLE([libtool-lock],
 
469
    [AC_HELP_STRING([--disable-libtool-lock],
 
470
        [avoid locking (might break parallel builds)])])
 
471
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
472
 
 
473
# Some flags need to be propagated to the compiler or linker for good
 
474
# libtool support.
 
475
case $host in
 
476
ia64-*-hpux*)
 
477
  # Find out which ABI we are using.
 
478
  echo 'int i;' > conftest.$ac_ext
 
479
  if AC_TRY_EVAL(ac_compile); then
 
480
    case `/usr/bin/file conftest.$ac_objext` in
 
481
    *ELF-32*)
 
482
      HPUX_IA64_MODE="32"
 
483
      ;;
 
484
    *ELF-64*)
 
485
      HPUX_IA64_MODE="64"
 
486
      ;;
 
487
    esac
 
488
  fi
 
489
  rm -rf conftest*
 
490
  ;;
 
491
*-*-irix6*)
 
492
  # Find out which ABI we are using.
 
493
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
494
  if AC_TRY_EVAL(ac_compile); then
 
495
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
496
    case `/usr/bin/file conftest.$ac_objext` in
 
497
    *32-bit*)
 
498
      LD="${LD-ld} -melf32bsmip"
 
499
      ;;
 
500
    *N32*)
 
501
      LD="${LD-ld} -melf32bmipn32"
 
502
      ;;
 
503
    *64-bit*)
 
504
      LD="${LD-ld} -melf64bmip"
 
505
      ;;
 
506
    esac
 
507
   else
 
508
    case `/usr/bin/file conftest.$ac_objext` in
 
509
    *32-bit*)
 
510
      LD="${LD-ld} -32"
 
511
      ;;
 
512
    *N32*)
 
513
      LD="${LD-ld} -n32"
 
514
      ;;
 
515
    *64-bit*)
 
516
      LD="${LD-ld} -64"
 
517
      ;;
 
518
    esac
 
519
   fi
 
520
  fi
 
521
  rm -rf conftest*
 
522
  ;;
 
523
 
 
524
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
525
  # Find out which ABI we are using.
 
526
  echo 'int i;' > conftest.$ac_ext
 
527
  if AC_TRY_EVAL(ac_compile); then
 
528
    case `/usr/bin/file conftest.o` in
 
529
    *32-bit*)
 
530
      case $host in
 
531
        x86_64-*linux*)
 
532
          LD="${LD-ld} -m elf_i386"
 
533
          ;;
 
534
        ppc64-*linux*|powerpc64-*linux*)
 
535
          LD="${LD-ld} -m elf32ppclinux"
 
536
          ;;
 
537
        s390x-*linux*)
 
538
          LD="${LD-ld} -m elf_s390"
 
539
          ;;
 
540
        sparc64-*linux*)
 
541
          LD="${LD-ld} -m elf32_sparc"
 
542
          ;;
 
543
      esac
 
544
      ;;
 
545
    *64-bit*)
 
546
      case $host in
 
547
        x86_64-*linux*)
 
548
          LD="${LD-ld} -m elf_x86_64"
 
549
          ;;
 
550
        ppc*-*linux*|powerpc*-*linux*)
 
551
          LD="${LD-ld} -m elf64ppc"
 
552
          ;;
 
553
        s390*-*linux*)
 
554
          LD="${LD-ld} -m elf64_s390"
 
555
          ;;
 
556
        sparc*-*linux*)
 
557
          LD="${LD-ld} -m elf64_sparc"
 
558
          ;;
 
559
      esac
 
560
      ;;
 
561
    esac
 
562
  fi
 
563
  rm -rf conftest*
 
564
  ;;
 
565
 
 
566
*-*-sco3.2v5*)
 
567
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
568
  SAVE_CFLAGS="$CFLAGS"
 
569
  CFLAGS="$CFLAGS -belf"
 
570
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
571
    [AC_LANG_PUSH(C)
 
572
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
573
     AC_LANG_POP])
 
574
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
575
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
576
    CFLAGS="$SAVE_CFLAGS"
 
577
  fi
 
578
  ;;
 
579
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
580
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
581
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
582
  AC_CHECK_TOOL(AS, as, false)
 
583
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
584
  ;;
 
585
  ])
 
586
esac
 
587
 
 
588
need_locks="$enable_libtool_lock"
 
589
 
 
590
])# _LT_AC_LOCK
 
591
 
 
592
 
 
593
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
594
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
595
# ----------------------------------------------------------------
 
596
# Check whether the given compiler option works
 
597
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
598
[AC_REQUIRE([LT_AC_PROG_SED])
 
599
AC_CACHE_CHECK([$1], [$2],
 
600
  [$2=no
 
601
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
602
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
603
   lt_compiler_flag="$3"
 
604
   # Insert the option either (1) after the last *FLAGS variable, or
 
605
   # (2) before a word containing "conftest.", or (3) at the end.
 
606
   # Note that $ac_compile itself does not contain backslashes and begins
 
607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
608
   # The option is referenced via a variable to avoid confusing sed.
 
609
   lt_compile=`echo "$ac_compile" | $SED \
 
610
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
611
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
612
   -e 's:$: $lt_compiler_flag:'`
 
613
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
614
   (eval "$lt_compile" 2>conftest.err)
 
615
   ac_status=$?
 
616
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
617
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
618
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
619
     # The compiler can only warn and ignore the option if not recognized
 
620
     # So say no if there are warnings other than the usual output.
 
621
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
622
     $SED '/^$/d' conftest.err >conftest.er2
 
623
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
624
       $2=yes
 
625
     fi
 
626
   fi
 
627
   $rm conftest*
 
628
])
 
629
 
 
630
if test x"[$]$2" = xyes; then
 
631
    ifelse([$5], , :, [$5])
 
632
else
 
633
    ifelse([$6], , :, [$6])
 
634
fi
 
635
])# AC_LIBTOOL_COMPILER_OPTION
 
636
 
 
637
 
 
638
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
639
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
640
# ------------------------------------------------------------
 
641
# Check whether the given compiler option works
 
642
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
643
[AC_CACHE_CHECK([$1], [$2],
 
644
  [$2=no
 
645
   save_LDFLAGS="$LDFLAGS"
 
646
   LDFLAGS="$LDFLAGS $3"
 
647
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
648
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
649
     # The linker can only warn and ignore the option if not recognized
 
650
     # So say no if there are warnings
 
651
     if test -s conftest.err; then
 
652
       # Append any errors to the config.log.
 
653
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
654
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
655
       $SED '/^$/d' conftest.err >conftest.er2
 
656
       if diff conftest.exp conftest.er2 >/dev/null; then
 
657
         $2=yes
 
658
       fi
 
659
     else
 
660
       $2=yes
 
661
     fi
 
662
   fi
 
663
   $rm conftest*
 
664
   LDFLAGS="$save_LDFLAGS"
 
665
])
 
666
 
 
667
if test x"[$]$2" = xyes; then
 
668
    ifelse([$4], , :, [$4])
 
669
else
 
670
    ifelse([$5], , :, [$5])
 
671
fi
 
672
])# AC_LIBTOOL_LINKER_OPTION
 
673
 
 
674
 
 
675
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
676
# --------------------------
 
677
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
678
[# find the maximum length of command line arguments
 
679
AC_MSG_CHECKING([the maximum length of command line arguments])
 
680
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
681
  i=0
 
682
  teststring="ABCD"
 
683
 
 
684
  case $build_os in
 
685
  msdosdjgpp*)
 
686
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
687
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
688
    # during glob expansion).  Even if it were fixed, the result of this
 
689
    # check would be larger than it should be.
 
690
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
691
    ;;
 
692
 
 
693
  gnu*)
 
694
    # Under GNU Hurd, this test is not required because there is
 
695
    # no limit to the length of command line arguments.
 
696
    # Libtool will interpret -1 as no limit whatsoever
 
697
    lt_cv_sys_max_cmd_len=-1;
 
698
    ;;
 
699
 
 
700
  cygwin* | mingw*)
 
701
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
702
    # about 5 minutes as the teststring grows exponentially.
 
703
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
704
    # you end up with a "frozen" computer, even though with patience
 
705
    # the test eventually succeeds (with a max line length of 256k).
 
706
    # Instead, let's just punt: use the minimum linelength reported by
 
707
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
708
    lt_cv_sys_max_cmd_len=8192;
 
709
    ;;
 
710
 
 
711
  amigaos*)
 
712
    # On AmigaOS with pdksh, this test takes hours, literally.
 
713
    # So we just punt and use a minimum line length of 8192.
 
714
    lt_cv_sys_max_cmd_len=8192;
 
715
    ;;
 
716
 
 
717
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
718
    # This has been around since 386BSD, at least.  Likely further.
 
719
    if test -x /sbin/sysctl; then
 
720
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
721
    elif test -x /usr/sbin/sysctl; then
 
722
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
723
    else
 
724
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
725
    fi
 
726
    # And add a safety zone
 
727
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
728
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
729
    ;;
 
730
  osf*)
 
731
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
732
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
733
    # nice to cause kernel panics so lets avoid the loop below.
 
734
    # First set a reasonable default.
 
735
    lt_cv_sys_max_cmd_len=16384
 
736
    #
 
737
    if test -x /sbin/sysconfig; then
 
738
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
739
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
740
      esac
 
741
    fi
 
742
    ;;
 
743
  *)
 
744
    # If test is not a shell built-in, we'll probably end up computing a
 
745
    # maximum length that is only half of the actual maximum length, but
 
746
    # we can't tell.
 
747
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
748
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
749
               = "XX$teststring") >/dev/null 2>&1 &&
 
750
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
751
            lt_cv_sys_max_cmd_len=$new_result &&
 
752
            test $i != 17 # 1/2 MB should be enough
 
753
    do
 
754
      i=`expr $i + 1`
 
755
      teststring=$teststring$teststring
 
756
    done
 
757
    teststring=
 
758
    # Add a significant safety factor because C++ compilers can tack on massive
 
759
    # amounts of additional arguments before passing them to the linker.
 
760
    # It appears as though 1/2 is a usable value.
 
761
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
762
    ;;
 
763
  esac
 
764
])
 
765
if test -n $lt_cv_sys_max_cmd_len ; then
 
766
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
767
else
 
768
  AC_MSG_RESULT(none)
 
769
fi
 
770
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
771
 
 
772
 
 
773
# _LT_AC_CHECK_DLFCN
 
774
# --------------------
 
775
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
776
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
777
])# _LT_AC_CHECK_DLFCN
 
778
 
 
779
 
 
780
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
781
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
782
# ------------------------------------------------------------------
 
783
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
784
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
785
if test "$cross_compiling" = yes; then :
 
786
  [$4]
 
787
else
 
788
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
789
  lt_status=$lt_dlunknown
 
790
  cat > conftest.$ac_ext <<EOF
 
791
[#line __oline__ "configure"
 
792
#include "confdefs.h"
 
793
 
 
794
#if HAVE_DLFCN_H
 
795
#include <dlfcn.h>
 
796
#endif
 
797
 
 
798
#include <stdio.h>
 
799
 
 
800
#ifdef RTLD_GLOBAL
 
801
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
802
#else
 
803
#  ifdef DL_GLOBAL
 
804
#    define LT_DLGLOBAL         DL_GLOBAL
 
805
#  else
 
806
#    define LT_DLGLOBAL         0
 
807
#  endif
 
808
#endif
 
809
 
 
810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
811
   find out it does not work in some platform. */
 
812
#ifndef LT_DLLAZY_OR_NOW
 
813
#  ifdef RTLD_LAZY
 
814
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
815
#  else
 
816
#    ifdef DL_LAZY
 
817
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
818
#    else
 
819
#      ifdef RTLD_NOW
 
820
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
821
#      else
 
822
#        ifdef DL_NOW
 
823
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
824
#        else
 
825
#          define LT_DLLAZY_OR_NOW      0
 
826
#        endif
 
827
#      endif
 
828
#    endif
 
829
#  endif
 
830
#endif
 
831
 
 
832
#ifdef __cplusplus
 
833
extern "C" void exit (int);
 
834
#endif
 
835
 
 
836
void fnord() { int i=42;}
 
837
int main ()
 
838
{
 
839
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
840
  int status = $lt_dlunknown;
 
841
 
 
842
  if (self)
 
843
    {
 
844
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
845
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
846
      /* dlclose (self); */
 
847
    }
 
848
 
 
849
    exit (status);
 
850
}]
 
851
EOF
 
852
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
853
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
854
    lt_status=$?
 
855
    case x$lt_status in
 
856
      x$lt_dlno_uscore) $1 ;;
 
857
      x$lt_dlneed_uscore) $2 ;;
 
858
      x$lt_unknown|x*) $3 ;;
 
859
    esac
 
860
  else :
 
861
    # compilation failed
 
862
    $3
 
863
  fi
 
864
fi
 
865
rm -fr conftest*
 
866
])# _LT_AC_TRY_DLOPEN_SELF
 
867
 
 
868
 
 
869
# AC_LIBTOOL_DLOPEN_SELF
 
870
# -------------------
 
871
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
872
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
873
if test "x$enable_dlopen" != xyes; then
 
874
  enable_dlopen=unknown
 
875
  enable_dlopen_self=unknown
 
876
  enable_dlopen_self_static=unknown
 
877
else
 
878
  lt_cv_dlopen=no
 
879
  lt_cv_dlopen_libs=
 
880
 
 
881
  case $host_os in
 
882
  beos*)
 
883
    lt_cv_dlopen="load_add_on"
 
884
    lt_cv_dlopen_libs=
 
885
    lt_cv_dlopen_self=yes
 
886
    ;;
 
887
 
 
888
  mingw* | pw32*)
 
889
    lt_cv_dlopen="LoadLibrary"
 
890
    lt_cv_dlopen_libs=
 
891
   ;;
 
892
 
 
893
  cygwin*)
 
894
    lt_cv_dlopen="dlopen"
 
895
    lt_cv_dlopen_libs=
 
896
   ;;
 
897
 
 
898
  darwin*)
 
899
  # if libdl is installed we need to link against it
 
900
    AC_CHECK_LIB([dl], [dlopen],
 
901
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
902
    lt_cv_dlopen="dyld"
 
903
    lt_cv_dlopen_libs=
 
904
    lt_cv_dlopen_self=yes
 
905
    ])
 
906
   ;;
 
907
 
 
908
  *)
 
909
    AC_CHECK_FUNC([shl_load],
 
910
          [lt_cv_dlopen="shl_load"],
 
911
      [AC_CHECK_LIB([dld], [shl_load],
 
912
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
913
        [AC_CHECK_FUNC([dlopen],
 
914
              [lt_cv_dlopen="dlopen"],
 
915
          [AC_CHECK_LIB([dl], [dlopen],
 
916
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
917
            [AC_CHECK_LIB([svld], [dlopen],
 
918
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
919
              [AC_CHECK_LIB([dld], [dld_link],
 
920
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
921
              ])
 
922
            ])
 
923
          ])
 
924
        ])
 
925
      ])
 
926
    ;;
 
927
  esac
 
928
 
 
929
  if test "x$lt_cv_dlopen" != xno; then
 
930
    enable_dlopen=yes
 
931
  else
 
932
    enable_dlopen=no
 
933
  fi
 
934
 
 
935
  case $lt_cv_dlopen in
 
936
  dlopen)
 
937
    save_CPPFLAGS="$CPPFLAGS"
 
938
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
939
 
 
940
    save_LDFLAGS="$LDFLAGS"
 
941
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
942
 
 
943
    save_LIBS="$LIBS"
 
944
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
945
 
 
946
    AC_CACHE_CHECK([whether a program can dlopen itself],
 
947
          lt_cv_dlopen_self, [dnl
 
948
          _LT_AC_TRY_DLOPEN_SELF(
 
949
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
950
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
951
    ])
 
952
 
 
953
    if test "x$lt_cv_dlopen_self" = xyes; then
 
954
      LDFLAGS="$LDFLAGS $link_static_flag"
 
955
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
956
          lt_cv_dlopen_self_static, [dnl
 
957
          _LT_AC_TRY_DLOPEN_SELF(
 
958
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
959
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
960
      ])
 
961
    fi
 
962
 
 
963
    CPPFLAGS="$save_CPPFLAGS"
 
964
    LDFLAGS="$save_LDFLAGS"
 
965
    LIBS="$save_LIBS"
 
966
    ;;
 
967
  esac
 
968
 
 
969
  case $lt_cv_dlopen_self in
 
970
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
971
  *) enable_dlopen_self=unknown ;;
 
972
  esac
 
973
 
 
974
  case $lt_cv_dlopen_self_static in
 
975
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
976
  *) enable_dlopen_self_static=unknown ;;
 
977
  esac
 
978
fi
 
979
])# AC_LIBTOOL_DLOPEN_SELF
 
980
 
 
981
 
 
982
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
983
# ---------------------------------
 
984
# Check to see if options -c and -o are simultaneously supported by compiler
 
985
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
986
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
987
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
988
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
989
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
990
   $rm -r conftest 2>/dev/null
 
991
   mkdir conftest
 
992
   cd conftest
 
993
   mkdir out
 
994
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
995
 
 
996
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
997
   # Insert the option either (1) after the last *FLAGS variable, or
 
998
   # (2) before a word containing "conftest.", or (3) at the end.
 
999
   # Note that $ac_compile itself does not contain backslashes and begins
 
1000
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1001
   lt_compile=`echo "$ac_compile" | $SED \
 
1002
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
1003
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1004
   -e 's:$: $lt_compiler_flag:'`
 
1005
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1006
   (eval "$lt_compile" 2>out/conftest.err)
 
1007
   ac_status=$?
 
1008
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
1009
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1010
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
1011
   then
 
1012
     # The compiler can only warn and ignore the option if not recognized
 
1013
     # So say no if there are warnings
 
1014
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
1015
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
1016
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1017
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1018
     fi
 
1019
   fi
 
1020
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
1021
   $rm conftest*
 
1022
   # SGI C++ compiler will create directory out/ii_files/ for
 
1023
   # template instantiation
 
1024
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1025
   $rm out/* && rmdir out
 
1026
   cd ..
 
1027
   rmdir conftest
 
1028
   $rm conftest*
 
1029
])
 
1030
])# AC_LIBTOOL_PROG_CC_C_O
 
1031
 
 
1032
 
 
1033
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1034
# -----------------------------------------
 
1035
# Check to see if we can do hard links to lock some files if needed
 
1036
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1037
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1038
 
 
1039
hard_links="nottested"
 
1040
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1041
  # do not overwrite the value of need_locks provided by the user
 
1042
  AC_MSG_CHECKING([if we can lock with hard links])
 
1043
  hard_links=yes
 
1044
  $rm conftest*
 
1045
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1046
  touch conftest.a
 
1047
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
1048
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1049
  AC_MSG_RESULT([$hard_links])
 
1050
  if test "$hard_links" = no; then
 
1051
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
1052
    need_locks=warn
 
1053
  fi
 
1054
else
 
1055
  need_locks=no
 
1056
fi
 
1057
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1058
 
 
1059
 
 
1060
# AC_LIBTOOL_OBJDIR
 
1061
# -----------------
 
1062
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1063
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
1064
[rm -f .libs 2>/dev/null
 
1065
mkdir .libs 2>/dev/null
 
1066
if test -d .libs; then
 
1067
  lt_cv_objdir=.libs
 
1068
else
 
1069
  # MS-DOS does not allow filenames that begin with a dot.
 
1070
  lt_cv_objdir=_libs
 
1071
fi
 
1072
rmdir .libs 2>/dev/null])
 
1073
objdir=$lt_cv_objdir
 
1074
])# AC_LIBTOOL_OBJDIR
 
1075
 
 
1076
 
 
1077
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1078
# ----------------------------------------------
 
1079
# Check hardcoding attributes.
 
1080
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1081
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
1082
_LT_AC_TAGVAR(hardcode_action, $1)=
 
1083
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
1084
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1085
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1086
 
 
1087
  # We can hardcode non-existant directories.
 
1088
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
1089
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
1090
     # have to relink, otherwise we might link with an installed library
 
1091
     # when we should be linking with a yet-to-be-installed one
 
1092
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1093
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1094
    # Linking always hardcodes the temporary library directory.
 
1095
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
1096
  else
 
1097
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
1098
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
1099
  fi
 
1100
else
 
1101
  # We cannot hardcode anything, or else we can only hardcode existing
 
1102
  # directories.
 
1103
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1104
fi
 
1105
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1106
 
 
1107
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1108
  # Fast installation is not supported
 
1109
  enable_fast_install=no
 
1110
elif test "$shlibpath_overrides_runpath" = yes ||
 
1111
     test "$enable_shared" = no; then
 
1112
  # Fast installation is not necessary
 
1113
  enable_fast_install=needless
 
1114
fi
 
1115
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1116
 
 
1117
 
 
1118
# AC_LIBTOOL_SYS_LIB_STRIP
 
1119
# ------------------------
 
1120
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
1121
[striplib=
 
1122
old_striplib=
 
1123
AC_MSG_CHECKING([whether stripping libraries is possible])
 
1124
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
1125
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
1126
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
1127
  AC_MSG_RESULT([yes])
 
1128
else
 
1129
# FIXME - insert some real tests, host_os isn't really good enough
 
1130
  case $host_os in
 
1131
   darwin*)
 
1132
       if test -n "$STRIP" ; then
 
1133
         striplib="$STRIP -x"
 
1134
         AC_MSG_RESULT([yes])
 
1135
       else
 
1136
  AC_MSG_RESULT([no])
 
1137
fi
 
1138
       ;;
 
1139
   *)
 
1140
  AC_MSG_RESULT([no])
 
1141
    ;;
 
1142
  esac
 
1143
fi
 
1144
])# AC_LIBTOOL_SYS_LIB_STRIP
 
1145
 
 
1146
 
 
1147
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1148
# -----------------------------
 
1149
# PORTME Fill in your ld.so characteristics
 
1150
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1151
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1152
library_names_spec=
 
1153
libname_spec='lib$name'
 
1154
soname_spec=
 
1155
shrext_cmds=".so"
 
1156
postinstall_cmds=
 
1157
postuninstall_cmds=
 
1158
finish_cmds=
 
1159
finish_eval=
 
1160
shlibpath_var=
 
1161
shlibpath_overrides_runpath=unknown
 
1162
version_type=none
 
1163
dynamic_linker="$host_os ld.so"
 
1164
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1165
if test "$GCC" = yes; then
 
1166
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1167
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1168
    # if the path contains ";" then we assume it to be the separator
 
1169
    # otherwise default to the standard path separator (i.e. ":") - it is
 
1170
    # assumed that no part of a normal pathname contains ";" but that should
 
1171
    # okay in the real world where ";" in dirpaths is itself problematic.
 
1172
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1173
  else
 
1174
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1175
  fi
 
1176
else
 
1177
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
1178
fi
 
1179
need_lib_prefix=unknown
 
1180
hardcode_into_libs=no
 
1181
 
 
1182
# when you set need_version to no, make sure it does not cause -set_version
 
1183
# flags to be left without arguments
 
1184
need_version=unknown
 
1185
 
 
1186
case $host_os in
 
1187
aix3*)
 
1188
  version_type=linux
 
1189
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
1190
  shlibpath_var=LIBPATH
 
1191
 
 
1192
  # AIX 3 has no versioning support, so we append a major version to the name.
 
1193
  soname_spec='${libname}${release}${shared_ext}$major'
 
1194
  ;;
 
1195
 
 
1196
aix4* | aix5*)
 
1197
  version_type=linux
 
1198
  need_lib_prefix=no
 
1199
  need_version=no
 
1200
  hardcode_into_libs=yes
 
1201
  if test "$host_cpu" = ia64; then
 
1202
    # AIX 5 supports IA64
 
1203
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
1204
    shlibpath_var=LD_LIBRARY_PATH
 
1205
  else
 
1206
    # With GCC up to 2.95.x, collect2 would create an import file
 
1207
    # for dependence libraries.  The import file would start with
 
1208
    # the line `#! .'.  This would cause the generated library to
 
1209
    # depend on `.', always an invalid library.  This was fixed in
 
1210
    # development snapshots of GCC prior to 3.0.
 
1211
    case $host_os in
 
1212
      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
1213
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
1214
           echo ' yes '
 
1215
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
1216
        :
 
1217
      else
 
1218
        can_build_shared=no
 
1219
      fi
 
1220
      ;;
 
1221
    esac
 
1222
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
1223
    # soname into executable. Probably we can add versioning support to
 
1224
    # collect2, so additional links can be useful in future.
 
1225
    if test "$aix_use_runtimelinking" = yes; then
 
1226
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
1227
      # instead of lib<name>.a to let people know that these are not
 
1228
      # typical AIX shared libraries.
 
1229
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1230
    else
 
1231
      # We preserve .a as extension for shared libraries through AIX4.2
 
1232
      # and later when we are not doing run time linking.
 
1233
      library_names_spec='${libname}${release}.a $libname.a'
 
1234
      soname_spec='${libname}${release}${shared_ext}$major'
 
1235
    fi
 
1236
    shlibpath_var=LIBPATH
 
1237
  fi
 
1238
  ;;
 
1239
 
 
1240
amigaos*)
 
1241
  library_names_spec='$libname.ixlibrary $libname.a'
 
1242
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
1243
  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'
 
1244
  ;;
 
1245
 
 
1246
beos*)
 
1247
  library_names_spec='${libname}${shared_ext}'
 
1248
  dynamic_linker="$host_os ld.so"
 
1249
  shlibpath_var=LIBRARY_PATH
 
1250
  ;;
 
1251
 
 
1252
bsdi[[45]]*)
 
1253
  version_type=linux
 
1254
  need_version=no
 
1255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1256
  soname_spec='${libname}${release}${shared_ext}$major'
 
1257
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
1258
  shlibpath_var=LD_LIBRARY_PATH
 
1259
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
1260
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
1261
  # the default ld.so.conf also contains /usr/contrib/lib and
 
1262
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
1263
  # libtool to hard-code these into programs
 
1264
  ;;
 
1265
 
 
1266
cygwin* | mingw* | pw32*)
 
1267
  version_type=windows
 
1268
  shrext_cmds=".dll"
 
1269
  need_version=no
 
1270
  need_lib_prefix=no
 
1271
 
 
1272
  case $GCC,$host_os in
 
1273
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
1274
    library_names_spec='$libname.dll.a'
 
1275
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
1276
    postinstall_cmds='base_file=`basename \${file}`~
 
1277
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
1278
      dldir=$destdir/`dirname \$dlpath`~
 
1279
      test -d \$dldir || mkdir -p \$dldir~
 
1280
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1281
      chmod a+x \$dldir/$dlname'
 
1282
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
1283
      dlpath=$dir/\$dldll~
 
1284
       $rm \$dlpath'
 
1285
    shlibpath_overrides_runpath=yes
 
1286
 
 
1287
    case $host_os in
 
1288
    cygwin*)
 
1289
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
1290
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1291
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
1292
      ;;
 
1293
    mingw*)
 
1294
      # MinGW DLLs use traditional 'lib' prefix
 
1295
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1296
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1297
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
1298
        # It is most probably a Windows format PATH printed by
 
1299
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
1300
        # path with ; separators, and with drive letters. We can handle the
 
1301
        # drive letters (cygwin fileutils understands them), so leave them,
 
1302
        # especially as we might pass files found there to a mingw objdump,
 
1303
        # which wouldn't understand a cygwinified path. Ahh.
 
1304
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1305
      else
 
1306
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1307
      fi
 
1308
      ;;
 
1309
    pw32*)
 
1310
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
1311
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1312
      ;;
 
1313
    esac
 
1314
    ;;
 
1315
 
 
1316
  *)
 
1317
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
1318
    ;;
 
1319
  esac
 
1320
  dynamic_linker='Win32 ld.exe'
 
1321
  # FIXME: first we should search . and the directory the executable is in
 
1322
  shlibpath_var=PATH
 
1323
  ;;
 
1324
 
 
1325
darwin* | rhapsody*)
 
1326
  dynamic_linker="$host_os dyld"
 
1327
  version_type=darwin
 
1328
  need_lib_prefix=no
 
1329
  need_version=no
 
1330
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
1331
  soname_spec='${libname}${release}${major}$shared_ext'
 
1332
  shlibpath_overrides_runpath=yes
 
1333
  shlibpath_var=DYLD_LIBRARY_PATH
 
1334
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
1335
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
1336
  if test "$GCC" = yes; then
 
1337
    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"`
 
1338
  else
 
1339
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
1340
  fi
 
1341
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
1342
  ;;
 
1343
 
 
1344
dgux*)
 
1345
  version_type=linux
 
1346
  need_lib_prefix=no
 
1347
  need_version=no
 
1348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
1349
  soname_spec='${libname}${release}${shared_ext}$major'
 
1350
  shlibpath_var=LD_LIBRARY_PATH
 
1351
  ;;
 
1352
 
 
1353
freebsd1*)
 
1354
  dynamic_linker=no
 
1355
  ;;
 
1356
 
 
1357
kfreebsd*-gnu)
 
1358
  version_type=linux
 
1359
  need_lib_prefix=no
 
1360
  need_version=no
 
1361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1362
  soname_spec='${libname}${release}${shared_ext}$major'
 
1363
  shlibpath_var=LD_LIBRARY_PATH
 
1364
  shlibpath_overrides_runpath=no
 
1365
  hardcode_into_libs=yes
 
1366
  dynamic_linker='GNU ld.so'
 
1367
  ;;
 
1368
 
 
1369
freebsd* | dragonfly*)
 
1370
  # DragonFly does not have aout.  When/if they implement a new
 
1371
  # versioning mechanism, adjust this.
 
1372
  if test -x /usr/bin/objformat; then
 
1373
    objformat=`/usr/bin/objformat`
 
1374
  else
 
1375
    case $host_os in
 
1376
    freebsd[[123]]*) objformat=aout ;;
 
1377
    *) objformat=elf ;;
 
1378
    esac
 
1379
  fi
 
1380
  version_type=freebsd-$objformat
 
1381
  case $version_type in
 
1382
    freebsd-elf*)
 
1383
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1384
      need_version=no
 
1385
      need_lib_prefix=no
 
1386
      ;;
 
1387
    freebsd-*)
 
1388
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
1389
      need_version=yes
 
1390
      ;;
 
1391
  esac
 
1392
  shlibpath_var=LD_LIBRARY_PATH
 
1393
  case $host_os in
 
1394
  freebsd2*)
 
1395
    shlibpath_overrides_runpath=yes
 
1396
    ;;
 
1397
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
1398
    shlibpath_overrides_runpath=yes
 
1399
    hardcode_into_libs=yes
 
1400
    ;;
 
1401
  *) # from 3.2 on
 
1402
    shlibpath_overrides_runpath=no
 
1403
    hardcode_into_libs=yes
 
1404
    ;;
 
1405
  esac
 
1406
  ;;
 
1407
 
 
1408
gnu*)
 
1409
  version_type=linux
 
1410
  need_lib_prefix=no
 
1411
  need_version=no
 
1412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
1413
  soname_spec='${libname}${release}${shared_ext}$major'
 
1414
  shlibpath_var=LD_LIBRARY_PATH
 
1415
  hardcode_into_libs=yes
 
1416
  ;;
 
1417
 
 
1418
hpux9* | hpux10* | hpux11*)
 
1419
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
1420
  # link against other versions.
 
1421
  version_type=sunos
 
1422
  need_lib_prefix=no
 
1423
  need_version=no
 
1424
  case $host_cpu in
 
1425
  ia64*)
 
1426
    shrext_cmds='.so'
 
1427
    hardcode_into_libs=yes
 
1428
    dynamic_linker="$host_os dld.so"
 
1429
    shlibpath_var=LD_LIBRARY_PATH
 
1430
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
1431
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1432
    soname_spec='${libname}${release}${shared_ext}$major'
 
1433
    if test "X$HPUX_IA64_MODE" = X32; then
 
1434
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
1435
    else
 
1436
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
1437
    fi
 
1438
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
1439
    ;;
 
1440
   hppa*64*)
 
1441
     shrext_cmds='.sl'
 
1442
     hardcode_into_libs=yes
 
1443
     dynamic_linker="$host_os dld.sl"
 
1444
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
1445
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
1446
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1447
     soname_spec='${libname}${release}${shared_ext}$major'
 
1448
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
1449
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
1450
     ;;
 
1451
   *)
 
1452
    shrext_cmds='.sl'
 
1453
    dynamic_linker="$host_os dld.sl"
 
1454
    shlibpath_var=SHLIB_PATH
 
1455
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
1456
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1457
    soname_spec='${libname}${release}${shared_ext}$major'
 
1458
    ;;
 
1459
  esac
 
1460
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
1461
  postinstall_cmds='chmod 555 $lib'
 
1462
  ;;
 
1463
 
 
1464
irix5* | irix6* | nonstopux*)
 
1465
  case $host_os in
 
1466
    nonstopux*) version_type=nonstopux ;;
 
1467
    *)
 
1468
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
1469
                version_type=linux
 
1470
        else
 
1471
                version_type=irix
 
1472
        fi ;;
 
1473
  esac
 
1474
  need_lib_prefix=no
 
1475
  need_version=no
 
1476
  soname_spec='${libname}${release}${shared_ext}$major'
 
1477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1478
  case $host_os in
 
1479
  irix5* | nonstopux*)
 
1480
    libsuff= shlibsuff=
 
1481
    ;;
 
1482
  *)
 
1483
    case $LD in # libtool.m4 will add one of these switches to LD
 
1484
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
1485
      libsuff= shlibsuff= libmagic=32-bit;;
 
1486
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
1487
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
1488
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
1489
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
1490
    *) libsuff= shlibsuff= libmagic=never-match;;
 
1491
    esac
 
1492
    ;;
 
1493
  esac
 
1494
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
1495
  shlibpath_overrides_runpath=no
 
1496
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
1497
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
1498
  hardcode_into_libs=yes
 
1499
  ;;
 
1500
 
 
1501
# No shared lib support for Linux oldld, aout, or coff.
 
1502
linux*oldld* | linux*aout* | linux*coff*)
 
1503
  dynamic_linker=no
 
1504
  ;;
 
1505
 
 
1506
# This must be Linux ELF.
 
1507
linux*)
 
1508
  version_type=linux
 
1509
  need_lib_prefix=no
 
1510
  need_version=no
 
1511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1512
  soname_spec='${libname}${release}${shared_ext}$major'
 
1513
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
1514
  shlibpath_var=LD_LIBRARY_PATH
 
1515
  shlibpath_overrides_runpath=no
 
1516
  # This implies no fast_install, which is unacceptable.
 
1517
  # Some rework will be needed to allow for fast_install
 
1518
  # before this can be enabled.
 
1519
  hardcode_into_libs=yes
 
1520
 
 
1521
  # Append ld.so.conf contents to the search path
 
1522
  if test -f /etc/ld.so.conf; then
 
1523
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1524
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1525
  fi
 
1526
 
 
1527
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
1528
  # powerpc, because MkLinux only supported shared libraries with the
 
1529
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
1530
  # most powerpc-linux boxes support dynamic linking these days and
 
1531
  # people can always --disable-shared, the test was removed, and we
 
1532
  # assume the GNU/Linux dynamic linker is in use.
 
1533
  dynamic_linker='GNU/Linux ld.so'
 
1534
  ;;
 
1535
 
 
1536
knetbsd*-gnu)
 
1537
  version_type=linux
 
1538
  need_lib_prefix=no
 
1539
  need_version=no
 
1540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1541
  soname_spec='${libname}${release}${shared_ext}$major'
 
1542
  shlibpath_var=LD_LIBRARY_PATH
 
1543
  shlibpath_overrides_runpath=no
 
1544
  hardcode_into_libs=yes
 
1545
  dynamic_linker='GNU ld.so'
 
1546
  ;;
 
1547
 
 
1548
netbsd*)
 
1549
  version_type=sunos
 
1550
  need_lib_prefix=no
 
1551
  need_version=no
 
1552
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
1553
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1554
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
1555
    dynamic_linker='NetBSD (a.out) ld.so'
 
1556
  else
 
1557
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1558
    soname_spec='${libname}${release}${shared_ext}$major'
 
1559
    dynamic_linker='NetBSD ld.elf_so'
 
1560
  fi
 
1561
  shlibpath_var=LD_LIBRARY_PATH
 
1562
  shlibpath_overrides_runpath=yes
 
1563
  hardcode_into_libs=yes
 
1564
  ;;
 
1565
 
 
1566
newsos6)
 
1567
  version_type=linux
 
1568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1569
  shlibpath_var=LD_LIBRARY_PATH
 
1570
  shlibpath_overrides_runpath=yes
 
1571
  ;;
 
1572
 
 
1573
nto-qnx*)
 
1574
  version_type=linux
 
1575
  need_lib_prefix=no
 
1576
  need_version=no
 
1577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1578
  soname_spec='${libname}${release}${shared_ext}$major'
 
1579
  shlibpath_var=LD_LIBRARY_PATH
 
1580
  shlibpath_overrides_runpath=yes
 
1581
  ;;
 
1582
 
 
1583
openbsd*)
 
1584
  version_type=sunos
 
1585
  need_lib_prefix=no
 
1586
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1587
  case $host_os in
 
1588
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1589
    *)                         need_version=no  ;;
 
1590
  esac
 
1591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1592
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
1593
  shlibpath_var=LD_LIBRARY_PATH
 
1594
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
1595
    case $host_os in
 
1596
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
1597
        shlibpath_overrides_runpath=no
 
1598
        ;;
 
1599
      *)
 
1600
        shlibpath_overrides_runpath=yes
 
1601
        ;;
 
1602
      esac
 
1603
  else
 
1604
    shlibpath_overrides_runpath=yes
 
1605
  fi
 
1606
  ;;
 
1607
 
 
1608
os2*)
 
1609
  libname_spec='$name'
 
1610
  shrext_cmds=".dll"
 
1611
  need_lib_prefix=no
 
1612
  library_names_spec='$libname${shared_ext} $libname.a'
 
1613
  dynamic_linker='OS/2 ld.exe'
 
1614
  shlibpath_var=LIBPATH
 
1615
  ;;
 
1616
 
 
1617
osf3* | osf4* | osf5*)
 
1618
  version_type=osf
 
1619
  need_lib_prefix=no
 
1620
  need_version=no
 
1621
  soname_spec='${libname}${release}${shared_ext}$major'
 
1622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1623
  shlibpath_var=LD_LIBRARY_PATH
 
1624
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
1625
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
1626
  ;;
 
1627
 
 
1628
sco3.2v5*)
 
1629
  version_type=osf
 
1630
  soname_spec='${libname}${release}${shared_ext}$major'
 
1631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1632
  shlibpath_var=LD_LIBRARY_PATH
 
1633
  ;;
 
1634
 
 
1635
solaris*)
 
1636
  version_type=linux
 
1637
  need_lib_prefix=no
 
1638
  need_version=no
 
1639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1640
  soname_spec='${libname}${release}${shared_ext}$major'
 
1641
  shlibpath_var=LD_LIBRARY_PATH
 
1642
  shlibpath_overrides_runpath=yes
 
1643
  hardcode_into_libs=yes
 
1644
  # ldd complains unless libraries are executable
 
1645
  postinstall_cmds='chmod +x $lib'
 
1646
  ;;
 
1647
 
 
1648
sunos4*)
 
1649
  version_type=sunos
 
1650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1651
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
1652
  shlibpath_var=LD_LIBRARY_PATH
 
1653
  shlibpath_overrides_runpath=yes
 
1654
  if test "$with_gnu_ld" = yes; then
 
1655
    need_lib_prefix=no
 
1656
  fi
 
1657
  need_version=yes
 
1658
  ;;
 
1659
 
 
1660
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1661
  version_type=linux
 
1662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1663
  soname_spec='${libname}${release}${shared_ext}$major'
 
1664
  shlibpath_var=LD_LIBRARY_PATH
 
1665
  case $host_vendor in
 
1666
    sni)
 
1667
      shlibpath_overrides_runpath=no
 
1668
      need_lib_prefix=no
 
1669
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
1670
      runpath_var=LD_RUN_PATH
 
1671
      ;;
 
1672
    siemens)
 
1673
      need_lib_prefix=no
 
1674
      ;;
 
1675
    motorola)
 
1676
      need_lib_prefix=no
 
1677
      need_version=no
 
1678
      shlibpath_overrides_runpath=no
 
1679
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
1680
      ;;
 
1681
  esac
 
1682
  ;;
 
1683
 
 
1684
sysv4*MP*)
 
1685
  if test -d /usr/nec ;then
 
1686
    version_type=linux
 
1687
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
1688
    soname_spec='$libname${shared_ext}.$major'
 
1689
    shlibpath_var=LD_LIBRARY_PATH
 
1690
  fi
 
1691
  ;;
 
1692
 
 
1693
uts4*)
 
1694
  version_type=linux
 
1695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1696
  soname_spec='${libname}${release}${shared_ext}$major'
 
1697
  shlibpath_var=LD_LIBRARY_PATH
 
1698
  ;;
 
1699
 
 
1700
*)
 
1701
  dynamic_linker=no
 
1702
  ;;
 
1703
esac
 
1704
AC_MSG_RESULT([$dynamic_linker])
 
1705
test "$dynamic_linker" = no && can_build_shared=no
 
1706
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1707
 
 
1708
 
 
1709
# _LT_AC_TAGCONFIG
 
1710
# ----------------
 
1711
AC_DEFUN([_LT_AC_TAGCONFIG],
 
1712
[AC_ARG_WITH([tags],
 
1713
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
1714
        [include additional configurations @<:@automatic@:>@])],
 
1715
    [tagnames="$withval"])
 
1716
 
 
1717
if test -f "$ltmain" && test -n "$tagnames"; then
 
1718
  if test ! -f "${ofile}"; then
 
1719
    AC_MSG_WARN([output file `$ofile' does not exist])
 
1720
  fi
 
1721
 
 
1722
  if test -z "$LTCC"; then
 
1723
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
1724
    if test -z "$LTCC"; then
 
1725
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
1726
    else
 
1727
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
1728
    fi
 
1729
  fi
 
1730
 
 
1731
  # Extract list of available tagged configurations in $ofile.
 
1732
  # Note that this assumes the entire list is on one line.
 
1733
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
1734
 
 
1735
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1736
  for tagname in $tagnames; do
 
1737
    IFS="$lt_save_ifs"
 
1738
    # Check whether tagname contains only valid characters
 
1739
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
1740
    "") ;;
 
1741
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
1742
        ;;
 
1743
    esac
 
1744
 
 
1745
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
1746
    then
 
1747
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
1748
    fi
 
1749
 
 
1750
    # Update the list of available tags.
 
1751
    if test -n "$tagname"; then
 
1752
      echo appending configuration tag \"$tagname\" to $ofile
 
1753
 
 
1754
      case $tagname in
 
1755
      CXX)
 
1756
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1757
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1758
            (test "X$CXX" != "Xg++"))) ; then
 
1759
          AC_LIBTOOL_LANG_CXX_CONFIG
 
1760
        else
 
1761
          tagname=""
 
1762
        fi
 
1763
        ;;
 
1764
 
 
1765
      F77)
 
1766
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
1767
          AC_LIBTOOL_LANG_F77_CONFIG
 
1768
        else
 
1769
          tagname=""
 
1770
        fi
 
1771
        ;;
 
1772
 
 
1773
      GCJ)
 
1774
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
1775
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
1776
        else
 
1777
          tagname=""
 
1778
        fi
 
1779
        ;;
 
1780
 
 
1781
      RC)
 
1782
        AC_LIBTOOL_LANG_RC_CONFIG
 
1783
        ;;
 
1784
 
 
1785
      *)
 
1786
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
1787
        ;;
 
1788
      esac
 
1789
 
 
1790
      # Append the new tag name to the list of available tags.
 
1791
      if test -n "$tagname" ; then
 
1792
      available_tags="$available_tags $tagname"
 
1793
    fi
 
1794
    fi
 
1795
  done
 
1796
  IFS="$lt_save_ifs"
 
1797
 
 
1798
  # Now substitute the updated list of available tags.
 
1799
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
1800
    mv "${ofile}T" "$ofile"
 
1801
    chmod +x "$ofile"
 
1802
  else
 
1803
    rm -f "${ofile}T"
 
1804
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
1805
  fi
 
1806
fi
 
1807
])# _LT_AC_TAGCONFIG
 
1808
 
 
1809
 
 
1810
# AC_LIBTOOL_DLOPEN
 
1811
# -----------------
 
1812
# enable checks for dlopen support
 
1813
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
1814
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
1815
])# AC_LIBTOOL_DLOPEN
 
1816
 
 
1817
 
 
1818
# AC_LIBTOOL_WIN32_DLL
 
1819
# --------------------
 
1820
# declare package support for building win32 DLLs
 
1821
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
1822
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
1823
])# AC_LIBTOOL_WIN32_DLL
 
1824
 
 
1825
 
 
1826
# AC_ENABLE_SHARED([DEFAULT])
 
1827
# ---------------------------
 
1828
# implement the --enable-shared flag
 
1829
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1830
AC_DEFUN([AC_ENABLE_SHARED],
 
1831
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
1832
AC_ARG_ENABLE([shared],
 
1833
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
1834
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
1835
    [p=${PACKAGE-default}
 
1836
    case $enableval in
 
1837
    yes) enable_shared=yes ;;
 
1838
    no) enable_shared=no ;;
 
1839
    *)
 
1840
      enable_shared=no
 
1841
      # Look at the argument we got.  We use all the common list separators.
 
1842
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1843
      for pkg in $enableval; do
 
1844
        IFS="$lt_save_ifs"
 
1845
        if test "X$pkg" = "X$p"; then
 
1846
          enable_shared=yes
 
1847
        fi
 
1848
      done
 
1849
      IFS="$lt_save_ifs"
 
1850
      ;;
 
1851
    esac],
 
1852
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
1853
])# AC_ENABLE_SHARED
 
1854
 
 
1855
 
 
1856
# AC_DISABLE_SHARED
 
1857
# -----------------
 
1858
#- set the default shared flag to --disable-shared
 
1859
AC_DEFUN([AC_DISABLE_SHARED],
 
1860
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
1861
AC_ENABLE_SHARED(no)
 
1862
])# AC_DISABLE_SHARED
 
1863
 
 
1864
 
 
1865
# AC_ENABLE_STATIC([DEFAULT])
 
1866
# ---------------------------
 
1867
# implement the --enable-static flag
 
1868
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1869
AC_DEFUN([AC_ENABLE_STATIC],
 
1870
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
1871
AC_ARG_ENABLE([static],
 
1872
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
1873
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
1874
    [p=${PACKAGE-default}
 
1875
    case $enableval in
 
1876
    yes) enable_static=yes ;;
 
1877
    no) enable_static=no ;;
 
1878
    *)
 
1879
     enable_static=no
 
1880
      # Look at the argument we got.  We use all the common list separators.
 
1881
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1882
      for pkg in $enableval; do
 
1883
        IFS="$lt_save_ifs"
 
1884
        if test "X$pkg" = "X$p"; then
 
1885
          enable_static=yes
 
1886
        fi
 
1887
      done
 
1888
      IFS="$lt_save_ifs"
 
1889
      ;;
 
1890
    esac],
 
1891
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
1892
])# AC_ENABLE_STATIC
 
1893
 
 
1894
 
 
1895
# AC_DISABLE_STATIC
 
1896
# -----------------
 
1897
# set the default static flag to --disable-static
 
1898
AC_DEFUN([AC_DISABLE_STATIC],
 
1899
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
1900
AC_ENABLE_STATIC(no)
 
1901
])# AC_DISABLE_STATIC
 
1902
 
 
1903
 
 
1904
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
1905
# ---------------------------------
 
1906
# implement the --enable-fast-install flag
 
1907
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1908
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
1909
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
1910
AC_ARG_ENABLE([fast-install],
 
1911
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
1912
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
1913
    [p=${PACKAGE-default}
 
1914
    case $enableval in
 
1915
    yes) enable_fast_install=yes ;;
 
1916
    no) enable_fast_install=no ;;
 
1917
    *)
 
1918
      enable_fast_install=no
 
1919
      # Look at the argument we got.  We use all the common list separators.
 
1920
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1921
      for pkg in $enableval; do
 
1922
        IFS="$lt_save_ifs"
 
1923
        if test "X$pkg" = "X$p"; then
 
1924
          enable_fast_install=yes
 
1925
        fi
 
1926
      done
 
1927
      IFS="$lt_save_ifs"
 
1928
      ;;
 
1929
    esac],
 
1930
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
1931
])# AC_ENABLE_FAST_INSTALL
 
1932
 
 
1933
 
 
1934
# AC_DISABLE_FAST_INSTALL
 
1935
# -----------------------
 
1936
# set the default to --disable-fast-install
 
1937
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
1938
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
1939
AC_ENABLE_FAST_INSTALL(no)
 
1940
])# AC_DISABLE_FAST_INSTALL
 
1941
 
 
1942
 
 
1943
# AC_LIBTOOL_PICMODE([MODE])
 
1944
# --------------------------
 
1945
# implement the --with-pic flag
 
1946
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
1947
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
1948
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
1949
pic_mode=ifelse($#,1,$1,default)
 
1950
])# AC_LIBTOOL_PICMODE
 
1951
 
 
1952
 
 
1953
# AC_PROG_EGREP
 
1954
# -------------
 
1955
# This is predefined starting with Autoconf 2.54, so this conditional
 
1956
# definition can be removed once we require Autoconf 2.54 or later.
 
1957
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
1958
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
1959
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
1960
    then ac_cv_prog_egrep='grep -E'
 
1961
    else ac_cv_prog_egrep='egrep'
 
1962
    fi])
 
1963
 EGREP=$ac_cv_prog_egrep
 
1964
 AC_SUBST([EGREP])
 
1965
])])
 
1966
 
 
1967
 
 
1968
# AC_PATH_TOOL_PREFIX
 
1969
# -------------------
 
1970
# find a file program which can recognise shared library
 
1971
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
1972
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
1973
AC_MSG_CHECKING([for $1])
 
1974
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
1975
[case $MAGIC_CMD in
 
1976
[[\\/*] |  ?:[\\/]*])
 
1977
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
1978
  ;;
 
1979
*)
 
1980
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
1981
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1982
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
1983
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
1984
dnl not every word.  This closes a longstanding sh security hole.
 
1985
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
1986
  for ac_dir in $ac_dummy; do
 
1987
    IFS="$lt_save_ifs"
 
1988
    test -z "$ac_dir" && ac_dir=.
 
1989
    if test -f $ac_dir/$1; then
 
1990
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
1991
      if test -n "$file_magic_test_file"; then
 
1992
        case $deplibs_check_method in
 
1993
        "file_magic "*)
 
1994
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
1995
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
1996
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
1997
            $EGREP "$file_magic_regex" > /dev/null; then
 
1998
            :
 
1999
          else
 
2000
            cat <<EOF 1>&2
 
2001
 
 
2002
*** Warning: the command libtool uses to detect shared libraries,
 
2003
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2004
*** The result is that libtool may fail to recognize shared libraries
 
2005
*** as such.  This will affect the creation of libtool libraries that
 
2006
*** depend on shared libraries, but programs linked with such libtool
 
2007
*** libraries will work regardless of this problem.  Nevertheless, you
 
2008
*** may want to report the problem to your system manager and/or to
 
2009
*** bug-libtool@gnu.org
 
2010
 
 
2011
EOF
 
2012
          fi ;;
 
2013
        esac
 
2014
      fi
 
2015
      break
 
2016
    fi
 
2017
  done
 
2018
  IFS="$lt_save_ifs"
 
2019
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
2020
  ;;
 
2021
esac])
 
2022
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2023
if test -n "$MAGIC_CMD"; then
 
2024
  AC_MSG_RESULT($MAGIC_CMD)
 
2025
else
 
2026
  AC_MSG_RESULT(no)
 
2027
fi
 
2028
])# AC_PATH_TOOL_PREFIX
 
2029
 
 
2030
 
 
2031
# AC_PATH_MAGIC
 
2032
# -------------
 
2033
# find a file program which can recognise a shared library
 
2034
AC_DEFUN([AC_PATH_MAGIC],
 
2035
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2036
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2037
  if test -n "$ac_tool_prefix"; then
 
2038
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2039
  else
 
2040
    MAGIC_CMD=:
 
2041
  fi
 
2042
fi
 
2043
])# AC_PATH_MAGIC
 
2044
 
 
2045
 
 
2046
# AC_PROG_LD
 
2047
# ----------
 
2048
# find the pathname to the GNU or non-GNU linker
 
2049
AC_DEFUN([AC_PROG_LD],
 
2050
[AC_ARG_WITH([gnu-ld],
 
2051
    [AC_HELP_STRING([--with-gnu-ld],
 
2052
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
2053
    [test "$withval" = no || with_gnu_ld=yes],
 
2054
    [with_gnu_ld=no])
 
2055
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2056
AC_REQUIRE([AC_PROG_CC])dnl
 
2057
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2058
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2059
ac_prog=ld
 
2060
if test "$GCC" = yes; then
 
2061
  # Check if gcc -print-prog-name=ld gives a path.
 
2062
  AC_MSG_CHECKING([for ld used by $CC])
 
2063
  case $host in
 
2064
  *-*-mingw*)
 
2065
    # gcc leaves a trailing carriage return which upsets mingw
 
2066
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2067
  *)
 
2068
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2069
  esac
 
2070
  case $ac_prog in
 
2071
    # Accept absolute paths.
 
2072
    [[\\/]]* | ?:[[\\/]]*)
 
2073
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
2074
      # Canonicalize the pathname of ld
 
2075
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2076
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2077
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2078
      done
 
2079
      test -z "$LD" && LD="$ac_prog"
 
2080
      ;;
 
2081
  "")
 
2082
    # If it fails, then pretend we aren't using GCC.
 
2083
    ac_prog=ld
 
2084
    ;;
 
2085
  *)
 
2086
    # If it is relative, then search for the first ld in PATH.
 
2087
    with_gnu_ld=unknown
 
2088
    ;;
 
2089
  esac
 
2090
elif test "$with_gnu_ld" = yes; then
 
2091
  AC_MSG_CHECKING([for GNU ld])
 
2092
else
 
2093
  AC_MSG_CHECKING([for non-GNU ld])
 
2094
fi
 
2095
AC_CACHE_VAL(lt_cv_path_LD,
 
2096
[if test -z "$LD"; then
 
2097
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2098
  for ac_dir in $PATH; do
 
2099
    IFS="$lt_save_ifs"
 
2100
    test -z "$ac_dir" && ac_dir=.
 
2101
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2102
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2103
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2104
      # but apparently some variants of GNU ld only accept -v.
 
2105
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2106
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2107
      *GNU* | *'with BFD'*)
 
2108
        test "$with_gnu_ld" != no && break
 
2109
        ;;
 
2110
      *)
 
2111
        test "$with_gnu_ld" != yes && break
 
2112
        ;;
 
2113
      esac
 
2114
    fi
 
2115
  done
 
2116
  IFS="$lt_save_ifs"
 
2117
else
 
2118
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2119
fi])
 
2120
LD="$lt_cv_path_LD"
 
2121
if test -n "$LD"; then
 
2122
  AC_MSG_RESULT($LD)
 
2123
else
 
2124
  AC_MSG_RESULT(no)
 
2125
fi
 
2126
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
2127
AC_PROG_LD_GNU
 
2128
])# AC_PROG_LD
 
2129
 
 
2130
 
 
2131
# AC_PROG_LD_GNU
 
2132
# --------------
 
2133
AC_DEFUN([AC_PROG_LD_GNU],
 
2134
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2135
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2136
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
2137
case `$LD -v 2>&1 </dev/null` in
 
2138
*GNU* | *'with BFD'*)
 
2139
  lt_cv_prog_gnu_ld=yes
 
2140
  ;;
 
2141
*)
 
2142
  lt_cv_prog_gnu_ld=no
 
2143
  ;;
 
2144
esac])
 
2145
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2146
])# AC_PROG_LD_GNU
 
2147
 
 
2148
 
 
2149
# AC_PROG_LD_RELOAD_FLAG
 
2150
# ----------------------
 
2151
# find reload flag for linker
 
2152
#   -- PORTME Some linkers may need a different reload flag.
 
2153
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2154
[AC_CACHE_CHECK([for $LD option to reload object files],
 
2155
  lt_cv_ld_reload_flag,
 
2156
  [lt_cv_ld_reload_flag='-r'])
 
2157
reload_flag=$lt_cv_ld_reload_flag
 
2158
case $reload_flag in
 
2159
"" | " "*) ;;
 
2160
*) reload_flag=" $reload_flag" ;;
 
2161
esac
 
2162
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2163
case $host_os in
 
2164
  darwin*)
 
2165
    if test "$GCC" = yes; then
 
2166
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2167
    else
 
2168
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2169
    fi
 
2170
    ;;
 
2171
esac
 
2172
])# AC_PROG_LD_RELOAD_FLAG
 
2173
 
 
2174
 
 
2175
# AC_DEPLIBS_CHECK_METHOD
 
2176
# -----------------------
 
2177
# how to check for library dependencies
 
2178
#  -- PORTME fill in with the dynamic library characteristics
 
2179
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
2180
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2181
lt_cv_deplibs_check_method,
 
2182
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2183
lt_cv_file_magic_test_file=
 
2184
lt_cv_deplibs_check_method='unknown'
 
2185
# Need to set the preceding variable on all platforms that support
 
2186
# interlibrary dependencies.
 
2187
# 'none' -- dependencies not supported.
 
2188
# `unknown' -- same as none, but documents that we really don't know.
 
2189
# 'pass_all' -- all dependencies passed with no checks.
 
2190
# 'test_compile' -- check by making test program.
 
2191
# 'file_magic [[regex]]' -- check by looking for files in library path
 
2192
# which responds to the $file_magic_cmd with a given extended regex.
 
2193
# If you have `file' or equivalent on your system and you're not sure
 
2194
# whether `pass_all' will *always* work, you probably want this one.
 
2195
 
 
2196
case $host_os in
 
2197
aix4* | aix5*)
 
2198
  lt_cv_deplibs_check_method=pass_all
 
2199
  ;;
 
2200
 
 
2201
beos*)
 
2202
  lt_cv_deplibs_check_method=pass_all
 
2203
  ;;
 
2204
 
 
2205
bsdi[[45]]*)
 
2206
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
2207
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2208
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2209
  ;;
 
2210
 
 
2211
cygwin*)
 
2212
  # func_win32_libid is a shell function defined in ltmain.sh
 
2213
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2214
  lt_cv_file_magic_cmd='func_win32_libid'
 
2215
  ;;
 
2216
 
 
2217
mingw* | pw32*)
 
2218
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2219
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2220
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2221
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2222
  ;;
 
2223
 
 
2224
darwin* | rhapsody*)
 
2225
  lt_cv_deplibs_check_method=pass_all
 
2226
  ;;
 
2227
 
 
2228
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2229
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2230
    case $host_cpu in
 
2231
    i*86 )
 
2232
      # Not sure whether the presence of OpenBSD here was a mistake.
 
2233
      # Let's accept both of them until this is cleared up.
 
2234
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
2235
      lt_cv_file_magic_cmd=/usr/bin/file
 
2236
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2237
      ;;
 
2238
    esac
 
2239
  else
 
2240
    lt_cv_deplibs_check_method=pass_all
 
2241
  fi
 
2242
  ;;
 
2243
 
 
2244
gnu*)
 
2245
  lt_cv_deplibs_check_method=pass_all
 
2246
  ;;
 
2247
 
 
2248
hpux10.20* | hpux11*)
 
2249
  lt_cv_file_magic_cmd=/usr/bin/file
 
2250
  case $host_cpu in
 
2251
  ia64*)
 
2252
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
2253
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
2254
    ;;
 
2255
  hppa*64*)
 
2256
    [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]']
 
2257
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
2258
    ;;
 
2259
  *)
 
2260
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
2261
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
2262
    ;;
 
2263
  esac
 
2264
  ;;
 
2265
 
 
2266
irix5* | irix6* | nonstopux*)
 
2267
  case $LD in
 
2268
  *-32|*"-32 ") libmagic=32-bit;;
 
2269
  *-n32|*"-n32 ") libmagic=N32;;
 
2270
  *-64|*"-64 ") libmagic=64-bit;;
 
2271
  *) libmagic=never-match;;
 
2272
  esac
 
2273
  lt_cv_deplibs_check_method=pass_all
 
2274
  ;;
 
2275
 
 
2276
# This must be Linux ELF.
 
2277
linux*)
 
2278
  lt_cv_deplibs_check_method=pass_all
 
2279
  ;;
 
2280
 
 
2281
netbsd*)
 
2282
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2283
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
2284
  else
 
2285
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
2286
  fi
 
2287
  ;;
 
2288
 
 
2289
newos6*)
 
2290
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
2291
  lt_cv_file_magic_cmd=/usr/bin/file
 
2292
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
2293
  ;;
 
2294
 
 
2295
nto-qnx*)
 
2296
  lt_cv_deplibs_check_method=unknown
 
2297
  ;;
 
2298
 
 
2299
openbsd*)
 
2300
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2301
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
2302
  else
 
2303
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
2304
  fi
 
2305
  ;;
 
2306
 
 
2307
osf3* | osf4* | osf5*)
 
2308
  lt_cv_deplibs_check_method=pass_all
 
2309
  ;;
 
2310
 
 
2311
sco3.2v5*)
 
2312
  lt_cv_deplibs_check_method=pass_all
 
2313
  ;;
 
2314
 
 
2315
solaris*)
 
2316
  lt_cv_deplibs_check_method=pass_all
 
2317
  ;;
 
2318
 
 
2319
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2320
  case $host_vendor in
 
2321
  motorola)
 
2322
    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]]'
 
2323
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
2324
    ;;
 
2325
  ncr)
 
2326
    lt_cv_deplibs_check_method=pass_all
 
2327
    ;;
 
2328
  sequent)
 
2329
    lt_cv_file_magic_cmd='/bin/file'
 
2330
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
2331
    ;;
 
2332
  sni)
 
2333
    lt_cv_file_magic_cmd='/bin/file'
 
2334
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
2335
    lt_cv_file_magic_test_file=/lib/libc.so
 
2336
    ;;
 
2337
  siemens)
 
2338
    lt_cv_deplibs_check_method=pass_all
 
2339
    ;;
 
2340
  esac
 
2341
  ;;
 
2342
 
 
2343
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2344
  lt_cv_deplibs_check_method=pass_all
 
2345
  ;;
 
2346
esac
 
2347
])
 
2348
file_magic_cmd=$lt_cv_file_magic_cmd
 
2349
deplibs_check_method=$lt_cv_deplibs_check_method
 
2350
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
2351
])# AC_DEPLIBS_CHECK_METHOD
 
2352
 
 
2353
 
 
2354
# AC_PROG_NM
 
2355
# ----------
 
2356
# find the pathname to a BSD-compatible name lister
 
2357
AC_DEFUN([AC_PROG_NM],
 
2358
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
2359
[if test -n "$NM"; then
 
2360
  # Let the user override the test.
 
2361
  lt_cv_path_NM="$NM"
 
2362
else
 
2363
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2364
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2365
    IFS="$lt_save_ifs"
 
2366
    test -z "$ac_dir" && ac_dir=.
 
2367
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
2368
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2369
      # Check to see if the nm accepts a BSD-compat flag.
 
2370
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2371
      #   nm: unknown option "B" ignored
 
2372
      # Tru64's nm complains that /dev/null is an invalid object file
 
2373
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2374
      */dev/null* | *'Invalid file or object type'*)
 
2375
        lt_cv_path_NM="$tmp_nm -B"
 
2376
        break
 
2377
        ;;
 
2378
      *)
 
2379
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2380
        */dev/null*)
 
2381
          lt_cv_path_NM="$tmp_nm -p"
 
2382
          break
 
2383
          ;;
 
2384
        *)
 
2385
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2386
          continue # so that we can try to find one that supports BSD flags
 
2387
          ;;
 
2388
        esac
 
2389
      esac
 
2390
    fi
 
2391
  done
 
2392
  IFS="$lt_save_ifs"
 
2393
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2394
fi])
 
2395
NM="$lt_cv_path_NM"
 
2396
])# AC_PROG_NM
 
2397
 
 
2398
 
 
2399
# AC_CHECK_LIBM
 
2400
# -------------
 
2401
# check for math library
 
2402
AC_DEFUN([AC_CHECK_LIBM],
 
2403
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2404
LIBM=
 
2405
case $host in
 
2406
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
2407
  # These system don't have libm, or don't need it
 
2408
  ;;
 
2409
*-ncr-sysv4.3*)
 
2410
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
2411
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
2412
  ;;
 
2413
*)
 
2414
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
2415
  ;;
 
2416
esac
 
2417
])# AC_CHECK_LIBM
 
2418
 
 
2419
 
 
2420
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
2421
# -----------------------------------
 
2422
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
2423
# LTDLINCL to the include flags for the libltdl header and adds
 
2424
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2425
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2426
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2427
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2428
# (note the single quotes!).  If your package is not flat and you're not
 
2429
# using automake, define top_builddir and top_srcdir appropriately in
 
2430
# the Makefiles.
 
2431
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
2432
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2433
  case $enable_ltdl_convenience in
 
2434
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
2435
  "") enable_ltdl_convenience=yes
 
2436
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
2437
  esac
 
2438
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
2439
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
2440
  # For backwards non-gettext consistent compatibility...
 
2441
  INCLTDL="$LTDLINCL"
 
2442
])# AC_LIBLTDL_CONVENIENCE
 
2443
 
 
2444
 
 
2445
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
2446
# -----------------------------------
 
2447
# sets LIBLTDL to the link flags for the libltdl installable library and
 
2448
# LTDLINCL to the include flags for the libltdl header and adds
 
2449
# --enable-ltdl-install to the configure arguments.  Note that
 
2450
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2451
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2452
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2453
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2454
# flat and you're not using automake, define top_builddir and top_srcdir
 
2455
# appropriately in the Makefiles.
 
2456
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
2457
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
2458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2459
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
2460
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
2461
  [if test x"$enable_ltdl_install" = xno; then
 
2462
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
2463
   else
 
2464
     enable_ltdl_install=yes
 
2465
   fi
 
2466
  ])
 
2467
  if test x"$enable_ltdl_install" = x"yes"; then
 
2468
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
2469
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
2470
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
2471
  else
 
2472
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
2473
    LIBLTDL="-lltdl"
 
2474
    LTDLINCL=
 
2475
  fi
 
2476
  # For backwards non-gettext consistent compatibility...
 
2477
  INCLTDL="$LTDLINCL"
 
2478
])# AC_LIBLTDL_INSTALLABLE
 
2479
 
 
2480
 
 
2481
# AC_LIBTOOL_CXX
 
2482
# --------------
 
2483
# enable support for C++ libraries
 
2484
AC_DEFUN([AC_LIBTOOL_CXX],
 
2485
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
2486
])# AC_LIBTOOL_CXX
 
2487
 
 
2488
 
 
2489
# _LT_AC_LANG_CXX
 
2490
# ---------------
 
2491
AC_DEFUN([_LT_AC_LANG_CXX],
 
2492
[AC_REQUIRE([AC_PROG_CXX])
 
2493
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2494
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
2495
])# _LT_AC_LANG_CXX
 
2496
 
 
2497
# _LT_AC_PROG_CXXCPP
 
2498
# ---------------
 
2499
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2500
[
 
2501
AC_REQUIRE([AC_PROG_CXX])
 
2502
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2503
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2504
    (test "X$CXX" != "Xg++"))) ; then
 
2505
  AC_PROG_CXXCPP
 
2506
fi
 
2507
])# _LT_AC_PROG_CXXCPP
 
2508
 
 
2509
# AC_LIBTOOL_F77
 
2510
# --------------
 
2511
# enable support for Fortran 77 libraries
 
2512
AC_DEFUN([AC_LIBTOOL_F77],
 
2513
[AC_REQUIRE([_LT_AC_LANG_F77])
 
2514
])# AC_LIBTOOL_F77
 
2515
 
 
2516
 
 
2517
# _LT_AC_LANG_F77
 
2518
# ---------------
 
2519
AC_DEFUN([_LT_AC_LANG_F77],
 
2520
[AC_REQUIRE([AC_PROG_F77])
 
2521
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
2522
])# _LT_AC_LANG_F77
 
2523
 
 
2524
 
 
2525
# AC_LIBTOOL_GCJ
 
2526
# --------------
 
2527
# enable support for GCJ libraries
 
2528
AC_DEFUN([AC_LIBTOOL_GCJ],
 
2529
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
2530
])# AC_LIBTOOL_GCJ
 
2531
 
 
2532
 
 
2533
# _LT_AC_LANG_GCJ
 
2534
# ---------------
 
2535
AC_DEFUN([_LT_AC_LANG_GCJ],
 
2536
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
2537
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
2538
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
2539
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
2540
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
2541
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
2542
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
2543
])# _LT_AC_LANG_GCJ
 
2544
 
 
2545
 
 
2546
# AC_LIBTOOL_RC
 
2547
# --------------
 
2548
# enable support for Windows resource files
 
2549
AC_DEFUN([AC_LIBTOOL_RC],
 
2550
[AC_REQUIRE([LT_AC_PROG_RC])
 
2551
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
2552
])# AC_LIBTOOL_RC
 
2553
 
 
2554
 
 
2555
# AC_LIBTOOL_LANG_C_CONFIG
 
2556
# ------------------------
 
2557
# Ensure that the configuration vars for the C compiler are
 
2558
# suitably defined.  Those variables are subsequently used by
 
2559
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2560
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
2561
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
2562
[lt_save_CC="$CC"
 
2563
AC_LANG_PUSH(C)
 
2564
 
 
2565
# Source file extension for C test sources.
 
2566
ac_ext=c
 
2567
 
 
2568
# Object file extension for compiled C test sources.
 
2569
objext=o
 
2570
_LT_AC_TAGVAR(objext, $1)=$objext
 
2571
 
 
2572
# Code to be used in simple compile tests
 
2573
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2574
 
 
2575
# Code to be used in simple link tests
 
2576
lt_simple_link_test_code='int main(){return(0);}\n'
 
2577
 
 
2578
_LT_AC_SYS_COMPILER
 
2579
 
 
2580
# save warnings/boilerplate of simple test code
 
2581
_LT_COMPILER_BOILERPLATE
 
2582
_LT_LINKER_BOILERPLATE
 
2583
 
 
2584
#
 
2585
# Check for any special shared library compilation flags.
 
2586
#
 
2587
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
2588
if test "$GCC" = no; then
 
2589
  case $host_os in
 
2590
  sco3.2v5*)
 
2591
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
2592
    ;;
 
2593
  esac
 
2594
fi
 
2595
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
2596
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
2597
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
 
2598
  else
 
2599
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
2600
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
2601
  fi
 
2602
fi
 
2603
 
 
2604
 
 
2605
#
 
2606
# Check to make sure the static flag actually works.
 
2607
#
 
2608
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
2609
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
2610
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
2611
  [],
 
2612
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
2613
 
 
2614
 
 
2615
## CAVEAT EMPTOR:
 
2616
## There is no encapsulation within the following macros, do not change
 
2617
## the running order or otherwise move them around unless you know exactly
 
2618
## what you are doing...
 
2619
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
2620
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
2621
AC_LIBTOOL_PROG_CC_C_O($1)
 
2622
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
2623
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
2624
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
2625
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
2626
AC_LIBTOOL_SYS_LIB_STRIP
 
2627
AC_LIBTOOL_DLOPEN_SELF($1)
 
2628
 
 
2629
# Report which librarie types wil actually be built
 
2630
AC_MSG_CHECKING([if libtool supports shared libraries])
 
2631
AC_MSG_RESULT([$can_build_shared])
 
2632
 
 
2633
AC_MSG_CHECKING([whether to build shared libraries])
 
2634
test "$can_build_shared" = "no" && enable_shared=no
 
2635
 
 
2636
# On AIX, shared libraries and static libraries use the same namespace, and
 
2637
# are all built from PIC.
 
2638
case $host_os in
 
2639
aix3*)
 
2640
  test "$enable_shared" = yes && enable_static=no
 
2641
  if test -n "$RANLIB"; then
 
2642
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
2643
    postinstall_cmds='$RANLIB $lib'
 
2644
  fi
 
2645
  ;;
 
2646
 
 
2647
aix4* | aix5*)
 
2648
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
2649
    test "$enable_shared" = yes && enable_static=no
 
2650
  fi
 
2651
    ;;
 
2652
esac
 
2653
AC_MSG_RESULT([$enable_shared])
 
2654
 
 
2655
AC_MSG_CHECKING([whether to build static libraries])
 
2656
# Make sure either enable_shared or enable_static is yes.
 
2657
test "$enable_shared" = yes || enable_static=yes
 
2658
AC_MSG_RESULT([$enable_static])
 
2659
 
 
2660
AC_LIBTOOL_CONFIG($1)
 
2661
 
 
2662
AC_LANG_POP
 
2663
CC="$lt_save_CC"
 
2664
])# AC_LIBTOOL_LANG_C_CONFIG
 
2665
 
 
2666
 
 
2667
# AC_LIBTOOL_LANG_CXX_CONFIG
 
2668
# --------------------------
 
2669
# Ensure that the configuration vars for the C compiler are
 
2670
# suitably defined.  Those variables are subsequently used by
 
2671
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2672
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
2673
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
2674
[AC_LANG_PUSH(C++)
 
2675
AC_REQUIRE([AC_PROG_CXX])
 
2676
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2677
 
 
2678
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2679
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
2680
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
2681
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
2682
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
2683
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2684
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
2685
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
2686
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
2687
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2688
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
2689
_LT_AC_TAGVAR(module_cmds, $1)=
 
2690
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
2691
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
2692
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
2693
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
2694
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
2695
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
2696
 
 
2697
# Dependencies to place before and after the object being linked:
 
2698
_LT_AC_TAGVAR(predep_objects, $1)=
 
2699
_LT_AC_TAGVAR(postdep_objects, $1)=
 
2700
_LT_AC_TAGVAR(predeps, $1)=
 
2701
_LT_AC_TAGVAR(postdeps, $1)=
 
2702
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2703
 
 
2704
# Source file extension for C++ test sources.
 
2705
ac_ext=cpp
 
2706
 
 
2707
# Object file extension for compiled C++ test sources.
 
2708
objext=o
 
2709
_LT_AC_TAGVAR(objext, $1)=$objext
 
2710
 
 
2711
# Code to be used in simple compile tests
 
2712
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2713
 
 
2714
# Code to be used in simple link tests
 
2715
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2716
 
 
2717
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
2718
_LT_AC_SYS_COMPILER
 
2719
 
 
2720
# save warnings/boilerplate of simple test code
 
2721
_LT_COMPILER_BOILERPLATE
 
2722
_LT_LINKER_BOILERPLATE
 
2723
 
 
2724
# Allow CC to be a program name with arguments.
 
2725
lt_save_CC=$CC
 
2726
lt_save_LD=$LD
 
2727
lt_save_GCC=$GCC
 
2728
GCC=$GXX
 
2729
lt_save_with_gnu_ld=$with_gnu_ld
 
2730
lt_save_path_LD=$lt_cv_path_LD
 
2731
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
2732
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
2733
else
 
2734
  unset lt_cv_prog_gnu_ld
 
2735
fi
 
2736
if test -n "${lt_cv_path_LDCXX+set}"; then
 
2737
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
2738
else
 
2739
  unset lt_cv_path_LD
 
2740
fi
 
2741
test -z "${LDCXX+set}" || LD=$LDCXX
 
2742
CC=${CXX-"c++"}
 
2743
compiler=$CC
 
2744
_LT_AC_TAGVAR(compiler, $1)=$CC
 
2745
_LT_CC_BASENAME([$compiler])
 
2746
 
 
2747
# We don't want -fno-exception wen compiling C++ code, so set the
 
2748
# no_builtin_flag separately
 
2749
if test "$GXX" = yes; then
 
2750
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
2751
else
 
2752
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
2753
fi
 
2754
 
 
2755
if test "$GXX" = yes; then
 
2756
  # Set up default GNU C++ configuration
 
2757
 
 
2758
  AC_PROG_LD
 
2759
 
 
2760
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
2761
  # archiving commands below assume that GNU ld is being used.
 
2762
  if test "$with_gnu_ld" = yes; then
 
2763
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2764
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
2765
 
 
2766
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
2767
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
2768
 
 
2769
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
2770
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
2771
    #     investigate it a little bit more. (MM)
 
2772
    wlarc='${wl}'
 
2773
 
 
2774
    # ancient GNU ld didn't support --whole-archive et. al.
 
2775
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
2776
        grep 'no-whole-archive' > /dev/null; then
 
2777
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
2778
    else
 
2779
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
2780
    fi
 
2781
  else
 
2782
    with_gnu_ld=no
 
2783
    wlarc=
 
2784
 
 
2785
    # A generic and very simple default shared library creation
 
2786
    # command for GNU C++ for the case where it uses the native
 
2787
    # linker, instead of GNU ld.  If possible, this setting should
 
2788
    # overridden to take advantage of the native linker features on
 
2789
    # the platform it is being used on.
 
2790
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
2791
  fi
 
2792
 
 
2793
  # Commands to make compiler produce verbose output that lists
 
2794
  # what "hidden" libraries, object files and flags are used when
 
2795
  # linking a shared library.
 
2796
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
2797
 
 
2798
else
 
2799
  GXX=no
 
2800
  with_gnu_ld=no
 
2801
  wlarc=
 
2802
fi
 
2803
 
 
2804
# PORTME: fill in a description of your system's C++ link characteristics
 
2805
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
2806
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
2807
case $host_os in
 
2808
  aix3*)
 
2809
    # FIXME: insert proper C++ library support
 
2810
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2811
    ;;
 
2812
  aix4* | aix5*)
 
2813
    if test "$host_cpu" = ia64; then
 
2814
      # On IA64, the linker does run time linking by default, so we don't
 
2815
      # have to do anything special.
 
2816
      aix_use_runtimelinking=no
 
2817
      exp_sym_flag='-Bexport'
 
2818
      no_entry_flag=""
 
2819
    else
 
2820
      aix_use_runtimelinking=no
 
2821
 
 
2822
      # Test if we are trying to use run time linking or normal
 
2823
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
2824
      # need to do runtime linking.
 
2825
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
2826
        for ld_flag in $LDFLAGS; do
 
2827
          case $ld_flag in
 
2828
          *-brtl*)
 
2829
            aix_use_runtimelinking=yes
 
2830
            break
 
2831
            ;;
 
2832
          esac
 
2833
        done
 
2834
      esac
 
2835
 
 
2836
      exp_sym_flag='-bexport'
 
2837
      no_entry_flag='-bnoentry'
 
2838
    fi
 
2839
 
 
2840
    # When large executables or shared objects are built, AIX ld can
 
2841
    # have problems creating the table of contents.  If linking a library
 
2842
    # or program results in "error TOC overflow" add -mminimal-toc to
 
2843
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
2844
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
2845
 
 
2846
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
2847
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2848
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
2849
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
2850
 
 
2851
    if test "$GXX" = yes; then
 
2852
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
2853
      # We only want to do this on AIX 4.2 and lower, the check
 
2854
      # below for broken collect2 doesn't work under 4.3+
 
2855
        collect2name=`${CC} -print-prog-name=collect2`
 
2856
        if test -f "$collect2name" && \
 
2857
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
2858
        then
 
2859
          # We have reworked collect2
 
2860
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2861
        else
 
2862
          # We have old collect2
 
2863
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
2864
          # It fails to find uninstalled libraries when the uninstalled
 
2865
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
2866
          # to unsupported forces relinking
 
2867
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
2868
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
2869
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
2870
        fi
 
2871
      esac
 
2872
      shared_flag='-shared'
 
2873
      if test "$aix_use_runtimelinking" = yes; then
 
2874
        shared_flag="$shared_flag "'${wl}-G'
 
2875
      fi
 
2876
    else
 
2877
      # not using gcc
 
2878
      if test "$host_cpu" = ia64; then
 
2879
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
2880
        # chokes on -Wl,-G. The following line is correct:
 
2881
        shared_flag='-G'
 
2882
      else
 
2883
        if test "$aix_use_runtimelinking" = yes; then
 
2884
          shared_flag='${wl}-G'
 
2885
        else
 
2886
          shared_flag='${wl}-bM:SRE'
 
2887
        fi
 
2888
      fi
 
2889
    fi
 
2890
 
 
2891
    # It seems that -bexpall does not export symbols beginning with
 
2892
    # underscore (_), so it is better to generate a list of symbols to export.
 
2893
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
2894
    if test "$aix_use_runtimelinking" = yes; then
 
2895
      # Warning - without using the other runtime loading flags (-brtl),
 
2896
      # -berok will link without error, but may produce a broken library.
 
2897
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
2898
      # Determine the default libpath from the value encoded in an empty executable.
 
2899
      _LT_AC_SYS_LIBPATH_AIX
 
2900
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
2901
 
 
2902
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
 
2903
     else
 
2904
      if test "$host_cpu" = ia64; then
 
2905
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
2906
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
2907
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
 
2908
      else
 
2909
        # Determine the default libpath from the value encoded in an empty executable.
 
2910
        _LT_AC_SYS_LIBPATH_AIX
 
2911
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
2912
        # Warning - without using the other run time loading flags,
 
2913
        # -berok will link without error, but may produce a broken library.
 
2914
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
2915
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
2916
        # -bexpall does not export symbols beginning with underscore (_)
 
2917
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
2918
        # Exported symbols can be pulled into shared objects from archives
 
2919
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2920
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
2921
        # This is similar to how AIX traditionally builds its shared libraries.
 
2922
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
 
2923
      fi
 
2924
    fi
 
2925
    ;;
 
2926
  chorus*)
 
2927
    case $cc_basename in
 
2928
      *)
 
2929
        # FIXME: insert proper C++ library support
 
2930
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2931
        ;;
 
2932
    esac
 
2933
    ;;
 
2934
 
 
2935
 
 
2936
  cygwin* | mingw* | pw32*)
 
2937
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
2938
    # as there is no search path for DLLs.
 
2939
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
2940
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2941
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
2942
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
2943
 
 
2944
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
2945
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
2946
      # If the export-symbols file already is a .def file (1st line
 
2947
      # is EXPORTS), use it as is; otherwise, prepend...
 
2948
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
2949
        cp $export_symbols $output_objdir/$soname.def;
 
2950
      else
 
2951
        echo EXPORTS > $output_objdir/$soname.def;
 
2952
        cat $export_symbols >> $output_objdir/$soname.def;
 
2953
      fi~
 
2954
      $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'
 
2955
    else
 
2956
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2957
    fi
 
2958
  ;;
 
2959
      darwin* | rhapsody*)
 
2960
        case $host_os in
 
2961
        rhapsody* | darwin1.[[012]])
 
2962
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
2963
         ;;
 
2964
       *) # Darwin 1.3 on
 
2965
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2966
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2967
         else
 
2968
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
2969
             10.[[012]])
 
2970
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2971
               ;;
 
2972
             10.*)
 
2973
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
2974
               ;;
 
2975
           esac
 
2976
         fi
 
2977
         ;;
 
2978
        esac
 
2979
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2980
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2981
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2982
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2983
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
2984
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
2985
 
 
2986
    if test "$GXX" = yes ; then
 
2987
      lt_int_apple_cc_single_mod=no
 
2988
      output_verbose_link_cmd='echo'
 
2989
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
2990
       lt_int_apple_cc_single_mod=yes
 
2991
      fi
 
2992
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
2993
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2994
      else
 
2995
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2996
        fi
 
2997
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2998
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
2999
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3000
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
 
3001
          else
 
3002
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3003
          fi
 
3004
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
3005
      else
 
3006
      case $cc_basename in
 
3007
        xlc*)
 
3008
         output_verbose_link_cmd='echo'
 
3009
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3010
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3011
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3012
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3013
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
3014
          ;;
 
3015
       *)
 
3016
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3017
          ;;
 
3018
      esac
 
3019
      fi
 
3020
        ;;
 
3021
 
 
3022
  dgux*)
 
3023
    case $cc_basename in
 
3024
      ec++*)
 
3025
        # FIXME: insert proper C++ library support
 
3026
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3027
        ;;
 
3028
      ghcx*)
 
3029
        # Green Hills C++ Compiler
 
3030
        # FIXME: insert proper C++ library support
 
3031
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3032
        ;;
 
3033
      *)
 
3034
        # FIXME: insert proper C++ library support
 
3035
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3036
        ;;
 
3037
    esac
 
3038
    ;;
 
3039
  freebsd[[12]]*)
 
3040
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3041
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3042
    ;;
 
3043
  freebsd-elf*)
 
3044
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3045
    ;;
 
3046
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3047
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3048
    # conventions
 
3049
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3050
    ;;
 
3051
  gnu*)
 
3052
    ;;
 
3053
  hpux9*)
 
3054
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3055
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3056
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3057
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3058
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3059
                                # but as the default
 
3060
                                # location of the library.
 
3061
 
 
3062
    case $cc_basename in
 
3063
    CC*)
 
3064
      # FIXME: insert proper C++ library support
 
3065
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3066
      ;;
 
3067
    aCC*)
 
3068
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
3069
      # Commands to make compiler produce verbose output that lists
 
3070
      # what "hidden" libraries, object files and flags are used when
 
3071
      # linking a shared library.
 
3072
      #
 
3073
      # There doesn't appear to be a way to prevent this compiler from
 
3074
      # explicitly linking system object files so we need to strip them
 
3075
      # from the output so that they don't get included in the library
 
3076
      # dependencies.
 
3077
      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'
 
3078
      ;;
 
3079
    *)
 
3080
      if test "$GXX" = yes; then
 
3081
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
3082
      else
 
3083
        # FIXME: insert proper C++ library support
 
3084
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3085
      fi
 
3086
      ;;
 
3087
    esac
 
3088
    ;;
 
3089
  hpux10*|hpux11*)
 
3090
    if test $with_gnu_ld = no; then
 
3091
      case $host_cpu in
 
3092
      hppa*64*)
 
3093
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3094
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3095
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3096
        ;;
 
3097
      ia64*)
 
3098
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3099
        ;;
 
3100
      *)
 
3101
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3102
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3103
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3104
        ;;
 
3105
      esac
 
3106
    fi
 
3107
    case $host_cpu in
 
3108
    hppa*64*)
 
3109
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3110
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3111
      ;;
 
3112
    ia64*)
 
3113
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3114
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3115
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3116
                                              # but as the default
 
3117
                                              # location of the library.
 
3118
      ;;
 
3119
    *)
 
3120
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3121
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3122
                                              # but as the default
 
3123
                                              # location of the library.
 
3124
      ;;
 
3125
    esac
 
3126
 
 
3127
    case $cc_basename in
 
3128
      CC*)
 
3129
        # FIXME: insert proper C++ library support
 
3130
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3131
        ;;
 
3132
      aCC*)
 
3133
        case $host_cpu in
 
3134
        hppa*64*|ia64*)
 
3135
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3136
          ;;
 
3137
        *)
 
3138
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3139
          ;;
 
3140
        esac
 
3141
        # Commands to make compiler produce verbose output that lists
 
3142
        # what "hidden" libraries, object files and flags are used when
 
3143
        # linking a shared library.
 
3144
        #
 
3145
        # There doesn't appear to be a way to prevent this compiler from
 
3146
        # explicitly linking system object files so we need to strip them
 
3147
        # from the output so that they don't get included in the library
 
3148
        # dependencies.
 
3149
        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'
 
3150
        ;;
 
3151
      *)
 
3152
        if test "$GXX" = yes; then
 
3153
          if test $with_gnu_ld = no; then
 
3154
            case $host_cpu in
 
3155
            ia64*|hppa*64*)
 
3156
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3157
              ;;
 
3158
            *)
 
3159
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3160
              ;;
 
3161
            esac
 
3162
          fi
 
3163
        else
 
3164
          # FIXME: insert proper C++ library support
 
3165
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3166
        fi
 
3167
        ;;
 
3168
    esac
 
3169
    ;;
 
3170
  irix5* | irix6*)
 
3171
    case $cc_basename in
 
3172
      CC*)
 
3173
        # SGI C++
 
3174
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3175
 
 
3176
        # Archives containing C++ object files must be created using
 
3177
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
3178
        # necessary to make sure instantiated templates are included
 
3179
        # in the archive.
 
3180
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
3181
        ;;
 
3182
      *)
 
3183
        if test "$GXX" = yes; then
 
3184
          if test "$with_gnu_ld" = no; then
 
3185
            _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
 
3186
          else
 
3187
            _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
3188
          fi
 
3189
        fi
 
3190
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3191
        ;;
 
3192
    esac
 
3193
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3194
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3195
    ;;
 
3196
  linux*)
 
3197
    case $cc_basename in
 
3198
      KCC*)
 
3199
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3200
 
 
3201
        # KCC will only create a shared library if the output file
 
3202
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3203
        # to its proper name (with version) after linking.
 
3204
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
 
3205
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
 
3206
        # Commands to make compiler produce verbose output that lists
 
3207
        # what "hidden" libraries, object files and flags are used when
 
3208
        # linking a shared library.
 
3209
        #
 
3210
        # There doesn't appear to be a way to prevent this compiler from
 
3211
        # explicitly linking system object files so we need to strip them
 
3212
        # from the output so that they don't get included in the library
 
3213
        # dependencies.
 
3214
        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'
 
3215
 
 
3216
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
3217
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3218
 
 
3219
        # Archives containing C++ object files must be created using
 
3220
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
3221
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
3222
        ;;
 
3223
      icpc*)
 
3224
        # Intel C++
 
3225
        with_gnu_ld=yes
 
3226
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3227
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3228
        # earlier do not add the objects themselves.
 
3229
        case `$CC -V 2>&1` in
 
3230
        *"Version 7."*)
 
3231
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3232
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3233
          ;;
 
3234
        *)  # Version 8.0 or newer
 
3235
          tmp_idyn=
 
3236
          case $host_cpu in
 
3237
            ia64*) tmp_idyn=' -i_dynamic';;
 
3238
          esac
 
3239
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3240
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3241
          ;;
 
3242
        esac
 
3243
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3244
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3245
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3246
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
3247
        ;;
 
3248
      pgCC*)
 
3249
        # Portland Group C++ compiler
 
3250
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3251
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3252
 
 
3253
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3254
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3255
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3256
        ;;
 
3257
      cxx*)
 
3258
        # Compaq C++
 
3259
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3260
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
3261
 
 
3262
        runpath_var=LD_RUN_PATH
 
3263
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
3264
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3265
 
 
3266
        # Commands to make compiler produce verbose output that lists
 
3267
        # what "hidden" libraries, object files and flags are used when
 
3268
        # linking a shared library.
 
3269
        #
 
3270
        # There doesn't appear to be a way to prevent this compiler from
 
3271
        # explicitly linking system object files so we need to strip them
 
3272
        # from the output so that they don't get included in the library
 
3273
        # dependencies.
 
3274
        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'
 
3275
        ;;
 
3276
    esac
 
3277
    ;;
 
3278
  lynxos*)
 
3279
    # FIXME: insert proper C++ library support
 
3280
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3281
    ;;
 
3282
  m88k*)
 
3283
    # FIXME: insert proper C++ library support
 
3284
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3285
    ;;
 
3286
  mvs*)
 
3287
    case $cc_basename in
 
3288
      cxx*)
 
3289
        # FIXME: insert proper C++ library support
 
3290
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3291
        ;;
 
3292
      *)
 
3293
        # FIXME: insert proper C++ library support
 
3294
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3295
        ;;
 
3296
    esac
 
3297
    ;;
 
3298
  netbsd*)
 
3299
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3300
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
3301
      wlarc=
 
3302
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3303
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3304
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3305
    fi
 
3306
    # Workaround some broken pre-1.5 toolchains
 
3307
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
3308
    ;;
 
3309
  openbsd2*)
 
3310
    # C++ shared libraries are fairly broken
 
3311
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3312
    ;;
 
3313
  openbsd*)
 
3314
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3315
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3316
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3317
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3318
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3319
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3320
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3321
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3322
    fi
 
3323
    output_verbose_link_cmd='echo'
 
3324
    ;;
 
3325
  osf3*)
 
3326
    case $cc_basename in
 
3327
      KCC*)
 
3328
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3329
 
 
3330
        # KCC will only create a shared library if the output file
 
3331
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3332
        # to its proper name (with version) after linking.
 
3333
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
 
3334
 
 
3335
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3336
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3337
 
 
3338
        # Archives containing C++ object files must be created using
 
3339
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
3340
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
3341
 
 
3342
        ;;
 
3343
      RCC*)
 
3344
        # Rational C++ 2.4.1
 
3345
        # FIXME: insert proper C++ library support
 
3346
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3347
        ;;
 
3348
      cxx*)
 
3349
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3350
        _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${output_objdir}/so_locations -o $lib'
 
3351
 
 
3352
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3353
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3354
 
 
3355
        # Commands to make compiler produce verbose output that lists
 
3356
        # what "hidden" libraries, object files and flags are used when
 
3357
        # linking a shared library.
 
3358
        #
 
3359
        # There doesn't appear to be a way to prevent this compiler from
 
3360
        # explicitly linking system object files so we need to strip them
 
3361
        # from the output so that they don't get included in the library
 
3362
        # dependencies.
 
3363
        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'
 
3364
        ;;
 
3365
      *)
 
3366
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3367
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3368
          _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
 
3369
 
 
3370
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3371
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3372
 
 
3373
          # Commands to make compiler produce verbose output that lists
 
3374
          # what "hidden" libraries, object files and flags are used when
 
3375
          # linking a shared library.
 
3376
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3377
 
 
3378
        else
 
3379
          # FIXME: insert proper C++ library support
 
3380
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3381
        fi
 
3382
        ;;
 
3383
    esac
 
3384
    ;;
 
3385
  osf4* | osf5*)
 
3386
    case $cc_basename in
 
3387
      KCC*)
 
3388
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3389
 
 
3390
        # KCC will only create a shared library if the output file
 
3391
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3392
        # to its proper name (with version) after linking.
 
3393
        _LT_AC_TAGVAR(archive_cmds, $1)='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'
 
3394
 
 
3395
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3396
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3397
 
 
3398
        # Archives containing C++ object files must be created using
 
3399
        # the KAI C++ compiler.
 
3400
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
3401
        ;;
 
3402
      RCC*)
 
3403
        # Rational C++ 2.4.1
 
3404
        # FIXME: insert proper C++ library support
 
3405
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3406
        ;;
 
3407
      cxx*)
 
3408
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
3409
        _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${output_objdir}/so_locations -o $lib'
 
3410
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
3411
          echo "-hidden">> $lib.exp~
 
3412
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
3413
          $rm $lib.exp'
 
3414
 
 
3415
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
3416
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3417
 
 
3418
        # Commands to make compiler produce verbose output that lists
 
3419
        # what "hidden" libraries, object files and flags are used when
 
3420
        # linking a shared library.
 
3421
        #
 
3422
        # There doesn't appear to be a way to prevent this compiler from
 
3423
        # explicitly linking system object files so we need to strip them
 
3424
        # from the output so that they don't get included in the library
 
3425
        # dependencies.
 
3426
        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'
 
3427
        ;;
 
3428
      *)
 
3429
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3430
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3431
         _LT_AC_TAGVAR(archive_cmds, $1)='$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}${output_objdir}/so_locations -o $lib'
 
3432
 
 
3433
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3434
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3435
 
 
3436
          # Commands to make compiler produce verbose output that lists
 
3437
          # what "hidden" libraries, object files and flags are used when
 
3438
          # linking a shared library.
 
3439
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3440
 
 
3441
        else
 
3442
          # FIXME: insert proper C++ library support
 
3443
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3444
        fi
 
3445
        ;;
 
3446
    esac
 
3447
    ;;
 
3448
  psos*)
 
3449
    # FIXME: insert proper C++ library support
 
3450
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3451
    ;;
 
3452
  sco*)
 
3453
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3454
    case $cc_basename in
 
3455
      CC*)
 
3456
        # FIXME: insert proper C++ library support
 
3457
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3458
        ;;
 
3459
      *)
 
3460
        # FIXME: insert proper C++ library support
 
3461
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3462
        ;;
 
3463
    esac
 
3464
    ;;
 
3465
  sunos4*)
 
3466
    case $cc_basename in
 
3467
      CC*)
 
3468
        # Sun C++ 4.x
 
3469
        # FIXME: insert proper C++ library support
 
3470
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3471
        ;;
 
3472
      lcc*)
 
3473
        # Lucid
 
3474
        # FIXME: insert proper C++ library support
 
3475
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3476
        ;;
 
3477
      *)
 
3478
        # FIXME: insert proper C++ library support
 
3479
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3480
        ;;
 
3481
    esac
 
3482
    ;;
 
3483
  solaris*)
 
3484
    case $cc_basename in
 
3485
      CC*)
 
3486
        # Sun C++ 4.2, 5.x and Centerline C++
 
3487
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
3488
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3489
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3490
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3491
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3492
 
 
3493
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3494
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3495
        case $host_os in
 
3496
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3497
          *)
 
3498
            # The C++ compiler is used as linker so we must use $wl
 
3499
            # flag to pass the commands to the underlying system
 
3500
            # linker. We must also pass each convience library through
 
3501
            # to the system linker between allextract/defaultextract.
 
3502
            # The C++ compiler will combine linker options so we
 
3503
            # cannot just pass the convience library names through
 
3504
            # without $wl.
 
3505
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
3506
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3507
            ;;
 
3508
        esac
 
3509
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3510
 
 
3511
        output_verbose_link_cmd='echo'
 
3512
 
 
3513
        # Archives containing C++ object files must be created using
 
3514
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3515
        # necessary to make sure instantiated templates are included
 
3516
        # in the archive.
 
3517
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3518
        ;;
 
3519
      gcx*)
 
3520
        # Green Hills C++ Compiler
 
3521
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3522
 
 
3523
        # The C++ compiler must be used to create the archive.
 
3524
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
3525
        ;;
 
3526
      *)
 
3527
        # GNU C++ compiler with Solaris linker
 
3528
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3529
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
3530
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
3531
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3532
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3533
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3534
 
 
3535
            # Commands to make compiler produce verbose output that lists
 
3536
            # what "hidden" libraries, object files and flags are used when
 
3537
            # linking a shared library.
 
3538
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
3539
          else
 
3540
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
3541
            # platform.
 
3542
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3543
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3544
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3545
 
 
3546
            # Commands to make compiler produce verbose output that lists
 
3547
            # what "hidden" libraries, object files and flags are used when
 
3548
            # linking a shared library.
 
3549
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
3550
          fi
 
3551
 
 
3552
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3553
        fi
 
3554
        ;;
 
3555
    esac
 
3556
    ;;
 
3557
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
3558
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3559
    ;;
 
3560
  tandem*)
 
3561
    case $cc_basename in
 
3562
      NCC*)
 
3563
        # NonStop-UX NCC 3.20
 
3564
        # FIXME: insert proper C++ library support
 
3565
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3566
        ;;
 
3567
      *)
 
3568
        # FIXME: insert proper C++ library support
 
3569
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3570
        ;;
 
3571
    esac
 
3572
    ;;
 
3573
  vxworks*)
 
3574
    # FIXME: insert proper C++ library support
 
3575
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3576
    ;;
 
3577
  *)
 
3578
    # FIXME: insert proper C++ library support
 
3579
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3580
    ;;
 
3581
esac
 
3582
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
3583
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
3584
 
 
3585
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
3586
_LT_AC_TAGVAR(LD, $1)="$LD"
 
3587
 
 
3588
## CAVEAT EMPTOR:
 
3589
## There is no encapsulation within the following macros, do not change
 
3590
## the running order or otherwise move them around unless you know exactly
 
3591
## what you are doing...
 
3592
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
3593
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3594
AC_LIBTOOL_PROG_CC_C_O($1)
 
3595
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3596
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3597
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3598
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3599
AC_LIBTOOL_SYS_LIB_STRIP
 
3600
AC_LIBTOOL_DLOPEN_SELF($1)
 
3601
 
 
3602
AC_LIBTOOL_CONFIG($1)
 
3603
 
 
3604
AC_LANG_POP
 
3605
CC=$lt_save_CC
 
3606
LDCXX=$LD
 
3607
LD=$lt_save_LD
 
3608
GCC=$lt_save_GCC
 
3609
with_gnu_ldcxx=$with_gnu_ld
 
3610
with_gnu_ld=$lt_save_with_gnu_ld
 
3611
lt_cv_path_LDCXX=$lt_cv_path_LD
 
3612
lt_cv_path_LD=$lt_save_path_LD
 
3613
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
3614
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
3615
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
3616
 
 
3617
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
3618
# ------------------------
 
3619
# Figure out "hidden" library dependencies from verbose
 
3620
# compiler output when linking a shared library.
 
3621
# Parse the compiler output and extract the necessary
 
3622
# objects, libraries and library flags.
 
3623
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3624
dnl we can't use the lt_simple_compile_test_code here,
 
3625
dnl because it contains code intended for an executable,
 
3626
dnl not a library.  It's possible we should let each
 
3627
dnl tag define a new lt_????_link_test_code variable,
 
3628
dnl but it's only used here...
 
3629
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
3630
int a;
 
3631
void foo (void) { a = 0; }
 
3632
EOF
 
3633
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
3634
class Foo
 
3635
{
 
3636
public:
 
3637
  Foo (void) { a = 0; }
 
3638
private:
 
3639
  int a;
 
3640
};
 
3641
EOF
 
3642
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
3643
      subroutine foo
 
3644
      implicit none
 
3645
      integer*4 a
 
3646
      a=0
 
3647
      return
 
3648
      end
 
3649
EOF
 
3650
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
3651
public class foo {
 
3652
  private int a;
 
3653
  public void bar (void) {
 
3654
    a = 0;
 
3655
  }
 
3656
};
 
3657
EOF
 
3658
])
 
3659
dnl Parse the compiler output and extract the necessary
 
3660
dnl objects, libraries and library flags.
 
3661
if AC_TRY_EVAL(ac_compile); then
 
3662
  # Parse the compiler output and extract the necessary
 
3663
  # objects, libraries and library flags.
 
3664
 
 
3665
  # Sentinel used to keep track of whether or not we are before
 
3666
  # the conftest object file.
 
3667
  pre_test_object_deps_done=no
 
3668
 
 
3669
  # The `*' in the case matches for architectures that use `case' in
 
3670
  # $output_verbose_cmd can trigger glob expansion during the loop
 
3671
  # eval without this substitution.
 
3672
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
3673
 
 
3674
  for p in `eval $output_verbose_link_cmd`; do
 
3675
    case $p in
 
3676
 
 
3677
    -L* | -R* | -l*)
 
3678
       # Some compilers place space between "-{L,R}" and the path.
 
3679
       # Remove the space.
 
3680
       if test $p = "-L" \
 
3681
          || test $p = "-R"; then
 
3682
         prev=$p
 
3683
         continue
 
3684
       else
 
3685
         prev=
 
3686
       fi
 
3687
 
 
3688
       if test "$pre_test_object_deps_done" = no; then
 
3689
         case $p in
 
3690
         -L* | -R*)
 
3691
           # Internal compiler library paths should come after those
 
3692
           # provided the user.  The postdeps already come after the
 
3693
           # user supplied libs so there is no need to process them.
 
3694
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
3695
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
3696
           else
 
3697
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
3698
           fi
 
3699
           ;;
 
3700
         # The "-l" case would never come before the object being
 
3701
         # linked, so don't bother handling this case.
 
3702
         esac
 
3703
       else
 
3704
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
3705
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
3706
         else
 
3707
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
3708
         fi
 
3709
       fi
 
3710
       ;;
 
3711
 
 
3712
    *.$objext)
 
3713
       # This assumes that the test object file only shows up
 
3714
       # once in the compiler output.
 
3715
       if test "$p" = "conftest.$objext"; then
 
3716
         pre_test_object_deps_done=yes
 
3717
         continue
 
3718
       fi
 
3719
 
 
3720
       if test "$pre_test_object_deps_done" = no; then
 
3721
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
3722
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
3723
         else
 
3724
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
3725
         fi
 
3726
       else
 
3727
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
3728
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
3729
         else
 
3730
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
3731
         fi
 
3732
       fi
 
3733
       ;;
 
3734
 
 
3735
    *) ;; # Ignore the rest.
 
3736
 
 
3737
    esac
 
3738
  done
 
3739
 
 
3740
  # Clean up.
 
3741
  rm -f a.out a.exe
 
3742
else
 
3743
  echo "libtool.m4: error: problem compiling $1 test program"
 
3744
fi
 
3745
 
 
3746
$rm -f confest.$objext
 
3747
 
 
3748
# PORTME: override above test on systems where it is broken
 
3749
ifelse([$1],[CXX],
 
3750
[case $host_os in
 
3751
solaris*)
 
3752
  case $cc_basename in
 
3753
  CC*)
 
3754
    # Adding this requires a known-good setup of shared libraries for
 
3755
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3756
    # archive will be linked into the output, leading to subtle bugs.
 
3757
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3758
    ;;
 
3759
  esac
 
3760
esac
 
3761
])
 
3762
 
 
3763
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
3764
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
3765
esac
 
3766
])# AC_LIBTOOL_POSTDEP_PREDEP
 
3767
 
 
3768
# AC_LIBTOOL_LANG_F77_CONFIG
 
3769
# ------------------------
 
3770
# Ensure that the configuration vars for the C compiler are
 
3771
# suitably defined.  Those variables are subsequently used by
 
3772
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3773
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
3774
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
3775
[AC_REQUIRE([AC_PROG_F77])
 
3776
AC_LANG_PUSH(Fortran 77)
 
3777
 
 
3778
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3779
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3780
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3781
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3782
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3783
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3784
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3785
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3786
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3787
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3788
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3789
_LT_AC_TAGVAR(module_cmds, $1)=
 
3790
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3791
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3792
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3793
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3794
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3795
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3796
 
 
3797
# Source file extension for f77 test sources.
 
3798
ac_ext=f
 
3799
 
 
3800
# Object file extension for compiled f77 test sources.
 
3801
objext=o
 
3802
_LT_AC_TAGVAR(objext, $1)=$objext
 
3803
 
 
3804
# Code to be used in simple compile tests
 
3805
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
3806
 
 
3807
# Code to be used in simple link tests
 
3808
lt_simple_link_test_code="      program t\n      end\n"
 
3809
 
 
3810
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3811
_LT_AC_SYS_COMPILER
 
3812
 
 
3813
# save warnings/boilerplate of simple test code
 
3814
_LT_COMPILER_BOILERPLATE
 
3815
_LT_LINKER_BOILERPLATE
 
3816
 
 
3817
# Allow CC to be a program name with arguments.
 
3818
lt_save_CC="$CC"
 
3819
CC=${F77-"f77"}
 
3820
compiler=$CC
 
3821
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3822
_LT_CC_BASENAME([$compiler])
 
3823
 
 
3824
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3825
AC_MSG_RESULT([$can_build_shared])
 
3826
 
 
3827
AC_MSG_CHECKING([whether to build shared libraries])
 
3828
test "$can_build_shared" = "no" && enable_shared=no
 
3829
 
 
3830
# On AIX, shared libraries and static libraries use the same namespace, and
 
3831
# are all built from PIC.
 
3832
case $host_os in
 
3833
aix3*)
 
3834
  test "$enable_shared" = yes && enable_static=no
 
3835
  if test -n "$RANLIB"; then
 
3836
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3837
    postinstall_cmds='$RANLIB $lib'
 
3838
  fi
 
3839
  ;;
 
3840
aix4* | aix5*)
 
3841
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3842
    test "$enable_shared" = yes && enable_static=no
 
3843
  fi
 
3844
  ;;
 
3845
esac
 
3846
AC_MSG_RESULT([$enable_shared])
 
3847
 
 
3848
AC_MSG_CHECKING([whether to build static libraries])
 
3849
# Make sure either enable_shared or enable_static is yes.
 
3850
test "$enable_shared" = yes || enable_static=yes
 
3851
AC_MSG_RESULT([$enable_static])
 
3852
 
 
3853
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
3854
 
 
3855
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
3856
_LT_AC_TAGVAR(LD, $1)="$LD"
 
3857
 
 
3858
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3859
AC_LIBTOOL_PROG_CC_C_O($1)
 
3860
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3861
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3862
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3863
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3864
AC_LIBTOOL_SYS_LIB_STRIP
 
3865
 
 
3866
 
 
3867
AC_LIBTOOL_CONFIG($1)
 
3868
 
 
3869
AC_LANG_POP
 
3870
CC="$lt_save_CC"
 
3871
])# AC_LIBTOOL_LANG_F77_CONFIG
 
3872
 
 
3873
 
 
3874
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
3875
# --------------------------
 
3876
# Ensure that the configuration vars for the C compiler are
 
3877
# suitably defined.  Those variables are subsequently used by
 
3878
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3879
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
3880
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
3881
[AC_LANG_SAVE
 
3882
 
 
3883
# Source file extension for Java test sources.
 
3884
ac_ext=java
 
3885
 
 
3886
# Object file extension for compiled Java test sources.
 
3887
objext=o
 
3888
_LT_AC_TAGVAR(objext, $1)=$objext
 
3889
 
 
3890
# Code to be used in simple compile tests
 
3891
lt_simple_compile_test_code="class foo {}\n"
 
3892
 
 
3893
# Code to be used in simple link tests
 
3894
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
3895
 
 
3896
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3897
_LT_AC_SYS_COMPILER
 
3898
 
 
3899
# save warnings/boilerplate of simple test code
 
3900
_LT_COMPILER_BOILERPLATE
 
3901
_LT_LINKER_BOILERPLATE
 
3902
 
 
3903
# Allow CC to be a program name with arguments.
 
3904
lt_save_CC="$CC"
 
3905
CC=${GCJ-"gcj"}
 
3906
compiler=$CC
 
3907
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3908
_LT_CC_BASENAME([$compiler])
 
3909
 
 
3910
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
3911
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3912
 
 
3913
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3914
 
 
3915
## CAVEAT EMPTOR:
 
3916
## There is no encapsulation within the following macros, do not change
 
3917
## the running order or otherwise move them around unless you know exactly
 
3918
## what you are doing...
 
3919
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3920
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3921
AC_LIBTOOL_PROG_CC_C_O($1)
 
3922
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3923
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3924
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3925
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3926
AC_LIBTOOL_SYS_LIB_STRIP
 
3927
AC_LIBTOOL_DLOPEN_SELF($1)
 
3928
 
 
3929
AC_LIBTOOL_CONFIG($1)
 
3930
 
 
3931
AC_LANG_RESTORE
 
3932
CC="$lt_save_CC"
 
3933
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
3934
 
 
3935
 
 
3936
# AC_LIBTOOL_LANG_RC_CONFIG
 
3937
# --------------------------
 
3938
# Ensure that the configuration vars for the Windows resource compiler are
 
3939
# suitably defined.  Those variables are subsequently used by
 
3940
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3941
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
3942
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
3943
[AC_LANG_SAVE
 
3944
 
 
3945
# Source file extension for RC test sources.
 
3946
ac_ext=rc
 
3947
 
 
3948
# Object file extension for compiled RC test sources.
 
3949
objext=o
 
3950
_LT_AC_TAGVAR(objext, $1)=$objext
 
3951
 
 
3952
# Code to be used in simple compile tests
 
3953
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
3954
 
 
3955
# Code to be used in simple link tests
 
3956
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
3957
 
 
3958
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3959
_LT_AC_SYS_COMPILER
 
3960
 
 
3961
# save warnings/boilerplate of simple test code
 
3962
_LT_COMPILER_BOILERPLATE
 
3963
_LT_LINKER_BOILERPLATE
 
3964
 
 
3965
# Allow CC to be a program name with arguments.
 
3966
lt_save_CC="$CC"
 
3967
CC=${RC-"windres"}
 
3968
compiler=$CC
 
3969
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3970
_LT_CC_BASENAME([$compiler])
 
3971
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
3972
 
 
3973
AC_LIBTOOL_CONFIG($1)
 
3974
 
 
3975
AC_LANG_RESTORE
 
3976
CC="$lt_save_CC"
 
3977
])# AC_LIBTOOL_LANG_RC_CONFIG
 
3978
 
 
3979
 
 
3980
# AC_LIBTOOL_CONFIG([TAGNAME])
 
3981
# ----------------------------
 
3982
# If TAGNAME is not passed, then create an initial libtool script
 
3983
# with a default configuration from the untagged config vars.  Otherwise
 
3984
# add code to config.status for appending the configuration named by
 
3985
# TAGNAME from the matching tagged config vars.
 
3986
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
3987
[# The else clause should only fire when bootstrapping the
 
3988
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
3989
# with your package, and you will get complaints that there are
 
3990
# no rules to generate ltmain.sh.
 
3991
if test -f "$ltmain"; then
 
3992
  # See if we are running on zsh, and set the options which allow our commands through
 
3993
  # without removal of \ escapes.
 
3994
  if test -n "${ZSH_VERSION+set}" ; then
 
3995
    setopt NO_GLOB_SUBST
 
3996
  fi
 
3997
  # Now quote all the things that may contain metacharacters while being
 
3998
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
3999
  # variables and quote the copies for generation of the libtool script.
 
4000
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4001
    SED SHELL STRIP \
 
4002
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4003
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4004
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4005
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4006
    lt_cv_sys_global_symbol_to_c_name_address \
 
4007
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4008
    old_postinstall_cmds old_postuninstall_cmds \
 
4009
    _LT_AC_TAGVAR(compiler, $1) \
 
4010
    _LT_AC_TAGVAR(CC, $1) \
 
4011
    _LT_AC_TAGVAR(LD, $1) \
 
4012
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
4013
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
4014
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
4015
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
4016
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
4017
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
4018
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
4019
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
4020
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
4021
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
4022
    _LT_AC_TAGVAR(predep_objects, $1) \
 
4023
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
4024
    _LT_AC_TAGVAR(predeps, $1) \
 
4025
    _LT_AC_TAGVAR(postdeps, $1) \
 
4026
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4027
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
4028
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
4029
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
4030
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
4031
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
4032
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
4033
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
4034
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
4035
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
4036
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
4037
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
4038
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
4039
    _LT_AC_TAGVAR(module_cmds, $1) \
 
4040
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
4041
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4042
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
4043
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
4044
 
 
4045
    case $var in
 
4046
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
4047
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
4048
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
4049
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
4050
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
4051
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
4052
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
4053
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
4054
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
4055
    postinstall_cmds | postuninstall_cmds | \
 
4056
    old_postinstall_cmds | old_postuninstall_cmds | \
 
4057
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4058
      # Double-quote double-evaled strings.
 
4059
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
4060
      ;;
 
4061
    *)
 
4062
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
4063
      ;;
 
4064
    esac
 
4065
  done
 
4066
 
 
4067
  case $lt_echo in
 
4068
  *'\[$]0 --fallback-echo"')
 
4069
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
4070
    ;;
 
4071
  esac
 
4072
 
 
4073
ifelse([$1], [],
 
4074
  [cfgfile="${ofile}T"
 
4075
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
4076
  $rm -f "$cfgfile"
 
4077
  AC_MSG_NOTICE([creating $ofile])],
 
4078
  [cfgfile="$ofile"])
 
4079
 
 
4080
  cat <<__EOF__ >> "$cfgfile"
 
4081
ifelse([$1], [],
 
4082
[#! $SHELL
 
4083
 
 
4084
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
4085
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
4086
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
4087
#
 
4088
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4089
# Free Software Foundation, Inc.
 
4090
#
 
4091
# This file is part of GNU Libtool:
 
4092
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
4093
#
 
4094
# This program is free software; you can redistribute it and/or modify
 
4095
# it under the terms of the GNU General Public License as published by
 
4096
# the Free Software Foundation; either version 2 of the License, or
 
4097
# (at your option) any later version.
 
4098
#
 
4099
# This program is distributed in the hope that it will be useful, but
 
4100
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
4101
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
4102
# General Public License for more details.
 
4103
#
 
4104
# You should have received a copy of the GNU General Public License
 
4105
# along with this program; if not, write to the Free Software
 
4106
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
4107
#
 
4108
# As a special exception to the GNU General Public License, if you
 
4109
# distribute this file as part of a program that contains a
 
4110
# configuration script generated by Autoconf, you may include it under
 
4111
# the same distribution terms that you use for the rest of that program.
 
4112
 
 
4113
# A sed program that does not truncate output.
 
4114
SED=$lt_SED
 
4115
 
 
4116
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
4117
Xsed="$SED -e 1s/^X//"
 
4118
 
 
4119
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
4120
# if CDPATH is set.
 
4121
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
4122
 
 
4123
# The names of the tagged configurations supported by this script.
 
4124
available_tags=
 
4125
 
 
4126
# ### BEGIN LIBTOOL CONFIG],
 
4127
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
4128
 
 
4129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4130
 
 
4131
# Shell to use when invoking shell scripts.
 
4132
SHELL=$lt_SHELL
 
4133
 
 
4134
# Whether or not to build shared libraries.
 
4135
build_libtool_libs=$enable_shared
 
4136
 
 
4137
# Whether or not to build static libraries.
 
4138
build_old_libs=$enable_static
 
4139
 
 
4140
# Whether or not to add -lc for building shared libraries.
 
4141
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
4142
 
 
4143
# Whether or not to disallow shared libs when runtime libs are static
 
4144
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
4145
 
 
4146
# Whether or not to optimize for fast installation.
 
4147
fast_install=$enable_fast_install
 
4148
 
 
4149
# The host system.
 
4150
host_alias=$host_alias
 
4151
host=$host
 
4152
host_os=$host_os
 
4153
 
 
4154
# The build system.
 
4155
build_alias=$build_alias
 
4156
build=$build
 
4157
build_os=$build_os
 
4158
 
 
4159
# An echo program that does not interpret backslashes.
 
4160
echo=$lt_echo
 
4161
 
 
4162
# The archiver.
 
4163
AR=$lt_AR
 
4164
AR_FLAGS=$lt_AR_FLAGS
 
4165
 
 
4166
# A C compiler.
 
4167
LTCC=$lt_LTCC
 
4168
 
 
4169
# A language-specific compiler.
 
4170
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
4171
 
 
4172
# Is the compiler the GNU C compiler?
 
4173
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
4174
 
 
4175
# An ERE matcher.
 
4176
EGREP=$lt_EGREP
 
4177
 
 
4178
# The linker used to build libraries.
 
4179
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
4180
 
 
4181
# Whether we need hard or soft links.
 
4182
LN_S=$lt_LN_S
 
4183
 
 
4184
# A BSD-compatible nm program.
 
4185
NM=$lt_NM
 
4186
 
 
4187
# A symbol stripping program
 
4188
STRIP=$lt_STRIP
 
4189
 
 
4190
# Used to examine libraries when file_magic_cmd begins "file"
 
4191
MAGIC_CMD=$MAGIC_CMD
 
4192
 
 
4193
# Used on cygwin: DLL creation program.
 
4194
DLLTOOL="$DLLTOOL"
 
4195
 
 
4196
# Used on cygwin: object dumper.
 
4197
OBJDUMP="$OBJDUMP"
 
4198
 
 
4199
# Used on cygwin: assembler.
 
4200
AS="$AS"
 
4201
 
 
4202
# The name of the directory that contains temporary libtool files.
 
4203
objdir=$objdir
 
4204
 
 
4205
# How to create reloadable object files.
 
4206
reload_flag=$lt_reload_flag
 
4207
reload_cmds=$lt_reload_cmds
 
4208
 
 
4209
# How to pass a linker flag through the compiler.
 
4210
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
4211
 
 
4212
# Object file suffix (normally "o").
 
4213
objext="$ac_objext"
 
4214
 
 
4215
# Old archive suffix (normally "a").
 
4216
libext="$libext"
 
4217
 
 
4218
# Shared library suffix (normally ".so").
 
4219
shrext_cmds='$shrext_cmds'
 
4220
 
 
4221
# Executable file suffix (normally "").
 
4222
exeext="$exeext"
 
4223
 
 
4224
# Additional compiler flags for building library objects.
 
4225
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
4226
pic_mode=$pic_mode
 
4227
 
 
4228
# What is the maximum length of a command?
 
4229
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4230
 
 
4231
# Does compiler simultaneously support -c and -o options?
 
4232
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
4233
 
 
4234
# Must we lock files when doing compilation?
 
4235
need_locks=$lt_need_locks
 
4236
 
 
4237
# Do we need the lib prefix for modules?
 
4238
need_lib_prefix=$need_lib_prefix
 
4239
 
 
4240
# Do we need a version for libraries?
 
4241
need_version=$need_version
 
4242
 
 
4243
# Whether dlopen is supported.
 
4244
dlopen_support=$enable_dlopen
 
4245
 
 
4246
# Whether dlopen of programs is supported.
 
4247
dlopen_self=$enable_dlopen_self
 
4248
 
 
4249
# Whether dlopen of statically linked programs is supported.
 
4250
dlopen_self_static=$enable_dlopen_self_static
 
4251
 
 
4252
# Compiler flag to prevent dynamic linking.
 
4253
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
4254
 
 
4255
# Compiler flag to turn off builtin functions.
 
4256
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
4257
 
 
4258
# Compiler flag to allow reflexive dlopens.
 
4259
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
4260
 
 
4261
# Compiler flag to generate shared objects directly from archives.
 
4262
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
4263
 
 
4264
# Compiler flag to generate thread-safe objects.
 
4265
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
4266
 
 
4267
# Library versioning type.
 
4268
version_type=$version_type
 
4269
 
 
4270
# Format of library name prefix.
 
4271
libname_spec=$lt_libname_spec
 
4272
 
 
4273
# List of archive names.  First name is the real one, the rest are links.
 
4274
# The last name is the one that the linker finds with -lNAME.
 
4275
library_names_spec=$lt_library_names_spec
 
4276
 
 
4277
# The coded name of the library, if different from the real name.
 
4278
soname_spec=$lt_soname_spec
 
4279
 
 
4280
# Commands used to build and install an old-style archive.
 
4281
RANLIB=$lt_RANLIB
 
4282
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
4283
old_postinstall_cmds=$lt_old_postinstall_cmds
 
4284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
4285
 
 
4286
# Create an old-style archive from a shared archive.
 
4287
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
4288
 
 
4289
# Create a temporary old-style archive to link instead of a shared archive.
 
4290
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
4291
 
 
4292
# Commands used to build and install a shared archive.
 
4293
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
4294
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
4295
postinstall_cmds=$lt_postinstall_cmds
 
4296
postuninstall_cmds=$lt_postuninstall_cmds
 
4297
 
 
4298
# Commands used to build a loadable module (assumed same as above if empty)
 
4299
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
4300
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
4301
 
 
4302
# Commands to strip libraries.
 
4303
old_striplib=$lt_old_striplib
 
4304
striplib=$lt_striplib
 
4305
 
 
4306
# Dependencies to place before the objects being linked to create a
 
4307
# shared library.
 
4308
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
4309
 
 
4310
# Dependencies to place after the objects being linked to create a
 
4311
# shared library.
 
4312
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
4313
 
 
4314
# Dependencies to place before the objects being linked to create a
 
4315
# shared library.
 
4316
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
4317
 
 
4318
# Dependencies to place after the objects being linked to create a
 
4319
# shared library.
 
4320
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
4321
 
 
4322
# The library search path used internally by the compiler when linking
 
4323
# a shared library.
 
4324
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
4325
 
 
4326
# Method to check whether dependent libraries are shared objects.
 
4327
deplibs_check_method=$lt_deplibs_check_method
 
4328
 
 
4329
# Command to use when deplibs_check_method == file_magic.
 
4330
file_magic_cmd=$lt_file_magic_cmd
 
4331
 
 
4332
# Flag that allows shared libraries with undefined symbols to be built.
 
4333
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
4334
 
 
4335
# Flag that forces no undefined symbols.
 
4336
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
4337
 
 
4338
# Commands used to finish a libtool library installation in a directory.
 
4339
finish_cmds=$lt_finish_cmds
 
4340
 
 
4341
# Same as above, but a single script fragment to be evaled but not shown.
 
4342
finish_eval=$lt_finish_eval
 
4343
 
 
4344
# Take the output of nm and produce a listing of raw symbols and C names.
 
4345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
4346
 
 
4347
# Transform the output of nm in a proper C declaration
 
4348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
4349
 
 
4350
# Transform the output of nm in a C name address pair
 
4351
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
4352
 
 
4353
# This is the shared library runtime path variable.
 
4354
runpath_var=$runpath_var
 
4355
 
 
4356
# This is the shared library path variable.
 
4357
shlibpath_var=$shlibpath_var
 
4358
 
 
4359
# Is shlibpath searched before the hard-coded library search path?
 
4360
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
4361
 
 
4362
# How to hardcode a shared library path into an executable.
 
4363
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
4364
 
 
4365
# Whether we should hardcode library paths into libraries.
 
4366
hardcode_into_libs=$hardcode_into_libs
 
4367
 
 
4368
# Flag to hardcode \$libdir into a binary during linking.
 
4369
# This must work even if \$libdir does not exist.
 
4370
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
4371
 
 
4372
# If ld is used when linking, flag to hardcode \$libdir into
 
4373
# a binary during linking. This must work even if \$libdir does
 
4374
# not exist.
 
4375
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
4376
 
 
4377
# Whether we need a single -rpath flag with a separated argument.
 
4378
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
4379
 
 
4380
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
4381
# resulting binary.
 
4382
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
4383
 
 
4384
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
4385
# resulting binary.
 
4386
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
4387
 
 
4388
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
4389
# the resulting binary.
 
4390
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
4391
 
 
4392
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
4393
# and all subsequent libraries and executables linked against it.
 
4394
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
4395
 
 
4396
# Variables whose values should be saved in libtool wrapper scripts and
 
4397
# restored at relink time.
 
4398
variables_saved_for_relink="$variables_saved_for_relink"
 
4399
 
 
4400
# Whether libtool must link a program against all its dependency libraries.
 
4401
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
4402
 
 
4403
# Compile-time system search path for libraries
 
4404
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
4405
 
 
4406
# Run-time system search path for libraries
 
4407
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
4408
 
 
4409
# Fix the shell variable \$srcfile for the compiler.
 
4410
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4411
 
 
4412
# Set to yes if exported symbols are required.
 
4413
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
4414
 
 
4415
# The commands to list exported symbols.
 
4416
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
4417
 
 
4418
# The commands to extract the exported symbol list from a shared archive.
 
4419
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
4420
 
 
4421
# Symbols that should not be listed in the preloaded symbols.
 
4422
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
4423
 
 
4424
# Symbols that must always be exported.
 
4425
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
4426
 
 
4427
ifelse([$1],[],
 
4428
[# ### END LIBTOOL CONFIG],
 
4429
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
4430
 
 
4431
__EOF__
 
4432
 
 
4433
ifelse([$1],[], [
 
4434
  case $host_os in
 
4435
  aix3*)
 
4436
    cat <<\EOF >> "$cfgfile"
 
4437
 
 
4438
# AIX sometimes has problems with the GCC collect2 program.  For some
 
4439
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
4440
# vanish in a puff of smoke.
 
4441
if test "X${COLLECT_NAMES+set}" != Xset; then
 
4442
  COLLECT_NAMES=
 
4443
  export COLLECT_NAMES
 
4444
fi
 
4445
EOF
 
4446
    ;;
 
4447
  esac
 
4448
 
 
4449
  # We use sed instead of cat because bash on DJGPP gets confused if
 
4450
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
4451
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
4452
  # is reportedly fixed, but why not run on old versions too?
 
4453
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
4454
 
 
4455
  mv -f "$cfgfile" "$ofile" || \
 
4456
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
4457
  chmod +x "$ofile"
 
4458
])
 
4459
else
 
4460
  # If there is no Makefile yet, we rely on a make rule to execute
 
4461
  # `config.status --recheck' to rerun these tests and create the
 
4462
  # libtool script then.
 
4463
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
4464
  if test -f "$ltmain_in"; then
 
4465
    test -f Makefile && make "$ltmain"
 
4466
  fi
 
4467
fi
 
4468
])# AC_LIBTOOL_CONFIG
 
4469
 
 
4470
 
 
4471
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
4472
# -------------------------------------------
 
4473
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
4474
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
4475
 
 
4476
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4477
 
 
4478
if test "$GCC" = yes; then
 
4479
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4480
 
 
4481
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4482
    lt_cv_prog_compiler_rtti_exceptions,
 
4483
    [-fno-rtti -fno-exceptions], [],
 
4484
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4485
fi
 
4486
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
4487
 
 
4488
 
 
4489
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
4490
# ---------------------------------
 
4491
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
4492
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4493
AC_REQUIRE([AC_PROG_NM])
 
4494
AC_REQUIRE([AC_OBJEXT])
 
4495
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4496
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
4497
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
4498
[
 
4499
# These are sane defaults that work on at least a few old systems.
 
4500
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4501
 
 
4502
# Character class describing NM global symbol codes.
 
4503
symcode='[[BCDEGRST]]'
 
4504
 
 
4505
# Regexp to match symbols that can be accessed directly from C.
 
4506
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
4507
 
 
4508
# Transform an extracted symbol line into a proper C declaration
 
4509
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
4510
 
 
4511
# Transform an extracted symbol line into symbol name and symbol address
 
4512
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'"
 
4513
 
 
4514
# Define system-specific variables.
 
4515
case $host_os in
 
4516
aix*)
 
4517
  symcode='[[BCDT]]'
 
4518
  ;;
 
4519
cygwin* | mingw* | pw32*)
 
4520
  symcode='[[ABCDGISTW]]'
 
4521
  ;;
 
4522
hpux*) # Its linker distinguishes data from code symbols
 
4523
  if test "$host_cpu" = ia64; then
 
4524
    symcode='[[ABCDEGRST]]'
 
4525
  fi
 
4526
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4527
  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'"
 
4528
  ;;
 
4529
linux*)
 
4530
  if test "$host_cpu" = ia64; then
 
4531
    symcode='[[ABCDGIRSTW]]'
 
4532
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4533
    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'"
 
4534
  fi
 
4535
  ;;
 
4536
irix* | nonstopux*)
 
4537
  symcode='[[BCDEGRST]]'
 
4538
  ;;
 
4539
osf*)
 
4540
  symcode='[[BCDEGQRST]]'
 
4541
  ;;
 
4542
solaris* | sysv5*)
 
4543
  symcode='[[BDRT]]'
 
4544
  ;;
 
4545
sysv4)
 
4546
  symcode='[[DFNSTU]]'
 
4547
  ;;
 
4548
esac
 
4549
 
 
4550
# Handle CRLF in mingw tool chain
 
4551
opt_cr=
 
4552
case $build_os in
 
4553
mingw*)
 
4554
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4555
  ;;
 
4556
esac
 
4557
 
 
4558
# If we're using GNU nm, then use its standard symbol codes.
 
4559
case `$NM -V 2>&1` in
 
4560
*GNU* | *'with BFD'*)
 
4561
  symcode='[[ABCDGIRSTW]]' ;;
 
4562
esac
 
4563
 
 
4564
# Try without a prefix undercore, then with it.
 
4565
for ac_symprfx in "" "_"; do
 
4566
 
 
4567
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4568
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4569
 
 
4570
  # Write the raw and C identifiers.
 
4571
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4572
 
 
4573
  # Check to see that the pipe works correctly.
 
4574
  pipe_works=no
 
4575
 
 
4576
  rm -f conftest*
 
4577
  cat > conftest.$ac_ext <<EOF
 
4578
#ifdef __cplusplus
 
4579
extern "C" {
 
4580
#endif
 
4581
char nm_test_var;
 
4582
void nm_test_func(){}
 
4583
#ifdef __cplusplus
 
4584
}
 
4585
#endif
 
4586
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4587
EOF
 
4588
 
 
4589
  if AC_TRY_EVAL(ac_compile); then
 
4590
    # Now try to grab the symbols.
 
4591
    nlist=conftest.nm
 
4592
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
4593
      # Try sorting and uniquifying the output.
 
4594
      if sort "$nlist" | uniq > "$nlist"T; then
 
4595
        mv -f "$nlist"T "$nlist"
 
4596
      else
 
4597
        rm -f "$nlist"T
 
4598
      fi
 
4599
 
 
4600
      # Make sure that we snagged all the symbols we need.
 
4601
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
4602
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
4603
          cat <<EOF > conftest.$ac_ext
 
4604
#ifdef __cplusplus
 
4605
extern "C" {
 
4606
#endif
 
4607
 
 
4608
EOF
 
4609
          # Now generate the symbol file.
 
4610
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
4611
 
 
4612
          cat <<EOF >> conftest.$ac_ext
 
4613
#if defined (__STDC__) && __STDC__
 
4614
# define lt_ptr_t void *
 
4615
#else
 
4616
# define lt_ptr_t char *
 
4617
# define const
 
4618
#endif
 
4619
 
 
4620
/* The mapping between symbol names and symbols. */
 
4621
const struct {
 
4622
  const char *name;
 
4623
  lt_ptr_t address;
 
4624
}
 
4625
lt_preloaded_symbols[[]] =
 
4626
{
 
4627
EOF
 
4628
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
4629
          cat <<\EOF >> conftest.$ac_ext
 
4630
  {0, (lt_ptr_t) 0}
 
4631
};
 
4632
 
 
4633
#ifdef __cplusplus
 
4634
}
 
4635
#endif
 
4636
EOF
 
4637
          # Now try linking the two files.
 
4638
          mv conftest.$ac_objext conftstm.$ac_objext
 
4639
          lt_save_LIBS="$LIBS"
 
4640
          lt_save_CFLAGS="$CFLAGS"
 
4641
          LIBS="conftstm.$ac_objext"
 
4642
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4643
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
4644
            pipe_works=yes
 
4645
          fi
 
4646
          LIBS="$lt_save_LIBS"
 
4647
          CFLAGS="$lt_save_CFLAGS"
 
4648
        else
 
4649
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
4650
        fi
 
4651
      else
 
4652
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
4653
      fi
 
4654
    else
 
4655
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
4656
    fi
 
4657
  else
 
4658
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
4659
    cat conftest.$ac_ext >&5
 
4660
  fi
 
4661
  rm -f conftest* conftst*
 
4662
 
 
4663
  # Do not use the global_symbol_pipe unless it works.
 
4664
  if test "$pipe_works" = yes; then
 
4665
    break
 
4666
  else
 
4667
    lt_cv_sys_global_symbol_pipe=
 
4668
  fi
 
4669
done
 
4670
])
 
4671
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4672
  lt_cv_sys_global_symbol_to_cdecl=
 
4673
fi
 
4674
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
4675
  AC_MSG_RESULT(failed)
 
4676
else
 
4677
  AC_MSG_RESULT(ok)
 
4678
fi
 
4679
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
4680
 
 
4681
 
 
4682
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
4683
# ---------------------------------------
 
4684
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
4685
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
4686
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4687
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4688
 
 
4689
AC_MSG_CHECKING([for $compiler option to produce PIC])
 
4690
 ifelse([$1],[CXX],[
 
4691
  # C++ specific cases for pic, static, wl, etc.
 
4692
  if test "$GXX" = yes; then
 
4693
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4694
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4695
 
 
4696
    case $host_os in
 
4697
    aix*)
 
4698
      # All AIX code is PIC.
 
4699
      if test "$host_cpu" = ia64; then
 
4700
        # AIX 5 now supports IA64 processor
 
4701
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4702
      fi
 
4703
      ;;
 
4704
    amigaos*)
 
4705
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4706
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4707
      # like `-m68040'.
 
4708
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4709
      ;;
 
4710
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4711
      # PIC is the default for these OSes.
 
4712
      ;;
 
4713
    mingw* | os2* | pw32*)
 
4714
      # This hack is so that the source file can tell whether it is being
 
4715
      # built for inclusion in a dll (and should export symbols for example).
 
4716
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4717
      ;;
 
4718
    darwin* | rhapsody*)
 
4719
      # PIC is the default on this platform
 
4720
      # Common symbols not allowed in MH_DYLIB files
 
4721
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4722
      ;;
 
4723
    *djgpp*)
 
4724
      # DJGPP does not support shared libraries at all
 
4725
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4726
      ;;
 
4727
    sysv4*MP*)
 
4728
      if test -d /usr/nec; then
 
4729
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4730
      fi
 
4731
      ;;
 
4732
    hpux*)
 
4733
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
4734
      # not for PA HP-UX.
 
4735
      case $host_cpu in
 
4736
      hppa*64*|ia64*)
 
4737
        ;;
 
4738
      *)
 
4739
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4740
        ;;
 
4741
      esac
 
4742
      ;;
 
4743
    *)
 
4744
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4745
      ;;
 
4746
    esac
 
4747
  else
 
4748
    case $host_os in
 
4749
      aix4* | aix5*)
 
4750
        # All AIX code is PIC.
 
4751
        if test "$host_cpu" = ia64; then
 
4752
          # AIX 5 now supports IA64 processor
 
4753
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4754
        else
 
4755
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4756
        fi
 
4757
        ;;
 
4758
      chorus*)
 
4759
        case $cc_basename in
 
4760
        cxch68*)
 
4761
          # Green Hills C++ Compiler
 
4762
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
 
4763
          ;;
 
4764
        esac
 
4765
        ;;
 
4766
       darwin*)
 
4767
         # PIC is the default on this platform
 
4768
         # Common symbols not allowed in MH_DYLIB files
 
4769
         case $cc_basename in
 
4770
           xlc*)
 
4771
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4772
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4773
           ;;
 
4774
         esac
 
4775
       ;;
 
4776
      dgux*)
 
4777
        case $cc_basename in
 
4778
          ec++*)
 
4779
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4780
            ;;
 
4781
          ghcx*)
 
4782
            # Green Hills C++ Compiler
 
4783
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4784
            ;;
 
4785
          *)
 
4786
            ;;
 
4787
        esac
 
4788
        ;;
 
4789
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4790
        # FreeBSD uses GNU C++
 
4791
        ;;
 
4792
      hpux9* | hpux10* | hpux11*)
 
4793
        case $cc_basename in
 
4794
          CC*)
 
4795
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4796
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4797
            if test "$host_cpu" != ia64; then
 
4798
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4799
            fi
 
4800
            ;;
 
4801
          aCC*)
 
4802
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4803
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4804
            case $host_cpu in
 
4805
            hppa*64*|ia64*)
 
4806
              # +Z the default
 
4807
              ;;
 
4808
            *)
 
4809
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4810
              ;;
 
4811
            esac
 
4812
            ;;
 
4813
          *)
 
4814
            ;;
 
4815
        esac
 
4816
        ;;
 
4817
      irix5* | irix6* | nonstopux*)
 
4818
        case $cc_basename in
 
4819
          CC*)
 
4820
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4821
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4822
            # CC pic flag -KPIC is the default.
 
4823
            ;;
 
4824
          *)
 
4825
            ;;
 
4826
        esac
 
4827
        ;;
 
4828
      linux*)
 
4829
        case $cc_basename in
 
4830
          KCC*)
 
4831
            # KAI C++ Compiler
 
4832
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4833
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4834
            ;;
 
4835
          icpc* | ecpc*)
 
4836
            # Intel C++
 
4837
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4838
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4839
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4840
            ;;
 
4841
          pgCC*)
 
4842
            # Portland Group C++ compiler.
 
4843
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4844
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4845
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4846
            ;;
 
4847
          cxx*)
 
4848
            # Compaq C++
 
4849
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
4850
            # Linux and Compaq Tru64 Unix objects are PIC.
 
4851
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4852
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4853
            ;;
 
4854
          *)
 
4855
            ;;
 
4856
        esac
 
4857
        ;;
 
4858
      lynxos*)
 
4859
        ;;
 
4860
      m88k*)
 
4861
        ;;
 
4862
      mvs*)
 
4863
        case $cc_basename in
 
4864
          cxx*)
 
4865
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4866
            ;;
 
4867
          *)
 
4868
            ;;
 
4869
        esac
 
4870
        ;;
 
4871
      netbsd*)
 
4872
        ;;
 
4873
      osf3* | osf4* | osf5*)
 
4874
        case $cc_basename in
 
4875
          KCC*)
 
4876
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4877
            ;;
 
4878
          RCC*)
 
4879
            # Rational C++ 2.4.1
 
4880
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4881
            ;;
 
4882
          cxx*)
 
4883
            # Digital/Compaq C++
 
4884
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4885
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
4886
            # Linux and Compaq Tru64 Unix objects are PIC.
 
4887
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4888
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4889
            ;;
 
4890
          *)
 
4891
            ;;
 
4892
        esac
 
4893
        ;;
 
4894
      psos*)
 
4895
        ;;
 
4896
      sco*)
 
4897
        case $cc_basename in
 
4898
          CC*)
 
4899
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4900
            ;;
 
4901
          *)
 
4902
            ;;
 
4903
        esac
 
4904
        ;;
 
4905
      solaris*)
 
4906
        case $cc_basename in
 
4907
          CC*)
 
4908
            # Sun C++ 4.2, 5.x and Centerline C++
 
4909
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4910
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4911
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4912
            ;;
 
4913
          gcx*)
 
4914
            # Green Hills C++ Compiler
 
4915
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4916
            ;;
 
4917
          *)
 
4918
            ;;
 
4919
        esac
 
4920
        ;;
 
4921
      sunos4*)
 
4922
        case $cc_basename in
 
4923
          CC*)
 
4924
            # Sun C++ 4.x
 
4925
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4926
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4927
            ;;
 
4928
          lcc*)
 
4929
            # Lucid
 
4930
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4931
            ;;
 
4932
          *)
 
4933
            ;;
 
4934
        esac
 
4935
        ;;
 
4936
      tandem*)
 
4937
        case $cc_basename in
 
4938
          NCC*)
 
4939
            # NonStop-UX NCC 3.20
 
4940
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4941
            ;;
 
4942
          *)
 
4943
            ;;
 
4944
        esac
 
4945
        ;;
 
4946
      unixware*)
 
4947
        ;;
 
4948
      vxworks*)
 
4949
        ;;
 
4950
      *)
 
4951
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4952
        ;;
 
4953
    esac
 
4954
  fi
 
4955
],
 
4956
[
 
4957
  if test "$GCC" = yes; then
 
4958
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4959
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4960
 
 
4961
    case $host_os in
 
4962
      aix*)
 
4963
      # All AIX code is PIC.
 
4964
      if test "$host_cpu" = ia64; then
 
4965
        # AIX 5 now supports IA64 processor
 
4966
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4967
      fi
 
4968
      ;;
 
4969
 
 
4970
    amigaos*)
 
4971
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4972
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4973
      # like `-m68040'.
 
4974
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4975
      ;;
 
4976
 
 
4977
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4978
      # PIC is the default for these OSes.
 
4979
      ;;
 
4980
 
 
4981
    mingw* | pw32* | os2*)
 
4982
      # This hack is so that the source file can tell whether it is being
 
4983
      # built for inclusion in a dll (and should export symbols for example).
 
4984
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4985
      ;;
 
4986
 
 
4987
    darwin* | rhapsody*)
 
4988
      # PIC is the default on this platform
 
4989
      # Common symbols not allowed in MH_DYLIB files
 
4990
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4991
      ;;
 
4992
 
 
4993
    msdosdjgpp*)
 
4994
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
4995
      # on systems that don't support them.
 
4996
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4997
      enable_shared=no
 
4998
      ;;
 
4999
 
 
5000
    sysv4*MP*)
 
5001
      if test -d /usr/nec; then
 
5002
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5003
      fi
 
5004
      ;;
 
5005
 
 
5006
    hpux*)
 
5007
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5008
      # not for PA HP-UX.
 
5009
      case $host_cpu in
 
5010
      hppa*64*|ia64*)
 
5011
        # +Z the default
 
5012
        ;;
 
5013
      *)
 
5014
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5015
        ;;
 
5016
      esac
 
5017
      ;;
 
5018
 
 
5019
    *)
 
5020
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5021
      ;;
 
5022
    esac
 
5023
  else
 
5024
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5025
    case $host_os in
 
5026
    aix*)
 
5027
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5028
      if test "$host_cpu" = ia64; then
 
5029
        # AIX 5 now supports IA64 processor
 
5030
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5031
      else
 
5032
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5033
      fi
 
5034
      ;;
 
5035
      darwin*)
 
5036
        # PIC is the default on this platform
 
5037
        # Common symbols not allowed in MH_DYLIB files
 
5038
       case $cc_basename in
 
5039
         xlc*)
 
5040
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5041
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5042
         ;;
 
5043
       esac
 
5044
       ;;
 
5045
 
 
5046
    mingw* | pw32* | os2*)
 
5047
      # This hack is so that the source file can tell whether it is being
 
5048
      # built for inclusion in a dll (and should export symbols for example).
 
5049
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5050
      ;;
 
5051
 
 
5052
    hpux9* | hpux10* | hpux11*)
 
5053
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5054
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5055
      # not for PA HP-UX.
 
5056
      case $host_cpu in
 
5057
      hppa*64*|ia64*)
 
5058
        # +Z the default
 
5059
        ;;
 
5060
      *)
 
5061
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5062
        ;;
 
5063
      esac
 
5064
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5065
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5066
      ;;
 
5067
 
 
5068
    irix5* | irix6* | nonstopux*)
 
5069
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5070
      # PIC (with -KPIC) is the default.
 
5071
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5072
      ;;
 
5073
 
 
5074
    newsos6)
 
5075
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5076
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5077
      ;;
 
5078
 
 
5079
    linux*)
 
5080
      case $cc_basename in
 
5081
      icc* | ecc*)
 
5082
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5083
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5084
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5085
        ;;
 
5086
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5087
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5088
        # which looks to be a dead project)
 
5089
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5090
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5091
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5092
        ;;
 
5093
      ccc*)
 
5094
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5095
        # All Alpha code is PIC.
 
5096
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5097
        ;;
 
5098
      esac
 
5099
      ;;
 
5100
 
 
5101
    osf3* | osf4* | osf5*)
 
5102
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5103
      # All OSF/1 code is PIC.
 
5104
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5105
      ;;
 
5106
 
 
5107
    sco3.2v5*)
 
5108
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
5109
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5110
      ;;
 
5111
 
 
5112
    solaris*)
 
5113
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5114
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5115
      case $cc_basename in
 
5116
      f77* | f90* | f95*)
 
5117
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5118
      *)
 
5119
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5120
      esac
 
5121
      ;;
 
5122
 
 
5123
    sunos4*)
 
5124
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5125
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5126
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5127
      ;;
 
5128
 
 
5129
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5130
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5131
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5132
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5133
      ;;
 
5134
 
 
5135
    sysv4*MP*)
 
5136
      if test -d /usr/nec ;then
 
5137
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5138
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5139
      fi
 
5140
      ;;
 
5141
 
 
5142
    unicos*)
 
5143
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5144
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5145
      ;;
 
5146
 
 
5147
    uts4*)
 
5148
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5149
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5150
      ;;
 
5151
 
 
5152
    *)
 
5153
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5154
      ;;
 
5155
    esac
 
5156
  fi
 
5157
])
 
5158
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5159
 
 
5160
#
 
5161
# Check to make sure the PIC flag actually works.
 
5162
#
 
5163
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5164
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5165
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5166
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
5167
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5168
     "" | " "*) ;;
 
5169
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5170
     esac],
 
5171
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5172
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5173
fi
 
5174
case $host_os in
 
5175
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5176
  *djgpp*)
 
5177
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5178
    ;;
 
5179
  *)
 
5180
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
5181
    ;;
 
5182
esac
 
5183
])
 
5184
 
 
5185
 
 
5186
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
5187
# ------------------------------------
 
5188
# See if the linker supports building shared libraries.
 
5189
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
5190
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5191
ifelse([$1],[CXX],[
 
5192
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5193
  case $host_os in
 
5194
  aix4* | aix5*)
 
5195
    # If we're using GNU nm, then we don't want the "-C" option.
 
5196
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5197
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
5198
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5199
    else
 
5200
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5201
    fi
 
5202
    ;;
 
5203
  pw32*)
 
5204
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5205
  ;;
 
5206
  cygwin* | mingw*)
 
5207
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5208
  ;;
 
5209
  *)
 
5210
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5211
  ;;
 
5212
  esac
 
5213
],[
 
5214
  runpath_var=
 
5215
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
5216
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5217
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
5218
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
5219
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
5220
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5221
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5222
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5223
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
5224
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5225
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5226
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5227
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5228
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5229
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5230
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5231
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5232
  _LT_AC_TAGVAR(module_cmds, $1)=
 
5233
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
5234
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5235
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5236
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5237
  # included in the symbol list
 
5238
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5239
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5240
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5241
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5242
  # as well as any symbol that contains `d'.
 
5243
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5244
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5245
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
5246
  # the symbol is explicitly referenced.  Since portable code cannot
 
5247
  # rely on this symbol name, it's probably fine to never include it in
 
5248
  # preloaded symbol tables.
 
5249
  extract_expsyms_cmds=
 
5250
  # Just being paranoid about ensuring that cc_basename is set.
 
5251
  _LT_CC_BASENAME([$compiler])
 
5252
  case $host_os in
 
5253
  cygwin* | mingw* | pw32*)
 
5254
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5255
    # When not using gcc, we currently assume that we are using
 
5256
    # Microsoft Visual C++.
 
5257
    if test "$GCC" != yes; then
 
5258
      with_gnu_ld=no
 
5259
    fi
 
5260
    ;;
 
5261
  openbsd*)
 
5262
    with_gnu_ld=no
 
5263
    ;;
 
5264
  esac
 
5265
 
 
5266
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5267
  if test "$with_gnu_ld" = yes; then
 
5268
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
5269
    wlarc='${wl}'
 
5270
 
 
5271
    # Set some defaults for GNU ld with shared library support. These
 
5272
    # are reset later if shared libraries are not supported. Putting them
 
5273
    # here allows them to be overridden if necessary.
 
5274
    runpath_var=LD_RUN_PATH
 
5275
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5276
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5277
    # ancient GNU ld didn't support --whole-archive et. al.
 
5278
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5279
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5280
      else
 
5281
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5282
    fi
 
5283
    supports_anon_versioning=no
 
5284
    case `$LD -v 2>/dev/null` in
 
5285
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5286
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5287
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5288
      *\ 2.11.*) ;; # other 2.11 versions
 
5289
      *) supports_anon_versioning=yes ;;
 
5290
    esac
 
5291
 
 
5292
    # See if GNU ld supports shared libraries.
 
5293
    case $host_os in
 
5294
    aix3* | aix4* | aix5*)
 
5295
      # On AIX/PPC, the GNU linker is very broken
 
5296
      if test "$host_cpu" != ia64; then
 
5297
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5298
        cat <<EOF 1>&2
 
5299
 
 
5300
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5301
*** to be unable to reliably create shared libraries on AIX.
 
5302
*** Therefore, libtool is disabling shared libraries support.  If you
 
5303
*** really care for shared libraries, you may want to modify your PATH
 
5304
*** so that a non-GNU linker is found, and then restart.
 
5305
 
 
5306
EOF
 
5307
      fi
 
5308
      ;;
 
5309
 
 
5310
    amigaos*)
 
5311
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
 
5312
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5313
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5314
 
 
5315
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5316
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
5317
      # to version 4, is to share data among multiple programs linked
 
5318
      # with the same dynamic library.  Since this doesn't match the
 
5319
      # behavior of shared libraries on other platforms, we can't use
 
5320
      # them.
 
5321
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5322
      ;;
 
5323
 
 
5324
    beos*)
 
5325
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5326
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5327
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5328
        # support --undefined.  This deserves some investigation.  FIXME
 
5329
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5330
      else
 
5331
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5332
      fi
 
5333
      ;;
 
5334
 
 
5335
    cygwin* | mingw* | pw32*)
 
5336
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5337
      # as there is no search path for DLLs.
 
5338
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5339
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5340
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5341
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5342
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5343
 
 
5344
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
5345
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5346
        # If the export-symbols file already is a .def file (1st line
 
5347
        # is EXPORTS), use it as is; otherwise, prepend...
 
5348
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5349
          cp $export_symbols $output_objdir/$soname.def;
 
5350
        else
 
5351
          echo EXPORTS > $output_objdir/$soname.def;
 
5352
          cat $export_symbols >> $output_objdir/$soname.def;
 
5353
        fi~
 
5354
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5355
      else
 
5356
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5357
      fi
 
5358
      ;;
 
5359
 
 
5360
    linux*)
 
5361
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5362
        tmp_addflag=
 
5363
        case $cc_basename,$host_cpu in
 
5364
        pgcc*)                          # Portland Group C compiler
 
5365
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5366
          tmp_addflag=' $pic_flag'
 
5367
          ;;
 
5368
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5369
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5370
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5371
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5372
          tmp_addflag=' -i_dynamic' ;;
 
5373
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5374
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5375
        ifc* | ifort*)                  # Intel Fortran compiler
 
5376
          tmp_addflag=' -nofor_main' ;;
 
5377
        esac
 
5378
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5379
 
 
5380
        if test $supports_anon_versioning = yes; then
 
5381
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5382
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5383
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5384
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5385
        fi
 
5386
      else
 
5387
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5388
      fi
 
5389
      ;;
 
5390
 
 
5391
    netbsd*)
 
5392
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5393
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5394
        wlarc=
 
5395
      else
 
5396
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5397
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5398
      fi
 
5399
      ;;
 
5400
 
 
5401
    solaris* | sysv5*)
 
5402
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
5403
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5404
        cat <<EOF 1>&2
 
5405
 
 
5406
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5407
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5408
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5409
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5410
*** your PATH or compiler configuration so that the native linker is
 
5411
*** used, and then restart.
 
5412
 
 
5413
EOF
 
5414
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5415
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5416
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5417
      else
 
5418
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5419
      fi
 
5420
      ;;
 
5421
 
 
5422
    sunos4*)
 
5423
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5424
      wlarc=
 
5425
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5426
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5427
      ;;
 
5428
 
 
5429
    *)
 
5430
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5431
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5432
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5433
      else
 
5434
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5435
      fi
 
5436
      ;;
 
5437
    esac
 
5438
 
 
5439
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5440
      runpath_var=
 
5441
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5442
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5443
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5444
    fi
 
5445
  else
 
5446
    # PORTME fill in a description of your system's linker (not GNU ld)
 
5447
    case $host_os in
 
5448
    aix3*)
 
5449
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5450
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5451
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
5452
      # Note: this linker hardcodes the directories in LIBPATH if there
 
5453
      # are no directories specified by -L.
 
5454
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5455
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5456
        # Neither direct hardcoding nor static linking is supported with a
 
5457
        # broken collect2.
 
5458
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5459
      fi
 
5460
      ;;
 
5461
 
 
5462
    aix4* | aix5*)
 
5463
      if test "$host_cpu" = ia64; then
 
5464
        # On IA64, the linker does run time linking by default, so we don't
 
5465
        # have to do anything special.
 
5466
        aix_use_runtimelinking=no
 
5467
        exp_sym_flag='-Bexport'
 
5468
        no_entry_flag=""
 
5469
      else
 
5470
        # If we're using GNU nm, then we don't want the "-C" option.
 
5471
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5472
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
5473
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5474
        else
 
5475
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5476
        fi
 
5477
        aix_use_runtimelinking=no
 
5478
 
 
5479
        # Test if we are trying to use run time linking or normal
 
5480
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5481
        # need to do runtime linking.
 
5482
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5483
          for ld_flag in $LDFLAGS; do
 
5484
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5485
            aix_use_runtimelinking=yes
 
5486
            break
 
5487
          fi
 
5488
          done
 
5489
        esac
 
5490
 
 
5491
        exp_sym_flag='-bexport'
 
5492
        no_entry_flag='-bnoentry'
 
5493
      fi
 
5494
 
 
5495
      # When large executables or shared objects are built, AIX ld can
 
5496
      # have problems creating the table of contents.  If linking a library
 
5497
      # or program results in "error TOC overflow" add -mminimal-toc to
 
5498
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5499
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5500
 
 
5501
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
5502
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5503
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5504
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5505
 
 
5506
      if test "$GCC" = yes; then
 
5507
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5508
        # We only want to do this on AIX 4.2 and lower, the check
 
5509
        # below for broken collect2 doesn't work under 4.3+
 
5510
          collect2name=`${CC} -print-prog-name=collect2`
 
5511
          if test -f "$collect2name" && \
 
5512
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5513
          then
 
5514
          # We have reworked collect2
 
5515
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5516
          else
 
5517
          # We have old collect2
 
5518
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5519
          # It fails to find uninstalled libraries when the uninstalled
 
5520
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5521
          # to unsupported forces relinking
 
5522
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5523
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5524
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5525
          fi
 
5526
        esac
 
5527
        shared_flag='-shared'
 
5528
        if test "$aix_use_runtimelinking" = yes; then
 
5529
          shared_flag="$shared_flag "'${wl}-G'
 
5530
        fi
 
5531
      else
 
5532
        # not using gcc
 
5533
        if test "$host_cpu" = ia64; then
 
5534
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5535
        # chokes on -Wl,-G. The following line is correct:
 
5536
          shared_flag='-G'
 
5537
        else
 
5538
        if test "$aix_use_runtimelinking" = yes; then
 
5539
            shared_flag='${wl}-G'
 
5540
          else
 
5541
            shared_flag='${wl}-bM:SRE'
 
5542
        fi
 
5543
        fi
 
5544
      fi
 
5545
 
 
5546
      # It seems that -bexpall does not export symbols beginning with
 
5547
      # underscore (_), so it is better to generate a list of symbols to export.
 
5548
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5549
      if test "$aix_use_runtimelinking" = yes; then
 
5550
        # Warning - without using the other runtime loading flags (-brtl),
 
5551
        # -berok will link without error, but may produce a broken library.
 
5552
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5553
       # Determine the default libpath from the value encoded in an empty executable.
 
5554
       _LT_AC_SYS_LIBPATH_AIX
 
5555
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5556
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
 
5557
       else
 
5558
        if test "$host_cpu" = ia64; then
 
5559
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5560
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5561
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
 
5562
        else
 
5563
         # Determine the default libpath from the value encoded in an empty executable.
 
5564
         _LT_AC_SYS_LIBPATH_AIX
 
5565
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5566
          # Warning - without using the other run time loading flags,
 
5567
          # -berok will link without error, but may produce a broken library.
 
5568
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5569
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5570
          # -bexpall does not export symbols beginning with underscore (_)
 
5571
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5572
          # Exported symbols can be pulled into shared objects from archives
 
5573
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5574
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5575
          # This is similar to how AIX traditionally builds its shared libraries.
 
5576
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
 
5577
        fi
 
5578
      fi
 
5579
      ;;
 
5580
 
 
5581
    amigaos*)
 
5582
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
 
5583
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5584
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5585
      # see comment about different semantics on the GNU ld section
 
5586
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5587
      ;;
 
5588
 
 
5589
    bsdi[[45]]*)
 
5590
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5591
      ;;
 
5592
 
 
5593
    cygwin* | mingw* | pw32*)
 
5594
      # When not using gcc, we currently assume that we are using
 
5595
      # Microsoft Visual C++.
 
5596
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5597
      # no search path for DLLs.
 
5598
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5599
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5600
      # Tell ltmain to make .lib files, not .a files.
 
5601
      libext=lib
 
5602
      # Tell ltmain to make .dll files, not .so files.
 
5603
      shrext_cmds=".dll"
 
5604
      # FIXME: Setting linknames here is a bad hack.
 
5605
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5606
      # The linker will automatically build a .lib file if we build a DLL.
 
5607
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5608
      # FIXME: Should let the user specify the lib program.
 
5609
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5610
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5611
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5612
      ;;
 
5613
 
 
5614
    darwin* | rhapsody*)
 
5615
      case $host_os in
 
5616
        rhapsody* | darwin1.[[012]])
 
5617
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5618
         ;;
 
5619
       *) # Darwin 1.3 on
 
5620
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5621
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5622
         else
 
5623
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5624
             10.[[012]])
 
5625
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5626
               ;;
 
5627
             10.*)
 
5628
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5629
               ;;
 
5630
           esac
 
5631
         fi
 
5632
         ;;
 
5633
      esac
 
5634
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5635
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5636
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5637
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5638
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5639
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5640
    if test "$GCC" = yes ; then
 
5641
        output_verbose_link_cmd='echo'
 
5642
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5643
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5644
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5645
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
 
5646
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
5647
    else
 
5648
      case $cc_basename in
 
5649
        xlc*)
 
5650
         output_verbose_link_cmd='echo'
 
5651
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
5652
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5653
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5654
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5655
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
5656
          ;;
 
5657
       *)
 
5658
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5659
          ;;
 
5660
      esac
 
5661
    fi
 
5662
      ;;
 
5663
 
 
5664
    dgux*)
 
5665
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5666
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5667
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5668
      ;;
 
5669
 
 
5670
    freebsd1*)
 
5671
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5672
      ;;
 
5673
 
 
5674
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5675
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5676
    # does not break anything, and helps significantly (at the cost of a little
 
5677
    # extra space).
 
5678
    freebsd2.2*)
 
5679
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5680
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5681
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5682
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5683
      ;;
 
5684
 
 
5685
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5686
    freebsd2*)
 
5687
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5688
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5689
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5690
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5691
      ;;
 
5692
 
 
5693
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5694
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5695
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5696
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5697
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5698
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5699
      ;;
 
5700
 
 
5701
    hpux9*)
 
5702
      if test "$GCC" = yes; then
 
5703
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5704
      else
 
5705
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5706
      fi
 
5707
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5708
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5709
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5710
 
 
5711
      # hardcode_minus_L: Not really in the search PATH,
 
5712
      # but as the default location of the library.
 
5713
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5714
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5715
      ;;
 
5716
 
 
5717
    hpux10* | hpux11*)
 
5718
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5719
        case $host_cpu in
 
5720
        hppa*64*|ia64*)
 
5721
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5722
          ;;
 
5723
        *)
 
5724
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5725
          ;;
 
5726
        esac
 
5727
      else
 
5728
        case $host_cpu in
 
5729
        hppa*64*|ia64*)
 
5730
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5731
          ;;
 
5732
        *)
 
5733
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5734
          ;;
 
5735
        esac
 
5736
      fi
 
5737
      if test "$with_gnu_ld" = no; then
 
5738
        case $host_cpu in
 
5739
        hppa*64*)
 
5740
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5741
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5742
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5743
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5744
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5745
          ;;
 
5746
        ia64*)
 
5747
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5748
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5749
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5750
 
 
5751
          # hardcode_minus_L: Not really in the search PATH,
 
5752
          # but as the default location of the library.
 
5753
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5754
          ;;
 
5755
        *)
 
5756
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5757
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5758
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5759
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5760
 
 
5761
          # hardcode_minus_L: Not really in the search PATH,
 
5762
          # but as the default location of the library.
 
5763
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5764
          ;;
 
5765
        esac
 
5766
      fi
 
5767
      ;;
 
5768
 
 
5769
    irix5* | irix6* | nonstopux*)
 
5770
      if test "$GCC" = yes; then
 
5771
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5772
      else
 
5773
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5774
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5775
      fi
 
5776
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5777
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5778
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5779
      ;;
 
5780
 
 
5781
    netbsd*)
 
5782
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5783
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5784
      else
 
5785
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5786
      fi
 
5787
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5788
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5789
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5790
      ;;
 
5791
 
 
5792
    newsos6)
 
5793
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5794
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5795
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5796
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5797
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5798
      ;;
 
5799
 
 
5800
    openbsd*)
 
5801
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5802
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5803
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5804
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5805
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5806
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5807
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5808
      else
 
5809
       case $host_os in
 
5810
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
5811
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5812
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5813
           ;;
 
5814
         *)
 
5815
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5816
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5817
           ;;
 
5818
       esac
 
5819
      fi
 
5820
      ;;
 
5821
 
 
5822
    os2*)
 
5823
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5824
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5825
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5826
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5827
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5828
      ;;
 
5829
 
 
5830
    osf3*)
 
5831
      if test "$GCC" = yes; then
 
5832
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5833
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5834
      else
 
5835
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5836
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5837
      fi
 
5838
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5839
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5840
      ;;
 
5841
 
 
5842
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
5843
      if test "$GCC" = yes; then
 
5844
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5845
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5846
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5847
      else
 
5848
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5849
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
5850
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
5851
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5852
 
 
5853
        # Both c and cxx compiler support -rpath directly
 
5854
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5855
      fi
 
5856
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5857
      ;;
 
5858
 
 
5859
    sco3.2v5*)
 
5860
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5861
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5862
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5863
      runpath_var=LD_RUN_PATH
 
5864
      hardcode_runpath_var=yes
 
5865
      ;;
 
5866
 
 
5867
    solaris*)
 
5868
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5869
      if test "$GCC" = yes; then
 
5870
        wlarc='${wl}'
 
5871
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5872
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5873
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5874
      else
 
5875
        wlarc=''
 
5876
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5877
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5878
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5879
      fi
 
5880
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5881
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5882
      case $host_os in
 
5883
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
5884
      *)
 
5885
        # The compiler driver will combine linker options so we
 
5886
        # cannot just pass the convience library names through
 
5887
        # without $wl, iff we do not link with $LD.
 
5888
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
5889
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5890
        case $wlarc in
 
5891
        '')
 
5892
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5893
        *)
 
5894
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
5895
        esac ;;
 
5896
      esac
 
5897
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5898
      ;;
 
5899
 
 
5900
    sunos4*)
 
5901
      if test "x$host_vendor" = xsequent; then
 
5902
        # Use $CC to link under sequent, because it throws in some extra .o
 
5903
        # files that make .init and .fini sections work.
 
5904
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5905
      else
 
5906
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5907
      fi
 
5908
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5909
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5910
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5911
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5912
      ;;
 
5913
 
 
5914
    sysv4)
 
5915
      case $host_vendor in
 
5916
        sni)
 
5917
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5918
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5919
        ;;
 
5920
        siemens)
 
5921
          ## LD is ld it makes a PLAMLIB
 
5922
          ## CC just makes a GrossModule.
 
5923
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5924
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5925
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5926
        ;;
 
5927
        motorola)
 
5928
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5929
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5930
        ;;
 
5931
      esac
 
5932
      runpath_var='LD_RUN_PATH'
 
5933
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5934
      ;;
 
5935
 
 
5936
    sysv4.3*)
 
5937
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5938
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5939
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5940
      ;;
 
5941
 
 
5942
    sysv4*MP*)
 
5943
      if test -d /usr/nec; then
 
5944
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5945
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5946
        runpath_var=LD_RUN_PATH
 
5947
        hardcode_runpath_var=yes
 
5948
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5949
      fi
 
5950
      ;;
 
5951
 
 
5952
    sysv4.2uw2*)
 
5953
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5954
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5955
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5956
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5957
      hardcode_runpath_var=yes
 
5958
      runpath_var=LD_RUN_PATH
 
5959
      ;;
 
5960
 
 
5961
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
5962
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
5963
      if test "$GCC" = yes; then
 
5964
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5965
      else
 
5966
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5967
      fi
 
5968
      runpath_var='LD_RUN_PATH'
 
5969
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5970
      ;;
 
5971
 
 
5972
    sysv5*)
 
5973
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5974
      # $CC -shared without GNU ld will not create a library from C++
 
5975
      # object files and a static libstdc++, better avoid it by now
 
5976
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5977
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5978
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5979
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5980
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5981
      runpath_var='LD_RUN_PATH'
 
5982
      ;;
 
5983
 
 
5984
    uts4*)
 
5985
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5986
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5987
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5988
      ;;
 
5989
 
 
5990
    *)
 
5991
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5992
      ;;
 
5993
    esac
 
5994
  fi
 
5995
])
 
5996
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
5997
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5998
 
 
5999
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6000
if test "$GCC" = yes; then
 
6001
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6002
fi
 
6003
 
 
6004
#
 
6005
# Do we need to explicitly link libc?
 
6006
#
 
6007
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6008
x|xyes)
 
6009
  # Assume -lc should be added
 
6010
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6011
 
 
6012
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6013
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6014
    *'~'*)
 
6015
      # FIXME: we may have to deal with multi-command sequences.
 
6016
      ;;
 
6017
    '$CC '*)
 
6018
      # Test whether the compiler implicitly links with -lc since on some
 
6019
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6020
      # to ld, don't add -lc before -lgcc.
 
6021
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
6022
      $rm conftest*
 
6023
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6024
 
 
6025
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6026
        soname=conftest
 
6027
        lib=conftest
 
6028
        libobjs=conftest.$ac_objext
 
6029
        deplibs=
 
6030
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6031
        compiler_flags=-v
 
6032
        linker_flags=-v
 
6033
        verstring=
 
6034
        output_objdir=.
 
6035
        libname=conftest
 
6036
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
6037
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6038
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6039
        then
 
6040
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6041
        else
 
6042
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6043
        fi
 
6044
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6045
      else
 
6046
        cat conftest.err 1>&5
 
6047
      fi
 
6048
      $rm conftest*
 
6049
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6050
      ;;
 
6051
    esac
 
6052
  fi
 
6053
  ;;
 
6054
esac
 
6055
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
6056
 
 
6057
 
 
6058
# _LT_AC_FILE_LTDLL_C
 
6059
# -------------------
 
6060
# Be careful that the start marker always follows a newline.
 
6061
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
6062
# /* ltdll.c starts here */
 
6063
# #define WIN32_LEAN_AND_MEAN
 
6064
# #include <windows.h>
 
6065
# #undef WIN32_LEAN_AND_MEAN
 
6066
# #include <stdio.h>
 
6067
#
 
6068
# #ifndef __CYGWIN__
 
6069
# #  ifdef __CYGWIN32__
 
6070
# #    define __CYGWIN__ __CYGWIN32__
 
6071
# #  endif
 
6072
# #endif
 
6073
#
 
6074
# #ifdef __cplusplus
 
6075
# extern "C" {
 
6076
# #endif
 
6077
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
6078
# #ifdef __cplusplus
 
6079
# }
 
6080
# #endif
 
6081
#
 
6082
# #ifdef __CYGWIN__
 
6083
# #include <cygwin/cygwin_dll.h>
 
6084
# DECLARE_CYGWIN_DLL( DllMain );
 
6085
# #endif
 
6086
# HINSTANCE __hDllInstance_base;
 
6087
#
 
6088
# BOOL APIENTRY
 
6089
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
6090
# {
 
6091
#   __hDllInstance_base = hInst;
 
6092
#   return TRUE;
 
6093
# }
 
6094
# /* ltdll.c ends here */
 
6095
])# _LT_AC_FILE_LTDLL_C
 
6096
 
 
6097
 
 
6098
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6099
# ---------------------------------
 
6100
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
6101
 
 
6102
 
 
6103
# old names
 
6104
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
6105
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
6106
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
6107
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
6108
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
6109
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
6110
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
6111
 
 
6112
# This is just to silence aclocal about the macro not being used
 
6113
ifelse([AC_DISABLE_FAST_INSTALL])
 
6114
 
 
6115
AC_DEFUN([LT_AC_PROG_GCJ],
 
6116
[AC_CHECK_TOOL(GCJ, gcj, no)
 
6117
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
6118
  AC_SUBST(GCJFLAGS)
 
6119
])
 
6120
 
 
6121
AC_DEFUN([LT_AC_PROG_RC],
 
6122
[AC_CHECK_TOOL(RC, windres, no)
 
6123
])
 
6124
 
 
6125
############################################################
 
6126
# NOTE: This macro has been submitted for inclusion into   #
 
6127
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
6128
#  a released version of Autoconf we should remove this    #
 
6129
#  macro and use it instead.                               #
 
6130
############################################################
 
6131
# LT_AC_PROG_SED
 
6132
# --------------
 
6133
# Check for a fully-functional sed program, that truncates
 
6134
# as few characters as possible.  Prefer GNU sed if found.
 
6135
AC_DEFUN([LT_AC_PROG_SED],
 
6136
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
6137
AC_CACHE_VAL(lt_cv_path_SED,
 
6138
[# Loop through the user's path and test for sed and gsed.
 
6139
# Then use that list of sed's as ones to test for truncation.
 
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6141
for as_dir in $PATH
 
6142
do
 
6143
  IFS=$as_save_IFS
 
6144
  test -z "$as_dir" && as_dir=.
 
6145
  for lt_ac_prog in sed gsed; do
 
6146
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6147
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6148
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6149
      fi
 
6150
    done
 
6151
  done
 
6152
done
 
6153
lt_ac_max=0
 
6154
lt_ac_count=0
 
6155
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6156
# along with /bin/sed that truncates output.
 
6157
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6158
  test ! -f $lt_ac_sed && continue
 
6159
  cat /dev/null > conftest.in
 
6160
  lt_ac_count=0
 
6161
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6162
  # Check for GNU sed and select it if it is found.
 
6163
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6164
    lt_cv_path_SED=$lt_ac_sed
 
6165
    break
 
6166
  fi
 
6167
  while true; do
 
6168
    cat conftest.in conftest.in >conftest.tmp
 
6169
    mv conftest.tmp conftest.in
 
6170
    cp conftest.in conftest.nl
 
6171
    echo >>conftest.nl
 
6172
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6173
    cmp -s conftest.out conftest.nl || break
 
6174
    # 10000 chars as input seems more than enough
 
6175
    test $lt_ac_count -gt 10 && break
 
6176
    lt_ac_count=`expr $lt_ac_count + 1`
 
6177
    if test $lt_ac_count -gt $lt_ac_max; then
 
6178
      lt_ac_max=$lt_ac_count
 
6179
      lt_cv_path_SED=$lt_ac_sed
 
6180
    fi
 
6181
  done
 
6182
done
 
6183
])
 
6184
SED=$lt_cv_path_SED
 
6185
AC_MSG_RESULT([$SED])
 
6186
])