From ce3db105b0aeb90ecc955ccbeef883d83c726681 Mon Sep 17 00:00:00 2001 From: Juha Sointusalo Date: Fri, 22 Mar 2019 22:12:04 +0200 Subject: [PATCH] build: remove Fortran checks While science apps may use Fortran BOINC itself doesn't use it making the checks useless. Removing the checks reduces verbosity of configure a little bit making its output more accessible. --- configure.ac | 1 - m4/boinc_check_flags.m4 | 22 ---------------------- m4/boinc_set_compile_flags.m4 | 31 ------------------------------- 3 files changed, 54 deletions(-) diff --git a/configure.ac b/configure.ac index 503b27bd13..eeef08f094 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,6 @@ dnl Workaround for autoconf >= 2.65 backwards incompatibility m4_pattern_allow([AC_PROG_OBJCXX]) m4_ifdef([AC_PROG_OBJCXX],[AC_PROG_OBJCXX],) dnl ------ -AC_PROG_F77 AC_PROG_CPP AC_PROG_MAKE_SET SAH_LINKS diff --git a/m4/boinc_check_flags.m4 b/m4/boinc_check_flags.m4 index 458bbf55bb..0d123d6b4e 100644 --- a/m4/boinc_check_flags.m4 +++ b/m4/boinc_check_flags.m4 @@ -47,28 +47,6 @@ AC_DEFUN([BOINC_CHECK_CXXFLAG],[ AC_LANG_POP(C++) ]) -AC_DEFUN([BOINC_CHECK_FFLAG],[ - AC_LANG_PUSH(Fortran 77) - sv_flags="${FFLAGS}" - AC_MSG_CHECKING(if f77 compiler supports $1) - FFLAGS="${FFLAGS} $1" - AC_LINK_IFELSE([ - AC_LANG_PROGRAM([], - [ write(*,*) 'hello' ])], - [ - AC_MSG_RESULT(yes) - $2 - ], - [ - AC_MSG_RESULT(no) - FFLAGS="${sv_flags}" - $3 - ] - ) - AC_LANG_POP(Fortran 77) -]) - - AC_DEFUN([BOINC_CHECK_LDFLAG],[ AC_LANG_PUSH(C) sv_flags="${LDFLAGS}" diff --git a/m4/boinc_set_compile_flags.m4 b/m4/boinc_set_compile_flags.m4 index 08974deb38..1e2e0cef73 100644 --- a/m4/boinc_set_compile_flags.m4 +++ b/m4/boinc_set_compile_flags.m4 @@ -24,7 +24,6 @@ dnl enable compiler warnings if test x${ac_cv_c_compiler_gnu} = xyes ; then BOINC_CHECK_CFLAG(-Wall) BOINC_CHECK_CXXFLAG(-Wall) - BOINC_CHECK_FFLAG(-Wall) fi dnl enable debug mode on all components using standard debug flags @@ -32,7 +31,6 @@ dnl enable debug mode on all components using standard debug flags if test x${enable_debug} = xyes ; then BOINC_CHECK_CFLAG(-g) BOINC_CHECK_CXXFLAG(-g) - BOINC_CHECK_FFLAG(-g) BOINC_CHECK_LDFLAG(-g) CXXFLAGS="$CXXFLAGS -DDEBUG -D_DEBUG" CFLAGS="$CFLAGS -DDEBUG -D_DEBUG" @@ -51,12 +49,6 @@ if test x${enable_optimize} = xyes ; then BOINC_CHECK_CXXFLAG(-fast) fi BOINC_CHECK_CXXFLAG(-O3) - if test x${ac_cv_f77_compiler_gnu} = xyes ; then - BOINC_CHECK_FFLAG(-ffast-math) - else - BOINC_CHECK_FFLAG(-fast) - fi - BOINC_CHECK_FFLAG(-O3) fi if test x${enable_generic_processor} = xyes ; then @@ -66,8 +58,6 @@ if test x${enable_generic_processor} = xyes ; then BOINC_CHECK_CFLAG(-mtune=prescott) BOINC_CHECK_CXXFLAG(-march=pentium4) BOINC_CHECK_CXXFLAG(-mtune=prescott) - BOINC_CHECK_FFLAG(-march=pentium4) - BOINC_CHECK_FFLAG(-mtune=prescott) ;; i*86-*) dnl gcc @@ -87,13 +77,6 @@ if test x${enable_generic_processor} = xyes ; then BOINC_CHECK_CXXFLAG(-xarch=386) BOINC_CHECK_CXXFLAG(-3) fi - if test x${ac_cv_f77_compiler_gnu} = xyes ; then - BOINC_CHECK_FFLAG(-march=i486) - BOINC_CHECK_FFLAG(-mtune=generic) - else - BOINC_CHECK_FFLAG(-xarch=386) - BOINC_CHECK_FFLAG(-3) - fi ;; x86_64-*|amd64-*) dnl gcc @@ -111,13 +94,6 @@ if test x${enable_generic_processor} = xyes ; then else BOINC_CHECK_CXXFLAG(-xarch=amd64) fi - if test x${ac_cv_f77_compiler_gnu} = xyes ; then - BOINC_CHECK_FFLAG(-msse2) - BOINC_CHECK_FFLAG(-march=opteron) - BOINC_CHECK_FFLAG(-mtune=generic) - else - BOINC_CHECK_FFLAG(-xarch=amd64) - fi ;; sparc-*) dnl gcc @@ -136,13 +112,6 @@ if test x${enable_generic_processor} = xyes ; then else BOINC_CHECK_CXXFLAG(-xarch=v8) fi - if test x${ac_cv_f77_compiler_gnu} = xyes ; then - BOINC_CHECK_FFLAG(-march=v8) - BOINC_CHECK_FFLAG(-mcpu=v8) - BOINC_CHECK_FFLAG(-mtune=ultrasparc) - else - BOINC_CHECK_FFLAG(-xarch=v8) - fi ;; *) ;;