Line | |
---|
1 | AC_INIT(libxplcommon, 0.2, ivaradi@gmail.com)
|
---|
2 | AM_INIT_AUTOMAKE([foreign])
|
---|
3 |
|
---|
4 | LT_INIT
|
---|
5 |
|
---|
6 | AM_PROG_AS
|
---|
7 | AC_PROG_CC
|
---|
8 | AC_PROG_CXX
|
---|
9 | AC_CONFIG_MACRO_DIR([m4])
|
---|
10 |
|
---|
11 | AM_VSCPL_TARGET_API
|
---|
12 |
|
---|
13 | AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
|
---|
14 | AC_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 |
|
---|
34 | AC_SUBST(XPSDK_INCLUDES)
|
---|
35 | AC_SUBST(XPSDK_LDFLAGS)
|
---|
36 |
|
---|
37 | AC_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 | doc/Makefile
|
---|
45 | ])
|
---|
46 |
|
---|
47 | AC_OUTPUT()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.