* configure.in configure (HPUX/OSF thread support): Enable this

only when running GCC, since HP's thread header files use ANSI C
	which is not supported by their default compiler.
This commit is contained in:
Stu Grossman
1997-02-27 18:09:22 +00:00
parent 22395d7ed4
commit c4c9112ad8
3 changed files with 32 additions and 20 deletions

View File

@ -177,9 +177,13 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
hpux*)
AC_MSG_CHECKING(for HPUX/OSF thread support)
if test -f /usr/include/dce/cma_config.h ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
if test "$GCC" = "yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
else
AC_MSG_RESULT(no (suppressed because you are not using GCC))
fi
else
AC_MSG_RESULT(no)
fi