Fixed bug #6011: use of target in configure.