dnl needed for making link to setup.h
AC_PROG_LN_S
+dnl lndir can be used by "make dist" to save copying files
+CP_PR='cp -pR'
+AC_CHECK_PROGS(LNDIR, lndir, [$CP_PR])
+AC_SUBST(CP_PR)
+
+
dnl ------------------------------------------------------------------------
dnl Platform specific tests
dnl ------------------------------------------------------------------------
$CXX -dumpspecs | grep 'pthread:' >/dev/null ||
THREAD_OPTS=""
else
- dnl HP-UX aCC only gives a warning, not an error about
- dnl -pthread but it doesn't work and we have to use
- dnl -lpthread there
- THREAD_OPTS=""
+ dnl HP-UX aCC (tested with version B3910B A.06.05 [Jul 25
+ dnl 2005]) supports -mt
+ THREAD_OPTS="-mt"
fi
;;
elif test "$GXX" = yes ; then
dnl CXXWARNINGS="-Wall -W -Wcast-qual -Werror"
CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
+
+ dnl -Wno-format is a terrifically useful warning, however mingw warns
+ dnl whenever the I64 format specifier is used for long long.
+ dnl FIXME: it we detected when cygwin is using -mno-cygwin we could avoid
+ dnl disabling it for cygwin.
+ case "${host}" in
+ *-*-cygwin* | *-*-mingw32* )
+ CXXWARNINGS="$CXXWARNINGS -Wno-format"
+ esac
fi
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"