OSDN Git Service

* configure.ac: should use `exit' rather than `return' on
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Wed, 21 Aug 2002 17:51:06 +0000 (17:51 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Wed, 21 Aug 2002 17:51:06 +0000 (17:51 +0000)
AC_TRY_RUN().  see the Autoconf manual.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@508 6a8cc165-1e22-0410-a132-eb4e3f353aba

configure.ac

index 6e8e0b3..76c8669 100644 (file)
@@ -68,7 +68,7 @@ fi
 
 # checking whether 8 bit clean or not
 AC_CACHE_CHECK([whether strchr()/strrchr() is 8bit clean],
-  [lha_cv_strchr_8bit_clean],
+  [lha_cv_func_strchr_8bit_clean],
   AC_TRY_RUN([
 #if STDC_HEADERS
 # include <string.h>
@@ -83,17 +83,17 @@ char *strchr (), *strrchr ();
 main()
 {
   char *s = "\377";
-  if (strchr(s, 0xff) != s) return 1;
-  if (strchr(s, '\377') != s) return 1;
-  if (strrchr(s, 0xff) != s) return 1;
-  if (strrchr(s, '\377') != s) return 1;
-  return 0; /* ok */
+  if (strchr(s, 0xff) != s) exit(1);
+  if (strchr(s, '\377') != s) exit(1);
+  if (strrchr(s, 0xff) != s) exit(1);
+  if (strrchr(s, '\377') != s) exit(1);
+  exit(0); /* ok */
 }
-], lha_cv_strchr_8bit_clean=yes,
-   lha_cv_strchr_8bit_clean=no,
-   lha_cv_strchr_8bit_clean=no))
+], lha_cv_func_strchr_8bit_clean=yes,
+   lha_cv_func_strchr_8bit_clean=no,
+   lha_cv_func_strchr_8bit_clean=no))
 
-if test x$lha_cv_strchr_8bit_clean = xyes; then
+if test x$lha_cv_func_strchr_8bit_clean = xyes; then
   AC_DEFINE(STRCHR_8BIT_CLEAN, 1,
            [Define to 1 if strchr()/strrchr() works correctly.])
 fi