Skip to content
Snippets Groups Projects
Commit ab51e753 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Check if the tools to support ipo are available. If not use the standard...

Check if the tools to support ipo are available. If not use the standard versions as determined by libtool.
parent 25063f67
No related branches found
No related tags found
3 merge requests!1887Updating . . .,!1878updating working branch,!1830Check if the tools to support ipo are available. If not use the standard...
...@@ -130,28 +130,28 @@ if test "$enable_ipo" = "yes"; then ...@@ -130,28 +130,28 @@ if test "$enable_ipo" = "yes"; then
if test "$ax_cv_c_compiler_vendor" = "intel"; then if test "$ax_cv_c_compiler_vendor" = "intel"; then
CFLAGS="$CFLAGS -ip -ipo" CFLAGS="$CFLAGS -ip -ipo"
LDFLAGS="$LDFLAGS -ipo" LDFLAGS="$LDFLAGS -ipo"
: ${AR="xiar"} AC_CHECK_PROGS([AR], [xiar])
: ${LD="xild"} AC_CHECK_PROGS([LD], [xild])
AC_MSG_RESULT([added Intel interprocedural optimization support]) AC_MSG_RESULT([added Intel interprocedural optimization support])
elif test "$ax_cv_c_compiler_vendor" = "oneapi"; then elif test "$ax_cv_c_compiler_vendor" = "oneapi"; then
CFLAGS="$CFLAGS -ipo" CFLAGS="$CFLAGS -ipo"
LDFLAGS="$LDFLAGS -ipo" LDFLAGS="$LDFLAGS -ipo"
: ${AR="xiar"} AC_CHECK_PROGS([AR], [xiar])
: ${LD="xild"} AC_CHECK_PROGS([LD], [xild])
AC_MSG_RESULT([added oneapi interprocedural optimization support]) AC_MSG_RESULT([added oneapi interprocedural optimization support])
elif test "$ax_cv_c_compiler_vendor" = "gnu"; then elif test "$ax_cv_c_compiler_vendor" = "gnu"; then
CFLAGS="$CFLAGS -flto" CFLAGS="$CFLAGS -flto"
LDFLAGS="$LDFLAGS -flto" LDFLAGS="$LDFLAGS -flto"
AX_COMPARE_VERSION($ax_cv_c_compiler_version, [ge], [5.0.0], AX_COMPARE_VERSION($ax_cv_c_compiler_version, [ge], [5.0.0],
[ [
: ${AR="gcc-ar"} AC_CHECK_PROGS([AR], [gcc-ar])
: ${RANLIB="gcc-ranlib"} AC_CHECK_PROGS([RANLIB], [gcc-ranlib])
], [:] ) ], [:] )
AC_MSG_RESULT([added GCC interprocedural optimization support]) AC_MSG_RESULT([added GCC interprocedural optimization support])
elif test "$ax_cv_c_compiler_vendor" = "clang"; then elif test "$ax_cv_c_compiler_vendor" = "clang"; then
CFLAGS="$CFLAGS -flto" CFLAGS="$CFLAGS -flto"
LDFLAGS="$LDFLAGS -flto" LDFLAGS="$LDFLAGS -flto"
: ${RANLIB="llvm-ranlib"} AC_CHECK_PROGS([RANLIB], [llvm-ranlib])
AC_MSG_RESULT([added LLVM interprocedural optimization support]) AC_MSG_RESULT([added LLVM interprocedural optimization support])
else else
AC_MSG_WARN([Compiler does not support interprocedural optimization]) AC_MSG_WARN([Compiler does not support interprocedural optimization])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment