This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: win32 compiler test V3a


>>>>> "Robert" == Robert Collins <robert.collins@itdomain.com.au> writes:

Robert> I cat'd the sources so you could see...

(One coffee later).  Well, I reread your previous message, and indeed
_now_ there are sources in there.  How did you do that?  :)

| $ cat ./acinclude.m4
| AC_DEFUN([AC_PROG_CXX_WIN32], [
| AC_REQUIRE([AC_PROG_CXX])dnl
| ])
| 
| 
| AC_DEFUN([AC_API_WIN32], [
| dnl high level interface for finding out compiler support for win32.
| 
| AC_LANG_CASE(
| dnl [C], [CFLAGS="$WIN32FLAGS $CFLAGS"
| dnl     CPPFLAGS="$WIN32FLAGS $CPPFLAGS"],
|             [C++], AC_PROG_CXX_WIN32 [CXXFLAGS="$WIN32FLAGS $CXXFLAGS"
|         CPPFLAGS="$WIN32FLAGS $CPPFLAGS"],
|              [AC_FATAL([No macro support for WIN32 with ] _AC_LANG) ])
| ])
| 
| administrator@LIFELESSWKS /usr/src/threadtestb
| $ cat configure.in
| AC_INIT
| AC_API_WIN32

Try this:

AC_DEFUN([AC_PROG_CXX_WIN32], 
[AC_REQUIRE([AC_PROG_CXX])])


# High level interface for finding out compiler support for win32.
AC_DEFUN([AC_API_WIN32], 
[AC_LANG_CASE(
dnl [C], [CFLAGS="$WIN32FLAGS $CFLAGS"
dnl     CPPFLAGS="$WIN32FLAGS $CPPFLAGS"],
            [C++], [AC_PROG_CXX_WIN32
        CXXFLAGS="$WIN32FLAGS $CXXFLAGS"
        CPPFLAGS="$WIN32FLAGS $CPPFLAGS"],
             [AC_FATAL([No macro support for WIN32 with ] _AC_LANG) ])
])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]