Changeset 702

Show
Ignore:
Timestamp:
02/18/08 10:10:17 (9 months ago)
Author:
dormando
Message:

add compiler options for Sun Studio compilers with --enable-threads (Trond Norbye)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/configure.ac

    r668 r702  
    165165  if test "x$ac_cv_search_pthread_create" != "xno"; then 
    166166    AC_DEFINE([USE_THREADS],,[Define this if you want to use pthreads]) 
     167    dnl Sun compilers need the -mt flag! 
     168    AC_RUN_IFELSE( 
     169      [AC_LANG_PROGRAM([], [dnl 
     170#ifdef __SUNPRO_C 
     171   return 0; 
     172#else 
     173   return 1; 
     174#endif 
     175      ]) 
     176    ],[ 
     177      CFLAGS="-mt $CFLAGS" 
     178    ]) 
    167179  else 
    168180    AC_MSG_ERROR([Can't enable threads without the POSIX thread library.])