… | |
… | |
60 | type will be autodetected at compiletime. |
60 | type will be autodetected at compiletime. |
61 | |
61 | |
62 | EOF |
62 | EOF |
63 | |
63 | |
64 | $DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") =~ /[yY]/)); |
64 | $DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") =~ /[yY]/)); |
|
|
65 | |
|
|
66 | print <<EOF; |
|
|
67 | |
|
|
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
69 | |
|
|
70 | |
|
|
71 | Another useful bit of functionality is the Linux eventfd, which is useful |
|
|
72 | for faster signal handling (don't care) and intra-thread communications |
|
|
73 | (mostly useful for embedding). Kernel support for this will be probed at |
|
|
74 | runtime, but your libc must contain the necessary wrapper. Glibc 2.7 and |
|
|
75 | later should have this wrapper. |
|
|
76 | |
|
|
77 | EOF |
|
|
78 | |
|
|
79 | $DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", (-e "/usr/include/sys/eventfd.h") ? "y" : "n") =~ /[yY]/)); |
65 | |
80 | |
66 | print <<EOF; |
81 | print <<EOF; |
67 | |
82 | |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
83 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
69 | |
84 | |