source: xplcommon/configure.ac@ 43:1059e04162c9

Last change on this file since 43:1059e04162c9 was 42:84574c08b090, checked in by István Váradi <ivaradi@…>, 12 years ago

Made use of the AM_VSCPL_TARGET_API macro

File size: 1.2 KB
Line 
1AC_INIT(libxplcommon, 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
11AM_VSCPL_TARGET_API
12
13AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
14AC_ARG_WITH(xpsdk,
15 AC_HELP_STRING([--with-xpsdk=DIR],
16 [use the X-Plane Plugin SDK in DIR]),
17 [
18 if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then
19 AC_MSG_RESULT([$withval])
20 XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets"
21 if test $_target_win32 -eq 0; then
22 XPSDK_LDFLAGS="-L$withval/Libraries/Win"
23 else
24 XPSDK_LDFLAGS=""
25 fi
26 else
27 AC_MSG_FAILURE([not found in $withval])
28 fi
29 ],
30 [
31 AC_MSG_FAILURE([please, specify])
32 ])
33
34AC_SUBST(XPSDK_INCLUDES)
35AC_SUBST(XPSDK_LDFLAGS)
36
37AC_CONFIG_FILES([
38 Makefile
39 libxplcommon.pc
40 src/Makefile
41 src/hu/Makefile
42 src/hu/varadiistvan/Makefile
43 src/hu/varadiistvan/xplcommon/Makefile
44])
45
46AC_OUTPUT()
Note: See TracBrowser for help on using the repository browser.