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 :)
This commit is contained in:
Marc G. Fournier 1997-12-19 02:09:10 +00:00
parent 30856a3904
commit 5379b84eff
35 changed files with 383 additions and 322 deletions

View File

@ -7,7 +7,7 @@
*
*
* 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 @@
#include <sys/resource.h>
#endif
/* #include <port-protos.h> */
/* #include <port-protos.h> */ /* Why? */
extern int BlowawayRelationBuffers(Relation rdesc, BlockNumber block);

View File

@ -7,7 +7,7 @@
*
*
* 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 @@
#include "miscadmin.h"
#include "bootstrap/bootstrap.h"/* for BootstrapMain() */
#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 "\
\n\"root\" execution of the PostgreSQL backend is not permitted\n\n\

View File

@ -5,16 +5,18 @@
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for optimizer/path
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for optimizer/plan
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for optimizer/prep
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for optimizer/util
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -19,20 +19,14 @@
# be converted to Method 2.
#
# 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=../..
include ../../Makefile.global
ifndef PORTNAME
.DEFAULT all:
@echo "Error: Must invoke make with PORTNAME= argument."
@false
else
OBJS = $(PORTNAME)/SUBSYS.o @INET_ATON@ @STRERROR@
OBJS = @PORTNAME@/SUBSYS.o @INET_ATON@ @STRERROR@
all: submake SUBSYS.o
@ -42,19 +36,16 @@ SUBSYS.o: $(OBJS)
.PHONY: submake clean dep
submake:
$(MAKE) -C $(PORTNAME) SUBSYS.o
$(MAKE) -C @PORTNAME@ SUBSYS.o
clean:
rm -f SUBSYS.o $(OBJS)
$(MAKE) -C $(PORTNAME) clean
$(MAKE) -C @PORTNAME@ clean
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
$(MAKE) -C $(PORTNAME) $@
$(MAKE) -C @PORTNAME@ $@
ifeq (depend,$(wildcard depend))
include depend
endif
endif

View File

@ -4,16 +4,18 @@
# Makefile for postmaster
#
# 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 = ../..
include ../../Makefile.global
INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
-I../../include
INCLUDE_OPT = -I..
ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -10,7 +10,7 @@
*
*
* 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
*
@ -87,7 +87,9 @@
#include "utils/mcxt.h"
#include "storage/proc.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"
#if defined(DBX_VERSION)

View File

@ -4,21 +4,22 @@
# Makefile for regex
#
# 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 = ../..
include ../../Makefile.global
INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
-I../../include
INCLUDE_OPT = -I..
ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)
CFLAGS+=-DPOSIX_MISTAKE
OBJS = regcomp.o regerror.o regexec.o regfree.o
all: SUBSYS.o

View File

@ -4,16 +4,18 @@
# Makefile for rewrite
#
# 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 = ../..
include ../../Makefile.global
INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
-I../../include
INCLUDE_OPT = -I..
ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/buffer
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/file
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/ipc
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/large_object
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/lmgr
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/page
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for storage/smgr
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for tcop
#
# 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= ../..
include ../../Makefile.global
INCLUDE_OPT= -I.. \
-I../port/$(PORTNAME) \
-I../../include
INCLUDE_OPT= -I..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+= $(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/adt
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -7,7 +7,7 @@
*
*
* 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 @@
#include "catalog/pg_type.h"
#include "utils/builtins.h"
#include "port-protos.h" /* For random(), sometimes */
#ifndef HAVE_RANDOM
# include "port-protos.h" /* For random(), sometimes */
#endif
/*-------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@
*
*
* 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 @@
#else
#include <string.h>
#endif
#include <port-protos.h> /* ecvt(), fcvt() */
#ifndef HAVE_FCVT
# include <port-protos.h> /* ecvt(), fcvt() */
#endif
#ifndef INT_MAX
#define INT_MAX (0x7FFFFFFFL)
@ -334,7 +337,7 @@ frac_out:
*a = 0;
avail = a - ascii;
return (avail);
#endif /* !BSD44_derived */
#endif
}
#endif

View File

@ -4,16 +4,18 @@
# Makefile for utils/cache
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/error
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/fmgr
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/hash
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/init
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)

View File

@ -4,15 +4,18 @@
# Makefile for utils/misc
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/mmgr
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/sort
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

View File

@ -4,16 +4,18 @@
# Makefile for utils/time
#
# 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 = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)

387
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -40,6 +40,8 @@ nextstep*) PORTNAME='nextstep';;
exit;;
esac
AC_SUBST(PORTNAME)
echo "checking echo setting..."
if echo '\c' | grep -s c >/dev/null 2>&1
then
@ -270,6 +272,7 @@ AC_PROG_CPP
AC_LINK_FILES(include/port/${PORTNAME}.h, include/os.h)
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(LDFLAGS)
AC_SUBST(CPPFLAGS)
@ -452,7 +455,7 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
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(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')

View File

@ -56,6 +56,9 @@
/* Set to 1 if you have tzset() */
#undef HAVE_TZSET
/* Set to 1 if you have gethostname() */
#undef HAVE_GETHOSTNAME
/* Set to 1 if you have int timezone */
#undef HAVE_INT_TIMEZONE