X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=configure.ac;h=d12355667c303d52832b0208524853ff6b281e59;hb=c75e362781057bc982799d300eebfd47417ad23e;hp=fa40f34ecbb15b6102f48c8d7f80fa0000e80058;hpb=ea0a5877530a801713c80963c918c0a6f4072d8a;p=petitboot diff --git a/configure.ac b/configure.ac index fa40f34..d123556 100644 --- a/configure.ac +++ b/configure.ac @@ -14,7 +14,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -AC_INIT([petitboot], [0.2], [Jeremy Kerr ]) +AC_INIT([petitboot], [0.3], [Geoff Levand ]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) @@ -29,6 +29,31 @@ fi AC_PROG_CC AC_PROG_INSTALL +AC_CHECK_HEADERS([stdarg.h]) +AC_CHECK_HEADERS([varargs.h]) +#AC_CHECK_FUNCS([va_copy]) + +dnl Checking for va_copy availability +AC_MSG_CHECKING([for va_copy]) +AC_TRY_LINK([#include +va_list ap1,ap2;], [va_copy(ap1,ap2);], +have_va_copy=yes, +have_va_copy=no) +AC_MSG_RESULT($have_va_copy) +if test x"$have_va_copy" = x"yes"; then + AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) +else + AC_MSG_CHECKING([for __va_copy]) + AC_TRY_LINK([#include + va_list ap1,ap2;], [__va_copy(ap1,ap2);], + have___va_copy=yes, + have___va_copy=no) + AC_MSG_RESULT($have___va_copy) + if test x"$have___va_copy" = x"yes"; then + AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available]) + fi +fi + AC_ARG_ENABLE([ps3], [AS_HELP_STRING([--enable-ps3], [build support for the PS3 game console])],