Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: R-1-1-patches
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (28 sloc) 0.783 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/sh
#
# ${RHOME}/tools/GETCONFIG

echo "/* src/include/Rconfig.h. Generated automatically */"
echo "#ifndef R_VERSION_H"
echo "#define R_VERSION_H"
echo
echo "#ifndef _CONFIG_H"
echo
us=`sed -n /HAVE_F77_UNDERSCORE/p config.h | sed -n 1p | sed -e s/\ HAVE_F77_UNDERSCORE.\*//`
if [ "${us}" = "#define" ] ; then
  echo "#define F77_SYMBOL(x) x ## _"
else
  echo "#define F77_SYMBOL(x) x"
fi
echo
ieeea=`sed -n /HAVE_ISNAN/p config.h | sed -n 1p | sed -e s/\ HAVE_ISNAN.\*//`
ieeeb=`sed -n /HAVE_FINITE/p config.h | sed -n 1p | sed -e s/\ HAVE_FINITE.\*//`
if [ "${ieeea}" = "#define" -a "${ieeeb}" = "#define" ] ; then
  echo "#define IEEE_754 1"
else
  echo "/* #undef IEEE_754 */"
fi
endian=`grep "WORDS_BIGENDIAN" config.h`
echo "${endian}"
echo
echo "#endif"
echo "#endif"
Something went wrong with that request. Please try again.