aboutsummaryrefslogtreecommitdiff
path: root/gdb/aclocal.m4
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1997-11-20 12:20:39 +0000
committerGeoffrey Noer <noer@cygnus>1997-11-20 12:20:39 +0000
commit98fa4ade2c626a10a51e98ff884f60a6af4c8d0d (patch)
tree62e1539518c89dacb0819b5c2c2a070acef641ed /gdb/aclocal.m4
parent232156dee9f4c303e3ab320a5cb8a868ece8b0f4 (diff)
downloadgdb-98fa4ade2c626a10a51e98ff884f60a6af4c8d0d.zip
gdb-98fa4ade2c626a10a51e98ff884f60a6af4c8d0d.tar.gz
gdb-98fa4ade2c626a10a51e98ff884f60a6af4c8d0d.tar.bz2
Thu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
* aclocal.m4: add EXEEXT setting rule * configure.in: call it * configure: regenerate * Makefile.in: pepper with EXEEXTs in appropriate places, set SHELL = @SHELL@ for those lame hosts that don't have a /bin/sh
Diffstat (limited to 'gdb/aclocal.m4')
-rw-r--r--gdb/aclocal.m445
1 files changed, 45 insertions, 0 deletions
diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
index 0c00e52..a92f7b1 100644
--- a/gdb/aclocal.m4
+++ b/gdb/aclocal.m4
@@ -528,3 +528,48 @@ fi
AC_SUBST(TIXHDIR)
])
+dnl aclocal.m4 generated automatically by aclocal 1.2
+
+# Check to see if we're running under Cygwin32, without using
+# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
+# Otherwise set it to "no".
+
+dnl AM_CYGWIN32()
+AC_DEFUN(AM_CYGWIN32,
+[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
+[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
+am_cv_cygwin32=yes, am_cv_cygwin32=no)
+rm -f conftest*])
+CYGWIN32=
+test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
+
+# Check to see if we're running under Win32, without using
+# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
+# Otherwise set it to "".
+
+dnl AM_EXEEXT()
+dnl This knows we add .exe if we're building in the Cygwin32
+dnl environment. But if we're not, then it compiles a test program
+dnl to see if there is a suffix for executables.
+AC_DEFUN(AM_EXEEXT,
+dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
+AC_MSG_CHECKING([for executable suffix])
+[AC_CACHE_VAL(am_cv_exeext,
+[if test "$CYGWIN32" = yes; then
+am_cv_exeext=.exe
+else
+cat > am_c_test.c << 'EOF'
+int main() {
+/* Nothing needed here */
+}
+EOF
+${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
+am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
+rm -f am_c_test*])
+test x"${am_cv_exeext}" = x && am_cv_exeext=no
+fi
+EXEEXT=""
+test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
+AC_MSG_RESULT(${am_cv_exeext})
+AC_SUBST(EXEEXT)])
+