Well, after begging for help in building a standalone DOSBox for OS X, with the latest SDL, I seem to have succeeded in doing exactly that. It was dumb luck, not skill, that did it, and I probably did it in the stupidest possible way.
Here's what I did. In the makefile in the top-level directory and in the src directory, I replaced the existing LIBS = line with this:
LIBS = -L/Users/edward/Development/SDL-forDB/lib/ /Users/edward/Development/SDL-forDB/lib/libSDLmain.a /Users/edward/Development/SDL-forDB/lib/libSDL.a -Wl,-framework,OpenGL -Wl,-framework,Cocoa -Wl,-framework,ApplicationServices -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,IOKit -framework OpenGL -framework CoreMIDI -framework AudioUnit -framework AudioToolbox
The resulting build ran successfully in a clean system.
What I don't understand is this. When I run the executable on my development system, the console doesn't show any error messages when I switch to and from full-screen mode. When I run the executable on a clean system, and switch to full screen mode, this message appears in the console (preceded by the date and time)
dosbox[3774:407] invalid fullscreen drawable
But it goes to full-screen correctly. What might be happening here?