diff options
| author | Sebastien Alaiwan <sebastien.alaiwan@gmail.com> | 2014-04-16 07:47:30 +0200 |
|---|---|---|
| committer | Sebastien Alaiwan <sebastien.alaiwan@gmail.com> | 2014-04-16 07:47:30 +0200 |
| commit | 98d6f925f907f8eb1d79a74a9fac297429f8a43f (patch) | |
| tree | e762c349fecdf2f21d3e12a2b09d25e5d41a6ba3 | |
| parent | 8b5fe7703c9074ec3b957d6e32ad5267afe233e4 (diff) | |
Add libtool support (allows ./configure --enable-shared and --enable-static)
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile.am | 5 | ||||
| -rw-r--r-- | configure.ac | 4 |
3 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,7 @@ /config +/configure /Makefile.in /aclocal.m4 /autom4te.cache /configure +/m4 diff --git a/Makefile.am b/Makefile.am index 4fd5c9a..4851619 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ -noinst_LIBRARIES += %D%/librtmidi.a -%C%_librtmidi_a_SOURCES = \ +lib_LTLIBRARIES = %D%/librtmidi.la +%C%_librtmidi_la_LDFLAGS = -no-undefined +%C%_librtmidi_la_SOURCES = \ %D%/RtMidi.cpp \ %D%/RtMidi.h diff --git a/configure.ac b/configure.ac index 413ed78..138a7fd 100644 --- a/configure.ac +++ b/configure.ac @@ -12,12 +12,14 @@ AC_SUBST(noinst_LIBRARIES) # Checks for programs. AC_PROG_CXX(g++ CC c++ cxx) AM_PROG_AR -AC_PROG_RANLIB AC_PATH_PROG(AR, ar, no) if [[ $AR = "no" ]] ; then AC_MSG_ERROR("Could not find ar - needed to create a library"); fi +LT_INIT([win32-dll]) +AC_CONFIG_MACRO_DIR([m4]) + # Checks for header files. AC_HEADER_STDC #AC_CHECK_HEADERS(sys/ioctl.h unistd.h) |
