Added configure param --enable-maemo to force building for Maemo
This commit is contained in:
parent
39ebc594c1
commit
b283218a5f
1 changed files with 10 additions and 4 deletions
14
configure.in
14
configure.in
|
@ -28,13 +28,19 @@ else
|
|||
fi
|
||||
|
||||
## Maemo section
|
||||
if test "$ARCH" = "linux" && test -f /etc/maemo_version; then
|
||||
AC_ARG_ENABLE(maemo,
|
||||
[ --enable-maemo Build for Linux Maemo based devices (default: autodetect)])
|
||||
AC_MSG_CHECKING([whether we are building for Linux Maemo based devices])
|
||||
if ( test "$ARCH" = "linux" && test -f /etc/maemo_version && test "$enable_maemo" != "no" ) || test "$enable_maemo" = "yes"; then
|
||||
CPPFLAGS="$CPPFLAGS -DUSE_MAEMO"
|
||||
MAEMO=yes
|
||||
CFLAGS="$CFLAGS $(pkg-config --cflags libosso)"
|
||||
CXXFLAGS="$CXXFLAGS $(pkg-config --cflags libosso)"
|
||||
LDFLAGS="$LDFLAGS $(pkg-config --libs libosso)"
|
||||
else
|
||||
MAEMO=no
|
||||
fi
|
||||
AC_MSG_RESULT($MAEMO)
|
||||
|
||||
if test "$ARCH" = "bsd" ; then
|
||||
CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include -I/usr/local/include"
|
||||
|
@ -231,7 +237,7 @@ fi
|
|||
|
||||
if test "$ARCH" = "win32"; then
|
||||
AC_ARG_ENABLE(stdio-redirect,
|
||||
[ --enable-stdio-redirect Redirect STDIO to files on Win32 (default=yes)])
|
||||
[ --enable-stdio-redirect Redirect STDIO to files on Win32 (default: yes)])
|
||||
if test "$enable_stdio_redirect" = "no"; then
|
||||
CPPFLAGS="$CPPFLAGS -DNO_STDIO_REDIRECT"
|
||||
fi
|
||||
|
@ -242,8 +248,8 @@ datarootdir=.
|
|||
test "$datadir" = "NONE" && datadir=$datarootdir
|
||||
|
||||
dnl --- LUA includes -----------
|
||||
AC_ARG_WITH(lua-includes, [ --with-lua-includes=DIR [Location of lua include directiories
|
||||
(default: check [PREFIX/include/lua51], [PREFIX/include/lua5.1] and [/usr/include/lua51], [/usr/include/lua5.1])]], LUA_INCLUDES="$withval")
|
||||
AC_ARG_WITH(lua-includes, [ --with-lua-includes=DIR [Location of lua include directiories
|
||||
(default: check [PREFIX/include/lua51], [PREFIX/include/lua5.1] and [/usr/include/lua51], [/usr/include/lua5.1])]], LUA_INCLUDES="$withval")
|
||||
if test "$LUA_INCLUDES" != ""; then
|
||||
CPPFLAGS="$CPPFLAGS -I$LUA_INCLUDES"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue