Detect ARCH automatically.