-if test "$wxUSE_COMMONDLGS" = "yes"; then
- dnl these classes don't depend on anything at all
-
- if test "$wxUSE_CONSTRAINTS" != "yes"; then
- AC_MSG_WARN(many common dialogs cannot be used without constraints so they won't be compiled without them)
- else
- AC_DEFINE(wxUSE_CONSTRAINTS)
- AC_DEFINE(wxUSE_TEXTDLG)
-
- if test "$wxUSE_TREECTRL" != "yes"; then
- AC_MSG_WARN(wxDirDialog cannot be used without wxTreeCtrl and it won't be compiled without it)
+if test "$wxUSE_DIRDLG" = "yes"; then
+ if test "$wxUSE_CONSTRAINTS" != "yes"; then
+ AC_MSG_WARN(wxDirDialog requires constraints so it won't be compiled without them)