forked from MaxKellermann/w32api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
63 lines (53 loc) · 1.4 KB
/
configure.in
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dnl Process this file with autoconf to produce a configure script.
dnl This file is part of a free win32 library
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
AC_PREREQ(2.59)
AC_INIT(lib/scrnsave.c)
AC_CANONICAL_SYSTEM
#LIB_AC_PROG_CC
dnl Find install command
AC_PROG_INSTALL
dnl check for cc and CFLAGS
CFLAGS=${CFLAGS-"-O2 -g"}
AC_CHECK_TOOL(CC, gcc, gcc)
AC_SUBST(CC)
AC_SUBST(CFLAGS)
AC_SUBST(with_cross_host)
dnl check for various tools
AC_CHECK_TOOL(AR, ar, ar)
AC_SUBST(AR)
AC_CHECK_TOOL(AS, as, as)
AC_SUBST(AS)
AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
AC_SUBST(RANLIB)
AC_CHECK_TOOL(LD, ld, ld)
AC_SUBST(LD)
AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
AC_SUBST(DLLTOOL)
AC_CHECK_TOOL(WINDRES, windres, windres)
AC_SUBST(WINDRES)
AC_MSG_CHECKING([for build environment])
case "$build_alias" in
*-mingw*) BUILDENV=mingw;;
*-cygwin*) BUILDENV=cygwin;;
esac
if test -z "$BUILDENV"; then
AC_MSG_RESULT(standard)
else
AC_MSG_RESULT($BUILDENV)
fi
AC_SUBST(BUILDENV)
case "${host_alias}" in
*-mingw32ce* | *-cegcc*)
SUBDIRS="libce"
;;
*)
SUBDIRS="lib"
;;
esac
AC_SUBST(SUBDIRS)
AC_OUTPUT(Makefile lib/Makefile lib/ddk/Makefile lib/directx/Makefile libce/Makefile)