This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
What is GLIBCXX_ENABLE_PARALLEL for?
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 19 Jun 2015 14:07:59 +0100
- Subject: What is GLIBCXX_ENABLE_PARALLEL for?
- Authentication-results: sourceware.org; auth=none
acinclude.m4 has:
dnl
dnl Check for parallel mode pre-requisites, including OpenMP support.
dnl
dnl + Usage: GLIBCXX_ENABLE_PARALLEL
dnl
AC_DEFUN([GLIBCXX_ENABLE_PARALLEL], [
enable_parallel=no;
# See if configured libgomp/omp.h exists. (libgomp may be in
# noconfigdirs but not explicitly disabled.)
if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
enable_parallel=yes;
else
AC_MSG_NOTICE([target-libgomp not built])
fi
AC_MSG_CHECKING([for parallel mode support])
AC_MSG_RESULT([$enable_parallel])
])
Which is called from configure.ac (with an unused argument):
GLIBCXX_ENABLE_PARALLEL([yes])
What's the point?
It doesn't seem to have any side effects except printing some messages
while configure runs, it doesn't actually enable or disable anything.