From b87558a055897891d1c9f26e867d636d833ee55e Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sun, 21 Dec 2014 12:45:58 -0800 Subject: WIP autools --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c9596bd..60baafd 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,8 @@ AC_CANONICAL_BUILD AM_INIT_AUTOMAKE([foreign]) LT_INIT +# Set the flags here to make libtool catch the flags +CFLAGS='-Wall -O3 -fomit-frame-pointer' AC_PROG_CC AC_MSG_CHECKING([windows.h and win32 API]) @@ -26,6 +28,15 @@ AC_LINK_IFELSE([ ]) MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib]) +AC_SUBST([LIBDL_MSVC_LIB]) + +test -n "${LIBDL_MSVC_LIB}" && \ + GEN_DEF="-Wl,--output-def,libdl.def" && \ + EXTRA_INSTALL="install-msvc-lib" +AC_SUBST([GEN_DEF]) +AC_SUBST([EXTRA_INSTALL]) + +test -n AC_CONFIG_FILES(Makefile) AC_OUTPUT \ No newline at end of file -- cgit v1.2.3-55-g6feb