[llvm-commits] CVS: llvm/autoconf/configure.ac

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jan 21 13:40:09 PST 2004


Changes in directory llvm/autoconf:

configure.ac updated: 1.66 -> 1.67

---
Log message:

Get the shlib suffix from Libtool, and define it both in config.h and Makefile.config as SHLIBEXT.

---
Diffs of the changes:  (+11 -0)

Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.66 llvm/autoconf/configure.ac:1.67
--- llvm/autoconf/configure.ac:1.66	Fri Jan 16 15:31:22 2004
+++ llvm/autoconf/configure.ac	Wed Jan 21 13:38:56 2004
@@ -377,6 +377,16 @@
 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 @@
 	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
+





More information about the llvm-commits mailing list