Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses

Peter Eisentraut <peter_e@gmx.net>

Commit: e3059fc0f53ede1ae6f95076034b678f394d2e7a
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2000-06-07T16:27:00Z
Releases: 7.1.1
Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses
CPP) to create platform independent files. Unfortunately, that means that
every config.status (or configure) run invariably causes a relink of the
postmaster and also that we can't put these files in the distribution
(usefully). So we make it a little smarter: when the output files already
exist and it notices that it would recreate them in identical form, it
doesn't touch them. In order to avoid re-running the make rule all the time
we update a timestamp file instead.

Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that
is detected at configure time, not necessarily named `awk' and have it check
for exit statuses a little better.

In other news... Remove USE_LOCALE from the templates, it was set to `no'
everywhere anyway. Also remove YACC and YFLAGS from the templates, configure
is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that
instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules
that need this flag should explicitly invoke it. YFLAGS should be a user
variable. Update the makefiles to that effect.

Files

PathChange+/−
configure modified +493 −509
configure.in modified +7 −29
src/backend/bootstrap/Makefile modified +3 −3
src/backend/parser/Makefile modified +3 −3
src/backend/utils/Gen_fmgrtab.sh.in modified +123 −45
src/backend/utils/Makefile modified +12 −3
src/interfaces/ecpg/preproc/Makefile.in modified +2 −2
src/pl/plpgsql/src/Makefile.in modified +2 −2
src/template/aix_325 modified +0 −3
src/template/aix_41 modified +0 −3
src/template/aix_42 modified +0 −3
src/template/aix_gcc modified +0 −3
src/template/alpha_cc modified +0 −2
src/template/alpha_gcc modified +0 −2
src/template/bsdi_2.0 modified +0 −3
src/template/bsdi_2.1 modified +0 −4
src/template/bsdi_4.0 modified +0 −4
src/template/bsdi_4.0_sparc modified +0 −3
src/template/cygwin32 modified +0 −3
src/template/dgux modified +0 −4
src/template/freebsd modified +0 −3
src/template/generic modified +0 −3
src/template/hpux_cc modified +0 −2
src/template/hpux_gcc modified +0 −2
src/template/irix5 modified +0 −3
src/template/linux_alpha modified +0 −3
src/template/linux_arm modified +0 −3
src/template/linux_i386 modified +0 −3
src/template/linux_m68k modified +0 −3
src/template/linux_mips modified +0 −3
src/template/linux_ppc modified +0 −3
src/template/linux_sparc modified +0 −3
src/template/netbsd modified +0 −3
src/template/nextstep modified +0 −3
src/template/openbsd modified +0 −3
src/template/qnx modified +0 −3
src/template/sco modified +0 −4
src/template/solaris_i386_cc modified +0 −3
src/template/solaris_i386_gcc modified +0 −3
src/template/solaris_sparc_cc modified +0 −3
src/template/solaris_sparc_gcc modified +0 −3
src/template/sunos4_cc modified +0 −3
src/template/sunos4_gcc modified +0 −3
src/template/svr4 modified +0 −3
src/template/ultrix4 modified +0 −3
src/template/univel modified +0 −3
src/template/unixware modified +0 −2
src/tools/release_prep modified +7 −0