Revision c54d0a1a

View differences:

configure
564 564
fi
565 565

  
566 566
cat > $TMPC << EOF
567
#define _GNU_SOURCE
568
#include <time.h>
569
int main( void ) { return *strptime("", "", 0); }
570
EOF
571

  
572
strptime=no
573
if $cc -o $TMPE $TMPC 2> /dev/null ; then
574
  strptime=yes
575
fi
576

  
577
cat > $TMPC << EOF
578 567
#include <time.h>
579 568
int main( void ) { localtime_r(NULL, NULL); }
580 569
EOF
......
925 914
  echo "TARGET_GPROF=yes" >> config.mak
926 915
  echo "#define HAVE_GPROF 1" >> $TMPH
927 916
fi
928
if test "$strptime" = "yes" ; then
929
  echo "#define HAVE_STRPTIME 1" >> $TMPH
930
else
931
  echo "BUILD_STRPTIME=yes" >> config.mak
932
fi
933 917
if test "$localtime_r" = "yes" ; then
934 918
  echo "#define HAVE_LOCALTIME_R 1" >> $TMPH
935
else
936
  echo "BUILD_LOCALTIME_R=yes" >> config.mak
937 919
fi
938 920
if test "$imlib2" = "yes" ; then
939 921
  echo "HAVE_IMLIB2=yes" >> config.mak

Also available in: Unified diff