Mercurial > mplayer.hg
changeset 8289:2a69a884206a
Add a new test for "scandir()" and friends.
scandir() is used in the new menu code; and we must include our own
implemenation for solaris (and maybe other platforms as well).
author | jkeil |
---|---|
date | Tue, 26 Nov 2002 18:34:09 +0000 |
parents | 25fd5c47e31a |
children | 1dd8fe0776d3 |
files | configure |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Nov 26 18:31:30 2002 +0000 +++ b/configure Tue Nov 26 18:34:09 2002 +0000 @@ -2116,6 +2116,20 @@ echores "$_linux_devfs" +echocheck "scandir()" +cat > $TMPC << EOF +int main (void) { scandir("", 0, 0, 0); alphasort(0, 0); return 0; } +EOF +_scandir=no +cc_check && _scandir=yes +if test "$_scandir" = yes ; then + _def_scandir='#define HAVE_SCANDIR 1' +else + _def_scandir='#undef HAVE_SCANDIR' +fi +echores "$_scandir" + + echocheck "strsep()" cat > $TMPC << EOF #include <string.h> @@ -4824,6 +4838,9 @@ /* Define this if you have shm support */ $_def_shm +/* Define this if your system has scandir & alphasort */ +$_def_scandir + /* Define this if your system has strsep */ $_def_strsep