configure.in
changeset 382 7c63d65fd179
parent 381 b65d27fdc8a9
child 384 9f6761c089fa
equal deleted inserted replaced
381:b65d27fdc8a9 382:7c63d65fd179
    93 
    93 
    94 
    94 
    95 dnl ---------------------------------------------------------------------
    95 dnl ---------------------------------------------------------------------
    96 dnl Checks for libraries.
    96 dnl Checks for libraries.
    97 dnl ---------------------------------------------------------------------
    97 dnl ---------------------------------------------------------------------
    98 
       
    99 dnl !!! FIXME: Not sure how to detect this...
       
   100 dnl check for 64-bit llseek()...
       
   101 dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
       
   102 if test x$have_llseek = xyes; then
       
   103   AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
       
   104 fi
       
   105 
       
   106 dnl BSD systems use sys/ucred.h for getting mounted volumes.
       
   107 dnl Linux and others use mntent.h.
       
   108 AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
       
   109 if test x$have_ucred_hdr = xyes; then
       
   110   AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
       
   111 fi
       
   112 
       
   113 AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
       
   114 if test x$have_mntent_hdr = xyes; then
       
   115   AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
       
   116 fi
       
   117 
       
   118 
    98 
   119 require_zlib="no"
    99 require_zlib="no"
   120 
   100 
   121 dnl Check for zip archiver inclusion...
   101 dnl Check for zip archiver inclusion...
   122 AC_ARG_ENABLE(zip,
   102 AC_ARG_ENABLE(zip,
   205       LIBS="$LIBS -lreadline -lcurses"
   185       LIBS="$LIBS -lreadline -lcurses"
   206     fi
   186     fi
   207   fi
   187   fi
   208 fi
   188 fi
   209 
   189 
       
   190 dnl !!! FIXME: Not sure how to detect this...
       
   191 dnl check for 64-bit llseek()...
       
   192 dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
       
   193 if test x$have_llseek = xyes; then
       
   194   AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
       
   195 fi
       
   196 
       
   197 enable_cdrom=no
   210 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.
   211 dnl AC_ARG_ENABLE(cdrom,
   199 dnl AC_ARG_ENABLE(cdrom,
   212 dnl [  --enable-cdrom             try standard CD-ROM support [default=yes]],
   200 dnl [  --enable-cdrom             try standard CD-ROM support [default=yes]],
   213 dnl               , enable_cdrom=yes)
   201 dnl               , enable_cdrom=yes)
   214 enable_cdrom=yes
   202 
       
   203 
       
   204 dnl BSD systems use sys/ucred.h for getting mounted volumes.
       
   205 dnl Linux and others use mntent.h.
       
   206 AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
       
   207 if test x$have_ucred_hdr = xyes; then
       
   208   AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
       
   209   enable_cdrom=yes
       
   210 fi
       
   211 
       
   212 AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
       
   213 if test x$have_mntent_hdr = xyes; then
       
   214   AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
       
   215   enable_cdrom=yes
       
   216 fi
   215 
   217 
   216 
   218 
   217 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   219 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   218 AC_MSG_CHECKING([if this is BeOS])
   220 AC_MSG_CHECKING([if this is BeOS])
   219 if test x$build_os = xbeos; then
   221 if test x$build_os = xbeos; then