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

Reid Spencer reid at x10sys.com
Tue Sep 14 23:20:04 PDT 2004



Changes in directory llvm/projects/Stacker/autoconf:

configure.ac updated: 1.2 -> 1.3
---
Log message:

Attempt to solve the libtool problem on Solaris.


---
Diffs of the changes:  (+14 -3)

Index: llvm/projects/Stacker/autoconf/configure.ac
diff -u llvm/projects/Stacker/autoconf/configure.ac:1.2 llvm/projects/Stacker/autoconf/configure.ac:1.3
--- llvm/projects/Stacker/autoconf/configure.ac:1.2	Sun Sep  5 11:42:30 2004
+++ llvm/projects/Stacker/autoconf/configure.ac	Wed Sep 15 01:19:53 2004
@@ -6,7 +6,8 @@
 dnl Place all of the extra autoconf files into the config subdirectory
 AC_CONFIG_AUX_DIR([autoconf])
 
-dnl Configure a header file
+dnl Verify that the source directory is valid
+AC_CONFIG_SRCDIR([Makefile.common.in])
 
 dnl Configure Makefiles
 dnl List every Makefile that ecists within your source tree
@@ -26,9 +27,19 @@
 dnl **************************************************************************
 dnl * Check for programs.
 dnl **************************************************************************
+AC_PROG_LIBTOOL
+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 Verify that the source directory is valid
-AC_CONFIG_SRCDIR([Makefile.common.in])
 
 dnl **************************************************************************
 dnl * Check for libraries.






More information about the llvm-commits mailing list