diff options
| author | Peter Eisentraut | 2007-08-20 08:53:12 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2007-08-20 08:53:12 +0000 |
| commit | 4e94d1f952c3ce5670ceae3c12b55e344503a701 (patch) | |
| tree | b6ce284528efacf49c57956bb7d4ecca8cf9931b /src/timezone | |
| parent | e1a1da9f4b869b77ea304a939adba6b2d2058014 (diff) | |
Add configure option --with-system-tzdata to use operating system time zone
database.
Diffstat (limited to 'src/timezone')
| -rw-r--r-- | src/timezone/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/timezone/Makefile b/src/timezone/Makefile index f3d5088b4d9..f5667809f99 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: |
