probe for opterr (exactly like the one for optreset) and have getopt.c define the variables only if configure doesn't find them in libc.