summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2014-09-27 15:47:40 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-10-20 01:18:15 +0200
commit10c7e4a3cec344b13d555207938c5658f68289ef (patch)
treeb50eff7c02cf5ec9306ec2e65a9728be523df497
parente9cd4c8e61f60e79af4d40844cda5c57cb690ce4 (diff)
downloadneard-10c7e4a3cec344b13d555207938c5658f68289ef.tar.gz
neard-10c7e4a3cec344b13d555207938c5658f68289ef.tar.bz2
neard-10c7e4a3cec344b13d555207938c5658f68289ef.zip
build: Namespace local macros with NEARD_ instead of AC_ or nothing
Do not take over the autoconf namespace, as it might stomp with macros provided in the future.
-rw-r--r--acinclude.m410
-rw-r--r--configure.ac4
2 files changed, 7 insertions, 7 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 329c6a9..fbc7660 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,16 +1,16 @@
-AC_DEFUN([AC_PROG_CC_PIE], [
- AC_CACHE_CHECK([whether ${CC-cc} accepts -fPIE], ac_cv_prog_cc_pie, [
+AC_DEFUN([NEARD_PROG_CC_PIE], [
+ AC_CACHE_CHECK([whether ${CC-cc} accepts -fPIE], neard_cv_prog_cc_pie, [
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_pie=yes
+ neard_cv_prog_cc_pie=yes
else
- ac_cv_prog_cc_pie=no
+ neard_cv_prog_cc_pie=no
fi
rm -rf conftest*
])
])
-AC_DEFUN([COMPILER_FLAGS], [
+AC_DEFUN([NEARD_COMPILER_FLAGS], [
if (test "${CFLAGS}" = ""); then
CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
fi
diff --git a/configure.ac b/configure.ac
index 37296ca..256799b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,12 +16,12 @@ fi
PKG_PROG_PKG_CONFIG
-COMPILER_FLAGS
+NEARD_COMPILER_FLAGS
AC_LANG_C
AC_PROG_CC
-AC_PROG_CC_PIE
+NEARD_PROG_CC_PIE
AC_PROG_INSTALL
AC_PROG_MKDIR_P