AC_MSG_CHECKING([if we need CARES_BUILDING_LIBRARY])
use_cppflag_cares_building_library="no"
use_cppflag_cares_staticlib="no"
+CPPFLAG_CARES_STATICLIB=""
case $host in
*-*-mingw*)
AC_MSG_RESULT(yes)
then
AC_MSG_RESULT(yes)
use_cppflag_cares_staticlib="yes"
+ CPPFLAG_CARES_STATICLIB="-DCARES_STATICLIB"
else
AC_MSG_RESULT(no)
fi
esac
AM_CONDITIONAL(USE_CPPFLAG_CARES_BUILDING_LIBRARY, test x$use_cppflag_cares_building_library = xyes)
AM_CONDITIONAL(USE_CPPFLAG_CARES_STATICLIB, test x$use_cppflag_cares_staticlib = xyes)
+AC_SUBST(CPPFLAG_CARES_STATICLIB)
dnl **********************************************************************
dnl platform/compiler/architecture specific checks/flags
Version: @VERSION@
Requires:
Requires.private:
-Cflags: -I${includedir}
+Cflags: -I${includedir} @CPPFLAG_CARES_STATICLIB@
Libs: -L${libdir} -lcares
Libs.private: @CARES_PRIVATE_LIBS@