-#line 3075 "configure"
+#line 3104 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
; return 0; }
EOF
-if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_rint=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
-echo "configure:3119: checking for rint in -lm" >&5
+echo "configure:3148: checking for rint in -lm" >&5
ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <
-#line 3127 "configure"
+#line 3156 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
rint()
; return 0; }
EOF
-if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
AC_STRUCT_TM
dnl Check for any "odd" conditions
+AC_MSG_CHECKING(for int timezone)
AC_TRY_LINK([#include ],
- [int res = timezone / 60; ], AC_DEFINE(HAVE_INT_TIMEZONE))
+ [int res = timezone / 60; ],
+ [AC_DEFINE(HAVE_INT_TIMEZONE), AC_MSG_RESULT(yes)],
+ AC_MSG_RESULT(no))
+
+AC_MSG_CHECKING(for union semun)
+AC_TRY_LINK([#include
+#include ],
+ [union semun semun;],
+ [AC_DEFINE(HAVE_UNION_SEMUN) AC_MSG_RESULT(yes)],
+ AC_MSG_RESULT(no))
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
/* Set to 1 if you have libhistory.a */
#undef HAVE_LIBHISTORY
+/* Set to 1 if you have union semun */
+#undef HAVE_UNION_SEMUN
+
/*
* Code below this point should not require changes
*/
#if defined(aix)
# define CLASS_CONFLICT
# define DISABLE_XOPEN_NLS
-# define NEED_UNION_SEMUN
# define HAVE_SYS_SELECT_H
# define HAVE_ANSI_CPP
# define HAS_TEST_AND_SET
# define USE_POSIX_SIGNALS
# define DISABLE_XOPEN_NLS
# define HAS_LONG_LONG
-# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
# include /* for msemaphore */
typedef msemaphore slock_t;
# if defined(sparc)
# define NEED_SPARC_TAS_ASM
# endif
-# if defined(PRE_BSDI_2_1)
-# define NEED_UNION_SEMUN
-# endif
# define USE_POSIX_TIME
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#if defined(dgux)
# define LINUX_ELF
-# define NEED_UNION_SEMUN
# define USE_POSIX_SIGNALS
#endif
#if defined(hpux)
# define JMP_BUF
# define USE_POSIX_TIME
-# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
typedef struct { int sem[4]; } slock_t;
#endif
# define USE_POSIX_SIGNALS
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
-# define NEED_UNION_SEMUN
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
typedef struct mutex slock_t;
#endif
-#if defined(sequent)
-# define NEED_UNION_SEMUN
-#endif
-
#if defined(sparc_solaris)
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define USE_POSIX_TIME
-# define NEED_UNION_SEMUN
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
# define USE_POSIX_SIGNALS
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
-# define NEED_UNION_SEMUN
# define SYSV_DIRENT
#endif
# define NO_UNISTD_H
# define USES_WINSOCK
# define NOFILE 100
-# define NEED_UNION_SEMUN
# ifndef MAXPATHLEN
# define MAXPATHLEN 250
# endif
#if defined(ultrix4)
# define USE_POSIX_TIME
-# define NEED_UNION_SEMUN
# define NEED_STRDUP
#endif
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: ipc.h,v 1.13 1997/01/26 20:15:26 momjian Exp $
+ * $Id: ipc.h,v 1.14 1997/02/06 05:30:50 scrappy Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
#endif /* HAS_TEST_AND_SET */
-#ifdef NEED_UNION_SEMUN
+#ifndef HAVE_UNION_SEMUN
union semun {
int val;
struct semid_ds *buf;