/[cvs]/eggdrop1.9/configure.in
ViewVC logotype

Diff of /eggdrop1.9/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7 by fabian, Thu Oct 21 19:22:58 1999 UTC revision 1.8 by fabian, Tue Oct 26 21:38:35 1999 UTC
# Line 351  fi Line 351  fi
351    
352  dnl check how much space is left in filedb (informational purposes)  dnl check how much space is left in filedb (informational purposes)
353  AC_MSG_CHECKING(space left in file database struct)  AC_MSG_CHECKING(space left in file database struct)
354    if eval "test \"`echo '$''{'ac_cv_var_filedb_struct'+set}'`\" = set"
355  cat > abacab.c << 'EOF'  then
356      echo $ac_n "(cached) $ac_c" 1>&6
357    else
358      cat > conftest.$ac_ext << EOF
359    #include "confdefs.h"
360  #include <stdio.h>  #include <stdio.h>
361  #include <sys/time.h>  #include <sys/time.h>
362  #include "src/mod/filesys.mod/files.h"  #include "src/mod/filesys.mod/files.h"
363  main() {  int main() {
364    fprintf(stdout, "%d/%d\n", 512 - sizeof(struct filler), sizeof(filedb));    fprintf(stdout, "%d/%d %s\n", 512 - sizeof(struct filler), sizeof(filedb), "bytes");
365  }  }
366  EOF  EOF
367      if { (eval echo configure: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}
368  ${CC} -o abacab${EXEEXT} abacab.c    then
369  FILEDB_SPACE=`./abacab${EXEEXT}`      ac_cv_var_filedb_struct=`./conftest${ac_exeext}`
370  AC_MSG_RESULT($FILEDB_SPACE bytes)      rm -rf conftest*
371  rm -f abacab${EXEEXT} abacab.o abacab.c    else
372        echo "configure: failed program was:" >&5
373        cat conftest.$ac_ext >&5
374        ac_cv_var_filedb_struct=unknown
375        rm -rf conftest*
376      fi
377      rm -f conftest*
378    fi
379    AC_MSG_RESULT($ac_cv_var_filedb_struct)
380  AC_MSG_RESULT([   (standard is currently 48/512 bytes)])  AC_MSG_RESULT([   (standard is currently 48/512 bytes)])
381    
382  dnl where is tcl?  is it here?  dnl where is tcl?  is it here?
# Line 661  then Line 673  then
673    AC_MSG_RESULT(not found)    AC_MSG_RESULT(not found)
674  fi  fi
675    
676  # done looking, now either TCLLIBFN & TCLINCFN are both set, or we will bail  # done looking, now either TCLLIBFN & TCLINCFN are both set, or we bail
677  if test ! "x${TCLLIBFN}" = "x" && test ! "x${TCLINCFN}" = "x"  if test ! "x${TCLLIBFN}" = "x" && test ! "x${TCLINCFN}" = "x"
678  then  then
679    # is this really Tcl ?  
680      # find Tcl's version
681      TCL_PATCH_LEVEL=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
682      if test ! "x${TCL_PATCH_LEVEL}" = "x"
683      then
684        TCL_VERSION=$TCL_PATCH_LEVEL
685      else
686    TCL_VERSION=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`    TCL_VERSION=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
687  fi  fi
688    fi
689    
690  # check Tcl version  # check if we found Tcl's version
691  AC_MSG_CHECKING(for Tcl version)  AC_MSG_CHECKING(for Tcl version)
692  if test ! "x${TCL_VERSION}" = "x"  if test ! "x${TCL_VERSION}" = "x"
693  then  then
# Line 787  configure: warning: Line 806  configure: warning:
806    
807  EOF  EOF
808    AC_DEFINE(HAVE_BUGGY_TCL_THREADS)    AC_DEFINE(HAVE_BUGGY_TCL_THREADS)
809    
810      # add -lpthread to $LIBS if we have it
811      if test "x${ac_cv_lib_pthread_pthread_create}" = "xyes"
812      then
813        LIBS="-lpthread $LIBS"
814      fi
815  else  else
816    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
817  fi  fi
# Line 839  EOF Line 864  EOF
864    fi    fi
865  fi  fi
866    
 # add -lpthread to $LIBS if we need it  
 if test "x${ac_cv_var_tcl_threads}" = "xyes" && test "x${ac_cv_lib_pthread_pthread_create}" = "xyes"  
 then  
   LIBS="-lpthread $LIBS"  
 fi  
   
867  AC_SUBST(TCLLIB)  AC_SUBST(TCLLIB)
868  AC_SUBST(TCLLIBFN)  AC_SUBST(TCLLIBFN)
869  AC_SUBST(TCLINC)  AC_SUBST(TCLINC)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23