From: David MacKenzie Date: Thu, 22 Sep 1994 03:18:49 +0000 (+0000) Subject: update multiple case example X-Git-Tag: fsf-origin~432 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620bb9b97d51b619c6bcd942386d883b61c72c54;p=thirdparty%2Fautoconf.git update multiple case example --- diff --git a/autoconf.texi b/autoconf.texi index 3f2a52b29..1b6fdb361 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -2824,21 +2824,21 @@ track of whether the remaining cases need to be checked. @example @group -echo checking how to get filesystem type +AC_MSG_CHECKING(how to get filesystem type) fstype=no -# SVR4. +# The order of these tests is important. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_STATVFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4) if test $fstype = no; then -# SVR3. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3) fi if test $fstype = no; then -# AIX. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX) fi +# (more cases omitted here) +AC_MSG_RESULT($fstype) @end group @end example diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 3f2a52b29..1b6fdb361 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -2824,21 +2824,21 @@ track of whether the remaining cases need to be checked. @example @group -echo checking how to get filesystem type +AC_MSG_CHECKING(how to get filesystem type) fstype=no -# SVR4. +# The order of these tests is important. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_STATVFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4) if test $fstype = no; then -# SVR3. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3) fi if test $fstype = no; then -# AIX. AC_TRY_CPP([#include -#include ], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes) +#include ], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX) fi +# (more cases omitted here) +AC_MSG_RESULT($fstype) @end group @end example