X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d85949accc8820a54c468fbdf930063be5873296..e2030cb82d5b8f8b39696794f036e5ffc435f9bf:/acmacro/print_null.m4 diff --git a/acmacro/print_null.m4 b/acmacro/print_null.m4 deleted file mode 100644 index 62e6c5d3f4..0000000000 --- a/acmacro/print_null.m4 +++ /dev/null @@ -1,30 +0,0 @@ -dnl AC_CHECK_PRINTF_NULL: Check whether printf("%s",NULL) works or segfault -dnl it uses AC_RUN and assume the worse while cross-compiling - -dnl Then, you can: -dnl #ifndef PRINTF_NULL_WORKING -dnl # define PRINTF_STR(a) (a)?:"(null)" -dnl #else -dnl # define PRINTF_STR(a) (a) -dnl #endif - -dnl Copyright (C) 2005. Martin Quinson. All rights reserved. - -dnl This file is part of the SimGrid project. This is free software: You can -dnl redistribute and/or modify it under the terms of GNU LGPL (v2.1) licence. - - - - -AC_DEFUN([AC_CHECK_PRINTF_NULL], - [ -AC_MSG_CHECKING([whether printf("%s",NULL) works...]) -AC_RUN_IFELSE(AC_LANG_PROGRAM([#include ], - [printf("%s",NULL);]), - AC_DEFINE(PRINTF_NULL_WORKING, - 1, - [Indicates whether printf("%s",NULL) works]) - AC_MSG_RESULT(yes), - AC_MSG_RESULT(no), - AC_MSG_RESULT(assuming the worse in cross-compilation)) -])