-AC_SUBST(YAZ_CONFIG_CFLAGS)
-dnl ------ GNU threads
-HAVETHREADS=0
-AC_ARG_ENABLE(pth, [ --enable-pth enable GNU threads],[enable_pth=$enableval],[enable_pth=no])
-AC_SUBST(LIBPTH)
-if test "$enable_pth" = "yes"; then
- PTH_LIBS=""
- OLIBS=$LIBS
- AC_CHECK_LIB(pth,main)
- if test "$ac_cv_lib_pth_main" = "yes"; then
- AC_CHECK_HEADERS(pth.h)
- if test "$ac_cv_header_pth_h" = "yes"; then
- PTH_LIBS="-lpth"
- CFLAGS="$CFLAGS -DYAZ_GNU_THREADS=1"
- HAVETHREADS=1
- fi
- fi
- LIBS="$OLIBS $PTH_LIBS"
-fi