Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpsinger/8590966 to your computer and use it in GitHub Desktop.
Save lpsinger/8590966 to your computer and use it in GitHub Desktop.
From 6fc1cc1b073fcd08069a57f0d3d573ffbbdd1bb8 Mon Sep 17 00:00:00 2001
From: Leo Singer <leo.singer@ligo.org>
Date: Thu, 23 Jan 2014 18:13:59 -0800
Subject: [PATCH] Add --{enable,disable}-maintainer-mode flags
`pip` does not preserve file modification times when unpacking tarballs.
This causes `make` to think that it needs to rerun `automake` when
building `healpix_cxx`. Since only developers generally have `automake`,
this causes the installation to fail.
We need to add
AM_MAINTAINER_MODE([enable])
to `healpix_cxx`'s `configure.ac` file in order to make `configure`
recognize this option.
Note that this change preserves the default behavior: maintainer mode is
still on by default, as it is if the AM_MAINTAINER_MODE macro is absent.
See <https://github.com/healpy/healpy/pull/156>.
---
src/cxx/autotools/configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cxx/autotools/configure.ac b/src/cxx/autotools/configure.ac
index 9ea7696..01460ac 100644
--- a/src/cxx/autotools/configure.ac
+++ b/src/cxx/autotools/configure.ac
@@ -1,5 +1,6 @@
AC_INIT([healpix_cxx], [3.11.2])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror])
+AM_MAINTAINER_MODE([enable])
dnl
dnl Needed for linking on Windows.
--
1.8.5.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment