1999-09-03 10:27:29 -04:00
|
|
|
AC_INIT(src)
|
|
|
|
|
2001-12-04 10:15:14 -05:00
|
|
|
# we don't want VERSION in our config.h
|
2006-09-22 10:46:05 -04:00
|
|
|
if grep '^#undef VERSION' $srcdir/config.h.in >/dev/null; then
|
2006-09-21 09:53:56 -04:00
|
|
|
grep -v '^#undef VERSION' $srcdir/config.h.in > config.h.in.temp
|
|
|
|
mv -f config.h.in.temp $srcdir/config.h.in
|
2001-12-04 10:15:14 -05:00
|
|
|
fi
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2005-12-11 04:41:15 -05:00
|
|
|
AM_INIT_AUTOMAKE(irssi, 0.8.10)
|
1999-09-03 10:27:29 -04:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_STDC_HEADERS
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2001-07-30 18:10:11 -04:00
|
|
|
AC_PATH_PROG(sedpath, sed)
|
|
|
|
AC_PATH_PROG(perlpath, perl)
|
|
|
|
|
2000-12-16 23:20:31 -05:00
|
|
|
dnl * --disable-static isn't a good idea, complain if it's used
|
|
|
|
if test "x$enable_static" = "xno"; then
|
|
|
|
AC_ERROR([Don't give --disable-static option to configure])
|
|
|
|
fi
|
2000-10-04 06:42:13 -04:00
|
|
|
|
2001-09-11 13:32:29 -04:00
|
|
|
AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h sys/ioctl.h sys/resource.h)
|
1999-09-03 10:27:29 -04:00
|
|
|
|
2000-10-26 14:12:20 -04:00
|
|
|
# check posix headers..
|
|
|
|
AC_CHECK_HEADERS(sys/time.h sys/utsname.h regex.h)
|
2000-10-08 08:54:26 -04:00
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
AC_ARG_WITH(socks,
|
|
|
|
[ --with-socks Build with socks support],
|
|
|
|
if test x$withval = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_socks=yes
|
1999-09-03 10:27:29 -04:00
|
|
|
else
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_socks=no
|
|
|
|
else
|
|
|
|
want_socks=yes
|
|
|
|
fi
|
1999-09-03 10:27:29 -04:00
|
|
|
fi,
|
|
|
|
want_socks=no)
|
|
|
|
|
|
|
|
AC_ARG_WITH(textui,
|
2000-03-10 15:58:04 -05:00
|
|
|
[ --with-textui Build text frontend],
|
1999-09-03 10:27:29 -04:00
|
|
|
if test x$withval = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_textui=yes
|
1999-09-03 10:27:29 -04:00
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_textui=no
|
|
|
|
else
|
2000-10-03 18:57:14 -04:00
|
|
|
want_textui=yes
|
1999-09-03 10:27:29 -04:00
|
|
|
fi
|
|
|
|
fi,
|
|
|
|
want_textui=yes)
|
|
|
|
|
1999-10-02 06:29:01 -04:00
|
|
|
AC_ARG_WITH(bot,
|
|
|
|
[ --with-bot Build irssi-bot],
|
|
|
|
if test x$withval = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_irssibot=yes
|
1999-10-02 06:29:01 -04:00
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_irssibot=no
|
|
|
|
else
|
2000-10-03 18:57:14 -04:00
|
|
|
want_irssibot=yes
|
1999-10-02 06:29:01 -04:00
|
|
|
fi
|
|
|
|
fi,
|
2000-09-06 17:30:56 -04:00
|
|
|
want_irssibot=no)
|
1999-10-02 06:29:01 -04:00
|
|
|
|
2000-09-29 19:59:51 -04:00
|
|
|
AC_ARG_WITH(proxy,
|
|
|
|
[ --with-proxy Build irssi-proxy],
|
|
|
|
if test x$withval = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_irssiproxy=yes
|
2000-09-29 19:59:51 -04:00
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_irssiproxy=no
|
|
|
|
else
|
2000-10-03 18:57:14 -04:00
|
|
|
want_irssiproxy=yes
|
2000-09-29 19:59:51 -04:00
|
|
|
fi
|
|
|
|
fi,
|
|
|
|
want_irssiproxy=no)
|
|
|
|
|
2001-10-28 06:30:26 -05:00
|
|
|
AC_ARG_WITH(terminfo,
|
|
|
|
[ --with-terminfo Use terminfo directly instead of curses],
|
|
|
|
if test x$withval = xyes; then
|
|
|
|
want_terminfo=yes
|
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_terminfo=no
|
|
|
|
else
|
|
|
|
want_terminfo=yes
|
|
|
|
fi
|
|
|
|
fi,
|
2001-11-05 09:13:52 -05:00
|
|
|
want_terminfo=yes)
|
2000-09-29 19:59:51 -04:00
|
|
|
|
2006-08-08 17:11:20 -04:00
|
|
|
AC_ARG_WITH(cuix,
|
2006-09-09 09:49:10 -04:00
|
|
|
[ --with-cuix Use curses ui extended],
|
2006-08-08 17:11:20 -04:00
|
|
|
if test x$withval = xyes; then
|
|
|
|
want_terminfo=no
|
|
|
|
want_cuix=yes
|
|
|
|
fi, want_cuix=no)
|
|
|
|
|
|
|
|
|
2000-05-29 12:37:00 -04:00
|
|
|
AC_ARG_WITH(modules,
|
|
|
|
[ --with-modules Specify what modules to build in binary],
|
2000-10-11 18:09:53 -04:00
|
|
|
if test x$withval != xyes -a x$withval != xno; then
|
|
|
|
build_modules="$withval"
|
|
|
|
fi)
|
1999-09-03 10:27:29 -04:00
|
|
|
|
2001-07-30 18:10:11 -04:00
|
|
|
if test "x$prefix" != "xNONE"; then
|
2001-10-13 12:22:11 -04:00
|
|
|
prefix=`eval echo $prefix`
|
2001-10-22 16:34:05 -04:00
|
|
|
PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=$prefix"
|
|
|
|
perl_library_dir="PERL_USE_LIB"
|
|
|
|
perl_set_use_lib=yes
|
2001-07-30 18:10:11 -04:00
|
|
|
|
|
|
|
perl_prefix_note=yes
|
2000-07-16 10:30:29 -04:00
|
|
|
fi
|
|
|
|
|
2002-12-23 01:06:14 -05:00
|
|
|
AC_ARG_WITH(gc,
|
|
|
|
[ --with-gc Use garbage collector, requires GLIB2],
|
|
|
|
if test x$withval = xyes; then
|
|
|
|
want_gc=yes
|
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_gc=no
|
|
|
|
else
|
|
|
|
want_gc=yes
|
|
|
|
fi
|
|
|
|
fi,
|
2002-12-28 13:21:05 -05:00
|
|
|
want_gc=no)
|
2002-12-23 01:06:14 -05:00
|
|
|
|
2003-01-14 15:12:38 -05:00
|
|
|
AC_ARG_WITH(glib1,
|
|
|
|
[ --with-glib1 Use GLIB 1.2 instead of 2.0 if both exist],
|
|
|
|
if test x$withval = xyes; then
|
|
|
|
want_glib1=yes
|
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_glib1=no
|
|
|
|
else
|
|
|
|
want_glib1=yes
|
|
|
|
fi
|
|
|
|
fi,
|
|
|
|
want_glib1=no)
|
|
|
|
|
2001-10-24 19:17:27 -04:00
|
|
|
AC_ARG_WITH(perl-staticlib,
|
|
|
|
[ --with-perl-staticlib Specify that we want to link perl libraries
|
2002-08-26 15:32:15 -04:00
|
|
|
statically in irssi, default is no],
|
2001-10-24 19:17:27 -04:00
|
|
|
if test x$withval = xyes; then
|
|
|
|
want_staticperllib=yes
|
|
|
|
else
|
|
|
|
if test "x$withval" = xno; then
|
|
|
|
want_staticperllib=no
|
|
|
|
else
|
|
|
|
want_staticperllib=yes
|
|
|
|
fi
|
|
|
|
fi,
|
|
|
|
want_staticperllib=no)
|
|
|
|
|
|
|
|
|
2001-07-30 18:10:11 -04:00
|
|
|
AC_ARG_WITH(perl-lib,
|
|
|
|
[ --with-perl-lib=[site|vendor|DIR] Specify where to install the
|
2002-08-26 15:32:15 -04:00
|
|
|
Perl libraries for irssi, default is site],
|
2001-07-30 18:10:11 -04:00
|
|
|
if test "x$withval" = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_perl=yes
|
2001-07-30 18:10:11 -04:00
|
|
|
elif test "x$withval" = xno; then
|
|
|
|
want_perl=no
|
|
|
|
elif test "x$withval" = xsite; then
|
|
|
|
want_perl=yes
|
2001-10-14 11:19:57 -04:00
|
|
|
perl_prefix_note=no
|
2001-10-14 10:56:49 -04:00
|
|
|
PERL_MM_PARAMS=""
|
2001-07-30 18:10:11 -04:00
|
|
|
elif test "x$withval" = xvendor; then
|
|
|
|
want_perl=yes
|
2001-10-14 11:19:57 -04:00
|
|
|
perl_prefix_note=no
|
2001-07-30 18:10:11 -04:00
|
|
|
if test -z "`$perlpath -v|grep '5\.0'`"; then
|
|
|
|
PERL_MM_PARAMS="INSTALLDIRS=vendor"
|
2000-02-20 18:28:50 -05:00
|
|
|
else
|
2001-07-30 18:10:11 -04:00
|
|
|
PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=`perl -e 'use Config; print $Config{prefix}'`"
|
2000-02-20 18:28:50 -05:00
|
|
|
fi
|
2001-07-30 18:10:11 -04:00
|
|
|
perl_library_dir="(vendor default - `$perlpath -e 'use Config; print $Config{archlib}'`)"
|
|
|
|
else
|
|
|
|
want_perl=yes
|
2001-10-14 11:19:57 -04:00
|
|
|
perl_prefix_note=no
|
2001-07-30 18:10:11 -04:00
|
|
|
PERL_MM_PARAMS="INSTALLDIRS=perl LIB=$withval"
|
2001-10-22 16:34:05 -04:00
|
|
|
perl_library_dir="PERL_USE_LIB"
|
|
|
|
perl_set_use_lib=yes
|
2000-02-20 18:28:50 -05:00
|
|
|
fi,
|
|
|
|
want_perl=yes)
|
|
|
|
|
2001-07-29 05:17:53 -04:00
|
|
|
AC_ARG_WITH(perl,
|
2001-10-20 17:32:22 -04:00
|
|
|
[ --with-perl[=yes|no|module] Build with Perl support - also specifies
|
2002-08-26 15:32:15 -04:00
|
|
|
if it should be built into main irssi binary
|
|
|
|
(static, default) or as module],
|
2001-07-29 05:17:53 -04:00
|
|
|
if test x$withval = xyes; then
|
2001-10-20 17:32:22 -04:00
|
|
|
want_perl=static
|
2001-07-29 05:17:53 -04:00
|
|
|
elif test x$withval = xstatic; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_perl=static
|
2001-10-20 17:32:22 -04:00
|
|
|
elif test x$withval = xmodule; then
|
|
|
|
want_perl=module
|
2000-10-03 18:57:14 -04:00
|
|
|
else
|
|
|
|
want_perl=no
|
|
|
|
fi,
|
2001-10-20 17:32:22 -04:00
|
|
|
want_perl=static)
|
2000-10-03 18:57:14 -04:00
|
|
|
|
2002-11-21 12:48:40 -05:00
|
|
|
AC_ARG_WITH(file-offset-size,
|
|
|
|
[ --with-file-offset-size=BITS Set size of file offsets. Usually 32 or 64.
|
|
|
|
(default: 64 if available)],
|
|
|
|
preferred_off_t_bits=$withval,
|
|
|
|
preferred_off_t_bits=64)
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
AC_ARG_ENABLE(ipv6,
|
|
|
|
[ --enable-ipv6 Enable IPv6 support],
|
|
|
|
if test x$enableval = xyes; then
|
2000-10-03 18:57:14 -04:00
|
|
|
want_ipv6=yes
|
1999-09-03 10:27:29 -04:00
|
|
|
else
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "x$enableval" = xno; then
|
|
|
|
want_ipv6=no
|
|
|
|
else
|
|
|
|
want_ipv6=yes
|
|
|
|
fi
|
1999-09-03 10:27:29 -04:00
|
|
|
fi,
|
2005-11-19 11:14:37 -05:00
|
|
|
want_ipv6=yes)
|
1999-09-03 10:27:29 -04:00
|
|
|
|
2002-08-26 15:32:15 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** SSL Library checks (OpenSSL)
|
|
|
|
dnl **
|
|
|
|
|
2006-09-11 05:03:06 -04:00
|
|
|
AC_ARG_ENABLE(ssl,
|
2002-08-26 18:55:36 -04:00
|
|
|
[ --disable-ssl Disable Secure Sockets Layer support],,
|
2002-08-26 15:32:15 -04:00
|
|
|
enable_ssl=yes)
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** just some generic stuff...
|
|
|
|
dnl **
|
|
|
|
|
2001-03-03 16:01:36 -05:00
|
|
|
dnl * OS specific options
|
|
|
|
case "$host_os" in
|
|
|
|
hpux*)
|
|
|
|
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-01-14 08:30:21 -05:00
|
|
|
|
2002-02-15 09:42:14 -05:00
|
|
|
AC_CHECK_FUNCS(mkfifo fcntl nl_langinfo)
|
2002-01-14 08:30:21 -05:00
|
|
|
|
2002-01-19 18:36:11 -05:00
|
|
|
AC_CHECK_FUNC(socket, [], [
|
2002-01-14 08:30:21 -05:00
|
|
|
AC_CHECK_LIB(socket, socket, [
|
|
|
|
LIBS="$LIBS -lsocket"
|
|
|
|
])
|
2002-01-19 18:36:11 -05:00
|
|
|
])
|
2002-01-14 08:30:21 -05:00
|
|
|
|
2002-01-19 18:36:11 -05:00
|
|
|
AC_CHECK_FUNC(inet_addr, [], [
|
2002-01-14 08:30:21 -05:00
|
|
|
AC_CHECK_LIB(nsl, inet_addr, [
|
|
|
|
LIBS="$LIBS -lnsl"
|
2002-08-26 14:53:08 -04:00
|
|
|
])
|
2002-01-19 18:36:11 -05:00
|
|
|
])
|
2002-01-14 08:30:21 -05:00
|
|
|
|
|
|
|
dnl * gcc specific options
|
|
|
|
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
|
|
|
fi
|
|
|
|
|
2000-03-26 11:46:40 -05:00
|
|
|
dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
|
|
|
|
dnl * accept header files where to find the typedef..
|
|
|
|
AC_MSG_CHECKING([for socklen_t])
|
|
|
|
AC_CACHE_VAL(irssi_cv_type_socklen_t,
|
|
|
|
[AC_TRY_COMPILE([
|
2000-07-09 11:11:47 -04:00
|
|
|
#include <sys/types.h>
|
2000-03-26 11:46:40 -05:00
|
|
|
#include <sys/socket.h>],
|
|
|
|
[socklen_t t;],
|
|
|
|
irssi_cv_type_socklen_t=yes,
|
|
|
|
irssi_cv_type_socklen_t=no,
|
|
|
|
)])
|
|
|
|
if test $irssi_cv_type_socklen_t = no; then
|
|
|
|
AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($irssi_cv_type_socklen_t)
|
|
|
|
|
2002-11-21 12:48:40 -05:00
|
|
|
dnl * off_t checks, try to make it 64bit
|
|
|
|
AC_DEFINE_UNQUOTED(_FILE_OFFSET_BITS, $preferred_off_t_bits)
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF(int)
|
|
|
|
AC_CHECK_SIZEOF(long)
|
|
|
|
AC_CHECK_SIZEOF(long long)
|
|
|
|
|
|
|
|
dnl * older autoconfs don't include sys/types.h, so do it manually
|
|
|
|
AC_MSG_CHECKING([size of off_t])
|
|
|
|
AC_TRY_RUN([
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
int main() {
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(off_t));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
], [
|
|
|
|
sizeof_off_t=`cat conftestval`
|
|
|
|
rm -f conftestval
|
|
|
|
], [
|
|
|
|
AC_ERROR([Unsupported off_t size])
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT($sizeof_off_t)
|
|
|
|
|
|
|
|
if test $sizeof_off_t = 8; then
|
|
|
|
offt_64bit=yes
|
|
|
|
else
|
|
|
|
offt_64bit=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$sizeof_off_t = x$ac_cv_sizeof_long; then
|
|
|
|
# try to use unsigned long always first
|
|
|
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "lu")
|
|
|
|
AC_DEFINE(UOFF_T_LONG)
|
|
|
|
elif test x$sizeof_off_t = x$ac_cv_sizeof_int; then
|
|
|
|
# next try int
|
|
|
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u")
|
|
|
|
AC_DEFINE(UOFF_T_INT)
|
|
|
|
elif test x$sizeof_off_t = x$ac_cv_sizeof_long_long; then
|
|
|
|
# and finally long long
|
|
|
|
AC_DEFINE_UNQUOTED(PRIuUOFF_T, "llu")
|
|
|
|
AC_DEFINE(UOFF_T_LONG_LONG)
|
|
|
|
else
|
|
|
|
AC_ERROR([Couldn't find integer type for off_t])
|
|
|
|
fi
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** check for socks
|
|
|
|
dnl **
|
|
|
|
|
|
|
|
if test "x$want_socks" = "xyes"; then
|
|
|
|
AC_CHECK_LIB(socks, connect, [
|
2005-10-21 08:48:07 -04:00
|
|
|
AC_DEFINE(HAVE_SOCKS,, Build with socks support)
|
2001-10-28 06:30:26 -05:00
|
|
|
LIBS="$LIBS -lsocks"
|
1999-09-03 10:27:29 -04:00
|
|
|
AC_CHECK_HEADER(socks.h, [
|
|
|
|
AC_DEFINE(HAVE_SOCKS_H)
|
|
|
|
CFLAGS="$CFLAGS -DSOCKS"
|
|
|
|
AC_MSG_RESULT(["socks5 library found, building with it"])
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(["socks4 library found, building with it"])
|
|
|
|
CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
|
|
|
|
])
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
2006-08-08 17:11:20 -04:00
|
|
|
if test "x$want_cuix" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_CUIX], [1] ,[Enable cuix support])
|
|
|
|
fi
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
2000-04-26 04:10:09 -04:00
|
|
|
dnl ** fe-text checks
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
|
|
|
|
2001-02-23 03:07:10 -05:00
|
|
|
AC_DEFUN(AC_CHECK_GLIBDIR,[
|
|
|
|
AC_MSG_CHECKING([whether GLib is unpacked to irssi dir])
|
|
|
|
|
|
|
|
GLIB_DIR=`for d in *; do test -f $d/glib.h && echo $d; done`
|
2001-07-14 15:13:07 -04:00
|
|
|
if test -n "$GLIB_DIR"; then
|
2001-02-23 03:07:10 -05:00
|
|
|
dnl * glib in irssi directory, use it
|
|
|
|
AC_MSG_RESULT([yes, using it])
|
|
|
|
|
|
|
|
dnl * we have to do this at this point so we know what libs gmodule needs
|
|
|
|
if test ! -f $GLIB_DIR/.libs/libglib.a; then
|
|
|
|
echo
|
|
|
|
echo "configuring GLib ..."
|
|
|
|
echo
|
|
|
|
cd $GLIB_DIR
|
|
|
|
if test ! -f glib-config; then
|
|
|
|
./configure
|
|
|
|
fi
|
|
|
|
${MAKE-make}
|
|
|
|
cd ..
|
|
|
|
echo
|
2001-01-15 19:14:14 -05:00
|
|
|
fi
|
2001-02-23 03:07:10 -05:00
|
|
|
|
|
|
|
GLIB_LDEXTRA=`$GLIB_DIR/glib-config --libs gmodule|$sedpath -e 's/-lglib//' -e 's/-lgmodule//' -e 's,-L/usr/local/lib ,,'|$sedpath 's/ \+/ /g'`
|
|
|
|
full_glib_dir="`pwd`/$GLIB_DIR"
|
|
|
|
GLIB_CFLAGS="-I$full_glib_dir -I$full_glib_dir/gmodule"
|
|
|
|
if test -f $full_glib_dir/.libs/libglib.a; then
|
|
|
|
GLIB_LIBS="$full_glib_dir/.libs/libglib.a $GLIB_LDEXTRA"
|
|
|
|
if test -f $full_glib_dir/gmodule/.libs/libgmodule.a; then
|
|
|
|
GLIB_LIBS="$GLIB_LIBS $full_glib_dir/gmodule/.libs/libgmodule.a"
|
2001-05-14 11:25:24 -04:00
|
|
|
AC_DEFINE(HAVE_GMODULE)
|
2002-02-15 03:31:35 -05:00
|
|
|
have_gmodule=yes
|
2001-02-23 03:07:10 -05:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
GLIB_LIBS="$full_glib_dir/libglib.a $GLIB_LDEXTRA"
|
|
|
|
if test -f $full_glib_dir/gmodule/libgmodule.a; then
|
|
|
|
GLIB_LIBS="$GLIB_LIBS $full_glib_dir/gmodule/libgmodule.a"
|
2001-05-14 11:25:24 -04:00
|
|
|
AC_DEFINE(HAVE_GMODULE)
|
2002-02-15 03:31:35 -05:00
|
|
|
have_gmodule=yes
|
2001-02-23 03:07:10 -05:00
|
|
|
fi
|
2001-01-15 19:14:14 -05:00
|
|
|
fi
|
2001-02-23 03:07:10 -05:00
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
2001-01-15 19:14:14 -05:00
|
|
|
else
|
2001-02-23 03:07:10 -05:00
|
|
|
AC_MSG_RESULT([no])
|
2001-01-15 19:14:14 -05:00
|
|
|
fi
|
2001-02-23 03:07:10 -05:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_CHECK_GLIBDIR
|
|
|
|
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$GLIB_DIR"; then
|
2005-10-18 12:20:08 -04:00
|
|
|
if test "x$want_glib1" = "xyes"; then
|
2003-01-14 15:12:38 -05:00
|
|
|
dnl * check only for glib1
|
|
|
|
checks="1 2"
|
|
|
|
else
|
|
|
|
dnl * check glib2 then glib1
|
|
|
|
checks="3 4 1 2"
|
|
|
|
fi
|
2001-02-23 03:07:10 -05:00
|
|
|
|
2002-04-15 11:48:04 -04:00
|
|
|
for try in $checks; do
|
|
|
|
glib_config_args=
|
|
|
|
if test $try = 1 -o $try = 3; then
|
|
|
|
glib_modules=gmodule
|
|
|
|
else
|
|
|
|
echo "*** trying without -lgmodule"
|
|
|
|
glib_modules=
|
|
|
|
fi
|
|
|
|
if test $try = 1 -o $try = 2; then
|
|
|
|
AM_PATH_GLIB(1.2.0,,, $glib_modules)
|
|
|
|
else
|
|
|
|
AM_PATH_GLIB_2_0(2.0.0,,, $glib_modules)
|
|
|
|
fi
|
|
|
|
if test "$GLIB_LIBS"; then
|
|
|
|
if test $glib_modules = gmodule; then
|
|
|
|
AC_DEFINE(HAVE_GMODULE)
|
|
|
|
have_gmodule=yes
|
|
|
|
fi
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$GLIB_LIBS"; then
|
2001-02-23 03:07:10 -05:00
|
|
|
echo
|
|
|
|
echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org"
|
|
|
|
echo "*** If you can't install GLIB anywhere or if you don't want to,"
|
|
|
|
echo "*** you can just unpack it to Irssi's source directory and"
|
|
|
|
echo "*** Irssi will automatically compile and use it."
|
|
|
|
echo
|
|
|
|
|
2005-11-03 16:33:32 -05:00
|
|
|
glib_url=ftp://ftp.gtk.org/pub/gtk/v2.8/
|
|
|
|
glib_file=glib-2.8.3.tar.gz
|
2001-02-23 03:07:10 -05:00
|
|
|
|
|
|
|
dlcmd=
|
2004-01-19 14:09:56 -05:00
|
|
|
if test -n "`wget --version 2>/dev/null|grep -i wget`"; then
|
2005-11-03 16:33:32 -05:00
|
|
|
dlcmd="wget -c $glib_url$glib_file"
|
2004-01-19 14:09:56 -05:00
|
|
|
elif test -n "`ncftpget --version 2>/dev/null|grep -i ncftp`"; then
|
2005-11-03 16:33:32 -05:00
|
|
|
dlcmd="ncftpget -z $glib_url$glib_file"
|
2004-01-19 14:09:56 -05:00
|
|
|
elif test -n "`lynx --version 2>/dev/null|grep -i lynx`"; then
|
2005-11-03 16:33:32 -05:00
|
|
|
dlcmd="lynx --source $glib_url$glib_file > $glib_file"
|
2004-01-19 14:09:56 -05:00
|
|
|
elif test -n "`curl --version 2>/dev/null|grep -i curl`"; then
|
2005-11-03 16:33:32 -05:00
|
|
|
dlcmd="curl -C - $glib_url$glib_file"
|
2001-02-23 03:07:10 -05:00
|
|
|
fi
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$dlcmd"; then
|
2001-02-23 03:07:10 -05:00
|
|
|
echo "*** I can download GLib for you now. If you don't want to, press CTRL-C now."
|
2001-12-03 14:56:09 -05:00
|
|
|
echo
|
|
|
|
echo "*** Press ENTER to continue"
|
2001-02-23 03:07:10 -05:00
|
|
|
read answer
|
|
|
|
eval $dlcmd
|
|
|
|
if `gunzip $glib_file`; then
|
|
|
|
glib_file=`echo $glib_file|$sedpath s/\.gz$//`
|
|
|
|
if `tar xf $glib_file`; then
|
|
|
|
rm -f $glib_file
|
|
|
|
AC_CHECK_GLIBDIR
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$GLIB_LIBS"; then
|
2001-02-23 03:07:10 -05:00
|
|
|
AC_ERROR([GLIB is required to build irssi.])
|
|
|
|
fi
|
2000-11-23 17:42:37 -05:00
|
|
|
fi
|
2000-07-31 16:17:33 -04:00
|
|
|
fi
|
1999-09-03 10:27:29 -04:00
|
|
|
|
2001-10-28 06:30:26 -05:00
|
|
|
LIBS="$LIBS $GLIB_LIBS"
|
1999-10-30 09:21:14 -04:00
|
|
|
|
2003-11-16 19:29:11 -05:00
|
|
|
if test "$enable_ssl" = "yes"; then
|
|
|
|
if pkg-config --exists openssl; then
|
|
|
|
PKG_CHECK_MODULES(SSL, openssl)
|
|
|
|
CFLAGS="$CFLAGS $SSL_CFLAGS"
|
|
|
|
enable_openssl=yes
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(ssl, SSL_read, [
|
|
|
|
AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h, [
|
|
|
|
SSL_LIBS="-lssl -lcrypto"
|
|
|
|
AC_SUBST(SSL_LIBS)
|
|
|
|
enable_openssl=yes
|
|
|
|
])
|
|
|
|
],, -lcrypto)
|
|
|
|
fi
|
2003-11-17 06:42:43 -05:00
|
|
|
if test "$enable_openssl" = "yes"; then
|
2003-11-16 19:29:11 -05:00
|
|
|
AC_DEFINE(HAVE_OPENSSL,, Build with OpenSSL support)
|
2003-11-17 06:50:06 -05:00
|
|
|
LIBS="$LIBS $SSL_LIBS"
|
2003-11-16 19:29:11 -05:00
|
|
|
fi
|
2002-08-26 20:27:43 -04:00
|
|
|
fi
|
|
|
|
|
2002-12-23 01:06:14 -05:00
|
|
|
dnl **
|
|
|
|
dnl ** Garbage Collector
|
2006-09-11 05:03:06 -04:00
|
|
|
dnl **
|
2002-12-23 01:06:14 -05:00
|
|
|
if test "x$want_gc" = xyes; then
|
|
|
|
if test "$glib_config_major_version" = "2"; then
|
|
|
|
AC_CHECK_LIB(gc, GC_malloc, [
|
2002-12-23 01:44:58 -05:00
|
|
|
AC_CHECK_HEADER(gc/gc.h, [
|
2003-01-10 19:24:30 -05:00
|
|
|
AC_DEFINE(HAVE_GC_GC_H)
|
2003-01-24 22:19:40 -05:00
|
|
|
AC_DEFINE(USE_GC)
|
2002-12-23 01:44:58 -05:00
|
|
|
LIBS="$LIBS -lgc"
|
|
|
|
], [
|
2003-01-10 19:24:30 -05:00
|
|
|
AC_CHECK_HEADER(gc.h, [
|
|
|
|
AC_DEFINE(HAVE_GC_H)
|
2003-01-24 22:19:40 -05:00
|
|
|
AC_DEFINE(USE_GC)
|
2003-01-10 19:24:30 -05:00
|
|
|
LIBS="$LIBS -lgc"
|
|
|
|
], [
|
|
|
|
want_gc=no
|
|
|
|
])
|
2002-12-23 01:44:58 -05:00
|
|
|
])
|
2002-12-23 01:06:14 -05:00
|
|
|
], [
|
|
|
|
want_gc=no
|
|
|
|
])
|
|
|
|
else
|
|
|
|
want_gc=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-08-19 20:03:40 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** Recode
|
|
|
|
dnl **
|
|
|
|
AC_MSG_CHECKING([if we can use recode, requires GLIB2])
|
|
|
|
if test "$glib_config_major_version" = "2"; then
|
|
|
|
AC_DEFINE(HAVE_GLIB2)
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no, using glib1])
|
|
|
|
fi
|
|
|
|
|
2001-01-01 05:42:15 -05:00
|
|
|
dnl **
|
|
|
|
dnl ** check if we can link dynamic libraries to modules
|
2001-01-15 19:14:14 -05:00
|
|
|
dnl ** also checks if libraries are built to .libs dir
|
2001-01-01 05:42:15 -05:00
|
|
|
dnl **
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([if we can link dynamic libraries with modules])
|
|
|
|
DYNLIB_MODULES=no
|
|
|
|
|
2001-01-15 19:14:14 -05:00
|
|
|
dnl ** compile object file
|
2001-01-01 05:42:15 -05:00
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#include <math.h>
|
2002-01-04 16:12:12 -05:00
|
|
|
int modfunc(){return (int)floor(1.2);}
|
2001-01-01 05:42:15 -05:00
|
|
|
EOF
|
2001-05-17 16:13:59 -04:00
|
|
|
|
2001-01-01 05:42:15 -05:00
|
|
|
./libtool --mode=compile $CC $CFLAGS -c conftest.c 2> /dev/null > /dev/null
|
|
|
|
if test ! -s conftest.lo; then
|
2001-01-15 19:14:14 -05:00
|
|
|
AC_ERROR([error compiling test module])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ** link to library
|
2002-09-16 21:56:01 -04:00
|
|
|
./libtool --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
|
2001-02-17 05:44:06 -05:00
|
|
|
if test ! -s .libs/libconftest.a; then
|
2001-01-15 19:14:14 -05:00
|
|
|
AC_ERROR([error, can't even find .a library])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ** check if dynamic linking worked
|
2001-04-09 12:39:30 -04:00
|
|
|
libfile=`grep '^library_names' libconftest.la|$sedpath "s/library_names='\(.*\)'.*/\1/"|$sedpath 's/.* \([[^ ]]*\)$/\1/'`
|
2001-02-23 03:07:10 -05:00
|
|
|
if test ! -s .libs/$libfile; then
|
2001-01-15 19:14:14 -05:00
|
|
|
AC_MSG_RESULT([no, error linking test module])
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
2001-01-01 05:42:15 -05:00
|
|
|
#include <gmodule.h>
|
|
|
|
main() {
|
2001-01-15 19:14:14 -05:00
|
|
|
GModule *m; int (*modfunc)(void);
|
2001-02-23 03:07:10 -05:00
|
|
|
m = g_module_open(".libs/$libfile", 0);
|
2001-01-15 19:14:14 -05:00
|
|
|
if (!m) g_print("error loading: %s", g_module_error());
|
|
|
|
else if (!g_module_symbol(m, "modfunc", (gpointer *) &modfunc))
|
|
|
|
g_print("modfunc() symbol not found from module");
|
|
|
|
else if (modfunc() == 1) g_print("ok"); else g_print("wrong result?! 1 vs %d", modfunc());
|
|
|
|
return 0; }
|
2001-01-01 05:42:15 -05:00
|
|
|
EOF
|
2001-10-29 16:32:32 -05:00
|
|
|
$CC $CFLAGS $LDFLAGS conftest.c -o conftest $GLIB_CFLAGS $GLIB_LIBS 2> /dev/null > /dev/null
|
2001-01-15 19:14:14 -05:00
|
|
|
if test ! -s conftest; then
|
|
|
|
AC_MSG_RESULT([no, error compiling test program])
|
|
|
|
else
|
|
|
|
status="`./conftest`"
|
|
|
|
if test "x$status" = "xok"; then
|
|
|
|
DYNLIB_MODULES=yes
|
|
|
|
AC_MSG_RESULT([yes])
|
2001-01-01 05:42:15 -05:00
|
|
|
else
|
2001-01-15 19:14:14 -05:00
|
|
|
AC_MSG_RESULT([no, error running: $status])
|
2001-01-01 05:42:15 -05:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2001-02-17 05:58:53 -05:00
|
|
|
rm -rf conftest conftest.* libconftest.* .libs
|
2001-01-01 05:42:15 -05:00
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** curses checks
|
|
|
|
dnl **
|
|
|
|
|
|
|
|
if test "x$want_textui" = "xyes"; then
|
|
|
|
AC_CHECK_CURSES
|
|
|
|
|
2002-08-26 19:58:59 -04:00
|
|
|
TEXTUI_LIBS="$CURSES_LIBS"
|
2001-10-28 06:30:26 -05:00
|
|
|
if test "x$has_curses" = "xtrue"; then
|
2002-11-19 05:13:45 -05:00
|
|
|
old_libs=$LIBS
|
|
|
|
LIBS="$LIBS $CURSES_LIBS"
|
2006-09-11 05:00:59 -04:00
|
|
|
if test $want_terminfo = no; then
|
|
|
|
AC_CHECK_FUNC(use_default_colors, AC_DEFINE(HAVE_NCURSES_USE_DEFAULT_COLORS))
|
|
|
|
AC_CHECK_FUNC(idcok, AC_DEFINE(HAVE_CURSES_IDCOK))
|
|
|
|
AC_CHECK_FUNC(resizeterm, AC_DEFINE(HAVE_CURSES_RESIZETERM))
|
|
|
|
AC_CHECK_FUNC(wresize, AC_DEFINE(HAVE_CURSES_WRESIZE))
|
|
|
|
fi
|
2002-02-17 06:58:41 -05:00
|
|
|
AC_CHECK_FUNC(setupterm,, [
|
|
|
|
want_termcap=yes
|
|
|
|
])
|
2002-11-19 05:13:45 -05:00
|
|
|
LIBS=$old_libs
|
2000-10-04 00:01:45 -04:00
|
|
|
else
|
2001-10-28 06:30:26 -05:00
|
|
|
AC_CHECK_LIB(tinfo, setupterm, [
|
2002-08-26 19:58:59 -04:00
|
|
|
TEXTUI_LIBS="-ltinfo"
|
2001-10-28 06:30:26 -05:00
|
|
|
want_terminfo=yes
|
|
|
|
], AC_CHECK_LIB(termlib, tgetent, [
|
2002-08-26 19:58:59 -04:00
|
|
|
TEXTUI_LIBS="-ltermlib"
|
2001-10-28 06:30:26 -05:00
|
|
|
want_termcap=yes
|
|
|
|
], AC_CHECK_LIB(termcap, tgetent, [
|
2002-08-26 19:58:59 -04:00
|
|
|
TEXTUI_LIBS="-ltermcap"
|
2001-10-28 06:30:26 -05:00
|
|
|
want_termcap=yes
|
|
|
|
], [
|
2002-04-16 13:26:33 -04:00
|
|
|
AC_ERROR(Terminfo/termcap not found - install ncurses-devel package)
|
2001-10-28 06:30:26 -05:00
|
|
|
want_textui=no
|
|
|
|
])))
|
2000-01-12 17:10:30 -05:00
|
|
|
fi
|
2002-08-26 19:58:59 -04:00
|
|
|
AC_SUBST(TEXTUI_LIBS)
|
|
|
|
|
2001-10-28 06:30:26 -05:00
|
|
|
if test "x$want_termcap" = "xyes"; then
|
|
|
|
AC_CHECK_FUNC(tparm,, need_tparm=yes)
|
|
|
|
else
|
|
|
|
AC_DEFINE(HAVE_TERMINFO)
|
|
|
|
fi
|
1999-09-03 10:27:29 -04:00
|
|
|
fi
|
|
|
|
|
2001-01-01 05:42:15 -05:00
|
|
|
dnl **
|
|
|
|
dnl ** perl checks
|
|
|
|
dnl **
|
|
|
|
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "$want_perl" != "no"; then
|
2001-02-22 15:39:35 -05:00
|
|
|
AC_MSG_CHECKING(for working Perl support)
|
|
|
|
|
2001-07-14 15:34:28 -04:00
|
|
|
if test -z "$perlpath"; then
|
2001-02-22 15:39:35 -05:00
|
|
|
perl_check_error="perl binary not found"
|
|
|
|
else
|
|
|
|
PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
|
|
|
|
fi
|
2000-02-24 16:14:44 -05:00
|
|
|
|
2002-11-02 18:20:50 -05:00
|
|
|
if test "x$ac_cv_prog_gcc" = "xyes" -a -z "`echo $host_os|grep 'bsd\|linux'`"; then
|
2002-10-27 19:12:42 -05:00
|
|
|
dnl * several systems have Perl compiled with native compiler
|
|
|
|
dnl * but irssi is being compiled with GCC. Here we try to
|
|
|
|
dnl * fix those command line options a bit so GCC won't
|
|
|
|
dnl * complain about them. Normally there's only few options
|
|
|
|
dnl * that we want to keep:
|
|
|
|
dnl * -Ddefine -Uundef -I/path -fopt -mopt
|
2002-11-17 09:18:11 -05:00
|
|
|
PERL_CFLAGS=`echo $PERL_CFLAGS | $perlpath -pe 's/^(.* )?-[^DUIfm][^ ]+/\1/g; s/^(.* )?\+[^ ]+/\1/g'`
|
|
|
|
|
|
|
|
PERL_EXTRA_OPTS="CCCDLFLAGS=\"-fPIC\""
|
|
|
|
AC_SUBST(PERL_EXTRA_OPTS)
|
2002-10-27 19:12:42 -05:00
|
|
|
fi
|
|
|
|
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$PERL_CFLAGS"; then
|
|
|
|
if test -n "$perl_check_error"; then
|
|
|
|
perl_check_error="Error getting perl CFLAGS"
|
|
|
|
fi
|
2001-02-22 15:39:35 -05:00
|
|
|
AC_MSG_RESULT([not found, building without Perl])
|
2000-02-24 16:14:44 -05:00
|
|
|
want_perl=no
|
|
|
|
else
|
2001-01-01 05:42:15 -05:00
|
|
|
PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
|
2000-09-07 17:55:58 -04:00
|
|
|
|
2000-09-07 18:43:07 -04:00
|
|
|
dnl * Perl 5.004 and older use perl_xxx variables while
|
|
|
|
dnl * later use PL_perl_xxx variables ..
|
|
|
|
have_pl_perl=`$perlpath -e 'print $] < 5.005 ? "no" : "yes";'`
|
|
|
|
if test "x$have_pl_perl" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_PL_PERL)
|
|
|
|
fi
|
|
|
|
|
2001-01-01 05:42:15 -05:00
|
|
|
if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
|
|
|
|
dnl * wanted perl as module, won't get it.
|
|
|
|
want_perl=static
|
|
|
|
perl_mod_error="Dynamic library dependencies don't work with modules"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$want_perl" != "static"; then
|
2000-10-03 18:57:14 -04:00
|
|
|
dnl * dynaloader.a -> libperl_dynaloader.la
|
2001-02-20 22:43:31 -05:00
|
|
|
DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'`
|
2000-10-03 18:57:14 -04:00
|
|
|
fi
|
2000-09-07 17:55:58 -04:00
|
|
|
|
2001-01-01 05:42:15 -05:00
|
|
|
dnl * don't check libperl.a if dynaloader.a wasn't found..
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$DYNALOADER_A"; then
|
2001-01-01 05:42:15 -05:00
|
|
|
dnl * find either libperl.a or libperl.so
|
|
|
|
LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'`
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$LIBPERL_A"; then
|
2001-01-01 05:42:15 -05:00
|
|
|
perl_mod_error="Didn't find location of -lperl"
|
|
|
|
DYNALOADER_A=
|
|
|
|
elif test "$LIBPERL_A" = "-lperl"; then
|
|
|
|
LIBPERL_A=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2000-09-07 17:55:58 -04:00
|
|
|
dnl * remove all database stuffs
|
|
|
|
dnl * nsl is already in ldflags
|
2001-02-23 03:07:10 -05:00
|
|
|
dnl * libc is of course linked without needing -lc
|
|
|
|
dnl * -rdynamic must not be in LIBADD line
|
2001-04-09 12:36:28 -04:00
|
|
|
for word in -ldb -ldbm -lndbm -lgdbm -lc -rdynamic; do
|
2001-02-23 03:07:10 -05:00
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e "s/$word //" -e "s/$word$//"`
|
|
|
|
done
|
2000-02-24 16:14:44 -05:00
|
|
|
|
2001-02-23 03:07:10 -05:00
|
|
|
case "$host_os" in
|
|
|
|
linux*)
|
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lposix //' -e 's/-lposix$//'`
|
|
|
|
;;
|
|
|
|
hpux*)
|
|
|
|
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
|
|
|
PERL_CFLAGS=`echo $PERL_CFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
|
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2000-09-07 17:55:58 -04:00
|
|
|
|
2001-02-22 15:39:35 -05:00
|
|
|
dnl * check that perl's ldflags actually work
|
2002-04-29 13:17:17 -04:00
|
|
|
echo "main(){perl_alloc(); return 0;}" > conftest.c
|
2002-09-16 21:56:01 -04:00
|
|
|
$CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
|
2002-12-23 01:39:26 -05:00
|
|
|
if test ! -s conftest -a "x$ignore_perl_errors" = "x"; then
|
2001-10-23 16:30:01 -04:00
|
|
|
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
|
2001-02-22 15:39:35 -05:00
|
|
|
AC_MSG_RESULT([error linking with perl libraries, building without Perl])
|
|
|
|
want_perl=no
|
|
|
|
fi
|
2002-04-29 13:17:17 -04:00
|
|
|
|
2001-10-23 16:30:01 -04:00
|
|
|
rm -f perl.error.tmp
|
2001-02-22 15:39:35 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$want_perl" != "xno"; then
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "x$want_perl" = "xstatic"; then
|
|
|
|
AC_MSG_RESULT(ok)
|
2001-07-14 14:46:19 -04:00
|
|
|
elif test -z "$DYNALOADER_A"; then
|
2000-10-03 18:57:14 -04:00
|
|
|
AC_MSG_RESULT([error parsing ldopts, building Perl into irssi binary instead of as module])
|
|
|
|
want_perl=static
|
2000-09-07 17:55:58 -04:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(ok)
|
2001-02-20 22:43:31 -05:00
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'`
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$LIBPERL_A"; then
|
2001-03-03 10:19:33 -05:00
|
|
|
PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'`
|
2001-01-01 05:42:15 -05:00
|
|
|
fi
|
2000-10-03 19:54:56 -04:00
|
|
|
AC_SUBST(LIBPERL_A)
|
|
|
|
AC_SUBST(DYNALOADER_A)
|
2000-10-03 18:57:14 -04:00
|
|
|
fi
|
2000-03-11 15:19:24 -05:00
|
|
|
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "x$want_perl" = "xstatic"; then
|
2000-10-03 20:22:59 -04:00
|
|
|
dnl * building with static perl support
|
|
|
|
dnl * all PERL_LDFLAGS linking is done in fe-text
|
2001-07-29 05:17:53 -04:00
|
|
|
PERL_LINK_FLAGS="$PERL_LDFLAGS"
|
|
|
|
PERL_LINK_LIBS="../perl/libperl_core_static.la"
|
|
|
|
PERL_FE_LINK_LIBS="../perl/libfe_perl_static.la"
|
2000-10-03 18:57:14 -04:00
|
|
|
PERL_LDFLAGS=
|
|
|
|
AC_DEFINE(HAVE_STATIC_PERL)
|
2000-10-03 20:22:59 -04:00
|
|
|
|
|
|
|
dnl * build only static library of perl module
|
2001-02-17 05:35:35 -05:00
|
|
|
perl_module_lib=
|
2001-07-29 05:17:53 -04:00
|
|
|
perl_module_fe_lib=
|
|
|
|
perl_static_lib=libperl_core_static.la
|
|
|
|
perl_static_fe_lib=libfe_perl_static.la
|
2000-10-03 20:22:59 -04:00
|
|
|
PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
2000-10-03 19:54:56 -04:00
|
|
|
else
|
2001-05-31 17:19:29 -04:00
|
|
|
dnl * build dynamic library of perl module
|
2001-02-17 05:35:35 -05:00
|
|
|
perl_module_lib=libperl_core.la
|
2001-07-29 05:17:53 -04:00
|
|
|
perl_module_fe_lib=libfe_perl.la
|
2001-02-17 05:35:35 -05:00
|
|
|
perl_static_lib=
|
2001-07-29 05:17:53 -04:00
|
|
|
perl_static_fe_lib=
|
2001-05-31 17:19:29 -04:00
|
|
|
PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
2000-09-07 17:55:58 -04:00
|
|
|
fi
|
2001-10-22 16:34:05 -04:00
|
|
|
|
2001-10-24 19:17:27 -04:00
|
|
|
if test "x$want_staticperllib" = "xyes"; then
|
|
|
|
PERL_MM_PARAMS="$PERL_MM_PARAMS LINKTYPE=static"
|
|
|
|
PERL_LINK_LIBS="$PERL_LINK_LIBS ../perl/common/blib/arch/auto/Irssi/Irssi.a ../perl/irc/blib/arch/auto/Irssi/Irc/Irc.a ../perl/ui/blib/arch/auto/Irssi/UI/UI.a ../perl/textui/blib/arch/auto/Irssi/TextUI/TextUI.a"
|
|
|
|
PERL_STATIC_LIBS=1
|
|
|
|
else
|
|
|
|
PERL_STATIC_LIBS=0
|
|
|
|
fi
|
|
|
|
|
2001-10-22 16:34:05 -04:00
|
|
|
# figure out the correct @INC path - we'll need to do this
|
|
|
|
# through MakeMaker since it's difficult to get it right
|
|
|
|
# otherwise.
|
|
|
|
if test "x$perl_set_use_lib" = "xyes"; then
|
|
|
|
perl -e 'use ExtUtils::MakeMaker; WriteMakefile("NAME" => "test", "MAKEFILE" => "Makefile.test");' $PERL_MM_PARAMS >/dev/null
|
|
|
|
PERL_USE_LIB=`perl -e 'open(F, "Makefile.test"); while (<F>) { chomp; if (/^(\w+) = (.*$)/) { $keys{$1} = $2; } }; $key = $keys{INSTALLARCHLIB}; while ($key =~ /\\$\((\w+)\)/) { $value = $keys{$1}; $key =~ s/\\$\($1\)/$value/; }; print $key;'`
|
|
|
|
rm -f Makefile.test
|
|
|
|
fi
|
|
|
|
|
2001-02-17 05:35:35 -05:00
|
|
|
AC_SUBST(perl_module_lib)
|
|
|
|
AC_SUBST(perl_static_lib)
|
2001-07-29 05:17:53 -04:00
|
|
|
AC_SUBST(perl_module_fe_lib)
|
|
|
|
AC_SUBST(perl_static_fe_lib)
|
2000-10-03 20:22:59 -04:00
|
|
|
AC_SUBST(PERL_LIBTOOL)
|
2000-10-03 19:54:56 -04:00
|
|
|
|
2001-07-29 05:17:53 -04:00
|
|
|
AC_SUBST(PERL_LINK_FLAGS)
|
2001-02-17 06:05:29 -05:00
|
|
|
AC_SUBST(PERL_LINK_LIBS)
|
2001-07-29 05:17:53 -04:00
|
|
|
AC_SUBST(PERL_FE_LINK_LIBS)
|
2001-02-17 06:05:29 -05:00
|
|
|
|
2000-10-03 18:57:14 -04:00
|
|
|
AC_SUBST(PERL_LDFLAGS)
|
|
|
|
AC_SUBST(PERL_CFLAGS)
|
2001-07-30 18:10:11 -04:00
|
|
|
|
|
|
|
AC_SUBST(PERL_USE_LIB)
|
|
|
|
AC_SUBST(PERL_MM_PARAMS)
|
2001-10-24 19:17:27 -04:00
|
|
|
AC_SUBST(PERL_STATIC_LIBS)
|
2000-03-11 15:19:24 -05:00
|
|
|
fi
|
2000-02-20 18:28:50 -05:00
|
|
|
fi
|
|
|
|
|
1999-10-30 09:21:14 -04:00
|
|
|
dnl ** check what we want to build
|
2000-01-12 17:10:30 -05:00
|
|
|
AM_CONDITIONAL(BUILD_TEXTUI, test "$want_textui" = "yes")
|
|
|
|
AM_CONDITIONAL(BUILD_IRSSIBOT, test "$want_irssibot" = "yes")
|
2000-09-29 19:59:51 -04:00
|
|
|
AM_CONDITIONAL(BUILD_IRSSIPROXY, test "$want_irssiproxy" = "yes")
|
2000-01-12 17:10:30 -05:00
|
|
|
AM_CONDITIONAL(BUILD_PLUGINS, test "$want_plugins" = "yes")
|
2000-10-03 18:57:14 -04:00
|
|
|
AM_CONDITIONAL(HAVE_PERL, test "$want_perl" != "no")
|
2000-10-03 19:54:56 -04:00
|
|
|
AM_CONDITIONAL(HAVE_STATIC_PERL, test "$want_perl" = "static")
|
2001-10-28 06:30:26 -05:00
|
|
|
AM_CONDITIONAL(NEED_TPARM, test "$need_tparm" = "yes")
|
|
|
|
AM_CONDITIONAL(USE_CURSES, test "$want_terminfo" != "yes" -a "$want_termcap" != "yes")
|
2006-08-08 17:11:20 -04:00
|
|
|
AM_CONDITIONAL(USE_CUIX, test "$want_cuix" = "yes")
|
1999-11-28 12:50:17 -05:00
|
|
|
|
2001-10-29 08:43:46 -05:00
|
|
|
# move LIBS to PROG_LIBS so they're not tried to be used when linking eg. perl libraries
|
|
|
|
PROG_LIBS=$LIBS
|
|
|
|
LIBS=
|
|
|
|
AC_SUBST(PROG_LIBS)
|
|
|
|
|
2000-04-26 04:10:09 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** Keep all the libraries here so each frontend doesn't need to
|
|
|
|
dnl ** keep track of them all
|
|
|
|
dnl **
|
2000-05-09 07:42:42 -04:00
|
|
|
dnl ** (these could be made configurable)
|
|
|
|
|
2000-07-16 16:34:49 -04:00
|
|
|
CHAT_MODULES="irc"
|
2000-05-09 07:42:42 -04:00
|
|
|
irc_MODULES="dcc flood notifylist"
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$build_modules"; then
|
2000-05-29 12:37:00 -04:00
|
|
|
irc_MODULES="$irc_MODULES $build_modules"
|
|
|
|
fi
|
2000-04-26 04:10:09 -04:00
|
|
|
|
2000-05-09 07:42:42 -04:00
|
|
|
dnl ****************************************
|
|
|
|
|
|
|
|
AC_SUBST(CHAT_MODULES)
|
|
|
|
AC_SUBST(irc_MODULES)
|
|
|
|
|
2000-08-27 18:40:08 -04:00
|
|
|
CORE_LIBS="../core/libcore.a ../lib-config/libirssi_config.a ../lib-popt/libpopt.a"
|
2000-09-06 17:30:56 -04:00
|
|
|
FE_COMMON_LIBS=""
|
2000-05-09 07:42:42 -04:00
|
|
|
|
|
|
|
CHAT_LIBS=""
|
|
|
|
for c in $CHAT_MODULES; do
|
2000-07-16 10:30:29 -04:00
|
|
|
module_inits=""
|
|
|
|
module_deinits=""
|
|
|
|
fe_module_inits=""
|
|
|
|
fe_module_deinits=""
|
2000-08-27 18:40:08 -04:00
|
|
|
CHAT_LIBS="$CHAT_LIBS ../$c/lib$c.a ../$c/core/lib${c}_core.a"
|
2001-04-16 08:46:57 -04:00
|
|
|
if test -f $srcdir/src/fe-common/$c/module.h; then
|
2000-09-06 17:30:56 -04:00
|
|
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/libfe_common_$c.a "
|
2000-07-16 10:30:29 -04:00
|
|
|
fi
|
2000-05-09 07:42:42 -04:00
|
|
|
for s in `eval echo \\$${c}_MODULES`; do
|
2001-06-01 14:39:45 -04:00
|
|
|
CHAT_LIBS="$CHAT_LIBS ../$c/$s/lib${c}_$s.a"
|
2000-05-25 07:30:47 -04:00
|
|
|
module_inits="$module_inits ${c}_${s}_init();"
|
|
|
|
module_deinits="${c}_${s}_deinit(); $module_deinits"
|
2001-04-16 08:46:57 -04:00
|
|
|
if test -f $srcdir/src/fe-common/$c/$s/module.h; then
|
2001-06-01 14:39:45 -04:00
|
|
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/$s/libfe_${c}_$s.a "
|
2000-05-25 07:30:47 -04:00
|
|
|
fe_module_inits="$fe_module_inits fe_${c}_${s}_init();"
|
|
|
|
fe_module_deinits="fe_${c}_${s}_deinit(); $fe_module_deinits"
|
|
|
|
fi
|
2000-05-09 07:42:42 -04:00
|
|
|
done
|
2000-05-25 07:30:47 -04:00
|
|
|
|
2005-11-06 17:05:28 -05:00
|
|
|
mkdir -p src/$c
|
|
|
|
file="src/$c/$c.c"
|
2000-05-25 07:30:47 -04:00
|
|
|
echo "/* this file is automatically generated by configure - don't change */" > $file
|
|
|
|
echo "void ${c}_core_init(void); void ${c}_core_deinit(void);" >> $file
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$module_inits"; then
|
2000-07-16 10:30:29 -04:00
|
|
|
echo "$module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
|
2000-09-07 17:55:58 -04:00
|
|
|
echo "$module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
|
2000-07-16 10:30:29 -04:00
|
|
|
fi
|
2000-05-25 07:30:47 -04:00
|
|
|
echo "void ${c}_init(void) { ${c}_core_init(); $module_inits }" >> $file
|
|
|
|
echo "void ${c}_deinit(void) { $module_deinits ${c}_core_deinit(); }" >> $file
|
|
|
|
|
2001-04-16 08:46:57 -04:00
|
|
|
if test -f $srcdir/src/fe-common/$c/module.h; then
|
2005-11-06 17:05:28 -05:00
|
|
|
mkdir -p src/fe-common/$c
|
|
|
|
file="src/fe-common/$c/${c}-modules.c"
|
2000-07-16 10:30:29 -04:00
|
|
|
echo "/* this file is automatically generated by configure - don't change */" > $file
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -n "$fe_module_inits"; then
|
2000-08-27 18:40:08 -04:00
|
|
|
echo "$fe_module_inits" | $sedpath -e 's/()/(void)/g' -e 's/ /void /g' >> $file
|
2000-09-07 17:55:58 -04:00
|
|
|
echo "$fe_module_deinits" | $sedpath -e 's/ *$//' -e 's/()/(void)/g' -e 's/ /void /g' -e 's/^/void /' >> $file
|
2000-08-27 18:40:08 -04:00
|
|
|
fi
|
2000-07-16 10:30:29 -04:00
|
|
|
echo "void fe_${c}_modules_init(void) { $fe_module_inits }" >> $file
|
|
|
|
echo "void fe_${c}_modules_deinit(void) { $fe_module_deinits }" >> $file
|
|
|
|
fi
|
2000-05-09 07:42:42 -04:00
|
|
|
done
|
2000-04-26 04:10:09 -04:00
|
|
|
|
2000-09-06 17:30:56 -04:00
|
|
|
FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/core/libfe_common_core.a"
|
|
|
|
|
2000-04-26 04:10:09 -04:00
|
|
|
dnl ** common libraries needed by frontends
|
2002-02-17 12:53:11 -05:00
|
|
|
COMMON_NOUI_LIBS="$CHAT_LIBS $CORE_LIBS"
|
2001-02-17 06:09:14 -05:00
|
|
|
COMMON_LIBS="$FE_COMMON_LIBS $COMMON_NOUI_LIBS"
|
2000-05-09 07:42:42 -04:00
|
|
|
AC_SUBST(COMMON_NOUI_LIBS)
|
2000-04-26 04:10:09 -04:00
|
|
|
AC_SUBST(COMMON_LIBS)
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
dnl **
|
|
|
|
dnl ** IPv6 support
|
|
|
|
dnl **
|
|
|
|
|
|
|
|
if test "x$want_ipv6" = "xyes"; then
|
2001-08-09 07:03:14 -04:00
|
|
|
AC_MSG_CHECKING([for IPv6])
|
|
|
|
AC_CACHE_VAL(irssi_cv_type_in6_addr,
|
|
|
|
[AC_TRY_COMPILE([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <arpa/inet.h>],
|
|
|
|
[struct in6_addr i;],
|
|
|
|
irssi_cv_type_in6_addr=yes,
|
|
|
|
irssi_cv_type_in6_addr=no,
|
|
|
|
)])
|
|
|
|
if test $irssi_cv_type_in6_addr = yes; then
|
|
|
|
AC_DEFINE(HAVE_IPV6)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($irssi_cv_type_in6_addr)
|
1999-09-03 10:27:29 -04:00
|
|
|
fi
|
|
|
|
|
2001-12-15 18:15:05 -05:00
|
|
|
dnl **
|
|
|
|
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
|
|
|
|
dnl **
|
2005-02-21 19:05:06 -05:00
|
|
|
VERSION_DATE=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $5}' | tr -d '-'`
|
|
|
|
VERSION_TIME=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'`
|
2001-12-15 18:15:05 -05:00
|
|
|
AC_SUBST(VERSION_DATE)
|
|
|
|
AC_SUBST(VERSION_TIME)
|
|
|
|
|
1999-09-03 10:27:29 -04:00
|
|
|
AC_OUTPUT(
|
|
|
|
Makefile
|
|
|
|
src/Makefile
|
2000-04-26 04:10:09 -04:00
|
|
|
src/core/Makefile
|
|
|
|
src/irc/Makefile
|
|
|
|
src/irc/core/Makefile
|
|
|
|
src/irc/dcc/Makefile
|
|
|
|
src/irc/notifylist/Makefile
|
2000-09-29 19:59:51 -04:00
|
|
|
src/irc/proxy/Makefile
|
2000-04-26 04:10:09 -04:00
|
|
|
src/irc/flood/Makefile
|
|
|
|
src/fe-common/Makefile
|
|
|
|
src/fe-common/core/Makefile
|
|
|
|
src/fe-common/irc/Makefile
|
|
|
|
src/fe-common/irc/dcc/Makefile
|
|
|
|
src/fe-common/irc/notifylist/Makefile
|
|
|
|
src/fe-none/Makefile
|
|
|
|
src/fe-text/Makefile
|
1999-09-03 10:27:29 -04:00
|
|
|
src/lib-config/Makefile
|
1999-10-06 12:47:43 -04:00
|
|
|
src/lib-popt/Makefile
|
2000-04-26 04:10:09 -04:00
|
|
|
src/perl/Makefile
|
2000-10-03 15:10:24 -04:00
|
|
|
src/perl/common/Makefile.PL
|
2000-09-29 19:59:51 -04:00
|
|
|
src/perl/irc/Makefile.PL
|
2001-06-28 07:01:24 -04:00
|
|
|
src/perl/ui/Makefile.PL
|
2001-07-14 14:46:19 -04:00
|
|
|
src/perl/textui/Makefile.PL
|
2000-03-15 15:59:36 -05:00
|
|
|
scripts/Makefile
|
2002-03-10 16:30:45 -05:00
|
|
|
scripts/examples/Makefile
|
1999-10-30 11:56:53 -04:00
|
|
|
docs/Makefile
|
|
|
|
docs/help/Makefile
|
2000-07-26 13:52:19 -04:00
|
|
|
docs/help/in/Makefile
|
2001-12-15 18:15:05 -05:00
|
|
|
irssi-version.h
|
1999-09-04 07:42:33 -04:00
|
|
|
stamp.h
|
2000-05-09 07:42:42 -04:00
|
|
|
irssi.spec
|
|
|
|
irssi-config)
|
2000-01-12 17:10:30 -05:00
|
|
|
|
2000-10-03 19:54:56 -04:00
|
|
|
dnl ** for building from objdir
|
2001-10-22 16:00:15 -04:00
|
|
|
old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir
|
|
|
|
if test "x$old_dir" != "x$whole_dir"; then
|
|
|
|
if test "x$want_perl" != "xno"; then
|
|
|
|
subdirfiles=""
|
|
|
|
for i in $whole_dir/src/perl/common $whole_dir/src/perl/irc $whole_dir/src/perl/ui $whole_dir/src/perl/textui; do
|
2001-10-22 16:34:05 -04:00
|
|
|
subdirfiles=`echo $subdirfiles $i/typemap $i/module.h $i/*.pm $i/*.xs`
|
2001-10-22 16:00:15 -04:00
|
|
|
done
|
|
|
|
for file in $whole_dir/src/perl/*.[[ch]] $whole_dir/src/perl/libperl_orig.la $whole_dir/src/perl/libperl_dynaloader.la $subdirfiles; do
|
2001-02-23 03:07:10 -05:00
|
|
|
link=`echo $file|$sedpath "s?$whole_dir/??"`
|
2000-10-03 20:22:59 -04:00
|
|
|
rm -f $link
|
|
|
|
$LN_S $file $link
|
2000-06-04 12:01:19 -04:00
|
|
|
done
|
2000-03-11 15:19:24 -05:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2000-01-12 17:10:30 -05:00
|
|
|
echo
|
|
|
|
|
2002-04-16 13:26:33 -04:00
|
|
|
if test "x$want_textui" = "xno"; then
|
|
|
|
text=no
|
|
|
|
elif test "x$want_termcap" = "xyes"; then
|
|
|
|
text="yes, using termcap"
|
|
|
|
elif test "x$want_terminfo" = "xyes"; then
|
|
|
|
text="yes, using terminfo"
|
2000-07-09 10:27:59 -04:00
|
|
|
else
|
2002-04-16 13:26:33 -04:00
|
|
|
text="yes, using curses"
|
2000-07-09 10:27:59 -04:00
|
|
|
fi
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building text frontend ........... : $text"
|
|
|
|
echo "Building irssi bot ............... : $want_irssibot"
|
|
|
|
echo "Building irssi proxy ............. : $want_irssiproxy"
|
2002-02-15 03:31:35 -05:00
|
|
|
if test "x$have_gmodule" = "xyes"; then
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with module support ..... : yes"
|
2002-02-15 03:31:35 -05:00
|
|
|
else
|
|
|
|
echo "Building with module support : NO!! /LOAD will not work!"
|
|
|
|
echo " - You're missing gmodule (comes with glib) for some reason,"
|
|
|
|
echo " or it doesn't work in your system."
|
|
|
|
fi
|
2001-02-23 03:07:10 -05:00
|
|
|
|
2000-10-03 18:57:14 -04:00
|
|
|
if test "x$want_perl" = "xstatic"; then
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with Perl support ....... : static (in irssi binary)"
|
2001-10-20 17:32:22 -04:00
|
|
|
elif test "x$want_perl" = "xmodule"; then
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with Perl support ....... : module"
|
2000-10-03 18:57:14 -04:00
|
|
|
else
|
2001-07-14 14:46:19 -04:00
|
|
|
if test -z "$perl_check_error"; then
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with Perl support ....... : no"
|
2001-02-22 15:39:35 -05:00
|
|
|
else
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with Perl support ....... : NO!"
|
2001-02-22 15:39:35 -05:00
|
|
|
echo " - $perl_check_error"
|
|
|
|
fi
|
2000-10-03 18:57:14 -04:00
|
|
|
fi
|
|
|
|
|
2001-02-23 03:07:10 -05:00
|
|
|
if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then
|
2001-01-01 05:42:15 -05:00
|
|
|
echo " - NOTE: Perl support will be compiled statically to irssi, not as"
|
|
|
|
echo " a module as requested. Reason:"
|
|
|
|
echo " $perl_mod_error"
|
2002-04-29 13:17:17 -04:00
|
|
|
|
|
|
|
if test -f /etc/debian_version; then
|
|
|
|
echo " - Try: apt-get install libperl-dev"
|
|
|
|
fi
|
2001-01-01 05:42:15 -05:00
|
|
|
fi
|
|
|
|
|
2001-10-20 17:32:22 -04:00
|
|
|
if test "x$want_perl" != "xno"; then
|
2001-10-22 16:34:05 -04:00
|
|
|
if test "$perl_library_dir" = "PERL_USE_LIB"; then
|
|
|
|
perl_library_dir=$PERL_USE_LIB
|
|
|
|
fi
|
2001-07-30 18:10:11 -04:00
|
|
|
if test -z "$perl_library_dir"; then
|
|
|
|
perl_library_dir="(site default - `$perlpath -e 'use Config; print $Config{sitearch}'`)"
|
|
|
|
fi
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Perl library directory ........... : $perl_library_dir"
|
2001-07-30 18:10:11 -04:00
|
|
|
if test "x$perl_prefix_note" = "xyes"; then
|
|
|
|
echo " - NOTE: This was automatically set to the same directory you gave with"
|
|
|
|
echo " --prefix. If you want the perl libraries to install to their 'correct'"
|
|
|
|
echo " path, you'll need to give --with-perl-lib=site option to configure."
|
|
|
|
echo " Anyway, installing perl to this directory should work just as well."
|
2000-07-09 08:33:33 -04:00
|
|
|
fi
|
|
|
|
fi
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Install prefix ................... : $prefix"
|
2000-01-12 17:10:30 -05:00
|
|
|
|
2002-08-26 15:32:15 -04:00
|
|
|
echo
|
|
|
|
|
2002-11-21 12:48:40 -05:00
|
|
|
echo "Building with IPv6 support ....... : $want_ipv6"
|
|
|
|
echo "Building with SSL support ........ : ${enable_openssl}"
|
|
|
|
echo "Building with 64bit DCC support .. : $offt_64bit"
|
2002-12-23 01:06:14 -05:00
|
|
|
echo "Building with garbage collector .. : $want_gc"
|
2002-08-26 20:27:43 -04:00
|
|
|
if test "x$enable_openssl" = "xno" -a "x$ssl_error" != "x"; then
|
|
|
|
echo " - $ssl_error"
|
|
|
|
fi
|
2002-08-26 15:32:15 -04:00
|
|
|
|
2002-03-31 14:51:58 -05:00
|
|
|
echo
|
2006-05-05 09:13:46 -04:00
|
|
|
echo "If there are any problems, read the INSTALL file."
|