diff options
Diffstat (limited to 'test/postinstall/cpp_app/configure.ac')
| -rw-r--r-- | test/postinstall/cpp_app/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/postinstall/cpp_app/configure.ac b/test/postinstall/cpp_app/configure.ac new file mode 100644 index 00000000..7da902a8 --- /dev/null +++ b/test/postinstall/cpp_app/configure.ac @@ -0,0 +1,20 @@ +AC_INIT([cpp_app], [0.1]) +AM_INIT_AUTOMAKE +AC_PROG_CXX +dnl Required for (e.g.) g++-4.8 +AC_CONFIG_MACRO_DIR([../../../m4]) +AX_CXX_COMPILE_STDCXX_11([noext],[mandatory]) + +PKG_CHECK_MODULES([PROJ], [proj]) + +AC_ARG_ENABLE([static-proj], + AS_HELP_STRING([--enable-static-proj], + [Enable linking to static PROJ library])) + +# If enabled, force static linking for Linux +if test "x$enable_static_proj" = "xyes" -a "x$(uname)" = "xLinux"; then + PROJ_LIBS=$(echo "$PROJ_LIBS" | sed 's/-lproj/-Wl,-Bstatic -lproj -Wl,-Bdynamic/') +fi + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |
