autogen.sh: Add -Wno-portability to the automake parameters to stop warnings about...
[platform/upstream/gstreamer.git] / configure.ac
index ba46a17..5d59d0d 100644 (file)
@@ -260,6 +260,9 @@ dnl *** checks for programs ***
 dnl find a compiler
 AC_PROG_CC
 
+dnl check if the compiler supports '-c' and '-o' options
+AM_PROG_CC_C_O
+
 dnl find an assembler
 AM_PROG_AS
 
@@ -315,6 +318,9 @@ AC_CHECK_HEADERS([process.h])
 dnl Check for sys/utsname.h for uname
 AC_CHECK_HEADERS([sys/utsname.h])
 
+dnl Check for stdio_ext.f for __fbufsize
+AC_CHECK_HEADERS([stdio_ext.h])
+
 dnl *** checks for types/defines ***
 
 dnl *** checks for structures ***
@@ -541,7 +547,11 @@ AC_SUBST(PROFILE_CFLAGS)
 # GST_DISABLE_DEPRECATED: hide the visibility of deprecated
 # functionality from the API that gstreamer uses
 # GST_REMOVE_DEPRECATED: don't compile deprecated functionality (breaks ABI)
-DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
+if test "x$GST_CVS" = "xyes"; then
+  DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
+else
+  DEPRECATED_CFLAGS=""
+fi
 AC_SUBST(DEPRECATED_CFLAGS)
 
 dnl every flag in GST_OPTION_CFLAGS can be overridden at make time via e.g.