openbsd-ports/geo/gpsbabel/patches/patch-configure_in
2008-08-21 05:20:53 +00:00

43 lines
1.2 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.4 2008/08/21 05:20:53 ckuethe Exp $
--- configure.in.orig Sun May 4 15:26:37 2008
+++ configure.in Wed Jul 2 22:03:36 2008
@@ -57,16 +57,22 @@ if test "$cet" = "default"; then
fi
AC_MSG_CHECKING(whether to support shapefiles)
-AC_ARG_ENABLE(shapefile,
- [ --enable-shapefile=[(yes)|no]],
- [ enable_shapefile="$enableval"],[enable_shapefile="yes"])
- if test "$enable_shapefile" != "no" ; then
+AC_ARG_WITH(shapefile, [ --enable-shapefile=[(included)|system|no]])
+ case $with_shapefile in
+ "system")
+ AC_CHECK_LIB([shp], [SHPOpen])
AC_DEFINE(SHAPELIB_ENABLED, 1, [1 to enable shapefile support])
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
+ ;;
+ "no")
+ AC_MSG_RESULT(no)
+ ;;
+ *) SHAPE="\$(SHAPE)"
+ AC_DEFINE(SHAPELIB_ENABLED, 1, [1 to enable shapefile support])
+ AC_MSG_RESULT(using included version)
+ ;;
+ esac
+
AC_MSG_CHECKING(whether to support Palm/OS pdb formats)
AC_ARG_ENABLE(pdb,
[ --enable-pdb=[(yes)|no]],
@@ -209,6 +215,7 @@ AC_SUBST(USB_LIBS)
AC_SUBST(USB_CFLAGS)
AC_SUBST(OSJEEPS)
AC_SUBST(GBSER)
+AC_SUBST(SHAPE)
AC_SUBST(ZLIB)
AC_MSG_CHECKING(for random stuff to make you feel better)