@cryptotaxi247 / netdata-1 / commits / 3279faa2f

check pthreads before compiler flags

Costa Tsaousis (ktsaou) committed Mar 12, 2017 at 00:16 UTC 3279faa2f2cd62d2fb7ba58ee6b5b7e28cd0da8d
1 file changed +9 -9
configure.ac
+9 -9
@@ -171,6 +171,15 @@ AM_CONDITIONAL([LINUX], [test "${build_target}" = "linux"])
171 AC_MSG_RESULT([${build_target}])
172
173
174 +# -----------------------------------------------------------------------------
175 +# pthreads
176 +
177 +ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
178 +LIBS="${PTHREAD_LIBS} ${LIBS}"
179 +CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
180 +CC="${PTHREAD_CC}"
181 +
182 +
183 # -----------------------------------------------------------------------------
184 # compiler options
185
@@ -213,15 +222,6 @@ if test "${enable_pedantic}" = "yes"; then
222 fi
223
224
216 -# -----------------------------------------------------------------------------
217 -# pthreads
218 -
219 -ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
220 -LIBS="${PTHREAD_LIBS} ${LIBS}"
221 -CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
222 -CC="${PTHREAD_CC}"
223 -
224 -
225 # -----------------------------------------------------------------------------
226 # memory allocation library
227