projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get closer to GhcCompilerWays=p working
[ghc-hetmet.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
8f7b0ab
..
929b640
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-100,6
+100,7
@@
if test x"$TargetPlatform" != x"$HostPlatform" ; then
fi
exeext=''
fi
exeext=''
+soext='.so'
#
# The following will be more difficult when we *are* cross-compiling.
# Suitable names to slam in *_CPP are in platform.h.in.
#
# The following will be more difficult when we *are* cross-compiling.
# Suitable names to slam in *_CPP are in platform.h.in.
@@
-295,6
+296,7
@@
i[[3456]]86-*-cygwin*)
HostVendor_CPP='unknown'
HostOS_CPP='cygwin32'
exeext='.exe'
HostVendor_CPP='unknown'
HostOS_CPP='cygwin32'
exeext='.exe'
+ soext='.dll'
;;
i[[3456]]86-*-mingw32*)
HostPlatform=i386-unknown-mingw32 # hack again
;;
i[[3456]]86-*-mingw32*)
HostPlatform=i386-unknown-mingw32 # hack again
@@
-305,6
+307,7
@@
i[[3456]]86-*-mingw32*)
HostVendor_CPP='unknown'
HostOS_CPP='mingw32'
exeext='.exe'
HostVendor_CPP='unknown'
HostOS_CPP='mingw32'
exeext='.exe'
+ soext='.dll'
;;
i[[3456]]86-apple-darwin*)
HostPlatform=i386-apple-darwin
;;
i[[3456]]86-apple-darwin*)
HostPlatform=i386-apple-darwin
@@
-314,6
+317,7
@@
i[[3456]]86-apple-darwin*)
HostArch_CPP='i386'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
HostArch_CPP='i386'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
+ soext='.dylib'
;;
i[[3456]]86-*-gnu*)
HostPlatform=i386-unknown-gnu
;;
i[[3456]]86-*-gnu*)
HostPlatform=i386-unknown-gnu
@@
-350,6
+354,7
@@
x86_64-apple-darwin*)
HostArch_CPP='x86_64'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
HostArch_CPP='x86_64'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
+ soext='.dylib'
;;
m68k-*-linux*)
HostPlatform=m68k-unknown-linux # hack again
;;
m68k-*-linux*)
HostPlatform=m68k-unknown-linux # hack again
@@
-476,6
+481,7
@@
powerpc-apple-darwin*)
HostArch_CPP='powerpc'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
HostArch_CPP='powerpc'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
+ soext='.dylib'
;;
powerpc-unknown-linux*)
HostPlatform=powerpc-unknown-linux
;;
powerpc-unknown-linux*)
HostPlatform=powerpc-unknown-linux
@@
-608,8
+614,7
@@
AC_SUBST(BuildVendor_CPP)
AC_SUBST(TargetVendor_CPP)
AC_SUBST(exeext)
AC_SUBST(TargetVendor_CPP)
AC_SUBST(exeext)
-
-FP_FIND_ROOT
+AC_SUBST(soext)
dnl --------------------------------------------------------------
dnl * Project specific configuration options
dnl --------------------------------------------------------------
dnl * Project specific configuration options
@@
-632,6
+637,8
@@
AC_ARG_WITH([ghc],
WithGhc="$GHC"])
AC_SUBST([WithGhc])
WithGhc="$GHC"])
AC_SUBST([WithGhc])
+FP_FIND_ROOT
+
AC_ARG_WITH(hc,
[AC_HELP_STRING([--with-hc=ARG],
[Use ARG as the path to the compiler for compiling ordinary
AC_ARG_WITH(hc,
[AC_HELP_STRING([--with-hc=ARG],
[Use ARG as the path to the compiler for compiling ordinary