Skip to content

Commit

Permalink
build-sys: Do NOT check user specified tmpdir via --enable-tmpdir=<TM…
Browse files Browse the repository at this point in the history
…PDIR> if exists when cross compiling

Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Mar 7, 2024
1 parent 988b890 commit 45f200c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,17 @@ elif test -d "c:/"; then
else
tmpdir="/tmp"
fi
if test -d $tmpdir ; then
AC_MSG_RESULT($tmpdir)
AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir")

if test "$cross_compiling" = yes ; then
AC_MSG_RESULT($tmpdir)
AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir")
else
AC_MSG_ERROR($tmpdir does not exist)
if test -d $tmpdir ; then
AC_MSG_RESULT($tmpdir)
AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir")
else
AC_MSG_ERROR($tmpdir does not exist)
fi
fi

# Test for case-insensitive filenames
Expand Down

0 comments on commit 45f200c

Please sign in to comment.