build system proposals for gnome2-branch

Phil Longstaff plongstaff at newearth.org
Wed Jul 20 18:38:55 EDT 2005


On July 20, 2005 04:54 pm, Christian Stimming wrote:
> Hi all,
> - changing of macros/autogen.sh, diff attached.
>
> The changes to autogen.sh are
>
> -	ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
> +	# if GNOME2_PATH contains several directories, separate them properly
> +	TMP_PATH=`echo $GNOME2_PATH | sed 's/:/ -I /g' `
> +	ACLOCAL_FLAGS="-I $TMP_PATH/share/aclocal $ACLOCAL_FLAGS"
>
> to tolerate env variable GNOME2_PATH=/opt/gnome:/usr/bla/bla, and then

I would use:

-       ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
+       for dir in `echo $GNOME2_PATH | sed 's/:/ /g'`; do
+               ACLOCAL_FLAGS="-I $dir/share/aclocal $ACLOCAL_FLAGS"
+       done;

instead because each directory in GNOME2_PATH needs /share/aclocal added to 
it.

Unified diff attached.

Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autogen.diff
Type: text/x-diff
Size: 603 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050720/be5b0192/autogen.bin


More information about the gnucash-devel mailing list