Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add support for --enable-atf flag and conditional ATF dependencies in configure.ac #24

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,34 @@ AC_PROG_CXX
KYUA_REQUIRE_CXX
KYUA_DEVELOPER_MODE([C++])

# Check for ATF and add --enable-atf flag
AC_ARG_ENABLE([atf],
[AS_HELP_STRING([--enable-atf], [Enable ATF tests (default: no)])],
[enable_atf=$enableval],
[enable_atf=no])
AM_CONDITIONAL([WITH_ATF], [test "x$enable_atf" = "xyes"])

# ATF dependencies
if test "x$enable_atf" = "xyes"; then
ATF_CHECK_CXX([>= 0.15])
ATF_CHECK_SH([>= 0.15])
else
AC_MSG_NOTICE([ATF support disabled])
fi

ATF_CHECK_CXX([>= 0.15])
ATF_CHECK_SH([>= 0.15])
ATF_ARG_WITH
KYUA_DOXYGEN
KYUA_LUA


# Check for Kyua
AC_PATH_PROG([KYUA], [kyua])
AM_CONDITIONAL([HAVE_KYUA], [test -n "${KYUA}"])
AC_PATH_PROG([GIT], [git])

# Check for Git
AC_PATH_PROG([GIT], [git])

# Define pkg-config and tests directory
AC_SUBST(pkgconfigdir, \${libdir}/pkgconfig)
AC_SUBST(testsdir, \${exec_prefix}/tests/lutok)


# Output configuration
AC_OUTPUT