* configure.in: Check for setpgid function.

* config.in: Regenerate with autoheader.
	* configure: Regenerate with autoconf.
	* inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
	if it is actually defined.
	(gdb_setpgid): Use HAVE_SETPGID.
	* ch-exp.c: Change include of <string.h> to "gdb_string.h".
	* c-exp.y: Ditto.
	* f-exp.y: Ditto.
	* m2-exp.y: Ditto.
	* c-exp.y: Include <ctype.h>.
	* serial.c: Ditto.
	* config/m68k/nm-news.h: Add typedef for pid_t which is
	apparently missing from <sys/types.h>.  Enclose entire
	file in NM_NEWS_H ifndef and define when included.
	* config/mips/nm-news-mips.h: Ditto.
	* config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
	REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
This commit is contained in:
Fred Fish 1996-04-05 04:22:08 +00:00
parent ab1aa5cd6c
commit 72ae15f6b0
12 changed files with 147 additions and 53 deletions

View file

@ -1,3 +1,24 @@
Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
* configure.in: Check for setpgid function.
* config.in: Regenerate with autoheader.
* configure: Regenerate with autoconf.
* inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
if it is actually defined.
(gdb_setpgid): Use HAVE_SETPGID.
* ch-exp.c: Change include of <string.h> to "gdb_string.h".
* c-exp.y: Ditto.
* f-exp.y: Ditto.
* m2-exp.y: Ditto.
* c-exp.y: Include <ctype.h>.
* serial.c: Ditto.
* config/m68k/nm-news.h: Add typedef for pid_t which is
apparently missing from <sys/types.h>. Enclose entire
file in NM_NEWS_H ifndef and define when included.
* config/mips/nm-news-mips.h: Ditto.
* config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com> Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
* arm-xdep.c: Move native-specific code to here from arm-tdep.c. * arm-xdep.c: Move native-specific code to here from arm-tdep.c.

View file

@ -38,7 +38,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
%{ %{
#include "defs.h" #include "defs.h"
#include <string.h> #include "gdb_string.h"
#include <ctype.h>
#include "expression.h" #include "expression.h"
#include "value.h" #include "value.h"
#include "parser-defs.h" #include "parser-defs.h"

View file

@ -44,7 +44,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
*/ */
#include "defs.h" #include "defs.h"
#include <string.h> #include "gdb_string.h"
#include <ctype.h> #include <ctype.h>
#include "expression.h" #include "expression.h"
#include "language.h" #include "language.h"

View file

@ -41,6 +41,9 @@
/* Define if you have the getpagesize function. */ /* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE #undef HAVE_GETPAGESIZE
/* Define if you have the setpgid function. */
#undef HAVE_SETPGID
/* Define if you have the valloc function. */ /* Define if you have the valloc function. */
#undef HAVE_VALLOC #undef HAVE_VALLOC

View file

@ -1,5 +1,5 @@
/* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger. /* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger.
Copyright 1987, 1989, 1992 Free Software Foundation, Inc. Copyright 1987, 1989, 1992, 1996 Free Software Foundation, Inc.
This file is part of GDB. This file is part of GDB.
@ -17,4 +17,10 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* This file intentionally empty. */ #ifndef NM_HEWS_H
#define NM_NEWS_H 1
/* Supply missing typedef needed in inftarg.c */
typedef int pid_t;
#endif /* NM_NEWS_H */

View file

@ -156,9 +156,9 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
{ \ { \
double val; \ double dbl_tmp_val; \
floatformat_to_double (&floatformat_m68881_ext, (FROM), &val); \ floatformat_to_double (&floatformat_m68881_ext, (FROM), &dbl_tmp_val); \
store_floating ((TO), TYPE_LENGTH (TYPE), val); \ store_floating ((TO), TYPE_LENGTH (TYPE), dbl_tmp_val); \
} }
/* Convert data from virtual format with type TYPE in buffer FROM /* Convert data from virtual format with type TYPE in buffer FROM
@ -166,8 +166,8 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
{ \ { \
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ double dbl_tmp_val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
floatformat_from_double (&floatformat_m68881_ext, &val, (TO)); \ floatformat_from_double (&floatformat_m68881_ext, &dbl_tmp_val, (TO)); \
} }
/* Return the GDB type object for the "standard" data type /* Return the GDB type object for the "standard" data type

View file

@ -19,6 +19,9 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef NM_NEWS_MIPS_H
#define NM_NEWS_MIPS_H 1
/* Needed for RISC NEWS core files. */ /* Needed for RISC NEWS core files. */
#include <machine/machparam.h> #include <machine/machparam.h>
#include <sys/types.h> #include <sys/types.h>
@ -32,3 +35,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define ONE_PROCESS_WRITETEXT #define ONE_PROCESS_WRITETEXT
#include "mips/nm-mips.h" #include "mips/nm-mips.h"
/* Apparently not in <sys/types.h> */
typedef int pid_t;
#endif /* NM_NEWS_MIPS_H */

136
gdb/configure vendored
View file

@ -1282,12 +1282,64 @@ EOF
fi fi
for ac_func in setpgid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1293 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
char $ac_func();
int main() { return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
; return 0; }
EOF
if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1291 "configure" #line 1343 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/procfs.h> #include <sys/procfs.h>
int main() { return 0; } int main() { return 0; }
@ -1295,7 +1347,7 @@ int t() {
gregset_t *gregsetp = 0 gregset_t *gregsetp = 0
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
gdb_cv_have_gregset_t=yes gdb_cv_have_gregset_t=yes
else else
@ -1319,7 +1371,7 @@ if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1323 "configure" #line 1375 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/procfs.h> #include <sys/procfs.h>
int main() { return 0; } int main() { return 0; }
@ -1327,7 +1379,7 @@ int t() {
fpregset_t *fpregsetp = 0 fpregset_t *fpregsetp = 0
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
gdb_cv_have_fpregset_t=yes gdb_cv_have_fpregset_t=yes
else else
@ -1352,7 +1404,7 @@ if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1356 "configure" #line 1408 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -1360,7 +1412,7 @@ int t() {
long double foo; long double foo;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_long_double=yes ac_cv_c_long_double=yes
else else
@ -1388,7 +1440,7 @@ else
gdb_cv_printf_has_long_double=no gdb_cv_printf_has_long_double=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1392 "configure" #line 1444 "configure"
#include "confdefs.h" #include "confdefs.h"
int main () { int main () {
@ -1398,7 +1450,7 @@ int main () {
return (strncmp ("3.14159", buf, 7)); return (strncmp ("3.14159", buf, 7));
} }
EOF EOF
{ (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
gdb_cv_printf_has_long_double=yes gdb_cv_printf_has_long_double=yes
else else
@ -1423,7 +1475,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1427 "configure" #line 1479 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
@ -1445,7 +1497,7 @@ $ac_func();
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
@ -1475,7 +1527,7 @@ else
ac_cv_func_mmap=no ac_cv_func_mmap=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1479 "configure" #line 1531 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test. */ /* Thanks to Mike Haertel and Jim Avera for this test. */
@ -1544,7 +1596,7 @@ main()
} }
EOF EOF
{ (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_func_mmap=yes ac_cv_func_mmap=yes
else else
@ -1712,12 +1764,12 @@ if test "$ac_x_includes" = NO; then
# First, try using that file with no special directory specified. # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1716 "configure" #line 1768 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$x_direct_test_include> #include <$x_direct_test_include>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:1773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -1784,7 +1836,7 @@ if test "$ac_x_libraries" = NO; then
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS" LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1788 "configure" #line 1840 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -1792,7 +1844,7 @@ int t() {
${x_direct_test_function}() ${x_direct_test_function}()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:1848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"
# We can link X programs with no special library path. # We can link X programs with no special library path.
@ -1913,7 +1965,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lICE $LIBS" LIBS="-lICE $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1917 "configure" #line 1969 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -1921,7 +1973,7 @@ int t() {
IceConnectionNumber() IceConnectionNumber()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -1957,7 +2009,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldnet $LIBS" LIBS="-ldnet $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1961 "configure" #line 2013 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -1965,7 +2017,7 @@ int t() {
dnet_ntoa() dnet_ntoa()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -1992,7 +2044,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldnet_stub $LIBS" LIBS="-ldnet_stub $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1996 "configure" #line 2048 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -2000,7 +2052,7 @@ int t() {
dnet_ntoa() dnet_ntoa()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -2032,7 +2084,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS" LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2036 "configure" #line 2088 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -2040,7 +2092,7 @@ int t() {
t_accept() t_accept()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -2071,7 +2123,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS" LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2075 "configure" #line 2127 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -2079,7 +2131,7 @@ int t() {
socket() socket()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -2176,12 +2228,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2180 "configure" #line 2232 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <tclInt.h> #include <tclInt.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -2234,7 +2286,7 @@ if test "$cross_compiling" = yes; then
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2238 "configure" #line 2290 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
@ -2249,7 +2301,7 @@ main() {
return 0; return 0;
} }
EOF EOF
{ (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
tclmajor=`cat tclmajor` tclmajor=`cat tclmajor`
tclminor=`cat tclminor` tclminor=`cat tclminor`
@ -2394,13 +2446,13 @@ else
ac_cv_c_tclib="-l$installedtcllibroot" ac_cv_c_tclib="-l$installedtcllibroot"
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2398 "configure" #line 2450 "configure"
#include "confdefs.h" #include "confdefs.h"
Tcl_AppInit() Tcl_AppInit()
{ exit(0); } { exit(0); }
EOF EOF
{ (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_tcllib="-l$installedtcllibroot" ac_cv_c_tcllib="-l$installedtcllibroot"
else else
@ -2510,12 +2562,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2514 "configure" #line 2566 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <tk.h> #include <tk.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -2575,7 +2627,7 @@ if test "$cross_compiling" = yes; then
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2579 "configure" #line 2631 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
@ -2590,7 +2642,7 @@ cat > conftest.$ac_ext <<EOF
return 0; return 0;
} }
EOF EOF
{ (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
tkmajor=`cat tkmajor` tkmajor=`cat tkmajor`
tkminor=`cat tkminor` tkminor=`cat tkminor`
@ -2756,13 +2808,13 @@ else
ac_cv_c_tklib="-l$installedtklibroot" ac_cv_c_tklib="-l$installedtklibroot"
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2760 "configure" #line 2812 "configure"
#include "confdefs.h" #include "confdefs.h"
Tcl_AppInit() Tcl_AppInit()
{ exit(0); } { exit(0); }
EOF EOF
{ (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_tklib="-l$installedtklibroot" ac_cv_c_tklib="-l$installedtklibroot"
else else
@ -2803,7 +2855,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS" LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2807 "configure" #line 2859 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -2811,7 +2863,7 @@ int t() {
main() main()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -2841,7 +2893,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS" LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2845 "configure" #line 2897 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { return 0; } int main() { return 0; }
@ -2849,7 +2901,7 @@ int t() {
main() main()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else

View file

@ -40,6 +40,8 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h) AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h)
AC_HEADER_STAT AC_HEADER_STAT
AC_CHECK_FUNCS(setpgid)
AC_MSG_CHECKING([for gregset_t type]) AC_MSG_CHECKING([for gregset_t type])
AC_CACHE_VAL(gdb_cv_have_gregset_t, AC_CACHE_VAL(gdb_cv_have_gregset_t,
[AC_TRY_LINK([#include <sys/procfs.h>],[gregset_t *gregsetp = 0], [AC_TRY_LINK([#include <sys/procfs.h>],[gregset_t *gregsetp = 0],

View file

@ -43,7 +43,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
%{ %{
#include "defs.h" #include "defs.h"
#include <string.h> #include "gdb_string.h"
#include "expression.h" #include "expression.h"
#include "value.h" #include "value.h"
#include "parser-defs.h" #include "parser-defs.h"

View file

@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
%{ %{
#include "defs.h" #include "defs.h"
#include <string.h> #include "gdb_string.h"
#include "expression.h" #include "expression.h"
#include "language.h" #include "language.h"
#include "value.h" #include "value.h"

View file

@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h" #include "defs.h"
#include <ctype.h>
#include "serial.h" #include "serial.h"
#include "gdb_string.h" #include "gdb_string.h"
#include "gdbcmd.h" #include "gdbcmd.h"