| 6 |
|
# |
| 7 |
|
|
| 8 |
|
# Change these to change the package name and version |
| 9 |
< |
AC_INIT(idar, 1.2, bugs@i-scream.org) |
| 10 |
< |
AM_INIT_AUTOMAKE(idar, 1.2) |
| 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$) |
| 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 |
| 78 |
< |
# 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]) |
| 82 |
< |
LIBS="$LIBS -lnsl -lsocket -Wl,-Bstatic -lukcprog -Wl,-Bdynamic" |
| 80 |
> |
LIBS="$LIBS -lnsl -lsocket" |
| 81 |
|
;; |
| 84 |
– |
freebsd4.*) |
| 85 |
– |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
| 86 |
– |
LIBS="$LIBS -lukcprog -static" |
| 87 |
– |
;; |
| 88 |
– |
linux-gnu) |
| 89 |
– |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
| 90 |
– |
LIBS="$LIBS -lukcprog -static" |
| 91 |
– |
;; |
| 92 |
– |
*) |
| 93 |
– |
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |
| 94 |
– |
;; |
| 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]]) |