diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-21 19:38:56 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-21 19:38:56 +0000 |
commit | cea9a609d567ebad3140bef24b29133b9bf15e50 (patch) | |
tree | 28ad8270b39f81d69260dcd1807a238c9c6d4161 /autoconf | |
parent | f2d577b27a56a928fa3e77ab0cd83e7597751313 (diff) |
Get the shlib suffix from Libtool, and define it both in config.h and Makefile.config as SHLIBEXT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 369d26064fa..50c69293184 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -377,6 +377,16 @@ AC_ARG_WITH(bcrepos,AC_HELP_STRING([--with-bcrepos],[Location of Bytecode Reposi dnl Location of PAPI AC_ARG_WITH(papi,AC_HELP_STRING([--with-papi],[Location of PAPI]),AC_SUBST(PAPIDIR,[$withval]),AC_SUBST(PAPIDIR,[/home/vadve/shared/Sparc/papi-2.3.4.1])) +dnl Get libtool's idea of what the shared library suffix is. +dnl (This is a hack; it relies on undocumented behavior.) +AC_MSG_CHECKING([for shared library suffix]) +eval "SHLIBEXT=$shrext" +AC_MSG_RESULT($SHLIBEXT) +dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint). +AC_SUBST(SHLIBEXT,$SHLIBEXT) +AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", + [Extension that shared libraries have, e.g., ".so".]) + dnl Create the output files AC_OUTPUT(Makefile.config) @@ -390,3 +400,4 @@ then AC_MSG_WARN([***** Runtime libraries (in llvm/runtime) will not be built,]) AC_MSG_WARN([***** but you should be able to build the llvm tools.]) fi + |