Kaydet (Commit) fd83e6cb authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

detect of gnumake support $(file function

$(file is a new function that landed in gnu-make cvs
it allow to write a makefile variable directly into a file
bypassing the usual command line size limitiation
üst 83561ac5
...@@ -188,6 +188,7 @@ export HAVE_GCC_AVX=@HAVE_GCC_AVX@ ...@@ -188,6 +188,7 @@ export HAVE_GCC_AVX=@HAVE_GCC_AVX@
export HAVE_GCC_NO_LONG_DOUBLE=@HAVE_GCC_NO_LONG_DOUBLE@ export HAVE_GCC_NO_LONG_DOUBLE=@HAVE_GCC_NO_LONG_DOUBLE@
export HAVE_GCC_VISIBILITY_BROKEN=@HAVE_GCC_VISIBILITY_BROKEN@ export HAVE_GCC_VISIBILITY_BROKEN=@HAVE_GCC_VISIBILITY_BROKEN@
export HAVE_GCC_VISIBILITY_FEATURE=@HAVE_GCC_VISIBILITY_FEATURE@ export HAVE_GCC_VISIBILITY_FEATURE=@HAVE_GCC_VISIBILITY_FEATURE@
export HAVE_GNUMAKE_FILE_FUNC@=HAVE_GNUMAKE_FILE_FUNC@
export HAVE_SFINAE_ANONYMOUS_BROKEN=@HAVE_SFINAE_ANONYMOUS_BROKEN@ export HAVE_SFINAE_ANONYMOUS_BROKEN=@HAVE_SFINAE_ANONYMOUS_BROKEN@
export HAVE_GETOPT=@HAVE_GETOPT@ export HAVE_GETOPT=@HAVE_GETOPT@
export HAVE_LD_BSYMBOLIC_FUNCTIONS=@HAVE_LD_BSYMBOLIC_FUNCTIONS@ export HAVE_LD_BSYMBOLIC_FUNCTIONS=@HAVE_LD_BSYMBOLIC_FUNCTIONS@
......
...@@ -76,6 +76,7 @@ else ...@@ -76,6 +76,7 @@ else
SRC_ROOT=`pwd` SRC_ROOT=`pwd`
x_Cygwin=[\#] x_Cygwin=[\#]
fi fi
AC_SUBST(SRC_ROOT) AC_SUBST(SRC_ROOT)
AC_SUBST(EXEEXT_FOR_BUILD) AC_SUBST(EXEEXT_FOR_BUILD)
AC_SUBST(x_Cygwin) AC_SUBST(x_Cygwin)
...@@ -3682,6 +3683,27 @@ EOF ...@@ -3682,6 +3683,27 @@ EOF
else else
AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed]) AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed])
fi fi
# find if gnumake support file function
AC_MSG_CHECKING([for GNU support for (file function])
TESTGMAKEFILEFUNC="`mktemp -d -t tst.XXXXXX`"
cat > $TESTGMAKEFILEFUNC/Makefile << EOF
\$(file >test.txt,Success )
.PHONY: all
all:
@cat test.txt
EOF
$GNUMAKE -C $TESTGMAKEFILEFUNC 2>/dev/null 1>&2
if test -f $TESTGMAKEFILEFUNC/test.txt ; then
HAVE_GNUMKAE_FILE_FUNC="YES"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
rm -rf $TESTGMAKEFILEFUNC
AC_SUBST(HAVE_GNUMAKE_FILE_FUNC)
AC_SUBST(GNUMAKE) AC_SUBST(GNUMAKE)
_make_ver_check=`$GNUMAKE --version | grep LibreOffice`; _make_ver_check=`$GNUMAKE --version | grep LibreOffice`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment