[wellylug] configure script and fontpath
Cameron Hart
sexy at cam.rebel.net.nz
Wed Jan 14 11:44:59 NZDT 2004
On Wed, 14 Jan 2004 10:37, E.Chalaron wrote:
> Hi
> I have a bit of an issue here with fonts
>
> the ./configure --with-fontpath=/blablablabla is sending me back a :
>
> ./configure: fontpath,: command not found
>
> Well..... from what I can find in the script is :
>
>
> *****************************************************
> # Check whether --with- or --without- was given.
> if test "${with_+set}" = set; then
> withval="$with_"
>
> fi
> (fontpath, --with-fontpath Path to your TTF fonts dir,
> case $with_fontpath in
> /*) cat >> confdefs.h <<\EOF
> #define HAVE_FONTPATH 1
> EOF
>
> cat >> confdefs.h <<EOF
> #define FONTPATH "$with_fontpath"
> EOF
>
> ;;
> *) cat >> confdefs.h <<EOF
> #define FONTPATH NULL
> EOF
>
> { echo "configure: error: "--with-fontpath: $with_fontpath is not
> a valid pathname."" 1>&2; exit 1; }
> ;;
> esac)
> ************************************************
>
> So I would guess that it knows what fontpath is...
> Any idea to resolve that or anybody knows what it is about ?
> Thanks
> Edouard
I'm certainly no bash-scripting expert, in fact I have done none of it, but it
seems to me it is running the line after the 'fi' command where it starts
with the opening bracket, as though it was a command. This doesn't seem to be
its intended behaviour. However I can't suggest how to fix it though, because
I don't know how 'if' or 'case' commands are constructed in bash. Someone in
the group must know bash scripting tho...
--
Cameron
More information about the wellylug
mailing list