Skip to Content.
Sympa Menu

freetds - Re: Mac OS X install directions / web pages / otherhelp resources?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: James Cameron <cameron AT stl.dec.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Mac OS X install directions / web pages / otherhelp resources?
  • Date: Thu, 08 Nov 2001 14:27:09 +1100

Brian Bruns wrote:
> What information does AC_FUNC_MALLOC give us?

All it apparently does is to define HAVE_MALLOC, presumably on the
grounds that if you don't you can compile one yourself. Doesn't seem
useful.

http://www.gnu.org/manual/autoconf-2.52/html_node/autoconf_45.html

I'm thinking AC_CHECK_HEADERS(malloc.h) is the most appropriate. I've
made the changes, tested configuration and build on Linux, and it seems
to be fine. Patch relative to CVS attached for Norman to try out for
us.

Norman: can you try this patch against your system, using current CVS,
with your temporary malloc.h removed? If it passes, I'll commit it to
CVS and we can call the issue closed. Procedure to follow:

- undo the malloc.h change you made,
- perform a 'cvs update' (or 'cvs checkout' if you have no copy yet),
- apply the attached patch (patch < malloc.patch),
- run the configure script,
- note whether malloc.h was found (should not have been),
- run the make,
- note whether the make failed at all.

--
James Cameron (cameron AT stl.dec.com)

http://www.linux.org/ http://www.linux.org.au/ http://www.freshmeat.net/Index: ChangeLog
===================================================================
RCS file: /cvsroot/freetds/freetds/ChangeLog,v
retrieving revision 1.20
diff -u -u -r1.20 ChangeLog
--- ChangeLog 2001/11/08 02:57:11 1.20
+++ ChangeLog 2001/11/08 03:22:48
@@ -1,3 +1,9 @@
+Thu Nov 8 14:21:47 2001 James Cameron <quozl AT us.netrek.org>
+
+ * include/tds.h.in: surround malloc.h include with HAVE_MALLOC_H
+ * include/config.h.in: add HAVE_MALLOC_H
+ * configure.in: add check for malloc.h
+
Thu Nov 8 13:55:20 2001 James Cameron <quozl AT us.netrek.org>

* .cvsignore: populate list of files to ignore during cvs update.
Index: configure.in
===================================================================
RCS file: /cvsroot/freetds/freetds/configure.in,v
retrieving revision 1.6
diff -u -u -r1.6 configure.in
--- configure.in 2001/10/30 00:38:24 1.6
+++ configure.in 2001/11/08 03:22:50
@@ -31,6 +31,7 @@
dnl Checks for header files.
dnl ------------------------------------------------------------
AC_HEADER_STDC
+AC_CHECK_HEADERS(malloc.h)

dnl ------------------------------------------------------------
dnl Checks for integers/floats of different sizes
Index: include/tds.h.in
===================================================================
RCS file: /cvsroot/freetds/freetds/include/tds.h.in,v
retrieving revision 1.5
diff -u -u -r1.5 tds.h.in
--- include/tds.h.in 2001/11/07 20:40:45 1.5
+++ include/tds.h.in 2001/11/08 03:22:56
@@ -54,8 +54,7 @@
#include <string.h>
#include <stdlib.h>
#include <time.h>
-/* FIX ME -- use autoconf for the existance of malloc.h */
-#ifndef __APPLE__
+#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <sys/time.h>
Index: include/config.h.in
===================================================================
RCS file: /cvsroot/freetds/freetds/include/config.h.in,v
retrieving revision 1.1
diff -u -u -r1.1 config.h.in
--- include/config.h.in 2001/10/24 23:19:44 1.1
+++ include/config.h.in 2001/11/08 03:22:56
@@ -7,6 +7,10 @@
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN

+/* Define if malloc.h exists, otherwise malloc is likely to be in
+ ANSI C headers */
+#undef HAVE_MALLOC_H
+
#undef BSD_COMP

/* The number of bytes in a char. */


  • Re: Mac OS X install directions / web pages / otherhelp resources?, James Cameron, 11/07/2001

Archive powered by MHonArc 2.6.24.

Top of Page