Nicer W32 installation support

This commit is contained in:
Werner Koch 2001-01-18 10:47:48 +00:00
parent 38b1b13114
commit f408930cc0
2 changed files with 10 additions and 5 deletions

View File

@ -31,7 +31,13 @@ if test "$1" = "--build-w32"; then
fi fi
fi fi
crossbindir=`mingw32 --install-dir`/bin crossinstalldir=`mingw32 --install-dir`
crossbindir=`mingw32 --get-bindir 2>/dev/null` \
|| crossbindir="$crossinstalldir/bin"
crosslibdir=`mingw32 --get-libdir 2>/dev/null` \
|| crosslibdir="$crossinstalldir/i386--mingw32/lib"
crossincdir=`mingw32 --get-includedir 2>/dev/null` \
|| crossincdir="$crossinstalldir/i386--mingw32/include"
CC=`mingw32 --get-path gcc` CC=`mingw32 --get-path gcc`
CPP=`mingw32 --get-path cpp` CPP=`mingw32 --get-path cpp`
AR=`mingw32 --get-path ar` AR=`mingw32 --get-path ar`
@ -54,8 +60,9 @@ if test "$1" = "--build-w32"; then
fi fi
[ $DIE = yes ] && exit 1 [ $DIE = yes ] && exit 1
./configure --host=${host} --target=${target} \ ./configure --host=${host} --target=${target} ${disable_foo_tests} \
${disable_foo_tests} $* --bindir=${crossbindir} --libdir=${crosslibdir} \
--includedir=${crossincdir} $*
exit $? exit $?
fi fi

View File

@ -24,8 +24,6 @@ AC_SUBST(LIBGPGME_LT_AGE)
AC_SUBST(LIBGPGME_LT_REVISION) AC_SUBST(LIBGPGME_LT_REVISION)
AM_MAINTAINER_MODE
dnl dnl
dnl Checks for programs dnl Checks for programs
dnl dnl