Skip to content

Commit

Permalink
configure: fix for issue #112
Browse files Browse the repository at this point in the history
  • Loading branch information
gcongiu committed Nov 8, 2023
1 parent 70aeec3 commit 1c1d00d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -2512,14 +2512,14 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSVER" >&5
$as_echo "$OSVER" >&6; }
CFLAGS=""
CFLAGS="$CFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perf_event workaround level" >&5
$as_echo_n "checking for perf_event workaround level... " >&6; }
# Check whether --with-assumed_kernel was given.
if test "${with_assumed_kernel+set}" = set; then :
withval=$with_assumed_kernel; assumed_kernel=$withval; CFLAGS="-DASSUME_KERNEL=\\\"$with_assumed_kernel\\\""
withval=$with_assumed_kernel; assumed_kernel=$withval; CFLAGS="$CFLAGS -DASSUME_KERNEL=\\\"$with_assumed_kernel\\\""
else
assumed_kernel="autodetect"
Expand Down
4 changes: 2 additions & 2 deletions src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ AC_ARG_WITH(OSVER,
fi ])
AC_MSG_RESULT($OSVER)

CFLAGS=""
CFLAGS="$CFLAGS"

AC_MSG_CHECKING(for perf_event workaround level)
AC_ARG_WITH(assumed_kernel,
[AS_HELP_STRING([--with-assumed-kernel=<ver>],
[Assume kernel version is <ver> for purposes of workarounds])],
[assumed_kernel=$withval; CFLAGS="-DASSUME_KERNEL=\\\"$with_assumed_kernel\\\""],
[assumed_kernel=$withval; CFLAGS="$CFLAGS -DASSUME_KERNEL=\\\"$with_assumed_kernel\\\""],
[assumed_kernel="autodetect"]
)
AC_MSG_RESULT($assumed_kernel)
Expand Down

0 comments on commit 1c1d00d

Please sign in to comment.