[xiph-cvs] cvs commit: ogg configure.in

Monty xiphmont at xiph.org
Tue Sep 17 21:42:09 PDT 2002



xiphmont    02/09/18 00:42:09

  Modified:    .        configure.in
  Log:
  Add ogg_uint16_t for Theora

Revision  Changes    Path
1.24      +50 -0     ogg/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ogg/configure.in,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- configure.in	11 Jul 2002 20:04:05 -0000	1.23
+++ configure.in	18 Sep 2002 04:42:08 -0000	1.24
@@ -127,6 +127,22 @@
 )])
 AC_MSG_RESULT($has_uint32_t)
 
+AC_MSG_CHECKING(for uint16_t)
+AC_CACHE_VAL(has_uint16_t,
+[AC_TRY_RUN([
+#ifdef __BEOS__
+#include <inttypes.h>
+#endif
+#include <sys/types.h>
+uint16_t foo;
+int main() {return 0;}
+],
+has_uint16_t=yes,
+has_uint16_t=no,
+has_uint16_t=no
+)])
+AC_MSG_RESULT($has_uint16_t)
+
 AC_MSG_CHECKING(for u_int32_t)
 AC_CACHE_VAL(has_u_int32_t,
 [AC_TRY_RUN([
@@ -143,6 +159,22 @@
 )])
 AC_MSG_RESULT($has_u_int32_t)
 
+AC_MSG_CHECKING(for u_int16_t)
+AC_CACHE_VAL(has_u_int16_t,
+[AC_TRY_RUN([
+#ifdef __BEOS__
+#include <inttypes.h>
+#endif
+#include <sys/types.h>
+u_int16_t foo;
+int main() {return 0;}
+],
+has_u_int16_t=yes,
+has_u_int16_t=no,
+has_u_int16_t=no
+)])
+AC_MSG_RESULT($has_u_int16_t)
+
 AC_MSG_CHECKING(for int64_t)
 AC_CACHE_VAL(has_int64_t,
 [AC_TRY_RUN([
@@ -198,6 +230,20 @@
         fi
 fi
 
+if test x$has_uint16_t = "xyes" ; then
+        USIZE16="uint16_t"
+else
+        if test x$has_u_int16_t = "xyes" ; then
+                USIZE16="u_int16_t"
+        else
+                case 2 in
+                        $ac_cv_sizeof_short) USIZE16="unsigned short";;
+                        $ac_cv_sizeof_int) USIZE16="unsigned int";;
+                        $ac_cv_sizeof_long) USIZE16="unsigned long";;
+                esac
+        fi
+fi
+
 if test x$has_int64_t = "xyes" ; then
         SIZE64="int64_t"
 else
@@ -211,6 +257,9 @@
 if test -z "$SIZE16"; then
         AC_MSG_ERROR(No 16 bit type found on this platform!)
 fi
+if test -z "$USIZE16"; then
+        AC_MSG_ERROR(No unsigned 16 bit type found on this platform!)
+fi
 if test -z "$SIZE32"; then
         AC_MSG_ERROR(No 32 bit type found on this platform!)
 fi
@@ -228,6 +277,7 @@
 
 AC_SUBST(LIBTOOL_DEPS)
 AC_SUBST(SIZE16)
+AC_SUBST(USIZE16)
 AC_SUBST(SIZE32)
 AC_SUBST(USIZE32)
 AC_SUBST(SIZE64)

<p><p>--- >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