configure: improve checks for funcs not in stdlib
[m6w6/ext-psi] / m4 / posix / time.m4
index e1b4011c7910bf30c11f34fafb29c6809939c3d5..250e3c901b6ee208a6213a7fa3a0f90209922805 100644 (file)
@@ -27,15 +27,15 @@ PSI_CHECK_TIME() {
                struct timespec it_interval,
                struct timespec it_value]
        )
-
+       
        PSI_DECL(char *asctime, [(struct tm *tm)])
        PSI_DECL(char *asctime_r, [(struct tm *tm, char *buf)])
        PSI_DECL(clock_t clock, [()])
-       PSI_DECL(int clock_getcpuclockid, [(pid_t pid, clockid_t *clock_id)])
-       PSI_DECL(int clock_getres, [(clockid_t clk_id, struct timespec *res)])
-       PSI_DECL(int clock_gettime, [(clockid_t clk_id, struct timespec *tp)])
-       PSI_DECL(int clock_nanosleep, [(clockid_t clk_id, int flags, struct timespec *rqtp, struct timespec *rmtp)])
-       PSI_DECL(int clock_settime, [(clockid_t clk_id, struct timespec *tp)])
+       PSI_DECL(int clock_getcpuclockid, [(pid_t pid, clockid_t *clock_id)], [], [-lrt])
+       PSI_DECL(int clock_getres, [(clockid_t clk_id, struct timespec *res)], [], [-lrt])
+       PSI_DECL(int clock_gettime, [(clockid_t clk_id, struct timespec *tp)], [], [-lrt])
+       PSI_DECL(int clock_nanosleep, [(clockid_t clk_id, int flags, struct timespec *rqtp, struct timespec *rmtp)], [], [-lrt])
+       PSI_DECL(int clock_settime, [(clockid_t clk_id, struct timespec *tp)], [], [-lrt])
        PSI_DECL(char *ctime, [(time_t *t)])
        PSI_DECL(char *ctime_r, [(time_t *t, char *buf)])
        PSI_DECL(double difftime, [(time_t time1, time_t time0)])
@@ -47,14 +47,14 @@ PSI_CHECK_TIME() {
        PSI_DECL(time_t mktime, [(struct tm *tm)])
        PSI_DECL(int nanosleep, [(struct timespec *rqts, struct timespec *rmts)])
        PSI_DECL(size_t strftime, [(char *s, size_t max, char *fmt, struct tm *tm)])
-       dnl PSI_DECL(size_t strftime_l, [(char *s, size_t max, char *fmt, struct tm *tm, locale_t l)])
+       PSI_DECL(size_t strftime_l, [(char *s, size_t max, char *fmt, struct tm *tm, locale_t l)])
        PSI_DECL(char *strptime, [(char *s, char *fmt, struct tm *tm)])
        PSI_DECL(time_t time, [(time_t *t)])
-       dnl PSI_DECL(int timer_create, [(clockid_t clk_id, struct sigevent *se, timer_t *t)])
-       PSI_DECL(int timer_delete, [(timer_t t)])
-       PSI_DECL(int timer_getoverrun, [(timer_t t)])
-       PSI_DECL(int timer_gettime, [(timer_t t, struct itimerspec *ts)])
-       PSI_DECL(int timer_settime, [(timer_t t, int flags, struct itimerspec *value, struct itimerspec *ovalue)])
+       PSI_DECL(int timer_create, [(clockid_t clk_id, struct sigevent *se, timer_t *t)], [], [-lrt])
+       PSI_DECL(int timer_delete, [(timer_t t)], [], [-lrt])
+       PSI_DECL(int timer_getoverrun, [(timer_t t)], [], [-lrt])
+       PSI_DECL(int timer_gettime, [(timer_t t, struct itimerspec *ts)], [], [-lrt])
+       PSI_DECL(int timer_settime, [(timer_t t, int flags, struct itimerspec *value, struct itimerspec *ovalue)], [], [-lrt])
        PSI_DECL(void tzset, [()])
 
        PSI_EXTVAR(int daylight)