configure.in
changeset 384 9f6761c089fa
parent 382 7c63d65fd179
child 389 b35668cd8b3e
equal deleted inserted replaced
383:9eb4f52d9d72 384:9f6761c089fa
   192 dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
   192 dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
   193 if test x$have_llseek = xyes; then
   193 if test x$have_llseek = xyes; then
   194   AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
   194   AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
   195 fi
   195 fi
   196 
   196 
   197 enable_cdrom=no
   197 
   198 dnl determine if we should use the stubbed CD-ROM detection code.
   198 dnl determine if we should use the stubbed CD-ROM detection code.
   199 dnl AC_ARG_ENABLE(cdrom,
   199 AC_ARG_ENABLE(cdrom,
   200 dnl [  --enable-cdrom             try standard CD-ROM support [default=yes]],
   200 [  --enable-cdrom             include CD-ROM support [default=yes]],
   201 dnl               , enable_cdrom=yes)
   201               , enable_cdrom=yes)
   202 
   202 if test x$enable_cdrom = xyes; then
   203 
   203   dnl reset this and let header detection reenable...
   204 dnl BSD systems use sys/ucred.h for getting mounted volumes.
   204   enable_cdrom=no
   205 dnl Linux and others use mntent.h.
   205 
   206 AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
   206   dnl BSD systems use sys/ucred.h for getting mounted volumes.
   207 if test x$have_ucred_hdr = xyes; then
   207   dnl Linux and others use mntent.h.
   208   AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
   208   AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
   209   enable_cdrom=yes
   209   if test x$have_ucred_hdr = xyes; then
   210 fi
   210     AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
   211 
   211     enable_cdrom=yes
   212 AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
   212   fi
   213 if test x$have_mntent_hdr = xyes; then
   213 
   214   AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
   214   AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
   215   enable_cdrom=yes
   215   if test x$have_mntent_hdr = xyes; then
   216 fi
   216     AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
   217 
   217     enable_cdrom=yes
       
   218   fi
       
   219 fi
   218 
   220 
   219 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   221 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   220 AC_MSG_CHECKING([if this is BeOS])
   222 AC_MSG_CHECKING([if this is BeOS])
   221 if test x$build_os = xbeos; then
   223 if test x$build_os = xbeos; then
   222   this_is_beos=yes
   224   this_is_beos=yes
   286 fi
   288 fi
   287 
   289 
   288 dnl Some platform might disable this, so check this down here...
   290 dnl Some platform might disable this, so check this down here...
   289 if test x$enable_cdrom != xyes; then
   291 if test x$enable_cdrom != xyes; then
   290   AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
   292   AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
       
   293   AC_MSG_WARN([***])
       
   294   AC_MSG_WARN([*** There is no CD-ROM support in this build!])
       
   295   AC_MSG_WARN([*** PhysicsFS will just pretend there are no discs!])
       
   296   AC_MSG_WARN([*** Is this what you really wanted?])
       
   297   AC_MSG_WARN([***])
   291 fi
   298 fi
   292 
   299 
   293 
   300 
   294 # Checks for header files.
   301 # Checks for header files.
   295 AC_HEADER_STDC
   302 AC_HEADER_STDC