aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 34a13ea797..2a4466c795 100644
--- a/configure.in
+++ b/configure.in
@@ -1388,10 +1388,22 @@ AC_TRY_COMPILE([#include <stdio.h>
if test "$tnef_ok" = "yes"; then
AC_MSG_RESULT([yes])
TNEF_ATTACHMENTS="tnef-attachments"
+ TNEF_CFLAGS="-DHAVE_YTNEF_H"
else
- AC_MSG_RESULT(no)
- TNEF_ATTACHMENTS=""
+ AC_TRY_COMPILE([#include <stdio.h>
+ #include <libytnef/ytnef.h>],
+ [TNEFStruct *tnef;], tnef_ok=yes, tnef_ok=no)
+ if test "$tnef_ok" = "yes"; then
+ AC_MSG_RESULT([yes])
+ TNEF_ATTACHMENTS="tnef-attachments"
+ TNEF_CFLAGS="-DHAVE_LIBYTNEF_YTNEF_H"
+ else
+ AC_MSG_RESULT(no)
+ TNEF_ATTACHMENTS=""
+ TNEF_CFLAGS=""
+ fi
fi
+AC_SUBST(TNEF_CFLAGS)
echo "TNEF is "$TNEF_ATTACHMENTS