Skip to content

Commit

Permalink
Bug 1264257 - Port bug 1264129 to c-c. r=aleth
Browse files Browse the repository at this point in the history
Bug 1264129 - Use sed to update configure from configure.in, instead of autoconf.
  • Loading branch information
Paenglab committed Apr 13, 2016
1 parent 2414319 commit 0abbcd8
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions client.mk
Expand Up @@ -18,7 +18,7 @@
# clean
# distclean
#
# See http://developer.mozilla.org/en/Build_Documentation for
# See http://developer.mozilla.org/en/Build_Documentation for
# more information.
#
# Options:
Expand Down Expand Up @@ -56,19 +56,6 @@ TOPSRCDIR := $(CWD)
endif
endif

# try to find autoconf 2.13 - discard errors from 'which'
# MacOS X 10.4 sends "no autoconf*" errors to stdout, discard those via grep
AUTOCONF ?= $(shell which autoconf-2.13 autoconf2.13 autoconf213 2>/dev/null | grep -v '^no autoconf' | head -1)

# See if the autoconf package was installed through fink
ifeq (,$(strip $(AUTOCONF)))
AUTOCONF = $(shell which fink >/dev/null 2>&1 && echo `which fink`/../../lib/autoconf2.13/bin/autoconf)
endif

ifeq (,$(strip $(AUTOCONF)))
AUTOCONF=$(error Could not find autoconf 2.13)
endif

SH := /bin/sh
PERL ?= perl
PYTHON ?= $(shell which python2.7 > /dev/null 2>&1 && echo python2.7 || echo python)
Expand Down Expand Up @@ -327,8 +314,9 @@ EXTRA_CONFIG_DEPS := \
$(NULL)

$(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS)
@echo Generating $@ using autoconf
cd $(@D); $(AUTOCONF)
@echo Generating $@
sed '1,/^divert/d' $< > $@
chmod +x $@

CONFIG_STATUS_DEPS := \
$(wildcard $(CONFIGURES)) \
Expand Down

0 comments on commit 0abbcd8

Please sign in to comment.