forked from Microsemi/switchtec-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
26 lines (18 loc) · 667 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AC_INIT(VERSION-GEN)
AC_PROG_CC
AC_CHECK_TOOL([WINDRES], [windres])
AC_ARG_WITH([curses],
[AS_HELP_STRING([--with-curses],
[support fancy gui @<:@default=check@:>@])],
[],
[with_curses=check])
AS_IF([test "x$with_curses" != xno],
[AC_CHECK_LIB([ncurses], [initscr], [], [], [])])
AS_IF([test "x$with_curses" != xno &&
test "x$ac_cv_lib_ncurses_initscr" != xyes ],
[AC_CHECK_LIB([tinfo], [tigetstr], [], [], [])
AC_CHECK_LIB([curses], [initscr], [], [], [-ltinfo])])
AC_CHECK_HEADERS([curses.h ncurses/curses.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADER([config.h])
AC_OUTPUT()