Check is we should use -mregnames on PowerPC
authorDavid Schleef <ds@schleef.org>
Wed, 8 Oct 2003 17:27:56 +0000 (17:27 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 8 Oct 2003 17:27:56 +0000 (17:27 +0000)
Original commit message from CVS:
Check is we should use -mregnames on PowerPC

configure.ac

index 0b26d7c..4d9ddd7 100644 (file)
@@ -147,6 +147,15 @@ fi
 dnl Check for a way to display the function name in debug output
 GST_CHECK_FUNCTION()
 
+dnl check if we should use -Wa,-mregnames on PowerPC, so we can use
+dnl symbolic register names in inline asm
+if test x$HAVE_CPU_PPC = xyes ; then
+  AS_COMPILER_FLAG(["-Wa,-mregnames"],
+    [GST_INT_CFLAGS="$GST_INT_CFLAGS -Wa,-mregnames"],
+    true)
+fi
+
+
 dnl Check for essential libraries first:
 dnl ====================================
 
@@ -617,3 +626,4 @@ pkgconfig/gstreamer-control-uninstalled.pc
 gstreamer.spec,
 echo "$infomessages", infomessages="$infomessages"
 )
+