/[pcsx2_0.9.7]/trunk/plugins/USBnull/configure.ac
ViewVC logotype

Contents of /trunk/plugins/USBnull/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 11 months ago) by william
File size: 2337 byte(s)
committing r3113 initial commit again...
1 AC_INIT(USBnull, 0.6,arcum42@gmail.com)
2
3 AM_INIT_AUTOMAKE(USBnull,0.6)
4
5 AC_PROG_CC([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
6 AC_PROG_CXX([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
7 AC_PROG_CPP([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
8
9 AC_PROG_INSTALL
10 AC_PROG_RANLIB
11
12 dnl necessary for compiling assembly
13 AM_PROG_AS
14
15 AC_SUBST(USBnull_CURRENT, 0)
16 AC_SUBST(USBnull_REVISION, 6)
17 AC_SUBST(USBnull_AGE, 0)
18 AC_SUBST(USBnull_RELEASE,[$USBnull_CURRENT].[$USBnull_REVISION].[$USBnull_AGE])
19 AC_SUBST(USBnull_SONAME,libUSBnull.so.[$USBnull_CURRENT].[$USBnull_REVISION].[$USBnull_AGE])
20
21 CFLAGS=
22 CPPFLAGS=
23 CXXFLAGS=
24 CCASFLAGS=
25
26 dnl Check for debug build
27 AC_MSG_CHECKING(debug build)
28 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
29 debug=$enableval,debug=no)
30 if test "x$debug" == xyes
31 then
32 AC_DEFINE(PCSX2_DEBUG,1,[PCSX2_DEBUG])
33 CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
34 CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
35 CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
36 CCASFLAGS+=" -m32 "
37 else
38 AC_DEFINE(NDEBUG,1,[NDEBUG])
39 CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
40 CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
41 CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
42 CCASFLAGS+=" -m32 "
43 fi
44 AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
45 AC_MSG_RESULT($debug)
46
47 AC_DEFINE(__LINUX__,1,[__LINUX__])
48
49 dnl Check for dev build
50 AC_MSG_CHECKING(for development build...)
51 AC_ARG_ENABLE(devbuild, AC_HELP_STRING([--enable-devbuild], [Special Build for developers that simplifies testing and adds extra checks]),
52 devbuild=$enableval,devbuild=no)
53 if test "x$devbuild" == xyes
54 then
55 AC_DEFINE(USBnull_DEVBUILD,1,[USBnull_DEVBUILD])
56 fi
57 AC_MSG_RESULT($devbuild)
58 AM_CONDITIONAL(RELEASE_TO_PUBLIC, test x$devbuild = xno)
59
60 AC_CHECK_FUNCS([ _aligned_malloc _aligned_free ], AC_DEFINE(HAVE_ALIGNED_MALLOC))
61
62 dnl gtk
63 AC_MSG_CHECKING(gtk2+)
64 AC_CHECK_PROG(GTK_CONFIG, pkg-config, pkg-config)
65 LIBS+=$(pkg-config --libs gtk+-2.0)
66
67 dnl bindir = pcsx2exe
68
69 dnl assuming linux environment
70 so_ext=".so.$USBnull_RELEASE"
71 SHARED_LDFLAGS="-shared"
72 AC_SUBST(so_ext)
73 AC_SUBST(SHARED_LDFLAGS)
74
75 AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"])
76
77 AC_OUTPUT([
78 Makefile
79 ])
80
81 echo "Configuration:"
82 echo " Debug build? $debug"
83 echo " Dev build? $devbuild"

  ViewVC Help
Powered by ViewVC 1.1.22