|
|
|
#MIN_CONFIG(3)
|
|
|
|
|
|
|
|
KDE_ENABLE_HIDDEN_VISIBILITY
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
# Check for Konqueror
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AC_ARG_WITH(konqueror,
|
|
|
|
AC_HELP_STRING([--without-konqueror],[build Krusader without support Konqueror's servicemenus [default=with]]),
|
|
|
|
[with_konq=$withval],
|
|
|
|
[with_konq=yes]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$with_konq" != "no"; then
|
|
|
|
# check for the headers
|
|
|
|
have_libkonq=yes
|
|
|
|
KDE_CHECK_HEADER(konq_popupmenu.h, ,[have_libkonq=no] )
|
|
|
|
KDE_CHECK_HEADER(konqbookmarkmanager.h, ,[have_libkonq=no] )
|
|
|
|
|
|
|
|
if test "$have_libkonq" = "no"; then
|
|
|
|
# if this var is 'yes', the configure-suppery drops a warning.
|
|
|
|
# see admin/configure.in.bot.end
|
|
|
|
warn_konq=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(include_libkonq, test "$have_libkonq" = yes)
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
# Check for ACL
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AC_ARG_WITH(acl,
|
|
|
|
AC_HELP_STRING([--without-acl],[build Krusader without ACL support [default=with]]),
|
|
|
|
[with_acl=$withval],
|
|
|
|
[with_acl=yes]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$with_acl" != "no"; then
|
|
|
|
# check for the headers
|
|
|
|
have_posix_acl=yes
|
|
|
|
AC_CHECK_HEADER(sys/acl.h, ,[have_posix_acl=no] )
|
|
|
|
have_non_posix_acl_ext=yes
|
|
|
|
AC_CHECK_HEADER(acl/libacl.h, ,[have_non_posix_acl_ext=no] )
|
|
|
|
|
|
|
|
if test "$have_posix_acl" = "yes" ; then
|
|
|
|
AC_DEFINE([HAVE_POSIX_ACL], 1, [Define if system has POSIX ACL support.])
|
|
|
|
if test "$have_non_posix_acl_ext" = "yes" ; then
|
|
|
|
AC_DEFINE([HAVE_NON_POSIX_ACL_EXTENSIONS], 1, [Define if system has non-POSIX extensions to the ACL support.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$have_posix_acl" = "yes" ; then
|
|
|
|
AC_CHECK_LIB(acl, acl_free)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
# Check for JavaScript
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AC_ARG_WITH(javascript,
|
|
|
|
AC_HELP_STRING([--without-javascript],[build Krusader without JavaScript support [default=with]]),
|
|
|
|
[with_js=$withval],
|
|
|
|
[with_js=yes]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$with_js" != "no"; then
|
|
|
|
# check for the header
|
|
|
|
have_libkjsembed=yes
|
|
|
|
KDE_CHECK_HEADER(kjsembed/kjsembedpart.h, ,[have_libkjsembed=no] )
|
|
|
|
|
|
|
|
if test "$have_libkjsembed" = "no"; then
|
|
|
|
# if this var is 'yes', the configure-suppery drops a warning.
|
|
|
|
# see admin/configure.in.bot.end
|
|
|
|
warn_js=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(include_libkjsembed, test "$have_libkjsembed" = yes)
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
# If our own tar-TDEIO should be built
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AC_ARG_WITH(kiotar,
|
|
|
|
AC_HELP_STRING([--with-kiotar],[use our write-enabled version of KDE's tar TDEIO-Slave [default=without]]),
|
|
|
|
[with_tar=$withval],
|
|
|
|
[with_tar=no]
|
|
|
|
)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(with_tar, test "$with_tar" != "no")
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
# If our own iso-TDEIO should be built
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AC_ARG_WITH(kioiso,
|
|
|
|
AC_HELP_STRING([--with-kioiso],[use our version of Trinity's iso TDEIO-slave [default=without]]),
|
|
|
|
[with_iso=$withval],
|
|
|
|
[with_iso=no]
|
|
|
|
)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(with_iso, test "$with_iso" != "no")
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(krusader,1.90.0)
|
|
|
|
# This adds the RELEASE_NAME-Marco to config.h (where also VERSION is defined).
|
|
|
|
# It can be used to add a name to a release. If commented out only VERSION is used, see main.cpp
|
|
|
|
AH_BOTTOM([#define RELEASE_NAME "Power Stone"])
|
|
|
|
|
|
|
|
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __tdevelop[noopt]__
|
|
|
|
dnl CFLAGS="$NOOPT_CFLAGS" dnl __tdevelop[noopt]__
|
|
|
|
dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __tdevelop[exc]__
|
|
|
|
|
|
|
|
dnl KDE_NEED_FLEX dnl __tdevelop__
|
|
|
|
dnl AC_PROG_YACC dnl __tdevelop__
|
|
|
|
|
|
|
|
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -DKDE_NO_COMPAT -DQT_NO_ASCII_CAST"
|