Skip to content

Commit

Permalink
added _ARMEL, _POWERPC, _POWERPC64 defines
Browse files Browse the repository at this point in the history
  • Loading branch information
overflowed committed Dec 2, 2011
1 parent 3c80488 commit 589a3fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure.in
Expand Up @@ -36,6 +36,18 @@ fi

AC_SUBST(VERSIONEXT)

case $host in
arm*-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_ARMEL")
;;
powerpc-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_POWERPC")
;;
powerpc64-*-linux-gnu*)
AC_SUBST(ARCH_DEFINES, "-D_POWERPC64")
;;
esac

# Finally create all the generated files
AC_OUTPUT([
Makefile
Expand Down
3 changes: 3 additions & 0 deletions src/xvdr/Makefile.am
Expand Up @@ -45,6 +45,9 @@ libxvdr_la_LIBADD = \
../libTcpSocket/libTcpSocket.la \
$(ZLIB_LIBS)

CPPFLAGS = \
$(ARCH_DEFINES)

INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. -I$(srcdir)/../../include -DUSE_DEMUX -D__STDC_CONSTANT_MACROS -D_LINUX

EXTRA_DIST = \
Expand Down

0 comments on commit 589a3fe

Please sign in to comment.