* configure.in: Rewrite to use autoconf.
* aclocal.m4: New file. * configure: New file, built by autoconf. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * Makefile.in: Various changes for new configure script. Also: (PROGS): Remove $(SYSINFO_PROG). (ALL_CFLAGS): Remove $(TDEFINES). (version.o): Use $(ALL_CFLAGS). (cplus-dem.o, dlltool.o, nlmconv.o): Likewise. (sysdump.o): Depend upon bucomm.h and config.h. (srconv.o, arsup.o, strings.o): Depend upon config.h. (filemode.o): Don't depend upon ../bfd/sysdep.h. (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h. (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise. (nlmheader.o, nlmconv.o): Likewise. (distclean): Don't remove sysdep.h. * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h". Include "fopen-same.h" or "fopen-bin.h", based on USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is not a macro. Include <unistd.h>, <string.h>, <strings.h>, <stdlib.h>, and <fcntl.h> if they are present. Declare strchr, strrchr, and strstr if no string header file exists. Include <sys/file.h> if it exists and <fcntl.h> does not. Define O_RDONLY and O_RDWR if necessary. * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and don't declare errno. * arsup.c: Don't include <sysdep.h>. * bucomm.c: Don't include "sysdep.h". Include <stdio.h>, <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines time_t. Define time_t if necessary. * coffdump.c: Don't include "sysdep.h". * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise. * srconv.c, strings.c: Likewise. * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK. * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and <sys/stat.h>. (simple_copy): Use creat rather than assuming that O_CREAT is defined. * objdump.c: Don't include "sysdep.h". Use NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED. * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include "sysdep.h" or <stdlib.h>. (dump_symbol_info): Rename from symbol_info. Change all callers.
This commit is contained in:
parent
dcf62f7359
commit
5ab6ca68fd
@ -28,6 +28,8 @@ Makefile.in
|
||||
NEWS
|
||||
README
|
||||
TODO
|
||||
acconfig.h
|
||||
aclocal.m4
|
||||
alloca.c
|
||||
ar.1
|
||||
ar.c
|
||||
@ -42,6 +44,8 @@ coffdump.c
|
||||
coffgrok.c
|
||||
coffgrok.h
|
||||
config
|
||||
config.h.in
|
||||
configure
|
||||
configure.bat
|
||||
configure.in
|
||||
cxxfilt.man
|
||||
|
@ -1,3 +1,52 @@
|
||||
Tue Sep 5 20:22:42 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* configure.in: Rewrite to use autoconf.
|
||||
* aclocal.m4: New file.
|
||||
* configure: New file, built by autoconf.
|
||||
* acconfig.h: New file.
|
||||
* config.h.in: New file, built by autoheader.
|
||||
* Makefile.in: Various changes for new configure script. Also:
|
||||
(PROGS): Remove $(SYSINFO_PROG).
|
||||
(ALL_CFLAGS): Remove $(TDEFINES).
|
||||
(version.o): Use $(ALL_CFLAGS).
|
||||
(cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
|
||||
(sysdump.o): Depend upon bucomm.h and config.h.
|
||||
(srconv.o, arsup.o, strings.o): Depend upon config.h.
|
||||
(filemode.o): Don't depend upon ../bfd/sysdep.h.
|
||||
(bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
|
||||
(size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
|
||||
(nlmheader.o, nlmconv.o): Likewise.
|
||||
(distclean): Don't remove sysdep.h.
|
||||
* bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
|
||||
Include "fopen-same.h" or "fopen-bin.h", based on
|
||||
USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
|
||||
not a macro. Include <unistd.h>, <string.h>, <strings.h>,
|
||||
<stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
|
||||
strrchr, and strstr if no string header file exists. Include
|
||||
<sys/file.h> if it exists and <fcntl.h> does not. Define
|
||||
O_RDONLY and O_RDWR if necessary.
|
||||
* ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
|
||||
<sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
|
||||
HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
|
||||
don't declare errno.
|
||||
* arsup.c: Don't include <sysdep.h>.
|
||||
* bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
|
||||
<sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
|
||||
time_t. Define time_t if necessary.
|
||||
* coffdump.c: Don't include "sysdep.h".
|
||||
* coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
|
||||
* srconv.c, strings.c: Likewise.
|
||||
* nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
|
||||
* objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
|
||||
<sys/stat.h>.
|
||||
(simple_copy): Use creat rather than assuming that O_CREAT is
|
||||
defined.
|
||||
* objdump.c: Don't include "sysdep.h". Use
|
||||
NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
|
||||
* sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
|
||||
"sysdep.h" or <stdlib.h>.
|
||||
(dump_symbol_info): Rename from symbol_info. Change all callers.
|
||||
|
||||
Mon Sep 4 14:30:00 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* configure.in (host_makefile_frag): Don't set. Substitute for
|
||||
|
@ -17,12 +17,14 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
srcdir = .
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
prefix = /usr/local
|
||||
target_alias = @target_alias@
|
||||
prefix = @prefix@
|
||||
|
||||
program_transform_name =
|
||||
exec_prefix = $(prefix)
|
||||
program_transform_name = @program_transform_name@
|
||||
exec_prefix = @exec_prefix@
|
||||
bindir = $(exec_prefix)/bin
|
||||
libdir = $(exec_prefix)/lib
|
||||
tooldir = $(exec_prefix)/$(target_alias)
|
||||
@ -111,7 +113,7 @@ SRCONV_PROG=srconv sysdump coffdump
|
||||
|
||||
MANPAGES= ar nm objdump ranlib size strings strip objcopy nlmconv
|
||||
|
||||
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(BUILD_NLMCONV) $(BUILD_SRCONV) $(SYSINFO_PROG) $(BUILD_DLLTOOL)
|
||||
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@
|
||||
STAGESTUFF = $(PROGS) *.o
|
||||
# Files that can be generated, but should be in the distribution.
|
||||
# Don't build $(DEMANGLER_PROG).1, since its name may vary with the
|
||||
@ -126,10 +128,9 @@ BFDDIR = $(BASEDIR)/bfd
|
||||
INCDIR = $(BASEDIR)/include
|
||||
INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
|
||||
|
||||
#### host and target dependant Makefile fragments come in here.
|
||||
###
|
||||
@target_makefile_fragment@
|
||||
|
||||
ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(TDEFINES) $(CFLAGS)
|
||||
ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS)
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(ALL_CFLAGS) $<
|
||||
@ -192,16 +193,16 @@ site.exp: ./config.status Makefile
|
||||
@echo "# Do not edit here. If you wish to override these" >> ./tmp0
|
||||
@echo "# values, add them to the last section" >> ./tmp0
|
||||
@echo "# HOST AND TARGET INFO" >> ./tmp0
|
||||
@echo "set host_os $(host_os)" >> ./tmp0
|
||||
@echo "set host_alias $(host_alias)" >> ./tmp0
|
||||
@echo "set host_cpu $(host_cpu)" >> ./tmp0
|
||||
@echo "set host_vendor $(host_vendor)" >> ./tmp0
|
||||
@echo "set target_os $(target_os)" >> ./tmp0
|
||||
@echo "set target_alias $(target_alias)" >> ./tmp0
|
||||
@echo "set target_cpu $(target_cpu)" >> ./tmp0
|
||||
@echo "set target_vendor $(target_vendor)" >> ./tmp0
|
||||
@echo "set host_triplet $(host_canonical)" >> ./tmp0
|
||||
@echo "set target_triplet $(target_canonical)" >> ./tmp0
|
||||
@echo "set host_os @host_os@" >> ./tmp0
|
||||
@echo "set host_alias @host_alias@" >> ./tmp0
|
||||
@echo "set host_cpu @host_cpu@" >> ./tmp0
|
||||
@echo "set host_vendor @host_vendor@" >> ./tmp0
|
||||
@echo "set target_os @target_os@" >> ./tmp0
|
||||
@echo "set target_alias @target_alias@" >> ./tmp0
|
||||
@echo "set target_cpu @target_cpu@" >> ./tmp0
|
||||
@echo "set target_vendor @target_vendor@" >> ./tmp0
|
||||
@echo "set host_triplet @host@" >> ./tmp0
|
||||
@echo "set target_triplet @target@" >> ./tmp0
|
||||
@echo "# DIRECTORY INFO" >> ./tmp0
|
||||
@echo "set objdir `pwd`" >> ./tmp0
|
||||
@echo "" >> ./tmp0
|
||||
@ -249,14 +250,14 @@ $(OBJDUMP_PROG): $(ADDL_LIBS) objdump.o $(BFD) $(OPCODES)
|
||||
underscore.c: Makefile
|
||||
rm -f underscore.c
|
||||
echo '/*WARNING: This file is automatically generated!*/' >underscore.t
|
||||
echo "int prepends_underscore = $(UNDERSCORE);" >>underscore.t
|
||||
echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
|
||||
mv -f underscore.t underscore.c
|
||||
|
||||
version.o: version.c Makefile
|
||||
$(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $(srcdir)/version.c
|
||||
$(CC) -DVERSION='"$(VERSION)"' $(ALL_CFLAGS) -c $(srcdir)/version.c
|
||||
|
||||
cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h
|
||||
$(CC) -c -DMAIN -DVERSION='"$(VERSION)"' $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c
|
||||
$(CC) -c -DMAIN -DVERSION='"$(VERSION)"' $(ALL_CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c
|
||||
|
||||
$(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(EXTRALIBS) underscore.o
|
||||
@ -341,7 +342,7 @@ sysinfo.o: sysinfo.c
|
||||
fi
|
||||
|
||||
srconv.o: srconv.c sysroff.h sysroff.c coffgrok.h $(INCDIR)/coff/internal.h \
|
||||
../bfd/libcoff.h
|
||||
../bfd/libcoff.h config.h
|
||||
|
||||
srconv: srconv.o coffgrok.o $(ADDL_LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ srconv.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||
@ -361,12 +362,12 @@ deflex.c:deflex.l
|
||||
mv lex.yy.c deflex.c
|
||||
|
||||
dlltool.o:dlltool.c
|
||||
$(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(DLLTOOL_DEFS) $(CFLAGS) $(srcdir)/dlltool.c
|
||||
$(CC) -c @DLLTOOL_DEFS@ $(ALL_CFLAGS) $(srcdir)/dlltool.c
|
||||
|
||||
coffdump: coffdump.o coffgrok.o $(ADDL_LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ coffdump.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||
|
||||
sysdump.o: sysdump.c sysroff.h sysroff.c
|
||||
sysdump.o: sysdump.c sysroff.h sysroff.c bucomm.h config.h
|
||||
|
||||
sysdump: sysdump.o $(ADDL_LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ sysdump.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||
@ -379,8 +380,8 @@ nlmheader.c: nlmheader.y sysinfo.c
|
||||
mv -f y.tab.c nlmheader.c
|
||||
|
||||
nlmconv.o: nlmconv.c
|
||||
ldname=`t='$(program_transform_name)'; echo ld | sed -e "s/brokensed/brokensed/" $$t`; \
|
||||
$(CC) -c -DLD_NAME="\"$${ldname}\"" $(INCLUDES) $(HDEFINES) $(TDEFINES) $(NLMCONV_DEFS) $(CFLAGS) $(srcdir)/nlmconv.c
|
||||
ldname=`echo ld | sed '$(program_transform_name)'`; \
|
||||
$(CC) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(ALL_CFLAGS) $(srcdir)/nlmconv.c
|
||||
|
||||
$(NLMCONV_PROG): nlmconv.o nlmheader.o $(ADDL_LIBS) $(BFD)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ nlmconv.o nlmheader.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||
@ -392,47 +393,47 @@ $(NLMCONV_PROG): nlmconv.o nlmheader.o $(ADDL_LIBS) $(BFD)
|
||||
# changing "../include" to "$(INCDIR)"
|
||||
|
||||
bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h config.h
|
||||
filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h
|
||||
size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h $(INCDIR)/getopt.h
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h $(INCDIR)/getopt.h config.h
|
||||
objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h $(INCDIR)/getopt.h \
|
||||
$(INCDIR)/dis-asm.h $(INCDIR)/aout/aout64.h \
|
||||
$(INCDIR)/elf/internal.h $(INCDIR)/aout/stab.def
|
||||
$(INCDIR)/elf/internal.h $(INCDIR)/aout/stab.def config.h
|
||||
nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/getopt.h \
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h config.h $(INCDIR)/getopt.h \
|
||||
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
|
||||
$(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h
|
||||
ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/aout/ar.h \
|
||||
$(BFDDIR)/libbfd.h arsup.h
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h config.h $(INCDIR)/aout/ar.h \
|
||||
$(BFDDIR)/libbfd.h arsup.h
|
||||
arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h arsup.h
|
||||
arlex.o: arlex.c ./arparse.h
|
||||
not-ranlib.o: not-ranlib.c
|
||||
arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h arsup.h bucomm.h
|
||||
$(INCDIR)/obstack.h arsup.h bucomm.h config.h
|
||||
strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h bucomm.h
|
||||
$(INCDIR)/obstack.h bucomm.h config.h
|
||||
objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h
|
||||
$(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
|
||||
$(INCDIR)/fopen-same.h bucomm.h config.h
|
||||
is-strip.o: is-strip.c
|
||||
is-ranlib.o: is-ranlib.c
|
||||
not-strip.o: not-strip.c
|
||||
nlmheader.o: nlmheader.c ../bfd/bfd.h ../bfd/sysdep.h \
|
||||
$(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h \
|
||||
nlmheader.o: nlmheader.c ../bfd/bfd.h \
|
||||
$(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h config.h \
|
||||
$(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h nlmconv.h
|
||||
nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/libiberty.h ../bfd/sysdep.h \
|
||||
$(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h \
|
||||
nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/libiberty.h \
|
||||
$(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h config.h \
|
||||
$(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h \
|
||||
$(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h nlmconv.h \
|
||||
$(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
|
||||
@ -551,7 +552,7 @@ mostlyclean:
|
||||
clean: mostlyclean
|
||||
-rm -f $(PROGS) underscore.c sysroff sysroff.c sysroff.h sysinfo
|
||||
distclean:
|
||||
-rm -f Makefile config.status sysdep.h *.o *~ \#* core y.* \
|
||||
-rm -f Makefile config.status *.o *~ \#* core y.* \
|
||||
binutils.?? binutils.??s binutils.aux binutils.log binutils.toc
|
||||
-rm -f $(PROGS) underscore.c
|
||||
realclean: clean distclean
|
||||
@ -575,7 +576,7 @@ install: all $(DEMANGLER_PROG).1
|
||||
for i in $(TOOL_PROGS) ; do \
|
||||
j=`echo $$i | sed -e 's/.new//'`; \
|
||||
rm -f $(tooldir)/bin/$$j; \
|
||||
k=`t='$(program_transform_name)'; echo $$j | sed -e s/x/x/ $$t`; \
|
||||
k=`echo $$j | sed '$(program_transform_name)'`; \
|
||||
ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
|
||||
|| $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
|
||||
done; \
|
||||
@ -657,8 +658,15 @@ make:
|
||||
echo >>Makefile ; \
|
||||
sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
||||
$(SHELL) ./config.status
|
||||
Makefile: Makefile.in config.status
|
||||
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
config.h: stamp-h ; @true
|
||||
stamp-h: config.h.in config.status
|
||||
CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status
|
||||
|
||||
config.status: configure
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
### Local Variables: ***
|
||||
### mode:fundamental ***
|
||||
|
14
binutils/acconfig.h
Normal file
14
binutils/acconfig.h
Normal file
@ -0,0 +1,14 @@
|
||||
/* Is the type time_t defined in <time.h>? */
|
||||
#undef HAVE_TIME_T_IN_TIME_H
|
||||
|
||||
/* Is the type time_t defined in <sys/types.h>? */
|
||||
#undef HAVE_TIME_T_IN_TYPES_H
|
||||
|
||||
/* Does <utime.h> define struct utimbuf? */
|
||||
#undef HAVE_GOOD_UTIME_H
|
||||
|
||||
/* Whether fprintf must be declared even if <stdio.h> is included. */
|
||||
#undef NEED_DECLARATION_FPRINTF
|
||||
|
||||
/* Do we need to use the b modifier when opening binary files? */
|
||||
#undef USE_BINARY_FOPEN
|
40
binutils/config.h.in
Normal file
40
binutils/config.h.in
Normal file
@ -0,0 +1,40 @@
|
||||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
||||
|
||||
/* Is the type time_t defined in <time.h>? */
|
||||
#undef HAVE_TIME_T_IN_TIME_H
|
||||
|
||||
/* Is the type time_t defined in <sys/types.h>? */
|
||||
#undef HAVE_TIME_T_IN_TYPES_H
|
||||
|
||||
/* Does <utime.h> define struct utimbuf? */
|
||||
#undef HAVE_GOOD_UTIME_H
|
||||
|
||||
/* Whether fprintf must be declared even if <stdio.h> is included. */
|
||||
#undef NEED_DECLARATION_FPRINTF
|
||||
|
||||
/* Do we need to use the b modifier when opening binary files? */
|
||||
#undef USE_BINARY_FOPEN
|
||||
|
||||
/* Define if you have the sbrk function. */
|
||||
#undef HAVE_SBRK
|
||||
|
||||
/* Define if you have the utimes function. */
|
||||
#undef HAVE_UTIMES
|
||||
|
||||
/* Define if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define if you have the <sys/file.h> header file. */
|
||||
#undef HAVE_SYS_FILE_H
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
1885
binutils/configure
vendored
1885
binutils/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,107 @@
|
||||
# This file is a shell script that supplies the information necessary
|
||||
# to tailor a template configure script into the configure script
|
||||
# appropriate for this directory. For more information, check any
|
||||
# existing configure script.
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl
|
||||
AC_PREREQ(2.0)
|
||||
AC_INIT(ar.c)
|
||||
|
||||
srctrigger=ar.c
|
||||
srcname="Binutils"
|
||||
AC_ARG_ENABLE(targets,
|
||||
[ --enable-targets alternative target configurations],
|
||||
[case "${enableval}" in
|
||||
yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
|
||||
;;
|
||||
no) enable_targets= ;;
|
||||
*) enable_targets=$enableval ;;
|
||||
esac])dnl
|
||||
|
||||
# per-host:
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_CONFIG_AUX_DIR(`cd $srcdir/..; pwd`)
|
||||
AC_CANONICAL_SYSTEM
|
||||
if test -z "$target" ; then
|
||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||
fi
|
||||
if test -z "$host" ; then
|
||||
AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
|
||||
fi
|
||||
AC_ARG_PROGRAM
|
||||
|
||||
# host-specific stuff:
|
||||
|
||||
HDEFINES=
|
||||
LDFLAGS=
|
||||
|
||||
. ${srcdir}/../bfd/configure.host
|
||||
|
||||
# per-target:
|
||||
AC_PROG_CC
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_SUBST(HDEFINES)
|
||||
AC_SUBST(LDFLAGS)
|
||||
AR=${AR-ar}
|
||||
AC_SUBST(AR)
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h)
|
||||
AC_CHECK_FUNCS(sbrk utimes)
|
||||
|
||||
AC_MSG_CHECKING(for time_t in time.h)
|
||||
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
|
||||
[AC_TRY_COMPILE([#include <time.h>], [time_t i;],
|
||||
bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
|
||||
AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
|
||||
if test $bu_cv_decl_time_t_time_h = yes; then
|
||||
AC_DEFINE([HAVE_TIME_T_IN_TIME_H])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for time_t in sys/types.h)
|
||||
AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>], [time_t i;],
|
||||
bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
|
||||
AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
|
||||
if test $bu_cv_decl_time_t_types_h = yes; then
|
||||
AC_DEFINE([HAVE_TIME_T_IN_TYPES_H])
|
||||
fi
|
||||
|
||||
# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
|
||||
# by default.
|
||||
AC_MSG_CHECKING([for utime.h])
|
||||
AC_CACHE_VAL(bu_cv_header_utime_h,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <utime.h>],
|
||||
[struct utimbuf s;],
|
||||
bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
|
||||
AC_MSG_RESULT($bu_cv_header_utime_h)
|
||||
if test $bu_cv_header_utime_h = yes; then
|
||||
AC_DEFINE(HAVE_GOOD_UTIME_H)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether fprintf must be declared])
|
||||
AC_CACHE_VAL(bu_cv_decl_needed_fprintf,
|
||||
[AC_TRY_COMPILE([#include <stdio.h>],
|
||||
[int (*pfn) = (int (*)) fprintf],
|
||||
bu_cv_decl_needed_fprintf=no, bu_cv_decl_needed_fprintf=yes)])
|
||||
AC_MSG_RESULT($bu_cv_decl_needed_fprintf)
|
||||
if test $bu_cv_decl_needed_fprintf = yes; then
|
||||
AC_DEFINE(NEED_DECLARATION_FPRINTF)
|
||||
fi
|
||||
|
||||
dnl FIXME: We should check this in some central place somehow
|
||||
case "${host}" in
|
||||
i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-win32)
|
||||
AC_DEFINE(USE_BINARY_FOPEN) ;;
|
||||
esac
|
||||
|
||||
# target-specific stuff:
|
||||
|
||||
# Canonicalize the secondary target names.
|
||||
if [ -n "$enable_targets" ]; then
|
||||
target_makefile_fragment=/dev/null
|
||||
if test -n "$enable_targets"; then
|
||||
for targ in `echo $enable_targets | sed 's/,/ /g'`
|
||||
do
|
||||
result=`$configsub $targ 2>/dev/null`
|
||||
if [ -n "$result" ]; then
|
||||
result=`$ac_config_sub $targ 2>/dev/null`
|
||||
if test -n "$result"; then
|
||||
canon_targets="$canon_targets $result"
|
||||
else
|
||||
# Allow targets that config.sub doesn't recognize, like "all".
|
||||
@ -25,98 +109,80 @@ if [ -n "$enable_targets" ]; then
|
||||
fi
|
||||
done
|
||||
else
|
||||
# If our target is rs6000 _and nothing else_ then we build only nm!
|
||||
# If our target is rs6000 _and nothing else_ then we build only nm!
|
||||
case $target in
|
||||
rs6000-*-lynx*) target_makefile_frag=config/rslynx ;;
|
||||
rs6000-*-lynx*) target_makefile_fragment=${srcdir}/config/rslynx ;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST_FILE(target_makefile_fragment)
|
||||
|
||||
all_targets=false
|
||||
build_nlmconv=false
|
||||
nlmconv_defs=
|
||||
build_srconv=false
|
||||
build_dlltool=false
|
||||
dlltool_defs=
|
||||
BUILD_NLMCONV=
|
||||
NLMCONV_DEFS=
|
||||
BUILD_SRCONV=
|
||||
BUILD_DLLTOOL=
|
||||
DLLTOOL_DEFS=
|
||||
|
||||
for targ in $target $canon_targets
|
||||
do
|
||||
if [ "x$targ" = "xall" ]; then
|
||||
if test "x$targ" = "xall"; then
|
||||
all_targets=true
|
||||
build_nlmconv=true
|
||||
build_srconv=true
|
||||
nlmconv_defs="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
|
||||
BUILD_NLMCONV='$(NLMCONV_PROG)'
|
||||
BUILD_SRCONV='$(SRCONV_PROG)'
|
||||
NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
|
||||
else
|
||||
case $targ in
|
||||
changequote(,)dnl
|
||||
i[345]86*-*-netware*)
|
||||
build_nlmconv=true
|
||||
nlmconv_defs="$nlmconv_defs -DNLMCONV_I386"
|
||||
changequote([,])dnl
|
||||
BUILD_NLMCONV='$(NLMCONV_PROG)'
|
||||
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
|
||||
;;
|
||||
alpha*-*-netware*)
|
||||
build_nlmconv=true
|
||||
nlmconv_defs="$nlmconv_defs -DNLMCONV_ALPHA"
|
||||
BUILD_NLMCONV='$(NLMCONV_PROG)'
|
||||
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
|
||||
;;
|
||||
powerpc*-*-netware*)
|
||||
build_nlmconv=true
|
||||
nlmconv_defs="$nlmconv_defs -DNLMCONV_POWERPC"
|
||||
BUILD_NLMCONV='$(NLMCONV_PROG)'
|
||||
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
|
||||
;;
|
||||
sparc*-*-netware*)
|
||||
build_nlmconv=true
|
||||
nlmconv_defs="$nlmconv_defs -DNLMCONV_SPARC"
|
||||
BUILD_NLMCONV='$(NLMCONV_PROG)'
|
||||
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
|
||||
;;
|
||||
esac
|
||||
case $targ in
|
||||
*-*-hms*) build_srconv=true ;;
|
||||
*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
|
||||
esac
|
||||
case $targ in
|
||||
arm-*pe*)
|
||||
build_dlltool=true;
|
||||
dlltool_defs="$dlltool_defs -DDLLTOOL_ARM"
|
||||
BUILD_DLLTOOL='$(DLLTOOL_PROG)'
|
||||
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
|
||||
;;
|
||||
changequote(,)dnl
|
||||
i[3-6]86-*pe* | i[3-6]86-*-win32)
|
||||
build_dlltool=true;
|
||||
dlltool_defs="$dlltool_defs -DDLLTOOL_I386"
|
||||
changequote([,])dnl
|
||||
BUILD_DLLTOOL='$(DLLTOOL_PROG)'
|
||||
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
# We don't do any links based on the target system, just makefile config.
|
||||
|
||||
# post-target:
|
||||
|
||||
rm -f Makefile.tmp Makefile.2
|
||||
mv Makefile Makefile.tmp
|
||||
|
||||
if [ "x${build_nlmconv}" = "xtrue" ]; then
|
||||
echo 'BUILD_NLMCONV = $(NLMCONV_PROG)' >> Makefile.2
|
||||
echo "NLMCONV_DEFS = ${nlmconv_defs}" >> Makefile.2
|
||||
fi
|
||||
|
||||
if [ "x${build_srconv}" = "xtrue" ]; then
|
||||
echo 'BUILD_SRCONV = $(SRCONV_PROG)' >> Makefile.2
|
||||
fi
|
||||
|
||||
if [ "x${build_dlltool}" = "xtrue" ]; then
|
||||
echo 'BUILD_DLLTOOL = $(DLLTOOL_PROG)' >> Makefile.2
|
||||
echo "DLLTOOL_DEFS = ${dlltool_defs}" >> Makefile.2
|
||||
fi
|
||||
AC_SUBST(NLMCONV_DEFS)
|
||||
AC_SUBST(BUILD_NLMCONV)
|
||||
AC_SUBST(BUILD_SRCONV)
|
||||
AC_SUBST(BUILD_DLLTOOL)
|
||||
AC_SUBST(DLLTOOL_DEFS)
|
||||
|
||||
targ=$target
|
||||
. $srcdir/../bfd/config.bfd
|
||||
if test "x$targ_underscore" = "xyes"; then
|
||||
underscore=1
|
||||
UNDERSCORE=1
|
||||
else
|
||||
underscore=0
|
||||
UNDERSCORE=0
|
||||
fi
|
||||
echo "UNDERSCORE = ${underscore}" >> Makefile.2
|
||||
AC_SUBST(UNDERSCORE)
|
||||
|
||||
test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
|
||||
test -z "$CC" && CC=cc
|
||||
test -z "$CFLAGS" && CFLAGS=-g
|
||||
sed -e "s%@CC@%${CC}%" \
|
||||
-e "s%@CFLAGS@%${CFLAGS}%" \
|
||||
-e "s%@HDEFINES@%${HDEFINES}%" \
|
||||
-e "s%@LDFLAGS@%${LDFLAGS}%" < Makefile.tmp >> Makefile.2
|
||||
|
||||
rm -f Makefile.tmp
|
||||
mv Makefile.2 Makefile
|
||||
AC_OUTPUT(Makefile,
|
||||
[case x$CONFIG_HEADERS in xconfig.h) echo > stamp-h ;; esac])
|
||||
|
Loading…
x
Reference in New Issue
Block a user