Skip to content

Commit

Permalink
Merge pull request #114 from hintjens/master
Browse files Browse the repository at this point in the history
Problem: can't check for files during cross-compilation
  • Loading branch information
zoobab committed Jan 20, 2016
2 parents 2a25d0c + 8e6d8bf commit dc24511
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,14 @@ AM_COND_IF([WITH_SYSTEMD],
[AC_MSG_ERROR([Cannot find required package for systemd. Note, pkg-config is required due to specified version >= 200])])],
[])

# enable draft API by default if we're in a git repository
# else disable it by default; then allow --with-draft=yes/no override
AC_CHECK_FILE(.git, [gitmaster=yes], [gitmaster=no])
if test "x$cross_compiling" = "xyes"; then
# Enable draft by default when cross-compiling
gitmaster=yes
else
# enable draft API by default if we're in a git repository
# else disable it by default; then allow --with-draft=yes/no override
AC_CHECK_FILE(.git, [gitmaster=yes], [gitmaster=no])
fi

AC_ARG_WITH([drafts],
AS_HELP_STRING([--with-drafts],
Expand Down

0 comments on commit dc24511

Please sign in to comment.