86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
CPPFLAGS="$CPPFLAGS $libidn_CFLAGS"
LIBS="$LIBS $libidn_LIBS"
], [
AC_MSG_ERROR(You need at least libidn 2.5 installed!)
])
AS_IF([test x"$GOBJC" = x"yes"], [
OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wcast-align -Wpointer-arith"
dnl We need -Wno-deprecated-declarations as OpenSSL is deprecated on
dnl OS X.
OBJCFLAGS="$OBJCFLAGS -Wno-deprecated-declarations -Werror"
])
BUILDSYS_INIT
BUILDSYS_TOUCH_DEPS
dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
CPPFLAGS="$CPPFLAGS $libidn_CFLAGS"
LIBS="$LIBS $libidn_LIBS"
], [
AC_MSG_ERROR(You need at least libidn 2.5 installed!)
])
AS_IF([test x"$GOBJC" = x"yes"], [
OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith"
dnl We need -Wno-deprecated-declarations as OpenSSL is deprecated on
dnl OS X.
OBJCFLAGS="$OBJCFLAGS -Wno-deprecated-declarations -Werror"
old_OBJCFLAGS="$OBJCFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wcast-align"
AC_MSG_CHECKING(whether -Wcast-align is buggy)
AC_TRY_COMPILE([
#import <ObjFW/OFObject.h>
@interface Foo: OFObject
@end
@implementation Foo
- (void)foo
{
}
@end
], [
], [
AC_MSG_RESULT(no)
], [
AC_MSG_RESULT(yes)
OBJCFLAGS="$old_OBJCFLAGS"
])
])
BUILDSYS_INIT
BUILDSYS_TOUCH_DEPS
dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
|