home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 2001 January
/
CT_SW0101.ISO
/
pc
/
software
/
kommunik
/
ftp
/
kmago112.tgz
/
kmago112.tar
/
kmago-1.1.2
/
configure.in.in
< prev
next >
Wrap
Text File
|
2001-04-02
|
2KB
|
76 lines
#MIN_CONFIG
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(math.h unistd.h stdlib.h sys/type.h regex.h)
dnl define document name
AC_DEFINE(DOC, "kmago")
dnl define document version
AC_DEFINE(DOCVERS, "1.0")
dnl setenv & unsetenv for solaris
AC_CHECK_FUNCS([setenv unsetenv])
dnl disable kio retriever
AC_ARG_ENABLE(kio, [ --disable-kio disable KDE I/O based retriever],
[if test "$enableval" = no; then
AC_MSG_RESULT(disabling kio retriever)
LIB_KIO=
fi])
if test -n "$LIB_KIO" ; then
AC_MSG_RESULT(enabling kio retriever)
AC_DEFINE(ENABLE_KIO)
fi
AC_SUBST(LIB_KIO)
dnl disable wget retriever
USE_WGET=yes
AC_ARG_ENABLE(wget, [ --disable-wget disable wget based retriever],
[if test "$enableval" = no; then
AC_MSG_RESULT(disabling wget retriever)
USE_WGET=
fi])
if test -n "$USE_WGET" ; then
AC_MSG_RESULT(enabling wget retriever)
AC_DEFINE(ENABLE_WGET)
fi
dnl check for kde version >= 2.1 post Beta 2 (>= 20010128)
line=$(grep "^// Revision 1.207" $kde_includes/kapp.h)
dnl echo $line
if test -n "$line" ; then
kde_version_post_1207=1
AC_DEFINE(KDE_VERSION_POST_1207)
fi
dnl workaround for KURLRequester error for QT < 2.3.0
dnl AC_ARG_ENABLE(kurlreq-err, [ --enable-kurlreq-err enable workaround for KURLRequester error],
if test "$kde_qtsubver" -lt 3; then
if test -z "$kde_version_post_1207"; then
AC_MSG_RESULT(enabling KURLRequester workaround)
AC_DEFINE(KURLREQ_ERR)
else
AC_MSG_RESULT(enabling KURLRequester workaround for KDE version > 1207)
fi
fi
dnl check for dmalloc library
AC_CHECK_LIB(dmallocxx, dmalloc_shutdown, [sm_have_dmalloc=yes])
dnl add dmalloc support
LIBDMALLOC=
AC_ARG_ENABLE(dmalloc, [ --enable-dmalloc compile and link with dmalloc],
[if test "$enableval" = yes; then
if test "$sm_have_dmalloc" = yes; then
AC_MSG_RESULT(enabling dmalloc)
AC_DEFINE(DMALLOC)
LIBDMALLOC=-ldmallocxx
else
AC_MSG_ERROR(dmalloc not found)
fi
fi])
AC_SUBST(LIBDMALLOC)