X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=configure.ac;h=7baa3ddb5cc6a0d02b79790fd7a36c9696f76cc3;hp=f7ec2c6f844a2756d3799f7fd6a4af6ea6f3df23;hb=cf5905ea24904cf73a041fd7535e8723a668cb9a;hpb=a8013a7e4d29f44379ae118856460a3bf9ae34ce diff --git a/configure.ac b/configure.ac index f7ec2c6..7baa3dd 100644 --- a/configure.ac +++ b/configure.ac @@ -222,6 +222,21 @@ x86_64-apple-darwin) ;; esac +# Testing if we shall enable shared libs support on Solaris. +# Anything older than SunOS 5.11 aka Solaris 11 (Express) is broken. + +SOLARIS_BROKEN_SHLD=NO + +case $host in + i386-*-solaris2) + # here we go with the test + MINOR=`uname -r|cut -d '.' -f 2-` + if test "$MINOR" -lt "11"; then + SOLARIS_BROKEN_SHLD=YES + fi + ;; +esac + # Sync this with cTargetArch in compiler/ghc.mk checkArch() { case $1 in @@ -322,6 +337,8 @@ AC_SUBST(TargetVendor_CPP) AC_SUBST(exeext) AC_SUBST(soext) +AC_SUBST(SOLARIS_BROKEN_SHLD) + AC_ARG_WITH(hc, [AC_HELP_STRING([--with-hc=ARG], [Use ARG as the path to the compiler for compiling ordinary @@ -440,9 +457,14 @@ changequote([, ])dnl if test "$XCodeVersion1" -lt 3 then SplitObjsBroken=YES - elif test "$XCodeVersion1" -eq 3 && test "$XCodeVersion2" -lt 2 - then - SplitObjsBroken=YES + else + if test "$XCodeVersion1" -eq 3 + then + if test "$XCodeVersion2" -lt 2 + then + SplitObjsBroken=YES + fi + fi fi fi fi @@ -794,6 +816,7 @@ FP_LEADING_UNDERSCORE dnl ** check for ld, whether it has an -x option, and if it is GNU ld FP_PROG_LD_X FP_PROG_LD_IS_GNU +FP_PROG_LD_BUILD_ID dnl ** check for Apple-style dead-stripping support dnl (.subsections-via-symbols assembler directive)