[xiph-cvs] cvs commit: vorbis configure.in
Jeff Squyres
jsquyres at xiph.org
Tue Feb 27 19:17:18 PST 2001
jsquyres 01/02/27 19:17:18
Modified: . configure.in
. configure.in
Log:
Allow the user to specify their own CFLAGS and LDFLAGS when they run
configure/autogen.sh.
If the environment variables CFLAGS and/or LDFLAGS are set, their values
are saved and appended to the values that are set in configure.in.
Example (csh-style, cope):
% setenv CFLAGS -DVORBIS_ROCKS=1
% ./autogen.sh
Revision Changes Path
1.14 +4 -0 ogg/configure.in
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ogg/configure.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- configure.in 2001/02/26 04:22:21 1.13
+++ configure.in 2001/02/28 03:17:17 1.14
@@ -17,6 +17,8 @@
dnl Set some options based on environment
+cflags_save="$CFLAGS"
+ldflags_save="$LDFLAGS"
if test -z "$GCC"; then
case $host in
*-*-irix*)
@@ -59,6 +61,8 @@
;;
esac
fi
+CFLAGS="$CFLAGS $cflags_save"
+LDFLAGS="$LDFLAGS $ldflags_save"
dnl Checks for programs.
1.38 +5 -0 vorbis/configure.in
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/vorbis/configure.in,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- configure.in 2001/02/26 03:50:37 1.37
+++ configure.in 2001/02/28 03:17:17 1.38
@@ -48,6 +48,9 @@
AC_CANONICAL_HOST
dnl Set some target options
+
+cflags_save="$CFLAGS"
+ldflags_save="$LDFLAGS"
if test -z "$GCC"; then
case $host in
*-*-irix*)
@@ -134,6 +137,8 @@
PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
esac
fi
+CFLAGS="$CFLAGS $cflags_save"
+LDFLAGS="$LDFLAGS $ldflags_save"
dnl --------------------------------------------------
dnl Check for headers
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list