Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.854 diff -u -r1.854 configure --- configure 13 Apr 2004 23:26:31 -0000 1.854 +++ configure 16 Apr 2004 08:49:48 -0000 @@ -2266,6 +2266,20 @@ fi echores "$_memalign" +echocheck "localtime_r()" +cat > $TMPC << EOF +#include +int main( void ) { localtime_r(NULL, NULL); } +EOF +_localtime_r=no +cc_check && _localtime_r=yes +if test "$_localtime_r" = yes ; then + _def_localtime_r='#define HAVE_LOCALTIME_R 1' +else + _def_localtime_r='#undef HAVE_LOCALTIME_R' +fi +echores "$_localtime_r" + echocheck "alloca.h" cat > $TMPC << EOF @@ -6212,6 +6226,9 @@ /* Define this if your system has the "malloc.h" header file */ $_def_malloc +/* required for libavformat */ +$_def_localtime_r + /* memalign is mapped to malloc if unsupported */ $_def_memalign #ifndef HAVE_MEMALIGN