- Timestamp:
- Mar 15, 2018 5:29:12 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/Makefile.kmk
r3140 r3147 126 126 127 127 kmkmissing_SOURCES.netbsd = \ 128 glob/glob.c \129 128 glob/fnmatch.c 130 129 -
trunk/src/kmk/configure.ac
r3143 r3147 394 394 rm -f s.conftest conftoast 395 395 396 ## bird: always use our glob impl. Avoids trouble with newish glibc. 396 397 # Check the system to see if it provides GNU glob. If not, use our 397 398 # local version. 398 AC_CACHE_CHECK([if system libc has GNU glob], [make_cv_sys_gnu_glob], 399 [ AC_EGREP_CPP([gnu glob],[ 400 #include <features.h> 401 #include <glob.h> 402 #include <fnmatch.h> 403 404 #define GLOB_INTERFACE_VERSION 1 405 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 406 # include <gnu-versions.h> 407 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION 408 gnu glob 409 # endif 410 #endif], 411 [make_cv_sys_gnu_glob=yes], 412 [make_cv_sys_gnu_glob=no])]) 413 AS_IF([test "$make_cv_sys_gnu_glob" = no], 399 #x# AC_CACHE_CHECK([if system libc has GNU glob], [make_cv_sys_gnu_glob], 400 #x# [ AC_EGREP_CPP([gnu glob],[ 401 #x# #include <features.h> 402 #x# #include <glob.h> 403 #x# #include <fnmatch.h> 404 #x# 405 #x# #define GLOB_INTERFACE_VERSION 1 406 #x# #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 407 #x# # include <gnu-versions.h> 408 #x# # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION 409 #x# gnu glob 410 #x# # endif 411 #x# #endif], 412 #x# [make_cv_sys_gnu_glob=yes], 413 #x# [make_cv_sys_gnu_glob=no])]) 414 #x# AS_IF([test "$make_cv_sys_gnu_glob" = no], 415 AS_IF([test yes = yes], 414 416 [ GLOBINC='-I$(srcdir)/glob' 415 417 GLOBLIB=glob/libglob.a 418 make_cv_sys_gnu_glob=no 416 419 ]) 417 420 AC_SUBST([GLOBINC]) -
trunk/src/kmk/glob/fnmatch.c
r1993 r3147 57 57 it is simpler to just do this in the source for each such file. */ 58 58 59 #if defined _LIBC || !defined __GNU_LIBRARY__ 59 #if defined _LIBC || !defined __GNU_LIBRARY__ || 1 /* bird: Same as for glob.c, don't want trouble. */ 60 60 61 61 -
trunk/src/kmk/glob/glob.c
r3140 r3147 51 51 52 52 #define GLOB_INTERFACE_VERSION 1 53 #if 0 /* bird: Apparently this causes trouble for some debian builds. */ 53 54 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 54 55 # include <gnu-versions.h> … … 56 57 # define ELIDE_CODE 57 58 # endif 59 #endif 58 60 #endif 59 61 … … 210 212 211 213 212 #if !defined __alloca && !defined __GNU_LIBRARY__214 #if !defined __alloca /*&& !defined __GNU_LIBRARY__ - bird: unresolved __alloca symbol if skipping this for gnu libc. duh. */ 213 215 214 216 # ifdef __GNUC__ … … 227 229 # endif /* Not _AIX. */ 228 230 # endif /* sparc or HAVE_ALLOCA_H. */ 229 # endif /* GCC. */231 # endif /* Not GCC. */ 230 232 231 233 # define __alloca alloca
Note:
See TracChangeset
for help on using the changeset viewer.