about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-02-13 14:35:07 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-02-13 14:35:07 +0000
commitfa6bab3083577cdca9f8f45a686e9b118e050ffa (patch)
tree50b7b76bcff19dfd3945a65a1c568b6c028b57bb /Src
parent326d6825104fbaedf569e169b04043c29bc3d845 (diff)
downloadzsh-fa6bab3083577cdca9f8f45a686e9b118e050ffa.tar.gz
zsh-fa6bab3083577cdca9f8f45a686e9b118e050ffa.tar.xz
zsh-fa6bab3083577cdca9f8f45a686e9b118e050ffa.zip
13431: better check for shared libraries.
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/termcap.c2
-rw-r--r--Src/Modules/termcap.mdd12
-rw-r--r--Src/Modules/terminfo.c2
-rw-r--r--Src/Modules/terminfo.mdd12
4 files changed, 24 insertions, 4 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 8f5f650f9..9c72bf27f 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -33,7 +33,7 @@
 /* echotc: output a termcap */
 
 /**/
-int
+static int
 bin_echotc(char *name, char **argv, char *ops, int func)
 {
     char *s, buf[2048], *t, *u;
diff --git a/Src/Modules/termcap.mdd b/Src/Modules/termcap.mdd
index 5f88a9662..89f939ff8 100644
--- a/Src/Modules/termcap.mdd
+++ b/Src/Modules/termcap.mdd
@@ -1,5 +1,15 @@
 name=zsh/termcap
-link=either
+
+link='if test "x$ac_cv_func_tgetent" = xyes; then
+          if test "x$zsh_cv_shared_tgetent" = xyes; then
+	      echo either
+	  else
+	      echo static
+	  fi
+      else
+          echo no;
+      fi
+'
 load=yes
 
 autobins="echotc"
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index 512f4b474..7eb47bdb3 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -36,7 +36,7 @@ static Param terminfo_pm;
 /* echoti: output a terminfo capability */
 
 /**/
-int
+static int
 bin_echoti(char *name, char **argv, char *ops, int func)
 {
     char *s, *t;
diff --git a/Src/Modules/terminfo.mdd b/Src/Modules/terminfo.mdd
index 251281742..dd01bed3a 100644
--- a/Src/Modules/terminfo.mdd
+++ b/Src/Modules/terminfo.mdd
@@ -1,5 +1,15 @@
 name=zsh/terminfo
-link='if test "x$ac_cv_func_tigetstr" = xyes; then echo either; else echo no; fi'
+
+link='if test "x$ac_cv_func_tigetstr" = xyes; then
+          if test "x$zsh_cv_shared_tigetstr" = xyes; then
+	      echo either
+	  else
+	      echo static
+	  fi
+      else
+          echo no;
+      fi
+'
 load=yes
 
 autobins="echoti"