Skip to content

Commit

Permalink
Remove leftovers from subproject removals. Fixes for Python and Kerberos
Browse files Browse the repository at this point in the history
configuration.
  • Loading branch information
petere committed Sep 4, 2002
1 parent be475f9 commit e43ecb3
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 306 deletions.
3 changes: 1 addition & 2 deletions aclocal.m4
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
dnl $Header: /cvsroot/pgsql/aclocal.m4,v 1.14 2002/03/29 17:32:48 petere Exp $
dnl $Header: /cvsroot/pgsql/aclocal.m4,v 1.15 2002/09/04 22:54:17 petere Exp $
m4_include([config/ac_func_accept_argtypes.m4])
m4_include([config/c-compiler.m4])
m4_include([config/c-library.m4])
m4_include([config/cxx.m4])
m4_include([config/docbook.m4])
m4_include([config/general.m4])
m4_include([config/java.m4])
Expand Down
64 changes: 0 additions & 64 deletions config/cxx.m4

This file was deleted.

7 changes: 6 additions & 1 deletion config/python.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Autoconf macros for configuring the build of Python extension modules
#
# $Header: /cvsroot/pgsql/config/python.m4,v 1.4 2002/03/29 17:32:54 petere Exp $
# $Header: /cvsroot/pgsql/config/python.m4,v 1.5 2002/09/04 22:54:18 petere Exp $
#

# PGAC_PATH_PYTHON
Expand Down Expand Up @@ -69,6 +69,11 @@ AC_DEFUN([PGAC_CHECK_PYTHON_EMBED_SETUP],
[AC_REQUIRE([_PGAC_CHECK_PYTHON_DIRS])
AC_MSG_CHECKING([how to link an embedded Python application])
if test ! -f "$python_configdir/Makefile"; then
AC_MSG_RESULT(no)
AC_MSG_ERROR([Python Makefile not found])
fi
_python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
_python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
_python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
Expand Down
85 changes: 17 additions & 68 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-integer-datetimes enable 64-bit integer date/time support
--enable-recode enable character set recode support
--enable-recode enable single-byte recode support
--enable-nls[=LANGUAGES] enable Native Language Support
--disable-shared do not build shared libraries
--disable-rpath do not embed shared library search path in executables
Expand All @@ -860,7 +860,7 @@ Optional Packages:
--without-tk do not build Tk interfaces if Tcl is enabled
--with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
--with-tkconfig=DIR tkConfig.sh is in DIR
--with-perl build PL/Perl
--with-perl build Perl modules (PL/Perl)
--with-python build Python interface module
--with-java build JDBC interface and Java tools
--with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
Expand Down Expand Up @@ -2935,7 +2935,7 @@ fi;
#
# Optionally build Perl modules (Pg.pm and PL/Perl)
# Optionally build Perl modules (PL/Perl)
#
echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
Expand Down Expand Up @@ -4105,51 +4105,6 @@ echo "$as_me: WARNING:
fi
if test "$with_tk" = yes; then
# Extract the first word of "wish", so it can be a program name with args.
set dummy wish; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_WISH+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $WISH in
[\\/]* | ?:[\\/]*)
ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
;;
esac
fi
WISH=$ac_cv_path_WISH
if test -n "$WISH"; then
echo "$as_me:$LINENO: result: $WISH" >&5
echo "${ECHO_T}$WISH" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
echo "$as_me: error: 'wish' is required for Tk support" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
Expand Down Expand Up @@ -4191,16 +4146,6 @@ fi
if test "$with_perl" = yes; then
echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
echo "${ECHO_T}$perl_installsitearch" >&6
echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
echo "${ECHO_T}$perl_installman3dir" >&6
echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
Expand All @@ -4216,11 +4161,6 @@ echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
echo "${ECHO_T}$perl_useshrplib" >&6
echo "$as_me:$LINENO: checking for Perl man3ext" >&5
echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
echo "$as_me:$LINENO: result: $perl_man3ext" >&5
echo "${ECHO_T}$perl_man3ext" >&6
echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
Expand Down Expand Up @@ -4307,6 +4247,14 @@ fi
echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
if test ! -f "$python_configdir/Makefile"; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
{ { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
echo "$as_me: error: Python Makefile not found" >&2;}
{ (exit 1); exit 1; }; }
fi
_python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
_python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
_python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
Expand Down Expand Up @@ -9425,7 +9373,12 @@ fi
echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
if test $ac_cv_member_krb5_error_e_data = yes; then
:
cat >>confdefs.h <<_ACEOF
#define HAVE_KRB5_ERROR_E_DATA 1
_ACEOF
else
{ { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
Expand Down Expand Up @@ -16310,14 +16263,10 @@ s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
s,@YACC@,$YACC,;t t
s,@YFLAGS@,$YFLAGS,;t t
s,@WISH@,$WISH,;t t
s,@PERL@,$PERL,;t t
s,@perl_installsitearch@,$perl_installsitearch,;t t
s,@perl_installman3dir@,$perl_installman3dir,;t t
s,@perl_archlibexp@,$perl_archlibexp,;t t
s,@perl_privlibexp@,$perl_privlibexp,;t t
s,@perl_useshrplib@,$perl_useshrplib,;t t
s,@perl_man3ext@,$perl_man3ext,;t t
s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
s,@PYTHON@,$PYTHON,;t t
s,@python_version@,$python_version,;t t
Expand Down
24 changes: 9 additions & 15 deletions configure.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.204 2002/09/04 08:08:29 momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.205 2002/09/04 22:54:18 petere Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
Expand Down Expand Up @@ -155,9 +155,9 @@ AC_MSG_RESULT([$enable_integer_datetimes])
# Character set recode (--enable-recode)
#
AC_MSG_CHECKING([whether to build with recode support])
PGAC_ARG_BOOL(enable, recode, no, [ --enable-recode enable character set recode support],
PGAC_ARG_BOOL(enable, recode, no, [ --enable-recode enable single-byte recode support],
[AC_DEFINE([CYR_RECODE], 1,
[Set to 1 if you want cyrillic recode support (--enable-recode)])])
[Set to 1 if you want single-byte recode support (--enable-recode)])])
AC_MSG_RESULT([$enable_recode])


Expand Down Expand Up @@ -350,10 +350,10 @@ PGAC_ARG_REQ(with, tclconfig, [ --with-tclconfig=DIR tclConfig.sh and tkConf
PGAC_ARG_REQ(with, tkconfig, [ --with-tkconfig=DIR tkConfig.sh is in DIR])

#
# Optionally build Perl modules (Pg.pm and PL/Perl)
# Optionally build Perl modules (PL/Perl)
#
AC_MSG_CHECKING([whether to build Perl modules])
PGAC_ARG_BOOL(with, perl, no, [ --with-perl build PL/Perl])
PGAC_ARG_BOOL(with, perl, no, [ --with-perl build Perl modules (PL/Perl)])
AC_MSG_RESULT([$with_perl])
AC_SUBST(with_perl)

Expand Down Expand Up @@ -570,15 +570,9 @@ if test -z "$YACC"; then
fi
AC_SUBST(YFLAGS)

if test "$with_tk" = yes; then
AC_PATH_PROG(WISH, wish)
test -z "$WISH" && AC_MSG_ERROR(['wish' is required for Tk support])
fi

PGAC_PATH_PERL
if test "$with_perl" = yes; then
PGAC_CHECK_PERL_CONFIGS([installsitearch,installman3dir,
archlibexp,privlibexp,useshrplib,man3ext])
PGAC_CHECK_PERL_CONFIGS([archlibexp,privlibexp,useshrplib])
PGAC_CHECK_PERL_EMBED_LDFLAGS
fi

Expand Down Expand Up @@ -748,9 +742,9 @@ if test "$with_krb5" = yes; then
[#include <krb5.h>])],
[#include <krb5.h>])
AC_CHECK_MEMBERS([krb5_error.text.data], [],
[AC_CHECK_MEMBER([krb5_error.e_data], [],
[AC_MSG_ERROR([could not determine how to extract Kerberos 5 error messages])],
[#include <krb5.h>])],
[AC_CHECK_MEMBERS([krb5_error.e_data], [],
[AC_MSG_ERROR([could not determine how to extract Kerberos 5 error messages])],
[#include <krb5.h>])],
[#include <krb5.h>])
fi

Expand Down
26 changes: 1 addition & 25 deletions src/Makefile.global.in
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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@
Expand Down Expand Up @@ -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@
Expand All @@ -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

Expand All @@ -224,7 +213,6 @@ MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
PYTHON = @PYTHON@
TAR = @TAR@
WISH = @WISH@
XGETTEXT = @XGETTEXT@

GZIP = gzip
Expand Down Expand Up @@ -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)

Expand All @@ -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.
Expand Down
Loading

0 comments on commit e43ecb3

Please sign in to comment.