]>
Commit | Line | Data |
---|---|---|
ad1ae0b1 | 1 | AC_INIT([newt_pr.h]) |
2 | ||
3 | PACKAGE=newt | |
e271d0b0 | 4 | VERSION=$(awk '/^Version: / {print $2}' $srcdir/newt.spec) |
ad1ae0b1 | 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 | ||
19 | AC_MSG_CHECKING([for python versions]) | |
20 | PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null) | |
21 | AC_MSG_RESULT([$PYTHONVERS]) | |
22 | AC_SUBST([PYTHONVERS]) | |
23 | ||
24 | AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so]) | |
25 | if test "x$with_tcl" = "xno"; then | |
26 | WHIPTCLSO= | |
27 | else | |
28 | AC_CHECK_HEADER([tcl.h], [WHIPTCLSO=whiptcl.so], [WHIPTCLSO=]) | |
29 | fi | |
30 | AC_SUBST([WHIPTCLSO]) | |
31 | ||
32 | AC_ARG_WITH([gpm-support], [ --with-gpm-support compile with GPM support]) | |
33 | ||
34 | if test "x$with_gpm_support" = "xyes"; then | |
35 | AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled]) | |
36 | fi | |
37 | ||
970ce9d5 | 38 | AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support]) |
39 | ||
40 | if test "x$enable_nls" != "xno"; then | |
41 | AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled]) | |
42 | fi | |
43 | ||
ad1ae0b1 | 44 | AC_CONFIG_FILES([Makefile]) |
45 | AC_OUTPUT | |
46 |