mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
update multiple case example
This commit is contained in:
parent
a4a5a149e8
commit
620bb9b97d
@ -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 <sys/statvfs.h>
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=yes)
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
|
||||
if test $fstype = no; then
|
||||
# SVR3.
|
||||
AC_TRY_CPP([#include <sys/statfs.h>
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes)
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
|
||||
fi
|
||||
if test $fstype = no; then
|
||||
# AIX.
|
||||
AC_TRY_CPP([#include <sys/statfs.h>
|
||||
#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes)
|
||||
#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
|
||||
fi
|
||||
# (more cases omitted here)
|
||||
AC_MSG_RESULT($fstype)
|
||||
@end group
|
||||
@end example
|
||||
|
||||
|
@ -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 <sys/statvfs.h>
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=yes)
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
|
||||
if test $fstype = no; then
|
||||
# SVR3.
|
||||
AC_TRY_CPP([#include <sys/statfs.h>
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes)
|
||||
#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
|
||||
fi
|
||||
if test $fstype = no; then
|
||||
# AIX.
|
||||
AC_TRY_CPP([#include <sys/statfs.h>
|
||||
#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes)
|
||||
#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
|
||||
fi
|
||||
# (more cases omitted here)
|
||||
AC_MSG_RESULT($fstype)
|
||||
@end group
|
||||
@end example
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user