summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-26 18:34:09 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-26 18:34:09 +0000
commit3a072d1e6ec62ec1c3d0de32291833dd98c87b99 (patch)
tree1bcf33819cdc7c02fde4eac899d6bbe9ee4f22e5 /configure
parent11896c376b384e5bdb77f4daf55bcf9b14e60a90 (diff)
downloadmpv-3a072d1e6ec62ec1c3d0de32291833dd98c87b99.tar.bz2
mpv-3a072d1e6ec62ec1c3d0de32291833dd98c87b99.tar.xz
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). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8290 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index bfbdd97d40..bf2bec9c74 100755
--- a/configure
+++ b/configure
@@ -2116,6 +2116,20 @@ echocheck "linux devfs"
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 @@ $_def_zlib
/* 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