use mktemp in configure script