mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
disable OpenMP by default, i386 optimization problems
This commit is contained in:
parent
b4ca1d146f
commit
0ea5fa1468
@ -637,17 +637,25 @@ dnl
|
|||||||
dnl Check for OpenMP support
|
dnl Check for OpenMP support
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
AX_OPENMP([
|
AC_ARG_ENABLE([openmp],
|
||||||
gcc_version=`$CC -dumpversion`
|
AC_HELP_STRING([--enable-openmp], [enable if you want OpenMP support @<:@default=no@:>@]),
|
||||||
gcc_major=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
[want_openmp="$enableval"], [want_openmp=no])
|
||||||
gcc_minor=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
dnl check that the gcc version is >=4.3, if we're using gcc
|
|
||||||
if test ! "x$GCC" = "xyes" -o $gcc_major -ge 4 -a $gcc_minor -ge 3; then
|
|
||||||
AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])
|
|
||||||
CFLAGS="$CFLAGS $OPENMP_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
])
|
if test x$want_openmp = xyes; then
|
||||||
|
AX_OPENMP([
|
||||||
|
gcc_version=`$CC -dumpversion`
|
||||||
|
gcc_major=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||||
|
gcc_minor=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||||
|
dnl check that the gcc version is >=4.3, if we're using gcc
|
||||||
|
if test ! "x$GCC" = "xyes" -o $gcc_major -ge 4 -a $gcc_minor -ge 3; then
|
||||||
|
AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])
|
||||||
|
CFLAGS="$CFLAGS $OPENMP_CFLAGS"
|
||||||
|
else
|
||||||
|
want_openmp=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check doc stuff
|
dnl Check doc stuff
|
||||||
@ -777,6 +785,7 @@ $PACKAGE $VERSION configured successfully:
|
|||||||
XMMS2: $want_xmms2
|
XMMS2: $want_xmms2
|
||||||
|
|
||||||
* General:
|
* General:
|
||||||
|
OpenMP: $want_openmp
|
||||||
math: $want_math
|
math: $want_math
|
||||||
hddtemp: $want_hddtemp
|
hddtemp: $want_hddtemp
|
||||||
portmon: $want_portmon
|
portmon: $want_portmon
|
||||||
|
Loading…
Reference in New Issue
Block a user