source: xplra/src/plugin/configure.ac

Last change on this file was 85:ad0ce3502257, checked in by István Váradi <ivaradi@…>, 12 years ago

Added a configure switch to enable compilation for X-Plane 9

File size: 1.4 KB
Line 
1AC_INIT(xplra-plugin, 0.1, ivaradi@gmail.com)
2AM_INIT_AUTOMAKE([foreign no-exeext])
3
4AC_PROG_CC
5AC_PROG_CXX
6
7PKG_PROG_PKG_CONFIG
8
9AM_VSCPL_TARGET_API
10
11AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
12AC_ARG_WITH(xpsdk,
13 AC_HELP_STRING([--with-xpsdk=DIR],
14 [use the X-Plane Plugin SDK in DIR]),
15 [
16 if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then
17 AC_MSG_RESULT([$withval])
18 XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets"
19 if test $_target_win32 -eq 0; then
20 XPSDK_LDFLAGS="-L$withval/Libraries/Win"
21 else
22 XPSDK_LDFLAGS=""
23 fi
24 else
25 AC_MSG_FAILURE([not found in $withval])
26 fi
27 ],
28 [
29 AC_MSG_FAILURE([please, specify])
30 ])
31
32AC_ARG_ENABLE(xplane9,
33 AC_HELP_STRING([--enable-xplane9],
34 [compile the plugin for X-Plane 9]),
35 [AM_CONDITIONAL([XPLANE_9], test "$enableval" = "yes")],
36 [AM_CONDITIONAL([XPLANE_9], false)])
37
38AC_SUBST(XPSDK_INCLUDES)
39AC_SUBST(XPSDK_LDFLAGS)
40
41AM_VSCPL
42PKG_CHECK_MODULES([LIBXPLCOMMON], [libxplcommon >= 0.1])
43
44AC_CONFIG_FILES([
45 Makefile
46 src/Makefile
47 src/xplra/Makefile
48])
49
50AC_OUTPUT()
Note: See TracBrowser for help on using the repository browser.