Skip to content

Commit

Permalink
Made CD-ROM stuff a bit more automatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 25, 2002
1 parent 1ce7046 commit d3b6d99
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions configure.in
Expand Up @@ -96,26 +96,6 @@ dnl ---------------------------------------------------------------------
dnl Checks for libraries.
dnl ---------------------------------------------------------------------

dnl !!! FIXME: Not sure how to detect this...
dnl check for 64-bit llseek()...
dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
if test x$have_llseek = xyes; then
AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
fi

dnl BSD systems use sys/ucred.h for getting mounted volumes.
dnl Linux and others use mntent.h.
AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
if test x$have_ucred_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
fi

AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
if test x$have_mntent_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
fi


require_zlib="no"

dnl Check for zip archiver inclusion...
Expand Down Expand Up @@ -207,11 +187,33 @@ if test x$enable_readline = xyes; then
fi
fi

dnl !!! FIXME: Not sure how to detect this...
dnl check for 64-bit llseek()...
dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
if test x$have_llseek = xyes; then
AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
fi

enable_cdrom=no
dnl determine if we should use the stubbed CD-ROM detection code.
dnl AC_ARG_ENABLE(cdrom,
dnl [ --enable-cdrom try standard CD-ROM support [default=yes]],
dnl , enable_cdrom=yes)
enable_cdrom=yes


dnl BSD systems use sys/ucred.h for getting mounted volumes.
dnl Linux and others use mntent.h.
AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
if test x$have_ucred_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
enable_cdrom=yes
fi

AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
if test x$have_mntent_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
enable_cdrom=yes
fi


dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
Expand Down

0 comments on commit d3b6d99

Please sign in to comment.