diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-06-22 21:35:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-06-22 21:35:35 +0000 |
commit | 1d371d35ee4269aea572319c41143a2c0b75bda1 (patch) | |
tree | 7bf9595c48d9b7654603b5da647c323060d0e443 /binutils/configure.in | |
parent | 677a92a07d3eac1a6a484ba34784f53cbee51a74 (diff) | |
download | gdb-1d371d35ee4269aea572319c41143a2c0b75bda1.zip gdb-1d371d35ee4269aea572319c41143a2c0b75bda1.tar.gz gdb-1d371d35ee4269aea572319c41143a2c0b75bda1.tar.bz2 |
First stab at Windows resource compiler:
* windres.h: New file.
* windres.c: New file.
* resrc.c: New file.
* rcparse.y: New file.
* rclex.l: New file.
* configure.in: Define and substitute BUILD_WINDRES.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
(WINDRES_PROG): New variable.
(PROGS): Add @BUILD_WINDRES@.
(HFILES): Add dlltool.h and windres.h.
(CFILES): Add windres.c and resrc.c.
(GENERATED_CFILES): Add rcparse.c and rclex.c.
(WINDRES_OBJS): New variable.
$(WINDRES_PROG): New target.
(rcparse.c, rcparse.h, rclex.c): New targets.
Snapshot. windres can parse and print rc files.
Diffstat (limited to 'binutils/configure.in')
-rw-r--r-- | binutils/configure.in | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/binutils/configure.in b/binutils/configure.in index f5ce9d6..67fdb06 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -98,8 +98,13 @@ esac if test "${commonbfdlib}" = "true"; then # when a shared libbfd is built with --enable-commonbfdlib, - # all of libopcodes is available in libbfd.so - OPCODES= + # all of libopcodes is available in libbfd.so. Unfortunately, on + # HP/UX, when using gcc -g, the linker does a static link, so we + # need to continue linking against opcodes on that platform. + case "${host}" in + *-*-hpux*) ;; + *) OPCODES= ;; + esac fi AC_SUBST(BFDLIB) @@ -166,7 +171,7 @@ BFD_BINARY_FOPEN if test -n "$enable_targets"; then for targ in `echo $enable_targets | sed 's/,/ /g'` do - result=`$ac_config_sub $targ 2>/dev/null` + result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` if test -n "$result"; then canon_targets="$canon_targets $result" else @@ -182,6 +187,7 @@ NLMCONV_DEFS= BUILD_SRCONV= BUILD_DLLTOOL= DLLTOOL_DEFS= +BUILD_WINDRES= for targ in $target $canon_targets do @@ -218,16 +224,19 @@ changequote([,])dnl arm-*pe*) BUILD_DLLTOOL='$(DLLTOOL_PROG)' DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" + BUILD_WINDRES='$(WINDRES_PROG)' ;; changequote(,)dnl i[3-6]86-*pe* | i[3-6]86-*-cygwin32) changequote([,])dnl BUILD_DLLTOOL='$(DLLTOOL_PROG)' DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" + BUILD_WINDRES='$(WINDRES_PROG)' ;; powerpc*-*-*pe* | powerpc*-*-cygwin32) BUILD_DLLTOOL='$(DLLTOOL_PROG)' DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" + BUILD_WINDRES='$(WINDRES_PROG)' ;; esac fi @@ -238,6 +247,7 @@ AC_SUBST(BUILD_NLMCONV) AC_SUBST(BUILD_SRCONV) AC_SUBST(BUILD_DLLTOOL) AC_SUBST(DLLTOOL_DEFS) +AC_SUBST(BUILD_WINDRES) targ=$target . $srcdir/../bfd/config.bfd |