aboutsummaryrefslogtreecommitdiff
path: root/test/postinstall/cpp_app/configure.ac
blob: 39eca0dccc62b94cbfe46bc4d4b2e79334800e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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