From bfc92ba1ba5281cfab3cd1f8f8c704ce07047abe Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Fri, 17 Jan 2014 18:12:36 -0800 Subject: autotools: Don’t build DLLs on Cygwin by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, OTF does not build DLLs on Cygwin. Consequently, users who built OTF and ppamltracer using the default 'configure' flags received warnings about missing DLLs during ppamltracer’s link phase. This commit changes that behavior, causing the generated configure script to default to only building static libraries in Cygwin. Should users wish to build DLLs, they can still do so by passing “--enable-shared” to configure. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a5b80c6..0b4b5fa 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,7 @@ # Fire up Autoconf. AC_PREREQ([2.69]) AC_INIT([ppamltracer], [0.1.0], [bbarenblat@galois.com]) +AC_CANONICAL_TARGET # Fire up Automake. Use ustar format because we actually have file names # longer than 99 characters (hooray, Java). @@ -31,13 +32,19 @@ AC_CONFIG_MACRO_DIR([m4]) # Build quietly. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -# Build a C library. +# Build C. AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADERS([config.h]) AC_PROG_CC AC_PROG_CC_C99 # Automake 1.12 seems to require this, but automake 1.11 doesn't recognize it. m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + +# Build a library. On Cygwin, libotf does not build DLLs, so make ppamltracer +# also not build DLLs. +if test "$target_os" = "cygwin"; then + AC_DISABLE_SHARED +fi LT_INIT # Dependencies -- cgit v1.2.3