Detect a potential infinite loop in ./configure in AC_DEFINE_DIR.