openbsd-ports/geo/gpsbabel/patches/patch-configure_in

43 lines
1.2 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.2 2006/11/09 02:31:30 ckuethe Exp $
--- configure.in.orig Sun Nov 5 16:54:07 2006
+++ configure.in Mon Nov 6 22:41:20 2006
@@ -50,16 +50,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]],
@@ -180,6 +186,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)