If the engine line constructed for -autoInstall already occurs in
the engine list, we should not install it again.
snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fd %s", dir);
if(!strcmp(protocol, "uci"))
snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fUCI");
+ if(strstr(firstChessProgramNames, buf)) return; // avoid duplicats
// append line
quote = malloc(strlen(firstChessProgramNames) + strlen(buf) + 2);
sprintf(quote, "%s%s\n", firstChessProgramNames, buf);