diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-29 21:24:36 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-29 21:24:36 +0000 |
commit | de4701d8bba611b0eacfde9cd75a935665a6528d (patch) | |
tree | 3a60f4d5b7a58e98c14e8bf9fd78897e9626e22e /configure | |
parent | d40f8f30c206e8fc75dd9badb1f3cadd8dd21e48 (diff) | |
download | mpv-de4701d8bba611b0eacfde9cd75a935665a6528d.tar.bz2 mpv-de4701d8bba611b0eacfde9cd75a935665a6528d.tar.xz |
Add a configure test for the strsep function (it's missing on solaris)
Provide an implementation of strsep in libosdep.a, if it's missing in the
system's libc library.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1573,6 +1573,21 @@ echocheck "linux devfs" echores "$_linux_devfs" +echocheck "strsep()" +cat > $TMPC << EOF +#include <string.h> +int main (void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; } +EOF +_strsep=no +cc_check && _strsep=yes +if test "$_strsep" = yes ; then + _def_strsep='#define HAVE_STRSEP 1' +else + _def_strsep='#undef HAVE_STRSEP' +fi +echores "$_strsep" + + echocheck "vsscanf()" cat > $TMPC << EOF #include <stdarg.h> @@ -3484,6 +3499,9 @@ $_def_zlib /* Define this if you have shm support */ $_def_shm +/* Define this if your system has strsep */ +$_def_strsep + /* Define this if your system has vsscanf */ $_def_vsscanf |