AC_PROG_INSTALL
AC_PROG_LN_S
+OS=`uname -s`
+if test $OS = "IRIX" -o $OS = "IRIX64"; then
+ if text $CC = "CC"; then
+ AR="CC -ar"
+ else
+ AR="ar"
+ fi
+else
+ AR="ar"
+fi
+AC_SUBST(AR)
+
if echo $includedir | egrep "simgear$" > /dev/null; then
echo "includedir is" $includedir "libdir is" $libdir
else
compiler.h constants.h sg_inlines.h sg_traits.hxx sg_zlib.h version.h
SUBDIRS = \
+ $(ZLIB_DIRS) \
bucket \
debug \
ephemeris \
sky \
$(SGTHREAD_DIR) \
timing \
- xgl \
- $(ZLIB_DIRS)
+ xgl
+
#include <stdlib.h> // atof() atoi()
+#include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/xml/easyxml.hxx>
int index = 0;
if (att_n != 0) {
index = atoi(att_n);
- st.counters[name] = max(st.counters[name], index+1);
+ st.counters[name] = SG_MAX2(st.counters[name], index+1);
} else {
index = st.counters[name];
st.counters[name]++;
#ifndef SGTHREAD_HXX_INCLUDED
#define SGTHREAD_HXX_INCLUDED 1
+#include <simgear/compiler.h>
+
#include <pthread.h>
-#include <cassert>
-#include <cerrno>
+#if defined ( SG_HAVE_STD_INCLUDES )
+# include <cassert>
+# include <cerrno>
+#else
+# include <assert.h>
+# include <sys/errno.h>
+#endif
class SGThread;