1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

configure: fix timezone/tm checks to work on Linux (time.h is needed)

This commit is contained in:
Jon Trulson 2021-10-24 12:01:45 -06:00
parent 18e6813b3c
commit 9ca0cf7545

View file

@ -404,8 +404,10 @@ AC_CHECK_SIZEOF([long long])
AC_CHECK_SIZEOF([time_t])
AC_STRUCT_TIMEZONE
AC_CHECK_DECLS([timezone])
AC_CHECK_MEMBERS([struct tm.tm_gmtoff])
AC_CHECK_DECLS([timezone],,,
[#include <time.h>])
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,
[#include <time.h>])
dnl jpeg
AC_CHECK_LIB(jpeg, jpeg_read_header, [JPEGLIB="-ljpeg"],