You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
955 B
33 lines
955 B
#MIN_CONFIG(3.2.0)
|
|
|
|
AM_INIT_AUTOMAKE(kopete_otr, 0.1)
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
AC_CHECK_KDEMAXPATHLEN
|
|
# Make sure that kde includes, etc. are part of the CPPFLAGS ...
|
|
CPPFLAGS="$CPPFLAGS $all_includes -I$kde_includes/kopete -I$kde_includes/tde/kopete"
|
|
|
|
|
|
# check for libkopete headers and library
|
|
KDE_CHECK_HEADER(kopeteversion.h,,
|
|
AC_MSG_ERROR([libkopete header files missing]))
|
|
|
|
#AC_CHECK_LIB([kopete], [_ZN6Kopete7AccountD0Ev],,
|
|
# AC_MSG_ERROR([libkopete library missing]))
|
|
|
|
|
|
|
|
#Check for libotr
|
|
KDE_CHECK_HEADERS([libotr/version.h],,
|
|
AC_MSG_ERROR([Could not find OTR header files!]))
|
|
|
|
m4_pattern_allow([AM_PATH_LIBOTR])
|
|
|
|
AM_PATH_LIBOTR(4.0.0,
|
|
[ AC_DEFINE([HAVE_LIBOTR_0400], 1, [Defines if your system has libotr greater than or equal to v4.0.0]) ],
|
|
[ AM_PATH_LIBOTR(3.1.0,
|
|
[ AC_DEFINE([HAVE_LIBOTR_0310], 1, [Define if you use libotr3]) ],
|
|
[ AC_MSG_ERROR(libotr 3.1.0 or newer is required.) ] )
|
|
])
|