1996-01-05 17:11:45 +00:00
|
|
|
dnl Autoconf configure script for GDB, the GNU debugger.
|
|
|
|
dnl Copyright 1995, 1996 Free Software Foundation, Inc.
|
|
|
|
dnl
|
|
|
|
dnl This file is part of GDB.
|
|
|
|
dnl
|
|
|
|
dnl This program is free software; you can redistribute it and/or modify
|
|
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
|
|
dnl the Free Software Foundation; either version 2 of the License, or
|
|
|
|
dnl (at your option) any later version.
|
|
|
|
dnl
|
|
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
dnl GNU General Public License for more details.
|
|
|
|
dnl
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
dnl along with this program; if not, write to the Free Software
|
1996-02-21 17:38:36 +00:00
|
|
|
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1996-01-05 17:11:45 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-01-05 17:11:45 +00:00
|
|
|
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
Use autoconf set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
* nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
* nlm/configure: Rebuilt.
* gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1996-06-25 13:08:00 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_INIT(main.c)
|
1996-03-21 15:59:01 +00:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_AIX
|
|
|
|
AC_MINIX
|
|
|
|
AC_ISC_POSIX
|
|
|
|
|
Wed Aug 6 16:15:31 1997 Geoffrey Noer <noer@cygnus.com>
* Makefile.in: add DLLTOOL = @DLLTOOL@, pass on DLLTOOL to
sub makes, change clean rule to also remove *.a to remove
libwigglers.a, in dependencies: add ppc-bdm.o ocd.o ser-ocd.o and
remove remote-wiggler.o
* configure.in: add DLLTOOL support
* configure: regenerate
* wigglers.def: new file for imports for wigglers.dll
* ser-ocd.c: new file which is layer between ocd.c and either the
wigglers.dll or the target box, only stub so far
* config/powerpc/ppc-eabi.mt: add ppc-bdm.o to TDEPFILES
* config/powerpc/ppc-sim.mt: add ppc-bdm.o to TDEPFILES
* config/i386/cygwin32.mh: add ocd.o ser-ocd.o libwigglers.a
to XDEPFILES, add rules to build libwigglers.a
checking in changes of Stu Grossman <grossman@cygnus.com>:
* remote-wiggler.c: delete
* ocd.c: new, was remote-wiggler.c
always include sys/types.h, include ocd.h, move WIGGLER
commands and many wiggler prototypes to ocd.h, make wiggler_desc
static, stop making local wiggler functions static,
define write_mem_command for wiggler_write_bytes
(wiggler_start_remote): stop hardcoding the target type,
instead set and use a target_type variable.
(wiggler_open): add new target_type and ops args
(wiggler_wait): now no longer takes pid and target_status as args,
stop trying to set target_status struct, remove BGND insn
checks
(read_bdm_registers): renamed to wiggler_read_bdm_registers
(wiggler_read_bdm_registers): numregs arg changed to reglen arg,
remove pktlen check, set reglen instead of numregs
(dump_all_bdm_regs): delete
(wiggler_fetch_registers): delete
(wiggler_prepare_to_store): now just an empty function
(wiggler_store_registers): delete
(wiggler_read_bdm_register): new
(wiggler_write_bdm_registers): new
(wiggler_write_bdm_register): new
(wiggler_write_bytes): use write_mem_command variable instead of
WIGGLER_WRITE_MEM
(get_packet): renamed to wiggler_get_packet, change refs throughout
(put_packet): renamed to wiggler_put_packet, change refs throughout
(wiggler_get_packet): add break to default case of switch,
change length of WIGGLER_GET_VERSION len to 10 from 4 to match
specs
(wiggler_mourn): unpush_target with current_ops, not &wiggler_ops
(flash_xfer_memory): delete
(noop_store_registers): new placeholder replacement for
target_store_registers() which prevents generic_load from trying to
set up the PC.
(bdm_update_flash_command): add store_registers_tmp variable,
make handling of wiggler_ops more generic -- define wiggler_ops
in a target-specific file instead (such as ppc-bdm.c in the case
of the ppc), use current_target to deal with registers again
making this file less target-specific.
(bdm_read_register_command): new
(_initialize_remote_wiggler): stop doing add_target (&wiggler_ops),
comment out add_cmd ("read-register", ...)
* ocd.h: new, contains common wiggler prototypes, command definitions
* ppc-bdm.c: file for ppc-specific OCD code, including target_ops
structure for ppc bdm
(bdm_ppc_open): new
(bdm_ppc_wait): new
(bdm_ppc_fetch_registers): new
(bdm_ppc_store_registers_: new
(_initialize_bdm_ppc): new
* config/powerpc/tm-ppc-eabi.h: add necessary CPU32 BDM defines
1997-08-07 06:31:46 +00:00
|
|
|
DLLTOOL=${DLLTOOL-dlltool}
|
|
|
|
AC_SUBST(DLLTOOL)
|
|
|
|
|
1997-03-13 20:39:56 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
|
1996-08-27 11:32:34 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
1997-02-27 17:46:18 +00:00
|
|
|
dnl List of object files added by configure.
|
|
|
|
|
|
|
|
CONFIG_OBS=
|
|
|
|
|
|
|
|
configdirs="doc testsuite"
|
|
|
|
|
|
|
|
dnl
|
|
|
|
changequote(,)dnl
|
|
|
|
|
|
|
|
. ${srcdir}/configure.host
|
|
|
|
|
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
|
|
|
|
dnl
|
|
|
|
changequote([,])dnl
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_PROG_INSTALL
|
1996-04-12 06:14:46 +00:00
|
|
|
AC_CHECK_TOOL(AR, ar)
|
|
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
1995-10-10 20:19:37 +00:00
|
|
|
AC_PROG_YACC
|
1996-04-12 06:14:46 +00:00
|
|
|
AC_PROG_AWK
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
1997-05-08 01:00:39 +00:00
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_HEADER_STDC
|
Add support for Irix 6.2 native O32 and N32 ABI.
* config.in, configure.in, configure: Check for <objlist.h>.
* configure.tgt: Handle mips*-sgi-irix6* like irix5 for now.
* cp-valprint.c (cp_print_value_fields): Use SYMBOL_VALUE_ADDRESS
instead of SYMBOL_BLOCK_VALUE to get the address of a static member.
* dwarf2read.c: Turn warnings and recoverable errors into complaints,
add new complaints where appropriate.
gcc -Wall cleanup.
(struct line_head): Change line_base from char to int to avoid
problems with compilers whose plain char is represented by an
unsigned char.
(struct partial_die_info): Add is_declaration field.
(dwarf2_tmp_obstack): New obstack for allocating temporary storage
used during symbol reading.
(cu_header_offset): New variable for resolving relative reference
dies.
(optimized_out, basereg, islocal, frame_base_reg, frame_base_offset):
New interface variables for decode_locdesc.
(struct dwarf2_pinfo): New structure for communication between
psymtab and symtab reading, passed via pst->read_symtab_private.
(dwarf2_has_info, dwarf2_build_psymtabs): Accept objects files
without line number sections.
(dwarf2_build_psymtabs_hard): Initialize temporary obstack
for symbol reading.
Allocate and initialize pst->read_symtab_private.
Relocate pst->textlow and pst->texthigh with baseaddr.
(scan_partial_symbols): Do not add DW_AT_declaration symbols
to the partial symbol table.
Add file scope enumerator symbols to the partial symbol table.
Fix typo in highpc computation.
If we didn't find a lowpc, set it to highpc to avoid complaints
from `maint check.
(add_partial_symbol): Relocate symbol values with baseaddr.
Add static DW_TAG_subprogram and DW_TAG_variable symbols to the
minimal symbol table.
Obtain symbol values for DW_TAG_variable symbols from the location
descriptor, skip symbols with missing location desciptors.
Skip symbols for aggregate types without children.
Handle enumerator symbols.
(dwarf2_psymtab_to_symtab): Issue symbol reading message if verbose.
(psymtab_to_symtab_1): Set local variables from
pst->read_symtab_private, set cu_header_offset and baseaddr.
Initialize temporary obstack for symbol reading, initialize
buildsym and add a cleanup to really_free_pendings.
Relocate highpc with baseaddr when calling end_symtab.
If the compilation is from a C file generated by language
preprocessors, do not set the symtab language if it was already
deduced by start_subfile.
Removed verbose sorting symbol table message.
(process_die): Handle DW_TAG_ptr_to_member_type and
DW_TAG_reference_type.
Use read_subroutine_type to get the function type for
DW_TAG_subprogram before calling read_func_scope.
(read_file_scope): Initialize file name to <unknown>, start_subfile
expects a non-NULL name.
If we didn't find a lowpc, set it to highpc to avoid complaints
from finish_symbol.
Relocate lowpc and highpc with baseaddr.
Get rid of Irix6.2 native cc compile machine prefix in comp_dir.
Zero out ftypes for each new compilation unit (may be different
language or different objfile).
Accept compilation units without line number information, pass
comp_dir to decode_lines.
(read_func_scope): Initialize function name to <unknown> to avoid
core dumps when DW_AT_name is missing.
Relocate lowpc and highpc with baseaddr.
Handle DW_AT_frame_base, keep result for DW_OP_fbreg operations.
Pass function type to new_symbol.
(read_lexical_block_scope): Relocate lowpc and highpc with baseaddr.
(read_structure_scope): Set TYPE_TAG_NAME, not TYPE_NAME.
Handle DW_TAG_class_type.
Copy fields to type_obstack, release temporary storage for fields.
Don't add symbol if die is a stub die and has no children.
Handle C++ static member fields.
(read_enumeration): Set TYPE_TAG_NAME, not TYPE_NAME.
Copy fields to type_obstack, release temporary storage for fields.
Let new_symbol handle the symbol creation for enumerators
instead of handcrafting a symbol.
Determine signedness of enum type from enumerators.
(dwarf_read_array_type): Handle variable length arrays.
Use lookup_pointer_type instead of handcrafting a type.
Create array type only if a DW_TAG_subrange_type was found.
(read_tag_pointer_type, read_tag_reference_type):
Use lookup_pointer_type and lookup_reference_type instead
of handcrafting a type.
(read_tag_ptr_to_member_type): New function to handle
DW_TAG_ptr_to_member_type.
(read_subroutine_type): Handle parameter dies.
Use lookup_function_type instead of handcrafting a type.
(read_typedef): Allocate a TYPE_CODE_TYPEDEF type for the typedef.
(read_base_type): If the type has a name, use init_type to create
a new type instead of second guessing a fundamental type.
(read_comp_unit): Reset die reference table before building
a new one.
(dwarf2_read_section): Read section contents into psymbol_obstack.
(dwarf2_read_abbrevs): Handle unterminated abbreviations
for a compile unit gracefully.
(read_partial_die): Zero partial die before reading its info.
Handle DW_AT_declaration.
Fix typo in handling of DW_FORM_block4.
(read_full_die): Fix typo in handling of DW_FORM_block4.
(read_1_signed_byte, read_2_signed_bytes, read_4_signed_bytes):
New routines to get signed values from a buffer.
(read_n_bytes, read_string): Allocate storage from the temporary
obstack. If the host char size permits it, return pointer
to buffer instead of allocating storage.
(set_cu_language): Handle DW_LANG_Mips_Assembler.
(dwarf_attr): Return NULL if reference die for DW_AT_specification
or DW_AT_abstract_origin die is not found.
(record_minimal_symbol): Removed, replaced with a direct call to
prim_record_minimal_symbol, it now handles saving the string itself.
(convert_locdesc): Removed, partial symtab reading now uses
decode_locdesc.
(dwarf_attr): Use dwarf2_get_ref_die_offset to get the absolute
offset for the die reference.
(dwarf_decode_lines): Complain if the line section info is missing.
Use read_1_signed_byte to extract lh.line_base to avoid
problems with compilers whose plain char is represented by an
unsigned char.
Add cleanups for allocated temporary storage.
Start a subfile for the first file in the state machine.
Fix off by one problem with dirs.dirs access.
Use comp_dir when directory index is 0.
Support multiple sequences (from Jason Merrill <jason@cygnus.com>).
(dwarf2_start_subfile): Try to keep line numbers from identical
absolute and relative file names in a common subfile.
(new_symbol): Allocate symbol and symbol name on the symbol_obstack.
Set SYMBOL_LINE from DW_AT_decl_line if present.
Set SYMBOL_TYPE from passed type if not NULL.
Change DW_TAG_variable symbol types with missing type entries
to a sensible type.
Handle optimized_out, offreg and islocal storage classes.
Add external symbols with type information whose address isn't
known as LOC_UNRESOLVED symbols.
Synthesize typedefs for C++ classes, structs, unions and enumerations.
Handle DW_TAG_enumerator symbols, complain for unrecognized
symbol tags.
(die_type): A missing DW_AT_type represents a void type.
Use dwarf2_get_ref_die_offset to get the absolute offset for
the die reference.
(die_containing_type): New function to build type from
DW_AT_containing_type attribut.
(read_type_die): Handle DW_TAG_ptr_to_member_type.
Treat DW_TAG_subprogram like DW_TAG_subroutine_type.
(dwarf_base_type): Fix typo with creation of FT_UNSIGNED_SHORT
fundamental type.
(create_name): Removed, symbol name allocation is now done
in new_symbol.
(dump_die): Use print_address_numeric to print a CORE_ADDR.
(dwarf2_empty_die_ref_table): New function to clear the die
reference table.
(dwarf2_get_ref_die_offset): New function to get the absolute
die offset from a die reference attribute.
(decode_locdesc): Complete rewrite using a stack, code mostly
borrowed from dwarfread.c:locval.
(dwarf_alloc_type): Removed, replaced by direct calls to alloc_type.
(dwarf_alloc_block): Allocate block on temporary obstack.
* elfread.c (elf_symtab_read): When handling Irix dynamic symbols,
skip section name symbols and relocate all others.
(elf_symfile_read): Build dwarf2 psymtab even if offset is non-zero.
* irix5-nat.c (fetch_core_registers): Handle core_reg_sect
from N32 executables. Call registers_fetched after extracting
the registers.
(obj_list_variant, struct link_map, LM_OFFSET, LM_ADDR): New
definitions to enable support of O32 and N32 format objlists.
(struct so_list): New members offset, so_name and lmstart to
eliminate dependencies from the objlist format used.
(solib_map_sections, symbol_add_stub, solib_add,
info_sharedlibrary_command, solib_address, clear_solib): Use
so_name and LM_OFFSET.
(first_link_map_member): Rewrite to enable support of O32 and N32
format objlists.
(next_link_map_member, xfer_link_map_member): New functions to
support O32 and N32 format objlists.
(find_solib): Use first_link_map_member, next_link_map_member and
xfer_link_map_member.
(solib_create_inferior_hook): Use TARGET_SIGNAL_* instead of
host signal numbers.
* mdebugread.c (parse_partial_symbols, handle_psymbol_enumerators):
Pass CORE_ADDR variant to add_psymbol_to_list.
* mips-tdep.c (heuristic_proc_desc): Stop examining the prologue
if we encounter a positive stack adjustment. Handle `move $30,$sp'.
Handle `sd reg,offset($sp)' for 32 bit ABIs.
* symmisc.c (dump_msymbols, print_partial_symbols): Use
print_address_numeric to print a SYMBOL_VALUE_ADDRESS.
(dump_symtab): Print compilation directory if it is not NULL.
* valops.c (search_struct_field, value_struct_elt_for_reference):
Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_BLOCK_VALUE to get the
address of a static member.
1996-12-01 08:33:39 +00:00
|
|
|
AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h stdlib.h sys/procfs.h link.h endian.h objlist.h)
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_HEADER_STAT
|
|
|
|
|
1996-08-13 00:01:37 +00:00
|
|
|
AC_C_CONST
|
|
|
|
|
1996-10-08 17:06:17 +00:00
|
|
|
AC_CHECK_FUNCS(setpgid sbrk select poll)
|
1996-04-05 04:22:08 +00:00
|
|
|
|
1996-09-27 06:13:24 +00:00
|
|
|
# If we are configured native on Linux, work around problems with sys/procfs.h
|
|
|
|
if test "${target}" = "${host}"; then
|
|
|
|
case "${host}" in
|
|
|
|
i[3456]86-*-linux*)
|
|
|
|
AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,"2")
|
|
|
|
AC_DEFINE(sys_quotactl)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_MSG_CHECKING([for gregset_t type])
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_CACHE_VAL(gdb_cv_have_gregset_t,
|
1996-01-27 18:51:09 +00:00
|
|
|
[AC_TRY_LINK([#include <sys/procfs.h>],[gregset_t *gregsetp = 0],
|
1996-03-31 01:04:37 +00:00
|
|
|
gdb_cv_have_gregset_t=yes, gdb_cv_have_gregset_t=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_have_gregset_t)
|
|
|
|
if test $gdb_cv_have_gregset_t = yes; then
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_DEFINE(HAVE_GREGSET_T)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for fpregset_t type])
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_CACHE_VAL(gdb_cv_have_fpregset_t,
|
1996-01-27 18:51:09 +00:00
|
|
|
[AC_TRY_LINK([#include <sys/procfs.h>],[fpregset_t *fpregsetp = 0],
|
1996-03-31 01:04:37 +00:00
|
|
|
gdb_cv_have_fpregset_t=yes, gdb_cv_have_fpregset_t=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_have_fpregset_t)
|
|
|
|
if test $gdb_cv_have_fpregset_t = yes; then
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_DEFINE(HAVE_FPREGSET_T)
|
|
|
|
fi
|
|
|
|
|
1997-01-22 01:12:19 +00:00
|
|
|
dnl See if host has libm. This is usually needed by simulators.
|
|
|
|
AC_CHECK_LIB(m, main)
|
|
|
|
|
1996-07-28 06:32:48 +00:00
|
|
|
dnl See if compiler supports "long long" type.
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long long support in compiler)
|
|
|
|
AC_CACHE_VAL(gdb_cv_c_long_long,
|
1996-07-30 04:26:25 +00:00
|
|
|
[AC_TRY_COMPILE(, [
|
1996-08-23 00:47:10 +00:00
|
|
|
extern long long foo;
|
|
|
|
switch (foo & 2) { case 0: return 1; }
|
|
|
|
],
|
1996-07-28 06:32:48 +00:00
|
|
|
gdb_cv_c_long_long=yes, gdb_cv_c_long_long=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_c_long_long)
|
|
|
|
if test $gdb_cv_c_long_long = yes; then
|
|
|
|
AC_DEFINE(CC_HAS_LONG_LONG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl See if the compiler and runtime support printing long long
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long long support in printf)
|
|
|
|
AC_CACHE_VAL(gdb_cv_printf_has_long_long,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
int main () {
|
|
|
|
char buf[16];
|
|
|
|
long long l = 0x12345;
|
|
|
|
sprintf (buf, "%llx", l);
|
|
|
|
return (strcmp ("12345", buf));
|
|
|
|
}],
|
|
|
|
gdb_cv_printf_has_long_long=yes,
|
|
|
|
gdb_cv_printf_has_long_long=no,
|
|
|
|
gdb_cv_printf_has_long_long=no)])
|
|
|
|
if test $gdb_cv_printf_has_long_long = yes; then
|
|
|
|
AC_DEFINE(PRINTF_HAS_LONG_LONG)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($gdb_cv_printf_has_long_long)
|
|
|
|
|
* Add native support for long double data type.
* c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
to store actual data. Change types of INT and FLOAT tokens to
typed_val_int and typed_val_float respectively. Create new token
DOUBLE_KEYWORD to specify the string `double'. Make production
for FLOAT use type determined by parse_number. Add production for
"long double" data type.
* (parse_number): Use sscanf to parse numbers as float, double or
long double depending upon the type of typed_val_float.dval. Also
allow user to specify `f' or `l' suffix to explicitly specify
float or long double constants. Change typed_val to
typed_val_int.
* (yylex): Change typed_val to typed_val_int. Also, scan for
"double" keyword.
* coffread.c (decode_base_type): Add support for T_LNGDBL basic
type.
* configure, configure.in: Add check for long double support in
the host compiler.
* defs.h: Define DOUBLEST appropriatly depending on whether
HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
for functions that handle this type.
* expression.h (union exp_element): doubleconst is now type
DOUBLEST.
* m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
* findvar.c (extract_floating): Make return value be DOUBLEST.
Also, add support for numbers with size of long double.
* (store_floating): Arg `val' is now type DOUBLEST. Handle all
floating types.
* parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
DOUBLEST.
* valarith.c (value_binop): Change temp variables v1, v2 and v to
type DOUBLEST. Coerce type of result to long double if either op
was of that type.
* valops.c (value_arg_coerce): If argument type is bigger than
double, coerce to long double.
* (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
arg type is float and > 8 bytes, then use pointer-to-object
calling conventions.
* valprint.c (print_floating): Arg doub is now type DOUBLEST.
Use appropriate format and precision to print out floating point
values.
* value.h: Fixup prototypes for value_as_double,
value_from_double, and unpack_double to use DOUBLEST.
* values.c (record_latest_value): Remove check for invalid
floats. Allow history to store them so that people may examine
them in hex if they want.
* (value_as_double unpack_double): Change return value to DOUBLEST.
* (value_from_double): Arg `num' is now DOUBLEST.
* (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
specific) to expect certain types to always be returned on the stack.
1996-02-17 00:07:35 +00:00
|
|
|
dnl See if compiler supports "long double" type. Can't use AC_C_LONG_DOUBLE
|
|
|
|
dnl because autoconf complains about cross-compilation issues. However, this
|
|
|
|
dnl code uses the same variables as the macro for compatibility.
|
|
|
|
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_MSG_CHECKING(for long double support in compiler)
|
* Add native support for long double data type.
* c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
to store actual data. Change types of INT and FLOAT tokens to
typed_val_int and typed_val_float respectively. Create new token
DOUBLE_KEYWORD to specify the string `double'. Make production
for FLOAT use type determined by parse_number. Add production for
"long double" data type.
* (parse_number): Use sscanf to parse numbers as float, double or
long double depending upon the type of typed_val_float.dval. Also
allow user to specify `f' or `l' suffix to explicitly specify
float or long double constants. Change typed_val to
typed_val_int.
* (yylex): Change typed_val to typed_val_int. Also, scan for
"double" keyword.
* coffread.c (decode_base_type): Add support for T_LNGDBL basic
type.
* configure, configure.in: Add check for long double support in
the host compiler.
* defs.h: Define DOUBLEST appropriatly depending on whether
HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
for functions that handle this type.
* expression.h (union exp_element): doubleconst is now type
DOUBLEST.
* m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
* findvar.c (extract_floating): Make return value be DOUBLEST.
Also, add support for numbers with size of long double.
* (store_floating): Arg `val' is now type DOUBLEST. Handle all
floating types.
* parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
DOUBLEST.
* valarith.c (value_binop): Change temp variables v1, v2 and v to
type DOUBLEST. Coerce type of result to long double if either op
was of that type.
* valops.c (value_arg_coerce): If argument type is bigger than
double, coerce to long double.
* (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
arg type is float and > 8 bytes, then use pointer-to-object
calling conventions.
* valprint.c (print_floating): Arg doub is now type DOUBLEST.
Use appropriate format and precision to print out floating point
values.
* value.h: Fixup prototypes for value_as_double,
value_from_double, and unpack_double to use DOUBLEST.
* values.c (record_latest_value): Remove check for invalid
floats. Allow history to store them so that people may examine
them in hex if they want.
* (value_as_double unpack_double): Change return value to DOUBLEST.
* (value_from_double): Arg `num' is now DOUBLEST.
* (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
specific) to expect certain types to always be returned on the stack.
1996-02-17 00:07:35 +00:00
|
|
|
AC_CACHE_VAL(ac_cv_c_long_double,
|
|
|
|
[AC_TRY_COMPILE(, [long double foo;],
|
|
|
|
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
|
|
|
|
AC_MSG_RESULT($ac_cv_c_long_double)
|
|
|
|
if test $ac_cv_c_long_double = yes; then
|
|
|
|
AC_DEFINE(HAVE_LONG_DOUBLE)
|
|
|
|
fi
|
|
|
|
|
1996-03-31 01:04:37 +00:00
|
|
|
dnl See if the compiler and runtime support printing long doubles
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long double support in printf)
|
|
|
|
AC_CACHE_VAL(gdb_cv_printf_has_long_double,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
int main () {
|
|
|
|
char buf[16];
|
|
|
|
long double f = 3.141592653;
|
|
|
|
sprintf (buf, "%Lg", f);
|
|
|
|
return (strncmp ("3.14159", buf, 7));
|
|
|
|
}],
|
|
|
|
gdb_cv_printf_has_long_double=yes,
|
|
|
|
gdb_cv_printf_has_long_double=no,
|
|
|
|
gdb_cv_printf_has_long_double=no)])
|
|
|
|
if test $gdb_cv_printf_has_long_double = yes; then
|
|
|
|
AC_DEFINE(PRINTF_HAS_LONG_DOUBLE)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($gdb_cv_printf_has_long_double)
|
|
|
|
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_FUNC_MMAP
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1996-08-21 01:02:53 +00:00
|
|
|
BFD_NEED_DECLARATION(malloc)
|
|
|
|
BFD_NEED_DECLARATION(realloc)
|
|
|
|
BFD_NEED_DECLARATION(free)
|
|
|
|
|
1996-06-11 19:21:42 +00:00
|
|
|
dnl See if thread_db library is around for Solaris thread debugging. Note that
|
|
|
|
dnl we must explicitly test for version 1 of the library because version 0
|
|
|
|
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.
|
|
|
|
|
1996-07-04 00:49:25 +00:00
|
|
|
dnl Note that we only want this if we are both native (host == target), and
|
|
|
|
dnl not doing a canadian cross build (build == host).
|
|
|
|
|
|
|
|
if test ${build} = ${host} -a ${host} = ${target} ; then
|
1996-10-08 17:06:17 +00:00
|
|
|
case ${host_os} in
|
|
|
|
hpux*)
|
|
|
|
AC_MSG_CHECKING(for HPUX/OSF thread support)
|
|
|
|
if test -f /usr/include/dce/cma_config.h ; then
|
1997-02-27 18:09:22 +00:00
|
|
|
if test "$GCC" = "yes" ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
|
|
|
|
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no (suppressed because you are not using GCC))
|
|
|
|
fi
|
1997-01-04 00:25:53 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
solaris*)
|
|
|
|
AC_MSG_CHECKING(for Solaris thread debugging library)
|
|
|
|
if test -f /usr/lib/libthread_db.so.1 ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_THREAD_DB_LIB)
|
|
|
|
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
|
1997-01-22 02:33:50 +00:00
|
|
|
AC_CHECK_LIB(dl, dlopen)
|
1997-01-22 01:12:19 +00:00
|
|
|
if test "$GCC" = "yes" ; then
|
|
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
|
|
|
|
fi
|
1996-10-08 17:06:17 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
1996-06-11 19:21:42 +00:00
|
|
|
AC_SUBST(CONFIG_LDFLAGS)
|
1996-07-04 00:49:25 +00:00
|
|
|
fi
|
1996-05-14 07:02:56 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
dnl Handle optional features that can be enabled.
|
|
|
|
ENABLE_CFLAGS=
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(netrom,
|
|
|
|
[ --enable-netrom ],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) enable_netrom=yes ;;
|
|
|
|
no) enable_netrom=no ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
|
|
|
|
esac])
|
|
|
|
|
|
|
|
if test "${enable_netrom}" = "yes"; then
|
1997-01-04 00:25:53 +00:00
|
|
|
CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# start-sanitize-gdbtk
|
1997-07-10 07:15:26 +00:00
|
|
|
ENABLE_IDE=
|
|
|
|
AC_ARG_ENABLE(ide, [ --enable-ide Enable IDE support])
|
|
|
|
if test "$enable_ide" = yes; then
|
|
|
|
enable_ide=yes
|
|
|
|
ENABLE_IDE=1
|
|
|
|
else
|
|
|
|
enable_ide=no
|
|
|
|
fi
|
|
|
|
AC_SUBST(ENABLE_IDE)
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
ENABLE_GDBTK=
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(gdbtk,
|
|
|
|
[ --enable-gdbtk ],
|
|
|
|
[case "${enableval}" in
|
1996-01-05 00:42:36 +00:00
|
|
|
yes)
|
|
|
|
case "$host" in
|
|
|
|
*go32*)
|
|
|
|
AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.])
|
|
|
|
enable_gdbtk=no ;;
|
1997-03-19 23:39:20 +00:00
|
|
|
*windows*)
|
1996-06-20 00:29:38 +00:00
|
|
|
AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.])
|
|
|
|
enable_gdbtk=no ;;
|
1996-01-05 00:42:36 +00:00
|
|
|
*)
|
|
|
|
enable_gdbtk=yes ;;
|
|
|
|
esac ;;
|
|
|
|
no)
|
|
|
|
enable_gdbtk=no ;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
|
|
|
|
esac],
|
|
|
|
[
|
1996-06-20 00:29:38 +00:00
|
|
|
# Default is on for everything but go32 and cygwin32
|
1996-01-05 00:42:36 +00:00
|
|
|
case "$host" in
|
1997-03-19 23:39:20 +00:00
|
|
|
*go32* | *windows*)
|
1996-06-20 00:29:38 +00:00
|
|
|
;;
|
1996-01-05 00:42:36 +00:00
|
|
|
*)
|
|
|
|
enable_gdbtk=yes ;;
|
|
|
|
esac
|
|
|
|
])
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1997-08-01 19:24:55 +00:00
|
|
|
# In the cygwin32 environment, we need some additional flags.
|
|
|
|
AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32,
|
|
|
|
[AC_EGREP_CPP(lose, [
|
|
|
|
#ifdef __CYGWIN32__
|
|
|
|
lose
|
|
|
|
#endif],[gdb_cv_os_cygwin32=yes],[gdb_cv_os_cygwin32=no])])
|
|
|
|
|
|
|
|
WIN32LIBS=
|
|
|
|
WIN32LDAPP=
|
|
|
|
AC_SUBST(WIN32LIBS)
|
|
|
|
AC_SUBST(WIN32LDAPP)
|
|
|
|
|
|
|
|
if test x$gdb_cv_os_cygwin32 = xyes; then
|
|
|
|
if test x$enable_ide = xyes; then
|
|
|
|
WIN32LIBS="-ladvapi32"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
configdir="unix"
|
1997-03-19 23:39:20 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${enable_gdbtk}" = "yes"; then
|
1996-01-05 00:42:36 +00:00
|
|
|
|
1996-08-02 02:43:27 +00:00
|
|
|
CY_AC_PATH_TCLCONFIG
|
1996-08-28 17:13:00 +00:00
|
|
|
if test -z "${no_tcl}"; then
|
|
|
|
CY_AC_LOAD_TCLCONFIG
|
|
|
|
CY_AC_PATH_TKCONFIG
|
1996-08-02 02:43:27 +00:00
|
|
|
|
1996-08-28 17:13:00 +00:00
|
|
|
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
|
|
|
# point to doing Tcl.
|
|
|
|
if test -z "${no_tk}"; then
|
|
|
|
CY_AC_LOAD_TKCONFIG
|
|
|
|
CY_AC_PATH_TCLH
|
|
|
|
CY_AC_PATH_TKH
|
1997-07-10 07:15:26 +00:00
|
|
|
CY_AC_PATH_ITCLH
|
|
|
|
CY_AC_PATH_TIX
|
1996-08-02 02:43:27 +00:00
|
|
|
|
1997-07-23 02:45:59 +00:00
|
|
|
# now look for tix library stuff
|
1997-08-07 21:07:44 +00:00
|
|
|
TIXVERSION=4.1.8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
. ${ac_cv_c_tclconfig}/tclConfig.sh
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin32*)
|
1997-08-08 19:20:42 +00:00
|
|
|
tixdir=../tix/win/tcl8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
;;
|
|
|
|
*)
|
1997-08-07 21:07:44 +00:00
|
|
|
tixdir=../tix/unix/tk8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
|
|
|
TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
|
|
|
|
else
|
|
|
|
TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
|
|
|
|
fi
|
|
|
|
|
1996-08-28 17:13:00 +00:00
|
|
|
ENABLE_GDBTK=1
|
1996-01-24 23:39:34 +00:00
|
|
|
|
1997-01-04 00:25:53 +00:00
|
|
|
# Include some libraries that Tcl and Tk want.
|
1997-07-10 07:15:26 +00:00
|
|
|
if test "${enable_ide}" = "yes"; then
|
|
|
|
TCL_LIBS='$(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
|
|
|
else
|
|
|
|
TCL_LIBS='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
|
|
|
fi
|
1997-03-14 17:16:43 +00:00
|
|
|
# Yes, the ordering seems wrong here. But it isn't.
|
|
|
|
# TK_LIBS is the list of libraries that need to be linked
|
|
|
|
# after Tcl/Tk.
|
|
|
|
LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}"
|
1997-01-04 00:25:53 +00:00
|
|
|
CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
|
1997-08-01 19:24:55 +00:00
|
|
|
|
|
|
|
if test x$gdb_cv_os_cygwin32 = xyes; then
|
|
|
|
WIN32LIBS="${WIN32LIBS} -luser32"
|
|
|
|
WIN32LDAPP="-Wl,--subsystem,windows"
|
|
|
|
fi
|
1996-08-28 17:13:00 +00:00
|
|
|
fi
|
1995-10-25 01:33:26 +00:00
|
|
|
fi
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
fi
|
1995-10-25 01:33:26 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_SUBST(ENABLE_GDBTK)
|
1995-11-29 03:34:57 +00:00
|
|
|
AC_SUBST(X_CFLAGS)
|
1995-10-25 01:33:26 +00:00
|
|
|
AC_SUBST(X_LDFLAGS)
|
|
|
|
AC_SUBST(X_LIBS)
|
1997-07-23 02:45:59 +00:00
|
|
|
AC_SUBST(TIXLIB)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# end-sanitize-gdbtk
|
|
|
|
|
|
|
|
AC_SUBST(ENABLE_CFLAGS)
|
1997-01-04 00:25:53 +00:00
|
|
|
|
|
|
|
AC_SUBST(CONFIG_OBS)
|
1994-06-16 22:02:24 +00:00
|
|
|
|
1996-09-14 00:09:24 +00:00
|
|
|
# Begin stuff to support --enable-shared
|
|
|
|
AC_ARG_ENABLE(shared,
|
|
|
|
[ --enable-shared use shared libraries],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) shared=true ;;
|
|
|
|
no) shared=false ;;
|
|
|
|
*) shared=true ;;
|
|
|
|
esac])dnl
|
|
|
|
|
|
|
|
HLDFLAGS=
|
|
|
|
HLDENV=
|
|
|
|
# If we have shared libraries, try to set rpath reasonably.
|
|
|
|
if test "${shared}" = "true"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-hpux*)
|
|
|
|
HLDFLAGS='-Wl,+s,+b,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-irix5* | *-*-irix6*)
|
|
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-linux*aout*)
|
|
|
|
;;
|
1996-10-24 18:51:46 +00:00
|
|
|
*-*-linux* | *-pc-linux-gnu)
|
1996-09-14 00:09:24 +00:00
|
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-solaris*)
|
|
|
|
HLDFLAGS='-R $(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-sysv4*)
|
|
|
|
HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# On SunOS, if the linker supports the -rpath option, use it to
|
|
|
|
# prevent ../bfd and ../opcodes from being included in the run time
|
|
|
|
# search path.
|
|
|
|
case "${host}" in
|
|
|
|
*-*-sunos*)
|
|
|
|
echo 'main () { }' > conftest.c
|
|
|
|
${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
|
|
|
|
if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
elif grep 'No such file' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
1996-11-09 09:17:34 +00:00
|
|
|
elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
1996-09-14 00:09:24 +00:00
|
|
|
elif test "${shared}" = "true"; then
|
|
|
|
HLDFLAGS='-Wl,-rpath=$(libdir)'
|
|
|
|
else
|
|
|
|
HLDFLAGS='-Wl,-rpath='
|
|
|
|
fi
|
|
|
|
rm -f conftest.t conftest.c conftest
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(HLDFLAGS)
|
|
|
|
AC_SUBST(HLDENV)
|
|
|
|
# End stuff to support --enable-shared
|
|
|
|
|
1995-11-29 03:34:57 +00:00
|
|
|
# target_subdir is used by the testsuite to find the target libraries.
|
|
|
|
target_subdir=
|
|
|
|
if test "${host}" != "${target}"; then
|
|
|
|
target_subdir="${target_alias}/"
|
|
|
|
fi
|
|
|
|
AC_SUBST(target_subdir)
|
1991-12-07 08:03:27 +00:00
|
|
|
|
1995-07-14 23:28:13 +00:00
|
|
|
frags=
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
|
|
|
|
if test ! -f ${host_makefile_frag}; then
|
|
|
|
AC_MSG_ERROR("*** Gdb does not support host ${host}")
|
1991-05-19 00:16:46 +00:00
|
|
|
fi
|
1995-07-14 23:28:13 +00:00
|
|
|
frags="$frags $host_makefile_frag"
|
1991-05-19 00:16:46 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
|
|
|
|
if test ! -f ${target_makefile_frag}; then
|
|
|
|
AC_MSG_ERROR("*** Gdb does not support target ${target}")
|
1991-05-19 00:16:46 +00:00
|
|
|
fi
|
1995-07-14 23:28:13 +00:00
|
|
|
frags="$frags $target_makefile_frag"
|
1991-05-19 00:16:46 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_SUBST_FILE(host_makefile_frag)
|
|
|
|
AC_SUBST_FILE(target_makefile_frag)
|
1995-07-14 23:28:13 +00:00
|
|
|
AC_SUBST(frags)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1995-05-28 07:07:21 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
hostfile=`sed -n '
|
|
|
|
s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${host_makefile_frag}`
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1995-05-28 07:07:21 +00:00
|
|
|
targetfile=`sed -n '
|
|
|
|
s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${target_makefile_frag}`
|
1993-10-13 01:08:40 +00:00
|
|
|
|
|
|
|
# these really aren't orthogonal true/false values of the same condition,
|
|
|
|
# but shells are slow enough that I like to reuse the test conditions
|
|
|
|
# whenever possible
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${target}" = "${host}"; then
|
1995-05-28 07:07:21 +00:00
|
|
|
nativefile=`sed -n '
|
|
|
|
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${host_makefile_frag}`
|
1997-03-11 15:49:20 +00:00
|
|
|
# else
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# GDBserver is only useful in a "native" enviroment
|
1997-03-11 15:49:20 +00:00
|
|
|
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
1992-09-19 11:09:01 +00:00
|
|
|
fi
|
1995-05-28 07:07:21 +00:00
|
|
|
changequote([,])
|
1992-09-19 11:09:01 +00:00
|
|
|
|
|
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
1994-09-04 23:16:22 +00:00
|
|
|
# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
|
1992-09-19 11:09:01 +00:00
|
|
|
# corresponding links. But we have to remove the xm.h files and tm.h
|
|
|
|
# files anyway, e.g. when switching from "configure host" to
|
|
|
|
# "configure none".
|
|
|
|
|
1991-07-04 15:59:47 +00:00
|
|
|
files=
|
|
|
|
links=
|
1991-07-31 00:34:07 +00:00
|
|
|
rm -f xm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${hostfile}" != ""; then
|
|
|
|
files="${files} config/${gdb_host_cpu}/${hostfile}"
|
|
|
|
links="${links} xm.h"
|
1991-07-04 15:59:47 +00:00
|
|
|
fi
|
1991-07-31 00:34:07 +00:00
|
|
|
rm -f tm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${targetfile}" != ""; then
|
|
|
|
files="${files} config/${gdb_target_cpu}/${targetfile}"
|
|
|
|
links="${links} tm.h"
|
1991-07-04 15:59:47 +00:00
|
|
|
fi
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 01:01:49 +00:00
|
|
|
rm -f nm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${nativefile}" != ""; then
|
|
|
|
files="${files} config/${gdb_host_cpu}/${nativefile}"
|
|
|
|
links="${links} nm.h"
|
1992-09-30 02:03:24 +00:00
|
|
|
else
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# A cross-only configuration.
|
|
|
|
files="${files} config/nm-empty.h"
|
|
|
|
links="${links} nm.h"
|
1992-09-19 11:09:01 +00:00
|
|
|
fi
|
1994-12-30 23:42:46 +00:00
|
|
|
# start-sanitize-gdbtk
|
1997-04-01 06:04:02 +00:00
|
|
|
AC_PROG_LN_S
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# Make it possible to use the GUI without doing a full install
|
1997-04-01 06:04:02 +00:00
|
|
|
if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl ; then
|
|
|
|
if test "$LN_S" = "ln -s" -a ! -f gdbtcl ; then
|
|
|
|
echo linking $srcdir/gdbtcl to gdbtcl
|
|
|
|
$LN_S $srcdir/gdbtcl gdbtcl
|
|
|
|
else
|
|
|
|
echo Warning: Unable to link $srcdir/gdbtcl to gdbtcl. You will need to do a
|
|
|
|
echo " " make install before you are able to run the GUI.
|
|
|
|
fi
|
1994-07-28 22:07:02 +00:00
|
|
|
fi
|
1994-12-30 23:42:46 +00:00
|
|
|
# end-sanitize-gdbtk
|
1994-07-28 22:07:02 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_LINK_FILES($files, $links)
|
|
|
|
|
|
|
|
AC_CONFIG_SUBDIRS($configdirs)
|
1997-03-31 19:57:51 +00:00
|
|
|
AC_OUTPUT(Makefile .gdbinit:gdbinit.in,
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
[
|
|
|
|
dnl Autoconf doesn't provide a mechanism for modifying definitions
|
|
|
|
dnl provided by makefile fragments.
|
|
|
|
dnl
|
|
|
|
if test "${nativefile}" = ""; then
|
1996-09-08 23:33:23 +00:00
|
|
|
sed -e '/^NATDEPFILES[[ ]]*=[[ ]]*/s//# NATDEPFILES=/' \
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
< Makefile > Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
1995-05-03 01:43:27 +00:00
|
|
|
fi
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
changequote(,)dnl
|
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.
* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.
* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section. More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.
* remote.c (getpkt): Add support for run-length encoding.
1994-03-19 18:49:50 +00:00
|
|
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
|
|
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
|
|
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
|
|
|
mv -f Makefile.tmp Makefile
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
changequote([,])dnl
|
|
|
|
|
1996-03-17 06:28:57 +00:00
|
|
|
case x$CONFIG_HEADERS in
|
1996-03-21 15:59:01 +00:00
|
|
|
xconfig.h:config.in)
|
1996-03-17 06:28:57 +00:00
|
|
|
echo > stamp-h ;;
|
|
|
|
esac
|
1995-05-16 20:21:58 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
gdb_host_cpu=$gdb_host_cpu
|
|
|
|
gdb_target_cpu=$gdb_target_cpu
|
|
|
|
nativefile=$nativefile
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
])
|
1995-09-02 13:48:16 +00:00
|
|
|
|
|
|
|
exit 0
|
1996-02-22 09:11:16 +00:00
|
|
|
|