+# Check whether --enable-staticz or --disable-staticz was given.
+if test "${enable_staticz+set}" = set; then
+ enableval="$enable_staticz"
+ if test "$enableval" = "no"
+then
+ STATICZ="no"
+ echo "Linking libz and libbz2 dynamically"
+else
+ STATICZ="yes"
+ echo "Linking libz and libbz2 statically"
+fi
+
+else
+ STATICZ="no"
+echo "Linking libz and libbz2 dynamically by default"
+
+fi;
+