[GRASS5] Re: auto-locate EPSG
Brad Douglas
rez at touchofmadness.com
Fri Apr 28 18:48:09 EDT 2006
On Fri, 2006-04-28 at 18:26 +0100, Glynn Clements wrote:
> AC_DEFUN(LOC_CHECK_SHARE_PATH,[
> AC_MSG_CHECKING(for location of $2 data files)
> case "$with_$1_share" in
> y | ye | yes | n | no)
> AC_MSG_ERROR([*** You must supply a directory to --with-$1-share.])
> ;;
> esac
> AC_MSG_RESULT($with_$1_share)
>
> if test -n "$with_$1_share" ; then
> if test -d "$with_$1_share"; then
> $3="$$3 -I$dir"
^^^^^^^^^^^^^^^
???
would this be more appropriate?:
if test -d "$with_$1_share" = 1; then
AC_MSG_ERROR(...)
fi
> else
> AC_MSG_ERROR([*** $2 data directory $dir does not exist.])
> fi
> fi
> ])
>
> AC_DEFUN(LOC_CHECK_SHARE,[
> AC_CHECK_FILE($3/$1, [], ifelse($4,[],[
> AC_MSG_ERROR([*** Unable to locate $2 data files.])
> ], $4))
> ])
I committed some of this last night and sent Markus a patch for
LOC_CHECK_SHARE_PATH() to test.
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
More information about the grass-dev
mailing list