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, dev@i-scream.org.uk) |
10 |
> |
AM_INIT_AUTOMAKE(idar, 1.2) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
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 |
93 |
|
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |
94 |
|
;; |
95 |
|
esac |
96 |
+ |
|
97 |
+ |
# Check for the --with-server-name option |
98 |
+ |
AC_ARG_WITH([server-name], [ --with-server-name=FILE default server name (default: localhost)], [servername=$withval], [servername=[localhost]]) |
99 |
+ |
AC_DEFINE_UNQUOTED([DEF_SERVER_NAME], ["$servername"], [Default Server Name]) |
100 |
+ |
|
101 |
+ |
# Check for the --with-server-port option |
102 |
+ |
AC_ARG_WITH([server-port], [ --with-server-port=FILE default server port (default: 4510)], [serverport=$withval], [serverport=[4510]]) |
103 |
+ |
AC_DEFINE_UNQUOTED([DEF_SERVER_PORT], [$serverport], [Default Server Port]) |
104 |
|
|
105 |
|
# And finish by changing these files |
106 |
|
AC_CONFIG_FILES([Makefile]) |