AC_SUBST(VERSION)
dnl where we install our stuff ...
-AC_PREFIX_DEFAULT( /usr/local/rrdtool-1.1.0 )
+AC_PREFIX_DEFAULT( /usr/local/rrdtool-$PACKAGE_VERSION )
dnl Minimum Autoconf version required.
AC_PREREQ(2.59)
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([
[])
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])