]> git.ipfire.org Git - thirdparty/newt.git/blob - configure.ac
build: check for slang.h header
[thirdparty/newt.git] / configure.ac
1 AC_INIT([newt_pr.h])
2
3 PACKAGE=newt
4 VERSION=$(awk '/^Version: / {print $2}' $srcdir/newt.spec)
5 SONAME=0.52
6
7 AC_CONFIG_HEADER([config.h])
8
9 AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Package Name])
10 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [NEWT Version String])
11 AC_SUBST([VERSION])
12 AC_SUBST([SONAME])
13 AC_PROG_CC
14 AC_PROG_INSTALL
15 AC_PROG_LN_S
16
17 AC_CHECK_HEADERS([sys/select.h alloca.h])
18 AC_CHECK_HEADERS([slang.h])
19
20 AC_MSG_CHECKING([for python versions])
21 PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
22 AC_MSG_RESULT([$PYTHONVERS])
23 AC_SUBST([PYTHONVERS])
24
25 AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
26 if test "x$with_tcl" = "xno"; then
27 WHIPTCLSO=
28 else
29 AC_CHECK_HEADER([tcl.h], [WHIPTCLSO=whiptcl.so], [WHIPTCLSO=])
30 fi
31 AC_SUBST([WHIPTCLSO])
32
33 AC_ARG_WITH([gpm-support], [ --with-gpm-support compile with GPM support])
34
35 if test "x$with_gpm_support" = "xyes"; then
36 AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
37 fi
38
39 AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support])
40
41 if test "x$enable_nls" != "xno"; then
42 AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
43 fi
44
45 AC_CONFIG_FILES([Makefile libnewt.pc])
46 AC_OUTPUT
47