Fix warnings from autoconf about "...no AC_LANG_SOURCE call detected..." by adding that call within the AC_LINK_IFELSE call.
Rename the "test_case" test to "test_charcase" to make it slightly less confusing.