diff options
author | David Carlier <devnexen@gmail.com> | 2019-12-14 12:15:36 +0000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-08-25 20:31:23 -0700 |
commit | 2d5dd8d9e12daccaa303601725d742612ec3a8eb (patch) | |
tree | 53f0c2398d8e7bb2d9dc01989eb244d653d9b530 /configure.ac | |
parent | fd6b5bee6140ec7bdb830d330f56283acedd9a20 (diff) | |
download | memcached-2d5dd8d9e12daccaa303601725d742612ec3a8eb.tar.gz |
DTrace build fix on Mac
The header generated comes with $ IDs thus breaking the build.
The probes are set with const address arguments already
which just add the qualifier again.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2959a86..34a457b 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,16 @@ AM_CONFIG_HEADER([config.h]) AC_PROG_CC +is_darwin=no + +case "${host_os}" in + darwin*) + is_darwin=yes + ;; +esac + +AM_CONDITIONAL([DARWIN], [test "$is_darwin" = "yes"]) + dnl ********************************************************************** dnl DETECT_ICC ([ACTION-IF-YES], [ACTION-IF-NO]) dnl @@ -193,6 +203,10 @@ if test "x$enable_dtrace" = "xyes"; then then dtrace_instrument_obj=yes rm conftest.h + # on Mac probe id are generated with $ + if test "$is_darwin" = "yes"; then + CFLAGS="$CFLAGS -Wno-dollar-in-identifier-extension" + fi fi if test "`which tr`" = "/usr/ucb/tr"; then |