]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
XRC needs wxXML, check it
[wxWidgets.git] / configure.in
index afb68936116c163595007e3789bfb3714ac106f7..8b20669445ae8684ad3faf635a31d1cc52b37a39 100644 (file)
@@ -5514,9 +5514,14 @@ fi
 
 USE_XRC=0
 if test "$wxUSE_XRC" = "yes"; then
-    AC_DEFINE(wxUSE_XRC)
-    USE_XRC=1
-    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
+    if test "$wxUSE_XML" != "yes"; then
+        AC_MSG_WARN([XML library not built, XRC resources disabled])
+        wxUSE_XRC=no
+    else
+        AC_DEFINE(wxUSE_XRC)
+        USE_XRC=1
+        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
+    fi
 fi
 
 if test "$wxUSE_MENUS" = "yes"; then