From 4e94d1f952c3ce5670ceae3c12b55e344503a701 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 20 Aug 2007 08:53:12 +0000 Subject: Add configure option --with-system-tzdata to use operating system time zone database. --- src/timezone/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/timezone') diff --git a/src/timezone/Makefile b/src/timezone/Makefile index f3d5088b4d..f5667809f9 100644 --- a/src/timezone/Makefile +++ b/src/timezone/Makefile @@ -4,7 +4,7 @@ # Makefile for the timezone library # IDENTIFICATION -# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.26 2007/03/14 17:38:06 tgl Exp $ +# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.27 2007/08/20 08:53:12 petere Exp $ # #------------------------------------------------------------------------- @@ -32,11 +32,17 @@ all: SUBSYS.o submake-libpgport zic SUBSYS.o: $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) +ifeq (,$(with_system_tzdata)) zic: $(ZICOBJS) $(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X) +endif install: all installdirs +ifeq (,$(with_system_tzdata)) ./zic -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES) +else + ln -s '$(with_system_tzdata)' '$(DESTDIR)$(datadir)/timezone' +endif $(MAKE) -C tznames $@ installdirs: -- cgit v1.2.3