Update pkgtools/libnbcompat to 20030824. Changes from previous version:
* Don't install namespace.h, extern.h and stat_flags.h, which are only used internally. * Clean up util.h by using '#if !HAVE_xxx' instead of '#ifndef !HAVE_xxx', removing some LIST_* definitions that are defined by <nbcompat.h>, and removing static declarations. * If fparseln is in libutil (as it is in NetBSD), then don't build it into libnbcompat.a.
This commit is contained in:
parent
45c3507113
commit
63ea2414a6
8 changed files with 85 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: CHANGES,v 1.3214 2003/09/02 17:58:22 epg Exp $
|
||||
$NetBSD: CHANGES,v 1.3215 2003/09/03 03:28:23 jlam Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2003:
|
||||
|
||||
|
@ -3489,3 +3489,4 @@ Changes to the packages collection and infrastructure in 2003:
|
|||
Updated gmplayer to 1.0rc1 [jmmv 2003-09-02]
|
||||
Updated mencoder to 1.0rc1 [jmmv 2003-09-02]
|
||||
Updated subversion to 0.28.2 [epg 2003-09-02]
|
||||
Updated libnbcompat to 20030824 [jlam 2003-09-02]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.13 2003/09/01 15:31:14 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2003/09/03 03:28:28 jlam Exp $
|
||||
#
|
||||
|
||||
DISTNAME= libnbcompat-20030823
|
||||
DISTNAME= libnbcompat-20030824
|
||||
CATEGORIES= pkgtools
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
@comment $NetBSD: PLIST,v 1.5 2003/09/01 15:31:14 jlam Exp $
|
||||
include/libnbcompat/extern.h
|
||||
@comment $NetBSD: PLIST,v 1.6 2003/09/03 03:28:28 jlam Exp $
|
||||
include/libnbcompat/err.h
|
||||
include/libnbcompat/ftpglob.h
|
||||
include/libnbcompat/fts.h
|
||||
include/libnbcompat/getopt.h
|
||||
include/libnbcompat/md5.h
|
||||
include/libnbcompat/mtree.h
|
||||
include/libnbcompat/namespace.h
|
||||
include/libnbcompat/nbcompat.h
|
||||
include/libnbcompat/nbconfig.h
|
||||
include/libnbcompat/nbtypes.h
|
||||
|
@ -15,7 +13,6 @@ include/libnbcompat/pwcache.h
|
|||
include/libnbcompat/rmd160.h
|
||||
include/libnbcompat/sha1.h
|
||||
include/libnbcompat/sha2.h
|
||||
include/libnbcompat/stat_flags.h
|
||||
include/libnbcompat/util.h
|
||||
include/libnbcompat/vis.h
|
||||
lib/libnbcompat.a
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.in,v 1.10 2003/09/02 01:54:39 jlam Exp $
|
||||
# $NetBSD: Makefile.in,v 1.11 2003/09/03 03:28:29 jlam Exp $
|
||||
#
|
||||
|
||||
srcdir= @srcdir@
|
||||
|
@ -19,9 +19,9 @@ RANLIB= @RANLIB@
|
|||
|
||||
LIB= libnbcompat.a
|
||||
|
||||
INCS= extern.h err.h ftpglob.h fts.h getopt.h md5.h mtree.h \
|
||||
namespace.h nbcompat.h nbtypes.h pack_dev.h pwcache.h \
|
||||
rmd160.h sha1.h sha2.h stat_flags.h util.h vis.h
|
||||
INCS= err.h ftpglob.h fts.h getopt.h md5.h mtree.h \
|
||||
nbcompat.h nbtypes.h pack_dev.h pwcache.h \
|
||||
rmd160.h sha1.h sha2.h util.h vis.h
|
||||
|
||||
OBJS= @LIBOBJS@ \
|
||||
md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o sha1hl.o \
|
||||
|
|
65
pkgtools/libnbcompat/files/configure
vendored
65
pkgtools/libnbcompat/files/configure
vendored
|
@ -2521,6 +2521,71 @@ AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
|
|||
|
||||
|
||||
|
||||
|
||||
echo "$as_me:$LINENO: checking for fparseln in -lutil" >&5
|
||||
echo $ECHO_N "checking for fparseln in -lutil... $ECHO_C" >&6
|
||||
if test "${ac_cv_lib_util_fparseln+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lutil $LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
builtin and then its argument prototype would still apply. */
|
||||
char fparseln ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
fparseln ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
(eval $ac_link) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest$ac_exeext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_lib_util_fparseln=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_cv_lib_util_fparseln=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_lib_util_fparseln" >&5
|
||||
echo "${ECHO_T}$ac_cv_lib_util_fparseln" >&6
|
||||
if test $ac_cv_lib_util_fparseln = yes; then
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBUTIL 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-lutil $LIBS"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
|
|
|
@ -23,6 +23,9 @@ AC_SUBST(AUTOCONF)
|
|||
AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
|
||||
AC_SUBST(AUTOHEADER)
|
||||
|
||||
dnl Checks for libraries
|
||||
AC_CHECK_LIB(util, fparseln)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
||||
|
|
|
@ -109,6 +109,9 @@
|
|||
/* Define to 1 if you have the `lchown' function. */
|
||||
#undef HAVE_LCHOWN
|
||||
|
||||
/* Define to 1 if you have the `util' library (-lutil). */
|
||||
#undef HAVE_LIBUTIL
|
||||
|
||||
/* Define to 1 if you have the <libutil.h> header file. */
|
||||
#undef HAVE_LIBUTIL_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: util.h,v 1.2 2003/09/01 15:31:21 jlam Exp $ */
|
||||
/* $NetBSD: util.h,v 1.3 2003/09/03 03:28:29 jlam Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995
|
||||
|
@ -106,19 +106,14 @@ int ttylock(const char *, int, pid_t *);
|
|||
char *ttymsg(struct iovec *, int, const char *, int);
|
||||
int ttyunlock(const char *);
|
||||
|
||||
#ifndef HAVE_STRSEP
|
||||
char *strsep(char **, const char *);
|
||||
#if !HAVE_STRSEP
|
||||
char *strsep(char **, const char *);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FGETLN
|
||||
char *fgetln(FILE *, size_t *);
|
||||
#define LIST_EMPTY(head) ((head)->lh_first == NULL)
|
||||
#define LIST_FIRST(head) ((head)->lh_first)
|
||||
#define LIST_NEXT(elm, field) ((elm)->field.le_next)
|
||||
#if !HAVE_FGETLN
|
||||
char *fgetln(FILE *, size_t *);
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
static int isescaped(const char *, const char *, int);
|
||||
|
||||
#endif /* !_UTIL_H_ */
|
||||
|
|
Loading…
Reference in a new issue