mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
bootstrap:
make it so bootstrap can be run out of dir (like configure) configure.ac: evil hack to get $AR working with older libtool (1.3)
This commit is contained in:
parent
20f702b5fe
commit
27d302f9c9
2 changed files with 17 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
cd `dirname $0`
|
||||||
# Check Autoconf version
|
# Check Autoconf version
|
||||||
if [ -x `which autoconf` ]; then
|
if [ -x `which autoconf` ]; then
|
||||||
AC_VER=`autoconf --version | head -1 | sed 's/^[^0-9]*//'`
|
AC_VER=`autoconf --version | head -1 | sed 's/^[^0-9]*//'`
|
||||||
|
|
16
configure.ac
16
configure.ac
|
@ -38,6 +38,12 @@ AC_SUBST(ISODATE)
|
||||||
|
|
||||||
AC_LANG_C
|
AC_LANG_C
|
||||||
|
|
||||||
|
if test ${AR-unset} = unset; then
|
||||||
|
echo boo
|
||||||
|
AR="ar"
|
||||||
|
fi
|
||||||
|
export AR
|
||||||
|
|
||||||
endian=""
|
endian=""
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
mingw32*)
|
mingw32*)
|
||||||
|
@ -1541,6 +1547,16 @@ AC_OUTPUT(
|
||||||
RPM/quakeforge.spec,
|
RPM/quakeforge.spec,
|
||||||
|
|
||||||
chmod +x quakeforge-config RPM/build_rpm
|
chmod +x quakeforge-config RPM/build_rpm
|
||||||
|
if test "$AR" != "ar"; then
|
||||||
|
sed -e 's/^AR="ar"$/AR="'$AR'"/' libtool > libtool.qf
|
||||||
|
if cmp -s libtool.qf libtool; then
|
||||||
|
echo libtool is unchanged
|
||||||
|
rm -f libtool.qf
|
||||||
|
else
|
||||||
|
rm -f libtool
|
||||||
|
mv libtool.qf libtool
|
||||||
|
fi
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "x$CCVER" = "x"; then
|
if test "x$CCVER" = "x"; then
|
||||||
|
|
Loading…
Reference in a new issue