-Sun Dec 12 17:20:12 CET 1999
+Sun Dec 12 23:59:25 CET 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * dselect/main.cc: We need to printf programdesc as well
+ * autogen.sh: Remove libtoolize call
+ * automake/sysconf.m4: new autoconf-macros for sysconf
+ * filesdb/main.c: also check MEMINFO_IN_SYSINFO
+ * configure.in: remove ugly sysinfo-hacks to use new ac macros instead
+ * utils/start-stop-daemon.c: modify to build on sunos
+
+Sun Dec 12 17:20:12 CET 1999 Wichert Akkerman <wakkerma@debian.org>
* Update the Swedish translation
* start-stop-daemon.c: check exitnodo-flag if we fail to kill a
/* Defined to the $(libdir) location */
#undef LLIBDIR
+/* Is sysinfo() persent */
+#undef HAVE_SYSINFO
+
+/* Do we have proper memory information in struct sysinfo */
+#undef MEMINFO_IN_SYSINFO
+
# Start by setting up everything for main tree
aclocal -I ./automake
gettextize $copy -f
-libtoolize --force $copy
autoheader
autoconf
AC_CHECK_LIB(shouldbeinlibc, fmt_past_time)
AC_CHECK_LIB(ps, proc_stat_list_pid_proc_stat)
-AC_CHECK_FUNC(sysinfo,
- AC_DEFINE(HAVE_SYSINFO),
- AC_MSG_CHECKING(__NR_sysinfo)
- AC_EGREP_CPP(yes, [
-#include <linux/sys.h>
-#include <linux/kernel.h>
-#include <linux/unistd.h>
-#ifdef __NR_sysinfo
- yes
-#endif
-],
- AC_MSG_RESULT([yes; tsk tsk - get your libc fixed.])
- AC_DEFINE(HAVE_NRSYSINFO),
- AC_MSG_RESULT(no)
- AC_MSG_WARN([sysinfo missing; compilation of dpkg proper may fail.])))
+AC_HAVE_SYSINFO
+AC_MEMINFO_IN_SYSINFO
AC_SUBST(OPTCFLAGS)
if test "${GCC-no}" = yes; then
AC_TRY_COMPILE(,[
} inline int foo (int x) {], AC_DEFINE(HAVE_INLINE))
-AC_TRY_COMPILE(,
- [extern int testfunction(int x) __attribute__((,,))],
- AC_DEFINE(HAVE_GNUC25_ATTRIB)
- AC_TRY_COMPILE(,
- [extern int testfunction(int x) __attribute__((noreturn))],
- AC_DEFINE(HAVE_GNUC25_NORETURN))
- AC_TRY_COMPILE(,
- [extern int testfunction(int x) __attribute__((const))],
- AC_DEFINE(HAVE_GNUC25_CONST))
- AC_TRY_COMPILE(,
- [extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))],
- AC_DEFINE(HAVE_GNUC25_PRINTFFORMAT))
- )
DPKG_C_GCC_TRY_WARNS(-Wall -Wno-implicit, dpkg_cv_c_gcc_warn_all)
DPKG_C_GCC_TRY_WARNS(-Wwrite-strings, dpkg_cv_c_gcc_warn_writestrings)
* No longer byte-compile for emacs
* Add Swedish translation
* start-stop-daemon: honour --oknodo if we fail to kill a process
- Closes: Bug# 52580
+ Closes: Bug#52580,#52185
+ * Fix dselect program description, Closes: Bug#52328
-- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
clear();
attrset(A_BOLD);
- mvaddnstr(0,0, gettext(programdesc),x-1);
+ sprintf(buf,gettext(programdesc),DSELECT);
+ mvaddnstr(0,0,buf,x-1);
attrset(A_NORMAL);
const struct menuentry *mep; int i;
}
static int autodetect_largemem(void) {
-#ifdef HAVE_SYSINFO
+#if defined(HAVE_SYSINFO) && defined (MEMINFO_IN_SYSINFO)
struct sysinfo info;
if (sysinfo(&info)) return 0;
if (info.freeram + (info.sharedram>>2) + (info.bufferram>>2) < 24576*1024 &&
#define OSLinux
#endif
+#ifdef sunos
+#define OSsunos
+#endif
+
#ifdef __GNU__
#define OSHURD
#endif
#include <grp.h>
#include <sys/ioctl.h>
#include <sys/types.h>
+#include <sys/termios.h>
#include <fcntl.h>
#ifdef HAVE_ERROR_H
}
}
-
-#if defined(OSLinux)
+/* WTA: this needs to be an autoconf check for /proc/pid existance.
+ */
+#if defined(OSLinux) || defined (OSsunos)
static void
do_procinit(void)
{