about summary refs log tree commit diff
path: root/Src/Modules/pcre.mdd
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-10-26 16:46:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-10-26 16:46:09 +0000
commit68d1c094db86d06e49cbb992fce51aa742418476 (patch)
treef74e5791a18579b178c389b7aceb7e7f2653f3ea /Src/Modules/pcre.mdd
parent31c422299de16868143a95da97f8de33e7a2880d (diff)
downloadzsh-68d1c094db86d06e49cbb992fce51aa742418476.tar.gz
zsh-68d1c094db86d06e49cbb992fce51aa742418476.tar.xz
zsh-68d1c094db86d06e49cbb992fce51aa742418476.zip
29865: don't compile pcre if no pcre-config
Diffstat (limited to 'Src/Modules/pcre.mdd')
-rw-r--r--Src/Modules/pcre.mdd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/pcre.mdd b/Src/Modules/pcre.mdd
index 3e1579117..6eb3c691b 100644
--- a/Src/Modules/pcre.mdd
+++ b/Src/Modules/pcre.mdd
@@ -1,5 +1,5 @@
 name=zsh/pcre
-link=`if test x$enable_pcre = xyes; then echo dynamic; else echo no; fi`
+link=`if test x$enable_pcre = xyes && (pcre-config --version >/dev/null 2>/dev/null); then echo dynamic; else echo no; fi`
 load=no
 
 autofeatures="b:pcre_compile b:pcre_study b:pcre_match"