Revision 0475a5ca configure

b/configure
139 139
    solaris="yes"
140 140
    make="gmake"
141 141
    install="ginstall"
142
    needs_libsunmath="no"
142 143
    solarisrev=`uname -r | cut -f2 -d.`
143 144
    if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
144
        if test "$solarisrev" -ge 10 ; then
145
        if test "$solarisrev" -le 9 ; then
146
            if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then
147
                needs_libsunmath="yes"
148
            else
149
                echo "QEMU will not link correctly on Solaris 8/X86 or 9/x86 without"
150
                echo "libsunmath from the Sun Studio compilers tools, due to a lack of"
151
                echo "C99 math features in libm.so in Solaris 8/x86 and Solaris 9/x86"
152
                echo "Studio 11 can be downloaded from www.sun.com."
153
                exit 1
154
            fi
155
        fi
156
        if test "$solarisrev" -ge 9 ; then
145 157
            kqemu="yes"
146 158
        fi
147 159
    fi
......
727 739
if test "$solaris" = "yes" ; then
728 740
  echo "CONFIG_SOLARIS=yes" >> $config_mak
729 741
  echo "#define HOST_SOLARIS $solarisrev" >> $config_h
742
  if test "$needs_libsunmath" = "yes" ; then
743
    echo "NEEDS_LIBSUNMATH=yes" >> $config_mak
744
    echo "#define NEEDS_LIBSUNMATH 1" >> $config_h
745
  fi
730 746
fi
731 747
if test "$gdbstub" = "yes" ; then
732 748
  echo "CONFIG_GDBSTUB=yes" >> $config_mak

Also available in: Unified diff