summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/scan-pkgs.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh
index 88fb7cbbc..50b10e0d6 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -65,6 +65,10 @@ if [[ -n $ADK_PACKAGE_GLIB ]]; then
NEED_PKGCONFIG="$NEED_PKGCONFIG glib"
fi
+if [[ -n $ADK_PACKAGE_LIBPCAP ]]; then
+ NEED_FLEX="$NEED_FLEX libpcap"
+fi
+
if [[ -n $NEED_GETTEXT ]]; then
if ! which xgettext >/dev/null 2>&1; then
@@ -148,6 +152,13 @@ if [[ -n $NEED_RPM ]]; then
fi
fi
+if [[ -n $NEED_FLEX ]]; then
+ if ! which flex >/dev/null 2>&1; then
+ echo >&2 You need flex to to use $NEED_FLEX package
+ out=1
+ fi
+fi
+
#if [[ -n $ADK_COMPILE_MYSQL && $OStype != Linux ]]; then
# echo >&2 mySQL does not build on non-GNU/Linux.
# out=1