dnl See if host has libm. This is usually needed by simulators.
AC_CHECK_LIB(m, main)
+dnl Solaris puts wctype in /usr/lib/libw.a before Solaris 2.6.
+dnl
+dnl A bug in GNU ld 2.9.1 causes a problem if we link in -lw
+dnl under Solaris 2.6 because it is some funky empty library.
+dnl So only link in libw if we have to.
+AC_CHECK_LIB(c, wctype,: ,AC_CHECK_LIB(w, wctype))
+
dnl See if compiler supports "long long" type.
AC_MSG_CHECKING(for long long support in compiler)
CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
fi
-AC_ARG_ENABLE(warnings,
-[ --enable-build-warnings Enable compiler warnings if gcc is used],
-[case "${enableval}" in
-yes) enable_build_warnings=yes ;;
-no) enable_build_warnings=no ;;
-*) AC_MSG_ERROR(bad value ${enableval} given for warnings options) ;;
-esac])
-
-if test "x$enable_build_warnings" = xyes -a "x$GCC" = xyes
+AC_ARG_ENABLE(build-warnings,
+[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
+[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
+case "${enableval}" in
+ yes) ;;
+ no) build_warnings="-w";;
+dnl ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl build_warnings="${build_warnings} ${t}";;
+dnl *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl build_warnings="${t} ${build_warnings}";;
+dnl *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
+ *) ;;
+esac],[build_warnings=""])dnl
+
+if test "x${build_warnings}" != x -a "x$GCC" = xyes
then
- WARN_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
+ WARN_CFLAGS="${build_warnings}"
else
WARN_CFLAGS=""
fi
AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
esac],
[
-# Default is on for everything but go32 and cygwin32
+# Default is on for everything but go32 and Cygwin
case "$host" in
*go32* | *windows*)
;;
esac
])
-# In the cygwin32 environment, we need some additional flags.
+# In the Cygwin environment, we need some additional flags.
AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32,
[AC_EGREP_CPP(lose, [
#ifdef __CYGWIN32__
TIXVERSION=4.1.8.0
. ${ac_cv_c_tclconfig}/tclConfig.sh
case "${host}" in
- *-*-cygwin32*)
+ *-*-cygwin*)
tixdir=../tix/win/tcl8.0
;;
*)
AC_ARG_WITH(sim-gpu2,
[ --with-sim-gpu2=DIR Use GPU2 library under given DIR],
[case "${target}" in
- mips*-sky-*)
+ mips*-sky*-*)
if test -d "${withval}"
then
LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
AC_ARG_WITH(sim-funit,
[ --with-sim-funit=DIR Use target FP lib under given DIR],
[case "${target}" in
- mips*-sky-*)
+ mips*-sky*-*)
if test -d "${withval}"
then
LIBS="${LIBS} -L${withval}/lib -lfunit"
esac])dnl
# end-sanitize-sky
-dnl Solaris puts wctype in /usr/lib/libw.a
-AC_CHECK_LIB(w, wctype, [LIBS="$LIBS -lw"])
-
AC_SUBST(ENABLE_CFLAGS)
AC_SUBST(CONFIG_OBS)
AC_LINK_FILES($files, $links)
dnl Check for exe extension set on certain hosts (e.g. Win32)
-AM_EXEEXT
+AC_EXEEXT
AC_CONFIG_SUBDIRS($configdirs)
AC_OUTPUT(Makefile .gdbinit:gdbinit.in,