taviso / ctypes.sh

A foreign function interface for bash.
MIT License
2.09k stars 92 forks source link

Direct return value check after AC_PATH_PROG #21

Open elfring opened 9 years ago

elfring commented 9 years ago

Would it be a bit safer to combine the macro call "AC_PATH_PROG" with a "not found action"? How do you think about to check the retrieved return value for the issue "Addition of a build system generator" directly?

taviso commented 9 years ago

I used AC_PATH_PROG because I wanted to write a test that would run nm -D to see if bash exported some symbols I needed (It's a common error for packagers to force bash to build without exporting symbols, because they don't know about the plugin feature).

I never got around to writing that test, because GNU's nm -D is hard to write portably...if you know how to do that please tell me ;-)

When I figure out how to write that test, I'll fix this as well.