#
# deps-glibc	Figure out on which glibc version we need to depend.
#

DEB_BUILD_GNU_TYPE=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
DEB_BUILD_GNU_SYSTEM=`dpkg-architecture -qDEB_BUILD_GNU_SYSTEM`
DEB_BUILD_GNU_CPU=`dpkg-architecture -qDEB_BUILD_GNU_CPU`

case "$DEB_BUILD_GNU_SYSTEM" in

    linux)
	case "$DEB_BUILD_GNU_CPU" in
		ia64|alpha)
			echo 'glibc:Depends=libc6.1 (>= 2.3.2.ds1-12)'
			;;
		*)
			echo 'glibc:Depends=libc6 (>= 2.3.2.ds1-12)'
			;;
	esac
	;;
#    This would be the correct dependency, but it is dropped at
#    the request of the *bsd* maintainers (see Bug #253314)
#    *bsd*)
#	echo 'glibc:Depends=libc0.1 (>= 2.3.2.ds1-12)'
#	;;
    gnu)
	echo 'glibc:Depends=libc0.3 (>= 2.3.2.ds1-12)'
	;;
esac


