AC_TYPE_MODE_T
# Checks for library functions or symbols
-AC_FUNC_STAT
-AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor memset mkdtemp pow realpath sqrt strcasecmp strchr strncasecmp strtol strtoul])
AC_CHECK_LIB(m, tan)
AC_CHECK_LIB(z, inflate)
package, as requests are limited per token.])],
[VIK_CONFIG_MAPBOX_TOKEN="\"${withval}\""],
[VIK_CONFIG_MAPBOX_TOKEN="\"pk.eyJ1Ijoicndub3JyaXMiLCJhIjoiY2lxc294anN2MDA5bWhzbWFseWsxMW1ydiJ9.HcybKtZsiG6RVuOHg481Kg\""])
-AC_DEFINE_UNQUOTED(VIK_CONFIG_MAPBOX_TOKEN, ${VIK_CONFIG_MAPBOX_TOKEN}, [geonames username])
+AC_DEFINE_UNQUOTED(VIK_CONFIG_MAPBOX_TOKEN, ${VIK_CONFIG_MAPBOX_TOKEN}, [Mapbox Token])
+dnl Compile time defined key
+AC_ARG_WITH(thunderforest_apikey,
+ [AC_HELP_STRING([--with-thunderforest_apikey],
+ [API Key for Thunderforest (OSM Cyclemap) tiles.
+ Please register your own if you're going to distribute the
+ package, as requests are limited per key.])],
+ [VIK_CONFIG_THUNDERFOREST_KEY="\"${withval}\""],
+ [VIK_CONFIG_THUNDERFOREST_KEY="\"7387c111d85642b18f63608bd4cb8b4f\""])
+AC_DEFINE_UNQUOTED(VIK_CONFIG_THUNDERFOREST_KEY, ${VIK_CONFIG_THUNDERFOREST_KEY}, [Thunderforest key])
+
AC_ARG_WITH(geonames_username,
[AC_HELP_STRING([--with-geonames_username],
[Username for the GeoNames webservice.