blob: aa18cacc8300b8d4fcbbf1dddd4cc3258d6271df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
dnl This provides configure definitions used by all the cygwin
dnl configure.in files.
AC_DEFUN([AC_CYGWIN_INCLUDES], [
: ${ac_cv_prog_CXX:=$CXX}
: ${ac_cv_prog_CC:=$CC}
cygwin_headers=$(realdirpath "$winsup_srcdir/cygwin/include")
if test -z "$cygwin_headers"; then
AC_MSG_ERROR([cannot find $winsup_srcdir/cygwin/include directory])
fi
newlib_headers=$(realdirpath $winsup_srcdir/../newlib/libc/include)
if test -z "$newlib_headers"; then
AC_MSG_ERROR([cannot find newlib source directory: $winsup_srcdir/../newlib/libc/include])
fi
newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
AM_CPPFLAGS="-U_FORTIFY_SOURCE"
AM_CPPFLAGS="${AM_CPPFLAGS} -I${winsup_srcdir}/cygwin/local_includes"
AM_CPPFLAGS="${AM_CPPFLAGS} -I${target_builddir}/winsup/cygwin"
AM_CPPFLAGS="${AM_CPPFLAGS} -isystem ${cygwin_headers}"
for h in ${newlib_headers}; do
AM_CPPFLAGS="${AM_CPPFLAGS} -isystem $h"
done
AC_SUBST(AM_CPPFLAGS)
])
AC_SUBST(target_builddir)
AC_SUBST(winsup_srcdir)
|