[xiph-cvs] cvs commit: vorbis-tools configure.in

Stan Seibert volsung at xiph.org
Sat Sep 22 18:59:42 PDT 2001



volsung     01/09/22 18:59:42

  Modified:    .        configure.in
  Log:
  - Set compiler flags for normal, debug, and profile usage.
  - Preserve user-defined CFLAGS in all three cases.

Revision  Changes    Path
1.30      +48 -7     vorbis-tools/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/configure.in,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- configure.in	2001/09/22 22:49:48	1.29
+++ configure.in	2001/09/23 01:59:41	1.30
@@ -32,13 +32,54 @@
 
 AC_CANONICAL_HOST
 
-case $host in 
-       *-*-darwin*)
-                DEBUG="-DDARWIN -Wall -g -O0 -fsigned-char"
-                CFLAGS="-DDARWIN -Wall -g -O4 -ffast-math -fsigned-char"
-                PROFILE="-DDARWIN -Wall -g -pg -O4 -ffast-math -fsigned-char";;
-esac
-
+casecflags_save="$CFLAGS"
+ldflags_save="$LDFLAGS"
+if test -z "$GCC"; then
+        case $host in
+        *-*-irix*)
+                DEBUG="-g -signed"
+                CFLAGS="-O2 -w -signed"
+                PROFILE="-p -g3 -O2 -signed"
+                ;;
+        sparc-sun-solaris*)
+                DEBUG="-v -g"
+                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
+                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
+                ;;
+        *)
+                DEBUG="-g"
+                CFLAGS="-O"
+                PROFILE="-g -p"
+                ;;
+        esac
+else
+        case $host in
+        *-*-linux*)
+                DEBUG="-g -Wall -fsigned-char"
+                CFLAGS="-O20 -ffast-math -fsigned-char"
+                PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
+                ;;
+        sparc-sun-*)
+                DEBUG="-g -Wall -fsigned-char -mv8"
+                CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
+                PROFILE="-pg -g -O20 -fsigned-char -mv8"
+                ;;
+        *-*-darwin*)
+                DEBUG="-fno-common -g -Wall -fsigned-char"
+                CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
+                PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
+                ;;
+        *)
+                DEBUG="-g -Wall -fsigned-char"
+                CFLAGS="-O20 -fsigned-char"
+                PROFILE="-O20 -g -pg -fsigned-char"
+                ;;
+        esac
+fi
+CFLAGS="$CFLAGS $cflags_save"
+DEBUG="$DEBUG $cflags_save"
+PROFILE="$PROFILE $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