autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

win32 macro version 3


From: Robert Collins
Subject: win32 macro version 3
Date: Fri, 16 Mar 2001 00:33:45 +1100

This has a better test that <windows.h>; a high level interface and two
low level interfaces.

I had _no_ idea what the high level interface should be called, so I
called it AC_API_WIN32 - please suggest a better name.

The low level interface sets WIN32FLAGS to the needed flags for that
language (but doesn't check the current language is infact C or C++). It
defines WIN32 so that the user _can test if they want to_ in
configure.in in order to skip other tests or turn on compilation of
win32 specific programs.

basic use:

AC_API_WIN32

can't get easier really.

advanced use
AC_API_WIN32
if test -z "$WIN32" ; then
    dnl we are able to build win32 code. Compile the win32 only bonus
programs
    dnl within all source files any win32 code is #ifdef WIN32
    EXTRA_PROGRAMS="$EXTRA_PROGRAMS servicemon serviceinstall"
fi

Rob

Attachment: acinclude.m4
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]