Index: Makefile.in =================================================================== RCS file: /home/duda_admin/cvs-mirror/src/winsup/utils/Makefile.in,v retrieving revision 1.11 diff -c -2 -r1.11 Makefile.in *** Makefile.in 2000/08/25 16:50:08 1.11 --- Makefile.in 2000/08/26 18:50:47 *************** *** 36,42 **** MINGW_INCLUDES:=-I$(mingw_source)/include -I$(cygwin_source)/include -I$(w32api_include) libbfd:=$(bupdir2)/bfd/libbfd.a libintl:=$(bupdir2)/intl/libintl.a ! build_dumper:=${shell test -r $(libbfd) -a -r $(libintl) -a -d $(updir1)/include && echo 1} DUMPER_INCLUDES:=-I$(bupdir2)/bfd -I$(updir1)/include --- 36,44 ---- MINGW_INCLUDES:=-I$(mingw_source)/include -I$(cygwin_source)/include -I$(w32api_include) + can_build_dumper:=@can_build_dumper@ + libbfd:=$(bupdir2)/bfd/libbfd.a libintl:=$(bupdir2)/intl/libintl.a ! build_dumper:=${shell test "x$(can_build_dumper)" = xyes -o -r $(libbfd) -a -r $(libintl) -a -d $(updir1)/include && echo 1} DUMPER_INCLUDES:=-I$(bupdir2)/bfd -I$(updir1)/include *************** *** 107,111 **** clean: ! rm -f *.o $(PROGS) realclean: clean --- 109,113 ---- clean: ! rm -f *.o dumper.exe $(PROGS) realclean: clean Index: configure.in =================================================================== RCS file: /home/duda_admin/cvs-mirror/src/winsup/utils/configure.in,v retrieving revision 1.1.1.1 diff -c -2 -r1.1.1.1 configure.in *** configure.in 2000/02/17 19:38:31 1.1.1.1 --- configure.in 2000/08/26 18:50:47 *************** *** 72,75 **** --- 72,95 ---- AM_EXEEXT + AC_CHECK_HEADER(bfd.h) + if test "x$ac_cv_header_bfd_h" = xyes; then + AC_CHECK_LIB(bfd,bfd_init,bfd_installed=yes) + fi + AC_CHECK_HEADER(libintl.h) + if test "x$ac_cv_header_libintl_h" = xyes; then + AC_CHECK_LIB(intl,gettext,intl_installed=yes) + fi + + AC_CHECK_HEADERS(elf/common.h elf/external.h) + + if test "x$bfd_installed" = xyes -a \ + "x$intl_installed" = xyes -a \ + "x$ac_cv_header_elf_common_h" = xyes -a \ + "x$ac_cv_header_elf_external_h" = xyes ; then + can_build_dumper=yes + fi + + AC_SUBST(can_build_dumper) + AC_OUTPUT(Makefile)