I believe in anything but 3rd edition with a ton of splatbooks, fighter is actually quite good. In our AD&D campaign the fighter is more lethal than the other four characters combined.
In AD&D, particularly 2E, particularly with C&T, Fighters are pretty great.
In 3.XE/PF, they're actually fine until you get to about level 6 or so. They're certainly still playable until 10, at least, if you have a solid build and/or the casters aren't going all-out (and the DM provides decent magic weapons/armour for you).
Tons of splatbooks make no difference to the matter, though - everything that makes casters OP is pretty core.
As for do you stick with it, as the OP asks, well, depends how bad it is, for me. I'm rarely married to a very narrow vision of what I want to play (I would consider "has to be a specific class" very narrow), so what I usually do is, is find something that I want to play that works. If there's nothing, I don't play. I think having a really narrow mind on what you want to play is somewhat problematic in RPGs in general. I mean, can't argue with taste, but it causes issues, in my experience.
(If it's 3.5E, you could always play a Warblade and pick the non-magical paths if you wanted a Fighter who sucked less.)
PS - If you can convince the DM to drop the iterative penalties on attacks in 3.XE/PF, that goes a long way to keeping Fighters and the like "in the fight", as it were, as well as speeding up the game a great deal. Bonus points if you get him to kill off "Full Attack" as an action.