autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: common idiom for user definable substitution variables and defaults


From: John Calcote
Subject: Re: common idiom for user definable substitution variables and defaults
Date: Fri, 16 May 2008 15:07:45 -0600
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Michaux wrote:
> AC_SUBST(XJS_LOAD_PATH)
> if [[ -z "${XJS_LOAD_PATH}" ]]
> then
>   XJS_LOAD_PATH=".:~/lib/xjs:/usr/local/lib/xjs:/usr/lib/xjs:/lib/xjs"
> fi
> 
> I have a feeling this might not be the normal way to do this.
> 
> For one thing, the double brackets are just single brackets in my
> configure file. That is ok but how to quote brackets? Do I just want
> four brackets on each side?

You could just use "test":

test -z "${XJS_LOADPATH}" && XJS_LOAD_PATH="..."
AC_SUBST(XJS_LOAD_PATH)

Regards,
John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFILfehdcgqmRY/OH8RAkB/AJ0apEj3vjfBhqT2v0AhIP9Ed9uNIQCglqMw
tB8ijRiqXbdMpxnjJosYlv0=
=yKFG
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]