From 4b791845885b729cf0a0ed349e9a9ba3d867b949 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 01 Aug 2019 19:36:56 -0400 Subject: build: Save user CFLAGS --- 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])]) -- cgit v0.9.1