Radix cross Linux Build System

Cross-platform build system is designed to build distributions of different operating systems for a set of target devices

74 Commits   2 Branches   2 Tags
Index: ac_func_scanf_can_malloc.m4
===================================================================
--- ac_func_scanf_can_malloc.m4	(nonexistent)
+++ ac_func_scanf_can_malloc.m4	(revision 5)
@@ -0,0 +1,53 @@
+dnl AC_FUNC_SCANF_CAN_MALLOC macro
+dnl
+dnl (c) Finn Thain 2006
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved.
+
+# AC_FUNC_SCANF_CAN_MALLOC()
+# --------------------------------------
+AC_DEFUN([AC_FUNC_SCANF_CAN_MALLOC],
+  [ AC_CHECK_HEADERS([stdlib.h])
+    AC_CACHE_CHECK([whether scanf can malloc], [ac_cv_func_scanf_can_malloc],
+    [ AC_RUN_IFELSE(
+      [ AC_LANG_PROGRAM(
+        [
+#include <stdio.h>
+#if STDC_HEADERS || HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+        ], [
+  union { float f; char *p; } u;
+  char *p;
+  u.f = 0;
+  char *scan_this = "56789";
+  int matched = sscanf(scan_this, "%as", &u);
+  if(matched < 1) return 1; /* shouldn't happens */
+  if(u.f == (float)56789) return 2;
+
+  p = u.p;
+  while(*scan_this && *p == *scan_this) {
+    ++p;
+    ++scan_this;
+  };
+  free(u.p);
+  if(*scan_this == 0) return 0;
+  return 3;
+        ])
+      ],
+      [ac_scanf_can_malloc=yes],
+      [ac_scanf_can_malloc=no],
+      [
+case $host_alias in
+  *-*-linux* ) ac_scanf_can_malloc=yes ;;
+  *-*-solaris* ) ac_scanf_can_malloc=no ;;
+  *-*-darwin* ) ac_scanf_can_malloc=no ;;
+  * ) ac_scanf_can_malloc=no ;;
+esac
+      ])
+    ])
+if test x$ac_scanf_can_malloc = "xyes"; then
+  AC_DEFINE([SCANF_CAN_MALLOC], 1, [Define to 1 if the scanf %a conversion format mallocs a buffer. Undefine if %a format denotes a float.])
+fi
+  ])
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,51 ##
+
+# local config & object files
+build-config.mk
+sbin
+usr
+var
+
+# configure targets
+autom4te.cache
+.config
+config.log
+config.status
+configure
+
+# cpan configure targets
+.installed
+CPAN-Config.pm
+CPAN-install
+
+# Target build dirs
+.build-machine
+
+# Timestamps
+.makefile
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Object Files
+*.[ao]
+
+# backup copies
+*~