Re: [AD] 3.9.33 Unix patch (non-root users and ld.so.conf advice) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, Oct 15, 2000 at 09:15:00PM +0100, George Foot wrote:
> Something else I considered was adding an option to
> `allegro-config' which would make it output a string of
> environment variable modifications, for use when Allegro is not
> installed to the usual place.
I have now done this, and updated the documentation again.
George
--
Random project update:
09/05/2000: Libnet 0.10.8 uploaded -- a few bugfixes
http://www.canvaslink.com/libnet/ (try changes-0.10.8.txt)
Index: readme.uni
===================================================================
RCS file: /cvsroot/alleg/allegro/readme.uni,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- readme.uni 2000/10/15 20:11:55 1.3
+++ readme.uni 2000/10/15 20:30:24 1.4
@@ -196,6 +196,20 @@
don't tend to bother with `allegro-config' when compiling.)
+ Alternatively, if your shell is sh-like, you can get the environment
+ changes from allegro-config, by typing at a shell prompt:
+
+ `allegro-config --env`
+
+ You can add that single command to your .bash_profile instead of all
+ of the above commands. Note that `allegro-config' itself is in the
+ `bin' directory of the installation, so either make sure that is in
+ your path before running `allegro-config' or specify the path
+ exactly, for example:
+
+ `~/bin/allegro-config --env`
+
+
==========================================
============ Notes on drivers ============
Index: misc/allegro-config.in
===================================================================
RCS file: /cvsroot/alleg/allegro/misc/allegro-config.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- misc/allegro-config.in 2000/08/26 15:53:36 1.3
+++ misc/allegro-config.in 2000/10/15 20:30:24 1.4
@@ -35,6 +35,7 @@
--libs
--static
--shared
+ --env
Libraries:
release
@@ -98,6 +99,10 @@
echo_libs=yes
;;
+ --env)
+ echo_env=yes
+ ;;
+
release)
lib_type=alleg
;;
@@ -138,4 +143,14 @@
else
echo $libdirs -l${lib_type}-${version} -l${lib_type}_unsharable #$allegro_libs
fi
-fi
+fi
+
+if test "$echo_env" = "yes"; then
+ echo "export PATH=\$PATH:$prefix/bin"
+ echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib"
+ echo "export LIBRARY_PATH=\$LIBRARY_PATH:$prefix/lib"
+ echo "export C_INCLUDE_PATH=\$C_INCLUDE_PATH:$prefix/include"
+ echo "export CPLUS_INCLUDE_PATH=\$CPLUS_INCLUDE_PATH:$prefix/include"
+ echo "export OBJC_INCLUDE_PATH=\$OBJC_INCLUDE_PATH:$prefix/include"
+fi
+