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