aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbarenblat@galois.com>2014-01-17 18:12:36 -0800
committerGravatar Benjamin Barenblat <bbarenblat@galois.com>2014-01-17 18:12:36 -0800
commitbfc92ba1ba5281cfab3cd1f8f8c704ce07047abe (patch)
tree41ac7f0d9ef2e90e7182898fab696a8b7ecb0ee4
parent0374753fff96650b90c46f737334276be6eac18e (diff)
autotools: Don’t build DLLs on Cygwin by default
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.
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
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