AC_PREREQ(2.61)
AC_INIT(rpm, 4.4.90, rpm-maint@lists.rpm.org)
-AC_CANONICAL_TARGET
+
AC_CONFIG_SRCDIR([rpmqv.c])
AM_CONFIG_HEADER([config.h])
dnl
AC_MSG_CHECKING(flag used by libtool to link rpm)
if test X"$GCC" = Xyes ; then
- case "$target" in
+ case "$host" in
*-*-linux*) LDFLAGS_STATIC="-all-static" ;;
*-*-solaris*) LDFLAGS_STATIC="-static";;
*-*-hpux*) LDFLAGS_STATIC="-static";;
*-*-*) LDFLAGS_STATIC="";;
esac
elif test X"$CC" = Xcc ; then
- case "$target" in
+ case "$host" in
*-*-linux*) LDFLAGS_STATIC="-all-static";;
*-*-freebsd*) LDFLAGS_STATIC="-all-static";;
*-*-osf*) LDFLAGS_STATIC="";; # OSF5 has no shared pthreads libs
addlib() {
l=$1
shift
- case "$target" in
+ case "$host" in
*-*-solaris*) LIBS="$LIBS -L$l -R$l $*";;
*) LIBS="$LIBS -L$l $*";;
esac
AC_SUBST(DBLIBOBJS)
dnl AmigaOS and IXEmul have a fork() dummy
- case "$target" in
+ case "$host" in
m68k-*-amigaos )
echo "Building for AmigaOS: using vfork() instead of fork()";
CFLAGS="$CFLAGS -Dfork=vfork"
WITH_SELINUX_LIB=
with_selinuxval=no
-case "$target" in
+case "$host" in
*-*-linux*) with_selinuxval=yes ;;
esac
withval=${with_selinuxval}