Check if HAVE_STRING_H is defined before checking its value.