mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
timepng.c: check for clock_gettime
Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
parent
bf101dcea1
commit
21f92eef89
@ -1,5 +1,3 @@
|
|||||||
< contrib/libtests/timepng.o: pnglibconf.h
|
|
||||||
|
|
||||||
# Makefile.am:
|
# Makefile.am:
|
||||||
# Source file for Makefile.in (and hence Makefile)
|
# Source file for Makefile.in (and hence Makefile)
|
||||||
#
|
#
|
||||||
@ -9,7 +7,10 @@ PNGLIB_BASENAME= libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
|
|||||||
ACLOCAL_AMFLAGS = -I scripts
|
ACLOCAL_AMFLAGS = -I scripts
|
||||||
|
|
||||||
# test programs - run on make check, make distcheck
|
# test programs - run on make check, make distcheck
|
||||||
check_PROGRAMS= pngtest pngunknown pngstest pngvalid pngimage timepng
|
check_PROGRAMS= pngtest pngunknown pngstest pngvalid pngimage
|
||||||
|
if HAVE_CLOCK_GETTIME
|
||||||
|
check_PROGRAMS += timepng
|
||||||
|
endif
|
||||||
|
|
||||||
# Utilities - installed
|
# Utilities - installed
|
||||||
bin_PROGRAMS= pngfix png-fix-itxt
|
bin_PROGRAMS= pngfix png-fix-itxt
|
||||||
|
|||||||
@ -136,6 +136,11 @@ AC_C_RESTRICT
|
|||||||
AC_CHECK_FUNCS([memset memcpy strncpy],,
|
AC_CHECK_FUNCS([memset memcpy strncpy],,
|
||||||
AC_MSG_FAILURE([missing ANSI-C functions]))
|
AC_MSG_FAILURE([missing ANSI-C functions]))
|
||||||
|
|
||||||
|
# Some later POSIX 1003.1 functions are required for test programs, failure here
|
||||||
|
# is soft (the corresponding test program is not built).
|
||||||
|
AC_CHECK_FUNC([clock_gettime],,[AC_MSG_WARN([not building timepng])])
|
||||||
|
AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "$ac_cv_func_clock_gettime" = "yes"])
|
||||||
|
|
||||||
# floor and ceil are required for FLOATING_POINT, but they can be turned off on
|
# floor and ceil are required for FLOATING_POINT, but they can be turned off on
|
||||||
# the configure command line (and they are independent.) Default is to 'on'
|
# the configure command line (and they are independent.) Default is to 'on'
|
||||||
AC_ARG_ENABLE([floating-point],
|
AC_ARG_ENABLE([floating-point],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user