6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(idar, 1.0, dev@i-scream.org.uk) |
10 |
< |
AM_INIT_AUTOMAKE(idar, 1.0) |
9 |
> |
AC_INIT(idar, 1.2.1, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(idar, 1.2.1) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
43 |
|
LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
44 |
|
fi |
45 |
|
if test -d "$withval/include"; then |
46 |
< |
CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
46 |
> |
CPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${CPPFLAGS}" |
47 |
|
fi |
48 |
|
] |
49 |
|
) |
59 |
|
AC_FUNC_MALLOC |
60 |
|
AC_FUNC_REALLOC |
61 |
|
AC_FUNC_FORK |
62 |
+ |
AC_CHECK_FUNCS(strlcpy) |
63 |
+ |
AC_CHECK_FUNCS(atoll) |
64 |
|
|
65 |
|
# Need curses or ncurses |
66 |
|
MP_WITH_CURSES |
74 |
|
AC_CANONICAL_HOST |
75 |
|
|
76 |
|
# Set things up for different OS's |
77 |
< |
# We define the name of the OS so the code can act accordingly |
76 |
< |
# We also need to add the right LDFLAGS |
77 |
> |
# We need to add the right LDFLAGS |
78 |
|
case $host_os in |
79 |
|
solaris2.*) |
80 |
< |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])],[-lnsl -lsocket]) |
80 |
< |
LIBS="$LIBS -lnsl -lsocket -Wl,-Bstatic -lukcprog -Wl,-Bdynamic" |
80 |
> |
LIBS="$LIBS -lnsl -lsocket" |
81 |
|
;; |
82 |
– |
freebsd4.*) |
83 |
– |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
84 |
– |
LIBS="$LIBS -lukcprog -static" |
85 |
– |
;; |
86 |
– |
linux-gnu) |
87 |
– |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
88 |
– |
LIBS="$LIBS -lukcprog -static" |
89 |
– |
;; |
90 |
– |
*) |
91 |
– |
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |
92 |
– |
;; |
82 |
|
esac |
83 |
+ |
|
84 |
+ |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
85 |
+ |
LIBS="$LIBS -lukcprog" |
86 |
+ |
|
87 |
+ |
# Check for the --with-server-name option |
88 |
+ |
AC_ARG_WITH([server-name], [ --with-server-name=NAME default server name (default: i-scream)], [servername=$withval], [servername=[i-scream]]) |
89 |
+ |
AC_DEFINE_UNQUOTED([DEF_SERVER_NAME], ["$servername"], [Default Server Name]) |
90 |
+ |
|
91 |
+ |
# Check for the --with-server-port option |
92 |
+ |
AC_ARG_WITH([server-port], [ --with-server-port=PORT default server port (default: 4510)], [serverport=$withval], [serverport=[4510]]) |
93 |
+ |
AC_DEFINE_UNQUOTED([DEF_SERVER_PORT], [$serverport], [Default Server Port]) |
94 |
|
|
95 |
|
# And finish by changing these files |
96 |
|
AC_CONFIG_FILES([Makefile]) |