X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=configure.ac;h=06d7ba79bd73d1697e9449e452ca175e35fd6721;hp=39a7063223a41d893844de06682aa20ceb348014;hb=4339340186609714392f046392c94aac8aea3bbb;hpb=96f1f53dc8975dd55dfb956ef81cea9794bd0629 diff --git a/configure.ac b/configure.ac index 39a7063..06d7ba7 100644 --- a/configure.ac +++ b/configure.ac @@ -250,12 +250,6 @@ AC_SUBST(MULTITHREAD_LDFLAGS) AC_ARG_ENABLE(pthread,[ --disable-pthread disable multithread support], [],[enable_pthread=yes]) -dnl since we use lots of *_r functions all over the code we better -dnl make sure they are known - -if test "x$x_rflag" != "xno"; then - CPPFLAGS="$CPPFLAGS $x_rflag" -fi if test $enable_pthread != no; then ACX_PTHREAD([ @@ -265,6 +259,12 @@ if test $enable_pthread != no; then []) fi +dnl since we use lots of *_r functions all over the code we better +dnl make sure they are known + +if test "x$x_rflag" != "xno"; then + CPPFLAGS="$CPPFLAGS $x_rflag" +fi AM_CONDITIONAL(BUILD_MULTITHREAD,[test $enable_pthread != no])