Re: [PATCH] QNX support in xvid
Michael Militzer <[email protected]> Wed, 30 Jan 2013 12:54:28 +0100
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks, patch applied! Regards, Michael Quoting Mike Gorchak <[email protected]>: > Hi ! > > Here is a patch which fixes issues of xvid build on QNX platform. > > Thanks! > > diff -u -r -N > xvidcore-1.3.2-orig/build/generic/configure.inxvidcore-1.3.2/build/generic/ > configure.in > --- xvidcore-1.3.2-orig/build/generic/configure.in 2011-05-18 > 10:59:28.000000000 +0300 > +++ xvidcore-1.3.2/build/generic/configure.in 2013-01-29 > 17:04:09.000000000 +0200 > @@ -237,7 +237,7 @@ > STATIC_EXTENSION="" > OBJECT_EXTENSION="" > case "$target_os" in > - *bsd*|linux*|beos|irix*|solaris*) > + *bsd*|linux*|beos|irix*|solaris*|*qnx*) > AC_MSG_RESULT([.so .a .o]) > STATIC_EXTENSION="a" > SHARED_EXTENSION="so" > @@ -281,7 +281,7 @@ > ALTIVEC_CFLAGS="" > PRE_SHARED_LIB="" > case "$target_os" in > - linux*|solaris*) > + linux*|solaris*|*qnx*) > AC_MSG_RESULT([ok]) > STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)" > > SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)" > @@ -419,7 +419,7 @@ > if test "$found_nasm_comp_prog" = "yes" ; then > AC_MSG_CHECKING([for asm object format]) > case "$target_os" in > - *bsd*|linux*|beos|irix*|solaris*) > + *bsd*|linux*|beos|irix*|solaris*|*qnx*) > if test "$ARCHITECTURE" = "X86_64" ; then > AC_MSG_RESULT([elf64]) > NASM_FORMAT="elf64" > @@ -613,7 +613,12 @@ > [pthread_create], > [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" > SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"], > - AC_MSG_WARN(Pthread not supported. No SMP support))], > + [AC_CHECK_LIB( > + [c], > + [pthread_create], > + [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" > + SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS"], > + AC_MSG_WARN(Pthread not supported. No SMP support))])], > AC_MSG_WARN(Pthread not supported. No SMP support)) > else > AC_MSG_WARN(Pthread support disabled. No SMP support) >