Make it possible to actually build cvs with a version of bakefile
that does not have a 'critical bug'. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
57
aclocal.m4
vendored
57
aclocal.m4
vendored
@@ -1274,6 +1274,7 @@ int main(int argc, char *argv[])
|
|||||||
rm -f conf.sdltest
|
rm -f conf.sdltest
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl Support macros for makefiles generated by BAKEFILE.
|
dnl Support macros for makefiles generated by BAKEFILE.
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@@ -1785,9 +1786,9 @@ AC_DEFUN([AC_BAKEFILE_DEPS],
|
|||||||
esac
|
esac
|
||||||
AC_MSG_RESULT([gcc])
|
AC_MSG_RESULT([gcc])
|
||||||
elif test "x$MWCC" = "xyes"; then
|
elif test "x$MWCC" = "xyes"; then
|
||||||
DEPSMODE=gcc
|
DEPSMODE=mwcc
|
||||||
DEPS_TRACKING=1
|
DEPS_TRACKING=1
|
||||||
DEPSFLAG_GCC="-MMD"
|
DEPSFLAG_MWCC="-MM"
|
||||||
AC_MSG_RESULT([mwcc])
|
AC_MSG_RESULT([mwcc])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([none])
|
AC_MSG_RESULT([none])
|
||||||
@@ -1926,7 +1927,7 @@ AC_DEFUN([AC_BAKEFILE_PRECOMP_HEADERS],
|
|||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl AC_BAKEFILE
|
dnl AC_BAKEFILE([autoconf_inc.m4 inclusion])
|
||||||
dnl
|
dnl
|
||||||
dnl To be used in configure.in of any project using Bakefile-generated mks
|
dnl To be used in configure.in of any project using Bakefile-generated mks
|
||||||
dnl
|
dnl
|
||||||
@@ -1936,6 +1937,14 @@ dnl to perform check for basic tools like ranlib
|
|||||||
dnl BAKEFILE_HOST set this to override host detection, defaults
|
dnl BAKEFILE_HOST set this to override host detection, defaults
|
||||||
dnl to ${host}
|
dnl to ${host}
|
||||||
dnl BAKEFILE_FORCE_PLATFORM set to override platform detection
|
dnl BAKEFILE_FORCE_PLATFORM set to override platform detection
|
||||||
|
dnl
|
||||||
|
dnl Example usage:
|
||||||
|
dnl
|
||||||
|
dnl AC_BAKEFILE([FOO(autoconf_inc.m4)])
|
||||||
|
dnl
|
||||||
|
dnl (replace FOO with m4_include above, aclocal would die otherwise)
|
||||||
|
dnl (yes, it's ugly, but thanks to a bug in aclocal, it's the only thing
|
||||||
|
dnl we can do...)
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
AC_DEFUN([AC_BAKEFILE],
|
AC_DEFUN([AC_BAKEFILE],
|
||||||
@@ -1958,9 +1967,10 @@ AC_DEFUN([AC_BAKEFILE],
|
|||||||
AC_BAKEFILE_DEPS
|
AC_BAKEFILE_DEPS
|
||||||
AC_BAKEFILE_RES_COMPILERS
|
AC_BAKEFILE_RES_COMPILERS
|
||||||
|
|
||||||
BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
|
BAKEFILE_BAKEFILE_M4_VERSION="0.1.6"
|
||||||
|
|
||||||
m4_include([autoconf_inc.m4])
|
dnl includes autoconf_inc.m4:
|
||||||
|
$1
|
||||||
|
|
||||||
if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
|
if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
|
||||||
AC_MSG_ERROR([Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match.])
|
AC_MSG_ERROR([Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match.])
|
||||||
@@ -1975,6 +1985,8 @@ dnl ---------------------------------------------------------------------------
|
|||||||
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_DLLAR_SH],
|
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_DLLAR_SH],
|
||||||
[
|
[
|
||||||
dnl ===================== dllar.sh begins here =====================
|
dnl ===================== dllar.sh begins here =====================
|
||||||
|
dnl (Created by merge-scripts.py from dllar.sh
|
||||||
|
dnl file do not edit here!)
|
||||||
D='$'
|
D='$'
|
||||||
cat <<EOF >dllar.sh
|
cat <<EOF >dllar.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -2457,6 +2469,8 @@ dnl ===================== dllar.sh ends here =====================
|
|||||||
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_BK_DEPS],
|
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_BK_DEPS],
|
||||||
[
|
[
|
||||||
dnl ===================== bk-deps begins here =====================
|
dnl ===================== bk-deps begins here =====================
|
||||||
|
dnl (Created by merge-scripts.py from bk-deps
|
||||||
|
dnl file do not edit here!)
|
||||||
D='$'
|
D='$'
|
||||||
cat <<EOF >bk-deps
|
cat <<EOF >bk-deps
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -2469,6 +2483,7 @@ cat <<EOF >bk-deps
|
|||||||
DEPSMODE=${DEPSMODE}
|
DEPSMODE=${DEPSMODE}
|
||||||
DEPSDIR=.deps
|
DEPSDIR=.deps
|
||||||
DEPSFLAG_GCC="${DEPSFLAG_GCC}"
|
DEPSFLAG_GCC="${DEPSFLAG_GCC}"
|
||||||
|
DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
|
||||||
|
|
||||||
mkdir -p ${D}DEPSDIR
|
mkdir -p ${D}DEPSDIR
|
||||||
|
|
||||||
@@ -2506,6 +2521,31 @@ if test ${D}DEPSMODE = gcc ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
elif test ${D}DEPSMODE = mwcc ; then
|
||||||
|
${D}*
|
||||||
|
status=${D}?
|
||||||
|
if test ${D}{status} != 0 ; then
|
||||||
|
exit ${D}{status}
|
||||||
|
fi
|
||||||
|
# Run mwcc again with -MM and redirect into the dep file we want
|
||||||
|
# NOTE: We can't use shift here because we need ${D}* to be valid
|
||||||
|
prevarg=
|
||||||
|
for arg in ${D}* ; do
|
||||||
|
if test "${D}prevarg" = "-o"; then
|
||||||
|
objfile=${D}arg
|
||||||
|
else
|
||||||
|
case "${D}arg" in
|
||||||
|
-* )
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
srcfile=${D}arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
prevarg="${D}arg"
|
||||||
|
done
|
||||||
|
${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
${D}*
|
${D}*
|
||||||
exit ${D}?
|
exit ${D}?
|
||||||
@@ -2517,6 +2557,8 @@ dnl ===================== bk-deps ends here =====================
|
|||||||
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_SHARED_LD_SH],
|
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_SHARED_LD_SH],
|
||||||
[
|
[
|
||||||
dnl ===================== shared-ld-sh begins here =====================
|
dnl ===================== shared-ld-sh begins here =====================
|
||||||
|
dnl (Created by merge-scripts.py from shared-ld-sh
|
||||||
|
dnl file do not edit here!)
|
||||||
D='$'
|
D='$'
|
||||||
cat <<EOF >shared-ld-sh
|
cat <<EOF >shared-ld-sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -2611,6 +2653,8 @@ dnl ===================== shared-ld-sh ends here =====================
|
|||||||
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_BK_MAKE_PCH],
|
AC_DEFUN([AC_BAKEFILE_CREATE_FILE_BK_MAKE_PCH],
|
||||||
[
|
[
|
||||||
dnl ===================== bk-make-pch begins here =====================
|
dnl ===================== bk-make-pch begins here =====================
|
||||||
|
dnl (Created by merge-scripts.py from bk-make-pch
|
||||||
|
dnl file do not edit here!)
|
||||||
D='$'
|
D='$'
|
||||||
cat <<EOF >bk-make-pch
|
cat <<EOF >bk-make-pch
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -2657,7 +2701,6 @@ fi
|
|||||||
EOF
|
EOF
|
||||||
dnl ===================== bk-make-pch ends here =====================
|
dnl ===================== bk-make-pch ends here =====================
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||||
dnl
|
dnl
|
||||||
|
Reference in New Issue
Block a user