summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBen.Lippmeier@anu.edu.au <unknown>2009-11-10 05:12:57 +0000
committerBen.Lippmeier@anu.edu.au <unknown>2009-11-10 05:12:57 +0000
commite60ef3d0da7e37e7b18088b42925e60b1b47a29e (patch)
treed11d58ea92c88b1ad429f3494dc142ab5af074f0 /configure.ac
parent02d8f553485ffe1b8bb8f131f9cf6a6ba0823b46 (diff)
downloadhaskell-e60ef3d0da7e37e7b18088b42925e60b1b47a29e.tar.gz
Add autoconf code to locate dlltool on Windows
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0af10c19ec..22801c99a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -428,6 +428,21 @@ FP_ARG_WITH_PATH_GNU_PROG([LD], [ld])
LdCmd="$LD"
AC_SUBST([LdCmd])
+dnl ** Check for dlltool on Windows
+dnl --------------------------------------------------------------
+case $HostOS_CPP in
+cygwin32|mingw32)
+ AC_PATH_PROG(DlltoolCmd,dlltool)
+ if test -z "$DlltoolCmd"; then
+ echo "Can't find dlltool in your path, can't make DLLs."
+ exit 1
+ fi
+ ;;
+*)
+ AC_SUBST(DlltoolCmd,"")
+ ;;
+esac
+
dnl ** Which nm to use?
dnl --------------------------------------------------------------
FP_ARG_WITH_PATH_GNU_PROG([NM], [nm])