diff options
author | Glenn Maynard <g_sf@zewt.org> | 2003-09-04 09:52:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-09-04 09:52:39 +0000 |
commit | 5e4639e2002d0a19d4278f9ff4ed11f1bdace33b (patch) | |
tree | e5b3e7300e2474c4bdd84a31f9c3ca6dab2b967e /configure | |
parent | a17236c53cd3ffe1d4eceb3be82b39001c006b3f (diff) | |
download | ffmpeg-5e4639e2002d0a19d4278f9ff4ed11f1bdace33b.tar.gz |
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
Originally committed as revision 2204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -574,6 +574,16 @@ if $cc -o $TMPE $TMPC 2> /dev/null ; then strptime=yes fi +cat > $TMPC << EOF +#include <time.h> +int main( void ) { localtime_r(NULL, NULL); } +EOF + +localtime_r=no +if $cc -o $TMPE $TMPC 2> /dev/null ; then + localtime_r=yes +fi + if test "$zlib" = "yes"; then # check for zlib - mmu_man cat > $TMPC << EOF @@ -920,6 +930,11 @@ if test "$strptime" = "yes" ; then else echo "BUILD_STRPTIME=yes" >> config.mak fi +if test "$localtime_r" = "yes" ; then + echo "#define HAVE_LOCALTIME_R 1" >> $TMPH +else + echo "BUILD_LOCALTIME_R=yes" >> config.mak +fi if test "$imlib2" = "yes" ; then echo "HAVE_IMLIB2=yes" >> config.mak fi |