- AC_MSG_CHECKING([if buildling 64-bit app])
- AC_RUN_IFELSE([
- AC_LANG_PROGRAM([
- ], [
- return sizeof(void*) == 8 ? 0 : 1;
- ])
- ], [
- gl_cv_solaris_64bit=yes
- ], [
- gl_cv_solaris_64bit=no
- ])
- AC_MSG_RESULT([$gl_cv_solaris_64bit])
+ AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
+ [AC_EGREP_CPP([sixtyfour bits], [
+#ifdef _LP64
+sixtyfour bits
+#endif
+ ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
+ ])