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 5e9d7c048..b9cb279d1 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -69,6 +69,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
@@ -159,6 +163,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