]> andersk Git - openssh.git/commitdiff
- Check for gl_matchc support in glob_t and fall back to the
authormouring <mouring>
Sat, 17 Mar 2001 01:15:38 +0000 (01:15 +0000)
committermouring <mouring>
Sat, 17 Mar 2001 01:15:38 +0000 (01:15 +0000)
   openbsd-compat/glob.[ch] support if it does not exist.

ChangeLog
acconfig.h
configure.in
includes.h
openbsd-compat/glob.c
openbsd-compat/glob.h

index 377a6be8d734e1ba2818892b274243ed08b1bd49..dc7ae1914caa8b2aff75a1789b7fc85507e192ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,8 @@
      [auth-options.c channels.c channels.h serverloop.c session.c]
      implement "permitopen" key option, restricts -L style forwarding to
      to specified host:port pairs. based on work by harlan@genua.de
+ - Check for gl_matchc support in glob_t and fall back to the 
+   openbsd-compat/glob.[ch] support if it does not exist.
 
 20010315
  - OpenBSD CVS Sync
index d70e1b8f47d0170824b60681dfa5230f662c319f..75a63d45393ad945e582f2aa146946d528d8d905 100644 (file)
 /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
 #undef GLOB_HAS_ALTDIRFUNC
 
+/* Define if your system glob() function has gl_matchc options in glob_t */
+#undef GLOB_HAS_GL_MATCHC
+
 @BOTTOM@
 
 /* ******************* Shouldn't need to edit below this line ************** */
index 45572d4a0a524cef80cf3e8e150533489b0947e3..df712bb08ca6bb5d445cbf5d623ac4aaa185d1c2 100644 (file)
@@ -388,6 +388,24 @@ AC_EGREP_CPP(FOUNDIT,
        ]
 )
 
+# Check for g.gl_matchc glob() extension
+AC_MSG_CHECKING(for gl_matchc field in glob_t)
+AC_EGREP_CPP(FOUNDIT,
+        [
+                #include <glob.h>
+               int main(void){glob_t g; g.gl_matchc = 1;}
+        ],
+        [
+                AC_DEFINE(GLOB_HAS_GL_MATCHC)
+                AC_MSG_RESULT(yes)
+        ],
+        [
+                AC_MSG_RESULT(no)
+        ]
+)
+
+
+
 # Check whether user wants Kerberos support
 KRB4_MSG="no" 
 AC_ARG_WITH(kerberos4,
index 3f834ba86668ee9ed252c0625d44256a0e180564..8b7bb0ed83120fd0fa900ff256b92ca52f89867a 100644 (file)
@@ -54,7 +54,8 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #ifdef HAVE_BSTRING_H
 # include <bstring.h>
 #endif
-#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC)
+#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
+    defined(GLOB_HAS_GL_MATCHC)
 # include <glob.h>
 #endif
 #ifdef HAVE_NETGROUP_H
index 2e2551866e7404b474680aac16bcbc8152b848c2..e2fd7c27f3836b9d2d2389433d5f7278d1b98a79 100644 (file)
@@ -37,7 +37,8 @@
 #include "includes.h"
 #include <ctype.h>
 
-#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC)
+#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
+    !defined(GLOB_HAS_GL_MATCHC)
 
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
@@ -855,5 +856,6 @@ qprintf(str, s)
 }
 #endif
 
-#endif /* !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) */
+#endif /* !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) ||
+          !defined(GLOB_HAS_GL_MATCHC) */
 
index 392c63b675bd94bf0b6d10a44538aa01dded777d..a08cee5726c319585986ea3d951c148ed6edaad1 100644 (file)
@@ -39,7 +39,8 @@
  *     @(#)glob.h      8.1 (Berkeley) 6/2/93
  */
 
-#if !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC)
+#if !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC) || \
+    !defined(GLOB_HAS_GL_MATCHC)
 
 #ifndef _GLOB_H_
 #define        _GLOB_H_
@@ -94,5 +95,6 @@ void  globfree __P((glob_t *));
 
 #endif /* !_GLOB_H_ */
 
-#endif /* !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC) */
+#endif /* !defined(HAVE_GLOB_H) || !defined(GLOB_HAS_ALTDIRFUNC)  ||
+         !defined(GLOB_HAS_GL_MATCHC */
 
This page took 1.750265 seconds and 5 git commands to generate.