# HG changeset patch # User Rik # Date 1424649021 28800 # Node ID 13bc2737177ca6d072b6a61e2a750c8bb839635b # Parent 2e556954ced88745ca4f4b9047a42f4527499f52 Fix incorrect reporting of OpenMP use by configure (bug #44346). * configure.ac: Check whether ax_openmp found compiler options before reporting that OpenMP was used. diff -r 2e556954ced8 -r 13bc2737177c configure.ac --- a/configure.ac Sun Feb 22 18:12:57 2015 -0500 +++ b/configure.ac Sun Feb 22 15:50:21 2015 -0800 @@ -532,8 +532,12 @@ AC_LANG_PUSH(C++) AX_OPENMP AC_LANG_POP(C++) - CFLAGS="$CFLAGS $OPENMP_CFLAGS" - CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" + if test -n "$OPENMP_CFLAGS" && test -n "OPENMP_CXXFLAGS"; then + CFLAGS="$CFLAGS $OPENMP_CFLAGS" + CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" + else + USE_OPENMP=no + fi fi ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are