Re: common idiom for user definable substitution variables and defaults

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

 



-----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-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux