CMakeLists.txt
changeset 990 c25717b5c165
parent 989 70132355a297
child 991 9748fd040468
equal deleted inserted replaced
989:70132355a297 990:c25717b5c165
   167         IF(HAVE_MNTENT_H)
   167         IF(HAVE_MNTENT_H)
   168             ADD_DEFINITIONS(-DPHYSFS_HAVE_MNTENT_H=1)
   168             ADD_DEFINITIONS(-DPHYSFS_HAVE_MNTENT_H=1)
   169             SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
   169             SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
   170         ENDIF(HAVE_MNTENT_H)
   170         ENDIF(HAVE_MNTENT_H)
   171 
   171 
       
   172         # !!! FIXME: Solaris fails this, because mnttab.h implicitly
       
   173         # !!! FIXME:  depends on other system headers.  :(
       
   174         #CHECK_INCLUDE_FILE(sys/mnttab.h HAVE_SYS_MNTTAB_H)
       
   175         CHECK_C_SOURCE_COMPILES("
       
   176             #include <stdio.h>
       
   177             #include <sys/mnttab.h>
       
   178             int main(int argc, char **argv) { return 0; }
       
   179         " HAVE_SYS_MNTTAB_H)
       
   180 
       
   181         IF(HAVE_SYS_MNTTAB_H)
       
   182             ADD_DEFINITIONS(-DPHYSFS_HAVE_SYS_MNTTAB_H=1)
       
   183             SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
       
   184         ENDIF(HAVE_SYS_MNTTAB_H)
       
   185 
   172         CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
   186         CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
   173         IF(HAVE_PTHREAD_H)
   187         IF(HAVE_PTHREAD_H)
   174             SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
   188             SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
   175         ELSE(HAVE_PTHREAD_H)
   189         ELSE(HAVE_PTHREAD_H)
   176             ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1)
   190             ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1)