]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygserver/aclocal.m4
Cygwin: Restore setting CC and CXX Makefile variables
[newlib-cygwin.git] / winsup / cygserver / aclocal.m4
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 dnl This provides configure definitions used by all the cygwin
16 dnl configure.in files.
17
18 AC_DEFUN([AC_CYGWIN_INCLUDES], [
19 : ${ac_cv_prog_CXX:=$CXX}
20 : ${ac_cv_prog_CC:=$CC}
21
22 cygwin_headers=$(realdirpath "$winsup_srcdir/cygwin/include")
23 if test -z "$cygwin_headers"; then
24 AC_MSG_ERROR([cannot find $winsup_srcdir/cygwin/include directory])
25 fi
26
27 newlib_headers=$(realdirpath $winsup_srcdir/../newlib/libc/include)
28 if test -z "$newlib_headers"; then
29 AC_MSG_ERROR([cannot find newlib source directory: $winsup_srcdir/../newlib/libc/include])
30 fi
31 newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
32
33 INCLUDES="-I${srcdir}/../cygwin -I${target_builddir}/winsup/cygwin"
34 INCLUDES="${INCLUDES} -isystem ${cygwin_headers}"
35 for h in ${newlib_headers}; do
36 INCLUDES="${INCLUDES} -isystem $h"
37 done
38 AC_SUBST(INCLUDES)
39 ])
40
41 AC_DEFUN([AC_CONFIGURE_ARGS], [
42 configure_args=X
43 for f in $ac_configure_args; do
44 case "$f" in
45 *--srcdir*) ;;
46 *) configure_args="$configure_args $f" ;;
47 esac
48 done
49 configure_args=$(/usr/bin/expr "$configure_args" : 'X \(.*\)')
50 AC_SUBST(configure_args)
51 ])
52
53 AC_SUBST(target_builddir)
54 AC_SUBST(winsup_srcdir)
55
This page took 0.036698 seconds and 5 git commands to generate.