]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_SIZEOF_TYPE): New macro.
authorDavid MacKenzie <djm@djmnet.org>
Tue, 22 Mar 1994 23:28:24 +0000 (23:28 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 22 Mar 1994 23:28:24 +0000 (23:28 +0000)
acgeneral.m4
lib/autoconf/general.m4

index 61e86154288371dc98c3f91586f89b2a7bacc7eb..4d578b15cc37782efce4346abf138d1c657498cb 100644 (file)
@@ -33,7 +33,7 @@ dnl
 dnl Utility functions for stamping the configure script.
 dnl
 dnl
-define(AC_ACVERSION, 1.7.4)dnl
+define(AC_ACVERSION, 1.7.5)dnl
 dnl This is defined by the --version option of the autoconf script.
 ifdef([AC_PRINT_VERSION], [errprint(Autoconf version AC_ACVERSION
 )])dnl
@@ -672,6 +672,18 @@ else
 fi
 ])])dnl
 dnl
+define(AC_SIZEOF_TYPE,
+[AC_CHECKING(size of $1)
+$2=0
+AC_TEST_PROGRAM([#include <stdio.h>
+main()
+{
+  FILE *f=fopen("conftestval", "w");
+  if (!f) exit(1);
+  fprintf(f, "%d\n", sizeof($1));
+  exit(0);
+}], $2=`cat conftestval`)])dnl
+dnl
 dnl
 dnl The big finish
 dnl
index 61e86154288371dc98c3f91586f89b2a7bacc7eb..4d578b15cc37782efce4346abf138d1c657498cb 100644 (file)
@@ -33,7 +33,7 @@ dnl
 dnl Utility functions for stamping the configure script.
 dnl
 dnl
-define(AC_ACVERSION, 1.7.4)dnl
+define(AC_ACVERSION, 1.7.5)dnl
 dnl This is defined by the --version option of the autoconf script.
 ifdef([AC_PRINT_VERSION], [errprint(Autoconf version AC_ACVERSION
 )])dnl
@@ -672,6 +672,18 @@ else
 fi
 ])])dnl
 dnl
+define(AC_SIZEOF_TYPE,
+[AC_CHECKING(size of $1)
+$2=0
+AC_TEST_PROGRAM([#include <stdio.h>
+main()
+{
+  FILE *f=fopen("conftestval", "w");
+  if (!f) exit(1);
+  fprintf(f, "%d\n", sizeof($1));
+  exit(0);
+}], $2=`cat conftestval`)])dnl
+dnl
 dnl
 dnl The big finish
 dnl