Skip to content

Commit eda9d69

Browse files
committed
Move YACC and YFLAGS into the template files
Clean up the .sample files...comment out all sample entries except for the localhost one
1 parent c7b40e6 commit eda9d69

28 files changed

+59
-25
lines changed

src/Makefile.global.in

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.18 1997/04/04 10:38:23 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.19 1997/04/04 11:21:39 scrappy Exp $
1111
#
1212
# NOTES
1313
# Essentially all Postgres make files include this file and use the
@@ -198,11 +198,6 @@ X11_INCDIR= /usr/include
198198
X11_LIBDIR= /usr/lib
199199
X11_LIB= -lX11 @SOCKET_LIB@ @NSL_LIB@
200200

201-
##############################################################################
202-
#
203-
# YACC
204-
205-
YFLAGS= -d
206201

207202
##############################################################################
208203
#
@@ -247,6 +242,8 @@ endif
247242
# See the subdirectory template for default settings for these
248243
#-------------------------------------------------------------
249244
CC= @CC@
245+
YFLAGS= @YFLAGS@
246+
YACC= @YACC@
250247
LEX= @LEX@
251248
AROPT= @AROPT@
252249
CFLAGS= @CPPFLAGS@ @CFLAGS@
@@ -306,9 +303,6 @@ endif
306303
ifeq ($(PORTNAME), dgux)
307304
%.so: %.o
308305
$(CC) -shared -o $@ $<
309-
310-
YACC= bison -y
311-
312306
endif
313307

314308
#----------------------------------------------------------------------------
@@ -342,11 +336,8 @@ endif
342336
#--------------------------------------------------------------------------
343337

344338
ifeq ($(PORTNAME), i386_solaris)
345-
# cc won't work!
346-
347339
%.so: %.o
348340
$(LD) -G -Bdynamic -o $@ $<
349-
350341
endif
351342

352343
#----------------------------------------------------------------------------
@@ -384,17 +375,13 @@ endif
384375
#----------------------------------------------------------------------------
385376

386377
ifeq ($(PORTNAME), sparc_solaris)
387-
388378
%.so: %.o
389379
$(LD) -G -Bdynamic -o $@ $<
390-
391380
endif
392381

393382
#-----------------------------------------------------------------------------
394383

395384
ifeq ($(PORTNAME), svr4)
396-
YACC= bison -y
397-
398385
# MAKE_EXPORTS is required for svr4 loaders that want a file of
399386
# symbol names to tell them what to export/import.
400387
MAKE_EXPORTS= true
@@ -420,8 +407,6 @@ endif
420407
# The univel port is almost guaranteed NOT to work yet.
421408
#
422409
ifeq ($(PORTNAME), univel)
423-
YACC= bison -y
424-
425410
# MAKE_EXPORTS is required for svr4 loaders that want a file of
426411
# symbol names to tell them what to export/import.
427412
#MAKE_EXPORTS= true

src/backend/libpq/pg_hba.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ host all 127.0.0.1 255.255.255.255 trust
8080
# The above allows any user on the local system to connect to any database
8181
# under any username.
8282

83-
host template1 192.168.0.0 255.255.255.0 ident sameuser
83+
#host template1 192.168.0.0 255.255.255.0 ident sameuser
8484

8585
# The above allows any user from any host with IP address 192.168.0.x to
8686
# connect to database template1 as the same username that ident on that host

src/backend/libpq/pg_ident.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# A user always has to specify when he connects what Postgres username he is
2020
# using. This file is only used to validate that selection.
2121

22-
testmap robert bob
23-
testmap lucy lucy
22+
#testmap robert bob
23+
#testmap lucy lucy
2424

2525

src/build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ else
3535
USE_LOCALE=`grep USE_LOCALE $TEMPLATE | awk -F: '{print $2}'`
3636
DLSUFFIX=`grep DLSUFFIX $TEMPLATE | awk -F: '{print $2}'`
3737
DL_LIB=`grep DL_LIB $TEMPLATE | awk -F: '{print $2}'`
38+
YACC=`grep YACC $TEMPLATE | awk -F: '{print $2}'`
39+
YFLAGS=`grep YFLAGS $TEMPLATE | awk -F: '{print $2}'`
3840
fi
3941

4042
$ECHO_N "Additional directories to search for .h files [$SRCH_INC]: $ECHO_C"
@@ -70,6 +72,7 @@ then
7072
IDIR=${a}
7173
fi
7274

75+
echo ""
7376
echo "Define USE_LOCALE to get Postgres work (sort, search)"
7477
$ECHO_N "with national alphabet. [$USE_LOCALE]: $ECHO_C"
7578
read a
@@ -105,8 +108,8 @@ then
105108
NOHBA=${a}
106109
fi
107110

108-
export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA AROPT DLSUFFIX DL_LIB
109-
export SHARED_LIB CFLAGS CPPFLAGS LDFLAGS
111+
export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA AROPT DLSUFFIX DL_LIB YACC
112+
export SHARED_LIB CFLAGS CPPFLAGS LDFLAGS YFLAGS
110113

111114
./configure --prefix=${IDIR}
112115

src/configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,6 +3642,8 @@ s%@AROPT@%$AROPT%g
36423642
s%@SHARED_LIB@%$SHARED_LIB%g
36433643
s%@DLSUFFIX@%$DLSUFFIX%g
36443644
s%@DL_LIB@%$DL_LIB%g
3645+
s%@YACC@%$YACC%g
3646+
s%@YFLAGS@%$YFLAGS%g
36453647
s%@HAVECXX@%$HAVECXX%g
36463648
s%@INSTALL@%$INSTALL%g
36473649
s%@BSDINST@%$BSDINST%g

src/configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ AC_SUBST(SHARED_LIB)
5959
AC_SUBST(CFLAGS)
6060
AC_SUBST(DLSUFFIX)
6161
AC_SUBST(DL_LIB)
62-
63-
62+
AC_SUBST(YACC)
63+
AC_SUBST(YFLAGS)
6464

6565
dnl ****************************************************************
6666
dnl Hold off on the C++ stuff until we can figure out why it doesn't

src/template/aix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/alpha

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ SRCH_INC:
1212
SRCH_LIB:
1313
USE_LOCALE:no
1414
DLSUFFIX:.so
15+
YFLAGS:-d
16+
YACC:

src/template/bsdi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:/usr/local/include
66
SRCH_LIB:/usr/local/lib
77
USE_LOCALE:no
88
DLSUFFIX:.o
9+
YFLAGS:-d
10+
YACC:

src/template/bsdi-2.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:/usr/local/include
66
SRCH_LIB:/usr/local/lib
77
USE_LOCALE:no
88
DLSUFFIX:.o
9+
YFLAGS:-d
10+
YACC:

src/template/dgux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:bison -y

src/template/freebsd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ SRCH_INC:/usr/local/include
55
SRCH_LIB:/usr/local/lib
66
USE_LOCALE:no
77
DLSUFFIX:.so
8+
YFLAGS:-d
9+
YACC:bison -y

src/template/generic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/hpux-cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.sl
9+
YFLAGS:-d
10+
YACC:

src/template/hpux-gcc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ SRCH_LIB:
77
USE_LOCALE:no
88
DL_LIB:/usr/lib/libdld.sl
99
DLSUFFIX:.sl
10+
YFLAGS:-d
11+
YACC:

src/template/i386_solaris-cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/i386_solaris-gcc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/irix5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/linux-elf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.o
9+
YFLAGS:-d
10+
YACC:

src/template/nextstep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.o
9+
YFLAGS:-d
10+
YACC:

src/template/sparc_solaris-cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/sparc_solaris-gcc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/sunos4-cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/sunos4-gcc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:

src/template/svr4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:bison -y

src/template/ultrix4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.o
9+
YFLAGS:-d
10+
YACC:

src/template/univel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ SRCH_INC:
66
SRCH_LIB:
77
USE_LOCALE:no
88
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:bison -y

0 commit comments

Comments
 (0)