Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -15401,6 +15401,12 @@ LIBS=${ac_save_libs}
LDFLAGS=${ac_save_ldflags}


if test -n "$PTHREADLIB" ; then

printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h

fi

fi # $USE_PTHREAD


Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,10 @@ LOC_CHECK_FUNC(pthread_create,POSIX threads functions,PTHREADLIB,,,,,[
LOC_CHECK_LIBS(pthread,pthread_create,POSIX threads,$PTHREADLIBPATH,PTHREADLIB,,,)
])

if test -n "$PTHREADLIB" ; then
AC_DEFINE(HAVE_PTHREAD, 1, [Define to 1 if POSIX threads are available.])
fi

fi # $USE_PTHREAD

AC_SUBST(PTHREADINCPATH)
Expand Down
3 changes: 3 additions & 0 deletions include/grass/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
/* Define to 1 if you have the <proj.h> header file. */
#undef HAVE_PROJ_H

/* Define to 1 if POSIX threads are available. */
#undef HAVE_PTHREAD

/* Define to 1 if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H

Expand Down
Loading