]> gcc.gnu.org Git - gcc.git/commitdiff
Initial revision
authorDoug Evans <dje@gnu.org>
Sat, 19 Jul 1997 02:37:36 +0000 (02:37 +0000)
committerDoug Evans <dje@gnu.org>
Sat, 19 Jul 1997 02:37:36 +0000 (02:37 +0000)
From-SVN: r14486

gcc/acconfig.h [new file with mode: 0644]
gcc/aclocal.m4 [new file with mode: 0644]

diff --git a/gcc/acconfig.h b/gcc/acconfig.h
new file mode 100644 (file)
index 0000000..690a213
--- /dev/null
@@ -0,0 +1,14 @@
+
+/* Include the old config.h as config2.h to simplify the transition
+   to autoconf.  */
+#include "config2.h"
+
+/* Whether malloc must be declared even if <stdlib.h> is included.  */
+#undef NEED_DECLARATION_MALLOC
+
+/* Whether realloc must be declared even if <stdlib.h> is included.  */
+#undef NEED_DECLARATION_REALLOC
+
+/* Whether free must be declared even if <stdlib.h> is included.  */
+#undef NEED_DECLARATION_FREE
+@TOP@
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
new file mode 100644 (file)
index 0000000..6a45a4c
--- /dev/null
@@ -0,0 +1,27 @@
+dnl See whether we need a declaration for a function.
+AC_DEFUN(GCC_NEED_DECLARATION,
+[AC_MSG_CHECKING([whether $1 must be declared])
+AC_CACHE_VAL(gcc_cv_decl_needed_$1,
+[AC_TRY_COMPILE([
+#include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif],
+[char *(*pfn) = (char *(*)) $1],
+gcc_cv_decl_needed_$1=no, gcc_cv_decl_needed_$1=yes)])
+AC_MSG_RESULT($gcc_cv_decl_needed_$1)
+if test $gcc_cv_decl_needed_$1 = yes; then
+  gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+  AC_DEFINE_UNQUOTED($gcc_tr_decl)
+fi
+])dnl
This page took 0.060965 seconds and 5 git commands to generate.