Commit 608dbb1b authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Separate out the lextest so that it is run by "make" and "make install".

 Before, "make install" did not run the lextest.
Fix up the ODBC make from this main configure.
Include configure test for "ln -s" in Makefile.global.in.
 Was always in configure, just not carried through to here for use.
parent 3e66e2b1
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.30 1998/10/06 05:42:55 thomas Exp $ # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.31 1998/10/07 06:38:27 thomas Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -24,15 +24,7 @@ ETAGS = @etags@ ...@@ -24,15 +24,7 @@ ETAGS = @etags@
XARGS = @xargs@ XARGS = @xargs@
all: all:
$(MAKE) -C lextest all $(MAKE) lexverify
@if test ! -f lextest/lextest; then \
echo "";\
echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
echo "";\
false;\
else \
true;\
fi
$(MAKE) -C utils all $(MAKE) -C utils all
$(MAKE) -C backend all $(MAKE) -C backend all
$(MAKE) -C interfaces all $(MAKE) -C interfaces all
...@@ -43,14 +35,25 @@ all: ...@@ -43,14 +35,25 @@ all:
fi fi
install: install:
$(MAKE) -C lextest install $(MAKE) lexverify
$(MAKE) -C utils install $(MAKE) -C utils install
$(MAKE) -C backend install $(MAKE) -C backend install
$(MAKE) -C interfaces install
$(MAKE) -C bin install $(MAKE) -C bin install
$(MAKE) -C pl install $(MAKE) -C pl install
$(MAKE) -C interfaces install
cat ../register.txt cat ../register.txt
lexverify:
$(MAKE) -C lextest all
@if test ! -f lextest/lextest; then \
echo "";\
echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
echo "";\
false;\
else \
true;\
fi
clean: clean:
$(MAKE) -C lextest clean $(MAKE) -C lextest clean
$(MAKE) -C utils clean $(MAKE) -C utils clean
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.46 1998/10/06 05:42:56 thomas Exp $ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.47 1998/10/07 06:38:28 thomas Exp $
# #
# NOTES # NOTES
# Essentially all Postgres make files include this file and use the # Essentially all Postgres make files include this file and use the
...@@ -80,11 +80,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc ...@@ -80,11 +80,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
# Where the header files necessary to build frontend programs get installed. # Where the header files necessary to build frontend programs get installed.
HEADERDIR= $(POSTGRESDIR)/include HEADERDIR= $(POSTGRESDIR)/include
# Where the ODBC files get installed.
# This is the root for the actual locations,
# to override /usr/local in the standalone version.
POSTODBCDIR= $(POSTGRESDIR)
# Where the ODBC installation-wide configuration file gets installed. # Where the ODBC installation-wide configuration file gets installed.
# This needs to be a client-side readable area, so can't go in $PGDATA. # This needs to be a client-side readable area, so can't go in $PGDATA.
# - thomas 1998-10-05 # - thomas 1998-10-05
...@@ -212,6 +207,7 @@ CFLAGS= -I$(SRCDIR)/include -I$(SRCDIR)/backend @CPPFLAGS@ @CFLAGS@ ...@@ -212,6 +207,7 @@ CFLAGS= -I$(SRCDIR)/include -I$(SRCDIR)/backend @CPPFLAGS@ @CFLAGS@
CFLAGS_SL= @SHARED_LIB@ CFLAGS_SL= @SHARED_LIB@
LDFLAGS= @LDFLAGS@ @LIBS@ LDFLAGS= @LDFLAGS@ @LIBS@
DLSUFFIX= @DLSUFFIX@ DLSUFFIX= @DLSUFFIX@
LN_S= @LN_S@
include $(SRCDIR)/Makefile.port include $(SRCDIR)/Makefile.port
......
This diff is collapsed.
...@@ -58,8 +58,6 @@ AC_LINK_FILES(backend/port/dynloader/${os}.h, include/dynloader.h) ...@@ -58,8 +58,6 @@ AC_LINK_FILES(backend/port/dynloader/${os}.h, include/dynloader.h)
AC_LINK_FILES(include/port/${os}.h, include/os.h) AC_LINK_FILES(include/port/${os}.h, include/os.h)
AC_LINK_FILES(makefiles/Makefile.${os}, Makefile.port) AC_LINK_FILES(makefiles/Makefile.${os}, Makefile.port)
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
...@@ -279,8 +277,7 @@ AC_ARG_WITH( ...@@ -279,8 +277,7 @@ AC_ARG_WITH(
#fi #fi
export USE_PERL export USE_PERL
dnl We disable odbc support unless we override it with --enable-odbc dnl We disable odbc support unless we override it with --with-odbc
#USE_ODBC=false
AC_MSG_CHECKING(setting USE_ODBC) AC_MSG_CHECKING(setting USE_ODBC)
AC_ARG_WITH( AC_ARG_WITH(
odbc, odbc,
...@@ -293,13 +290,29 @@ AC_ARG_WITH( ...@@ -293,13 +290,29 @@ AC_ARG_WITH(
], ],
[ USE_ODBC=false; AC_MSG_RESULT(disabled) ] [ USE_ODBC=false; AC_MSG_RESULT(disabled) ]
) )
#
#if test "$enable_odbc." != "."
#then
# USE_ODBC=$enable_odbc
#fi
export USE_ODBC export USE_ODBC
dnl Allow for overriding the default location of the odbcinst.ini
dnl file which is normally ${prefix}/share or ${prefix} if this is
dnl being compiled inside the postgres distribution.
if test "X$USE_ODBC" = "Xtrue"
then
AC_LINK_FILES(include/config.h, interfaces/odbc/config.h)
AC_MSG_CHECKING(setting ODBCINST)
AC_ARG_WITH(
odbcinst,
[ --with-odbcinst=dir change default directory for odbcinst.ini],
AC_DEFINE_UNQUOTED(ODBCINST, ${with_odbcinst}) AC_MSG_RESULT($with_odbcinst),
AC_DEFINE_UNQUOTED(ODBCINST, ${ODBCINSTDIR}) AC_MSG_RESULT(${ODBCINSTDIR})
)
fi
if test "X$with_odbcinst" != "X"
then
ODBCINSTDIR=$with_odbcinst
fi
AC_SUBST(ODBCINSTDIR)
dnl Unless we specify the command line options dnl Unless we specify the command line options
dnl --enable cassert to explicitly enable it dnl --enable cassert to explicitly enable it
dnl If you do not explicitly do it, it defaults to disabled dnl If you do not explicitly do it, it defaults to disabled
...@@ -346,6 +359,7 @@ dnl Checks for programs. ...@@ -346,6 +359,7 @@ dnl Checks for programs.
AC_PROG_CPP AC_PROG_CPP
AC_SUBST(PORTNAME) AC_SUBST(PORTNAME)
AC_SUBST(SRCDIR)
AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS)
AC_SUBST(CPPFLAGS) AC_SUBST(CPPFLAGS)
AC_SUBST(AROPT) AC_SUBST(AROPT)
...@@ -516,6 +530,8 @@ AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h getopt.h) ...@@ -516,6 +530,8 @@ AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h getopt.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h) AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
AC_CHECK_HEADERS(readline/readline.h readline/history.h ieeefp.h fp_class.h) AC_CHECK_HEADERS(readline/readline.h readline/history.h ieeefp.h fp_class.h)
AC_CHECK_HEADERS(netinet/in.h string.h strings.h) AC_CHECK_HEADERS(netinet/in.h string.h strings.h)
dnl ODBC headers...
AC_CHECK_HEADERS(sys/param.h pwd.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
...@@ -854,6 +870,17 @@ dnl - thomas 1998-10-05 ...@@ -854,6 +870,17 @@ dnl - thomas 1998-10-05
#then #then
# AC_CONFIG_SUBDIRS(interfaces/odbc) # AC_CONFIG_SUBDIRS(interfaces/odbc)
#fi #fi
# if test "$USE_ODBC" = "true"
#AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h) then
PWD_INCDIR=no
AC_CHECK_HEADER(pwd.h, PWD_INCDIR=yes)
if test "$PWD_INCDIR" = "no"; then
AC_MSG_WARN(odbc support disabled; pwd.h missing)
USE_ODBC=
fi
AC_SUBST(USE_ODBC)
fi
AC_CONFIG_HEADER(interfaces/odbc/config.h)
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile) AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile)
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