boinc/m4/boinc_platform.m4

81 lines
2.7 KiB
Plaintext
Raw Normal View History

AC_DEFUN([BOINC_PLATFORM],[
AC_ARG_WITH([boinc-platform],
AC_HELP_STRING([--with-boinc-platform],
[override the default boinc platform]),
[boinc_platform="$withval"],
[boinc_platform=])
AC_ARG_WITH([boinc-alt-platform],
AC_HELP_STRING([--with-boinc-alt-platform],
[override the boinc alternate platform]),
[boinc_alt_platform="$withval"],
[boinc_alt_platform=])
AC_MSG_CHECKING([boinc platform])
if test -z "${boinc_platform}" ; then
boinc_platform=`echo $target | $SED -e 's/amd64/x86_64/' -e 's/portbld/pc/' -e 's/redhat/pc/' -e 's/x86_64-unknown/x86_64-pc/' -e 's/[[0-9]]$//' -e 's/[[0-9]]$//' -e 's/\.$//' -e 's/[[0-9]]$//' -e 's/\.$//' -e 's/[[0-9]]$//'`
case "${boinc_platform}" in
sparc-sun-solaris)
if test "$COMPILER_MODEL_BITS" = "64" ; then
boinc_platform=`echo $boinc_platform | $SED 's/sparc/sparc64/'`
if test -z "$boinc_alt_platform" ; then
boinc_alt_platform=sparc-sun-solaris
fi
elif test -z "$boinc_alt_platform" ; then
boinc_alt_platform=sparc-sun-solaris2.7
fi
;;
x86_64*linux-gnu)
if test "$COMPILER_MODEL_BITS" = "32" ; then
boinc_platform="i686-pc-linux-gnu"
elif test -z "$boinc_alt_platform" ; then
boinc_alt_platform="i686-pc-linux-gnu"
fi
;;
powerpc-apple-darwin)
if test "$COMPILER_MODEL_BITS" = "64" ; then
boinc_platform="powerpc64-apple-darwin"
if test -z "$boinc_alt_platform" ; then
boinc_alt_platform="powerpc-apple-darwin"
fi
fi
;;
hppa*-hp-hpux*)
if test "$COMPILER_MODEL_BITS" = "64" ; then
boinc_platform="hppa64-hp-hpux"
if test -z "${boinc_alt_platform}" ; then
boinc_alt_platform="hppa-hp-hpux"
fi
else
boinc_platform="hppa-hp-hpux"
fi
;;
ia64-hp-hpux*)
boinc_platform="ia64-hp-hpux"
;;
- Added checks for net/*.h, arpa/*.h, netinet/*.h and code to figure out which of those files to include - Modified MAC address check to work on some non-Linux unixes. (mac_address.cpp) - Added suggested change to "already attached to project" checking. (ProjectInfoPage.cpp) - changed includes of standard c header files to their c++ equivalents (i.e. replaced <stdio.h> with <cstdio>) for namespace protection. - replaced "using namespace std;" with more explicit "using std::function" in several files. - Fixed bug in checking whether the os is OS/2 and added conditional OS_OS2 to the build environment. (boinc_platform.m4,configure.ac) - Changed build environment to not use -nostandardlibs unless we are using G++ and static linkage is specified. (configure.ac) - Added makefiles and package building files for solaris CSW package manager. - Fixed bug with attempting to find login name using logname. (configure.ac) - Added ifdef HAVE_* protection around some include files commonly found in sys. - Added support for unified binary for x86_64/i686-pc-solaris. (cs_platforms.cpp) - generate_host_cpid() now uses MAC address on non-linux unix. (hostinfo_network.cpp) - Macro BOINC_SET_COMPILE_FLAGS now doesn't check gcc only flags on non-gcc compilers. (boinc_set_compile_flags.m4) - Library compiles no longer depend upon the library extension or require the library to be prefixed with lib. - More fixes for fcgi builds. - Added declaration of "struct ether_addr" and ether_ntoa(). Have not yet implemented ether_ntoa() for machines that don't have it, or where it is buggy. (unix_util.h) - Added FCGI::perror() which calls FCGI_perror(). (boinc_fcgi.{h,cpp}) - Fixed library Makefiles so that all required headers get installed. svn path=/trunk/boinc/; revision=17388
2009-02-26 00:23:23 +00:00
esac
case "${target}" in
i386-pc-os2)
boinc_platform="i686-pc-os2"
;;
2014-04-29 14:50:33 +00:00
i*86-*-mingw32)
boinc_platform="windows_intelx86"
;;
x86_64-*-mingw32)
boinc_platform="windows_x86_64"
boinc_alt_platform="windows_intelx86"
;;
esac
fi
AC_DEFINE_UNQUOTED([HOSTTYPE],"$boinc_platform",[Platform identification used to identify applications for this BOINC core client])
AC_SUBST([boinc_platform],$boinc_platform)
AC_MSG_RESULT([$boinc_platform])
AC_MSG_CHECKING([alternate boinc platform])
if test -n "$boinc_alt_platform" ; then
AC_DEFINE_UNQUOTED([HOSTTYPEALT],"$boinc_alt_platform",[Alternate identification used to identify applications for this BOINC core client])
AC_SUBST([boinc_alt_platform],$boinc_alt_platform)
AC_MSG_RESULT($boinc_alt_platform)
else
AC_MSG_RESULT(none)
fi
])