build: Warn if Python include or site-packages not found.
authorMaxim Koltsov <kolmax94@gmail.com>
Mon, 8 Nov 2010 14:27:27 +0000 (14:27 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 8 Nov 2010 14:28:52 +0000 (14:28 +0000)
configure.ac

index f6fb661..4f29fcd 100644 (file)
@@ -572,6 +572,9 @@ AS_IF([test "x$enable_python" != "xno"],
                 fi
                 AC_MSG_RESULT([not found])
             done
                 fi
                 AC_MSG_RESULT([not found])
             done
+            if test "x$PYTHON_INCLUDEDIR" = "x"; then
+                AC_MSG_WARN([Python include directory not found])
+            fi
 
             for d in \
                 $PYTHON_PREFIX/lib64/python$PYTHON_VERSION/site-packages \
 
             for d in \
                 $PYTHON_PREFIX/lib64/python$PYTHON_VERSION/site-packages \
@@ -588,6 +591,9 @@ AS_IF([test "x$enable_python" != "xno"],
                 fi
                 AC_MSG_RESULT([not found])
             done
                 fi
                 AC_MSG_RESULT([not found])
             done
+            if test "x$PYTHON_SITE_PACKAGES" = "x"; then
+                AC_MSG_WARN([Python site-packages directory not found])
+            fi
 
             old_LIBS="$LIBS"
             LIBS="$LIBS -lpython$PYTHON_VERSION"
 
             old_LIBS="$LIBS"
             LIBS="$LIBS -lpython$PYTHON_VERSION"