aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2002-09-04 22:54:18 +0000
committerPeter Eisentraut <peter_e@gmx.net>2002-09-04 22:54:18 +0000
commite43ecb3d1a1c5af574fdd6333bdd64330a148bf6 (patch)
tree897b6c54db9c33efff536be673cc6d94fd490d54 /src
parentbe475f92cd43ce0c66246cb488fb29b0a12f5674 (diff)
downloadpostgresql-e43ecb3d1a1c5af574fdd6333bdd64330a148bf6.tar.gz
postgresql-e43ecb3d1a1c5af574fdd6333bdd64330a148bf6.zip
Remove leftovers from subproject removals. Fixes for Python and Kerberos
configuration.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in26
-rw-r--r--src/Makefile.shlib80
-rw-r--r--src/include/c.h3
-rw-r--r--src/include/pg_config.h.in16
-rw-r--r--src/include/pg_config.h.win328
-rw-r--r--src/makefiles/Makefile.hpux5
-rw-r--r--src/makefiles/Makefile.qnx43
-rw-r--r--src/makefiles/Makefile.sco5
-rw-r--r--src/makefiles/Makefile.solaris7
-rw-r--r--src/makefiles/Makefile.sunos45
-rw-r--r--src/makefiles/Makefile.unixware5
-rw-r--r--src/template/aix1
-rw-r--r--src/template/freebsd3
-rw-r--r--src/template/hpux2
-rw-r--r--src/template/osf3
-rw-r--r--src/template/unixware1
16 files changed, 17 insertions, 156 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 5f73c93f3b0..e0fd91dc92d 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.154 2002/09/03 21:45:41 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.155 2002/09/04 22:54:18 petere Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -121,7 +121,6 @@ localedir := @localedir@
#
# Records the choice of the various --enable-xxx and --with-xxx options.
-with_CXX = @with_CXX@
with_java = @with_java@
with_perl = @with_perl@
with_python = @with_python@
@@ -177,13 +176,6 @@ ifeq ($(GCC), yes)
CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations
endif
-CXX = @CXX@
-GXX = @GXX@
-CXXFLAGS = @CXXFLAGS@
-ifeq ($(GXX), yes)
- CXXFLAGS += -Wall
-endif
-
# Kind-of compilers
YACC = @YACC@
@@ -207,13 +199,10 @@ X = @EXEEXT@
# Perl
PERL = @PERL@
-perl_installsitearch = @perl_installsitearch@
-perl_installman3dir = @perl_installman3dir@
perl_archlibexp = @perl_archlibexp@
perl_privlibexp = @perl_privlibexp@
perl_useshrplib = @perl_useshrplib@
perl_embed_ldflags = @perl_embed_ldflags@
-perl_man3ext = @perl_man3ext@
# Miscellaneous
@@ -224,7 +213,6 @@ MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
PYTHON = @PYTHON@
TAR = @TAR@
-WISH = @WISH@
XGETTEXT = @XGETTEXT@
GZIP = gzip
@@ -436,10 +424,6 @@ ifndef COMPILE.c
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
endif
-ifndef COMPILE.cc
-COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
-endif
-
DEPDIR = .deps
df = $(DEPDIR)/$(*F)
@@ -462,14 +446,6 @@ ifeq ($(GCC), yes)
endif # GCC
-ifeq ($(GXX), yes)
-
-%.o : %.cc
- $(COMPILE.cc) -o $@ $< -MMD
- $(postprocess-depend)
-
-endif # GXX
-
# Include all the dependency files generated for the current
# directory. List /dev/null as dummy because if the wildcard expands
# to nothing then make would complain.
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index d44920520a5..7140b451d2c 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.62 2002/09/04 15:45:50 tgl Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.63 2002/09/04 22:54:18 petere Exp $
#
#-------------------------------------------------------------------------
@@ -58,33 +58,9 @@
# bjm 2001-02-10
-ifndef cplusplus
COMPILER = $(CC) $(CFLAGS)
-else
-COMPILER = $(CXX) $(CXXFLAGS)
-endif
-
-
-# First, a few hacks for building *static* libraries.
-
LINK.static = $(AR) $(AROPT)
-ifdef cplusplus
-
-ifeq ($(PORTNAME), irix5)
- ifneq ($(GXX), yes)
- LINK.static = $(CXX) -ar -o
- endif
-endif
-
-ifeq ($(PORTNAME), solaris)
- ifneq ($(GXX), yes)
- LINK.static = $(CXX) -xar -o
- endif
-endif
-
-endif # cplusplus
-
ifeq ($(enable_shared), yes)
@@ -95,14 +71,7 @@ ifeq ($(enable_shared), yes)
# Try to keep the sections in some kind of order, folks...
-ifndef cplusplus
- override CFLAGS += $(CFLAGS_SL)
-else
- ifndef CXXFLAGS_SL
- CXXFLAGS_SL = $(CFLAGS_SL)
- endif
- override CXXFLAGS += $(CXXFLAGS_SL)
-endif
+override CFLAGS += $(CFLAGS_SL)
soname = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
@@ -174,18 +143,10 @@ endif
ifeq ($(PORTNAME), solaris)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- ifndef cplusplus
- ifeq ($(GCC), yes)
- LINK.shared = $(CC) -shared
- else
- LINK.shared = $(CC) -G
- endif
+ ifeq ($(GCC), yes)
+ LINK.shared = $(CC) -shared
else
- ifeq ($(GXX), yes)
- LINK.shared = $(CXX) -shared
- else
- LINK.shared = $(CXX) -G
- endif
+ LINK.shared = $(CC) -G
endif
ifeq ($(with_gnu_ld), yes)
LINK.shared += -Wl,-soname,$(soname)
@@ -206,19 +167,11 @@ endif
ifeq ($(PORTNAME), sco)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- ifndef cplusplus
- ifeq ($(GCC), yes)
- LINK.shared = $(CC) -shared
- else
- LINK.shared = $(CC) -G
- endif
+ ifeq ($(GCC), yes)
+ LINK.shared = $(CC) -shared
else
- ifeq ($(GXX), yes)
- LINK.shared = $(CXX) -shared
- else
- LINK.shared = $(CXX) -G
+ LINK.shared = $(CC) -G
endif
- endif
LINK.shared += -Wl,-z,text -Wl,-h,$(soname)
endif
@@ -234,27 +187,16 @@ endif
ifeq ($(PORTNAME), unixware)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- ifndef cplusplus
- ifeq ($(GCC), yes)
- LINK.shared = $(CC) -shared
- else
- LINK.shared = $(CC) -G
- endif
+ ifeq ($(GCC), yes)
+ LINK.shared = $(CC) -shared
else
- ifeq ($(GXX), yes)
- LINK.shared = $(CXX) -shared
- else
- LINK.shared = $(CXX) -G
- endif
+ LINK.shared = $(CC) -G
endif
LINK.shared += -Wl,-z,text -Wl,-h,$(soname)
endif
ifeq ($(PORTNAME), win)
shlib := $(NAME)$(DLSUFFIX)
- ifdef cplusplus
- SHLIB_LINK += --driver-name g++
- endif
endif
ifeq ($(PORTNAME), beos)
diff --git a/src/include/c.h b/src/include/c.h
index 39dbc5d1d87..4e1680a94ed 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.125 2002/09/04 20:31:36 momjian Exp $
+ * $Id: c.h,v 1.126 2002/09/04 22:54:18 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -149,7 +149,6 @@
/* BeOS defines bool already, but the compiler chokes on the
* #ifndef unless we wrap it in this check.
*/
-/* Also defined in interfaces/odbc/md5.h */
#ifndef __BEOS__
#ifndef __cplusplus
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 670c80a4030..2d03838ed2d 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -8,7 +8,7 @@
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
* changes will be overwritten the next time you run configure.
*
- * $Id: pg_config.h.in,v 1.30 2002/09/02 01:05:06 tgl Exp $
+ * $Id: pg_config.h.in,v 1.31 2002/09/04 22:54:18 petere Exp $
*/
#ifndef PG_CONFIG_H
@@ -36,7 +36,7 @@
/* Set to 1 if you want 64-bit integer timestamp and interval support (--enable-integer-datetimes) */
#undef USE_INTEGER_DATETIMES
-/* Set to 1 if you want cyrillic recode (--enable-recode) */
+/* Set to 1 if you want single-byte recode (--enable-recode) */
#undef CYR_RECODE
/* Set to 1 if you want ASSERT checking (--enable-cassert) */
@@ -81,12 +81,6 @@
/* location of locale files */
#undef LOCALEDIR
-/* Define to build the ODBC driver for unixODBC */
-#undef WITH_UNIXODBC
-
-/* Define to build the ODBC driver for iODBC */
-#undef WITH_IODBC
-
/*
*------------------------------------------------------------------------
@@ -649,12 +643,6 @@ extern int fdatasync(int fildes);
/* Define if POSIX signal interface is available */
#undef HAVE_POSIX_SIGNALS
-/* Define if C++ compiler accepts "using namespace std" */
-#undef HAVE_NAMESPACE_STD
-
-/* Define if C++ compiler accepts "#include <string>" */
-#undef HAVE_CXX_STRING_HEADER
-
/* Define if you have the optreset variable */
#undef HAVE_INT_OPTRESET
diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index 594c5a8356e..9f8fe465228 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -16,17 +16,9 @@
#define MAXPGPATH 1024
-#define BLCKSZ 8192
-
-#define INDEX_MAX_KEYS 32
-#define FUNC_MAX_ARGS INDEX_MAX_KEYS
-
#define HAVE_ATEXIT
#define HAVE_MEMMOVE
-#define HAVE_CXX_STRING_HEADER
-#define HAVE_NAMESPACE_STD
-
/* use _snprintf instead of snprintf */
#define HAVE_DECL_SNPRINTF 1
#define snprintf _snprintf
diff --git a/src/makefiles/Makefile.hpux b/src/makefiles/Makefile.hpux
index cfdbee114b9..d1d18fb878f 100644
--- a/src/makefiles/Makefile.hpux
+++ b/src/makefiles/Makefile.hpux
@@ -42,11 +42,6 @@ CFLAGS_SL = -fPIC
else
CFLAGS_SL = +z
endif
-ifeq ($(GXX), yes)
-CXXFLAGS_SL = -fPIC
-else
-CXXFLAGS_SL = +z
-endif
# Rule for building shared libs (currently used only for regression test
# shlib ... should go away, since this is not really enough knowledge)
diff --git a/src/makefiles/Makefile.qnx4 b/src/makefiles/Makefile.qnx4
index 23364955ed2..de82e7f1ea5 100644
--- a/src/makefiles/Makefile.qnx4
+++ b/src/makefiles/Makefile.qnx4
@@ -13,7 +13,4 @@ CFLAGS_SL =
%$(DLSUFFIX): %.o
@echo 'cannot make shared object $@ from $<'
-override CXXFLAGS +=-I/usr/local/include/g++
-override CFLAGS +=-I/usr/local/include
-
sqlmansect = 7
diff --git a/src/makefiles/Makefile.sco b/src/makefiles/Makefile.sco
index 4cd2bcfe2f3..0d8a7c8b231 100644
--- a/src/makefiles/Makefile.sco
+++ b/src/makefiles/Makefile.sco
@@ -8,11 +8,6 @@ CFLAGS_SL = -fpic
else
CFLAGS_SL = -K PIC
endif
-ifeq ($(GXX), yes)
-CXXFLAGS_SL = -fpic
-else
-CXXFLAGS_SL = -K PIC
-endif
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
diff --git a/src/makefiles/Makefile.solaris b/src/makefiles/Makefile.solaris
index 3bc4f5a914f..eb7dbd79a34 100644
--- a/src/makefiles/Makefile.solaris
+++ b/src/makefiles/Makefile.solaris
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.8 2001/11/11 19:20:53 momjian Exp $
+# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.9 2002/09/04 22:54:18 petere Exp $
AROPT = crs
@@ -16,11 +16,6 @@ CFLAGS_SL = -fPIC
else
CFLAGS_SL = -KPIC
endif
-ifeq ($(GXX), yes)
-CXXFLAGS_SL = -fPIC
-else
-CXXFLAGS_SL = -KPIC
-endif
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
diff --git a/src/makefiles/Makefile.sunos4 b/src/makefiles/Makefile.sunos4
index f9e9fc63d90..d408dd3c462 100644
--- a/src/makefiles/Makefile.sunos4
+++ b/src/makefiles/Makefile.sunos4
@@ -6,11 +6,6 @@ CFLAGS_SL = -fpic
else
CFLAGS_SL = -PIC
endif
-ifeq ($(GXX), yes)
-CXXFLAGS_SL = -fPIC
-else
-CXXFLAGS_SL = -PIC
-endif
%.so: %.o
$(LD) -assert pure-text -Bdynamic -o $@ $<
diff --git a/src/makefiles/Makefile.unixware b/src/makefiles/Makefile.unixware
index 5722c46a177..9e4d715932a 100644
--- a/src/makefiles/Makefile.unixware
+++ b/src/makefiles/Makefile.unixware
@@ -20,11 +20,6 @@ CFLAGS_SL = -fpic
else
CFLAGS_SL = -K PIC
endif
-ifeq ($(GXX), yes)
-CXXFLAGS_SL = -fpic
-else
-CXXFLAGS_SL = -K PIC
-endif
ifeq ($(GCC), yes)
SO_FLAGS = -shared
else
diff --git a/src/template/aix b/src/template/aix
index 4a987da8997..768d38d88df 100644
--- a/src/template/aix
+++ b/src/template/aix
@@ -6,5 +6,4 @@ else # not GCC
aix3.2.5 | aix4.1*)
CFLAGS='-qmaxmem=16384 -qsrcmsg' ;;
esac
- CCC=xlC
fi # not GCC
diff --git a/src/template/freebsd b/src/template/freebsd
index a917d3f203a..89958c28b73 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -1,6 +1,5 @@
CFLAGS='-pipe'
case $host_cpu in
- alpha*) CFLAGS="$CFLAGS -O"
- GCC_CXXFLAGS="-O";;
+ alpha*) CFLAGS="$CFLAGS -O" ;;
esac
diff --git a/src/template/hpux b/src/template/hpux
index db43432a5e8..4db8f44eba1 100644
--- a/src/template/hpux
+++ b/src/template/hpux
@@ -1,8 +1,6 @@
if test "$GCC" = yes ; then
CFLAGS=-O2
- CCC=g++
else
CC="$CC -Ae"
CFLAGS=+O2
- CCC=aCC
fi
diff --git a/src/template/osf b/src/template/osf
index c38cbec8b59..2d782ea1c3e 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -1,9 +1,6 @@
if test "$GCC" = yes ; then
CFLAGS=
- CCC=g++
else
CC="$CC -std"
CFLAGS='-O4 -Olimit 2000'
- CCC=cxx
fi
-VENDOR_CXXFLAGS='-O4 -Olimit 2000'
diff --git a/src/template/unixware b/src/template/unixware
index df54dc5f355..3dc45073c6f 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -3,4 +3,3 @@ if test "$GCC" = yes; then
else
CFLAGS='-O -K inline'
fi
-VENDOR_CXXFLAGS="-O"