Nicholas Vargish <vargish_at_mailbox.sura.net> wrote:
> This is the basic definition, establish the default:
> m4_define(`icopath',`/homes/critters/vargish/lib/icons:/var/local/X11R6/include/X11/bitmaps:/usr/local/X11R6/include/X11/bitmaps')
This line is OK.
> Then check the HOSTNAME and change the definition if needed:
>
> m4_ifelse(`HOSTNAME',`imrryr',`m4_define(`icopath',`/homes/nick/lib/icons:/usr/X11R6/include/X11/bitmaps')')
This is where it falls down. Putting quotation marks around HOSTNAME
prevents m4 from interpreting it. As used here, it will always compare
the literal string "HOSTNAME" to the literal string "imrryr".
If you remove the quotation marks from HOSTNAME, the ifelse statement
works. This is also true for the second ifelse statement you described.
> Is there any way to make those m4 definitions "prettier"?
If it's not enclosed in quotation marks, you can put newlines where
you wish (after a comma, for example).
Chris Taylor / My views do not represent \ PGP public key available
shaggy_at_ctron.com \ those of Cabletron. / via keyserver or request
--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Jan 02 1996 - 08:07:00 GMT