+AC_DEFUN([PSI_CONFIG_POSIX_PARALLEL], [
+ (
+ dnl setup
+ mkdir $PSI_CONFIG_TMP/AS_TR_SH([$1])
+ ln -s $(pwd)/confdefs.h $PSI_CONFIG_TMP/AS_TR_SH([$1])/confdefs.h
+
+ dnl restore stdio
+ exec 66>&AS_MESSAGE_FD
+ exec AS_MESSAGE_FD>$PSI_CONFIG_TMP/AS_TR_SH([$1])/stdout.log
+ exec 2>$PSI_CONFIG_TMP/AS_TR_SH([$1])/stderr.log
+
+ dnl check for headers?
+ ifelse([$2],,:,[AC_CHECK_HEADERS($2)])
+
+ dnl chaway
+ cd $PSI_CONFIG_TMP/AS_TR_SH([$1])
+
+ dnl run checks
+ AS_TR_CPP([PSI_CHECK_$1])
+
+ dnl save libs
+ cat >$PSI_CONFIG_TMP/AS_TR_SH([$1])/conf.env <<EOF
+LIBS="$LIBS \$LIBS"
+EOF
+ dnl done
+ printf "%s " "$1" >&66
+ ) &
+])
+