FreeBSD configure updates
This commit is contained in:
parent
1130039d19
commit
ac2c3a7253
18
configure.in
18
configure.in
@ -84,23 +84,19 @@ if test "$SYSTEM" = "NetBSD"; then
|
||||
LDFLAGS="$LDFLAGS `pthread-config --ldflags`"
|
||||
fi
|
||||
|
||||
|
||||
dnl
|
||||
dnl For FreeBSD we need -pthread for GCC
|
||||
dnl For FreeBSD we need -pthread for gcc and don't need libpthread
|
||||
dnl
|
||||
if test "$SYSTEM" = "FreeBSD"; then
|
||||
CFLAGS="-pthread $CFLAGS"
|
||||
fi
|
||||
|
||||
|
||||
dnl
|
||||
dnl POSIX threads
|
||||
dnl
|
||||
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
||||
if test "$result" = "yes"; then
|
||||
else
|
||||
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
||||
if test "$result" = "yes"; then
|
||||
LIBS="$LIBS -lpthread"
|
||||
fi
|
||||
fi
|
||||
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
||||
|
||||
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
||||
|
||||
|
||||
dnl
|
||||
|
@ -24,7 +24,7 @@ OTHER = Makefile issue issue.netbsd
|
||||
all: mbtask
|
||||
|
||||
mbtask: ${OBJS} ${LIBS}
|
||||
${CC} -o mbtask ${OBJS} ${LIBS}
|
||||
${CC} ${CFLAGS} -o mbtask ${OBJS} ${LIBS}
|
||||
|
||||
clean:
|
||||
rm -f mbtask *.o *.h~ *.c~ version.* core filelist Makefile.bak
|
||||
|
Reference in New Issue
Block a user