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



----- Original Message -----
From: "Earnie Boyd" <earnie_boyd@yahoo.com>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: "Akim Demaille" <akim@epita.fr>; <cygwin-apps@sources.redhat.com>;
<autoconf@gnu.org>
Sent: Friday, March 16, 2001 9:20 AM
Subject: Re: win32 compiler test V3a


> Robert Collins wrote:
> >
> > ----- Original Message -----
> > From: "Akim Demaille" <akim@epita.fr>
> > To: "Robert Collins" <robert.collins@itdomain.com.au>
> > Cc: <cygwin-apps@sources.redhat.com>; <autoconf@gnu.org>
> > Sent: Friday, March 16, 2001 2:35 AM
> > Subject: Re: win32 compiler test V3a
> >
> > >
> > > AC_LANG_CASE(
> > > dnl[C],     AC_PROG_CC_WIN32  [CFLAGS="$CFLAGS $WIN32FLAGS],
> > > dnl             [C++],        [CXXFLAGS="$CXXFLAGS $WIN32FLAGS],
> > > dnl             [Fortran 77], [FFLAGS="$FFLAGS $WIN32FLAGS],
> > >              [AC_FATAL([NIah?  Never heard of] _AC_LANG)])
> > >
> > > What problem do you have?  It works fine for me.
> > >
> > > /tmp % cat configure.ac
> > nostromo Err 1
> > > AC_INIT
> > > AC_LANG_CASE(
> > > dnl[C],     AC_PROG_CC_WIN32  [CFLAGS="$CFLAGS $WIN32FLAGS],
> > > dnl             [C++],        [CXXFLAGS="$CXXFLAGS $WIN32FLAGS],
> > > dnl             [Fortran 77], [FFLAGS="$FFLAGS $WIN32FLAGS],
> > >              [AC_FATAL([NIah?  Never heard of] _AC_LANG)])
> > > /tmp % ace
> > nostromo 16:35
> > > autoconf: warning: both `configure.ac' and `configure.in' are
present.
> > > autoconf: warning: proceeding with `configure.ac'.
> > > configure.ac:6: error: NIah?  Never heard of C
> > > configure.ac:6: the top level
> > >
> >
> > It must have been a side effect of one of the other syntax errors. I
> > just retired and it works now.
> >
>
> Well hopefully retiring isn't what made it work.  I want to be lazy
when
> I retire.  ;^)
>
> LOL,
> Earnie.
>

Grin. And to make it worse, I just found out that I "retired" early!

anyone care to try this?
administrator@LIFELESSWKS /usr/src/threadtestb
$ aclocal && autoconf
configure:1206: error: undefined macro: AC_FATAL
configure:1206: error: undefined macro: _AC_LANG

administrator@LIFELESSWKS /usr/src/threadtestb
$ 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

administrator@LIFELESSWKS /usr/src/threadtestb
$ aclocal && autoconf
configure:1206: error: undefined macro: AC_FATAL
configure:1206: error: undefined macro: _AC_LANG

Which is the error I eas seeing before..

Rob





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