source: xplra/configure.ac@ 11:215163a309ee

Last change on this file since 11:215163a309ee was 11:215163a309ee, checked in by István Váradi <ivaradi@…>, 11 years ago

Updated to the new, separated VSCPL and XPLCOMMON libraries

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