Branch: Tag:

1998-02-27

1998-02-27 17:08:46 by Marcus Comstedt <marcus@mc.pp.se>

Changes for BSDi. Didn't I commit these already? Apparently not...

Rev: src/Makefile.in:1.62
Rev: src/configure.in:1.161

1: - AC_REVISION("$Id: configure.in,v 1.160 1998/02/27 08:39:15 hubbe Exp $") + AC_REVISION("$Id: configure.in,v 1.161 1998/02/27 17:08:44 marcus Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
156:   ])   AC_MSG_RESULT($pike_cv_sys_os)    + LD='$(CC)' +    case "$pike_cv_sys_os" in    SCO*)    case "$CFLAGS" in
173:    ;;    esac    ;; +  BSD/OS*) +  LD="$BINDIR/smartlink shlicc" +  ;;   esac    -  + AC_SUBST(LD) +    #############################################################################      
359:      echo Searching for include-file directories...   if test $cppflags_is_set = no -a x${C_INCLUDE_PATH-} = x ; then -  for d in /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware +  for d in `echo $prefix | sed "s@^NONE@$ac_default_prefix@g"` /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware    do    AC_MSG_CHECKING($d/include)    if test -d "$d/include/." ; then
375:      echo Searching for library directories...   if test $ldflags_is_set = no ; then -  for d in /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware +  for d in `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$ac_default_prefix@g"` /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware    do    AC_MSG_CHECKING($d/lib)    if test -d "$d/lib/." ; then
390:   fi      echo Searching for binary directories... - for d in "" /usr /usr/ccs /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware + for d in `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$ac_default_prefix@g"` "" /usr /usr/ccs /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu /sw /usr/freeware   do    AC_MSG_CHECKING($d/bin)    if test -d "$d/bin/." ; then
763:    LIBS="${OLDLIBS} -lpthread -lmach -lexc -lc"    ;;    +  xBSD/OS*) +  LIBS="${OLDLIBS}" +  ;; +     *)    LIBS="${OLDLIBS} -lpthread"    ;;    esac       AC_CHECK_FUNCS(pthread_init) -  +  AC_CHECK_FUNCS(pthread_mutexattr_init)       AC_MSG_CHECKING(posix threads)   
791:   #ifdef HAVE_PTHREAD_INIT    pthread_init();   #endif /* HAVE_PTHREAD_INIT */ + #ifdef HAVE_PTHREAD_MUTEXATTR_INIT    pthread_mutexattr_init(&attr); -  + #else +  memset(&attr, 0, sizeof(attr)); + #endif /* HAVE_PTHREAD_MUTEXATTR_INIT    pthread_mutex_init(&tmp, &attr);    pthread_mutex_lock(&tmp);    pthread_create(&gazonk,0,foo,0);
1840:    FreeBSD*) LDSHARED="ld -Bshareable";;    NetBSD) LDSHARED="ld -Bshareable";;    OpenBSD*) LDSHARED="ld -Bshareable";; +  BSD/OS*) LDSHARED="shlicc -r";;    SCO_SV*) LDSHARED="cc -G -KPIC -Wl,-Bexport";;    UNIX_SV) LDSHARED="ld -G";;    Windows_NT*) LDSHARED="$CC -shared";;
1853:   AC_MSG_CHECKING(CCSHARED)   if test -z "$CCSHARED" ; then    if test "$GCC" = yes ; then -  CCSHARED="-fpic" +  case $pike_cv_sys_os in +  BSD/OS*) CCSHARED="";; +  *) CCSHARED="-fpic";; +  esac    else    case $pike_cv_sys_os in    hp*|HP*) CCSHARED="+z"; ;;
1933:       OLD_CFLAGS="$CFLAGS"    CFLAGS="$CFLAGS $LINKFORSHARED" +  OLD_CC="$CC" +  case "$LD" in +  *shlicc) CC="$BINDIR/smartlink shlicc";; +  esac    AC_TRY_RUN([   #define TESTING   #include "$srcdir/dynamic_load.c"   void testfunc2(void) { exit(0); }   ], pike_cv_sys_dynamic_loading=yes, pike_cv_sys_dynamic_loading=no, pike_cv_sys_dynamic_loading=no)    CFLAGS="$OLD_CFLAGS" -  +  CC="$OLD_CC"    else    pike_cv_sys_dynamic_loading=no    fi