diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-12-21 12:45:58 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-12-21 12:45:58 -0800 |
commit | b87558a055897891d1c9f26e867d636d833ee55e (patch) | |
tree | 80cfc14857ee552cfd5242a815f34ed98cd19359 /configure.ac | |
parent | 2d6c00722652589b6c2532d9e9a43417d29612c1 (diff) | |
download | dlfcn-win32-lib-exp.tar.gz dlfcn-win32-lib-exp.tar.bz2 dlfcn-win32-lib-exp.zip |
WIP autoolslib-exp
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
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 | |||
9 | AM_INIT_AUTOMAKE([foreign]) | 9 | AM_INIT_AUTOMAKE([foreign]) |
10 | LT_INIT | 10 | LT_INIT |
11 | 11 | ||
12 | # Set the flags here to make libtool catch the flags | ||
13 | CFLAGS='-Wall -O3 -fomit-frame-pointer' | ||
12 | AC_PROG_CC | 14 | AC_PROG_CC |
13 | 15 | ||
14 | AC_MSG_CHECKING([windows.h and win32 API]) | 16 | AC_MSG_CHECKING([windows.h and win32 API]) |
@@ -26,6 +28,15 @@ AC_LINK_IFELSE([ | |||
26 | ]) | 28 | ]) |
27 | 29 | ||
28 | MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib]) | 30 | MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib]) |
31 | AC_SUBST([LIBDL_MSVC_LIB]) | ||
32 | |||
33 | test -n "${LIBDL_MSVC_LIB}" && \ | ||
34 | GEN_DEF="-Wl,--output-def,libdl.def" && \ | ||
35 | EXTRA_INSTALL="install-msvc-lib" | ||
36 | AC_SUBST([GEN_DEF]) | ||
37 | AC_SUBST([EXTRA_INSTALL]) | ||
38 | |||
39 | test -n | ||
29 | 40 | ||
30 | AC_CONFIG_FILES(Makefile) | 41 | AC_CONFIG_FILES(Makefile) |
31 | AC_OUTPUT \ No newline at end of file | 42 | AC_OUTPUT \ No newline at end of file |