Made this POSIX compliant (I think) based on patch sent in by James Strother.
changed [ a == b] to [a = b], = "" to = "x", removed popd and pu
shd. Also removed the chmod command for yaz configure script. The path was wrong and I think its not needed anymore anyway.