25 |
24 |
26 CFLAGS="$CFLAGS -Wall" |
25 CFLAGS="$CFLAGS -Wall" |
27 fi |
26 fi |
28 |
27 |
29 # Checks for libraries. |
28 # Checks for libraries. |
30 AC_CHECK_LIB([ncurses], [initscr]) |
29 AC_CHECK_LIB([ncurses], [initscr], , AC_MSG_ERROR([NCURSES library needed])) |
31 AC_CHECK_LIB([panel], [new_panel]) |
30 AC_CHECK_LIB([panel], [new_panel]) |
32 |
31 |
33 AC_CHECK_DECLS([strptime],,, |
32 AC_CHECK_DECLS([strptime],,, |
34 [#define _GNU_SOURCE |
33 [#define _GNU_SOURCE |
35 #include <time.h>]) |
34 #include <time.h>]) |
36 |
35 |
37 # Checks for header files. |
36 # Checks for header files. |
38 AC_HEADER_STDC |
37 AC_HEADER_STDC |
39 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \ |
38 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \ |
40 stdlib.h string.h strings.h sys/socket.h sys/time.h \ |
39 stdlib.h string.h strings.h sys/socket.h sys/time.h \ |
41 syslog.h termios.h unistd.h ncurses.h panel.h getopt.h]) |
40 syslog.h termios.h unistd.h getopt.h]) |
|
41 AC_CHECK_HEADERS([ncurses.h panel.h getopt.h], , |
|
42 AC_MSG_ERROR([Missing header file])) |
42 AC_VAR_TIMEZONE_EXTERNALS |
43 AC_VAR_TIMEZONE_EXTERNALS |
43 |
44 |
44 # Checks for typedefs, structures, and compiler characteristics. |
45 # Checks for typedefs, structures, and compiler characteristics. |
45 AC_HEADER_STDBOOL |
46 AC_HEADER_STDBOOL |
46 AC_C_CONST |
47 AC_C_CONST |