Commit 5379b84e authored by Marc G. Fournier's avatar Marc G. Fournier

More cleanups. I can now compile without PORTNAME being defined n

Makefile.global.

End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port".  Most, if not everything,
*should* be determined by configure, or by the compiler itself.  Still
work to be done though :)
parent 30856a39
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.54 1997/12/17 04:44:50 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.55 1997/12/19 02:05:33 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
/* #include <port-protos.h> */ /* #include <port-protos.h> */ /* Why? */
extern int BlowawayRelationBuffers(Relation rdesc, BlockNumber block); extern int BlowawayRelationBuffers(Relation rdesc, BlockNumber block);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.10 1997/12/17 04:59:10 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.11 1997/12/19 02:05:42 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
#include "miscadmin.h" #include "miscadmin.h"
#include "bootstrap/bootstrap.h"/* for BootstrapMain() */ #include "bootstrap/bootstrap.h"/* for BootstrapMain() */
#include "tcop/tcopprot.h" /* for PostgresMain() */ #include "tcop/tcopprot.h" /* for PostgresMain() */
/* #include "port-protos.h" */ /* for init_address_fixup() */ #if defined(NOFIXADE) || defined(NOPRINTADE)
# include "port-protos.h" /* for init_address_fixup() */
#endif
#define NOROOTEXEC "\ #define NOROOTEXEC "\
\n\"root\" execution of the PostgreSQL backend is not permitted\n\n\ \n\"root\" execution of the PostgreSQL backend is not permitted\n\n\
......
...@@ -5,16 +5,18 @@ ...@@ -5,16 +5,18 @@
# #
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# $Id: Makefile,v 1.7 1997/04/21 04:26:47 vadim Exp $ # $Id: Makefile,v 1.8 1997/12/19 02:05:51 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for optimizer/path # Makefile for optimizer/path
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/path/Makefile,v 1.3 1996/11/09 06:18:10 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/path/Makefile,v 1.4 1997/12/19 02:05:59 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for optimizer/plan # Makefile for optimizer/plan
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Makefile,v 1.3 1996/11/09 06:18:17 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Makefile,v 1.4 1997/12/19 02:06:07 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for optimizer/prep # Makefile for optimizer/prep
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.4 1997/11/21 18:10:39 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.5 1997/12/19 02:06:10 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for optimizer/util # Makefile for optimizer/util
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.3 1996/11/06 09:29:18 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.4 1997/12/19 02:06:17 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -19,20 +19,14 @@ ...@@ -19,20 +19,14 @@
# be converted to Method 2. # be converted to Method 2.
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.4 1997/04/15 17:39:23 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.5 1997/12/19 02:06:24 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR=../.. SRCDIR=../..
include ../../Makefile.global include ../../Makefile.global
ifndef PORTNAME OBJS = @PORTNAME@/SUBSYS.o @INET_ATON@ @STRERROR@
.DEFAULT all:
@echo "Error: Must invoke make with PORTNAME= argument."
@false
else
OBJS = $(PORTNAME)/SUBSYS.o @INET_ATON@ @STRERROR@
all: submake SUBSYS.o all: submake SUBSYS.o
...@@ -42,19 +36,16 @@ SUBSYS.o: $(OBJS) ...@@ -42,19 +36,16 @@ SUBSYS.o: $(OBJS)
.PHONY: submake clean dep .PHONY: submake clean dep
submake: submake:
$(MAKE) -C $(PORTNAME) SUBSYS.o $(MAKE) -C @PORTNAME@ SUBSYS.o
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
$(MAKE) -C $(PORTNAME) clean $(MAKE) -C @PORTNAME@ clean
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(INCLUDE_OPT) *.c >depend
$(MAKE) -C $(PORTNAME) $@ $(MAKE) -C @PORTNAME@ $@
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend
endif endif
endif
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for postmaster # Makefile for postmaster
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.5 1997/04/02 18:12:39 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.6 1997/12/19 02:06:34 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. \ INCLUDE_OPT = -I..
-I../port/$(PORTNAME) \
-I../../include ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.67 1997/12/15 22:03:59 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.68 1997/12/19 02:06:37 scrappy Exp $
* *
* NOTES * NOTES
* *
...@@ -87,7 +87,9 @@ ...@@ -87,7 +87,9 @@
#include "utils/mcxt.h" #include "utils/mcxt.h"
#include "storage/proc.h" #include "storage/proc.h"
#include "utils/elog.h" #include "utils/elog.h"
#include "port-protos.h" /* For gethostname() */ #ifndef HAVE_GETHOSTNAME
# include "port-protos.h" /* For gethostname() */
#endif
#include "storage/fd.h" #include "storage/fd.h"
#if defined(DBX_VERSION) #if defined(DBX_VERSION)
......
...@@ -4,21 +4,22 @@ ...@@ -4,21 +4,22 @@
# Makefile for regex # Makefile for regex
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.2 1996/11/09 06:20:58 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.3 1997/12/19 02:06:41 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. \ INCLUDE_OPT = -I..
-I../port/$(PORTNAME) \
-I../../include ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
CFLAGS+=-DPOSIX_MISTAKE CFLAGS+=-DPOSIX_MISTAKE
OBJS = regcomp.o regerror.o regexec.o regfree.o OBJS = regcomp.o regerror.o regexec.o regfree.o
all: SUBSYS.o all: SUBSYS.o
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for rewrite # Makefile for rewrite
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.3 1996/11/09 06:21:12 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.4 1997/12/19 02:06:48 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. \ INCLUDE_OPT = -I..
-I../port/$(PORTNAME) \
-I../../include ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/buffer # Makefile for storage/buffer
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.3 1996/11/09 06:21:30 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.4 1997/12/19 02:06:56 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/file # Makefile for storage/file
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.2 1996/11/09 06:21:38 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.3 1997/12/19 02:07:04 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/ipc # Makefile for storage/ipc
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.4 1997/09/18 14:20:08 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.5 1997/12/19 02:07:13 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/large_object # Makefile for storage/large_object
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.3 1996/11/09 06:21:59 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.4 1997/12/19 02:07:20 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/lmgr # Makefile for storage/lmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.3 1996/11/09 06:22:05 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.4 1997/12/19 02:07:24 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/page # Makefile for storage/page
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.3 1996/11/09 06:22:14 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.4 1997/12/19 02:07:28 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for storage/smgr # Makefile for storage/smgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.3 1996/11/09 06:22:28 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.4 1997/12/19 02:07:34 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for tcop # Makefile for tcop
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.12 1997/04/24 13:25:07 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.13 1997/12/19 02:07:43 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR= ../.. SRCDIR= ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT= -I.. \ INCLUDE_OPT= -I..
-I../port/$(PORTNAME) \
-I../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+= $(INCLUDE_OPT) CFLAGS+= $(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/adt # Makefile for utils/adt
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.8 1997/04/09 08:36:04 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.9 1997/12/19 02:07:55 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.10 1997/09/08 21:48:31 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.11 1997/12/19 02:07:59 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "port-protos.h" /* For random(), sometimes */ #ifndef HAVE_RANDOM
# include "port-protos.h" /* For random(), sometimes */
#endif
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.17 1997/11/17 16:26:27 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.18 1997/12/19 02:08:01 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
#else #else
#include <string.h> #include <string.h>
#endif #endif
#include <port-protos.h> /* ecvt(), fcvt() */
#ifndef HAVE_FCVT
# include <port-protos.h> /* ecvt(), fcvt() */
#endif
#ifndef INT_MAX #ifndef INT_MAX
#define INT_MAX (0x7FFFFFFFL) #define INT_MAX (0x7FFFFFFFL)
...@@ -334,7 +337,7 @@ frac_out: ...@@ -334,7 +337,7 @@ frac_out:
*a = 0; *a = 0;
avail = a - ascii; avail = a - ascii;
return (avail); return (avail);
#endif /* !BSD44_derived */ #endif
} }
#endif #endif
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/cache # Makefile for utils/cache
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/cache/Makefile,v 1.3 1996/11/06 10:31:16 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/cache/Makefile,v 1.4 1997/12/19 02:08:05 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/error # Makefile for utils/error
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/error/Makefile,v 1.2 1996/11/09 06:23:02 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/error/Makefile,v 1.3 1997/12/19 02:08:09 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/fmgr # Makefile for utils/fmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.3 1997/01/10 18:55:00 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.4 1997/12/19 02:08:15 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/hash # Makefile for utils/hash
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/hash/Makefile,v 1.2 1996/11/09 06:23:33 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/hash/Makefile,v 1.3 1997/12/19 02:08:22 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/init # Makefile for utils/init
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.4 1996/11/14 10:24:32 bryanh Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.5 1997/12/19 02:08:30 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT) CFLAGS += $(INCLUDE_OPT)
......
...@@ -4,15 +4,18 @@ ...@@ -4,15 +4,18 @@
# Makefile for utils/misc # Makefile for utils/misc
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.3 1997/11/07 07:03:37 thomas Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.4 1997/12/19 02:08:42 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../../port/$(PORTNAME) \ INCLUDE_OPT = -I../..
-I../../../include
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT) CFLAGS += $(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/mmgr # Makefile for utils/mmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Makefile,v 1.2 1996/11/09 06:23:50 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Makefile,v 1.3 1997/12/19 02:08:53 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/sort # Makefile for utils/sort
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/sort/Makefile,v 1.2 1996/11/09 06:24:04 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/sort/Makefile,v 1.3 1997/12/19 02:08:58 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -4,16 +4,18 @@ ...@@ -4,16 +4,18 @@
# Makefile for utils/time # Makefile for utils/time
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/time/Makefile,v 1.2 1996/11/09 06:24:12 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/time/Makefile,v 1.3 1997/12/19 02:09:01 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../..
-I../../port/$(PORTNAME) \
-I../../../include ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
This diff is collapsed.
...@@ -40,6 +40,8 @@ nextstep*) PORTNAME='nextstep';; ...@@ -40,6 +40,8 @@ nextstep*) PORTNAME='nextstep';;
exit;; exit;;
esac esac
AC_SUBST(PORTNAME)
echo "checking echo setting..." echo "checking echo setting..."
if echo '\c' | grep -s c >/dev/null 2>&1 if echo '\c' | grep -s c >/dev/null 2>&1
then then
...@@ -270,6 +272,7 @@ AC_PROG_CPP ...@@ -270,6 +272,7 @@ AC_PROG_CPP
AC_LINK_FILES(include/port/${PORTNAME}.h, include/os.h) AC_LINK_FILES(include/port/${PORTNAME}.h, include/os.h)
AC_LINK_FILES(makefiles/Makefile.${PORTNAME}, Makefile.port) AC_LINK_FILES(makefiles/Makefile.${PORTNAME}, Makefile.port)
AC_LINK_FILES(backend/port/${PORTNAME}/port-protos.h, include/port-protos.h)
AC_SUBST(PORTNAME) AC_SUBST(PORTNAME)
AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS)
AC_SUBST(CPPFLAGS) AC_SUBST(CPPFLAGS)
...@@ -452,7 +455,7 @@ AC_FUNC_MEMCMP ...@@ -452,7 +455,7 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_FUNC_VPRINTF AC_FUNC_VPRINTF
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf) AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid random srandom fcvt) AC_CHECK_FUNCS(sigprocmask waitpid setsid random srandom fcvt gethostname)
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o') AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), [STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o']) AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), [STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'])
AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o') AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o')
......
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
/* Set to 1 if you have tzset() */ /* Set to 1 if you have tzset() */
#undef HAVE_TZSET #undef HAVE_TZSET
/* Set to 1 if you have gethostname() */
#undef HAVE_GETHOSTNAME
/* Set to 1 if you have int timezone */ /* Set to 1 if you have int timezone */
#undef HAVE_INT_TIMEZONE #undef HAVE_INT_TIMEZONE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment