Commit | Line | Data |
---|---|---|
63a4f1f4 MBT |
1 | ?RCS: You may distribute under the terms of either the GNU General Public |
2 | ?RCS: License or the Artistic License, as specified in the README file. | |
3 | ?RCS: | |
4 | ?MAKE:d_isless: cat i_math Compile rm_try Setvar | |
5 | ?MAKE: -pick add $@ %< | |
6 | ?S:d_isless: | |
7 | ?S: This variable conditionally defines the HAS_ISLESS symbol, which | |
8 | ?S: indicates to the C program that the isless() routine is available. | |
9 | ?S:. | |
10 | ?C:HAS_ISLESS: | |
11 | ?C: This symbol, if defined, indicates that the isless routine is | |
5608e228 | 12 | ?C: available to do the isless function. |
63a4f1f4 MBT |
13 | ?C:. |
14 | ?H:#$d_isless HAS_ISLESS /**/ | |
15 | ?H:. | |
16 | ?LINT:set d_isless | |
17 | : check for isless | |
18 | echo "Checking to see if you have isless..." >&4 | |
19 | $cat >try.c <<EOCP | |
20 | #$i_math I_MATH | |
21 | #ifdef I_MATH | |
22 | #include <math.h> | |
23 | #endif | |
24 | int main() { return isless(0.0); } | |
25 | EOCP | |
26 | set try | |
27 | if eval $compile; then | |
28 | val="$define" | |
29 | echo "You have isless." | |
30 | else | |
31 | val="$undef" | |
32 | echo "You do not have isless." | |
33 | fi | |
34 | $rm_try | |
35 | set d_isless | |
36 | eval $setvar | |
37 |