[xiph-cvs] cvs commit: ao configure.in
Jeff Squyres
jsquyres at xiph.org
Tue Feb 27 19:13:39 PST 2001
jsquyres 01/02/27 19:13:39
Modified: . configure.in
Log:
Allow the user to specify their own additional 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 -D_REENTRANT
% ./autogen.sh
Revision Changes Path
1.18 +4 -0 ao/configure.in
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ao/configure.in,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- configure.in 2001/02/28 00:19:45 1.17
+++ configure.in 2001/02/28 03:13:38 1.18
@@ -29,6 +29,8 @@
dnl Set some general compile options
dnl ====================================
+cflags_save="$CFLAGS"
+ldflags_save="$LDFLAGS"
if test -z "$GCC"; then
case $host in
*-*-irix*)
@@ -64,6 +66,8 @@
PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
esac
fi
+CFLAGS="$CFLAGS $cflags_save"
+LDFLAGS="$LDFLAGS $ldflags_save"
AC_SUBST(DEBUG)
--- >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