diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-18 07:40:22 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-18 07:40:22 -0800 |
commit | efe098695573938793f33442bec70e392b78bfb1 (patch) | |
tree | 3281f141ca07e80af274f34666fa630d2254597e | |
parent | b52ee023673f3153950b4f07b57f7ad5eb81fb7d (diff) | |
download | autoconf213-efe098695573938793f33442bec70e392b78bfb1.tar.gz autoconf213-efe098695573938793f33442bec70e392b78bfb1.tar.bz2 autoconf213-efe098695573938793f33442bec70e392b78bfb1.zip |
autoconf-2.13-exit
-rw-r--r-- | acgeneral.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/acgeneral.m4 b/acgeneral.m4 index 69600f8..d00872f 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1984,12 +1984,12 @@ changequote([, ])dnl AC_MSG_CHECKING(size of $1) AC_CACHE_VAL(AC_CV_NAME, [AC_TRY_RUN([#include <stdio.h> -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof($1)); - exit(0); + return(0); }], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl AC_MSG_RESULT($AC_CV_NAME) AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) |