summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-08-01 19:36:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-08-01 19:36:56 (EDT)
commit4b791845885b729cf0a0ed349e9a9ba3d867b949 (patch)
treedaaf87e85473dd936aed65c6554c88d450e5003d
parente69adb324b6d6dd0ae6a6e498e5a6e25352189a1 (diff)
build: Save user CFLAGS
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0af4123..e8183de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,9 +29,10 @@ AM_SILENT_RULES([yes])
AM_CONDITIONAL([IN_GIT],
[test -d "${srcdir}/.git" && command -v git >/dev/null 2>&1])
+save_CFLAGS="${CFLAGS-}"
AC_PROG_CC()
AM_PROG_CC_C_O()
-test -d "${srcdir}/.git" || CFLAGS=''
+test -d "${srcdir}/.git" || CFLAGS="${save_CFLAGS}"
AX_CFLAGS_WARN_ALL() dnl Adds -Wall or equivalent
AX_CHECK_COMPILE_FLAG([-Wpedantic], [AX_APPEND_FLAG([-Wpedantic])])